本文整理汇总了PHP中PoTable::findAllLimit方法的典型用法代码示例。如果您正苦于以下问题:PHP PoTable::findAllLimit方法的具体用法?PHP PoTable::findAllLimit怎么用?PHP PoTable::findAllLimit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PoTable
的用法示例。
在下文中一共展示了PoTable::findAllLimit方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PoTable
?>
</div>
</div>
<h6 class="text-center">SHOW VIDEO <br><button type="button" class="btn btn-default btn-no-border">
<span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span>
</button></h6>
<hr>
<div class="row">
<h6 class="col-md-4"><center><span class="glyphicon glyphicon-th" aria-hidden="true"> VIEW ALL BLOG</center></h6>
<h6 class="col-md-4"><center><strong><u>BLOG</u></strong></center></h6>
<h6 class="col-md-4"><center>ARCHIVES <span class="caret"></span></center></h6>
</div>
<?php
$tableconb = new PoTable('post');
$conbs = $tableconb->findAllLimit(id_post, DESC, '6');
$no = 1;
foreach ($conbs as $conb) {
if ($no == 1) {
?>
<div class="row"><?php
}
?>
<div class="col-md-4">
<img width="100%" src="<?php
echo $website_url;
?>
/po-content/po-thumbs/<?php
echo $conb->picture;
?>
" class="img-responsive" alt="<?php
示例2: PoTable
<form class="form-inline" method="post" action="<?php
echo $website_url;
?>
/subscribe.php">
<input type="email" name="email_address" class="form-control" id="input-email" placeholder="Type your e-mail adress">
<button type="submit" name="submit" class="btn"> <span class="ion-paper-airplane text-danger"></span> </button>
</form>
</div>
</div>
</div>
<div class="col-sm-5 popular-tags wow fadeInDown animated" data-wow-delay="1s" data-wow-offset="40">
<div class="f-title">popular tags</div>
<ul class="tags list-unstyled pull-left">
<?php
$tabletag = new PoTable('tag');
$tags = $tabletag->findAllLimit(id_tag, DESC, '10');
foreach ($tags as $tag) {
?>
<li><a href="<?php
echo $website_url;
?>
/search-result/<?php
echo $tag->tag_title;
?>
" title=""><?php
echo $tag->tag_title;
?>
</a></li>
<?php
}
?>
示例3: Paging
</ul>
</div>
</div>
<div class="page_layout ">
<div class="divider_block clearfix">
<hr class="divider first"><hr class="divider subheader_arrow"><hr class="divider last">
</div>
<div class="row">
<div class="column column_2_3">
<ul class="blog medium">
<?php
$p = new Paging();
$batas = 6;
$posisi = $p->cariPosisi($batas);
$tablegal = new PoTable('gallery');
$gallerys = $tablegal->findAllLimit(id_gallery, "DESC", "{$posisi},{$batas}");
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') {
?>
<li class="post">
<a class="post_image prettyPhoto" href="<?php
echo $website_url;
?>
/po-content/po-upload/<?php
echo $gallery->picture;
?>
" title="<?php
示例4: Paging
</div>
</div>
</div>
</div>
<!-- **Full-width-section - Starts** -->
<div class="full-width-section">
<div class="dt-sc-margin70"></div>
<section id="primary" class="content-full-width">
<div class="container">
<?php
$p = new Paging();
$nov = 1;
$batas = 12;
$posisi = $p->cariPosisi($batas);
$tableevt = new PoTable('event');
$dataevents = $tableevt->findAllLimit(startevt, "DESC", "{$posisi},{$batas}");
foreach ($dataevents as $dataevent) {
$idevt = $dataevent->id_event;
$startevt = $dataevent->startevt;
$startevt = explode(' ', $startevt);
$startsth = substr($startevt[0], 0, 4);
$startshr = substr($startevt[0], 8, 2);
$startbshr = substr(getBulan(substr($startevt[0], 5, 2)), 0, 3);
$endevt = $dataevent->endevt;
$endevt = explode(' ', $endevt);
?>
<?php
if ($nov % 3 == 1) {
?>
<div class="column dt-sc-one-third first">
<?php
示例5: Paging
</div>
</div>
</div>
<div class="dt-sc-margin100"></div>
<!-- Container starts-->
<div class="container">
<!-- Primary Starts -->
<section id="primary" class="content-full-width">
<!-- **portfolio-container - Starts** -->
<div class="portfolio-container">
<?php
$p = new Paging();
$batas = 8;
$posisi = $p->cariPosisi($batas);
$tablealb = new PoTable('valbum');
$dataalbs = $tablealb->findAllLimit(id_album, "DESC", "{$posisi},{$batas}");
foreach ($dataalbs as $dataalb) {
$tablevid = new PoTable('video');
$datavids = $tablevid->findByDESC(id_album, $dataalb->id_album, id_video);
$datavid = $datavids->current();
?>
<div class="portfolio dt-sc-one-third column with-space">
<!-- **portfolio-thumb - Starts** -->
<div class="portfolio-thumb">
<img src="<?php
echo $website_url;
?>
/po-content/po-upload/medium/medium_<?php
echo $datavid->picture;
?>
" alt="<?php
示例6: PoTable
echo $folder;
?>
/js/jquery.chocolat.js"></script>
<!--light-box-files -->
<script type="text/javascript">
$(function() {
$('.gallery a').Chocolat();
});
</script>
<h3>Gallery</h3>
<section>
<ul id="da-thumbs" class="da-thumbs">
<?php
$tablegal = new PoTable('gallery');
$gallerys = $tablegal->findAllLimit(id_gallery, "DESC", "9");
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') {
?>
<li>
<a href="<?php
echo $website_url;
?>
/po-content/po-upload/medium/medium_<?php
echo $gallery->picture;
?>
" class="b-link-stripe b-animate-go thickbox">
示例7: PoTable
?>
"><?php
echo $rec->title;
?>
</a></li>
<?php
}
?>
</ul>
</section>
<section class="recent">
<h4>RECENT COMMENTS</h4>
<ul>
<?php
$tabledcom = new PoTable('comment');
$composts = $tabledcom->findAllLimit(id_comment, "ASC", 3);
foreach ($composts as $compost) {
$comcontent = nl2br($compost->comment);
?>
<li>
<h5><strong><?php
echo $compost->name;
?>
</strong></h5>
<p><?php
echo $comcontent;
?>
</p><hr>
</li>
<?php
}