Rev 228 Rev 229
1 <p class="sgNavBar sgTopNavBar"> 1 <p class="sgNavBar sgTopNavBar">
2 <?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink("showgalleryhits")." | "; ?> 2 <?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink("showgalleryhits")." | "; ?>
3 <?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink("showgalleryhits"); ?> 3 <?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink("showgalleryhits"); ?>
4 <?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink("showgalleryhits"); ?> 4 <?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink("showgalleryhits"); ?>
5 </p> 5 </p>
6   6  
7 <h1><?php echo $sg->gallery->name(); ?></h1> 7 <h1><?php echo $sg->gallery->name(); ?></h1>
8   8  
9 <div class="sgContainer"> 9 <div class="sgContainer">
10 <div class="sgContent"> 10 <div class="sgContent">
11 <table class="sgList"> 11 <table class="sgList">
12 <tr><th><?php echo $sg->translator->_g("Gallery 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> 12 <tr><th><?php echo $sg->translator->_g("Gallery 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->galleries); ?> 13 <?php $maxhits = $sg->getMaxHits($sg->gallery->galleries); ?>
14 <?php foreach($sg->gallery->galleries as $index => $gal): ?> 14 <?php foreach($sg->gallery->galleries as $index => $gal): ?>
15 <tr class="sgRow<?php echo $index%2 ?>"> 15 <tr class="sgRow<?php echo $index%2 ?>">
16 <td><?php echo $gal->nameLink($gal->isGallery()?"showgalleryhits":"showimagehits"); ?> (<?php echo $gal->idEntities() ?>)</td> 16 <td><?php echo $gal->nameLink($gal->isGallery()?"showgalleryhits":"showimagehits"); ?> (<?php echo $gal->idEntities() ?>)</td>
17 <td align="right"><?php echo $gal->hits; ?></td> 17 <td align="right"><?php echo $gal->hits; ?></td>
18 <td align="right" title="<?php echo $gal->lasthit==0 ? "n/a" : date("Y-m-d H:i:s",$gal->lasthit) ?>"><?php echo $gal->lasthit==0 ? "n/a" : date("D j H:i",$gal->lasthit) ?></td> 18 <td align="right" title="<?php echo $gal->lasthit==0 ? "n/a" : date("Y-m-d H:i:s",$gal->lasthit) ?>"><?php echo $gal->lasthit==0 ? "n/a" : date("D j H:i",$gal->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(($gal->hits/$maxhits)*300) ?>" alt="" /></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(($gal->hits/$maxhits)*300) ?>" alt="" /></td>
20 </tr> 20 </tr>
21 <?php endforeach; ?> 21 <?php endforeach; ?>
22 </table> 22 </table>
23 23
24 </div> 24 </div>
25 </div> 25 </div>