本文整理汇总了PHP中PoTable::findAllLimitByAnd方法的典型用法代码示例。如果您正苦于以下问题:PHP PoTable::findAllLimitByAnd方法的具体用法?PHP PoTable::findAllLimitByAnd怎么用?PHP PoTable::findAllLimitByAnd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PoTable
的用法示例。
在下文中一共展示了PoTable::findAllLimitByAnd方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
" <?php
if ($x == 1) {
?>
class="active"<?php
}
?>
></li>
<?php
}
?>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<?php
$sliders = $tableslider->findAllLimitByAnd(id_post, active, headline, 'Y', 'Y', DESC, '3');
$no = 1;
foreach ($sliders as $slider) {
$tablecatsl = new PoTable('category');
$currentCatsl = $tablecatsl->findBy(id_category, $slider->id_category);
$currentCatsl = $currentCatsl->current();
?>
<div class="item <?php
if ($no == 1) {
?>
active<?php
}
?>
">
<img width="100%" style="height:487px;" src="<?php
echo $website_url;
示例2: PoTable
<p> </p>
</div>
<div class="col-md-6">
<div class="portfolio-info">
<h3><a href="<?php
echo $website_url;
?>
/category/sukses">Sukses</a></h3>
<div class="clearfix hidden-xs""><br /></div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="row">
<?php
$tablecond = new PoTable('post');
$conds = $tablecond->findAllLimitByAnd(id_post, id_category, active, '4', 'Y', DESC, '2');
foreach ($conds as $cond) {
?>
<div class="col-sm-6">
<!-- Portfolio Item in Widget -->
<div class="portfolio-item">
<a href="<?php
echo "{$website_url}/detailpost/{$cond->seotitle}";
?>
" class="image">
<img src="<?php
echo $website_url;
?>
/po-content/po-upload/medium/medium_<?php
echo $cond->picture;
?>
示例3: PoTable
$currentDetail = $currentDetail->current();
$idpost = $currentDetail->id_post;
if ($currentDetail > 0) {
$tabledpost = new PoTable('post');
$currentDpost = $tabledpost->findByPost(id_post, $idpost);
$currentDpost = $currentDpost->current();
$contentdet = html_entity_decode($currentDetail->content);
$biodet = html_entity_decode($currentDetail->bio);
$tabledcat = new PoTable('category');
$currentDcat = $tabledcat->findBy(id_category, $currentDetail->id_category);
$currentDcat = $currentDcat->current();
$p = new Paging();
$batas = 5;
$posisi = $p->cariPosisi($batas);
$tabledcom = new PoTable('comment');
$composts = $tabledcom->findAllLimitByAnd(id_comment, id_post, active, "{$idpost}", "Y", "ASC", "{$posisi},{$batas}");
$totaldcom = $tabledcom->numRowByAnd(id_post, $idpost, active, 'Y');
mysql_query("UPDATE post SET hits = {$currentDetail->hits}+1 WHERE id_post = '" . $idpost . "'");
?>
<div class="page">
<div class="row page_margin_top">
<div class="column column_2_3">
<div class="row">
<div class="post single">
<h1 class="post_title"><?php
echo $currentDpost->title;
?>
</h1>
<ul class="post_details clearfix">
<li class="detail category">Di <a href="<?php
echo "{$website_url}/category/{$currentDcat->seotitle}";
示例4: Paging
?>
</strong></li>
</ol>
</div>
</div>
</div>
</section>
<section class="portfolio-container">
<div class="container">
<div class="row" id="portfolio-items">
<?php
$p = new Paging();
$batas = 5;
$posisi = $p->cariPosisi($batas);
$tabledcpost = new PoTable('post');
$dcposts = $tabledcpost->findAllLimitByAnd(id_post, id_category, active, "{$iddcat}", "Y", "DESC", "{$posisi},{$batas}");
foreach ($dcposts as $dcpost) {
$tabledccom = new PoTable('comment');
$totaldccom = $tabledccom->numRowByAnd(id_post, $dcpost->id_post, active, 'Y');
$tableuser = new PoTable('users');
$currentUser = $tableuser->findBy(id_user, $dcpost->editor);
$currentUser = $currentUser->current();
?>
<div class="item col-sm-4">
<div class="portfolio-item">
<a href="<?php
echo "{$website_url}/detailpost/{$dcpost->seotitle}";
?>
" class="image">
<img src="<?php
echo $website_url;
示例5: PoTable
</div>
</div>
<hr>
</div>
<!-- Scince & Travel end -->
<!-- lifestyle start-->
<div class="col-sm-16 wow fadeInUp animated " data-wow-delay="0.5s" data-wow-offset="100">
<div class="main-title-outer pull-left">
<div class="main-title">lifestyle</div>
<div class="span-outer"><span class="pull-right text-danger last-update"><span class="ion-android-data icon"></span>Last update: 3 days ago</span> </div>
</div>
<div class="row">
<div id="owl-lifestyle" class="owl-carousel owl-theme lifestyle pull-left">
<?php
$tablecon1j = new PoTable('post');
$con1js = $tablecon1j->findAllLimitByAnd(id_post, id_category, active, '4', 'Y', DESC, '10');
foreach ($con1js as $con1j) {
?>
<div class="item topic">
<a href="<?php
echo "{$website_url}/detailpost/{$con1j->seotitle}";
?>
"> <img class="img-thumbnail" src="<?php
echo $website_url;
?>
/content/upload/<?php
echo $con1j->picture;
?>
" width="300" height="132" alt=""/>
<h4><?php
echo cuthighlight('post', $con1j->title, '50');
示例6: PoTable
<script src="https://www.google.com/recaptcha/api.js"></script>
<style type="text/css" media="screen">
.logo-pic a img{
z-index:9999;
margin-left:155px;
list-style:none;
}
</style>
</head>
<body>
<!-- <div style="width:90px;" class="site_container">
<div class="clearfix">
<nav class="logo-pic">
<?php
$tableconc = new PoTable('post');
$concs = $tableconc->findAllLimitByAnd(id_post, id_category, active, '1', 'Y', DESC, '1');
foreach ($concs as $conc) {
?>
<a href="<?php
echo "{$website_url}/detailpost/{$conc->seotitle}";
?>
" title="<?php
echo $conc->title;
?>
">
<img src="<?php
echo $website_url;
?>
/po-content/po-thumbs/<?php
echo $conc->picture;
?>
示例7: PoTable
</div>
</div>
<!--Komite CSR end here-->
<!--Badan Kompetensi CSR Officer-->
<div class="team-mem" id="bakom">
<div class="container">
<div class="team-main">
<div class="team-top">
<h3>Badan Kompetensi CSR Officer</h3>
</div>
<ul class="ch-grid">
<?php
$tablebakom = new PoTable('users');
$bakom = $tablebakom->findAllLimitByAnd(id_user, blokir, level, 'N', '6', DESC, '4');
foreach ($bakom as $bakom) {
?>
<li>
<a href="#"><div style="background-image: url(
<?php
echo !empty($bakom->userpicture) ? $website_url . "/po-content/po-upload/user-" . $bakom->userpicture : $website_url . "/po-content/po-upload/user-editor.jpg";
?>
); background-size:cover;" class="ch-item ch-img-1">
<div class="ch-info">
<h3><?php
echo $bakom->nama_lengkap;
?>
</h3>
<p>Jabatan</p>
</div>