<?php /* Smarty version 2.6.12, created on 2011-01-18 14:26:16
         compiled from todo_mobile_entry.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'todo_mobile_entry.html', 3, false),array('modifier', 'sprintf', 'todo_mobile_entry.html', 41, false),)), $this); ?>
<?php echo '';  echo '<form method="post" action=".';  echo ((is_array($_tmp=@INDEX_FILE_NAME)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '">';  echo $this->_tpl_vars['lang']['todo_priority'];  echo '<select name="priority"><option value="';  echo ((is_array($_tmp=@TODO_PRIORITY_HIGH)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['task']['priority'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == TODO_PRIORITY_HIGH )):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['todo_priority_high'];  echo '</option><option value="';  echo ((is_array($_tmp=@TODO_PRIORITY_MIDDLE)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['task']['priority'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == TODO_PRIORITY_MIDDLE )):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['todo_priority_middle'];  echo '</option><option value="';  echo ((is_array($_tmp=@TODO_PRIORITY_LOW)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['task']['priority'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == TODO_PRIORITY_LOW )):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['todo_priority_low'];  echo '</option></select>&nbsp;<input type="checkbox" name="state" value="';  echo ((is_array($_tmp=@_ON)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['task']['state'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == _ON )):  echo ' checked="checked"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['todo_state'];  echo '<br /><br />';  echo $this->_tpl_vars['lang']['todo_period'];  echo '<input type="text" name="year" value="';  echo ((is_array($_tmp=$this->_tpl_vars['action']['task']['year'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" size=4 maxlength=4 style="-wap-input-format:&quot;*&lt:ja:n&gt;&quot;">';  echo $this->_tpl_vars['lang']['_mobile_year'];  echo '<input type="text" name="month" value="';  echo ((is_array($_tmp=$this->_tpl_vars['action']['task']['month'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" size=2 maxlength=2 style="-wap-input-format:&quot;*&lt:ja:n&gt;&quot;">';  echo $this->_tpl_vars['lang']['_mobile_month'];  echo '<input type="text" name="day" value="';  echo ((is_array($_tmp=$this->_tpl_vars['action']['task']['day'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" size=2  maxlength=2 style="-wap-input-format:&quot;*&lt:ja:n&gt;&quot;">';  echo $this->_tpl_vars['lang']['_mobile_day'];  echo '<br /><input type="checkbox" name="calendar" value="';  echo ((is_array($_tmp=@_ON)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['task']['calendar_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) > 0 )):  echo ' checked="checked"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['todo_calendar'];  echo '<br /><br />';  echo $this->_tpl_vars['lang']['todo_progress'];  echo '<br /><select name="progress">';  unset($this->_sections['progress']);
$this->_sections['progress']['name'] = 'progress';
$this->_sections['progress']['loop'] = is_array($_loop=101) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['progress']['start'] = (int)0;
$this->_sections['progress']['step'] = ((int)((is_array($_tmp=@TODO_PROGRESS_INTERVAL)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) == 0 ? 1 : (int)((is_array($_tmp=@TODO_PROGRESS_INTERVAL)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));
$this->_sections['progress']['show'] = true;
$this->_sections['progress']['max'] = $this->_sections['progress']['loop'];
if ($this->_sections['progress']['start'] < 0)
    $this->_sections['progress']['start'] = max($this->_sections['progress']['step'] > 0 ? 0 : -1, $this->_sections['progress']['loop'] + $this->_sections['progress']['start']);
else
    $this->_sections['progress']['start'] = min($this->_sections['progress']['start'], $this->_sections['progress']['step'] > 0 ? $this->_sections['progress']['loop'] : $this->_sections['progress']['loop']-1);
if ($this->_sections['progress']['show']) {
    $this->_sections['progress']['total'] = min(ceil(($this->_sections['progress']['step'] > 0 ? $this->_sections['progress']['loop'] - $this->_sections['progress']['start'] : $this->_sections['progress']['start']+1)/abs($this->_sections['progress']['step'])), $this->_sections['progress']['max']);
    if ($this->_sections['progress']['total'] == 0)
        $this->_sections['progress']['show'] = false;
} else
    $this->_sections['progress']['total'] = 0;
if ($this->_sections['progress']['show']):

            for ($this->_sections['progress']['index'] = $this->_sections['progress']['start'], $this->_sections['progress']['iteration'] = 1;
                 $this->_sections['progress']['iteration'] <= $this->_sections['progress']['total'];
                 $this->_sections['progress']['index'] += $this->_sections['progress']['step'], $this->_sections['progress']['iteration']++):
$this->_sections['progress']['rownum'] = $this->_sections['progress']['iteration'];
$this->_sections['progress']['index_prev'] = $this->_sections['progress']['index'] - $this->_sections['progress']['step'];
$this->_sections['progress']['index_next'] = $this->_sections['progress']['index'] + $this->_sections['progress']['step'];
$this->_sections['progress']['first']      = ($this->_sections['progress']['iteration'] == 1);
$this->_sections['progress']['last']       = ($this->_sections['progress']['iteration'] == $this->_sections['progress']['total']);
 echo '<option value="';  echo ((is_array($_tmp=$this->_sections['progress']['index'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['task']['progress'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == ((is_array($_tmp=$this->_sections['progress']['index'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) )):  echo ' selected="selected"';  endif;  echo '>';  echo ((is_array($_tmp=$this->_tpl_vars['lang']['todo_percent'])) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_sections['progress']['index'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_sections['progress']['index'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '</option>';  endfor; endif;  echo '</select><br /><br />';  echo $this->_tpl_vars['lang']['todo_task_value'];  echo '<br /><textarea name="task_value" rowspan=2>';  echo ((is_array($_tmp=$this->_tpl_vars['action']['task']['task_value'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '</textarea><br /><br /><input type="hidden" name="action" value="todo_action_main_entry"><input type="hidden" name="block_id" value="';  echo ((is_array($_tmp=$this->_tpl_vars['block_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"><input type="hidden" name="task_id" value="';  echo ((is_array($_tmp=$this->_tpl_vars['action']['task']['task_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"><input type="hidden" name="target_state" value="';  echo ((is_array($_tmp=$this->_tpl_vars['action']['target_state'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '">';  echo $this->_tpl_vars['token_form'];  echo '';  echo $this->_tpl_vars['session_form'];  echo '';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['task']['task_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) > 0 )):  echo '<input type="submit" name="regist" value="';  echo $this->_tpl_vars['lang']['_edit'];  echo '">';  else:  echo '<input type="hidden" name="task_id" value="';  echo ((is_array($_tmp=$this->_tpl_vars['action']['task']['task_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"><input type="submit" name="regist" value="';  echo $this->_tpl_vars['lang']['todo_add_task'];  echo '">';  endif;  echo '</form><form method="get" action=".';  echo ((is_array($_tmp=@INDEX_FILE_NAME)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"><input type="hidden" name="action" value="todo_view_main_init"><input type="hidden" name="block_id" value="';  echo ((is_array($_tmp=$this->_tpl_vars['block_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"><input type="hidden" name="target_state" value="';  echo ((is_array($_tmp=$this->_tpl_vars['action']['target_state'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '">';  echo $this->_tpl_vars['session_form'];  echo '<input type="submit" name="cancel" value="';  echo $this->_tpl_vars['lang']['_cancel'];  echo '"></form>'; ?>