本文整理汇总了PHP中JPagination::writePagesCounter方法的典型用法代码示例。如果您正苦于以下问题:PHP JPagination::writePagesCounter方法的具体用法?PHP JPagination::writePagesCounter怎么用?PHP JPagination::writePagesCounter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JPagination
的用法示例。
在下文中一共展示了JPagination::writePagesCounter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: RSShowPictures
//.........这里部分代码省略.........
<td>
<!--<div class="img-shadow">-->
<a href="<?php
echo JRoute::_("index.php?option=com_rsgallery2&page=inline&id=" . $row->id . "&catid=" . $row->gallery_id . "&limitstart=" . $limitstart++);
?>
">
<img border="1" alt="<?php
echo htmlspecialchars(stripslashes($row->descr), ENT_QUOTES);
?>
" src="<?php
echo imgUtils::getImgThumb($row->name);
?>
" />
</a>
<!--</div>-->
<div class="rsg2-clr"></div>
<?php
if ($rsgConfig->get("display_thumbs_showImgName")) {
?>
<br />
<span class='rsg2_thumb_name'>
<?php
echo htmlspecialchars(stripslashes($row->title), ENT_QUOTES);
?>
</span>
<?php
}
?>
<?php
if ($allowEdit) {
?>
<div id='rsg2-adminButtons'>
<a href="<?php
echo JRoute::_("index.php?option=com_rsgallery2&page=edit_image&id=" . $row->id);
?>
"><img src="<?php
echo JURI_SITE;
?>
/administrator/images/edit_f2.png" alt="" height="15" /></a>
<a href="#" onClick="if(window.confirm('<?php
echo JText::_('Are you sure you want to delete this image?');
?>
')) location='<?php
echo JRoute::_("index.php?option=com_rsgallery2&page=delete_image&id=" . $row->id);
?>
'"><img src="<?php
echo JURI_SITE;
?>
/administrator/images/delete_f2.png" alt="" height="15" /></a>
</div>
<?php
}
?>
</td>
<?php
if (++$i % $cols == 0) {
echo "</tr>\n";
}
?>
<?php
}
?>
<?php
if ($i % $cols != 0) {
echo "</tr>\n";
}
?>
</table>
<?php
break;
case 'magic':
echo JText::_('Magic not implemented yet');
?>
<table id='rsg2-thumbsList'>
<tr>
<td><?php
echo JText::_('Magic not implemented yet');
?>
</td>
</tr>
</table>
<?php
break;
}
?>
<div class="rsg2-pageNav">
<?php
if ($numPics > $PageSize) {
echo $pagenav->writePagesLinks("index.php?option=com_rsgallery2&catid=" . $catid);
echo "<br /><br />" . $pagenav->writePagesCounter();
}
?>
</div>
<?php
} else {
if (!$catid == 0) {
echo JText::_('No images in gallery');
}
}
}