Location: PHPKode > projects > PowerMovieList > powermovielist-0_14_beta/templates/comments.tpl
{cycle values="row1,row2" print=false advance=false}
<a name='comment'></a>
<table width='100%' border='0' cellpadding='3' cellspacing='1' class='tblback'>
  <tr class='top'>
    <td align=center colspan='3'>{$lang.strUserComments} for {$MovieTitle}</td>
  </tr>
{foreach key=k item=i from=$CommentData}
  <tr class='{cycle}'>
    <td valign='top' width='100' align='center'>{$lang.strDloadBy} <b>{$i.name}</b><br>{$i.Date}</td>
    <td valign='top'>{$i.Text}</td>
    {if $ActiveUserRights >= 4}{* at least moderator rights *}
    <td width='8' valign='top'><a href='popup.php{$CFG.GlobalArg}ID={$ID}&Comment={$i.ID}&action=delcomment'>D</a></td>
    {/if}
  </tr>
{foreachelse}
  <tr class='{cycle}'>
    <td align=center colspan='3'>({$lang.strNoCommentsFound})</td>
  </tr>
{/foreach}
  <tr class='{cycle}'>
    <td align=center colspan='3'><a href='popup.php{$CFG.GlobalArg}ID={$ID}&action=addcomment'>{$lang.strDloadAddComment}</a></td>
  </tr>
  <tr class='{cycle}'>
    <td align=center colspan='3'><a href='popup.php{$CFG.GlobalArg}ID={$ID}'>{$lang.strBack}</a></td>
  </tr>
</table>
Return current item: PowerMovieList