• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP backend_UrlMake函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: changePrice

 /**
  * Show form for changing price
  */
 private function changePrice()
 {
     $manager = ShopDeliveryMethodPricesManager::getInstance();
     $id = fix_id($_REQUEST['id']);
     $item = $manager->getSingleItem($manager->getFieldNames(), array('id' => $id));
     $template = new TemplateHandler('delivery_method_price_change.xml', $this->path . 'templates/');
     $params = array('id' => $item->id, 'value' => $item->value, 'method' => $item->method, 'form_action' => backend_UrlMake($this->name, 'delivery_methods', 'save_price'), 'cancel_action' => window_Close('shop_delivery_price_change'));
     $template->setLocalParams($params);
     $template->restoreXML();
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:14,代码来源:shop_delivery_methods_handler.php


示例17: changeAffiliate

 /**
  * Show form for changing existing affiliate.
  */
 private function changeAffiliate()
 {
     if ($_SESSION['level'] < 10) {
         die('Access denied!');
     }
     $id = fix_id($_REQUEST['id']);
     $manager = AffiliatesManager::getInstance();
     $item = $manager->getSingleItem($manager->getFieldNames(), array('id' => $id));
     if (is_object($item)) {
         $template = new TemplateHandler('change.xml', $this->path . 'templates/');
         $template->setMappedModule($this->name);
         // connect tag handlers
         $user_manager = UserManager::getInstance();
         $template->registerTagHandler('_user_list', $user_manager, 'tag_UserList');
         $params = array('id' => $item->id, 'uid' => $item->uid, 'name' => $item->name, 'user' => $item->user, 'active' => $item->active, 'default' => $item->default, 'form_action' => backend_UrlMake($this->name, 'affiliate_save'), 'cancel_action' => window_Close('affiliates_change'));
         $template->restoreXML();
         $template->setLocalParams($params);
         $template->parse();
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:23,代码来源:affiliates.php


示例18: groupLinks

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


示例19: editField

 /**
  * Show form for editing existing field.
  */
 private function editField()
 {
     $id = fix_id($_REQUEST['id']);
     $manager = ContactForm_FormFieldManager::getInstance();
     $item = $manager->getSingleItem($manager->getFieldNames(), array('id' => $id));
     if (is_object($item)) {
         $template = new TemplateHandler('fields_change.xml', $this->path . 'templates/');
         $template->setMappedModule($this->name);
         $params = array('id' => $item->id, 'form' => $item->form, 'name' => $item->name, 'type' => $item->type, 'label' => $item->label, 'placeholder' => $item->placeholder, 'min' => $item->min, 'max' => $item->max, 'maxlength' => $item->maxlength, 'value' => $item->value, 'pattern' => $item->pattern, 'disabled' => $item->disabled, 'required' => $item->required, 'autocomplete' => $item->autocomplete, 'form_action' => backend_UrlMake($this->name, 'fields_save'), 'cancel_action' => window_Close('contact_form_fields_edit'));
         $template->registerTagHandler('cms:field_types', $this, 'tag_FieldTypes');
         $template->restoreXML();
         $template->setLocalParams($params);
         $template->parse();
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:18,代码来源:contact_form.php


示例20: setDefault

 /**
  * Show form for setting default currency
  */
 private function setDefault()
 {
     $template = new TemplateHandler('currency_set_default.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('default' => $this->_parent->getDefaultCurrency(), 'form_action' => backend_UrlMake($this->name, 'currencies', 'save_default'), 'cancel_action' => window_Close('shop_currencies_set_default'));
     $template->registerTagHandler('_currency_list', $this, 'tag_CurrencyList');
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:13,代码来源:shop_currencies_handler.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP backend_url函数代码示例发布时间:2022-05-24
下一篇:
PHP backdrop_attributes函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap