当前位置: 首页>>代码示例>>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;未经允许,请勿转载。