当前位置: 首页>>代码示例>>PHP>>正文


PHP MemberModel::check_name方法代码示例

本文整理汇总了PHP中MemberModel::check_name方法的典型用法代码示例。如果您正苦于以下问题:PHP MemberModel::check_name方法的具体用法?PHP MemberModel::check_name怎么用?PHP MemberModel::check_name使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MemberModel的用法示例。


在下文中一共展示了MemberModel::check_name方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addsjs

 /**
  * 添加设计师
  */
 public function addsjs()
 {
     parent::_initalize();
     $this->assign("systemConfig", $this->systemConfig);
     $citymod = new CityModel();
     $is_qx = $this->getqx($_SESSION['my_info']['role']);
     if ($is_qx == 0) {
         #省
         $pro_list = $citymod->getprovince(1);
         $this->assign("pro_list", $pro_list);
     } else {
         $p_id = $_SESSION['my_info']['proid'];
         $c_id = $_SESSION['my_info']['cityid'];
         #区
         $qulist = $citymod->getcity($c_id);
         $this->assign("qulist", $qulist);
         $this->assign("p_id", $p_id);
         $this->assign("c_id", $c_id);
     }
     $this->assign("is_qx", $is_qx);
     $fgmod = M("Fgcategory");
     $fglist = $fgmod->where("1")->select();
     $this->assign("fglist", $fglist);
     $this->assign("is_add", 1);
     if (IS_POST) {
         $a_name = trim($_POST['a_name']);
         $status = trim($_POST['status']);
         $pwd = trim($_POST['pwd']);
         $confirm_pwd = trim($_POST['confirm_pwd']);
         if (empty($a_name)) {
             $this->error("登录名不能为空!");
             exit;
         }
         if (empty($pwd)) {
             $this->error("密码不能为空!");
             exit;
         }
         if (empty($confirm_pwd)) {
             $this->error("确认密码不能为空!");
             exit;
         }
         if (empty($confirm_pwd)) {
             $this->error("确认密码不能为空!");
             exit;
         }
         if ($pwd != $confirm_pwd) {
             $this->error("两次输入的密码不能为空!");
             exit;
         }
         //登录名称是否存在
         $memmod = new MemberModel();
         if ($memmod->check_name($a_name) > 0) {
             $this->error("登录名已经存在,请重新命名");
             exit;
         }
         $picName = trim($_POST['picName']);
         $truename = trim($_POST['truename']);
         if (empty($truename)) {
             $this->error("真实姓名不能为空!");
             exit;
         }
         $sex = $_POST['sex'];
         $mvophone = trim($_POST['mvophone']);
         $koubei = trim($_POST['koubei']);
         $email = trim($_POST['email']);
         $gongling = trim($_POST['gongling']);
         $qq = trim($_POST['qq']);
         $jiguan = trim($_POST['jiguan']);
         $scfg = $_POST['scfg'];
         $zhicheng = trim($_POST['zhicheng']);
         $sjln = trim($_POST['sjln']);
         $is_tj = $_POST['is_tj'];
         $dhimg = $_FILES['dhimg']['name'];
         if (!empty($dhimg)) {
             $path = "/Uploads/shangjia/";
             $imginf = $this->upload("." . $path);
             if (!empty($imginf[0]['savename'])) {
                 $dhimg_str = $path . $imginf[0]['savename'];
             }
         }
         $p_id = $_POST['p_id'];
         $c_id = $_POST['c_id'];
         $q_id = $_POST['q_id'];
         $address = trim($_POST['address']);
         $jingdu = trim($_POST['jingdu']);
         $weidu = trim($_POST['weidu']);
         $maindata = array("a_name" => $a_name, "a_pwd" => encrypt($pwd), "a_type" => 4, "status" => $status);
         $fjdata = array();
         $fjdata['logo'] = $picName;
         $fjdata['truename'] = $truename;
         $fjdata['sex'] = $sex;
         $fjdata['movphone'] = $mvophone;
         $fjdata['koubei'] = $koubei;
         $fjdata['email'] = $email;
         $fjdata['gongling'] = $gongling;
         $fjdata['qq'] = $qq;
         $fjdata['jiguan'] = $jiguan;
//.........这里部分代码省略.........
开发者ID:snowtl,项目名称:tanglang,代码行数:101,代码来源:MemberAction.class.php


注:本文中的MemberModel::check_name方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。