</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>"; }
<?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 -->
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>