No changes between revisions
/photogallery/singapore_gallery_files/templates/admin_default/admin.ini
0,0 → 1,88
; singapore admin configuration file <http://singapore.sourceforge.net>
;
; This is a special case of a template.ini file
;
 
[Functionality]
;
; these settings should not be changed
;
 
track_views = false
show_views = true
use_mod_rewrite = off
;mod rewrite doesn't work in admin mode
 
 
[Advanced]
;
; these settings must not be changed
;
 
index_file_url = "admin.php?action=view&amp;"
 
[GET variable names]
;
; these settings must not be changed
;
 
url_gallery = "gallery"
url_image = "image"
url_startat = "startat"
url_action = "action"
url_lang = "lang"
url_template = "template"
 
[Template]
 
;Option descriptions have been grouped together here.
;Do not uncomment the following lines, they are for illustration only.
;
;thumb_width_*
; Width in pixels of thumbnails generated by the script.
; This option is affected by the thumb_crop_* option (see below).
;
;thumb_height_*
; Height in pixels of thumbnails generated by the script.
; This option is affected by the thumb_crop_* option (see below).
;
;thumb_crop_*
; By default, width and height are maximum dimensions and images will be
; resized, maintaining the same aspect ratio, to fit within these limits.
; Turn force_size on to make the script crop images to the specified size.
;
;*_gallery
; These options affect gallery pages (those that contain sub-galleries).
;
;*_album
; These options affect album pages (those that contain only images).
;
;*_preview
; These options affect the preview thumbnails displayed on image pages.
;
;*_image
; These options affect full size display images and are only used if
; full_image_resize is on in singapore.ini
 
thumb_width_gallery = 50
thumb_height_gallery = 50
thumb_crop_gallery = off
thumb_number_gallery = 10
;Maximum number of galleries to show on one gallery page.
 
thumb_width_album = 100
thumb_height_album = 100
thumb_crop_album = off
thumb_number_album = 20
;Maximum number of image thumbnails to show on one album page.
 
