<?php /* Smarty version 2.6.2, created on 2012-03-19 23:41:10
         compiled from view_votes.tpl */ ?>
<br><div class="list_text"><div align="center"><img src="images/t1.gif" align="absMiddle"> <a class="list_menu">Ratings stats for <b><?php echo $this->_tpl_vars['listing']['name']; ?>
</b></a>
<hr size=1 noshade="noshade" style="border:1px #cccccc dotted"></div>

<TABLE border=0 cellSpacing=0 cellPadding=4 width="80%">
<TBODY>
<TR>
<TD width=60 align=right>very good:</TD>
<TD><IMG align=absMiddle src="/images/r_dot.gif" width=<?php echo $this->_tpl_vars['listing']['votes_summary']['3']; ?>
 
height=10> (<?php echo $this->_tpl_vars['listing']['votes_summary']['3']; ?>
 votes)</TD></TR>
<TR>
<TD width=60 align=right>good:</TD>
<TD><IMG align=absMiddle src="/images/y_dot.gif" width=<?php echo $this->_tpl_vars['listing']['votes_summary']['2']; ?>
 
height=10> (<?php echo $this->_tpl_vars['listing']['votes_summary']['2']; ?>
 votes)</TD></TR>
<TR>
<TD width=60 align=right>bad:</TD>
<TD><IMG align=absMiddle src="/images/g_dot.gif" width=<?php echo $this->_tpl_vars['listing']['votes_summary']['1']; ?>
 
height=10> (<?php echo $this->_tpl_vars['listing']['votes_summary']['1']; ?>
 votes)</TD></TR>
<TR>
<TD width=60 align=right>very bad:</TD>
<TD><IMG align=absMiddle src="/images/b_dot.gif" width=<?php echo $this->_tpl_vars['listing']['votes_summary']['0']; ?>
 
height=10> (<?php echo $this->_tpl_vars['listing']['votes_summary']['0']; ?>
 votes)</TD></TR></TBODY></TABLE>





<BR><A name=vote></A>
<FORM action="/index.html" onsubmit="return procVote()" method=post name=vote><INPUT value=add_vote 
type=hidden name=a> <INPUT value=save type=hidden name=action> <INPUT value="<?php echo $this->_tpl_vars['listing']['id']; ?>
" 
type=hidden name=lid> 
<TABLE 
style="BORDER-BOTTOM: #cccccc 1px dotted; BORDER-LEFT: #cccccc 1px dotted; BORDER-TOP: #cccccc 1px dotted; BORDER-RIGHT: #cccccc 1px dotted" 
border=0 cellSpacing=0 cellPadding=2 width="99%" align=center>
<TBODY>
<TR>
<TD class=title colSpan=3 align=middle><BR><IMG border=0 
src="/images/icon_vote.gif"> Your rating for 
<B><?php echo $this->_tpl_vars['listing']['name']; ?>
</B></TD></TR>
<TR>
<TD colSpan=3>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD height=50 width="25%" align=middle><IMG title="Very Good" alt="Very Good" 
src="/images/r3.gif"><BR><INPUT value=3 type=radio 
name=vote> Very Good<BR></TD>
<TD width="25%" align=middle><IMG title=Good alt=Good 
src="/images/r2.gif"><BR><INPUT value=2 CHECKED type=radio 
name=vote> Good<BR></TD>
<TD width="25%" align=middle><IMG title=Bad alt=Bad 
src="/images/r1.gif"><BR><INPUT value=1 type=radio 
name=vote> Bad<BR></TD>
<TD width="25%" align=middle><IMG title="Very Bad" alt="Very Bad" 
src="/images/r0.gif"><BR><INPUT value=0 type=radio 
name=vote> Very Bad<BR></TD></TR>
<TR>
<TD>&nbsp;</TD>
<TD>&nbsp;</TD>
<TD>&nbsp;</TD>
<TD>&nbsp;</TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD colSpan=3 align=middle>You can write short comment (max. <INPUT class=inpts 
value=255 readOnly size=3 name=Len> chars): <BR><TEXTAREA onkeydown=textCounter(this.form.comment,this.form.Len,255); class=inpts onkeyup=textCounter(this.form.comment,this.form.Len,255); rows=5 cols=65 name=comment></TEXTAREA> 
</TD></TR>
<TR>
<TD colSpan=3 align=middle>Your e-mail<?php if ($this->_tpl_vars['settings']['vote_confirmation_require']): ?> (we will send you your vote confirmation code)<?php endif; ?>:<br><INPUT class=inpts size=50 name=email> </TD></TR>
<TR>
<TD colSpan=3 
align=middle><INPUT class=sbmt value="Add Vote" type=submit></TD></TR>
<TR>
<TD>&nbsp;</TD></TR></TBODY></TABLE></FORM>


