1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
<?php /* $Id: commentboxtop.inc 11736 2005-10-04 22:29:01Z jenst $ */ ?>
<?php global $commentbox, $embeddedAlbum, $myAlbumName, $myHighlightTag, $myAlbum, $index, $id, $i; ?>
<table width="100%" border="0" cellspacing="0" cellpadding=0>
<tr>
<td colspan="2"><img src="<?php echo getImagePath('pixel_trans.gif') ?>" width="1" height="1" alt=""></td>
<td colspan="2"><img src="<?php echo getImagePath('pixel_trans.gif') ?>" width="1" height="1" alt=""></td>
</tr>
<tr>
<?php if ($embeddedAlbum == 1) {
?>
<td width="150" valign="top" ><a href="<?php echo makeAlbumUrl($myAlbumName) ?>"><?php echo $myHighlightTag ?></a></td>
<td width="20"> </td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><span class="title"><?php echo _("Album") ?>: <?php echo $myAlbum->fields["title"] ?></span>
<?php if ($gallery->album->isHidden($i)) {
echo " (". _("hidden") .")";
}
if ((!$gallery->album->isHidden($i) || $gallery->user->isAdmin() ||
$gallery->user->isOwnerOfAlbum($gallery->album) || $gallery->user->isOwnerOfAlbum($myAlbum))) { ?>
<span class="admin"><?php if ($myAlbum->lastCommentDate("no") != -1) { ?>
<br><a href="<?php echo makeGalleryUrl("view_comments.php", array("set_albumName" => $myAlbumName)) ?>">[<?php echo _("view comments for this nested album") ?>]</a>
<?php } else {
print "<br>"._("Album contains no comments")."\n";
} ?>
</span>
<?php } ?>
</td>
</tr>
</table>
</td>
<?php
}
else {
?>
<td width="150" valign="top" ><a href="<?php echo makeAlbumUrl($gallery->session->albumName, $id) ?>"><?php echo $gallery->album->getThumbnailTag($i) ?></a></td>
<td width="20"> </td>
<td style="vertical-align: top">
<?php
if ($gallery->album->isHidden($i)) {
echo " (". _("hidden") .")";
}
echo makeFormIntro('view_comments.php',array('name' => 'delete_comments'));
?>
<input type="hidden" name="index" value="<?php echo $index ?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><img src="<?php echo getImagePath('pixel_trans.gif') ?>" width="1" height="1" alt=""></td>
<td colspan="2"><img src="<?php echo getImagePath('pixel_trans.gif') ?>" width="1" height="1" alt=""></td>
</tr>
<tr>
<td>
<?php } ?>
|