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> |