Beispiel #1
0
 /**
  * get user select form (for error)
  * @param array $_data
  * @return array
  */
 public function getUserList($_data)
 {
     $ret = array();
     $db = new UserTable();
     $user_no = gv('user_no', $_data);
     if ($user_no) {
         $where = array('m_user.user_no IN (' . implode(', ', $user_no) . ")");
         $ret = $db->getTiltleUserPairs($where);
     }
     return $ret;
 }
Beispiel #2
0
 public function getApproverList($ids)
 {
     //3,5
     $idsAr = explode(',', $ids);
     $userTable = new UserTable();
     $rowSet = $userTable->getTiltleUserPairs(array(), $idsAr);
     //var_dump($rowSet);
     // 2,5,12
     //array(3) { [12]=> string(33) "Marvin Manguiat (Supervisor - PH)" [6]=> string(29) "Yokota Tetsuya (Manager - PH)" [5]=> string(28) "Yoshikawa Ken (Manager - PH)" }
     $selectData = array();
     if (count($idsAr) > 0) {
         foreach ($idsAr as $id) {
             $selectData[$id] = $rowSet[$id];
         }
     }
     return $selectData;
 }
Beispiel #3
0
 public function getUserList()
 {
     $where = array('user_no > 1');
     $db = new UserTable();
     return $db->getTiltleUserPairs(null, null, 0, $where);
 }