本文整理汇总了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);