本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}