本文整理匯總了PHP中users::delUsers方法的典型用法代碼示例。如果您正苦於以下問題:PHP users::delUsers方法的具體用法?PHP users::delUsers怎麽用?PHP users::delUsers使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類users
的用法示例。
在下文中一共展示了users::delUsers方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: users
$action = $_REQUEST['action'];
include_once MODELS_ADMIN . "/" . $model . "_model.php";
switch (strtoupper($action)) {
case 'ADD':
if (isset($_REQUEST['btn_submit']) && $_REQUEST['btn_submit'] == 'save') {
$objUsr = new users();
$objUsr->setUsers($_REQUEST);
$objComm->redirect('index.php?model=' . $model);
}
break;
case 'VIEW':
case 'EDIT':
if (isset($_REQUEST['btn_submit']) && $_REQUEST['btn_submit'] == 'update') {
$objUsr = new users();
$objUsr->setUsers($_REQUEST);
$objComm->redirect('index.php?model=' . $model . '&action=edit&id=' . $_REQUEST['pk_id']);
} else {
$objUsr = new users();
$row = $objUsr->getUsers($_REQUEST['id']);
}
break;
case 'DELETE':
$objUsr = new users();
$objUsr->delUsers($_REQUEST['id']);
$objComm->redirect('index.php?model=' . $model);
break;
default:
$objUsr = new users();
$Records = $objUsr->getAllUsers();
break;
}
示例2: delUsers
/**
* protected Функция удаления пользователей по выражению WHERE
* Ф-я удаляет данные пользователей из таблиц: user, conf_users
*
* @param (array) $strWhere - строка для выражения WHERE
*
* @return bool
*/
public function delUsers($strWhere)
{
return parent::delUsers($strWhere);
}
示例3:
$smarty->assign('email', $data['email']);
}
if (isset($_POST['level'])) {
$data['level'] = $_POST['level'];
}
if ($data['level'] == 1) {
$smarty->assign('s1', "selected");
} else {
$smarty->assign('s2', "selected");
}
}
$template = "user_add_edit.tpl";
break;
case "delete":
if ($_POST['delete']) {
if ($usr->delUsers()) {
$smarty->assign('pesan', "User/s Deleted !" . $meta);
$smarty->assign('dshowMe', true);
} else {
$smarty->assign('pesan', "Failed to delete User/s !");
}
}
break;
default:
$template = "user.tpl";
}
// user list
$doAksi2 = false;
if ($listUsers = $usr->showUsers()) {
$smarty->assign('paging', $usr->pageMe());
$smarty->assign('listUsers', $listUsers);