<?php /* Smarty version 2.6.12, created on 2011-01-18 14:26:19
         compiled from todo_view_main_init_state.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'todo_view_main_init_state.html', 3, false),)), $this); ?>
<?php echo '';  echo '';  if (((is_array($_tmp=$this->_tpl_vars['task']['edit_authority'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) && ((is_array($_tmp=$this->_tpl_vars['action_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 'todo_view_main_init'):  echo '<a class="link display-block" href="#" title="';  echo $this->_tpl_vars['lang']['todo_state_edit'];  echo '" onclick="todoCls[\'';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '\'].changeState(this,\'';  echo ((is_array($_tmp=$this->_tpl_vars['task']['period_class_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '\');return false;" onfocus="this.onmouseover(event);" onmouseover="commonCls.blockNotice(event);">';  endif;  echo '';  if (((is_array($_tmp=$this->_tpl_vars['task']['state'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == _ON):  echo '';  echo $this->_tpl_vars['lang']['todo_state_finish'];  echo '';  else:  echo '';  echo $this->_tpl_vars['lang']['todo_state_none'];  echo '';  endif;  echo '';  if (((is_array($_tmp=$this->_tpl_vars['task']['edit_authority'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) && ((is_array($_tmp=$this->_tpl_vars['action_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 'todo_view_main_init'):  echo '</a><form action="#" onsubmit="return false;"><input type="hidden" name="state" value="';  echo ((is_array($_tmp=$this->_tpl_vars['task']['state'])) ? $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['task']['task_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" /></form>';  endif;  echo ''; ?>