thumb_width_preview = 50
thumb_height_preview = 50
thumb_crop_preview = off
thumb_number_preview = 5
;Maximum number of preview thumbnails to display before and
;after current image in image view (eg a value of 2 here
;will result in 5 thumbnails (2 before + current + 2 after)
thumb_width_image = 700
thumb_height_image = 500
/photogallery/singapore_gallery_files/templates/admin_default/changethumbnail.tpl.php
0,0 → 1,32
<h1><?php echo $sg->translator->_g("Choose Thumbnail") ?></h1>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="changethumbnail" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
<p><?php echo $sg->translator->_g("Choose the filename of the image used to represent this gallery.") ?></p>
 
<?php /*<p><select name="sgThumbName">
<option value="__none__"<?php if($sg->gallery->filename == "__none__") echo ' selected="true"'; ?>><?php echo $sg->translator->_g("thumbnail|None") ?></option>
<option value="__random__"<?php if($sg->gallery->filename == "__random__") echo ' selected="true"'; ?>><?php echo $sg->translator->_g("thumbnail|Random") ?></option>
<?php
foreach($sg->gallery->images as $img) {
echo '<option value="'.$img->idEntities().'"';
if($sg->gallery->filename == $img->id) echo ' selected="true"';
echo '>'.$img->name().' ('.$img->idEntities().")</option>\n ";
}
?>
</select></p> */ ?>
<p>
<label><input type="radio" name="sgThumbName" value="__none__"<?php if($sg->gallery->filename == "__none__") echo ' checked="true"'; ?>><?php echo $sg->translator->_g("thumbnail|None") ?></label>
<label><input type="radio" name="sgThumbName" value="__random__"<?php if($sg->gallery->filename == "__random__") echo ' checked="true"'; ?>><?php echo $sg->translator->_g("thumbnail|Random") ?></label>
<?php
foreach($sg->gallery->images as $img) {
echo '<label><input type="radio" name="sgThumbName" value="'.$img->idEntities().'"';
if($sg->gallery->filename == $img->id) echo ' checked="true"';
echo '>'.$img->thumbnailHTML("", "preview")."</label>\n ";
}
?>
</p>
<p><input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|OK") ?>">
<input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|Cancel") ?>"></p>
</form>
/photogallery/singapore_gallery_files/templates/admin_default/confirm.tpl.php
0,0 → 1,15
<h1><?php echo $confirmTitle ?></h1>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<?php
foreach($_REQUEST as $name => $value)
if(is_array($value))
foreach($value as $subname => $subvalue)
echo "<input type=\"hidden\" name=\"{$name}[{$subname}]\" value=\"$subvalue\" />\n";
else
echo "<input type=\"hidden\" name=\"$name\" value=\"$value\" />\n";
?>
<p><?php echo $confirmMessage ?></p>
<p><input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|OK") ?>">
<input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|Cancel") ?>"></p>
</form>
/photogallery/singapore_gallery_files/templates/admin_default/editgallery.tpl.php
0,0 → 1,57
<h1><?php echo $sg->translator->_g("Edit Gallery") ?></h1>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="savegallery" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
<input type="hidden" name="sgCategories" value="<?php echo $sg->gallery->categories ?>" />
 
<table class="formTable">
<tr>
<td><?php echo $sg->translator->_g("Thumbnail") ?></td>
<td><div class="inputbox sgImageInput">
<?php
if($sg->gallery->filename == "__random__")
echo nl2br($sg->translator->_g("Random\nthumbnail"));
else
echo $sg->gallery->thumbnailHTML();
?>
<br />
<a href="<?php echo $sg->formatAdminURL("changethumbnail",$sg->gallery->idEncoded()) ?>"><?php echo $sg->translator->_g("thumbnail|Change...") ?></a>
</div></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Gallery name") ?></td>
<td><input type="text" name="sgGalleryName" value="<?php echo $sg->gallery->name ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Artist name") ?></td>
<td><input type="text" name="sgArtistName" value="<?php echo $sg->gallery->artist ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Email") ?></td>
<td><input type="text" name="sgArtistEmail" value="<?php echo $sg->gallery->email ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Date") ?></td>
<td><input type="text" name="sgDate" value="<?php echo $sg->gallery->date ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Copyright") ?></td>
<td><input type="text" name="sgCopyright" value="<?php echo $sg->gallery->copyright ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Summary") ?></td>
<td><textarea name="sgSummary" cols="70" rows="3"><?php echo $sg->gallery->summaryStripped() ?></textarea></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Description") ?></td>
<td><textarea name="sgGalleryDesc" cols="70" rows="8"><?php echo $sg->gallery->descriptionStripped() ?></textarea></td>
</tr>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td>
</tr>
</table>
</form>
/photogallery/singapore_gallery_files/templates/admin_default/editimage.tpl.php
0,0 → 1,67
<h1><?php echo $sg->translator->_g("Edit Image") ?></h1>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="saveimage" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
<input type="hidden" name="image" value="<?php echo $sg->image->idEntities() ?>" />
<input type="hidden" name="sgThumbnail" value="<?php echo $sg->image->thumbnail ?>" />
<input type="hidden" name="sgCategories" value="<?php echo $sg->image->categories ?>" />
<table class="formTable">
<tr>
<td><?php echo $sg->translator->_g("Image") ?></td>
<td><div class="inputbox sgImageInput"><?php echo $sg->image->thumbnailHTML() ?></div></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Image name") ?></td>
<td><input type="text" name="sgImageName" value="<?php echo $sg->image->name ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Artist name") ?></td>
<td><input type="text" name="sgArtistName" value="<?php echo $sg->image->artist ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Email") ?></td>
<td><input type="text" name="sgArtistEmail" value="<?php echo $sg->image->email ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Location") ?></td>
<td><input type="text" name="sgLocation" value="<?php echo $sg->image->location ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Date") ?></td>
<td><input type="text" name="sgDate" value="<?php echo $sg->image->date ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Copyright") ?></td>
<td><input type="text" name="sgCopyright" value="<?php echo $sg->image->copyright ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Description") ?></td>
<td><textarea name="sgImageDesc" cols="70" rows="8"><?php echo $sg->image->descriptionStripped() ?></textarea></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Camera") ?></td>
<td><input type="text" name="sgField01" value="<?php echo $sg->image->camera ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Lens") ?></td>
<td><input type="text" name="sgField02" value="<?php echo $sg->image->lens ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Film") ?></td>
<td><input type="text" name="sgField03" value="<?php echo $sg->image->film ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Darkroom manipulation") ?></td>
<td><input type="text" name="sgField04" value="<?php echo $sg->image->darkroom ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Digital manipulation") ?></td>
<td><input type="text" name="sgField05" value="<?php echo $sg->image->digital ?>" size="40" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td>
</tr>
</table>
</form>
/photogallery/singapore_gallery_files/templates/admin_default/editpass.tpl.php
0,0 → 1,25
<h1><?php echo $sg->translator->_g("Change Password") ?></h1>
<p><?php echo $sg->translator->_g("Please choose a new password between 6 and 16 characters in length.") ?></p>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="savepass" />
<input type="hidden" name="sgUsername" value="<?php echo $sg->user->username ?>" />
<table>
<tr>
<td><?php echo $sg->translator->_g("Current password:") ?></td>
<td><input type="password" name="sgOldPass" size="23" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("New password:") ?></td>
<td><input type="password" name="sgNewPass1" size="23" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Confirm password:") ?></td>
<td><input type="password" name="sgNewPass2" size="23" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td>
</tr>
</table>
</form>
/photogallery/singapore_gallery_files/templates/admin_default/editpermissions.tpl.php
0,0 → 1,95
<h1><?php echo $sg->translator->_g("Access Control") ?></h1>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="savepermissions" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
 
