<?php /* Smarty version 2.6.12, created on 2011-01-18 14:25:54
         compiled from assignment_view_main_summary.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'assignment_view_main_summary.html', 7, false),array('modifier', 'sprintf', 'assignment_view_main_summary.html', 28, false),array('modifier', 'substr', 'assignment_view_main_summary.html', 33, false),array('function', 'math', 'assignment_view_main_summary.html', 22, false),)), $this); ?>
<?php echo '';  echo '';  echo '';  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "assignment_view_assignment_name.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<div id="assignment_main_summary';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" class="assignment_main_summary"><table class="assignment_main_summary">';  echo '';  $this->assign('submit_flag', ((is_array($_tmp=@ASSIGNMENT_SUBMIT_FLAG_GRADED)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  if (( ! empty ( $this->_tpl_vars['action']['summary'][$this->_tpl_vars['submit_flag']] ) )):  echo '';  $_from = $this->_tpl_vars['action']['summary'][$this->_tpl_vars['submit_flag']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['summary'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['summary']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['grade_value'] => $this->_tpl_vars['summary']):
        $this->_foreach['summary']['iteration']++;
 echo '<tr><th class="nowrap assignment_grade_head">';  echo ((is_array($_tmp=$this->_tpl_vars['lang']['assignment_grade_item'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '';  echo ((is_array($_tmp=$this->_tpl_vars['grade_value'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '</th><td class="nowrap assignment_grade_value">';  if (( ! empty ( $this->_tpl_vars['summary'] ) && ((is_array($_tmp=$this->_tpl_vars['action']['summary']['total'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) > 0 )):  echo '';  echo smarty_function_math(array('equation' => "x / y * 100",'x' => ((is_array($_tmp=$this->_tpl_vars['summary'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')),'y' => ((is_array($_tmp=$this->_tpl_vars['action']['summary']['total'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')),'assign' => 'graph_rate'), $this); echo '';  else:  echo '';  $this->assign('graph_rate', 0);  echo '';  endif;  echo '';  echo smarty_function_math(array('equation' => "100 - x",'x' => ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')),'assign' => 'background'), $this); echo '';  echo ((is_array($_tmp=$this->_tpl_vars['lang']['assignment_grade_value'])) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['summary'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')), ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['summary'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')), ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '</td><td class="nowrap assignment_grade_graph">';  $this->assign('grade_i', ((is_array($_tmp=$this->_foreach['summary']['iteration'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '<div class="assignment_graph_graded assignment_graph_';  echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['grade_i'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))) ? $this->_run_mod_handler('substr', true, $_tmp, -1) : substr($_tmp, -1));  echo '" style="width:';  echo ((is_array($_tmp="%0.0f")) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '%"></div><div class="assignment_graph_ground" style="width:';  echo ((is_array($_tmp="%0.0f")) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['background'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['background'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '%"></div></td></tr>';  endforeach; endif; unset($_from);  echo '';  endif;  echo '';  echo '';  $this->assign('submit_flag', ((is_array($_tmp=@ASSIGNMENT_SUBMIT_FLAG_SUBMITTED)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  $this->assign('resubmit_flag', ((is_array($_tmp=@ASSIGNMENT_SUBMIT_FLAG_RESUBMITTED)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  if (( ! empty ( $this->_tpl_vars['action']['summary'][$this->_tpl_vars['submit_flag']] ) && ! empty ( $this->_tpl_vars['action']['summary'][$this->_tpl_vars['resubmit_flag']] ) )):  echo '';  echo smarty_function_math(array('equation' => "x + y",'x' => ((is_array($_tmp=$this->_tpl_vars['action']['summary'][$this->_tpl_vars['submit_flag']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')),'y' => ((is_array($_tmp=$this->_tpl_vars['action']['summary'][$this->_tpl_vars['resubmit_flag']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')),'assign' => 'summary'), $this); echo '';  elseif (( ! empty ( $this->_tpl_vars['action']['summary'][$this->_tpl_vars['submit_flag']] ) )):  echo '';  $this->assign('summary', ((is_array($_tmp=$this->_tpl_vars['action']['summary'][$this->_tpl_vars['submit_flag']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  elseif (( ! empty ( $this->_tpl_vars['action']['summary'][$this->_tpl_vars['resubmit_flag']] ) )):  echo '';  $this->assign('summary', ((is_array($_tmp=$this->_tpl_vars['action']['summary'][$this->_tpl_vars['resubmit_flag']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  else:  echo '';  $this->assign('summary', 0);  echo '';  endif;  echo '';  if (( ((is_array($_tmp=$this->_tpl_vars['summary'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) > 0 )):  echo '<tr><th class="nowrap assignment_grade_head">';  echo $this->_tpl_vars['lang']['assignment_summary_submitted_unvalued'];  echo '</th><td class="nowrap assignment_grade_value">';  if (( ! empty ( $this->_tpl_vars['summary'] ) && ((is_array($_tmp=$this->_tpl_vars['action']['summary']['total'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) > 0 )):  echo '';  echo smarty_function_math(array('equation' => "x / y * 100",'x' => ((is_array($_tmp=$this->_tpl_vars['summary'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')),'y' => ((is_array($_tmp=$this->_tpl_vars['action']['summary']['total'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')),'assign' => 'graph_rate'), $this); echo '';  else:  echo '';  $this->assign('graph_rate', 0);  echo '';  endif;  echo '';  echo smarty_function_math(array('equation' => "100 - x",'x' => ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')),'assign' => 'background'), $this); echo '';  echo ((is_array($_tmp=$this->_tpl_vars['lang']['assignment_grade_value'])) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['summary'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')), ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['summary'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')), ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '</td><td class="nowrap assignment_grade_graph"><div class="assignment_graph_submitted" style="width:';  echo ((is_array($_tmp="%0.0f")) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '%"></div><div class="assignment_graph_ground" style="width:';  echo ((is_array($_tmp="%0.0f")) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['background'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['background'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '%"></div></td></tr>';  endif;  echo '';  echo '';  $this->assign('submit_flag', ((is_array($_tmp=@ASSIGNMENT_SUBMIT_FLAG_YET_REREASED)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  $this->assign('summary', ((is_array($_tmp=$this->_tpl_vars['action']['summary'][$this->_tpl_vars['submit_flag']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  if (( ((is_array($_tmp=$this->_tpl_vars['summary'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) > 0 )):  echo '<tr><th class="nowrap assignment_grade_head">';  echo ((is_array($_tmp=$this->_tpl_vars['lang']['assignment_yet_submitted'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '</th><td class="nowrap assignment_grade_value">';  if (( ! empty ( $this->_tpl_vars['summary'] ) && ((is_array($_tmp=$this->_tpl_vars['action']['summary']['total'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) > 0 )):  echo '';  echo smarty_function_math(array('equation' => "x / y * 100",'x' => ((is_array($_tmp=$this->_tpl_vars['summary'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')),'y' => ((is_array($_tmp=$this->_tpl_vars['action']['summary']['total'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')),'assign' => 'graph_rate'), $this); echo '';  else:  echo '';  $this->assign('graph_rate', 0);  echo '';  endif;  echo '';  echo smarty_function_math(array('equation' => "100 - x",'x' => ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')),'assign' => 'background'), $this); echo '';  echo ((is_array($_tmp=$this->_tpl_vars['lang']['assignment_grade_value'])) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['summary'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')), ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['summary'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')), ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '</td><td class="nowrap assignment_grade_graph"><div class="assignment_graph_yet_released" style="width:';  echo ((is_array($_tmp="%0.0f")) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['graph_rate'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '%"></div><div class="assignment_graph_ground" style="width:';  echo ((is_array($_tmp="%0.0f")) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['background'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['background'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '%"></div></td></tr>';  endif;  echo '</table></div>';  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../assignment_script.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo ''; ?>