Beispiel #1
0
 /**
  * PlatFormAct::actList()
  * 列出符合条件的数据并分页显示
  * @param string $where 查询条件
  * @param integer $page 页码
  * @param integer $pagenum 每页个数
  * @return array 结果集数组
  */
 public function actList($where = '1', $page = 1, $pagenum = 20)
 {
     $res = PlatFormModel::modList($where, $page, $pagenum);
     self::$errCode = PlatFormModel::$errCode;
     self::$errMsg = PlatFormModel::$errMsg;
     return $res;
 }
 /**
  * TrackEmailAccountAct::actModify()
  * 返回某个客服邮件帐号的信息
  * @param int $id 查询ID
  * @return array 
  */
 public function actModify()
 {
     $data = array();
     $id = isset($_GET['id']) ? intval(trim($_GET['id'])) : 0;
     if (empty($id)) {
         show_message($this->smarty, "跟踪邮件ID不能为空?", "");
         return false;
     }
     $data['id'] = $id;
     $data['lists'] = PlatFormModel::modList(1, 1, 200);
     //平台列表
     $data['res'] = TrackEmailAccountModel::modModify($id);
     self::$errCode = TrackEmailAccountModel::$errCode;
     self::$errMsg = TrackEmailAccountModel::$errMsg;
     if (self::$errCode != 0) {
         show_message($this->smarty, self::$errMsg, "");
         return false;
     }
     return $data;
 }