<table class="formTable">
<tr>
<td><?php echo $sg->translator->_g("Owner") ?></td>
<td><?php
if($sg->user->isAdmin())
echo '<input type="text" name="sgOwner" value="'.$sg->gallery->owner.'" />';
else
echo '<strong>'.$sg->gallery->owner.'</strong>';
?></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Groups") ?></td>
<td><input type="text" name="sgGroups" value="<?php echo $sg->gallery->groups ?>" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("access control|Read") ?></td>
<td><div class="inputbox">
<?php
if(($sg->gallery->permissions & SG_IHR_READ) == SG_IHR_READ) $checked = 0;
elseif($sg->gallery->permissions & SG_GRP_READ) $checked = 1;
elseif($sg->gallery->permissions & SG_WLD_READ) $checked = 2;
else $checked = 3;
?>
<label for="sgOwnRead"><input type="radio" class="radio" id="sgOwnRead" name="sgRead" value="owner" <?php if($checked == 3) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Owner") ?></label>
<label for="sgGrpRead"><input type="radio" class="radio" id="sgGrpRead" name="sgRead" value="group" <?php if($checked == 1) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Group") ?></label>
<label for="sgWldRead"><input type="radio" class="radio" id="sgWldRead" name="sgRead" value="world" <?php if($checked == 2) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|World") ?></label>
<?php if(!$sg->gallery->isRoot()): ?>
<label for="sgIhrRead"><input type="radio" class="radio" id="sgIhrRead" name="sgRead" value="inherit" <?php if($checked == 0) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Inherit") ?></label>
<?php endif; ?>
</div></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("access control|Edit") ?></td>
<td><div class="inputbox">
<?php
if(($sg->gallery->permissions & SG_IHR_EDIT) == SG_IHR_EDIT) $checked = 0;
elseif($sg->gallery->permissions & SG_GRP_EDIT) $checked = 1;
elseif($sg->gallery->permissions & SG_WLD_EDIT) $checked = 2;
else $checked = 3;
?>
<label for="sgOwnEdit"><input type="radio" class="radio" id="sgOwnEdit" name="sgEdit" value="owner" <?php if($checked == 3) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Owner") ?></label>
<label for="sgGrpEdit"><input type="radio" class="radio" id="sgGrpEdit" name="sgEdit" value="group" <?php if($checked == 1) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Group") ?></label>
<label for="sgWldEdit"><input type="radio" class="radio" id="sgWldEdit" name="sgEdit" value="world" <?php if($checked == 2) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|World") ?></label>
<?php if(!$sg->gallery->isRoot()): ?>
<label for="sgIhrEdit"><input type="radio" class="radio" id="sgIhrEdit" name="sgEdit" value="inherit" <?php if($checked == 0) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Inherit") ?></label>
<?php endif; ?>
</div></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("access control|Add") ?></td>
<td><div class="inputbox">
<?php
if(($sg->gallery->permissions & SG_IHR_ADD) == SG_IHR_ADD) $checked = 0;
elseif($sg->gallery->permissions & SG_GRP_ADD) $checked = 1;
elseif($sg->gallery->permissions & SG_WLD_ADD) $checked = 2;
else $checked = 3;
?>
<label for="sgOwnAdd"><input type="radio" class="radio" id="sgOwnAdd" name="sgAdd" value="owner" <?php if($checked == 3) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Owner") ?></label>
<label for="sgGrpAdd"><input type="radio" class="radio" id="sgGrpAdd" name="sgAdd" value="group" <?php if($checked == 1) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Group") ?></label>
<label for="sgWldAdd"><input type="radio" class="radio" id="sgWldAdd" name="sgAdd" value="world" <?php if($checked == 2) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|World") ?></label>
<?php if(!$sg->gallery->isRoot()): ?>
<label for="sgIhrAdd"><input type="radio" class="radio" id="sgIhrAdd" name="sgAdd" value="inherit" <?php if($checked == 0) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Inherit") ?></label>
<?php endif; ?>
</div></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("access control|Delete") ?></td>
<td><div class="inputbox">
<?php
if(($sg->gallery->permissions & SG_IHR_DELETE) == SG_IHR_DELETE) $checked = 0;
elseif($sg->gallery->permissions & SG_GRP_DELETE) $checked = 1;
elseif($sg->gallery->permissions & SG_WLD_DELETE) $checked = 2;
else $checked = 3;
?>
<label for="sgOwnDelete"><input type="radio" class="radio" id="sgOwnDelete" name="sgDelete" value="owner" <?php if($checked == 3) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Owner") ?></label>
<label for="sgGrpDelete"><input type="radio" class="radio" id="sgGrpDelete" name="sgDelete" value="group" <?php if($checked == 1) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Group") ?></label>
<label for="sgWldDelete"><input type="radio" class="radio" id="sgWldDelete" name="sgDelete" value="world" <?php if($checked == 2) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|World") ?></label>
<?php if(!$sg->gallery->isRoot()): ?>
<label for="sgIhrDelete"><input type="radio" class="radio" id="sgIhrDelete" name="sgDelete" value="inherit" <?php if($checked == 0) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Inherit") ?></label>
<?php endif; ?>
</div></td>
</tr>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td>
</tr>
</table>
</form>
/photogallery/singapore_gallery_files/templates/admin_default/editprofile.tpl.php
0,0 → 1,27
<h1><?php echo $sg->translator->_g("Edit Profile"); ?></h1>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<table class="formTable">
<input type="hidden" name="action" value="saveprofile" />
<input type="hidden" name="user" value="<?php echo $sg->user->username; ?>" />
<tr>
<td><?php echo $sg->translator->_g("Username"); ?></td>
<td><strong><?php echo $sg->user->username; ?></strong></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Email"); ?></td>
<td><input type="input" name="sgEmail" value="<?php echo $sg->user->email; ?>" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Full name"); ?></td>
<td><input type="input" name="sgFullname" value="<?php echo $sg->user->fullname; ?>" /></td>
</tr>
<tr><td><?php echo $sg->translator->_g("Description"); ?></td>
<td><input type="input" name="sgDescription" value="<?php echo $sg->user->description; ?>" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td>
</tr>
</table>
</form>
/photogallery/singapore_gallery_files/templates/admin_default/edituser.tpl.php
0,0 → 1,34
<h1><?php echo $sg->translator->_g("User Management"); ?></h1>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<table class="formTable">
<input type="hidden" name="action" value="saveuser" />
<input type="hidden" name="user" value="<?php echo $_REQUEST["user"]; ?>" />
<?php
$users = $sg->io->getUsers();
for($i=0; $i<count($users); $i++)
if($users[$i]->username == $_REQUEST["user"]) {
$usr = $users[$i];
break;
}
echo "<tr><td>".$sg->translator->_g("Username")."</td><td><strong>".$usr->username."</strong></td></tr>\n";
if($sg->user->isAdmin())
echo "<tr><td>".$sg->translator->_g("Type").'</td><td>'.
'<label for="sgTypeAdmin"><input type="radio" class="radio" id="sgTypeAdmin" name="sgType" value="admin"'.($usr->permissions & SG_ADMIN ? ' checked="true"' : "").' />'.$sg->translator->_g("Administrator")."</label><br />\n".
'<label for="sgTypeUser"><input type="radio" class="radio" id="sgTypeUser" name="sgType" value="user"'. ($usr->permissions & SG_ADMIN ? "" : ' checked="true"').' />'.$sg->translator->_g("User")."</label></td></tr>\n";
if($sg->user->isAdmin())
echo "<tr><td>".$sg->translator->_g("Groups").'</td><td><input type="input" name="sgGroups" value="'.$usr->groups."\" /></td></tr>\n";
echo "<tr><td>".$sg->translator->_g("Email").'</td><td><input type="input" name="sgEmail" value="'.$usr->email."\" /></td></tr>\n";
echo "<tr><td>".$sg->translator->_g("Full name").'</td><td><input type="input" name="sgFullname" value="'.$usr->fullname."\" /></td></tr>\n";
echo "<tr><td>".$sg->translator->_g("Description").'</td><td><input type="input" name="sgDescription" value="'.$usr->description."\" /></td></tr>\n";
if($sg->user->isAdmin() && !$usr->isGuest())
echo "<tr><td>".$sg->translator->_g("Password").'</td><td><input type="input" name="sgPassword" value="**********" /></td></tr>'."\n";
?>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td>
</tr>
</table>
</form>
/photogallery/singapore_gallery_files/templates/admin_default/footer.tpl.php
0,0 → 1,10
 
