示例#1
0
 function searchUser()
 {
     Mobile::logic('member');
     $MemberLogic = new MemberLogic();
     $q = trim($this->Get['q']);
     if (empty($q)) {
         Mobile::error("No Data", 400);
     }
     $param = array('limit' => Mobile::config("perpage_member"), 'nickname' => $q, 'max_id' => $this->Get['max_id']);
     $ret = $MemberLogic->getMemberList($param);
     if (is_array($ret)) {
         Mobile::output($ret);
     } else {
         Mobile::error("No Data", $ret);
     }
 }
示例#2
0
 function searchUser()
 {
     $this->Title = "Search User";
     Mobile::logic('member');
     $MemberLogic = new MemberLogic();
     $q = trim($this->Get['q']);
     if (empty($q)) {
         Mobile::show_message($ret);
     } else {
         $param = array('limit' => Mobile::config("perpage_member"), 'nickname' => $q);
         $keyword = urlencode($param['nickname']);
         $ret = Mobile::convert($MemberLogic->getMemberList($param));
         if (is_array($ret)) {
             $member_list = $ret['member_list'];
             $total_record = $ret['total_record'];
             $list_count = count($member_list);
             $max_tid = $ret['max_tid'];
         } else {
             Mobile::show_message($ret);
         }
     }
     include template('search_user');
 }