本文整理汇总了PHP中PoTable::findNotAll方法的典型用法代码示例。如果您正苦于以下问题:PHP PoTable::findNotAll方法的具体用法?PHP PoTable::findNotAll怎么用?PHP PoTable::findNotAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PoTable
的用法示例。
在下文中一共展示了PoTable::findNotAll方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PoTable
echo $aksi;
?>
" 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 $aksi;
?>
" autocomplete="off">
<fieldset>
<input type="hidden" name="mod" value="post">
<input type="hidden" name="act" value="update">
<input type="hidden" name="id" value="<?php
echo $currentPosts->id_post;
?>
">
<?php
$tableselcats = new PoTable('category');
$selcats = $tableselcats->findBy(id_category, $currentPosts->id_category);
$selcats = $selcats->current();
$tablecats = new PoTable('category');
$cats = $tablecats->findNotAll(id_category, $currentPosts->id_category);
$numcats = $tablecats->numRow();
if ($numcats > 0) {
echo "<div class='form-group'>\n\t\t\t\t\t\t\t<label>Category</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-6' id='selectcatdata'>\n\t\t\t\t\t\t\t\t\t<select class='select-chosen' name='id_category' style='width:280px;' data-placeholder='Choose a Category'>\n\t\t\t\t\t\t\t\t\t<option value='{$selcats->id_category}'>{$selcats->title}</option>";
foreach ($cats as $cat) {
echo "<option value='{$cat->id_category}'>{$cat->title}</option>";
}
echo "</select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class='col-md-6'>\n\t\t\t\t\t\t\t\t\t<a href='javascript:void(0);' id='tbladdcat' class='btn btn btn-success'><i class='fa fa-plus-square-o'></i> Or Add New Category</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>";
} else {
echo "<div class='form-group'>\n\t\t\t\t\t\t\t<label>Add New Category</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-6' id='selectcatdata'>\n\t\t\t\t\t\t\t\t\t<select class='select-chosen' name='id_category' style='width:280px;' data-placeholder='Choose a Category'>\n\t\t\t\t\t\t\t\t\t<option value='{$selcats->id_category}'>{$selcats->title}</option>";
foreach ($cats as $cat) {
echo "<option value='{$cat->id_category}'>{$cat->title}</option>";
}
echo "</select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class='col-md-6'>\n\t\t\t\t\t\t\t\t\t<a href='javascript:void(0);' id='tbladdcat' class='btn btn btn-success'><i class='fa fa-plus-square-o'></i> Add New Category</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>";
}
?>
示例3: PoTable
echo $aksi;
?>
" autocomplete="off">
<fieldset>
<input type="hidden" name="mod" value="gallery">
<input type="hidden" name="act" value="editgallery">
<input type="hidden" name="id" value="<?php
echo $currentGallery->id_gallery;
?>
">
<?php
$tableselcats = new PoTable('album');
$selcats = $tableselcats->findBy(id_album, $currentGallery->id_album);
$selcats = $selcats->current();
$tablealbums = new PoTable('album');
$albums = $tablealbums->findNotAll(id_album, $currentGallery->id_album);
$numalbums = $tablealbums->numRow();
if ($numalbums > 0) {
echo "<div class='form-group'>\r\n\t\t\t\t\t\t<label>Album</label>\r\n\t\t\t\t\t\t<div class='row'>\r\n\t\t\t\t\t\t\t<div class='col-md-6'>\r\n\t\t\t\t\t\t\t\t<select class='select-chosen' name='id_album' style='width:280px;' data-placeholder='Choose a Album'>\r\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>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class='col-md-6'>\r\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>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>";
} else {
echo "<div class='form-group'>\r\n\t\t\t\t\t\t<div class='row'>\r\n\t\t\t\t\t\t\t<div class='col-md-2'>\r\n\t\t\t\t\t\t\t\t<label>Add New Album</label>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class='col-md-10'>\r\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>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\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 $currentGallery->title;
示例4: PoTable
echo $currentUser->no_telp;
?>
" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Level</label>
<select class="select-chosen-no-search" name="level" style="width:280px;" data-placeholder="Choose Level">
<?php
$tableselevel = new PoTable('user_level');
$sellevels = $tableselevel->findBy(id_level, $currentUser->level);
$sellevels = $sellevels->current();
echo "<option value='{$sellevels->id_level}'>{$sellevels->level}</option>";
$tablelevels = new PoTable('user_level');
$levels = $tablelevels->findNotAll(id_level, $currentUser->level);
foreach ($levels as $level) {
echo "<option value='{$level->id_level}'>{$level->level}</option>";
}
?>
</select>
</div>
</div>
</div>
<div class="form-group">
<label>Bio</label>
<textarea class="form-control" rows="8" cols="" id="bio" name="bio"><?php
echo $dutf;
?>
</textarea>
<span class="help-block">Field limited to 600 characters.</span>