<?php
echo<<<PPPRINT
<!-- BEGIN TEMPLATE: comshow.tmpl -->
<table cellpadding="3" cellspacing="1" border="0" width="96%" class="{$Style['tablesurround']}" align="center">
<tr>
<td class="{$Style['menubar']}" valign="middle">
    &raquo; {$Globals['pp_lang']['numcoms']} : $totalrows - {$Globals['pp_lang']['viewing']} 10 {$Globals['pp_lang']['perpage']}
</td>
</tr>
</table>
<br />
PPPRINT;

for ( $y = 0; $y < $x; $y++ ) {
echo<<<PPPRINT
      <table width="96%" border="0" align="center" cellpadding="5" cellspacing="1" class="{$Style['tablesurround']}">
        <tr>
            <td width="90%" align="left" class="{$Style['menubar']}">{$Globals['pp_lang']['lastcomment']} <span class="{$Style['small']}">{$Globals['pp_lang']['by']} {$comrow['username'][$y]} - {$Globals['pp_lang']['posted']}: {$comrow['ccdate'][$y]} {$comrow['cclock'][$y]}</span></td>
            <td width="10%" align="right" class="{$Style['menubar']}" nowrap="nowrap"><strong>[ {$comrow['post'][$y]} ]&nbsp;</strong></td>
        </tr>
      </table>
      <table width="96%" border="0" align="center" cellpadding="5" cellspacing="1" class="{$Style['tableborders']}">
        <tr>
          <td class="{$Style['tddetails']}" align="center" valign="middle" width="200">
            {$comrow['thumb'][$y]}<br /><br />
            <span class="{$Style['small']}">{$Globals['pp_lang']['dimensions']}: {$comrow['width'][$y]} x {$comrow['height'][$y]}<br /><br />
            {$Globals['pp_lang']['views']}: {$comrow['views'][$y]}<br /><br />
            {$Globals['pp_lang']['filesize']}: {$comrow['filesize'][$y]}</span>
          </td>
          <td align="left" valign="top" class="{$Style['tddetails']}">
            {$comrow['rowcomments'][$y]}
          </td>
        </tr>
      </table>
      <table width="96%"  border="0" align="center" cellpadding="5" cellspacing="1" class="{$Style['tableborders']}">
        <tr>
          <td class="{$Style['tddetails']}" width="20%" align="left"><span class="{$Style['small']}"><strong>{$Globals['pp_lang']['photodetail']}</strong>: &quot;{$comrow['title'][$y]}&quot; {$Globals['pp_lang']['by']} {$comrow['user'][$y]} - {$Globals['pp_lang']['posted']}: {$comrow['ppdate'][$y]} {$comrow['ratingicon'][$y]} {$comrow['rating'][$y]}</span></td>
        </tr>
      </table>
      <br />
PPPRINT;
}

if ( $nextlink || $prevlink ) {
echo<<<PPPRINT
      <table class="{$Style['tablesurround']}" width="25%" border="0" cellpadding="0" cellspacing="1" align="center">
          <tr>
            <td class="{$Style['menubar']}" height="20" align="center">$prevlink$nextlink</td>
          </tr>
      </table><br />
PPPRINT;
}

echo<<<PPPRINT
<!-- END TEMPLATE: comshow.tmpl -->
PPPRINT;

?>