Welcome to mirror list, hosted at ThFree Co, Russian Federation.

part.pagenavi.php « templates « core - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 23008058757cf3252d339ae56c8e37b8e0baa20a (plain)
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
<center>
	<table class="pager" cellspacing="0" cellpadding="0" border="0">
		<tr><td width="50%"></td>
			<td width="1">
				<?php if($_['page']>0):?>
					<span class="pagerbutton1"><a href="<?php echo $_['url'].($_['page']-1);?>"><?php echo $l->t( 'prev' ); ?></a>&nbsp;&nbsp;</span>
				<?php endif; ?>
			</td>
			<td width="1">
				<?php if ($_['pagestart']>0):?>
					...
				<?php endif;?>
				<?php for ($i=$_['pagestart']; $i < $_['pagestop'];$i++):?>
					<?php if ($_['page']!=$i):?>
						<a href="<?php echo $_['url'].$i;?>"><?php echo $i+1;?>&nbsp;</a>
					<?php else:?>
						<?php echo $i+1;?>&nbsp;
					<?php endif?>
				<?php endfor;?>
				<?php if ($_['pagestop']<$_['pagecount']):?>
					...
				<?php endif;?>
			</td>
			<td width="1">
				<?php if(($_['page']+1)<$_['pagecount']):?>
					<span class="pagerbutton2"><a href="<?php echo $_['url'].($_['page']+1);?>"><?php echo $l->t( 'next' ); ?></a></span>
				<?php endif; ?>
			</td>
		<td width="50%"></td></tr>
	</table>
</center>