當前位置: 首頁>>代碼示例>>PHP>>正文


PHP users::delUsers方法代碼示例

本文整理匯總了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;
}
開發者ID:business-expert,項目名稱:custompm,代碼行數:31,代碼來源:users.php

示例2: delUsers

 /**
  * protected Функция удаления пользователей по выражению WHERE
  * Ф-я удаляет данные пользователей из таблиц: user, conf_users
  * 
  * @param (array) $strWhere - строка для выражения WHERE
  * 
  * @return bool
  */
 public function delUsers($strWhere)
 {
     return parent::delUsers($strWhere);
 }
開發者ID:innova-market,項目名稱:JobExpert,代碼行數:12,代碼來源:user.class.php

示例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);
開發者ID:bryanbacus,項目名稱:skripsi-martin,代碼行數:31,代碼來源:user.php


注:本文中的users::delUsers方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。