コード例 #1
0
ファイル: publisher.php プロジェクト: joyes974/Ejob
 function index()
 {
     $this->load->library('grid');
     $gridObj = new grid();
     $gridColumn = array("Name", "Birthdate", "Username", "Present Address", "Phone", "Email", "Status");
     $gridColumnModel = array(array("name" => "name", "index" => "name", "width" => 60, "sortable" => true, "align" => "left", "editable" => false), array("name" => "birthdate", "index" => "birthdate", "width" => 90, "sortable" => true, "align" => "left", "editable" => false), array("name" => "username", "index" => "username", "width" => 90, "sortable" => true, "align" => "left", "editable" => false), array("name" => "present_address", "index" => "present_address", "width" => 60, "sortable" => true, "align" => "left", "editable" => false), array("name" => "phone", "index" => "phone", "width" => 60, "sortable" => true, "align" => "left", "editable" => false), array("name" => "email", "index" => "email", "width" => 90, "sortable" => true, "align" => "left", "editable" => false), array("name" => "status", "index" => "status", "width" => 60, "sortable" => true, "align" => "left", "editable" => false));
     $gridObj->setGridOptions("Member List", 880, 250, "id", "asc", $gridColumn, $gridColumnModel, site_url('publisher/get_publisher_list'), true);
     $data['grid_data'] = $gridObj->getGrid();
     $data['msg'] = $this->session->flashdata('msg');
     $data['upload_success_msg'] = $this->session->flashdata('upload_success_msg');
     $data['dir'] = 'publisher';
     $data['page'] = 'publisher_listing';
     $this->load->view('main', $data);
 }
コード例 #2
0
ファイル: admn.php プロジェクト: joyes974/Ejob
 function index()
 {
     if (!common::is_logged_in()) {
         redirect('login');
     }
     $this->load->library('grid');
     $gridObj = new grid();
     $gridColumn = array("ID", "User Name", "Password", "Email");
     $gridColumnModel = array(array("name" => "id", "index" => "id", "width" => 90, "sortable" => true, "align" => "center", "editable" => false), array("name" => "user_id", "index" => "user_id", "width" => 150, "sortable" => true, "align" => "center", "editable" => false), array("name" => "password", "index" => "password", "width" => 150, "sortable" => true, "align" => "center", "editable" => false), array("name" => "email", "index" => "email", "width" => 200, "sortable" => true, "align" => "left", "editable" => false));
     $gridObj->setGridOptions("Admin Info", 880, 250, "date", "desc", $gridColumn, $gridColumnModel, site_url('admn/load_admin'), true);
     $data['grid_data'] = $gridObj->getGrid();
     $data['msg'] = $this->session->flashdata('msg');
     $data['dir'] = 'admn';
     $data['page'] = 'admn_lising';
     $this->load->view('main', $data);
 }
コード例 #3
0
ファイル: advertise.php プロジェクト: joyes974/Ejob
 function index()
 {
     $this->load->library('grid');
     $gridObj = new grid();
     $gridColumn = array("Company Name", "Description", "Dead Line", "URL", "Status");
     $gridColumnModel = array(array("name" => "company_name", "index" => "company_name", "width" => 90, "sortable" => true, "align" => "left", "editable" => false), array("name" => "description", "index" => "description", "width" => 60, "sortable" => true, "align" => "left", "editable" => false), array("name" => "dead_line", "index" => "dead_line", "width" => 60, "sortable" => true, "align" => "left", "editable" => false), array("name" => "url", "index" => "url", "width" => 90, "sortable" => true, "align" => "left", "editable" => false), array("name" => "status", "index" => "status", "width" => 60, "sortable" => true, "align" => "left", "editable" => false));
     $gridObj->setGridOptions("Advertise List", 880, 250, "add_id", "asc", $gridColumn, $gridColumnModel, site_url('publisher/get_publisher_list_1'), true);
     $data['grid_data'] = $gridObj->getGrid();
     //$data['a'] = $this->mod_advertise->get_my_applicants_detail();
     //        print_r($data['a']);
     //        exit();
     $data['msg'] = $this->session->flashdata('msg');
     $data['upload_success_msg'] = $this->session->flashdata('upload_success_msg');
     $data['dir'] = 'advertise';
     $data['page'] = 'advertise_listing';
     $this->load->view('main', $data);
 }
