228 |
kaklik |
1 |
<h1><?php echo $sg->translator->_g("Edit Gallery") ?></h1> |
|
|
2 |
|
|
|
3 |
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post"> |
|
|
4 |
<input type="hidden" name="action" value="savegallery" /> |
|
|
5 |
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" /> |
|
|
6 |
<input type="hidden" name="sgCategories" value="<?php echo $sg->gallery->categories ?>" /> |
|
|
7 |
|
|
|
8 |
|
|
|
9 |
<table class="formTable"> |
|
|
10 |
<tr> |
|
|
11 |
<td><?php echo $sg->translator->_g("Thumbnail") ?></td> |
|
|
12 |
<td><div class="inputbox sgImageInput"> |
|
|
13 |
<?php |
|
|
14 |
if($sg->gallery->filename == "__random__") |
|
|
15 |
echo nl2br($sg->translator->_g("Random\nthumbnail")); |
|
|
16 |
else |
|
|
17 |
echo $sg->gallery->thumbnailHTML(); |
|
|
18 |
?> |
|
|
19 |
<br /> |
|
|
20 |
<a href="<?php echo $sg->formatAdminURL("changethumbnail",$sg->gallery->idEncoded()) ?>"><?php echo $sg->translator->_g("thumbnail|Change...") ?></a> |
|
|
21 |
</div></td> |
|
|
22 |
</tr> |
|
|
23 |
<tr> |
|
|
24 |
<td><?php echo $sg->translator->_g("Gallery name") ?></td> |
|
|
25 |
<td><input type="text" name="sgGalleryName" value="<?php echo $sg->gallery->name ?>" size="40" /></td> |
|
|
26 |
</tr> |
|
|
27 |
<tr> |
|
|
28 |
<td><?php echo $sg->translator->_g("Artist name") ?></td> |
|
|
29 |
<td><input type="text" name="sgArtistName" value="<?php echo $sg->gallery->artist ?>" size="40" /></td> |
|
|
30 |
</tr> |
|
|
31 |
<tr> |
|
|
32 |
<td><?php echo $sg->translator->_g("Email") ?></td> |
|
|
33 |
<td><input type="text" name="sgArtistEmail" value="<?php echo $sg->gallery->email ?>" size="40" /></td> |
|
|
34 |
</tr> |
|
|
35 |
<tr> |
|
|
36 |
<td><?php echo $sg->translator->_g("Date") ?></td> |
|
|
37 |
<td><input type="text" name="sgDate" value="<?php echo $sg->gallery->date ?>" size="40" /></td> |
|
|
38 |
</tr> |
|
|
39 |
<tr> |
|
|
40 |
<td><?php echo $sg->translator->_g("Copyright") ?></td> |
|
|
41 |
<td><input type="text" name="sgCopyright" value="<?php echo $sg->gallery->copyright ?>" size="40" /></td> |
|
|
42 |
</tr> |
|
|
43 |
<tr> |
|
|
44 |
<td><?php echo $sg->translator->_g("Summary") ?></td> |
|
|
45 |
<td><textarea name="sgSummary" cols="70" rows="3"><?php echo $sg->gallery->summaryStripped() ?></textarea></td> |
|
|
46 |
</tr> |
|
|
47 |
<tr> |
|
|
48 |
<td><?php echo $sg->translator->_g("Description") ?></td> |
|
|
49 |
<td><textarea name="sgGalleryDesc" cols="70" rows="8"><?php echo $sg->gallery->descriptionStripped() ?></textarea></td> |
|
|
50 |
</tr> |
|
|
51 |
<tr> |
|
|
52 |
<td></td> |
|
|
53 |
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td> |
|
|
54 |
</tr> |
|
|
55 |
</table> |
|
|
56 |
|
|
|
57 |
</form> |