Exemplo n.º 1
0
 public function department()
 {
     $did = (int) $this->input->get('did');
     $per_page_job = 8;
     //招聘职位
     $per_page = 5;
     //员工
     $p = (int) page_cur();
     // 获取当前页码
     $employee_table = 'yj_employee';
     $employee_job = 'yj_job';
     $data['p'] = $p;
     $data['employ'] = $this->join_us_m->get_department_employee($did, $per_page, $per_page * ($p - 1));
     $data['job'] = $this->join_us_m->get_department_job($did, $per_page_job, $per_page_job * ($p - 1));
     if ($this->join_us_m->get_depar_num($did, $employee_job) / $per_page_job > $this->join_us_m->get_depar_num($did, $employee_table) / $per_page) {
         $num = $this->join_us_m->get_depar_num($did, $employee_job);
         $data['page_html'] = page($num, $per_page_job);
     } else {
         $num = $this->join_us_m->get_depar_num($did, $employee_table);
         $data['page_html'] = page($num, $per_page);
     }
     $data['depart'] = $this->join_us_m->get_department($did);
     $data['topic'] = $this->join_us_m->get_topic();
     $data['imgs'] = $this->home_pic_m->pic_info(5);
     $data['imgs_num'] = $this->home_pic_m->pic_num(5);
     $data['partners'] = $this->partners_m->get_all();
     $this->load->view('join_us', $data);
 }
Exemplo n.º 2
0
 public function listFile()
 {
     $p = page_cur();
     $per_page = 10;
     $tid = $this->input->get('tid');
     $data['upload'] = $this->upload_m->upload_list($per_page, ($p - 1) * $per_page, $tid);
     $data['page_html'] = page($this->upload_m->count_all());
     $data['tid'] = $tid;
     $data['type_name'] = $this->article_type_m->get_name($tid);
     $this->load->view('admin/upload_list', $data);
 }
Exemplo n.º 3
0
 public function businesspro()
 {
     $per_page = 5;
     $p = (int) page_cur();
     // 获取当前页码
     $data['p'] = $p;
     $data['pro'] = $this->service_channel_m->get_pro_list($per_page, $per_page * ($p - 1));
     $data['page_html'] = page($this->service_channel_m->get_pro_num(), $per_page);
     $data['imgs'] = $this->home_pic_m->pic_info(8);
     $data['imgs_num'] = $this->home_pic_m->pic_num(8);
     $data['partners'] = $this->partners_m->get_all();
     $this->load->view('busi_problem', $data);
 }
Exemplo n.º 4
0
 public function index()
 {
     $per_page = 7;
     $p = (int) page_cur();
     // 获取当前页码
     $data['p'] = $p;
     $data['news'] = $this->news_m->get_list($per_page, $per_page * ($p - 1));
     $data['page_html'] = page($this->news_m->get_num(), $per_page);
     $data['imgs'] = $this->home_pic_m->pic_info(7);
     $data['imgs_num'] = $this->home_pic_m->pic_num(7);
     $data['partners'] = $this->partners_m->get_all();
     $this->load->view('news', $data);
 }
Exemplo n.º 5
0
 public function index()
 {
     $type = 1;
     $per_page = 3;
     $p = (int) page_cur();
     // 获取当前页码
     $data['p'] = $p;
     $data['result'] = $this->about_us_m->select_limit($type, $per_page, $per_page * ($p - 1));
     $data['page_html'] = page($this->about_us_m->get_all_num($type), $per_page);
     $data['res_topic'] = $this->topic_m->get_all();
     $data['imgs'] = $this->home_pic_m->pic_info(4);
     $data['imgs_num'] = $this->home_pic_m->pic_num(4);
     $data['partners'] = $this->partners_m->get_all();
     $this->load->view('service', $data);
 }
Exemplo n.º 6
0
 public function index()
 {
     $per_page = 10;
     $p = (int) page_cur();
     // 获取当前页码
     $data['p'] = $p;
     $id = $this->input->get('id');
     $case = $this->cases_m->get_id($id);
     $data['case'] = $case;
     $data['cases'] = $this->cases_m->get_list_rand($per_page, ($p - 1) * $per_page);
     $data['page_html'] = page($this->cases_m->get_num(), $per_page);
     $data['partners'] = $this->partners_m->get_all();
     $data['types'] = $this->type_m->get_all(3);
     $this->load->view('case_expand', $data);
 }
Exemplo n.º 7
0
 public function index()
 {
     $tid = $this->input->get('tid');
     $per_page = 40;
     $p = (int) page_cur();
     // 获取当前页码
     $data['p'] = $p;
     $data['count'] = 0;
     $cases_numb = $this->cases_m->get_num($tid);
     $data['cases'] = $this->cases_m->get_list($per_page, $per_page * ($p - 1), $tid);
     $data['page_html'] = page($cases_numb, $per_page);
     $data['partners'] = $this->partners_m->get_all();
     $data['types'] = $this->type_m->get_all(3);
     $this->load->view('subpage_case', $data);
 }