<div id="footer"><p>
<?php echo $sg->allRightsReserved() ?>
<br />
<?php echo $sg->poweredByText() ?>
<?php echo $sg->scriptExecTimeText() ?>
</p></div>
 
</body>
</html>
/photogallery/singapore_gallery_files/templates/admin_default/galleryhits.tpl.php
0,0 → 1,25
<p class="sgNavBar sgTopNavBar">
<?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink("showgalleryhits")." | "; ?>
<?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink("showgalleryhits"); ?>
<?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink("showgalleryhits"); ?>
</p>
 
<h1><?php echo $sg->gallery->name(); ?></h1>
 
<div class="sgContainer">
<div class="sgContent">
<table class="sgList">
<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>
<?php $maxhits = $sg->getMaxHits($sg->gallery->galleries); ?>
<?php foreach($sg->gallery->galleries as $index => $gal): ?>
<tr class="sgRow<?php echo $index%2 ?>">
<td><?php echo $gal->nameLink($gal->isGallery()?"showgalleryhits":"showimagehits"); ?> (<?php echo $gal->idEntities() ?>)</td>
<td align="right"><?php echo $gal->hits; ?></td>
<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>
<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>
</tr>
<?php endforeach; ?>
</table>
</div>
</div>
/photogallery/singapore_gallery_files/templates/admin_default/header.tpl.php
0,0 → 1,39
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $sg->pageTitle() ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo $sg->config->base_url.$sg->config->pathto_admin_template ?>main.css" />
<!--
This page was generated by singapore <http://singapore.sourceforge.net>
singapore is free software licensed under the terms of the GNU GPL.
-->
</head>
 
<body>
 
<div id="crumb">
<?php echo $sg->crumbLine() ?>
</div>
 
<div id="header"><img src="<?php echo $sg->config->base_url.$sg->config->pathto_admin_template ?>images/header.gif" alt="<?php echo $sg->config->gallery_name ?>" /></div>
 
<div id="sgAdminBar">
<?php
$sections = $sg->adminLinksArray();
foreach($sections[0] as $text => $url): ?>
<a href="<?php echo $url ?>"><?php echo $text ?></a>
<?php endforeach; ?>
<?php for($i=1;$i<count($sections);$i++): ?>
<span class="sgAdminBarSeparator"></span>
<?php foreach($sections[$i] as $text => $url): ?>
<a href="<?php echo $url ?>"><?php echo $text ?></a>
<?php endforeach; ?>
<?php endfor; ?>
</div>
 
