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


PHP backend_UrlMake函数代码示例

本文整理汇总了PHP中backend_UrlMake函数的典型用法代码示例。如果您正苦于以下问题:PHP backend_UrlMake函数的具体用法?PHP backend_UrlMake怎么用?PHP backend_UrlMake使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register backend
     if (class_exists('backend')) {
         $backend = backend::getInstance();
         $feedback_menu = new backend_MenuItem($this->getLanguageConstant('menu_feedback'), url_GetFromFilePath($this->path . 'images/icon.svg'), 'javascript:void(0);', $level = 5);
         $feedback_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_feedback_show'), url_GetFromFilePath($this->path . 'images/feedback_list.svg'), window_Open('feedback_manage', 730, $this->getLanguageConstant('title_feedback_show'), true, true, backend_UrlMake($this->name, 'show_feedback')), $level = 5));
         $backend->addMenu($this->name, $feedback_menu);
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:15,代码来源:feedback.php

示例2: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register backend
     if ($section == 'backend' && class_exists('backend')) {
         $backend = backend::getInstance();
         $mailchimp_menu = new backend_MenuItem($this->getLanguageConstant('menu_mailchimp'), url_GetFromFilePath($this->path . 'images/icon.svg'), 'javascript:void(0);', $level = 5);
         $mailchimp_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_lists'), url_GetFromFilePath($this->path . 'images/lists.svg'), window_Open('mailchimp_lists', 450, $this->getLanguageConstant('title_lists'), true, true, backend_UrlMake($this->name, 'lists')), $level = 5));
         $mailchimp_menu->addSeparator(5);
         $mailchimp_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_settings'), url_GetFromFilePath($this->path . 'images/settings.svg'), window_Open('mailchimp_settings', 450, $this->getLanguageConstant('title_settings'), true, true, backend_UrlMake($this->name, 'settings')), $level = 5));
         $backend->addMenu($this->name, $mailchimp_menu);
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:17,代码来源:mailchimp.php

示例3: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register backend
     if (class_exists('backend') && class_exists('shop')) {
         $backend = backend::getInstance();
         $method_menu = $backend->getMenu('shop_payment_methods');
         if (!is_null($method_menu)) {
             $method_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_google_checkout'), url_GetFromFilePath($this->path . 'images/icon.png'), window_Open('paypal', 650, $this->getLanguageConstant('title_settings'), true, true, backend_UrlMake($this->name, 'settings')), $level = 5));
         }
     }
     // register payment method
     if (class_exists('shop')) {
         require_once "units/google_checkout_payment_method.php";
         GoogleCheckout_PaymentMethod::getInstance($this);
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:21,代码来源:google_checkout.php

示例4: __construct

 /**
  * Constructor
  *
  * @return backend
  */
 protected function __construct()
 {
     global $section, $language;
     parent::__construct(__FILE__);
     // create events
     Events::register('backend', 'user-create');
     Events::register('backend', 'user-change');
     Events::register('backend', 'user-delete');
     Events::register('backend', 'user-password-change');
     // load CSS and JScript
     if (class_exists('head_tag') && $section == 'backend') {
         $head_tag = head_tag::getInstance();
         $collection = collection::getInstance();
         $collection->includeScript(collection::JQUERY);
         $collection->includeScript(collection::JQUERY_EVENT_DRAG);
         $collection->includeScript(collection::WINDOW_SYSTEM);
         if ($_SESSION['logged']) {
             $collection->includeScript(collection::JQUERY_EXTENSIONS);
             $collection->includeScript(collection::NOTEBOOK);
             $collection->includeScript(collection::SHOWDOWN);
             $collection->includeScript(collection::TOOLBAR);
         }
         $head_tag->addTag('link', array('href' => url_GetFromFilePath($this->path . 'include/backend.css'), 'rel' => 'stylesheet', 'type' => 'text/css'));
         $head_tag->addTag('script', array('src' => url_GetFromFilePath($this->path . 'include/backend.js'), 'type' => 'text/javascript'));
     }
     // add admin level menus
     if ($section == 'backend') {
         $system_menu = new backend_MenuItem($this->getLanguageConstant('menu_system'), url_GetFromFilePath($this->path . 'images/icons/16/system.svg'), 'javascript:void(0);', $level = 1);
         $system_menu->addChild(null, new backend_MenuItem($this->getLanguageConstant('menu_modules'), url_GetFromFilePath($this->path . 'images/icons/16/modules.svg'), window_Open('system_modules', 610, $this->getLanguageConstant('title_modules'), true, false, backend_UrlMake($this->name, 'modules')), $level = 10));
         $system_menu->addChild(null, new backend_MenuItem($this->getLanguageConstant('menu_users'), url_GetFromFilePath($this->path . 'images/icons/16/users.svg'), window_Open('system_users', 690, $this->getLanguageConstant('title_users_manager'), true, false, backend_UrlMake($this->name, 'users')), $level = 10));
         $system_menu->addSeparator(10);
         $system_menu->addChild(null, new backend_MenuItem($this->getLanguageConstant('menu_change_password'), url_GetFromFilePath($this->path . 'images/icons/16/change_password.svg'), window_Open('change_password_window', 350, $this->getLanguageConstant('title_change_password'), true, false, backend_UrlMake($this->name, 'change_password')), $level = 1));
         $system_menu->addChild(null, new backend_MenuItem($this->getLanguageConstant('menu_logout'), url_GetFromFilePath($this->path . 'images/icons/16/logout.svg'), window_Open('logout_window', 350, $this->getLanguageConstant('title_logout'), true, false, backend_UrlMake($this->name, 'logout')), $level = 1));
         $this->addMenu($this->name, $system_menu);
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:41,代码来源:backend.php

示例5: containerGroups

 /**
  * Print a form containing all the links within a group
  */
 private function containerGroups()
 {
     $container_id = fix_id($_REQUEST['id']);
     $template = new TemplateHandler('containers_groups.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('container' => $container_id, 'form_action' => backend_UrlMake($this->name, 'containers_groups_save'), 'cancel_action' => window_Close('gallery_containers_groups'));
     $template->registerTagHandler('_container_groups', $this, 'tag_ContainerGroups');
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:14,代码来源:gallery.php

示例6: showSettings

 /**
  * Show settings form.
  */
 private function showSettings()
 {
     $template = new TemplateHandler('settings.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('form_action' => backend_UrlMake($this->name, 'settings_save'), 'cancel_action' => window_Close('callbox_settings'));
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:12,代码来源:callbox.php

示例7: changeManufacturer

 /**
  * Show form for changing manufacturer data
  */
 private function changeManufacturer()
 {
     $id = fix_id($_REQUEST['id']);
     $manager = ShopManufacturerManager::getInstance();
     $item = $manager->getSingleItem($manager->getFieldNames(), array('id' => $id));
     if (!is_object($item)) {
         return;
     }
     $template = new TemplateHandler('manufacturer_change.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     if (class_exists('gallery')) {
         $gallery = gallery::getInstance();
         $template->registerTagHandler('_image_list', $gallery, 'tag_ImageList');
     }
     $params = array('id' => $item->id, 'name' => $item->name, 'web_site' => $item->web_site, 'logo' => $item->logo, 'form_action' => backend_UrlMake($this->name, 'manufacturers', 'save'), 'cancel_action' => window_Close('shop_manufacturer_change'));
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:22,代码来源:shop_manufacturer_handler.php

示例8: showTemplateSelection

 /**
  * Show form for selecting email templates for notifying users.
  */
 private function showTemplateSelection()
 {
     if (class_exists('contact_form')) {
         // get contact form and show settings
         $contact_form = contact_form::getInstance();
         $template = new TemplateHandler('email_templates.xml', $this->parent->path . 'templates/');
         $template->setMappedModule($this->parent->name);
         $template->registerTagHandler('cms:templates', $contact_form, 'tag_TemplateList');
         $params = array('form_action' => backend_UrlMake($this->parent->name, 'email_templates_save'), 'cancel_action' => window_Close('system_users_email_templates'));
         $template->restoreXML();
         $template->setLocalParams($params);
         $template->parse();
     } else {
         // contact form module is not active, show message instead
         $template = new TemplateHandler('message.xml', $this->parent->path . 'templates/');
         $template->setMappedModule($this->parent->name);
         $params = array('message' => $this->parent->getLanguageConstant('message_no_contact_form'), 'button' => $this->parent->getLanguageConstant('close'), 'action' => window_Close('system_users_email_templates'));
         $template->restoreXML();
         $template->setLocalParams($params);
         $template->parse();
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:25,代码来源:user_manager.php

示例9: changeCode

 /**
  * Show content of a form in editing state for sepected `code` object
  */
 private function changeCode()
 {
     $id = fix_id(fix_chars($_REQUEST['id']));
     $manager = CodeManager::getInstance();
     $item = $manager->getSingleItem($manager->getFieldNames(), array('id' => $id));
     $template = new TemplateHandler('change.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('id' => $item->id, 'code' => unfix_chars($item->code), 'url' => unfix_chars($item->url), 'form_action' => backend_UrlMake($this->name, 'codes_save'), 'cancel_action' => window_Close('codes_change'));
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:15,代码来源:code_project.php

示例10: changeFeed

 /**
  * Change feed data
  */
 private function changeFeed()
 {
     if (!isset($_REQUEST['id'])) {
         return;
     }
     $id = fix_id($_REQUEST['id']);
     $manager = NewsFeedManager::getInstance();
     $item = $manager->getSingleItem($manager->getFieldNames(), array('id' => $id));
     $template = new TemplateHandler('feed_change.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('id' => $item->id, 'group' => $item->group, 'news_count' => $item->news_count, 'title' => $item->title, 'description' => $item->description, 'active' => $item->active, 'form_action' => backend_UrlMake($this->name, 'feed_save'), 'cancel_action' => window_Close('news_feeds_change'));
     $template->registerTagHandler('_group_list', $this, 'tag_GroupList');
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:19,代码来源:news.php

示例11: setApiKey

 /**
  * Show form for setting/changing API key.
  */
 private function setApiKey()
 {
     $template = new TemplateHandler('set_api_key.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('api_key' => isset($this->settings['api_key']) ? $this->settings['api_key'] : '', 'form_action' => backend_UrlMake($this->name, 'save_api_key'), 'cancel_action' => window_Close('page_speed_set_api_key'));
     $template->registerTagHandler('_module_list', $this, 'tag_ModuleList');
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:13,代码来源:page_speed.php

示例12: showSettings

 /**
  * Show shop configuration form
  */
 private function showSettings()
 {
     $template = new TemplateHandler('settings.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('form_action' => backend_UrlMake($this->name, 'settings_save'), 'cancel_action' => window_Close('shop_settings'));
     if (class_exists('contact_form')) {
         $contact_form = contact_form::getInstance();
         $template->registerTagHandler('cms:template_list', $contact_form, 'tag_TemplateList');
     }
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:16,代码来源:shop.php

示例13: logout

 /**
  * Present confirmation dialog before logout
  */
 private function logout()
 {
     $template = new TemplateHandler('confirmation.xml', $this->parent->path . 'templates/');
     $template->setMappedModule($this->parent->name);
     $params = array('message' => $this->parent->getLanguageConstant('message_logout'), 'name' => '', 'yes_text' => $this->parent->getLanguageConstant('logout'), 'no_text' => $this->parent->getLanguageConstant('cancel'), 'yes_action' => window_LoadContent('logout_window', backend_UrlMake($this->parent->name, 'logout_commit')), 'no_action' => window_Close('logout_window'));
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:12,代码来源:session_manager.php

示例14: showSettings

 private function showSettings()
 {
     $template = new TemplateHandler('settings.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('form_action' => backend_UrlMake($this->name, 'settings_save'), 'cancel_action' => window_Close('tranzila'), 'confirm_url' => url_Make('checkout_completed', 'shop', array('method', 'tranzila')), 'cancel_url' => url_Make('checkout_canceled', 'shop', array('method', 'tranzila')));
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:9,代码来源:tranzila.php

示例15: addAdmin

 /**
  * Create admin form
  */
 private function addAdmin()
 {
     $template = new TemplateHandler('admins_add.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('form_action' => backend_UrlMake($this->name, 'admins_save'), 'cancel_action' => window_Close('chat_admins_new'));
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:12,代码来源:chat.php


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