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


PHP PoTable::findByDESC方法代码示例

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


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

示例1: Paging

            <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 
        echo $dataalb->title;
        ?>
" />
开发者ID:nazara13,项目名称:phpindonesia.or.id-profile,代码行数:31,代码来源:valbum.php

示例2: PoTable

            $changefreq = $val->validasi($_POST['changefreq'], 'xss');
            $priority = $val->validasi($_POST['priority'], 'xss');
            $tableset = new PoTable('setting');
            $currentSet = $tableset->findBy(id_setting, '1');
            $currentSet = $currentSet->current();
            $website_url = $currentSet->website_url;
            $sitemap = new Sitemap($website_url);
            $sitemap->setPath('../../../');
            $sitemap->addItem('/', $priority, $changefreq, $tgl_sekarang);
            $tablepages = new PoTable('pages');
            $datapagess = $tablepages->findByDESC('active', 'Y', 'id_pages');
            foreach ($datapagess as $datapages) {
                $sitemap->addItem('/pages/' . $datapages->seotitle, $priority, $changefreq, $datapages->date);
            }
            $tablecat = new PoTable('category');
            $datacats = $tablecat->findByDESC('active', 'Y', 'id_category');
            foreach ($datacats as $datacat) {
                $sitemap->addItem('/category/' . $datacat->seotitle, $priority, $changefreq, $tgl_sekarang);
            }
            $tablepost = new PoTable('post');
            $dataposts = $tablepost->findByDESC('active', 'Y', 'id_post');
            foreach ($dataposts as $dataposts) {
                $sitemap->addItem('/detailpost/' . $dataposts->seotitle, $priority, $changefreq, $dataposts->date);
            }
            $sitemap->createSitemapIndex($website_url, 'Today');
            header('location:../../../sitemap.xml');
        } else {
            header('location:../../404.php');
        }
    }
}
开发者ID:rad4n,项目名称:erekutoro,代码行数:31,代码来源:proses.php

示例3: Paging

            <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('album');
    $dataalbs = $tablealb->findAllLimit(id_album, "DESC", "{$posisi},{$batas}");
    foreach ($dataalbs as $dataalb) {
        $tablegal = new PoTable('gallery');
        $datagals = $tablegal->findByDESC(id_album, $dataalb->id_album, id_gallery);
        $datagal = $datagals->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 $datagal->picture;
        ?>
" alt="<?php 
        echo $dataalb->title;
        ?>
" />
开发者ID:nazara13,项目名称:phpindonesia.or.id-profile,代码行数:31,代码来源:album.php


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