<?php echo $sg->showMessages(); ?>
 
<!-- start of generated content -->
 
/photogallery/singapore_gallery_files/templates/admin_default/imagehits.tpl.php
0,0 → 1,24
<p class="sgNavBar sgTopNavBar">
<?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink("showimagehits")." | "; ?>
<?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink("showimagehits"); ?>
<?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink("showimagehits"); ?>
</p>
 
<h1><?php echo $sg->gallery->name(); ?></h1>
 
<div class="sgContainer">
<div class="sgContent">
<table class="sgList">
<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>
<?php $maxhits = $sg->getMaxHits($sg->gallery->images); ?>
<?php foreach($sg->gallery->images as $index => $img): ?>
<tr class="sgRow<?php echo $index%2 ?>">
<td><?php echo $img->nameLink(); ?> (<?php echo $img->id ?>)</td>
<td align="right"><?php echo empty($img->hits) ? "0" : $img->hits ?></td>
<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>
<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>
</tr>
<?php endforeach; ?>
</table>
</div>
</div>
/photogallery/singapore_gallery_files/templates/admin_default/images/blank.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/admin_default/images/graph.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/admin_default/images/header.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/admin_default/index.tpl.php
0,0 → 1,21
<?php
 
/**
* Default singapore admin template.
*
* @author Tamlyn Rhodes <tam at zenology dot co dot uk>
* @copyright (c)2003, 2004 Tamlyn Rhodes
* @version 1.0
*/
 
 
//include header file
include $sg->config->base_path.$sg->config->pathto_admin_template."header.tpl.php";
 
//include selected file
include $sg->config->base_path.$sg->config->pathto_admin_template.$sg->includeFile.".tpl.php";
 
//include footer file
include $sg->config->base_path.$sg->config->pathto_admin_template."footer.tpl.php";
 
?>
/photogallery/singapore_gallery_files/templates/admin_default/login.tpl.php
0,0 → 1,22
<h1><?php echo $sg->translator->_g("Log In") ?></h1>
 
<p><?php echo $sg->translator->_g("Please enter your admin username and password below.") ?></p>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="login" />
<p>
<?php echo $sg->translator->_g("Username:") ?> <input type="text" name="sgUsername" />
<?php echo $sg->translator->_g("Password:") ?> <input type="password" name="sgPassword" />
<input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Go") ?>" />
</p>
</form>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="login" />
<input type="hidden" name="sgUsername" value="guest" />
<input type="hidden" name="sgPassword" value="password" />
<p>
<?php echo $sg->translator->_g("If you do not have a username then you may log in as a guest."); ?>
<input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Log in as guest"); ?>" />
</p>
</form>
/photogallery/singapore_gallery_files/templates/admin_default/main.css
0,0 → 1,231
body {
margin: 1em;
font: small sans-serif;
color: #000;
background-color: #fff;
}
 
p, td, th, li, h4 {
font: small sans-serif;
}
 
h1, h2, h3 {
color: #f60;
}
 
h1 {
font-size: large;
}
 
a:link, a:visited {
color: #09f;
text-decoration: underline;
}
 
a:hover {
text-decoration: none;
}
 
input, textarea, select, .inputbox {
border: 1px solid #f60;
color: #000;
background-color: #fff;
}
 
input.radio, input.checkbox {
border: none;
background-color: #fff;
}
 
input.button {
font-weight: bold;
border: 1px outset #fff;
color: #fff;
background-color: #f60;
}
 
label {
cursor: default;
}
 
 
#header {
}
 
#crumb {
}
 
#footer {
text-align: center;
}
 
a img {
border: 0;
}
 
/* image or gallery name header */
.sgTitle {
margin-bottom: 0;
}
 
/* image or gallery artist subheader */
.sgSubTitle {
margin-top: 0;
}
 
table.sgList {
background-color: #fff;
border: 1px solid #888;
width: 100%
}
 
tr.sgRow0 {
background-color: #f0f0f0;
margin: 1px;
}
 
tr.sgRow1 {
background-color: #e0e0e0;
margin: 1px;
}
 
table.formTable input, table.formTable textarea, table.formTable .inputbox {
width: 500px;
}
 
table.formTable td {
vertical-align: top;
}
 
table.formTable input.radio, table.formTable input.checkbox {
width: auto;
height: auto;
}
 
.sgImageInput {
text-align: center;
padding: 2px;
}
 
#sgAdminMessages {
background-color: #fff;
border: 1px dashed #000;
margin: 1em 0;
padding: 5px;
font-size: x-small;
}
 
#sgAdminMessages li.adminError {
list-style-image: url(images/error.gif);
margin-left: 20px;
}
 
#sgAdminMessages li.adminMessage {
list-style-image: url(images/message.gif);
margin-left: 20px;
}
 
#sgAdminBar {
background-color: #f0f0f0;
border: 1px solid #000;
margin: 1em 0 1em 0;
padding: 5px;
font-size: x-small;
}
 
#sgAdminBar a:link, #sgAdminBar a:visited, #sgAdminBar a:active {
color: #000;
font: x-small Verdana, sans-serif;
position: relative;
left: 1px;
top: 1px;
border: 1px solid #f0f0f0;
text-decoration: none;
padding: 2px;
}
 
