Esempio n. 1
0
 function pager()
 {
     // 设置必须的参数
     $where = array();
     $where['category'] = $this->category;
     $where['related_id'] = $this->related_id;
     //列表
     $return = parent::pager($where);
     // 内容链接
     $base_url = $this->pager_url;
     if ($this->input->get("page")) {
         $base_url .= "&page=" . $this->input->get("page");
     }
     foreach ($return['list_result'] as $key => $temp) {
         $return['list_result'][$key]['booth_url'] = $base_url . "&bid=" . $temp['id'];
     }
     // 当前内容信息
     $current_booth_id = $this->input->get('bid');
     if ($current_booth_id) {
         foreach ($return['list_result'] as $key => $temp) {
             if ($temp['id'] == $current_booth_id) {
                 $current_booth = $temp;
                 break;
             }
         }
         if (!isset($current_booth)) {
             show_404();
         }
     } else {
         $current_booth = @$return['list_result'][0];
     }
     $return['current_booth'] = $current_booth;
     return $return;
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('hz_remind');
     $this->set_pk_name('id');
     $this->limit = 15;
 }
Esempio n. 3
0
 /**
  * 模型构造函数
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     $this->set_table('banzhu_manager');
     $this->set_pk_name('id');
     $this->limit = 3;
 }
 public function __construct()
 {
     parent::__construct();
     $this->set_table('merge_application');
     $this->set_pk_name('id');
     $this->limit = 20;
 }
 public function __construct()
 {
     parent::__construct();
     $this->set_table('page_advert_position');
     $this->set_pk_name('id');
     $this->limit = 3;
 }
Esempio n. 6
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('gl_exh');
     $this->set_pk_name('id');
     $this->limit = 20;
 }
Esempio n. 7
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('reservation_ads');
     $this->set_pk_name('id');
     $this->limit = 20;
 }
Esempio n. 8
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('template_setting');
     $this->set_pk_name('id');
     $this->limit = 3;
 }
Esempio n. 9
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('product_category');
     $this->set_pk_name('id');
     $this->limit = 20;
 }
Esempio n. 10
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('comment_digglist');
     $this->set_pk_name('id');
     $this->limit = 3;
 }
Esempio n. 11
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('company_contact');
     $this->set_pk_name('id');
     $this->limit = 20;
 }
 public function __construct()
 {
     parent::__construct();
     $this->set_table('exhibition_permission');
     $this->set_pk_name('id');
     $this->limit = 20;
 }
Esempio n. 13
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('ads_images');
     $this->set_pk_name('id');
     $this->limit = 20;
 }
Esempio n. 14
0
 /**
  * 模型构造函数
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     $this->set_table('certificate');
     $this->set_pk_name('id');
     $this->limit = 20;
 }
Esempio n. 15
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('datum_comment');
     $this->set_pk_name('id');
     $this->limit = 20;
 }
Esempio n. 16
0
 /**
  * 模型构造函数
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     $this->set_table('participation');
     $this->set_pk_name('id');
     $this->limit = 12;
 }
Esempio n. 17
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('album_resource');
     $this->set_pk_name('id');
     $this->limit = 3;
 }
Esempio n. 18
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('diary_digglist');
     $this->set_pk_name('id');
     $this->limit = 20;
 }
Esempio n. 19
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('ground');
     $this->set_pk_name('id');
     $this->limit = 3;
 }
 public function __construct()
 {
     parent::__construct();
     $this->set_table('exhibition_identify');
     $this->set_pk_name('id');
     $this->limit = 3;
 }
Esempio n. 21
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('place_room');
     $this->set_pk_name('id');
     $this->limit = 20;
 }
Esempio n. 22
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('other_product');
     $this->set_pk_name('id');
     $this->limit = 3;
 }
Esempio n. 23
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('datum_reply');
     $this->set_pk_name('id');
     $this->limit = 3;
 }
Esempio n. 24
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table('comment_retrans');
     $this->set_pk_name('id');
     $this->limit = 20;
 }
Esempio n. 25
0
 function get_list($where = array())
 {
     $return = parent::get_list($where);
     foreach ($return as $key => $item) {
         $return[$key]['company_url'] = base_url("/company/index?id=" . $item['id']);
     }
     return $return;
 }
Esempio n. 26
0
 function pager()
 {
     // 设置必须的参数
     $where = array();
     $p_id = $this->input->get('id');
     $p_cid = $this->input->get('cid');
     $p_pid = $this->input->get('pid');
     $where = array('company_id' => $p_id, 'category_id' => $p_cid);
     //列表
     $return = parent::pager($where);
     // 内容链接
     $base_url = $this->pager_url;
     if ($this->input->get("page")) {
         $base_url .= "&page=" . $this->input->get("page");
     }
     foreach ($return['list_result'] as $key => $temp) {
         $return['list_result'][$key]['product_url'] = $base_url;
     }
     // 当前内容信息
     $current_product_id = $this->input->get('bid');
     if ($current_product_id) {
         foreach ($return['list_result'] as $key => $temp) {
             if ($temp['id'] == $current_product_id) {
                 $current_product = $temp;
                 break;
             }
         }
         if (!isset($current_product)) {
             show_404();
         }
     } else {
         $current_product = @$return['list_result'][0];
     }
     $return['current_product'] = $current_product;
     return $return;
 }
Esempio n. 27
0
 function get_resource_list($alb_id)
 {
     $where['alb_id'] = $alb_id;
     return parent::get_list($where, $this->db->dbprefix("album_resource"));
 }
Esempio n. 28
0
 function __construct()
 {
     parent::__construct();
 }
Esempio n. 29
0
 function get_row($id = NULL)
 {
     $item = parent::get_row($id);
     if ($item) {
         $item = (array) $item;
         $organize_array = array('host', 'organize', 'support', 'co_organize', 'media', 'sponsor');
         foreach ($organize_array as $field) {
             $item[$field . "_array"] = array();
             foreach (explode(",", $item[$field]) as $tt) {
                 if (trim($tt)) {
                     $item[$field . "_array"][] = trim($tt);
                 }
             }
         }
     }
     return $item;
 }
Esempio n. 30
0
 function __construct()
 {
     parent::__construct();
     $this->pk_name = 'id';
     $this->set_table($this->db->dbprefix('user'));
 }