本文整理汇总了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);
}
示例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'));
}
}
示例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);
}
示例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));
}
}
示例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);
}
}
}
示例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);
}
示例7: featuredimguploader
public function featuredimguploader()
{
load_admin_view('slider/featured_img_uploader_view');
}
示例8: edit
public function edit($alias = '')
{
$data['widget'] = $this->widget_model->get_widget_by_alias($alias);
load_admin_view('widgets/editwidget_view', $data);
}
示例9: profile_photo_uploader
public function profile_photo_uploader()
{
load_admin_view('users/profile_photo_uploader_view');
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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));
}
}