#sgAdminBar a:hover {
position: relative;
left: 0px;
top: 0px;
border: 1px solid #000;
color: #000;
background-color: #fff;
}
 
span.sgAdminBarSeparator {
border-left: 1px solid #888;
width: 0px;
margin-right: 4px;
}
 
div.sgNavBar, p.sgNavBar {
text-align: center;
float: right;
}
 
 
div.sgContainer {
clear: both;
text-align: center;
}
 
div.sgTab {
padding: 0.25em;
text-align: left;
}
 
div.sgContent {
background-color: #f0f0f0;
border: 1px solid #000;
padding: 1em;
text-align: left;
}
 
table.sgContent {
margin-left: auto;
margin-right: auto;
}
 
div.sgGallery, div.sgThumbnail {
margin: 0.5em;
padding: 0.5em;
border: 1px solid #888;
background-color: #fff;
}
 
td.sgGalleryThumbnail {
width: 60px;
text-align: center;
}
 
p.sgGalleryTitle a {
font-weight: bold;
}
 
div.sgThumbnail {
float: left;
}
 
div.sgThumbnail table {
width: 110px;
height: 110px;
text-align: center;
vertical-align: middle;
}
 
div.stretcher {
clear: both;
}
 
img.sgImage {
border: 1px solid #000;
}
 
input.sgImageCheckbox {
position: absolute;
float: left;
z-index: 10;
}
/photogallery/singapore_gallery_files/templates/admin_default/manageusers.tpl.php
0,0 → 1,34
<h1><?php echo $sg->translator->_g("User Management"); ?></h1>
 
<?php if(!$sg->user->isAdmin()) echo '<p>'.$sg->translator->_g("You must be an administrator to access this area.").'</p>'; ?>
 
<table>
<?php
$users = $sg->io->getUsers();
foreach($users as $usr) {
echo "<tr>\n ";
echo "<td><strong>".$sg->translator->_g("Username")."</strong> ";
if($usr->permissions & SG_SUSPENDED) echo "<strike>";
if($usr->permissions & SG_ADMIN) echo "<u>";
echo $usr->username;
if($usr->permissions & SG_ADMIN) echo "</u>";
if($usr->permissions & SG_SUSPENDED) echo "</strike>";
echo "</td>\n ";
echo "<td><strong>".$sg->translator->_g("Email")."</strong> ".$usr->email."</td>\n ";
echo "<td><strong>".$sg->translator->_g("Full name")."</strong> ".$usr->fullname."</td>\n ";
echo '<td><a href="'.$sg->formatAdminURL("edituser", null, null, null, "&amp;user=".$usr->username).'">'.$sg->translator->_g("edit")."</a></td>\n ";
echo '<td><a href="'.$sg->formatAdminURL("deleteuser", null, null, null, "&amp;user=".$usr->username).'">'.$sg->translator->_g("delete")."</a></td>\n ";
echo '<td><a href="'.$sg->formatAdminURL("suspenduser", null, null, null, "&amp;user=".$usr->username).'">'.($usr->permissions & SG_SUSPENDED ? $sg->translator->_g("unsuspend") : $sg->translator->_g("suspend"))."</a></td>\n";
echo "</tr>\n";
}
 
?>
</table>
 
<h2><?php echo $sg->translator->_g("Create New User"); ?></h2>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post"><p>
<?php echo $sg->translator->_g("Username"); ?>
<input type="hidden" name="action" value="newuser" />
<input type="input" name="user" />
<input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Create"); ?>" />
</p></form>
/photogallery/singapore_gallery_files/templates/admin_default/menu.tpl.php
0,0 → 1,15
<p><?php echo $sg->translator->_g("Please choose an option:") ?></p>
 
<ul>
<li><a href="<?php echo $sg->formatAdminURL("view") ?>"><?php echo $sg->translator->_g("Manage galleries and images") ?></a></li>
<li><a href="<?php echo $sg->formatAdminURL("showgalleryhits") ?>"><?php echo $sg->translator->_g("View gallery hits") ?></a></li>
<?php if(!$sg->user->isGuest()): ?>
<li><a href="<?php echo $sg->formatAdminURL("editpass") ?>"><?php echo $sg->translator->_g("Change password") ?></a></li>
<li><a href="<?php echo $sg->formatAdminURL("editprofile") ?>"><?php echo $sg->translator->_g("My profile") ?></a></li>
<?php endif; ?>
<?php if($sg->user->isAdmin()): ?>
<li><a href="<?php echo $sg->formatAdminURL("manageusers") ?>"><?php echo $sg->translator->_g("Manage users") ?></a></li>
<?php /*<li><a href="<?php echo $sg->formatAdminURL("purgecache") ?>"><?php echo $sg->translator->_g("Purge cached thumbnails") ?></a></li>*/ ?>
<?php endif; ?>
<li><a href="<?php echo $sg->formatAdminURL("logout") ?>"><?php echo $sg->translator->_g("Log out of admin") ?></a></li>
</ul>
/photogallery/singapore_gallery_files/templates/admin_default/multimove.tpl.php
0,0 → 1,29
<h1><?php echo $sg->translator->_g("Move or Copy Items") ?></h1>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="multimove" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
<?php
if(isset($_REQUEST["sgGalleries"]))
foreach($_REQUEST["sgGalleries"] as $name => $value)
echo "<input type=\"hidden\" name=\"sgGalleries[$name]\" value=\"$value\" />\n";
elseif(isset($_REQUEST["sgImages"]))
foreach($_REQUEST["sgImages"] as $name => $value)
echo "<input type=\"hidden\" name=\"sgImages[$name]\" value=\"$value\" />\n";
?>
<p>Select the gallery to which you wish to move or copy the selected items.</p>
 
