当前位置: 首页>>代码示例>>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;未经允许,请勿转载。