<?php if ($this->_tpl_vars['votes']): ?>

<TABLE border=0 cellSpacing=0 cellPadding=3 width="97%" align=center>
<TBODY>
<TR>
<TD>&nbsp;</TD></TR></TBODY></TABLE>
<TABLE 
style="BORDER-BOTTOM: #c9dfac 1px solid; BORDER-LEFT: #c9dfac 1px solid; BORDER-TOP: #c9dfac 1px solid; BORDER-RIGHT: #c9dfac 1px solid" 
cellSpacing=1 cellPadding=2 width="100%">
<TBODY>
<TR>
<TD class=title background=/images/lmtop2.gif align=middle><FONT 
color=#ffffff><B>Rating</B></FONT></TD>
<TD class=title background=/images/lmtop2.gif align=middle><FONT 
color=#ffffff><B>User Host</B></FONT></TD>
<TD class=title background=/images/lmtop2.gif align=middle><FONT 
color=#ffffff><B>User E-Mail</B></FONT></TD>
<TD class=title background=/images/lmtop2.gif align=middle><FONT 
color=#ffffff><B>Date</B></FONT></TD></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 bgcolor=<?php if ($this->_sections['v']['rownum'] % 2 != 0): ?>#f2f2f2<?php else: ?>#f2f2f2<?php endif; ?>>
  <td align=center>
   <?php if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['vote'] == 0): ?><img src="images/r0.gif" alt="Very Bad" title="Very Bad"><?php endif; ?>
   <?php if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['vote'] == 1): ?><img src="images/r1.gif" alt="Bad" title="Bad"><?php endif; ?>
   <?php if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['vote'] == 2): ?><img src="images/r2.gif" alt="Good" title="Good"><?php endif; ?>
   <?php if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['vote'] == 3): ?><img src="images/r3.gif" alt="Very Good" title="Very Good"><?php endif; ?>
  </td>
  <td align="center"><?php if (show_vote_flag ( $this->_tpl_vars['votes'][$this->_sections['v']['index']]['ipall'] )):  endif; ?> <?php echo $this->_tpl_vars['votes'][$this->_sections['v']['index']]['ip']; ?>
</td>
  <td align="center"><?php echo $this->_tpl_vars['votes'][$this->_sections['v']['index']]['email']; ?>
</td>
  <td align=center><?php echo $this->_tpl_vars['votes'][$this->_sections['v']['index']]['fdate']; ?>
</td>
</tr>
<?php if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['comment']): ?>
<tr>
  <td>&nbsp;</td>
  <td colspan=3 align="left"><img src="images/vcom.gif" alt=""> <font color="<?php if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['vote'] == 0): ?>red<?php endif;  if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['vote'] == 1): ?>orange<?php endif;  if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['vote'] == 2): ?>#CBA903<?php endif;  if ($this->_tpl_vars['votes'][$this->_sections['v']['index']]['vote'] == 3): ?>green<?php endif; ?>"><?php echo $this->_tpl_vars['votes'][$this->_sections['v']['index']]['comment']; ?>
</td>
</tr>
<?php endif;  endfor; endif; ?>

</TBODY></TABLE>

<?php endif; ?>