<p><select name="sgMoveTarget">
<?php
foreach($sg->allGalleriesArray() as $gal)
//if(strpos($gal->id, $sg->gallery->id) !== 0)
echo '<option value="'.$gal->idEntities().'">'.$gal->idEntities()." (".$gal->name().")</option>\n";
?>
</select></p>
<p>
<label><input type="radio" name="sgMoveType" value="copy" checked="true" /> <?php /*"*/ echo $sg->translator->_g("Copy") ?></label>
<label><input type="radio" name="sgMoveType" value="move" /> <?php /*"*/ echo $sg->translator->_g("Move") ?></label>
</p>
<p><input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|OK") ?>">
<input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|Cancel") ?>"></p>
</form>
/photogallery/singapore_gallery_files/templates/admin_default/newgallery.tpl.php
0,0 → 1,18
<h1><?php echo $sg->translator->_g("New Gallery") ?></h1>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="addgallery" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
 
<table class="formTable">
<tr>
<td><?php echo $sg->translator->_g("Identifier") ?></td>
<td><input type="text" name="newgallery" value="" size="40" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Create") ?>" /></td>
</tr>
</table>
</form>
/photogallery/singapore_gallery_files/templates/admin_default/newimage.tpl.php
0,0 → 1,52
<h1><?php echo $sg->translator->_g("New Image") ?></h1>
 
<?php if($sg->gallery->hasChildGalleries()) echo "<p>".$sg->translator->_g("This image will not be visible because this gallery is not an album: it contains child galleries.")."</p>"; ?>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data" method="post">
<input type="hidden" name="action" value="addimage" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
 
<table class="formTable">
<tr>
<td><input type="radio" class="radio" id="sgLocationChoiceSingle" name="sgLocationChoice" value="single" checked="true" /></td>
<td colspan="2"><label for="sgLocationChoiceSingle"><?php echo $sg->translator->_g("Upload single file") ?></label></td>
<tr>
<tr>
<td></td>
<td><?php echo $sg->translator->_g("Image file to upload:") ?></td>
<td><input type="file" name="sgImageFile" value="" size="40" /></td>
</tr>
<tr>
<td></td>
<td><?php echo $sg->translator->_g("Identifier:") ?></td>
<td>
<label for="sgNameChoiceSame"><input type="radio" class="radio" id="sgNameChoiceSame" name="sgNameChoice" value="same" checked="true" /> <?php echo $sg->translator->_g("Use filename of uploaded file.") ?></label><br />
<label for="sgNameChoiceNew"><input type="radio" class="radio" id="sgNameChoiceNew" name="sgNameChoice" value="new" /> <?php echo $sg->translator->_g("Specify different filename:") ?></label><br />
<input type="text" name="sgFileName" value="" size="40" /></td>
</tr>
<tr>
<td><input type="radio" class="radio" id="sgLocationChoiceMulti" name="sgLocationChoice" value="multi" /></td>
<td colspan="2"><label for="sgLocationChoiceMulti"><?php echo $sg->translator->_g("Upload multiple files") ?></label></td>
<tr>
<tr>
<td></td>
<td><?php echo $sg->translator->_g("ZIP file to upload:") ?></td>
<td><input type="file" name="sgArchiveFile" value="" size="40" /></td>
</tr>
<tr>
<td><input type="radio" class="radio" id="sgLocationChoiceRemote" name="sgLocationChoice" value="remote"></td>
<td colspan="2"><label for="sgLocationChoiceRemote"><?php echo $sg->translator->_g("Add remote file") ?></label></td>
<tr>
<tr>
<td></td>
<td><?php echo $sg->translator->_g("URL of image:") ?></td>
<td><input type="text" name="sgImageURL" value="http://" size="40" /></td>
</tr>
<tr>
<td colspan="2"></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Create"); ?>" /></td>
</tr>
</table>
</form>
/photogallery/singapore_gallery_files/templates/admin_default/view.tpl.php
0,0 → 1,9
<?php
if($sg->isImagePage()) {
include $sg->config->base_path.$sg->config->pathto_admin_template."viewimage.tpl.php";
} elseif($sg->isAlbumPage()) {
include $sg->config->base_path.$sg->config->pathto_admin_template."viewalbum.tpl.php";
} else {
include $sg->config->base_path.$sg->config->pathto_admin_template."viewgallery.tpl.php";
}
?>
/photogallery/singapore_gallery_files/templates/admin_default/viewalbum.tpl.php
0,0 → 1,37
<p class="sgNavBar sgTopNavBar">
<?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink()." | "; ?>
<?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink(); ?>
<?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink(); ?>
</p>
 
<h2 class="sgTitle"><?php echo $sg->gallery->name(); ?></h2>
 
