private function handleUserInfoWithWeb()
 {
     $user_cookies = parent::v('cookies', array('password'));
     if ($user_cookies['password']) {
     } else {
         $this->loginIn();
     }
 }
 public function editProject_Action()
 {
     if (app::v('checkallow', 'submit')) {
         $baseId = intval($this->getInput['baseId']);
         $moneyInfo = array(control_baseMoney::TABLE_BASEMONEY => $this->getInput[control_baseMoney::TABLE_BASEMONEY], control_baseMoney::TABLE_RUNMONEY => $this->getInput[control_baseMoney::TABLE_RUNMONEY], control_baseMoney::TABLE_CLIENTMONEY => $this->getInput[control_baseMoney::TABLE_CLIENTMONEY]);
         control_baseMoney::editBaseMoneyInfo($moneyInfo, $baseId);
         showmsg(control_returnCode::FORM_SUBMIT_TRUE);
     }
 }
 public function edit_Action()
 {
     $userId = $this->getInput['userId'];
     if ($userId) {
         $userInfo = control_user::getUserInfo($userId);
         if (!$userInfo) {
             showmsg(control_returnCode::FORM_INFO_EMPTY);
         }
     }
     if (app::v('checkallow', 'submit')) {
         if ($userInfo) {
             $status = control_user::editUser($userId, array(control_user::TABLE_REALNAME => $this->getInput[control_user::TABLE_REALNAME], control_user::TABLE_EMAIL => $this->getInput[control_user::TABLE_EMAIL], control_user::TABLE_PASSWORD => $this->getInput[control_user::TABLE_PASSWORD]));
         } else {
             $status = control_user::regUser(array(control_user::TABLE_REALNAME => $this->getInput[control_user::TABLE_REALNAME], control_user::TABLE_EMAIL => $this->getInput[control_user::TABLE_EMAIL], control_user::TABLE_PASSWORD => $this->getInput[control_user::TABLE_PASSWORD]));
         }
         showmsg($status, array(), $this->privateUri['clientListUri']);
     } else {
         $this->modelDisplay(array('userInfo' => $userInfo, 'formTitle' => !$userInfo ? '新增客户' : '编辑客户', 'userId' => $userId));
     }
 }
Beispiel #4
0
 public function getFileInput($fileList = array())
 {
     return app::v('file', $fileList, array('addslashes'));
 }
Beispiel #5
0
             showmsg(control_returnCode::AJAX_GET_NOMODEL);
             break;
     }
 }
 public function systemUpdate_Action()
 {
     if (app::v('checkallow', 'submit')) {
         foreach (control_systemBase::getMoneyArray() as $key => $val) {
             $baseInfo[$key] = $this->getInput[$key];
         }