Exemplo n.º 8
0
 public function index()
 {
     $type = 2;
     $per_page_new = 7;
     $per_page_w = 3;
     $p = (int) page_cur();
     // 获取当前页码
     $data['p'] = $p;
     $data['news'] = $this->news_m->get_list($per_page_new, $per_page_new * ($p - 1));
     $data['result'] = $this->about_us_m->select_limit($type, $per_page_w, $per_page_w * ($p - 1));
     if ($this->about_us_m->get_all_num($type) / $per_page_w < $this->news_m->get_num() / $per_page_new) {
         $data['page_html'] = page($this->news_m->get_num(), $per_page_new);
     } else {
         $data['page_html'] = page($this->about_us_m->get_all_num($type), $per_page_w);
     }
     $data['title'] = "我喜欢";
     $data['imgs'] = $this->home_pic_m->pic_info(6);
     $data['imgs_num'] = $this->home_pic_m->pic_num(6);
     $data['res_topic'] = $this->topic_m->get_all();
     $data['partners'] = $this->partners_m->get_all();
     $this->load->view('about_us', $data);
 }
Exemplo n.º 9
0
 public function index()
 {
     $per_page_news = 6;
     //新闻
     $per_page = 3;
     //案例
     $p = (int) page_cur();
     // 获取当前页码
     $data['p'] = $p;
     $data['news'] = $this->news_m->get_list($per_page_news, $per_page_news * ($p - 1));
     $data['cases'] = $this->cases_m->get_list($per_page, $per_page * ($p - 1));
     if ($this->news_m->get_num() / $per_page_news > $this->cases_m->get_num() / $per_page) {
         $num = $this->news_m->get_num();
         $data['page_html'] = page($num, $per_page_news);
     } else {
         $num = $this->cases_m->get_num();
         $data['page_html'] = page($num, $per_page);
     }
     $data['imgs'] = $this->home_pic_m->pic_info(1);
     $data['imgs_num'] = $this->home_pic_m->pic_num(1);
     $data['brand'] = $this->brand_intro_m->get_list();
     $data['partners'] = $this->partners_m->get_all();
     $this->load->view('index', $data);
 }
Exemplo n.º 10
0
 public function service()
 {
     $data['p'] = (int) page_cur();
     // 获取当前页码
     $data['username'] = $this->session->userdata('username');
     $data['id'] = (int) $this->input->get('id');
     $servicechannel = $this->service_channel_m->get($data['id']);
     if ($servicechannel === FALSE) {
         redirect('admin/servicechannel');
     }
     $data['company'] = $servicechannel['company'];
     $data['phone'] = $servicechannel['phone'];
     $data['client_name'] = $servicechannel['client_name'];
     $data['email'] = $servicechannel['email'];
     $data['address'] = $servicechannel['address'];
     $data['message'] = $servicechannel['message'];
     $data['add_date'] = $servicechannel['add_date'];
     //$data['form_url'] = 'admin/servicechannel/edit?id=' . $data['id'].'&p='.$data['p'];
     $this->load->view('admin/service.php', $data);
 }
Exemplo n.º 11
0
 public function search()
 {
     $per_page = 20;
     $p = (int) page_cur();
     // 获取当前页码
     $data['p'] = $p;
     $keyword = $this->input->get('keyword');
     $data['News'] = $this->article_m->search($keyword, $per_page, $per_page * ($p - 1));
     $data['page_html'] = page($this->article_m->count_all($keyword), $per_page);
     $data['keyword'] = $keyword;
     $this->load->view('search_result', $data);
 }
Exemplo n.º 12
0
 public function edit_v()
 {
     $id = (int) $this->input->get('id');
     $data = $this->cases_m->get($id);
     if ($data === FALSE) {
         redirect('admin/cases');
     }
     $data['tid'] = json_decode($data['tid']);
     $data['p'] = (int) page_cur();
     // 获取当前页码
     $data['username'] = $this->session->userdata('username');
     $data['id'] = $id;
     $data['types'] = $this->type_m->get_all(3);
     $data['form_url'] = 'admin/cases/edit?id=' . $data['id'] . '&p=' . $data['p'];
     $this->load->view('admin/cases_add.php', $data);
 }
Exemplo n.º 13
0
 public function edit_v()
 {
     $data['p'] = (int) page_cur();
     // 获取当前页码
     $data['username'] = $this->session->userdata('username');
     $data['id'] = (int) $this->input->get('id');
     $news = $this->news_m->get($data['id']);
     if ($news === FALSE) {
         redirect('admin/news');
     }
     $data['title'] = $news['title'];
     $data['content'] = $news['content'];
     $data['images'] = $news['images'];
     $data['form_url'] = 'admin/news/edit?id=' . $data['id'] . '&p=' . $data['p'];
     $this->load->view('admin/news_add.php', $data);
 }
Exemplo n.º 14
0
 public function detail()
 {
     $p = (int) page_cur();
     $data['p'] = $p;
     $data['username'] = $this->session->userdata('username');
     $type = $this->input->get('type');
     $id = $this->input->get('id');
     $data['type'] = $type;
     $data['text'] = $this->about_us_m->select_i($type, $id);
     $this->load->view('admin/g_detail', $data);
 }
Exemplo n.º 15
0
 public function delete_job()
 {
     $p = (int) page_cur();
     $id = $_GET['id'];
     $this->join_us_m->delete_job($id);
     redirect('admin/join_us/job?p=' . $p);
 }