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


PHP task::nextRecord方法代码示例

本文整理汇总了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>&nbsp;";
    }
    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>";
}
开发者ID:ajay-code,项目名称:techshark,代码行数:31,代码来源:brands.php

示例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 -->
开发者ID:ajay-code,项目名称:techshark,代码行数:31,代码来源:viewadmin.php

示例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>
开发者ID:ajay-code,项目名称:techshark,代码行数:31,代码来源:admins.php


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