<div class="sgContainer">
<div class="sgTab"><?php echo $sg->galleryTab()?></div>
<div class="sgContent">
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
<input type="hidden" name="action" value="multi" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities(); ?>" />
<div class="sgGallery">
<?php echo $sg->translator->_g("With selected:"); ?>
<?php /* <input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Copy or move"); ?>" /> */ ?>
<input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Delete"); ?>" />
</div>
<?php for($index = $sg->gallery->startat; $index < $sg->gallery->imageCountSelected()+$sg->gallery->startat; $index++): ?>
<div class="sgThumbnail">
<input type="checkbox" class="sgImageCheckbox checkbox" name="sgImages[]" value="<?php echo $sg->gallery->images[$index]->idEntities(); ?>" />
<table><tr><td>
<?php echo $sg->gallery->images[$index]->thumbnailLink() ?>
</td></tr></table>
</div>
<?php endfor; ?>
<div class="stretcher"></div>
</div>
</form>
</div>
<p>
<?php foreach($sg->gallery->detailsArray() as $key => $value): ?>
<strong><?php echo $key ?>:</strong> <?php echo $value ?><br />
<?php endforeach; ?>
</p>
/photogallery/singapore_gallery_files/templates/admin_default/viewgallery.tpl.php
0,0 → 1,51
<p class="sgNavBar sgTopNavBar">
<?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink()." | "; ?>
<?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink(); ?>
<?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink(); ?>
</p>
 
<h2 class="sgTitle"><?php echo $sg->gallery->name(); ?></h2>
 
<div class="sgContainer">
<div class="sgTab"><?php echo $sg->galleryTab()?></div>
<div class="sgContent">
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
<input type="hidden" name="action" value="multi" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEncoded(); ?>" />
<div class="sgGallery">
<?php echo $sg->translator->_g("With selected:"); ?>
<input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Copy or move"); ?>" />
<input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Delete"); ?>" />
<input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Re-index"); ?>" />
</div>
<?php for($index = $sg->gallery->startat; $index < $sg->gallery->galleryCountSelected()+$sg->gallery->startat; $index++): ?>
<div class="sgGallery"><table>
<tr valign="top">
<td><input type="checkbox" class="checkbox" name="sgGalleries[]" value="<?php echo $sg->gallery->galleries[$index]->idEntities(); ?>" /></td>
<td class="sgGalleryThumbnail"><?php echo $sg->gallery->galleries[$index]->thumbnailHTML() ?></td>
<td>
<?php echo $sg->gallery->galleries[$index]->name() ?> - <?php echo $sg->gallery->galleries[$index]->itemCountText() ?><br />
<?php
echo '<a href="'.$sg->formatAdminURL("view",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|View gallery")."</a> |\n";
echo '<a href="'.$sg->formatAdminURL("editgallery",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Edit gallery")."</a> |\n";
echo '<a href="'.$sg->formatAdminURL("editpermissions",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Access control")."</a> |\n";
echo '<a href="'.$sg->formatAdminURL("deletegallery",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Delete gallery")."</a> |\n";
echo '<a href="'.$sg->formatAdminURL("newgallery",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|New subgallery")."</a> |\n";
echo '<a href="'.$sg->formatAdminURL("reindex",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Re-index gallery")."</a> |\n";
//echo '<a href="'.$sg->formatAdminURL("newimage",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|New image")."</a> |\n";
echo '<a href="'.$sg->formatAdminURL("changethumbnail",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Change thumbnail")."</a>\n";
?>
</td>
</tr>
</table></div>
<?php endfor; ?>
</form>
</div>
</div>
<p>
<?php foreach($sg->gallery->detailsArray() as $key => $value): ?>
<strong><?php echo $key ?>:</strong> <?php echo $value ?><br />
<?php endforeach; ?>
</p>
/photogallery/singapore_gallery_files/templates/admin_default/viewimage.tpl.php
0,0 → 1,30
<p class="sgNavBar sgTopNavBar">
<?php echo $sg->previewThumbnails();?>
<br />
<?php if($sg->image->hasPrev()) echo $sg->image->prevLink()." | "; ?>
<?php echo $sg->image->parentLink(); ?>
<?php if($sg->image->hasNext()) echo " | ".$sg->image->nextLink(); ?>
</p>
<h2 class="sgTitle"><?php echo $sg->image->name(); ?></h2>
<div class="sgContainer">
<table class="sgContent"><tr><td><div class="sgContent">
<?php echo $sg->image->imageHTML() ?>
</div></td></tr></table>
</div>
<div class="sgNavBar sgTopNavBar"><p>
<?php if($sg->image->hasPrev()) echo $sg->image->prevLink()." | "; ?>
<?php echo $sg->image->parentLink(); ?>
<?php if($sg->image->hasNext()) echo " | ".$sg->image->nextLink(); ?>
</p></div>
 
<p><em><?php echo $sg->image->name() ?></em><?php echo $sg->image->byArtistText() ?></p>
<p>
<?php foreach($sg->image->detailsArray() as $key => $value): ?>
<strong><?php echo $key ?>:</strong> <?php echo $value ?><br />
<?php endforeach; ?>
</p>
 
<?php echo $sg->imageMap() ?>