Пример #1
0
			</div>
			<?php 
    }
    ?>

		<p><?php 
    echo gettext("You can edit or delete comments.");
    ?>
</p>

		<?php 
    if ($totalpages > 1) {
        ?>
			<div align="center">
				<?php 
        adminPageNav($pagenum, $totalpages, '  admin-comments.php ', $fulltexturl);
        ?>
			</div>
			<?php 
    }
    ?>

		<form class="dirtylistening" onReset="setClean('form_commentlist');"  name="comments" id="form_commentlist" action="?action=applycomments" method="post" onsubmit="return confirmAction();" autocomplete="off">
			<?php 
    XSRFToken('applycomments');
    ?>
			<input type="hidden" name="subpage" value="<?php 
    echo html_encode($pagenum);
    ?>
" />
			<p class="buttons"><button type="submit"><img src="<?php 
Пример #2
0
function printImagePagination($album, $image, $singleimage, $allimagecount, $totalimages, $pagenum, $totalpages, $filter)
{
    if ($singleimage) {
        $images = $album->getImages(0);
        if ($count = count($images) > 1) {
            ?>
				<tr>
					<td colspan="4" class="bordered" id="imagenavb">
						<?php 
            $i = array_search($image->filename, $images);
            if ($i > 0) {
                ?>
							<a href="?page=edit&tab=imageinfo&album=<?php 
                echo pathurlencode($image->album->name);
                ?>
&singleimage=<?php 
                echo html_encode($images[$i - 1]);
                ?>
"><?php 
                echo gettext('prev image');
                ?>
</a>
							<?php 
            }
            if (array_key_exists($i + 1, $images)) {
                if ($i > 0) {
                    echo ' | ';
                }
                ?>
							<a href="?page=edit&tab=imageinfo&album=<?php 
                echo pathurlencode($image->album->name);
                ?>
&singleimage=<?php 
                echo html_encode($images[$i + 1]);
                ?>
"><?php 
                echo gettext('next image');
                ?>
</a>
							<?php 
            }
            ?>
					</td>
				</tr>
				<?php 
        }
    } else {
        if ($allimagecount != $totalimages) {
            // need pagination links
            ?>
				<tr>
					<td colspan="4" class="bordered" id="imagenavb">
						<?php 
            adminPageNav($pagenum, $totalpages, 'admin-edit.php', '?page=edit&amp;album=' . html_encode(pathurlencode($album->name)), '&amp;tab=imageinfo&amp;filter=' . $filter);
            ?>
					</td>
				</tr>
				<?php 
        }
    }
}
Пример #3
0
													<strong><?php 
                    echo gettext("Reset");
                    ?>
</strong>
												</button>
											</p>

										</td>
									</tr>
									<?php 
                    if ($allimagecount != $totalimages && !$singleimage) {
                        // need pagination links
                        ?>
										<tr>
											<td colspan="4" class="bordered" id="imagenavb"><?php 
                        adminPageNav($pagenum, $totalpages, 'admin-edit.php', '?page=edit&amp;album=' . html_encode(pathurlencode($album->name)), '&amp;tab=imageinfo');
                        ?>
											</td>
										</tr>
										<?php 
                    }
                    if (!empty($target_image)) {
                        ?>
										<script type="text/javascript" >
																							// <!-- <![CDATA[
																							toggleExtraInfo('<?php 
                        echo $target_image_nr;
                        ?>
', 'image', true);
																							// ]]> -->
										</script>