Rev Author Line No. Line
228 kaklik 1 <p class="sgNavBar sgTopNavBar">
2 <?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink()." | "; ?>
3 <?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink(); ?>
4 <?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink(); ?>
5 </p>
6  
7 <h2 class="sgTitle"><?php echo $sg->gallery->name(); ?></h2>
8  
9 <div class="sgContainer">
10 <div class="sgTab"><?php echo $sg->galleryTab()?></div>
11 <div class="sgContent">
12 <form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
13 <input type="hidden" name="action" value="multi" />
14 <input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEncoded(); ?>" />
15 <div class="sgGallery">
16 <?php echo $sg->translator->_g("With selected:"); ?>
17 <input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Copy or move"); ?>" />
18 <input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Delete"); ?>" />
19 <input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Re-index"); ?>" />
20 </div>
21 <?php for($index = $sg->gallery->startat; $index < $sg->gallery->galleryCountSelected()+$sg->gallery->startat; $index++): ?>
22 <div class="sgGallery"><table>
23 <tr valign="top">
24 <td><input type="checkbox" class="checkbox" name="sgGalleries[]" value="<?php echo $sg->gallery->galleries[$index]->idEntities(); ?>" /></td>
25 <td class="sgGalleryThumbnail"><?php echo $sg->gallery->galleries[$index]->thumbnailHTML() ?></td>
26 <td>
27 <?php echo $sg->gallery->galleries[$index]->name() ?> - <?php echo $sg->gallery->galleries[$index]->itemCountText() ?><br />
28 <?php
29 echo '<a href="'.$sg->formatAdminURL("view",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|View gallery")."</a> |\n";
30 echo '<a href="'.$sg->formatAdminURL("editgallery",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Edit gallery")."</a> |\n";
31 echo '<a href="'.$sg->formatAdminURL("editpermissions",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Access control")."</a> |\n";
32 echo '<a href="'.$sg->formatAdminURL("deletegallery",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Delete gallery")."</a> |\n";
33 echo '<a href="'.$sg->formatAdminURL("newgallery",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|New subgallery")."</a> |\n";
34 echo '<a href="'.$sg->formatAdminURL("reindex",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Re-index gallery")."</a> |\n";
35 //echo '<a href="'.$sg->formatAdminURL("newimage",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|New image")."</a> |\n";
36 echo '<a href="'.$sg->formatAdminURL("changethumbnail",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Change thumbnail")."</a>\n";
37 ?>
38 </td>
39 </tr>
40 </table></div>
41 <?php endfor; ?>
42 </form>
43 </div>
44 </div>
45  
46  
47 <p>
48 <?php foreach($sg->gallery->detailsArray() as $key => $value): ?>
49 <strong><?php echo $key ?>:</strong> <?php echo $value ?><br />
50 <?php endforeach; ?>
51 </p>