本文整理汇总了PHP中task::nextRecord方法的典型用法代码示例。如果您正苦于以下问题:PHP task::nextRecord方法的具体用法?PHP task::nextRecord怎么用?PHP task::nextRecord使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类task
的用法示例。
在下文中一共展示了task::nextRecord方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: task
</div>
<div class="box-content">
<table class="table table-striped table-bordered bootstrap-datatable datatable">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th class="center">Actions</th>
</tr>
</thead>
<tbody>
<?php
$list = new task();
$query = "select * from brands where status='1' order by bid desc";
$list->query($query);
while ($list->nextRecord()) {
$id = $list->Record['bid'];
$name = $list->Record['name'];
echo "<tr>";
echo "<td>{$id}</td>";
echo "<td class='center'>{$name}</td>";
echo "<td class='center'>";
if ($_SESSION['editright'] == 'y') {
echo "<a class='btn btn-info' href='editbrand.php?id={$id}'><i class='icon-edit icon-white'></i>Edit</a> ";
}
if ($_SESSION['deleteright'] == 'y') {
echo "<a onclick='return confirm(\"Are you sure to delete this record?\");' class='btn btn-danger' href='delbrand.php?id={$id}'><i class='icon-trash icon-white'></i>Delete</a>";
}
echo "</td>";
echo "</tr>";
}
示例2: task
<?php
require_once 'config.php';
session_start();
$obj = new task();
$obj->checkUser();
$admin_id = $_GET["admin_id"];
$query = "select * from admins where admin_id='{$admin_id}'";
$obj->query($query);
$obj->nextRecord();
require_once "headincludes.php";
?>
<body>
<!-- topbar starts -->
<?php
require_once "topbar.php";
?>
<!-- topbar ends -->
<div class="container-fluid">
<div class="row-fluid">
<!-- left menu starts -->
<div class="span2 main-menu-span">
<div class="well nav-collapse sidebar-nav">
<?php
require_once "sidemenu.php";
?>
</div><!--/.well -->
</div><!--/span-->
<!-- left menu ends -->
示例3: task
if ($_SESSION['logintype'] == 'super') {
?>
<th>Actions</th>
<?php
}
?>
</tr>
</thead>
<tbody>
<?php
$id = $_SESSION['admin_id'];
$obj = new task();
$query = "select * from admins where type!='super' order by username";
$data = $obj->query($query);
$toggle = 0;
while ($obj->nextRecord()) {
$admin_id = $obj->Record['admin_id'];
?>
<tr>
<td class="center"><?php
echo $admin_id;
?>
</td>
<td class="center"><?php
echo $obj->Record['username'];
?>
</td>
<td class="center"><?php
echo $obj->Record['user_last_login'];
?>
</td>