本文整理汇总了PHP中PoTable::numRowBy方法的典型用法代码示例。如果您正苦于以下问题:PHP PoTable::numRowBy方法的具体用法?PHP PoTable::numRowBy怎么用?PHP PoTable::numRowBy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PoTable
的用法示例。
在下文中一共展示了PoTable::numRowBy方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
?>
" /></a>
<?php
}
$nov++;
}
?>
</div> <!-- **bx-pager - Ends** -->
</div> <!-- **recent-gallery-container - Ends** -->
<div class="dt-sc-margin30"></div>
<!-- **pagination - Starts** -->
<div class="pagination">
<ul>
<?php
$getpage = $val->validasi($_GET['page'], 'sql');
$jmldata = $tablevid->numRowBy(id_album, $idalb);
$jmlhalaman = $p->jumlahHalaman($jmldata, $batas);
$linkHalaman = $p->navHalaman($getpage, $jmlhalaman, $website_url, "video/{$title}", "page", "1");
echo "{$linkHalaman}";
?>
</ul>
</div> <!-- **pagination - Ends** -->
<div class="dt-sc-margin50"></div>
</div>
</article>
</section>
</div> <!-- **container - Ends** -->
</div> <!-- **Main - Ends** -->
<?php
} else {
header('location:' . $website_url . '/404.php');
示例2: PoTable
<?php
include_once "po-content/{$folder}/header.php";
?>
<!--
*******************************************************
Main Content Template
*******************************************************
-->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<?php
$tableslider = new PoTable('post');
$data = $tableslider->numRowBy(headline, 'Y', active, 'Y');
for ($x = 1; $x < $data; $x++) {
?>
<li data-target="#carousel-example-generic" data-slide-to="<?php
echo $x - 1;
?>
" <?php
if ($x == 1) {
?>
class="active"<?php
}
?>
></li>
<?php
}
?>
示例3: PoTable
$table2 = new PoTable('category');
$total2 = $table2->numRow();
$table3 = new PoTable('tag');
$total3 = $table3->numRow();
$table4 = new PoTable('media');
$total4 = $table4->numRow();
$table5 = new PoTable('pages');
$total5 = $table5->numRow();
$table6 = new PoTable('component');
$total6 = $table6->numRow();
$table7 = new PoTable('users');
$total7 = $table7->numRow();
$table8 = new PoTable('comment');
$total8 = $table8->numRowBy(status, 'N');
$table9 = new PoTable('contact');
$total9 = $table9->numRowBy(status, 'N');
$total10 = mysql_query("SELECT * FROM post,users WHERE users.id_user = post.editor AND users.level = '3' AND post.active = 'N'");
$total10 = mysql_num_rows($total10);
include "po-component/po-home/traffic.php";
$visitorc = $currentStat3 + $currentStat4 + $currentStat5 + $currentStat6;
$hitsc = $sql_hits3 + $sql_hits4 + $sql_hits5 + $sql_hits6;
?>
<div class="content-header">
<div class="header-section">
<div class="row">
<div class="col-md-4 col-lg-6 hidden-xs hidden-sm">
<h1><?php
echo $langhome1;
?>
<small><?php
echo $langhome2;
示例4: header
echo $gallery->title;
?>
</h5>
</div>
</div> <!-- **portfolio-detail - Ends** -->
</div>
<?php
}
?>
</div> <!-- **portfolio-container - Ends** -->
<!-- **pagination - Starts** -->
<div class="pagination">
<ul>
<?php
$getpage = $val->validasi($_GET['page'], 'sql');
$jmldata = $tablegal->numRowBy(id_album, $idalb);
$jmlhalaman = $p->jumlahHalaman($jmldata, $batas);
$linkHalaman = $p->navHalaman($getpage, $jmlhalaman, $website_url, "gallery/{$title}", "page", "1");
echo "{$linkHalaman}";
?>
</ul>
</div> <!-- **pagination - Ends** -->
<div class="dt-sc-margin50"></div>
</section>
</div> <!-- **container - Ends** -->
</div> <!-- **Main - Ends** -->
<?php
} else {
header('location:' . $website_url . '/404.php');
}
?>
示例5: PoTable
<a href="#" class="widget-image-container animation-hatch">
<?php
$filename = "../po-content/po-upload/user-{$_SESSION['iduser']}.jpg";
if (file_exists("{$filename}")) {
echo "<img src='../po-content/po-upload/user-{$_SESSION['iduser']}.jpg' class='widget-image img-circle' alt='avatar' width='30' height='30' />";
} else {
echo "<img src='../po-content/po-upload/user-editor.jpg' class='widget-image img-circle' alt='avatar' width='30' height='30' />";
}
?>
</a>
<div class="row text-center animation-fadeIn">
<div class="col-xs-6">
<h3>
<?php
$tableposts = new PoTable("post");
$numposts = $tableposts->numRowBy(editor, $currentUser->id_user);
?>
<strong><?php
echo $numposts;
?>
</strong>
<small>Post</small>
</h3>
</div>
<div class="col-xs-6">
<h3>
<strong><?php
echo $currentUser->id_user;
?>
</strong>
<small>User Id</small>
示例6: Povalidasi
<?php
session_start();
include_once 'po-library/po-database.php';
include_once 'po-library/po-function.php';
$val = new Povalidasi();
if (!$_SESSION['submit']) {
header("location:404.php");
} else {
if (empty($_POST['email_address'])) {
header("location:404.php");
} else {
$tablecari = new PoTable('subscribe');
$currentCari = $tablecari->numRowBy(email, $_POST['email_address']);
if ($currentCari > 0) {
header("location:404.php");
} else {
$email = $val->validasi($_POST['email_address'], 'xss');
$table = new PoTable('subscribe');
$table->save(array('email' => $email));
unset($_POST);
echo "<script language='javascript'>\r\n window.alert('Succesfully Email Subscribe')\r\n window.location.href='./';\r\n </script>";
}
}
}
示例7: PoTable
<!-- **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">
<?php