當前位置: 首頁>>代碼示例>>PHP>>正文


PHP load_admin_view函數代碼示例

本文整理匯總了PHP中load_admin_view函數的典型用法代碼示例。如果您正苦於以下問題:PHP load_admin_view函數的具體用法?PHP load_admin_view怎麽用?PHP load_admin_view使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了load_admin_view函數的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: index

 public function index()
 {
     $data['title'] = lang_key('themes');
     $data['sel_menu'] = 'themes';
     $data['content'] = load_admin_view('themes/index_view', '', TRUE);
     load_admin_view('template/template_view', $data);
 }
開發者ID:GiovanniV,項目名稱:Santa-Barbara-Business-Directory,代碼行數:7,代碼來源:themes_core.php

示例2: delete

 public function delete($id = '', $confirmation = '')
 {
     if ($confirmation == '') {
         $data['content'] = load_admin_view('confirmation_view', array('id' => $id, 'url' => site_url('admin/category/delete')), TRUE);
         load_admin_view('template/template_view', $data);
     } else {
         if ($confirmation == 'yes') {
             if (constant("ENVIRONMENT") == 'demo') {
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
             } else {
                 $this->category_model->delete_category_by_id($id);
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('data_updated') . '</div>');
             }
         }
         redirect(site_url('admin/category/all'));
     }
 }
開發者ID:priyranjansingh,項目名稱:classified,代碼行數:17,代碼來源:category_core.php

示例3: regdomain

 function regdomain()
 {
     $this->session->set_userdata('form_key', rand(1, 500));
     $data = array('error' => '<div class="alert alert-danger" style="margin-top:10px;">' . lang_key('login_failed') . '</div>');
     load_admin_view('regdomain_view', $data);
 }
開發者ID:priyranjansingh,項目名稱:classified,代碼行數:6,代碼來源:purchase_core.php

示例4: deleteuser

 public function deleteuser($page = '0', $id = '', $confirmation = '')
 {
     if (!is_admin()) {
         echo lang_key('dont_have_permission');
         die;
     }
     if ($confirmation == '') {
         $data['content'] = load_admin_view('confirmation_view', array('id' => $id, 'url' => site_url('admin/deleteuser/' . $page)), TRUE);
         load_admin_view('template/template_view', $data);
     } else {
         if ($confirmation == 'yes') {
             if (constant("ENVIRONMENT") == 'demo') {
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
             } else {
                 $this->load->model('user/user_model');
                 $this->user_model->delete_user_by_id($id);
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('user_deleted') . '</div>');
             }
         }
         redirect(site_url('admin/users/all/' . $page));
     }
 }
開發者ID:Ripudamangithub,項目名稱:donopen,代碼行數:22,代碼來源:admin_core.php

示例5: deletetransaction

 public function deletetransaction($unique_id, $confirmation = '')
 {
     if (!is_admin()) {
         echo lang_key('dont_have_permission');
         die;
     }
     if ($confirmation == '') {
         $data['content'] = load_admin_view('confirmation_view', array('id' => $unique_id, 'url' => site_url('admin/classified/deletetransaction/')), TRUE);
         load_admin_view('template/template_view', $data);
     } else {
         if ($confirmation == 'yes') {
             if (constant("ENVIRONMENT") == 'demo') {
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
             } else {
                 $this->classified_model->delete_transaction($unique_id);
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('transaction_deleted') . '</div>');
             }
             $value['trans'] = $this->classified_model->get_all_transaction();
             $data['title'] = lang_key('transaction');
             $data['content'] = load_admin_view('classified/approve_payment_view', $value, TRUE);
             load_admin_view('template/template_view', $data);
         }
     }
 }
開發者ID:Ripudamangithub,項目名稱:donopen,代碼行數:24,代碼來源:classified_core.php

