本文整理汇总了PHP中PoTable::numRow方法的典型用法代码示例。如果您正苦于以下问题:PHP PoTable::numRow方法的具体用法?PHP PoTable::numRow怎么用?PHP PoTable::numRow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PoTable
的用法示例。
在下文中一共展示了PoTable::numRow方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PoTable
?>
" autocomplete="off">
<fieldset>
<input type="hidden" name="mod" value="video">
<input type="hidden" name="act" value="editvideo">
<input type="hidden" name="id" value="<?php
echo $currentVideo->id_video;
?>
">
<?php
$tableselcats = new PoTable('valbum');
$selcats = $tableselcats->findBy(id_album, $currentVideo->id_album);
$selcats = $selcats->current();
$tablealbums = new PoTable('valbum');
$albums = $tablealbums->findNotAll(id_album, $currentVideo->id_album);
$numalbums = $tablealbums->numRow();
if ($numalbums > 0) {
echo "<div class='form-group'>\n\t\t\t\t\t\t<label>Album</label>\n\t\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t\t<div class='col-md-6'>\n\t\t\t\t\t\t\t\t<select class='select-chosen' name='id_album' style='width:280px;' data-placeholder='Choose a Album'>\n\t\t\t\t\t\t\t\t<option value='{$selcats->id_album}'>{$selcats->title}</option>";
foreach ($albums as $album) {
echo "<option value='{$album->id_album}'>{$album->title}</option>";
}
echo "</select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class='col-md-6'>\n\t\t\t\t\t\t\t\t<a href='#tbladdalbum' class='btn btn btn-success' data-toggle='modal'><i class='fa fa-plus-square-o'></i> Or Add New Album</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>";
} else {
echo "<div class='form-group'>\n\t\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t\t<div class='col-md-2'>\n\t\t\t\t\t\t\t\t<label>Add New Album</label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class='col-md-10'>\n\t\t\t\t\t\t\t\t<a href='#tbladdalbum' class='btn btn btn-success' data-toggle='modal'><i class='fa fa-plus-square-o'></i> Add New Album</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>";
}
?>
<div class="form-group">
<label>Title <span class="text-danger">*</span></label>
<input class="form-control" type="text" id="title" name="title" value="<?php
echo $currentVideo->title;
?>
示例2: PoTable
echo $currentSiswa->jk;
?>
"><?php
echo $currentSiswa->jk;
?>
</option>
<option>-- Pilih --</option>
<option value="L">Laki-laki</option>
<option value="P">Perempuan</option>
</select>
<label>Kelas <span class="text-danger">*</span></label>
<?php
$tablecats = new PoTable("kelas");
$cats = $tablecats->findAll(id_kelas, ASC);
$numcats = $tablecats->numRow();
if ($numcats > 0) {
echo "<select class='select-chosen' name='idk' style='width:280px;'>\n <option value='{$currentSiswa->kelas}'>{$currentSiswa->idk}</option>";
foreach ($cats as $cat) {
echo "<option value='{$cat->id_kelas}'>{$cat->kelas}</option>";
}
echo "</select>";
}
?>
<label>No. Telp <span class="text-danger">*</span></label>
<input class="form-control" type="text" id="tlp" name="tlp" value="<?php
echo $currentSiswa->tlp;
?>
" required>
<label>Password <span class="text-danger">*</span></label>
示例3: PoTable
<a class="btn btn-sm btn-default" id="tiny-visual">Visual</a>
<a class="btn btn-sm btn-default" id="tiny-text">Text</a>
</span>
</div>
</div>
</div>
</div>
<textarea class="form-control" id="po-wysiwyg" name="content" style="height:500px;" required><?php
echo $dutf;
?>
</textarea>
</div>
<?php
$tabletag = new PoTable("tag");
$tags = $tabletag->findAll(id_tag, DESC);
$numtags = $tabletag->numRow();
if ($numtags > 0) {
echo "<div class='form-group'>\n\t\t\t\t\t\t\t<label>Tags</label>\n\t\t\t\t\t\t\t<div class='row'>\n\t\t\t\t\t\t\t\t<div class='col-md-8' id='selecttagdata'>";
function GetCheckboxes($tagging)
{
$tabletag = new PoTable("tag");
$tags = $tabletag->findAll(id_tag, DESC);
$_arrNilai = explode(',', $tagging);
$str = '';
foreach ($tags as $tag) {
$_ck = array_search($tag->tag_seo, $_arrNilai) === false ? '' : 'selected=selected';
$str .= "<option value='{$tag->tag_seo}' {$_ck}>{$tag->tag_title}</option>";
}
return $str;
}
$d = GetCheckboxes($currentPosts->tag);
示例4: PoTable
} else {
if ($_SESSION[leveluser] == '1' or $_SESSION[leveluser] == '2') {
$table1 = new PoTable('post');
$total1 = $table1->numRow();
$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
示例5: cuthighlight
"><?php
echo cuthighlight('title', $gallery->title, '15');
?>
...</a>
</li>
<?php
}
}
?>
</ul>
<div class="row">
<p> </p>
<ul class="pagination clearfix page_margin_top_section">
<?php
$getpage = $val->validasi($_GET['page'], 'sql');
$jmldata = $tablegal->numRow();
$jmlhalaman = $p->jumlahHalaman($jmldata, $batas);
$linkHalaman = $p->navHalaman($getpage, $jmlhalaman, $website_url, "gallery", "page", "1");
echo "{$linkHalaman}";
?>
</ul>
</div>
</div>
<?php
include_once "po-content/{$folder}/sidebar.php";
?>
</div>
</div>
</div>
示例6:
...</p>
</div>
</div> <!-- **entry-detail - Ends** -->
</div>
</article> <!-- **Blog-post - Ends** -->
</div>
<?php
$nov++;
}
?>
<!-- **pagination - Starts** -->
<div class="pagination">
<ul>
<?php
$getpage = $val->validasi($_GET['page'], 'sql');
$jmldata = $tableevt->numRow();
$jmlhalaman = $p->jumlahHalaman($jmldata, $batas);
$linkHalaman = $p->navHalaman($getpage, $jmlhalaman, $website_url, "listevent", "page", "1");
echo "{$linkHalaman}";
?>
</ul>
</div> <!-- **pagination - Ends** -->
<div class="dt-sc-margin50"></div>
</div> <!-- **container - Ends** -->
</section>
</div>
</div> <!-- **Main - Ends** -->
<!--
*******************************************************
示例7:
echo $dataalb->title;
?>
</a></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 = $tablealb->numRow();
$jmlhalaman = $p->jumlahHalaman($jmldata, $batas);
$linkHalaman = $p->navHalaman($getpage, $jmlhalaman, $website_url, "album", "page", "1");
echo "{$linkHalaman}";
?>
</ul>
</div> <!-- **pagination - Ends** -->
<div class="dt-sc-margin50"></div>
</section>
</div> <!-- **container - Ends** -->
</div> <!-- **Main - Ends** -->
<!--
*******************************************************
Include Footer Template