本文整理汇总了PHP中PoTable::findAllRand方法的典型用法代码示例。如果您正苦于以下问题:PHP PoTable::findAllRand方法的具体用法?PHP PoTable::findAllRand怎么用?PHP PoTable::findAllRand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PoTable
的用法示例。
在下文中一共展示了PoTable::findAllRand方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PoTable
</li>
</ul>
</div>
</li>
<?php
}
?>
</ul>
</div>
<h4 class="box_header page_margin_top_section">Post Kategori</h4>
<ul class="taxonomies columns clearfix page_margin_top">
<?php
$tablesidecat = new PoTable('category');
$tablejmlpost = new PoTable('post');
$sidecats = $tablesidecat->findAllRand();
foreach ($sidecats as $sidecat) {
$tablejmlposts = $tablejmlpost->numRowByAnd(id_category, $sidecat->id_category, active, 'Y');
?>
<li><a href="<?php
echo $website_url;
?>
/category/<?php
echo $sidecat->seotitle;
?>
" title="<?php
echo $sidecat->title;
?>
"><?php
echo $sidecat->title;
?>
示例2: PoTable
<!-- bage header end -->
</div>
<!-- data start -->
<section>
<div class="container ">
<div class="row ">
<!-- left sec start -->
<div class="col-md-11 col-sm-11">
<div class="row">
<!-- gallery start -->
<div class="gallery">
<?php
$tablegal = new PoTable('gallery');
$gallerys = $tablegal->findAllRand();
foreach ($gallerys as $gallery) {
$idalb = $gallery->id_album;
$tablecalb = new PoTable('album');
$currentCalb = $tablecalb->findBy(id_album, $idalb);
$currentCalb = $currentCalb->current();
if ($currentCalb->active == 'Y') {
?>
<div class="col-sm-8 wow fadeInDown animated "> <a class="gallery-item" href="<?php
echo $website_url;
?>
/po-content/po-upload/<?php
echo $gallery->picture;
?>
" title="<?php
echo $gallery->title;