<?php
if ( count($compal['comment']) > 0 ) {
echo<<<PPPRINT
<!-- BEGIN TEMPLATE: commentspal.tmpl -->
    $ppopenside
        <tr>
        <td colspan="2" align="center" class="{$Style['menubar']}">
            <span class="{$Style['medium']}"><b>{$Globals['pp_lang']['recentcom']}</b> (<a href="{$Globals['maindir']}/comshow.php">{$Globals['pp_lang']['more']}</a>...)</span>
        </td>
        </tr>
PPPRINT;

for ( $x=0; $x < count($compal['comment']); $x++ ) {
echo<<<PPPRINT
        <tr>
        <td class="{$Style['tddetails']}" align="left">
            <span class="{$Style['small']}">{$compal['comment'][$x]}<br />by <a href="{$Globals['maindir']}/member.php?uid={$compal['userid'][$x]}">{$compal['username'][$x]}</a></span>
        </td>
        <td class="{$Style['tddetails']}" align="center"><span class="{$Style['small']}"><a href="{$compal['link'][$x]}">{$compal['thumblink'][$x]}</a></span></td>
        </tr>
PPPRINT;
}

echo<<<PPPRINT
    $ppcloseside
<!-- END TEMPLATE: commentspal.tmpl -->
PPPRINT;
}
?>