<?php /* Smarty version 2.6.2, created on 2012-10-23 00:45:41
         compiled from details.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'details.tpl', 57, false),array('function', 'paginator', 'details.tpl', 74, false),array('modifier', 'encurl', 'details.tpl', 59, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo '
<script type="text/javascript"><!--
function checkVote()
{
  if (!document.vote.email) return true;

  status = checkEmail(document.vote.email.value);

  if (status > 0) {
    if (status == 1)
	    alert(\'Please, enter your E-Mail address!\');
    if (status == 2)
	    alert(\'Please, enter a valid E-Mail address!\');

    document.vote.email.focus();
    return false;
  }
  return true;
}
--></script>
'; ?>

<div class="goback" style="padding-left:8px;"><a href="javascript:history.go(-1)" class="staff">&laquo; Go Back</a></div>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "program_details.tpl", 'smarty_include_vars' => array('listing' => $this->_tpl_vars['listing'],'group' => $this->_tpl_vars['group'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="details">
<div class="delim"></div>
<div class="votes_summary" style="padding-left:8px;">
<div class="summary mood3 clearfix">
 <div class="mood">Very Good</div>
 <div class="rate"><div style="width:<?php echo $this->_tpl_vars['listing']['votes_summary']['3']['percent']+1; ?>
%" title="<?php echo $this->_tpl_vars['listing']['votes_summary']['3']['count']; ?>
 votes (<?php echo $this->_tpl_vars['listing']['votes_summary']['3']['percent']; ?>
%)"></div></div>
</div>
<div class="summary mood2 clearfix">
 <div class="mood">Good</div>
 <div class="rate"><div style="width:<?php echo $this->_tpl_vars['listing']['votes_summary']['2']['percent']+1; ?>
%" title="<?php echo $this->_tpl_vars['listing']['votes_summary']['2']['count']; ?>
 votes (<?php echo $this->_tpl_vars['listing']['votes_summary']['2']['percent']; ?>
%)"></div></div>
</div>
<div class="summary mood1 clearfix">
 <div class="mood">Bad</div>
 <div class="rate"><div style="width:<?php echo $this->_tpl_vars['listing']['votes_summary']['1']['percent']+1; ?>
%" title="<?php echo $this->_tpl_vars['listing']['votes_summary']['1']['count']; ?>
 votes (<?php echo $this->_tpl_vars['listing']['votes_summary']['1']['percent']; ?>
%)"></div></div>
</div>
<div class="summary mood0 clearfix">
 <div class="mood">Very Bad</div>
 <div class="rate"><div style="width:<?php echo $this->_tpl_vars['listing']['votes_summary']['0']['percent']+1; ?>
%" title="<?php echo $this->_tpl_vars['listing']['votes_summary']['0']['count']; ?>
 votes (<?php echo $this->_tpl_vars['listing']['votes_summary']['0']['percent']; ?>
%)"></div></div>
</div>
</div>

<?php if ($this->_tpl_vars['votes']): ?>
<table class="votes list">
<tr>
  <th style="text-align: center;">Rating</th>
  <th>Info</th>
  <th>Comment</th>
</tr>
<?php if (isset($this->_sections['v'])) unset($this->_sections['v']);
$this->_sections['v']['name'] = 'v';
$this->_sections['v']['loop'] = is_array($_loop=$this->_tpl_vars['votes']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['v']['show'] = true;
$this->_sections['v']['max'] = $this->_sections['v']['loop'];
$this->_sections['v']['step'] = 1;
$this->_sections['v']['start'] = $this->_sections['v']['step'] > 0 ? 0 : $this->_sections['v']['loop']-1;
if ($this->_sections['v']['show']) {
    $this->_sections['v']['total'] = $this->_sections['v']['loop'];
    if ($this->_sections['v']['total'] == 0)
        $this->_sections['v']['show'] = false;
} else
    $this->_sections['v']['total'] = 0;
if ($this->_sections['v']['show']):

            for ($this->_sections['v']['index'] = $this->_sections['v']['start'], $this->_sections['v']['iteration'] = 1;
                 $this->_sections['v']['iteration'] <= $this->_sections['v']['total'];
                 $this->_sections['v']['index'] += $this->_sections['v']['step'], $this->_sections['v']['iteration']++):
$this->_sections['v']['rownum'] = $this->_sections['v']['iteration'];
$this->_sections['v']['index_prev'] = $this->_sections['v']['index'] - $this->_sections['v']['step'];
$this->_sections['v']['index_next'] = $this->_sections['v']['index'] + $this->_sections['v']['step'];
$this->_sections['v']['first']      = ($this->_sections['v']['iteration'] == 1);
$this->_sections['v']['last']       = ($this->_sections['v']['iteration'] == $this->_sections['v']['total']);
?>
<tr class="<?php echo smarty_function_cycle(array('values' => "row1,row2"), $this);?>
">
  <td style="text-align: center;">
   <?php if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['vote'] == 0): ?><img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/r0.gif")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="Very Bad" title="Very Bad"><?php endif; ?>
   <?php if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['vote'] == 1): ?><img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/r1.gif")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="Bad" title="Bad"><?php endif; ?>
   <?php if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['vote'] == 2): ?><img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/r2.gif")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="Good" title="Good"><?php endif; ?>
   <?php if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['vote'] == 3): ?><img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/r3.gif")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="Very Good" title="Very Good"><?php endif; ?>
  </td>
  <td>
   <?php if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['username']): ?><b><?php echo $this->_tpl_vars['votes'][$this->_sections['v']['index']]['username']; ?>
</b><?php else:  echo $this->_tpl_vars['votes'][$this->_sections['v']['index']]['email'];  endif; ?><br />
   <?php echo $this->_tpl_vars['votes'][$this->_sections['v']['index']]['ip']; ?>
<br />
   <?php echo $this->_tpl_vars['votes'][$this->_sections['v']['index']]['fdate']; ?>

  </td>
  <td><?php echo $this->_tpl_vars['votes'][$this->_sections['v']['index']]['comment']; ?>
</td>
</tr>
<?php endfor; endif; ?>
</table>

<?php echo smarty_function_paginator(array('col' => $this->_tpl_vars['pages']['col'],'cur' => $this->_tpl_vars['pages']['cur'],'url' => ((is_array($_tmp="?a=details&lid=".($this->_tpl_vars['listing']['id'])."&p=%s")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp))), $this);?>

<?php endif; ?>

<a name="vote"></a>                        
<h3>Add Vote</h3>
<form method="post" name="vote" onsubmit="return checkVote()" action="">
<input type="hidden" name="a" value="add_vote">
<input type="hidden" name="action" value="save">
<input type="hidden" name="lid" value="<?php echo $this->_tpl_vars['listing']['id']; ?>
">
<table class="form">
<tr>
  <th>Mood</th>
  <td>
   <input type="radio" name="vote" value=3> <img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/r3.gif")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="Very Good" title="Very Good"> Very Good<br>
   <input type="radio" name="vote" checked value=2> <img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/r2.gif")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="Good" title="Good"> Good<br>
   <input type="radio" name="vote" value=1> <img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/r1.gif")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="Bad" title="Bad"> Bad<br>
   <input type="radio" name="vote" value=0> <img src="<?php echo ((is_array($_tmp=($this->_tpl_vars['theme'])."images/r0.gif")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="Very Bad" title="Very Bad"> Very Bad<br>
  </td>
</tr>
<tr>
  <th>Comments</th>
  <td>
   <input type="text" name="comment" maxlength=255><br>
   You can write short comment (max. 255 characters)
  </td>
</tr>
<?php if ($this->_tpl_vars['userinfo']['logged']): ?>
<tr>
  <th>Username</th>
  <td><?php echo $this->_tpl_vars['userinfo']['username']; ?>
</td>
</tr>
<?php else: ?>
<tr>
  <th>E-Mail</th>
  <td>
   <input type="text" name="email">
   <?php if ($this->_tpl_vars['settings']['vote_confirmation_require']): ?>we will send you your vote confirmation code<?php endif; ?>
  </td>
</tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['settings']['use_turing']): ?>
<tr>
  <th><img src="<?php echo ((is_array($_tmp="?a=turing&".($this->_tpl_vars['sesname'])."=".($this->_tpl_vars['sesid'])."&r=".($this->_tpl_vars['rand']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" alt="turing code"></th>
  <td><input type=text name="turing" maxlength=6 size=6></td>
</tr>
<?php endif; ?>
<tr>
  <th></th>
  <td><input type="submit" value="Vote" class=sbmt></td>
</tr>
</table>
</form>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>