|
@@ -21,13 +21,15 @@ class staff extends DooModel {
|
|
public $position;
|
|
public $position;
|
|
public $avatar;
|
|
public $avatar;
|
|
public $appDate;
|
|
public $appDate;
|
|
-
|
|
|
|
|
|
+ public $hiredate;
|
|
|
|
+ public $nature;
|
|
|
|
+
|
|
public $_table = 'CLD_staff';
|
|
public $_table = 'CLD_staff';
|
|
public $_primarykey = 'sid';
|
|
public $_primarykey = 'sid';
|
|
- public $_fields = array ('sid', 'username','birthday','position', 'passwork','isadmin','cid','othercid','appDate','category','othercategory','gender','qq','phone','telephone','email','avatar' );
|
|
|
|
|
|
+ public $_fields = array ('sid', 'username','birthday','position', 'passwork','isadmin','cid','othercid','appDate','category','othercategory','gender','qq','phone','telephone','email','avatar','hiredate','nature' );
|
|
|
|
|
|
public function checkUser($uid,$passwork){
|
|
public function checkUser($uid,$passwork){
|
|
- return $this->find ( array ('select'=>'position,birthday,sid,username,isadmin,cid,othercid,category,othercategory,gender,qq,phone,telephone,email,avatar',
|
|
|
|
|
|
+ return $this->find ( array ('select'=>'position,birthday,sid,username,isadmin,cid,othercid,category,othercategory,gender,qq,phone,telephone,email,avatar,hiredate,nature',
|
|
'where' => "username= '".$uid."' and passwork = '".md5($passwork)."'", 'asArray' => TRUE ) );
|
|
'where' => "username= '".$uid."' and passwork = '".md5($passwork)."'", 'asArray' => TRUE ) );
|
|
}
|
|
}
|
|
|
|
|