コード例 #1
0
ファイル: accountManage.view.php プロジェクト: ohjack/newErp
 public function view_userPowerSave()
 {
     $username = $_POST['username'] ? post_check($_POST['username']) : "";
     $power = $_POST['power'] ? post_check($_POST['power']) : "";
     $accountManage = new AccountManageAct();
     if (!empty($username) && !empty($power)) {
         $res = $accountManage->act_userPowerSave();
         echo $res;
     } else {
         echo false;
     }
     exit;
 }
コード例 #2
0
 public function act_addUserNmae()
 {
     $username = isset($_POST['addusername']) ? trim($_POST['addusername']) : "";
     if (empty($username)) {
         self::$errCode = "002";
         self::$errMsg = "请选择用户";
         return false;
     }
     $res = AccountManageModel::addUserName($username);
     self::$errCode = AccountManageModel::$errCode;
     self::$errMsg = AccountManageModel::$errMsg;
     return $res;
 }