本文整理匯總了PHP中admin::deleteUser方法的典型用法代碼示例。如果您正苦於以下問題:PHP admin::deleteUser方法的具體用法?PHP admin::deleteUser怎麽用?PHP admin::deleteUser使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類admin
的用法示例。
在下文中一共展示了admin::deleteUser方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: header
<?php
include '../include/adminHeader.php';
if (!isset($_SESSION['a_info']['id'])) {
header("location:" . $URL_SITE . "admin/index.php");
}
if (isset($_REQUEST['del_id'])) {
$user_id = $_REQUEST['del_id'];
$result = admin::deleteUser($user_id);
$_SESSION['succ_msg'] = "User Deleted successfully";
header("location:" . $URL_SITE . "admin/home.php");
}
$sql = admin::displayUsers();
$objPagination = new Ps_Pagination($conn, $sql, 5, 5);
$exsql = $objPagination->paginate();
// $item_query=mysql_query($result);
$total_item = mysql_num_rows($exsql);
?>
<?php
if ($total_item > 0) {
?>
<table width="100%" border='1'>
<tr>
<th colspan="6">User Listings</th>
</tr>
<tr>
<th></th>
<th>Name</th>
<th>Email</th>
<th>City</th>
<th>State</th>
示例2:
$mod->deleteLevel($_GET);
} else {
if (isset($_GET['users'])) {
$mod->users();
} else {
if (isset($_POST['createUser'])) {
$mod->createUser($_POST);
} else {
if (isset($_GET['editUser'])) {
$mod->editUserForm($_GET);
} else {
if (isset($_POST['editUser'])) {
$mod->editUser($_POST);
} else {
if (isset($_GET['deleteUser'])) {
$mod->deleteUser($_GET);
} else {
if (isset($_GET['queues'])) {
$mod->queues();
} else {
if (isset($_POST['createQueue'])) {
$mod->createQueue($_POST);
} else {
if (isset($_GET['editQueue'])) {
$mod->editQueueForm($_GET);
} else {
if (isset($_POST['editQueue'])) {
$mod->editQueue($_POST);
} else {
if (isset($_GET['deleteQueue'])) {
$mod->deleteQueue($_GET);