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