当前位置: 首页>>代码示例>>PHP>>正文


PHP PoTable::findAllLimitBy方法代码示例

本文整理汇总了PHP中PoTable::findAllLimitBy方法的典型用法代码示例。如果您正苦于以下问题:PHP PoTable::findAllLimitBy方法的具体用法?PHP PoTable::findAllLimitBy怎么用?PHP PoTable::findAllLimitBy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PoTable的用法示例。


在下文中一共展示了PoTable::findAllLimitBy方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Paging

										</li>
										<?php 
            }
        }
        ?>
								</ul> <!-- **recent-gallery - Ends** -->
								<div class="dt-sc-margin10"></div>
								<!-- **bx-pager - Starts** -->
								<div id="bx-pager">
								<?php 
        $p = new Paging();
        $nov = 1;
        $batas = 6;
        $posisi = $p->cariPosisi($batas);
        $tablevid = new PoTable('video');
        $videos = $tablevid->findAllLimitBy(id_video, id_album, $idalb, DESC, "{$posisi},{$batas}");
        foreach ($videos as $video) {
            $idalb = $video->id_album;
            $tablecalb = new PoTable('valbum');
            $currentCalb = $tablecalb->findBy(id_album, $idalb);
            $currentCalb = $currentCalb->current();
            if ($currentCalb->active == 'Y') {
                ?>
										<a href="javascript:void(0);" data-slide-index="<?php 
                echo $nov;
                ?>
"><img src="<?php 
                echo $website_url;
                ?>
/po-content/po-thumbs/<?php 
                echo $video->picture;
开发者ID:nazara13,项目名称:phpindonesia.or.id-profile,代码行数:31,代码来源:video.php

示例2: PoTable

        }
        ?>
                        </ul>
                        <?php 
    }
    ?>

                        <?php 
    if ($mod == "home" or $mod == "detailpost") {
        ?>
                        <h4 class="box_header page_margin_top_section">Post Komentar</h4>
                        <div class="vertical_carousel_container clearfix">
                            <ul class="blog small vertical_carousel autoplay-1 scroll-1 navigation-1 easing-easeInOutQuint duration-750">
                            <?php 
        $tablecom = new PoTable('comment');
        $coms = $tablecom->findAllLimitBy(id_comment, active, 'Y', DESC, '5');
        foreach ($coms as $com) {
            $validcom = $com->id_post;
            $explname = explode(" ", $com->name);
            $tablecompo = new PoTable('post');
            $currentCompo = $tablecompo->findBy(id_post, $validcom);
            $currentCompo = $currentCompo->current();
            ?>
                                <li class="post">
                                    <a href="<?php 
            echo "{$website_url}/detailpost/{$currentCompo->seotitle}";
            ?>
#comment-list" title="<?php 
            echo $currentCompo->title;
            ?>
">
开发者ID:rad4n,项目名称:erekutoro,代码行数:31,代码来源:sidebar.php

示例3: PoTable

        ?>
" title=""><?php 
        echo $tag->tag_title;
        ?>
</a></li>
              <?php 
    }
    ?>
            </ul>
          </div>
          <div class="col-sm-5 recent-posts  wow fadeInDown animated" data-wow-delay="1s" data-wow-offset="40">
            <div class="f-title">recent posts</div>
            <ul class="list-unstyled">
            <?php 
    $tablepopfoot = new PoTable('post');
    $popfoots = $tablepopfoot->findAllLimitBy(hits, active, 'Y', DESC, '3');
    foreach ($popfoots as $popfoot) {
        ?>
              <li> <a href="<?php 
        echo "{$website_url}/detailpost/{$popfoot->seotitle}";
        ?>
">
                <div class="row">
                  <div class="col-sm-4"><img class="img-thumbnail pull-left" src="<?php 
        echo $website_url;
        ?>
/po-content/po-upload/<?php 
        echo $popfoot->picture;
        ?>
" width="70" height="70" alt="<?php 
        echo $popfoot->title;
开发者ID:benzshaddow,项目名称:mitraCMS,代码行数:31,代码来源:footer.php

示例4: PoTable

				</div>
			</div>
			<div class="clearfix"> </div>
		</div>
	</div>
<!-- //events-bottom -->
<!-- testimonials -->
	<div class="testimonials">
		<div class="container">
			<h3>Testimonials</h3>
			<section class="slider">
				<div class="flexslider">
					<ul class="slides">
						<?php 
    $tablenewtestimoni = new PoTable('users');
    $items = $tablenewtestimoni->findAllLimitBy(id_user, status_testimonial, 'Y', DESC, '6');
    $i = 1;
    foreach ($items as $item) {
        if ($i == 1) {
            echo "<li><div class='testimonials-grid'>";
        }
        ?>
								<div class="col-md-6 testimonials-grid-left">
									<div class="testimonials-grid-left1">
										<img src="<?php 
        echo $website_url;
        ?>
/po-content/po-upload/user-<?php 
        echo $item->userpicture;
        ?>
" alt=" " class="img-responsive" />
开发者ID:rad4n,项目名称:erekutoro,代码行数:31,代码来源:home.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 = 12;
        $posisi = $p->cariPosisi($batas);
        $tablegal = new PoTable('gallery');
        $gallerys = $tablegal->findAllLimitBy(id_gallery, id_album, $idalb, DESC, "{$posisi},{$batas}");
        foreach ($gallerys as $gallery) {
            ?>
						<div class="portfolio dt-sc-one-fourth column with-space">
                            <!-- **portfolio-thumb - Starts** -->
                            <div class="portfolio-thumb">
                                <img src="<?php 
            echo $website_url;
            ?>
/po-content/po-upload/medium/medium_<?php 
            echo $gallery->picture;
            ?>
" alt="<?php 
            echo $gallery->title;
            ?>
" />
开发者ID:kevinmel2000,项目名称:phpindonesia.or.id-profile,代码行数:31,代码来源:gallery.php

示例6: PoTable

            </div> <!-- **Full-width-section - Ends** -->

			<!-- **Full-width-section - Starts** -->   
			<div style="background-position: 50% 56px; padding: 50px 0px 10px;" class="parallax full-width-section product-presentation-bg">
            	<div class="container">
					<!-- **hr-title - Starts** -->
                	<div class="hr-title dt-sc-hr-invisible-small">
                        <h2>Event PHP Indonesia</h2>
                        <!-- **title-sep - Starts** -->
                        <div class="title-sep">
                        </div> <!-- **title-sep - Ends** -->
                    </div> <!-- **hr-title - Ends** -->
				    <div class="dt-sc-margin25"></div>
					<?php 
    $tableevent = new PoTable('event');
    $events = $tableevent->findAllLimitBy(start, active, "Y", "DESC", "3");
    $countevents = $tableevent->numRowBy(active, 'Y');
    if ($countevents > 0) {
        $nov = 1;
        foreach ($events as $event) {
            $startevt = $event->start;
            $startevt = explode(' ', $startevt);
            $startshr = substr($startevt[0], 8, 2);
            $startbshr = substr(getBulan(substr($startevt[0], 5, 2)), 0, 3);
            $endevt = $event->end;
            $endevt = explode(' ', $endevt);
            ?>
					<?php 
            if ($nov == '1') {
                ?>
                    <div class="column dt-sc-one-third first">
开发者ID:putraw,项目名称:phpindonesia.or.id-profile,代码行数:31,代码来源:home.php

示例7: PoTable

        ?>
</p>
					</div>
				</div>
			</div>
		</section>

		<section class="portfolio-container">
			<div class="container">
				<div class="row">
					<div class="col-md-12"><h3>Recent Blog</h3></div>
				</div>
				<div class="row">
					<?php 
        $tablerec = new PoTable('post');
        $recs = $tablerec->findAllLimitBy(id_post, active, 'Y', DESC, '3');
        foreach ($recs as $rec) {
            $validrec = $rec->id_category;
            $tablecatrec = new PoTable('category');
            $currentCatrec = $tablecatrec->findBy(id_category, $validrec);
            $currentCatrec = $currentCatrec->current();
            ?>
					<div class="col-sm-4">
						<div class="portfolio-item">
							<a href="<?php 
            echo "{$website_url}/detailpost/{$rec->seotitle}";
            ?>
" class="image">
								<img src="<?php 
            echo $website_url;
            ?>
开发者ID:rad4n,项目名称:kelinci,代码行数:31,代码来源:detailpost.php

示例8: PoTable

            </ul>
          </div>
          <div class="col-sm-1 shuffle text-right"><a href="#"><span class="ion-shuffle"></span></a></div>
        </div>
      </div>
      <!-- hot news end --> 
      <!-- banner outer start -->
      <div  class="col-sm-16 banner-outer wow fadeInLeft animated" data-wow-delay="1s" data-wow-offset="50">
        <div class="row">
          <div class="col-sm-16 col-md-10 col-lg-8"> 
            
            <!-- carousel start -->
            <div id="sync1" class="owl-carousel">
            <?php 
    $tableslider = new PoTable('post');
    $sliders = $tableslider->findAllLimitBy(id_post, active, 'Y', DESC, '4');
    foreach ($sliders as $slider) {
        ?>
              <div class="box item"> <a href="<?php 
        echo "{$website_url}/detailpost/{$slider->seotitle}";
        ?>
">
                <div class="carousel-caption"><?php 
        echo $slider->title;
        ?>
</div>
                <img class="img-responsive" src="<?php 
        echo $website_url;
        ?>
/content/upload/<?php 
        echo $slider->picture;
开发者ID:benzshaddow,项目名称:mitraCMS,代码行数:31,代码来源:home.php


注:本文中的PoTable::findAllLimitBy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。