コード例 #4
0
 function index()
 {
     $data['nav_array'] = array(array('title' => 'Manage Users', 'url' => ''));
     $this->load->library('grid');
     $gridObj = new grid();
     $gridColumn = array('User Name', "Password", "Status");
     $gridColumnModel = array(array("name" => "username", "index" => "username", "width" => 100, "sortable" => true, "align" => "left", "editable" => true), array("name" => "password", "index" => "password", "width" => 100, "sortable" => true, "align" => "left", "editable" => true), array("name" => "status", "index" => "status", "width" => 80, "sortable" => true, "align" => "center", "editable" => true));
     if ($_POST['apply_filter']) {
         $gridObj->setGridOptions("Manage Users", 880, 200, "id", "asc", $gridColumn, $gridColumnModel, site_url("?c=user&m=load_users&searchField={$_POST['searchField']}&searchValue={$_POST['searchValue']}"), true);
     } else {
         $gridObj->setGridOptions("Manage Users", 880, 200, "id", "asc", $gridColumn, $gridColumnModel, site_url('user/load_users'), true);
     }
     $data['grid_data'] = $gridObj->getGrid();
     $data['msg'] = $this->session->flashdata('msg');
     $data['dir'] = 'user';
     $data['page'] = 'index';
     $data['page_title'] = 'Manage Users';
     $this->load->view('main', $data);
 }
コード例 #5
0
 function index()
 {
     if (!common::view_permit()) {
         common::redirect();
     }
     $gridObj = new grid();
     $gridColumn = array("Question", "Type", "Status");
     $gridColumnModel = array(array("name" => "texts", "index" => "texts", "width" => 200, "sortable" => true, "align" => "left", "editable" => true), array("name" => "type", "index" => "type", "width" => 100, "sortable" => true, "align" => "center", "editable" => true), array("name" => "status", "index" => "status", "width" => 100, "sortable" => true, "align" => "center", "editable" => true));
     if ($_POST['apply_filter']) {
         //$this->session->set_userdata('type', $_POST['searchField']);
         $gridObj->setGridOptions("Manage Questions", 880, 200, "id", "asc", $gridColumn, $gridColumnModel, site_url("?c=question&m=load_question&searchField={$_POST['searchField']}"), true);
     } else {
         $gridObj->setGridOptions("Manage Questions", 880, 200, "id", "desc", $gridColumn, $gridColumnModel, site_url('question/load_question'), true);
     }
     $data['grid_data'] = $gridObj->getGrid();
     $data['msg'] = $this->session->flashdata('msg');
     $data['dir'] = 'shorturl';
     $data['page'] = 'index';
     $data['page_title'] = 'Manage Questions';
     $this->load->view('main', $data);
 }
コード例 #6
0
 function index()
 {
     if (!common::view_permit()) {
         common::redirect();
     }
     $gridObj = new grid();
     $gridColumn = array("Short Code", "Short URL", "URL", "Ga Campaign", "Ga Addgroup", "Ga Add Content", "Ga Keyword");
     $gridColumnModel = array(array("name" => "shortcode", "index" => "shortcode", "width" => 100, "sortable" => true, "align" => "left", "editable" => true), array("name" => "shorturl", "index" => "shorturl", "width" => 100, "sortable" => true, "align" => "left", "editable" => true), array("name" => "url", "index" => "url", "width" => 150, "sortable" => true, "align" => "left", "editable" => true), array("name" => "ga_campaign", "index" => "ga_campaign", "width" => 100, "sortable" => true, "align" => "left", "editable" => true), array("name" => "ga_adgroup", "index" => "ga_adgroup", "width" => 80, "sortable" => true, "align" => "center", "editable" => true), array("name" => "ga_ad_content", "index" => "ga_ad_content", "width" => 100, "sortable" => true, "align" => "left", "editable" => true), array("name" => "ga_keyword", "index" => "ga_keyword", "width" => 80, "sortable" => true, "align" => "center", "editable" => true));
     $this->session->unset_userdata('purchase_search');
     $this->session->unset_userdata('zone');
     $this->session->unset_userdata('provider_name');
     $this->session->unset_userdata('stating_date');
     $this->session->unset_userdata('ending_date');
     if ($_POST['apply_filter']) {
         $condition = '';
         $track = 0;
         if ($_POST['searchField'] == 1 && $_POST['searchValue']) {
             $condition .= " shortcode LIKE '%" . $_POST['searchValue'] . "%' ";
             $track = 1;
         }
         if ($_POST['searchField'] == 2 && $_POST['searchValue']) {
             $condition .= "  url LIKE '%" . $_POST['searchValue'] . "%' ";
             $track = 1;
         }
         if ($condition != '') {
             $this->session->set_userdata('purchase_search', $condition);
         }
     }
     $gridObj->setGridOptions("Url Shorter", 880, 200, "id", "desc", $gridColumn, $gridColumnModel, site_url('shorturl/load_url'), true);
     $data['grid_data'] = $gridObj->getGrid();
     $data['msg'] = $this->session->flashdata('msg');
     $data['dir'] = 'shorturl';
     $data['page'] = 'index';
     $data['page_title'] = 'Url Shorter';
     $this->load->view('main', $data);
 }