示例6: settings

 public function settings($key = 'package_settings')
 {
     if (!is_admin()) {
         echo lang_key('dont_have_permission');
         die;
     }
     $this->load->model('admin/system_model');
     $this->load->model('options_model');
     $settings = $this->options_model->getvalues($key);
     $settings = json_encode($settings);
     $value['settings'] = $settings;
     $data['title'] = lang_key('package_settings');
     $data['content'] = load_admin_view('packages/settings_view', $value, TRUE);
     load_admin_view('template/template_view', $data);
 }
開發者ID:priyranjansingh,項目名稱:classified,代碼行數:15,代碼來源:package_core.php

示例7: featuredimguploader

 public function featuredimguploader()
 {
     load_admin_view('slider/featured_img_uploader_view');
 }
開發者ID:priyranjansingh,項目名稱:classified,代碼行數:4,代碼來源:slider_core.php

示例8: edit

 public function edit($alias = '')
 {
     $data['widget'] = $this->widget_model->get_widget_by_alias($alias);
     load_admin_view('widgets/editwidget_view', $data);
 }
開發者ID:GiovanniV,項目名稱:Santa-Barbara-Business-Directory,代碼行數:5,代碼來源:widgets_core.php

示例9: profile_photo_uploader

 public function profile_photo_uploader()
 {
     load_admin_view('users/profile_photo_uploader_view');
 }
開發者ID:priyranjansingh,項目名稱:classified,代碼行數:4,代碼來源:users_core.php

示例10: newaccount

 function newaccount()
 {
     $this->load->model('admin/package_model');
     $data['packages'] = $this->package_model->get_all_packages_by_range('all');
     load_admin_view('register_view', $data);
 }
開發者ID:priyranjansingh,項目名稱:classified,代碼行數:6,代碼來源:auth_core.php

示例11: menu

 public function menu($start = 0)
 {
     $data['title'] = lang_key('menu');
     $data['content'] = load_admin_view('pages/menu_view', '', TRUE);
     load_admin_view('template/template_view', $data);
 }
開發者ID:priyranjansingh,項目名稱:classified,代碼行數:6,代碼來源:page_core.php

示例12: generatesitemap

 public function generatesitemap()
 {
     $data['title'] = lang_key('generate_site_map');
     $data['content'] = load_admin_view('sitemap/site_map_panel_view', '', TRUE);
     load_admin_view('template/template_view', $data);
 }
開發者ID:Ripudamangithub,項目名稱:donopen,代碼行數:6,代碼來源:system_core.php

示例13: all

 public function all()
 {
     $value['posts'] = $this->plugins_model->get_all_plugins_by_range('all', '', '');
     $data['title'] = 'All Plugins';
     $data['content'] = load_admin_view('plugins/allplugins_view', $value, TRUE);
     load_admin_view('template/template_view', $data);
 }
開發者ID:Ripudamangithub,項目名稱:donopen,代碼行數:7,代碼來源:plugins_core.php

示例14: deletereview

 public function deletereview($page = '0', $post_id = '', $id = '', $confirmation = '')
 {
     if (!is_admin()) {
         $post = $this->business_model->get_post_by_id($post_id);
         if ($post->created_by != $this->session->userdata('user_id')) {
             echo lang_key('dont_have_permission');
             die;
         }
     }
     if ($confirmation == '') {
         $data['content'] = load_admin_view('confirmation_view', array('id' => $id, 'url' => site_url('admin/business/deletereview/' . $page . '/' . $post_id)), TRUE);
         load_admin_view('template/template_view', $data);
     } else {
         if ($confirmation == 'yes') {
             if (constant("ENVIRONMENT") == 'demo') {
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
             } else {
                 $this->business_model->delete_review_by_id($id);
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('review_deleted') . '</div>');
             }
         }
         redirect(site_url('admin/business/view_all_reviews/' . $page . '/' . $post_id));
     }
 }
開發者ID:GiovanniV,項目名稱:Santa-Barbara-Business-Directory,代碼行數:24,代碼來源:business_core.php


注:本文中的load_admin_view函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。