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; }
public function __construct() { parent::__construct(); $this->set_table('hz_remind'); $this->set_pk_name('id'); $this->limit = 15; }
/** * 模型构造函数 * * @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; }
public function __construct() { parent::__construct(); $this->set_table('gl_exh'); $this->set_pk_name('id'); $this->limit = 20; }
public function __construct() { parent::__construct(); $this->set_table('reservation_ads'); $this->set_pk_name('id'); $this->limit = 20; }
public function __construct() { parent::__construct(); $this->set_table('template_setting'); $this->set_pk_name('id'); $this->limit = 3; }
public function __construct() { parent::__construct(); $this->set_table('product_category'); $this->set_pk_name('id'); $this->limit = 20; }
public function __construct() { parent::__construct(); $this->set_table('comment_digglist'); $this->set_pk_name('id'); $this->limit = 3; }
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; }
public function __construct() { parent::__construct(); $this->set_table('ads_images'); $this->set_pk_name('id'); $this->limit = 20; }
/** * 模型构造函数 * * @access public */ public function __construct() { parent::__construct(); $this->set_table('certificate'); $this->set_pk_name('id'); $this->limit = 20; }
public function __construct() { parent::__construct(); $this->set_table('datum_comment'); $this->set_pk_name('id'); $this->limit = 20; }
/** * 模型构造函数 * * @access public */ public function __construct() { parent::__construct(); $this->set_table('participation'); $this->set_pk_name('id'); $this->limit = 12; }
public function __construct() { parent::__construct(); $this->set_table('album_resource'); $this->set_pk_name('id'); $this->limit = 3; }
public function __construct() { parent::__construct(); $this->set_table('diary_digglist'); $this->set_pk_name('id'); $this->limit = 20; }
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; }
public function __construct() { parent::__construct(); $this->set_table('place_room'); $this->set_pk_name('id'); $this->limit = 20; }
public function __construct() { parent::__construct(); $this->set_table('other_product'); $this->set_pk_name('id'); $this->limit = 3; }
public function __construct() { parent::__construct(); $this->set_table('datum_reply'); $this->set_pk_name('id'); $this->limit = 3; }
public function __construct() { parent::__construct(); $this->set_table('comment_retrans'); $this->set_pk_name('id'); $this->limit = 20; }
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; }
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; }
function get_resource_list($alb_id) { $where['alb_id'] = $alb_id; return parent::get_list($where, $this->db->dbprefix("album_resource")); }
function __construct() { parent::__construct(); }
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; }
function __construct() { parent::__construct(); $this->pk_name = 'id'; $this->set_table($this->db->dbprefix('user')); }