Rev Author Line No. Line
228 kaklik 1 <p class="sgNavBar sgTopNavBar">
2 <?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink("showimagehits")." | "; ?>
3 <?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink("showimagehits"); ?>
4 <?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink("showimagehits"); ?>
5 </p>
6  
7 <h1><?php echo $sg->gallery->name(); ?></h1>
8  
9 <div class="sgContainer">
10 <div class="sgContent">
11 <table class="sgList">
12 <tr><th><?php echo $sg->translator->_g("Image name") ?></th><th><?php echo $sg->translator->_g("hits table|Hits") ?></th><th><?php echo $sg->translator->_g("hits table|Last hit") ?></th><th><?php echo $sg->translator->_g("hits table|Graph") ?></th></tr>
13 <?php $maxhits = $sg->getMaxHits($sg->gallery->images); ?>
14 <?php foreach($sg->gallery->images as $index => $img): ?>
15 <tr class="sgRow<?php echo $index%2 ?>">
16 <td><?php echo $img->nameLink(); ?> (<?php echo $img->id ?>)</td>
17 <td align="right"><?php echo empty($img->hits) ? "0" : $img->hits ?></td>
18 <td align="right" title="<?php echo empty($img->lasthit) ? "n/a" : date("Y-m-d H:i:s",$img->lasthit) ?>"><?php echo empty($img->lasthit) ? "n/a" : date("D j H:i",$img->lasthit) ?></td>
19 <td><img src="<?php echo $sg->config->base_url.$sg->config->pathto_admin_template ?>images/graph.gif" height="8" width="<?php echo $maxhits==0 ? "0" : floor(($img->hits/$maxhits)*300) ?>" /></td>
20 </tr>
21 <?php endforeach; ?>
22 </table>
23 </div>
24 </div>