当前位置: 首页>>代码示例>>PHP>>正文


PHP Url::createAdminUrl方法代码示例

本文整理汇总了PHP中Url::createAdminUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Url::createAdminUrl方法的具体用法?PHP Url::createAdminUrl怎么用?PHP Url::createAdminUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Url的用法示例。


在下文中一共展示了Url::createAdminUrl方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: index

 /**
  * ControllerToolBackup::index()
  * 
  * @see Load
  * @see Document
  * @see Language
  * @see Session
  * @see Response
  * @return void
  */
 public function index()
 {
     $this->document->title = $this->language->get('heading_title');
     $this->data['heading_title'] = $this->language->get('heading_title');
     $this->data['text_select_all'] = $this->language->get('text_select_all');
     $this->data['text_unselect_all'] = $this->language->get('text_unselect_all');
     $this->data['entry_backup'] = $this->language->get('entry_backup');
     $this->data['help_backup'] = $this->language->get('help_backup');
     $this->data['button_backup'] = $this->language->get('button_backup');
     $this->data['tab_general'] = $this->language->get('tab_general');
     if (isset($this->error['warning'])) {
         $this->data['error_warning'] = $this->error['warning'];
     } else {
         $this->data['error_warning'] = '';
     }
     if ($this->session->has('success')) {
         $this->data['success'] = $this->session->get('success');
         $this->session->clear('success');
     } else {
         $this->data['success'] = '';
     }
     $this->document->breadcrumbs = array();
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('common/home'), 'text' => $this->language->get('text_home'), 'separator' => false);
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('tool/backup'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: ');
     $this->data['backup'] = Url::createAdminUrl('tool/backup/backup');
     $this->data['tables'] = $this->modelBackup->getTables();
     $this->template = 'tool/backup.tpl';
     $this->children[] = 'common/header';
     $this->children[] = 'common/nav';
     $this->children[] = 'common/footer';
     $this->response->setOutput($this->render(true), $this->config->get('config_compression'));
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:42,代码来源:backup.php

示例2: index

 /**
  * ControllerModuleCatalog2pdfInstall::index()
  * 
  * @return
  */
 public function index()
 {
     if (!$this->user->hasPermission('modify', 'module/catalog2pdf/install')) {
         $this->session->set('error', $this->language->get('error_permission'));
         $this->redirect(Url::createAdminUrl('extension/module'));
     } else {
         /*
           if (file_exists('config.php')) {
               require();
           }
         */
         $this->load->auto('setting/extension');
         $this->load->auto('user/usergroup');
         $this->modelExtension->install('module', 'catalog2pdf');
         $this->modelUsergroup->addPermission($this->user->getId(), 'modify', 'module/catalog2pdf/install');
         $this->modelUsergroup->addPermission($this->user->getId(), 'modify', 'module/catalog2pdf/uninstall');
         $this->modelUsergroup->addPermission($this->user->getId(), 'create', 'module/catalog2pdf/widget');
         $this->modelUsergroup->addPermission($this->user->getId(), 'access', 'module/catalog2pdf/widget');
         $this->modelUsergroup->addPermission($this->user->getId(), 'modify', 'module/catalog2pdf/widget');
         $this->modelUsergroup->addPermission($this->user->getId(), 'delete', 'module/catalog2pdf/widget');
         $this->modelUsergroup->addPermission($this->user->getId(), 'create', 'module/catalog2pdf/plugin');
         $this->modelUsergroup->addPermission($this->user->getId(), 'access', 'module/catalog2pdf/plugin');
         $this->modelUsergroup->addPermission($this->user->getId(), 'modify', 'module/catalog2pdf/plugin');
         $this->modelUsergroup->addPermission($this->user->getId(), 'delete', 'module/catalog2pdf/plugin');
         $this->redirect(Url::createAdminUrl('extension/module'));
     }
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:32,代码来源:install.php

示例3: index

 /**
  * ControllerModuleSocialPlugin::index()
  * 
  * @return
  */
 public function index()
 {
     $this->load->language('module/crm');
     $this->document->title = $this->data['heading_title'] = $this->language->get('heading_title');
     $this->load->auto('setting/setting');
     if ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validate()) {
         $this->modelSetting->update('crm', $this->request->post);
         $this->session->set('success', $this->language->get('text_success'));
         if ($_POST['to'] == "saveAndKeep") {
             $this->redirect(Url::createAdminUrl('module/crm/plugin'));
         } else {
             $this->redirect(Url::createAdminUrl('extension/module'));
         }
     }
     if (isset($this->error['warning'])) {
         $this->data['error_warning'] = $this->error['warning'];
     } else {
         $this->data['error_warning'] = '';
     }
     $this->document->breadcrumbs = array();
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('common/home'), 'text' => $this->language->get('text_home'), 'separator' => false);
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('extension/module'), 'text' => $this->language->get('text_module'), 'separator' => ' :: ');
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('module/crm'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: ');
     $this->template = 'module/crm/plugin.tpl';
     $this->children[] = 'common/header';
     $this->children[] = 'common/nav';
     $this->children[] = 'common/footer';
     $this->response->setOutput($this->render(true), $this->config->get('config_compression'));
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:34,代码来源:opportunity.php

示例4: index

 public function index()
 {
     $this->load->language('shipping/flat');
     $this->load->auto('setting/setting');
     $this->load->auto('localisation/geozone');
     $this->load->auto('localisation/taxclass');
     $this->document->title = $this->language->get('heading_title');
     if ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validate()) {
         $this->modelSetting->update('flat', $this->request->post);
         $this->session->set('success', $this->language->get('text_success'));
         if ($_POST['to'] == "saveAndKeep") {
             $this->redirect(Url::createAdminUrl('shipping/flat'));
         } else {
             $this->redirect(Url::createAdminUrl('extension/shipping'));
         }
     }
     if (isset($this->error['warning'])) {
         $this->data['error_warning'] = $this->error['warning'];
     } else {
         $this->data['error_warning'] = '';
     }
     $this->document->breadcrumbs = array();
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('common/home'), 'text' => $this->language->get('text_home'), 'separator' => false);
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('extension/shipping'), 'text' => $this->language->get('text_shipping'), 'separator' => ' :: ');
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('shipping/flat'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: ');
     $this->data['action'] = Url::createAdminUrl('shipping/flat');
     $this->data['cancel'] = Url::createAdminUrl('extension/shipping');
     if (isset($this->request->post['flat_cost'])) {
         $this->data['flat_cost'] = $this->request->post['flat_cost'];
     } else {
         $this->data['flat_cost'] = $this->config->get('flat_cost');
     }
     if (isset($this->request->post['flat_tax_class_id'])) {
         $this->data['flat_tax_class_id'] = $this->request->post['flat_tax_class_id'];
     } else {
         $this->data['flat_tax_class_id'] = $this->config->get('flat_tax_class_id');
     }
     if (isset($this->request->post['flat_geo_zone_id'])) {
         $this->data['flat_geo_zone_id'] = $this->request->post['flat_geo_zone_id'];
     } else {
         $this->data['flat_geo_zone_id'] = $this->config->get('flat_geo_zone_id');
     }
     if (isset($this->request->post['flat_status'])) {
         $this->data['flat_status'] = $this->request->post['flat_status'];
     } else {
         $this->data['flat_status'] = $this->config->get('flat_status');
     }
     if (isset($this->request->post['flat_sort_order'])) {
         $this->data['flat_sort_order'] = $this->request->post['flat_sort_order'];
     } else {
         $this->data['flat_sort_order'] = $this->config->get('flat_sort_order');
     }
     $this->data['tax_classes'] = $this->modelTaxclass->getAll();
     $this->data['geo_zones'] = $this->modelGeozone->getAll();
     $this->template = 'shipping/flat.tpl';
     $this->children[] = 'common/header';
     $this->children[] = 'common/nav';
     $this->children[] = 'common/footer';
     $this->response->setOutput($this->render(true), $this->config->get('config_compression'));
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:60,代码来源:flat.php

示例5: index

 /**
  * ControllerSettingCache::index()
  * 
  * @return
  */
 public function index()
 {
     $this->load->library('url');
     $res = $this->rrmdir(DIR_CACHE);
     $this->load->model('store/store');
     $stores = $this->modelStore->getAll();
     $this->session->clear('ntConfig_0');
     foreach ($stores as $store) {
         $this->session->clear('ntConfig_' . (int) $store['store_id']);
     }
     $this->session->clear('language');
     $this->session->clear('fkey');
     if ($res) {
         $this->session->set('success', 'Se han eliminado todos los archivos del cache con éxito');
     } else {
         $this->session->set('error', 'Error: No se pudieron eliminar los archivos del cache');
     }
     if ($_SERVER['HTTP_REFERER']) {
         $this->redirect($_SERVER['HTTP_REFERER']);
     } elseif ($this->session->has('redirect')) {
         $this->redirect($this->session->get('redirect'));
         $this->session->clear('redirect');
     } else {
         $this->redirect(Url::createAdminUrl('common/home'));
     }
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:31,代码来源:cache.php

示例6: index

 public function index()
 {
     $this->load->auto("setting/extension");
     $extensions = $this->modelExtension->getInstalled('module');
     $this->data['extensions'] = array();
     $files = glob(DIR_APPLICATION . 'controller/module/*.php');
     if ($files) {
         foreach ($files as $file) {
             $extension = basename($file, '.php');
             $this->load->language('module/' . $extension);
             $action = array();
             if (!in_array($extension, $extensions)) {
                 $action[] = array('action' => 'install', 'img' => 'install.png', 'text' => $this->language->get('text_install'), 'href' => Url::createAdminUrl('extension/module/install') . '&extension=' . $extension);
             } else {
                 $action[] = array('action' => 'edit', 'img' => 'edit.png', 'text' => $this->language->get('text_edit'), 'href' => Url::createAdminUrl('module/' . $extension . ''));
                 $action[] = array('action' => 'install', 'img' => 'uninstall.png', 'text' => $this->language->get('text_uninstall'), 'href' => Url::createAdminUrl('extension/module/uninstall') . '&extension=' . $extension);
             }
             $postion = $pos = $this->config->get($extension . '_position');
             if ($postion) {
                 $postion = $this->language->get('text_' . $postion);
             } else {
                 $postion = "";
             }
             $this->data['extensions'][] = array('extension' => $extension, 'name' => $this->language->get('heading_title'), 'pos' => $pos, 'position' => $postion, 'status' => $this->config->get($extension . '_status') ? $this->language->get('text_enabled') : $this->language->get('text_disabled'), 'sort_order' => $this->config->get($extension . '_sort_order'), 'action' => $action);
         }
     }
     $this->template = 'style/layouts.tpl';
     $this->children[] = 'common/header2';
     $this->children[] = 'common/footer2';
     $this->response->setOutput($this->render(true), $this->config->get('config_compression'));
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:31,代码来源:layouts.php

示例7: index

 public function index()
 {
     $this->user->registerActivity($this->user->getId(), 'user', 'Cierre de sesión', 'logout');
     $this->user->logout();
     $this->session->clear('token');
     $this->redirect(Url::createAdminUrl('common/login'));
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:7,代码来源:logout.php

示例8: clear

 public function clear()
 {
     $this->load->language('tool/error_log');
     $file = DIR_LOGS . $this->config->get('config_error_filename');
     $handle = fopen($file, 'w+');
     fclose($handle);
     $this->session->set('success', $this->language->get('text_success'));
     $this->redirect(Url::createAdminUrl('tool/error_log'));
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:9,代码来源:error_log.php

示例9: index

 public function index()
 {
     $this->load->language('total/tax');
     $this->document->title = $this->language->get('heading_title');
     $this->load->auto('setting/setting');
     if ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validate()) {
         $this->modelSetting->update('tax', $this->request->post);
         $this->session->set('success', $this->language->get('text_success'));
         if ($_POST['to'] == "saveAndKeep") {
             $this->redirect(Url::createAdminUrl('total/tax'));
         } else {
             $this->redirect(Url::createAdminUrl('extension/total'));
         }
     }
     $this->data['heading_title'] = $this->language->get('heading_title');
     $this->data['text_enabled'] = $this->language->get('text_enabled');
     $this->data['text_disabled'] = $this->language->get('text_disabled');
     $this->data['entry_status'] = $this->language->get('entry_status');
     $this->data['entry_sort_order'] = $this->language->get('entry_sort_order');
     $this->data['button_save'] = $this->language->get('button_save');
     $this->data['button_save_and_keep'] = $this->language->get('button_save_and_keep');
     $this->data['button_save_and_exit'] = $this->language->get('button_save_and_exit');
     $this->data['button_cancel'] = $this->language->get('button_cancel');
     $this->data['tab_general'] = $this->language->get('tab_general');
     if (isset($this->error['warning'])) {
         $this->data['error_warning'] = $this->error['warning'];
     } else {
         $this->data['error_warning'] = '';
     }
     $this->document->breadcrumbs = array();
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('common/home'), 'text' => $this->language->get('text_home'), 'separator' => false);
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('extension/total'), 'text' => $this->language->get('text_total'), 'separator' => ' :: ');
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('total/tax'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: ');
     $this->data['action'] = Url::createAdminUrl('total/tax');
     $this->data['cancel'] = Url::createAdminUrl('extension/total');
     if (isset($this->request->post['tax_status'])) {
         $this->data['tax_status'] = $this->request->post['tax_status'];
     } else {
         $this->data['tax_status'] = $this->config->get('tax_status');
     }
     if (isset($this->request->post['tax_sort_order'])) {
         $this->data['tax_sort_order'] = $this->request->post['tax_sort_order'];
     } else {
         $this->data['tax_sort_order'] = $this->config->get('tax_sort_order');
     }
     $this->data['Url'] = new Url();
     $scripts[] = array('id' => 'scriptForm', 'method' => 'ready', 'script' => "\$('#form').ntForm({\r\n                submitButton:false,\r\n                cancelButton:false,\r\n                lockButton:false\r\n            });\r\n            \$('textarea').ntTextArea();\r\n            \r\n            var form_clean = \$('#form').serialize();  \r\n            \r\n            window.onbeforeunload = function (e) {\r\n                var form_dirty = \$('#form').serialize();\r\n                if(form_clean != form_dirty) {\r\n                    return 'There is unsaved form data.';\r\n                }\r\n            };\r\n            \r\n            \$('.sidebar .tab').on('click',function(){\r\n                \$(this).closest('.sidebar').addClass('show').removeClass('hide').animate({'right':'0px'});\r\n            });\r\n            \$('.sidebar').mouseenter(function(){\r\n                clearTimeout(\$(this).data('timeoutId'));\r\n            }).mouseleave(function(){\r\n                var e = this;\r\n                var timeoutId = setTimeout(function(){\r\n                    if (\$(e).hasClass('show')) {\r\n                        \$(e).removeClass('show').addClass('hide').animate({'right':'-400px'});\r\n                    }\r\n                }, 600);\r\n                \$(this).data('timeoutId', timeoutId); \r\n            });");
     $scripts[] = array('id' => 'scriptFunctions', 'method' => 'function', 'script' => "function saveAndExit() { \r\n                window.onbeforeunload = null;\r\n                \$('#form').append(\"<input type='hidden' name='to' value='saveAndExit'>\").submit(); \r\n            }\r\n            \r\n            function saveAndKeep() { \r\n                window.onbeforeunload = null;\r\n                \$('#form').append(\"<input type='hidden' name='to' value='saveAndKeep'>\").submit(); \r\n            }");
     $this->scripts = array_merge($this->scripts, $scripts);
     $this->template = 'total/tax.tpl';
     $this->children[] = 'common/header';
     $this->children[] = 'common/nav';
     $this->children[] = 'common/footer';
     $this->response->setOutput($this->render(true), $this->config->get('config_compression'));
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:55,代码来源:tax.php

示例10: index

 /**
  * ControllerModuleSocialPlugin::index()
  * 
  * @return
  */
 public function index()
 {
     $this->load->language('module/social');
     $this->document->title = $this->data['heading_title'] = $this->language->get('heading_title');
     $this->load->auto('setting/setting');
     if ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validate()) {
         $this->modelSetting->update('social', $this->request->post);
         $this->session->set('success', $this->language->get('text_success'));
         if ($_POST['to'] == "saveAndKeep") {
             $this->redirect(Url::createAdminUrl('module/social/plugin'));
         } else {
             $this->redirect(Url::createAdminUrl('extension/module'));
         }
     }
     if (isset($this->error['warning'])) {
         $this->data['error_warning'] = $this->error['warning'];
     } else {
         $this->data['error_warning'] = '';
     }
     $this->document->breadcrumbs = array();
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('common/home'), 'text' => $this->language->get('text_home'), 'separator' => false);
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('extension/module'), 'text' => $this->language->get('text_module'), 'separator' => ' :: ');
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('module/social'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: ');
     $this->data['action'] = Url::createAdminUrl('module/social');
     $this->data['cancel'] = Url::createAdminUrl('extension/module');
     $this->data['social_facebook_app_id'] = isset($this->request->post['social_facebook_app_id']) ? $this->request->post['social_facebook_app_id'] : $this->config->get('social_facebook_app_id');
     $this->data['social_facebook_app_secret'] = isset($this->request->post['social_facebook_app_secret']) ? $this->request->post['social_facebook_app_secret'] : $this->config->get('social_facebook_app_secret');
     $this->data['social_meli_app_id'] = isset($this->request->post['social_meli_app_id']) ? $this->request->post['social_meli_app_id'] : $this->config->get('social_meli_app_id');
     $this->data['social_meli_app_secret'] = isset($this->request->post['social_meli_app_secret']) ? $this->request->post['social_meli_app_secret'] : $this->config->get('social_meli_app_secret');
     $this->data['social_paypal_app_id'] = isset($this->request->post['social_paypal_app_id']) ? $this->request->post['social_paypal_app_id'] : $this->config->get('social_paypal_app_id');
     $this->data['social_paypal_app_secret'] = isset($this->request->post['social_paypal_app_secret']) ? $this->request->post['social_paypal_app_secret'] : $this->config->get('social_paypal_app_secret');
     $this->data['social_twitter_consumer_key'] = isset($this->request->post['social_twitter_consumer_key']) ? $this->request->post['social_twitter_consumer_key'] : $this->config->get('social_twitter_consumer_key');
     $this->data['social_twitter_consumer_secret'] = isset($this->request->post['social_twitter_consumer_secret']) ? $this->request->post['social_twitter_consumer_secret'] : $this->config->get('social_twitter_consumer_secret');
     $this->data['social_twitter_oauth_token'] = isset($this->request->post['social_twitter_oauth_token']) ? $this->request->post['social_twitter_oauth_token'] : $this->config->get('social_twitter_oauth_token');
     $this->data['social_twitter_oauth_token_secret'] = isset($this->request->post['social_twitter_oauth_token_secret']) ? $this->request->post['social_twitter_oauth_token_secret'] : $this->config->get('social_twitter_oauth_token_secret');
     $this->data['social_twitter_consumer_secret'] = isset($this->request->post['social_twitter_consumer_secret']) ? $this->request->post['social_twitter_consumer_secret'] : $this->config->get('social_twitter_consumer_secret');
     $this->data['social_google_client_id'] = isset($this->request->post['social_google_client_id']) ? $this->request->post['social_google_client_id'] : $this->config->get('social_google_client_id');
     $this->data['social_google_client_secret'] = isset($this->request->post['social_google_client_secret']) ? $this->request->post['social_google_client_secret'] : $this->config->get('social_google_client_secret');
     $this->data['social_google_api_key'] = isset($this->request->post['social_google_api_key']) ? $this->request->post['social_google_api_key'] : $this->config->get('social_google_api_key');
     $this->data['social_google_consumer_key'] = isset($this->request->post['social_google_consumer_key']) ? $this->request->post['social_google_consumer_key'] : $this->config->get('social_google_consumer_key');
     $this->data['social_google_consumer_secret'] = isset($this->request->post['social_google_consumer_secret']) ? $this->request->post['social_google_consumer_secret'] : $this->config->get('social_google_consumer_secret');
     $this->data['social_live_client_id'] = isset($this->request->post['social_live_client_id']) ? $this->request->post['social_live_client_id'] : $this->config->get('social_live_client_id');
     $this->data['social_live_client_secret'] = isset($this->request->post['social_live_client_secret']) ? $this->request->post['social_live_client_secret'] : $this->config->get('social_live_client_secret');
     $scripts[] = array('id' => 'socialScripts', 'method' => 'ready', 'script' => "\$('.vtabs_page').hide();\r\n            \$('#tab_facebook').show();");
     $scripts[] = array('id' => 'socialFunctions', 'method' => 'function', 'script' => "function showTab(a) {\r\n                \$('.vtabs_page').hide();\r\n                \$(\$(a).data('target')).show();\r\n            }");
     $this->scripts = array_merge($this->scripts, $scripts);
     $this->template = 'module/social/plugin.tpl';
     $this->children[] = 'common/header';
     $this->children[] = 'common/nav';
     $this->children[] = 'common/footer';
     $this->response->setOutput($this->render(true), $this->config->get('config_compression'));
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:57,代码来源:plugin.php

示例11: index

 public function index()
 {
     $this->load->language('payment/pp_standard');
     $this->document->title = $this->language->get('heading_title');
     $this->load->model('setting/setting');
     if ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validate()) {
         $this->modelSetting->update('pp_standard', $this->request->post);
         $this->session->data['success'] = $this->language->get('text_success');
         if ($_POST['to'] == "saveAndKeep") {
             $this->redirect(Url::createAdminUrl('payment/pp_standard'));
         } else {
             $this->redirect(Url::createAdminUrl('extension/payment'));
         }
     }
     $this->data['error_warning'] = isset($this->error['warning']) ? $this->error['warning'] : '';
     $this->data['error_email'] = isset($this->error['email']) ? $this->error['email'] : '';
     $this->document->breadcrumbs = array();
     $this->document->breadcrumbs[] = array('href' => HTTP_HOME . 'index.php?r=common/home&token=' . $this->session->data['token'], 'text' => $this->language->get('text_home'), 'separator' => FALSE);
     $this->document->breadcrumbs[] = array('href' => HTTP_HOME . 'index.php?r=extension/payment&token=' . $this->session->data['token'], 'text' => $this->language->get('text_payment'), 'separator' => ' :: ');
     $this->document->breadcrumbs[] = array('href' => HTTP_HOME . 'index.php?r=payment/pp_standard&token=' . $this->session->data['token'], 'text' => $this->language->get('heading_title'), 'separator' => ' :: ');
     $this->data['action'] = HTTP_HOME . 'index.php?r=payment/pp_standard&token=' . $this->session->data['token'];
     $this->data['cancel'] = HTTP_HOME . 'index.php?r=extension/payment&token=' . $this->session->data['token'];
     $this->setvar('pp_standard_image');
     $this->setvar('pp_standard_order_status_id');
     $this->setvar('pp_standard_newsletter_id');
     $this->setvar('pp_standard_email');
     $this->setvar('pp_standard_test');
     $this->setvar('pp_standard_transaction');
     $this->setvar('pp_standard_app_id');
     $this->setvar('pp_standard_app _secret');
     $this->setvar('pp_standard_geo_zone_id');
     $this->setvar('pp_standard_status');
     $this->setvar('pp_standard_sort_order');
     if ($this->data['pp_standard_image'] && file_exists(DIR_IMAGE . $this->data['pp_standard_image'])) {
         $this->data['preview'] = NTImage::resizeAndSave($this->data['pp_standard_image'], 100, 100);
     } else {
         $this->data['preview'] = NTImage::resizeAndSave('no_image.jpg', 100, 100);
     }
     $this->load->model('localisation/orderstatus');
     $this->data['order_statuses'] = $this->modelOrderstatus->getAll();
     $this->load->model('localisation/geozone');
     $this->data['geo_zones'] = $this->modelGeozone->getAll();
     $this->load->model('marketing/newsletter');
     $this->data['newsletters'] = $this->modelNewsletter->getAll();
     $scripts[] = array('id' => 'categoryFunctions', 'method' => 'function', 'script' => "function image_delete(field, preview) {\r\n                \$('#' + field).val('');\r\n                \$('#' + preview).attr('src','" . HTTP_IMAGE . "cache/no_image-100x100.jpg');\r\n            }\r\n            \r\n            function image_upload(field, preview) {\r\n                var height = \$(window).height() * 0.8;\r\n                var width = \$(window).width() * 0.8;\r\n                \r\n            \t\$('#dialog').remove();\r\n            \t\$('.box').prepend('<div id=\"dialog\" style=\"padding: 3px 0px 0px 0px;z-index:10000;\"><iframe src=\"" . Url::createAdminUrl("common/filemanager") . "&field=' + encodeURIComponent(field) + '\" style=\"padding:0; margin: 0; display: block; width: 100%; height: 100%;z-index:10000;\" frameborder=\"no\" scrolling=\"auto\"></iframe></div>');\r\n                \r\n                \$('#dialog').dialog({\r\n            \t\ttitle: '" . $this->data['text_image_manager'] . "',\r\n            \t\tclose: function (event, ui) {\r\n            \t\t\tif (\$('#' + field).attr('value')) {\r\n            \t\t\t\t\$.ajax({\r\n            \t\t\t\t\turl: '" . Url::createAdminUrl("common/filemanager/image") . "',\r\n            \t\t\t\t\ttype: 'POST',\r\n            \t\t\t\t\tdata: 'image=' + encodeURIComponent(\$('#' + field).val()),\r\n            \t\t\t\t\tdataType: 'text',\r\n            \t\t\t\t\tsuccess: function(data) {\r\n            \t\t\t\t\t\t\$('#' + preview).replaceWith('<img src=\"' + data + '\" id=\"' + preview + '\" class=\"image\" onclick=\"image_upload(\\'' + field + '\\', \\'' + preview + '\\');\">');\r\n            \t\t\t\t\t}\r\n            \t\t\t\t});\r\n            \t\t\t}\r\n            \t\t},\t\r\n            \t\tbgiframe: false,\r\n            \t\twidth: width,\r\n            \t\theight: height,\r\n            \t\tresizable: false,\r\n            \t\tmodal: false\r\n            \t});}");
     $this->scripts = array_merge($this->scripts, $scripts);
     $this->template = 'payment/pp_standard.tpl';
     $this->children[] = 'common/header';
     $this->children[] = 'common/nav';
     $this->children[] = 'common/footer';
     $this->response->setOutput($this->render(TRUE), $this->config->get('config_compression'));
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:52,代码来源:pp_standard.php

示例12: index

 /**
  * ControllerModuleManufacturerUninstall::index()
  * 
  * @return
  */
 public function index()
 {
     if (!$this->user->hasPermission('modify', 'module/manufacturer/uninstall')) {
         $this->session->set('error', $this->language->get('error_permission'));
         $this->redirect(Url::createAdminUrl('extension/module'));
     } else {
         $this->load->auto('setting/extension');
         $this->load->auto('setting/setting');
         $this->load->auto('style/widget');
         $this->modelExtension->uninstall('module', 'manufacturer');
         $this->modelSetting->delete('manufacturer');
         $this->modelWidget->deleteAll('manufacturer');
         $this->redirect(Url::createAdminUrl('extension/module'));
     }
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:20,代码来源:uninstall.php

示例13: index

 public function index()
 {
     $this->load->language('error/permission');
     $this->document->title = $this->language->get('heading_title');
     $this->data['heading_title'] = $this->language->get('heading_title');
     $this->data['text_permission'] = $this->language->get('text_permission');
     $this->document->breadcrumbs = array();
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('common/home'), 'text' => $this->language->get('text_home'), 'separator' => false);
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('error/permission'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: ');
     $this->template = 'error/permission.tpl';
     $this->children[] = 'common/header';
     $this->children[] = 'common/nav';
     $this->children[] = 'common/footer';
     $this->response->setOutput($this->render(true), $this->config->get('config_compression'));
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:15,代码来源:permission.php

示例14: index

 public function index()
 {
     $this->document->title = $this->language->get('heading_title');
     if ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validate()) {
         $this->modelSetting->update('marketing', $this->request->post);
         $this->session->set('success', $this->language->get('text_success'));
     }
     if ($this->session->has('success')) {
         $this->data['success'] = $this->session->get('success');
         $this->session->clear('success');
     } else {
         $this->data['success'] = '';
     }
     $this->data['newsletters'] = $this->modelNewsletter->getAll();
     $this->data['pages'] = $this->modelPage->getAll();
     $this->setvar('marketing_page_contact_id');
     $this->setvar('marketing_email_new_customer');
     $this->setvar('marketing_email_activate_customer');
     $this->setvar('marketing_email_new_order');
     $this->setvar('marketing_email_order_pdf');
     $this->setvar('marketing_email_new_comment');
     $this->setvar('marketing_email_new_reply');
     $this->setvar('marketing_email_old_order');
     $this->setvar('marketing_email_new_payment');
     $this->setvar('marketing_email_update_order');
     $this->setvar('marketing_email_new_contact');
     $this->setvar('marketing_email_add_balance');
     $this->setvar('marketing_email_subtract_balance');
     $this->setvar('marketing_email_happy_birthday');
     $this->setvar('marketing_email_recommended_products');
     $this->setvar('marketing_email_promote_product');
     $this->setvar('marketing_email_invite_friends');
     $this->setvar('marketing_page_new_customer');
     $this->setvar('marketing_page_activate_customer');
     $this->setvar('marketing_page_add_to_cart');
     $this->document->breadcrumbs = array();
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('common/home'), 'text' => $this->language->get('text_home'), 'separator' => false);
     $this->document->breadcrumbs[] = array('href' => Url::createAdminUrl('marketing/message'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: ');
     $this->document->title = $this->data['heading_title'] = $this->language->get('heading_title');
     $this->template = 'marketing/message.tpl';
     $this->children[] = 'common/header';
     $this->children[] = 'common/nav';
     $this->children[] = 'common/footer';
     $this->response->setOutput($this->render(true), $this->config->get('marketing_compression'));
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:45,代码来源:message.php

示例15: modules

 private function modules()
 {
     $this->data['extensions'] = array();
     $extensions = $this->modelExtension->getInstalled('module');
     $files = glob(DIR_APPLICATION . 'controller/module/*.php');
     if ($files) {
         foreach ($files as $file) {
             $extension = basename($file, '.php');
             $this->load->language('module/' . $extension);
             $action = array();
             if (in_array($extension, $extensions)) {
                 $action[] = array('action' => 'edit', 'img' => 'edit.png', 'text' => $this->language->get('text_edit'), 'href' => Url::createAdminUrl('module/' . $extension . ''));
                 $action[] = array('action' => 'install', 'img' => 'uninstall.png', 'text' => $this->language->get('text_uninstall'), 'href' => Url::createAdminUrl('extension/module/uninstall') . '&extension=' . $extension);
             }
             $this->data['extensions'][] = array('extension' => $extension, 'name' => $this->language->get('heading_title'), 'desc' => $this->language->get('overview'), 'action' => $action);
         }
     }
 }
开发者ID:josueaponte7,项目名称:necotienda_standalone,代码行数:18,代码来源:callback.php


注:本文中的Url::createAdminUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。