File: commentboxbottom.inc

package info (click to toggle)
gallery 1.5.4-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 26,712 kB
  • ctags: 6,567
  • sloc: php: 33,824; sh: 446; xml: 96; makefile: 88; perl: 61
file content (26 lines) | stat: -rw-r--r-- 693 bytes parent folder | download
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
<?php /* $Id: commentboxbottom.inc 13339 2006-03-27 16:04:33Z jenst $ */ ?>
<?php global $embeddedAlbum, $id, $index ;
if(!$embeddedAlbum == 1) {
        $url = "add_comment.php?set_albumName={$gallery->album->fields['name']}&id=$id";
?>
                </td>
        </tr>
        </table>

<?php
	if ($gallery->user->canAddComments($gallery->album)) {
	    echo "\n". '<input type="button" onClick="javascript:'. popup($url) .'" value="'. _("add comment") .'">';
	}

	if ($gallery->user->canWriteToAlbum($gallery->album)) {
		echo "\n". '<input type="submit" value="'. _("Delete marked comments") .'">';
	}
	?>
	</form>
<br>
	</td>
	<td width="20">&nbsp;</td>
<?php } ?>
</tr>
</table>
<br>