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


PHP hikashop_completeLink函数代码示例

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


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

示例1: listing

    function listing()
    {
        hikashop_setTitle(JText::_('DOCUMENTATION'), 'help_header', 'documentation');
        if (!HIKASHOP_PHP5) {
            $bar =& JToolBar::getInstance('toolbar');
        } else {
            $bar = JToolBar::getInstance('toolbar');
        }
        $bar->appendButton('Link', 'hikashop', JText::_('HIKASHOP_CPANEL'), hikashop_completeLink('dashboard'));
        $config =& hikashop_config();
        $level = $config->get('level');
        $url = HIKASHOP_HELPURL . 'documentation&level=' . $level;
        if (hikashop_isSSL()) {
            $url = str_replace('http://', 'https://', $url);
        }
        $config =& hikashop_config();
        $menu_style = $config->get('menu_style', 'title_bottom');
        if (HIKASHOP_J30) {
            $menu_style = 'content_top';
        }
        if ($menu_style == 'content_top') {
            echo hikashop_getMenu('', $menu_style);
        }
        ?>
				<div id="hikashop_div">
						<iframe allowtransparency="true" scrolling="auto" height="450px" frameborder="0" width="100%" name="hikashop_frame" id="hikashop_frame" src="<?php 
        echo $url;
        ?>
">
						</iframe>
				</div>
<?php 
    }
开发者ID:q0821,项目名称:esportshop,代码行数:33,代码来源:documentation.php

示例2: saveForm

 function saveForm()
 {
     $entry = new stdClass();
     $entry->entry_id = hikashop_getCID('entry_id');
     $formData = JRequest::getVar('data', array(), '', 'array');
     jimport('joomla.filter.filterinput');
     $safeHtmlFilter =& JFilterInput::getInstance(null, null, 1, 1);
     foreach ($formData['entry'] as $column => $value) {
         hikashop_secureField($column);
         $entry->{$column} = $safeHtmlFilter->clean($value, 'string');
     }
     $status = $this->save($entry);
     if (JRequest::getVar('tmpl', '') == 'component') {
         if ($status) {
             $url = hikashop_completeLink('order&task=edit&cid=' . $entry->order_id, false, true);
             echo '<html><head><script type="text/javascript">parent.window.location.href=\'' . $url . '\';</script></head><body></body></html>';
             exit;
         } else {
             $app = JFactory::getApplication();
             if (version_compare(JVERSION, '1.6', '<')) {
                 $session =& JFactory::getSession();
                 $session->set('application.queue', $app->_messageQueue);
             }
             echo '<html><head><script type="text/javascript">javascript: history.go(-1);</script></head><body></body></html>';
             exit;
         }
     }
     return $status;
 }
开发者ID:q0821,项目名称:esportshop,代码行数:29,代码来源:entry.php

示例3: importFromRedshop

 function importFromRedshop()
 {
     @ob_clean();
     echo $this->getHtmlPage();
     $this->token = hikashop_getFormToken();
     flush();
     if (isset($_GET['import']) && $_GET['import'] == '1') {
         $time = microtime(true);
         $processed = $this->doImport();
         if ($processed) {
             $elasped = microtime(true) - $time;
             if (!$this->refreshPage) {
                 echo '<p></br><a' . $this->linkstyle . 'href="' . hikashop_completeLink('import&task=import&importfrom=redshop&' . $this->token . '=1&import=1&time=' . time()) . '">' . JText::_('HIKA_NEXT') . '</a></p>';
             }
             echo '<p style="font-size:0.85em; color:#605F5D;">Elasped time: ' . round($elasped * 1000, 2) . 'ms</p>';
         } else {
             echo '<a' . $this->linkstyle . 'href="' . hikashop_completeLink('import&task=show') . '">' . JText::_('HIKA_BACK') . '</a>';
         }
     } else {
         echo $this->getStartPage();
     }
     if ($this->refreshPage) {
         echo "<script type=\"text/javascript\">\r\nr = true;\r\n</script>";
     }
     echo '</body></html>';
     exit;
 }
开发者ID:rodhoff,项目名称:MNW,代码行数:27,代码来源:reds.php

示例4: save

 function save()
 {
     if ($this->store()) {
         echo '<html><head><script type="text/javascript">parent.window.location.href=\'' . hikashop_completeLink('dashboard', false, true) . '\';</script></head><body></body></html>';
         exit;
     }
 }
开发者ID:rodhoff,项目名称:MNW,代码行数:7,代码来源:dashboard.php

示例5: cancel

 function cancel()
 {
     $dashboard = JRequest::getVar('dashboard');
     if ($dashboard) {
         $this->setRedirect(hikashop_completeLink('dashboard', false, true));
     } else {
         $this->setRedirect(hikashop_completeLink('report', false, true));
     }
 }
开发者ID:rodhoff,项目名称:MNW,代码行数:9,代码来源:report.php

示例6: cancel

 function cancel()
 {
     $app = JFactory::getApplication();
     global $Itemid;
     $url = '';
     if (!empty($Itemid)) {
         $url = '&Itemid=' . $Itemid;
     }
     $app->redirect(hikashop_completeLink('user' . $url, false, true));
 }
开发者ID:q0821,项目名称:esportshop,代码行数:10,代码来源:affiliate.php

示例7: update

 function update()
 {
     hikashop_setTitle(JText::_('UPDATE_ABOUT'), 'install', 'update');
     if (!HIKASHOP_PHP5) {
         $bar =& JToolBar::getInstance('toolbar');
     } else {
         $bar = JToolBar::getInstance('toolbar');
     }
     $bar->appendButton('Link', 'hikashop', JText::_('HIKASHOP_CPANEL'), hikashop_completeLink('dashboard'));
     return $this->_iframe(HIKASHOP_UPDATEURL . 'update');
 }
开发者ID:q0821,项目名称:esportshop,代码行数:11,代码来源:update.php

示例8: form

 function form()
 {
     $user = JFactory::getUser();
     if ($user->guest) {
         JRequest::setVar('layout', 'form');
         return $this->display();
     } else {
         $app = JFactory::getApplication();
         $app->redirect(hikashop_completeLink('user&task=cpanel', false, true));
         return false;
     }
 }
开发者ID:q0821,项目名称:esportshop,代码行数:12,代码来源:user.php

示例9: display

 function display($map, $value, $option = '', $id, $widget_id = null, $row_id = null, $widget_display = null)
 {
     $this->load();
     $js = "\r\nfunction updateDisplay(){\r\n\tvar d = document, oldType = displayType, values = new Array('gauge', 'column', 'graph', 'line', 'pie', 'area', 'map', 'listing', 'table');\r\n\tfor(var i=0; i < values.length; i++){\r\n\t\tvar newType = d.getElementById('widget_display_'+values[i]).checked;\r\n\t\tif(newType){\r\n\t\t\tdisplayType = d.getElementById('widget_display_'+values[i]).value;\r\n\t\t}\r\n\t}\r\n\tif(displayType=='table'){\r\n\t\td.getElementById('widget_type').style.display='none';\r\n\t\tif(d.getElementById('widget_options'))d.getElementById('widget_options').style.display='none';\r\n\t\td.getElementById('widget_date').style.display='none';\r\n\t\td.getElementById('widget_group').style.display='none';\r\n\t\td.getElementById('widget_period').style.display='none';\r\n\t\td.getElementById('products_options').style.display='none';\r\n\t\td.getElementById('filters').style.display='none';\r\n\t\td.getElementById('customers_options').style.display='none';\r\n\t\td.getElementById('partners_options').style.display='none';\r\n\t\td.getElementById('orders_options').style.display='none';\r\n\t\td.getElementById('product_datas').style.display='none';\r\n\t\td.getElementById('widget_compare').style.display='none';\r\n\t\td.getElementById('widget_limit').style.display='none';\r\n\t\td.getElementById('map_options').style.display='none';\r\n\t}else{\r\n\t\tvar show = new Array('widget_type', 'widget_options', 'filters','widget_date', 'widget_specific_options', 'widget_compare', 'widget_group','widget_period','widget_limit','type_listing_sales','type_listing_taxes','partners_button','customers_button');\r\n\t\tvar hide = new Array('type_listing_discounts','orders_options', 'widget_region','products_options','customers_options','partners_options','type_listing_prod','type_listing_cat','map_options');\r\n\r\n\t\tfor(var i = 0; i < show.length; i++ ) {\r\n\t\t\tvar e = d.getElementById(show[i]);\r\n\t\t\tif(e) {\r\n\t\t\t\te.style.display = '';\r\n\t\t\t} else {\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(var i = 0; i < hide.length; i++ ) {\r\n\t\t\tvar e = d.getElementById(hide[i]);\r\n\t\t\tif(e) {\r\n\t\t\t\te.style.display = 'none';\r\n\t\t\t} else {\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(displayType=='map'){\r\n\t\t\tupdateDisplayType();\r\n\t\t}\r\n\t\tif(displayType=='listing'){\r\n\t\t\td.getElementById('type_listing_prod').style.display='';\r\n\t\t\td.getElementById('type_listing_cat').style.display='';\r\n\t\t\td.getElementById('type_listing_discounts').style.display='';\r\n\t\t\td.getElementById('type_listing_sales').style.display='none';\r\n\t\t\td.getElementById('type_listing_taxes').style.display='none';\r\n\t\t\td.getElementById('widget_compare').style.display='none';\r\n\t\t\tupdateDisplayType();\r\n\t\t}\r\n\t\tif(displayType=='gauge' || displayType=='pie' || displayType=='map'){\r\n\t\t\td.getElementById('widget_compare').style.display='none';\r\n\t\t\td.getElementById('widget_limit').style.display='none';\r\n\t\t}\r\n\t\tif(displayType=='listing' || displayType=='pie' || displayType=='map'){\r\n\t\t\td.getElementById('widget_group').style.display='none';\r\n\t\t}\r\n\t\tif(displayType=='map'){\r\n\t\t\td.getElementById('widget_region').style.display='';\r\n\t\t}\r\n\t\tif(displayType=='pie'){\r\n\t\t\td.getElementById('partners_button').style.display='none';\r\n\t\t\td.getElementById('customers_button').style.display='none';\r\n\t\t}\r\n\t\tupdateDisplayType();\r\n\t}\r\n}\r\n\r\nfunction displayTablePopup(){\r\n\tvar d = document, values = new Array('gauge', 'column', 'graph', 'line', 'pie', 'area', 'map', 'listing', 'table');\r\n\tfor(var i=0; i<values.length; i++){\r\n\t\tnewType = d.getElementById('widget_display_'+values[i]).checked;\r\n\t\tif(newType==true){\r\n\t\t\tdisplayType = d.getElementById('widget_display_'+values[i]).value;\r\n\t\t}\r\n\t}\r\n\r\n\twidget_display='" . $widget_display . "';\r\n\tif(displayType!='table' || widget_display=='table'){ return 0; }\r\n\td.getElementById('widget_display_'+widget_display).checked=true;\r\n\tupdateDisplay();\r\n\thikashop.openBox('table_popup_link','" . hikashop_completeLink('report&task=tableform&widget_id=' . $widget_id . '&row_id=' . $row_id . '&first=true', true, true) . "');\r\n}\r\n\r\nwindow.hikashop.ready( function(){ updateDisplay(); });";
     if (!HIKASHOP_PHP5) {
         $doc =& JFactory::getDocument();
     } else {
         $doc = JFactory::getDocument();
     }
     $doc->addScriptDeclaration($js);
     return '<a href="#" rel="{handler: \'iframe\', size: {x: 760, y: 480}}" style="display:none;" id="table_popup_link"></a>' . JHTML::_('hikaselect.radiolist', $this->values, $map, 'class="inputbox" size="1" onchange="updateDisplay(); displayTablePopup();"' . $option, 'value', 'text', $value, $id . '_');
 }
开发者ID:q0821,项目名称:esportshop,代码行数:12,代码来源:widget_data.php

示例10: cancel

 function cancel()
 {
     $return = JRequest::getString('return');
     if (!empty($return)) {
         if (strpos($return, HIKASHOP_LIVE) === false && preg_match('#^https?://.*#', $return)) {
             return false;
         }
         $this->setRedirect(hikashop_completeLink(urldecode($return), false, true));
     } else {
         return $this->listing();
     }
     return true;
 }
开发者ID:rodhoff,项目名称:MNW,代码行数:13,代码来源:tax.php

示例11: wizard

 function wizard()
 {
     $db = JFactory::getDBO();
     hikashop_setTitle(JText::_('HIKA_WIZARD'), 'config', 'update&task=wizard');
     if (!HIKASHOP_PHP5) {
         $bar =& JToolBar::getInstance('toolbar');
     } else {
         $bar = JToolBar::getInstance('toolbar');
     }
     $bar->appendButton('Link', 'hikashop', JText::_('HIKA_SKIP'), hikashop_completeLink('update&task=post_install&fromversion=&update=0'));
     $languagesCodes = array();
     $languagesNames = array();
     if (HIKASHOP_J25) {
         $db->setQuery('SELECT * FROM ' . hikashop_table('languages', false) . ' WHERE `published` = 1');
         $languages = $db->loadObjectList();
         foreach ($languages as $language) {
             $path = JLanguage::getLanguagePath(JPATH_ROOT) . DS . $language->lang_code . DS . $language->lang_code . '.com_hikashop.ini';
             if (!JFile::exists($path)) {
                 $languagesCodes[] = $language->lang_code;
                 $languagesNames[] = $language->title;
             }
         }
     }
     if (!empty($languagesCodes)) {
         $languageCodes = implode('_', $languagesCodes);
     }
     if (!empty($languagesNames)) {
         $languagesNames = implode(', ', $languagesNames);
     }
     $this->assignRef('languageCodes', $languageCodes);
     $this->assignRef('languageNames', $languagesNames);
     $fieldsClass = hikashop_get('class.field');
     $this->assignRef('fieldsClass', $fieldsClass);
     static $Itemid;
     if (isset($Itemid) && !empty($Itemid)) {
         $url_itemid = '&item_id=' . $Itemid;
     } else {
         $url_itemid = '';
     }
     $address = new stdClass();
     $extraFields = array();
     $extraFields['address'] = $fieldsClass->getFields('frontcomp', $address, 'address', 'update&task=state' . $url_itemid);
     $this->assignRef('extraFields', $extraFields);
     $this->assignRef('address', $address);
     $db->setQuery('SELECT * FROM ' . hikashop_table('currency') . ' WHERE 1 ORDER BY `currency_code`');
     $currencies = $db->loadObjectList();
     $this->assignRef('currencies', $currencies);
     hikashop_loadJslib('jquery');
     $app = JFactory::getApplication();
     $app->enqueueMessage(JText::_('WELCOME_WIZARD', 'success'));
 }
开发者ID:q0821,项目名称:esportshop,代码行数:51,代码来源:view.html.php

示例12: display

 function display($map, $value, $type, $parent_value, $object = null)
 {
     $this->load($type, $object);
     if (!count($this->values)) {
         return JText::_('AT_LEAST_ONE_FIELD_PUBLISHED');
     }
     if (is_array($parent_value)) {
         $parent_value = implode(',', $parent_value);
     }
     $url = hikashop_completeLink('field&task=parentfield&type=' . $type . '&value=' . $parent_value, true, true);
     $js = "\n\t\tfunction hikashopLoadParent(namekey){\n\t\t\ttry{\n\t\t\t\tnew Ajax('" . $url . "&namekey='+namekey, { method: 'get', onComplete: function(result) { old = window.document.getElementById('parent_value'); if(old){ old.innerHTML = result;}}}).request();\n\t\t\t}catch(err){\n\t\t\t\tnew Request({url:'" . $url . "&namekey='+namekey, method: 'get', onComplete: function(result) { old = window.document.getElementById('parent_value'); if(old){ old.innerHTML = result;}}}).send();\n\t\t\t}\n\t\t}\n\t\twindow.hikashop.ready(function(){\n\t\t\thikashopLoadParent(document.getElementById('limit_parent_select').value);\n\t\t});\n\t\t";
     $doc = JFactory::getDocument();
     $doc->addScriptDeclaration($js);
     return JHTML::_('select.genericlist', $this->values, $map, 'class="inputbox" size="1" onChange="hikashopLoadParent(this.value);"', 'value', 'text', $value, 'limit_parent_select');
 }
开发者ID:rodhoff,项目名称:MNW,代码行数:15,代码来源:limitparent.php

示例13: cpanel

 function cpanel()
 {
     $config =& hikashop_config();
     global $Itemid;
     $url_itemid = '';
     if (!empty($Itemid)) {
         $url_itemid = '&Itemid=' . $Itemid;
     }
     $buttons = array();
     $buttons['address'] = array('link' => hikashop_completeLink('address' . $url_itemid), 'level' => 0, 'image' => 'address', 'text' => JText::_('ADDRESSES'), 'description' => '<ul><li>' . JText::_('MANAGE_ADDRESSES') . '</li></ul>');
     $buttons['order'] = array('link' => hikashop_completeLink('order' . $url_itemid), 'level' => 0, 'image' => 'order', 'text' => JText::_('ORDERS'), 'description' => '<ul><li>' . JText::_('VIEW_ORDERS') . '</li></ul>');
     if (hikashop_level(1)) {
         if ($config->get('enable_multicart')) {
             $buttons['cart'] = array('link' => hikashop_completeLink('cart&task=showcarts&cart_type=cart' . $url_itemid), 'level' => 0, 'image' => 'cart', 'text' => JText::_('CARTS'), 'description' => '<ul><li>' . JText::_('DISPLAY_THE_CARTS') . '</li></ul>');
         } else {
             $buttons['cart'] = array('link' => hikashop_completeLink('cart&task=showcart&cart_type=cart' . $url_itemid), 'level' => 0, 'image' => 'cart', 'text' => JText::_('CARTS'), 'description' => '<ul><li>' . JText::_('DISPLAY_THE_CART') . '</li></ul>');
         }
         if ($config->get('enable_wishlist')) {
             if ($config->get('enable_multicart')) {
                 $buttons['wishlist'] = array('link' => hikashop_completeLink('cart&task=showcarts&cart_type=wishlist' . $url_itemid), 'level' => 0, 'image' => 'wishlist', 'text' => JText::_('WISHLISTS'), 'description' => '<ul><li>' . JText::_('DISPLAY_THE_WISHLISTS') . '</li></ul>');
             } else {
                 $buttons['wishlist'] = array('link' => hikashop_completeLink('cart&task=showcart&cart_type=wishlist' . $url_itemid), 'level' => 0, 'image' => 'wishlist', 'text' => JText::_('WISHLISTS'), 'description' => '<ul><li>' . JText::_('DISPLAY_THE_WISHLIST') . '</li></ul>');
             }
         }
         if ($config->get('enable_customer_downloadlist')) {
             $buttons['download'] = array('link' => hikashop_completeLink('user&task=downloads' . $url_itemid), 'level' => 0, 'image' => 'downloads', 'text' => JText::_('DOWNLOADS'), 'description' => '<ul><li>' . JText::_('DISPLAY_THE_DOWNLOADS') . '</li></ul>');
         }
     }
     JPluginHelper::importPlugin('hikashop');
     JPluginHelper::importPlugin('hikashoppayment');
     JPluginHelper::importPlugin('hikashopshipping');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onUserAccountDisplay', array(&$buttons));
     $this->assignRef('buttons', $buttons);
     if (!HIKASHOP_PHP5) {
         $app =& JFactory::getApplication();
         $pathway =& $app->getPathway();
     } else {
         $app = JFactory::getApplication();
         $pathway = $app->getPathway();
     }
     $items = $pathway->getPathway();
     if (!count($items)) {
         $pathway->addItem(JText::_('CUSTOMER_ACCOUNT'), hikashop_completeLink('user'));
     }
     hikashop_setPageTitle('CUSTOMER_ACCOUNT');
 }
开发者ID:q0821,项目名称:esportshop,代码行数:47,代码来源:view.html.php

示例14: display

 function display($tpl = null, $title = '', $menu_style = '')
 {
     $this->assignRef('title', $title);
     $this->assignRef('menu_style', $menu_style);
     if (!HIKASHOP_PHP5) {
         $doc =& JFactory::getDocument();
     } else {
         $doc = JFactory::getDocument();
     }
     $doc->addStyleSheet(HIKASHOP_CSS . 'menu.css');
     $config = hikashop_config();
     $function = $this->getLayout();
     if (method_exists($this, $function)) {
         $this->{$function}();
     }
     $plugin = JPluginHelper::getPlugin('system', 'hikashopaffiliate');
     $menus = array('system' => array('name' => JText::_('SYSTEM'), 'check' => 'ctrl=config', 'acl' => 'config', 'task' => 'manage', 'icon' => 'icon-16-config', 'url' => !HIKASHOP_J16 || JFactory::getUser()->authorise('core.admin', 'com_hikashop') ? hikashop_completeLink('config') : '#', 'children' => array(array('name' => JText::_('HIKA_CONFIGURATION'), 'check' => 'ctrl=config', 'acl' => 'config', 'task' => 'manage', 'icon' => 'icon-16-config', 'url' => hikashop_completeLink('config'), 'display' => !HIKASHOP_J16 || JFactory::getUser()->authorise('core.admin', 'com_hikashop')), array('name' => JText::_('ZONES'), 'check' => 'ctrl=zone', 'acl' => 'zone', 'icon' => 'icon-16-language', 'url' => hikashop_completeLink('zone')), array('name' => JText::_('PAYMENT_METHODS'), 'check' => array('ctrl' => 'plugins', 'plugin_type' => 'payment'), 'acl' => 'plugins', 'icon' => 'icon-16-plugin', 'url' => hikashop_completeLink('plugins&plugin_type=payment')), array('name' => JText::_('SHIPPING_METHODS'), 'check' => array('ctrl' => 'plugins', 'plugin_type' => 'shipping'), 'acl' => 'plugins', 'icon' => 'icon-16-plugin', 'url' => hikashop_completeLink('plugins&plugin_type=shipping')), array('name' => JText::_('PLUGINS'), 'check' => array('ctrl' => 'plugins', 'plugin_type' => 'plugin'), 'acl' => 'plugins', 'icon' => 'icon-16-plugin', 'url' => hikashop_completeLink('plugins&plugin_type=plugin')), array('name' => JText::_('WAREHOUSE'), 'check' => array('ctrl' => 'warehouse'), 'acl' => 'warehouse', 'icon' => 'icon-16-warehouse', 'url' => hikashop_completeLink('warehouse')), array('name' => JText::_('TAXES'), 'check' => array('ctrl' => 'taxation'), 'acl' => 'taxation', 'icon' => 'icon-16-tax', 'url' => hikashop_completeLink('taxation')), array('name' => JText::_('CURRENCIES'), 'check' => array('ctrl' => 'currency'), 'acl' => 'currency', 'icon' => 'icon-16-currency', 'url' => hikashop_completeLink('currency')), array('name' => JText::_('ORDER_STATUSES'), 'check' => array('ctrl' => 'category', 'filter_id' => 'status'), 'acl' => 'config', 'icon' => 'icon-16-order', 'url' => hikashop_completeLink('category&filter_id=status')), array('name' => JText::_('EMAILS'), 'check' => array('ctrl' => 'email'), 'acl' => 'email', 'url' => hikashop_completeLink('email'), 'icon' => 'icon-16-email', 'display' => hikashop_level(2)), array('name' => JText::_('HIKA_MASSACTION'), 'check' => 'ctrl=massaction', 'acl' => 'massaction', 'url' => hikashop_completeLink('massaction'), 'icon' => 'icon-16-massaction'))), 'products' => array('name' => JText::_('PRODUCTS'), 'check' => array('ctrl' => 'product', '!task' => array('add')), 'acl' => 'product', 'icon' => 'icon-16-product', 'url' => hikashop_completeLink('product'), 'children' => array(array('name' => JText::_('ADD_PRODUCT'), 'check' => array('ctrl' => 'procut', 'task' => 'add'), 'acl' => 'product', 'task' => 'manage', 'icon' => 'icon-16-addproduct', 'url' => hikashop_completeLink('product&task=add')), array('name' => JText::_('PRODUCTS'), 'check' => array('ctrl' => 'product', '!task' => array('add')), 'acl' => 'product', 'icon' => 'icon-16-product', 'url' => hikashop_completeLink('product')), array('name' => JText::_('HIKA_CATEGORIES'), 'check' => array('ctrl' => 'category', 'filter_id' => 'product'), 'acl' => 'category', 'icon' => 'icon-16-category', 'url' => hikashop_completeLink('category&filter_id=product')), array('name' => JText::_('CHARACTERISTICS'), 'check' => 'ctrl=characteristic', 'acl' => 'characteristic', 'icon' => 'icon-16-characteristic', 'url' => hikashop_completeLink('characteristic')), array('name' => JText::_('MANUFACTURERS'), 'check' => array('ctrl' => 'category', 'filter_id' => 'manufacturer'), 'acl' => 'category', 'icon' => 'icon-16-category', 'url' => hikashop_completeLink('category&filter_id=manufacturer')), array('name' => JText::_('HIKA_BADGES'), 'check' => 'ctrl=badge', 'acl' => 'badge', 'icon' => 'icon-16-badge', 'url' => hikashop_completeLink('badge')), array('name' => JText::_('LIMIT'), 'check' => 'ctrl=limit', 'icon' => 'icon-16-limit', 'acl' => 'limit', 'url' => hikashop_completeLink('limit'), 'display' => hikashop_level(1)), array('name' => JText::_('IMPORT'), 'check' => 'ctrl=import', 'acl' => 'import', 'icon' => 'icon-16-import', 'url' => hikashop_completeLink('import&task=show')))), 'customers' => array('name' => JText::_('CUSTOMERS'), 'check' => array('ctrl' => 'user', 'filter_partner' => 0, '!task' => array('clicks')), 'acl' => 'user', 'icon' => 'icon-16-user', 'url' => hikashop_completeLink('user&filter_partner=0'), 'children' => array(array('name' => JText::_('CUSTOMERS'), 'check' => array('ctrl' => 'user', 'filter_partner' => 0, '!task' => array('clicks')), 'acl' => 'user', 'icon' => 'icon-16-user', 'url' => hikashop_completeLink('user&filter_partner=0')), array('name' => JText::_('VOTE'), 'check' => 'ctrl=vote', 'acl' => 'vote', 'icon' => 'icon-16-vote', 'url' => hikashop_completeLink('vote')), array('name' => JText::_('HIKASHOP_CHECKOUT_CART'), 'check' => array('ctrl' => 'cart', 'cart_type' => 'cart'), 'acl' => 'cart', 'icon' => 'icon-16-cart', 'url' => hikashop_completeLink('cart&cart_type=cart'), 'display' => hikashop_level(1)), array('name' => JText::_('WISHLISTS'), 'check' => array('ctrl' => 'cart', 'cart_type' => 'wishlist'), 'acl' => 'wishlist', 'icon' => 'icon-16-wishlist', 'url' => hikashop_completeLink('cart&cart_type=wishlist'), 'display' => hikashop_level(1) && $config->get('enable_wishlist', 0)), array('name' => JText::_('HIKA_WAITLIST'), 'check' => array('ctrl' => 'waitlist'), 'acl' => 'waitlist', 'icon' => 'icon-16-wishlist', 'url' => hikashop_completeLink('waitlist'), 'display' => hikashop_level(1) && $config->get('product_waitlist', 1)))), 'orders' => array('name' => JText::_('ORDERS'), 'check' => array('ctrl' => 'order', 'filter_partner' => 0), 'acl' => 'order', 'icon' => 'icon-16-order', 'url' => hikashop_completeLink('order&order_type=sale&filter_partner=0'), 'children' => array(array('name' => JText::_('ORDERS'), 'check' => array('ctrl' => 'order', 'filter_partner' => 0), 'acl' => 'order', 'icon' => 'icon-16-order', 'url' => hikashop_completeLink('order&order_type=sale&filter_partner=0')), array('name' => JText::_('DISCOUNTS'), 'check' => array('ctrl=discount', 'filter_type' => 'discount'), 'acl' => 'discount', 'icon' => 'icon-16-discount', 'url' => hikashop_completeLink('discount&filter_type=discount')), array('name' => JText::_('COUPONS'), 'check' => array('ctrl=discount', 'filter_type' => 'coupon'), 'acl' => 'discount', 'icon' => 'icon-16-discount', 'url' => hikashop_completeLink('discount&filter_type=coupon')), array('name' => JText::_('HIKASHOP_ENTRIES'), 'check' => 'ctrl=entry', 'acl' => 'entry', 'icon' => 'icon-16-article', 'url' => hikashop_completeLink('entry'), 'display' => hikashop_level(2)), array('name' => JText::_('HIKASHOP_REPORTS'), 'check' => 'ctrl=report', 'acl' => 'report', 'icon' => 'icon-16-report', 'url' => hikashop_completeLink('report'), 'display' => hikashop_level(1)))), 'affiliates' => array('name' => JText::_('AFFILIATES'), 'check' => array('ctrl' => 'user', 'filter_partner' => '1'), 'acl' => 'affiliates', 'icon' => 'icon-16-affiliate', 'url' => hikashop_completeLink('user&filter_partner=1'), 'display' => !empty($plugin) && hikashop_level(2), 'children' => array(array('name' => JText::_('PARTNERS'), 'check' => array('ctrl' => 'user', 'filter_partner' => '1'), 'acl' => 'affiliates', 'icon' => 'icon-16-affiliate', 'url' => hikashop_completeLink('user&filter_partner=1')), array('name' => JText::_('HIKA_BANNERS'), 'check' => 'ctrl=banner', 'acl' => 'banner', 'icon' => 'icon-16-banner', 'url' => hikashop_completeLink('banner')), array('name' => JText::_('AFFILIATES_SALES'), 'check' => array('ctrl' => 'order', 'filter_partner' => '1'), 'acl' => 'order', 'icon' => 'icon-16-order', 'url' => hikashop_completeLink('order&order_type=sale&filter_partner=1')), array('name' => JText::_('CLICKS'), 'check' => array('ctrl' => 'user', 'task' => 'clicks'), 'acl' => 'order', 'icon' => 'icon-16-click', 'url' => hikashop_completeLink('user&task=clicks')))), 'display' => array('name' => JText::_('DISPLAY'), 'check' => 'ctrl=view', 'acl' => 'view', 'icon' => 'icon-16-views', 'url' => hikashop_completeLink('view'), 'children' => array(array('name' => JText::_('VIEWS'), 'check' => 'ctrl=view', 'acl' => 'view', 'icon' => 'icon-16-views', 'url' => hikashop_completeLink('view')), array('name' => JText::_('CONTENT_MENUS'), 'check' => 'ctrl=menus', 'acl' => 'menus', 'icon' => 'icon-16-menu', 'url' => hikashop_completeLink('menus'), 'display' => !HIKASHOP_J30), array('name' => JText::_('CONTENT_MODULES'), 'check' => 'ctrl=modules', 'acl' => 'modules', 'icon' => 'icon-16-module', 'url' => hikashop_completeLink('modules'), 'display' => !HIKASHOP_J30), array('name' => JText::_('FIELDS'), 'check' => 'ctrl=field', 'acl' => 'field', 'icon' => 'icon-16-field', 'url' => hikashop_completeLink('field')), array('name' => JText::_('FILTERS'), 'check' => 'ctrl=filter', 'acl' => 'filter', 'icon' => 'icon-16-filter', 'url' => hikashop_completeLink('filter'), 'display' => hikashop_level(2)))), 'help' => array('name' => JText::_('DOCUMENTATION'), 'check' => 'ctrl=documentation', 'acl' => 'documentation', 'icon' => 'icon-16-help', 'url' => hikashop_completeLink('documentation'), 'children' => array(array('name' => JText::_('DOCUMENTATION'), 'check' => 'ctrl=documentation', 'acl' => 'documentation', 'icon' => 'icon-16-help', 'url' => hikashop_completeLink('documentation')), array('name' => JText::_('UPDATE_ABOUT'), 'check' => 'ctrl=update', 'acl' => 'update_about', 'icon' => 'icon-16-install', 'url' => hikashop_completeLink('update')), array('name' => JText::_('FORUM'), 'options' => 'target="_blank"', 'acl' => 'forum', 'icon' => 'icon-16-info', 'url' => HIKASHOP_URL . 'support/forum.html'))));
     $this->_checkActive($menus);
     $this->assignRef('menus', $menus);
     parent::display($tpl);
 }
开发者ID:rodhoff,项目名称:MNW,代码行数:21,代码来源:view.html.php

示例15: save

 function save()
 {
     global $Itemid;
     $url = 'checkout';
     if (!empty($Itemid)) {
         $url .= '&Itemid=' . $Itemid;
     }
     $app = JFactory::getApplication();
     $fieldClass = hikashop_get('class.field');
     $null = null;
     $entriesData = $fieldClass->getInput('entry', $null);
     $app->setUserState(HIKASHOP_COMPONENT . '.entries_fields', null);
     $ok = true;
     if (empty($entriesData)) {
         $app->redirect(hikashop_completeLink('entry', false, true));
     }
     $cartClass = hikashop_get('class.cart');
     $fields =& $fieldClass->getData('frontcomp', 'entry');
     $cartClass->addToCartFromFields($entriesData, $fields);
     $app->setUserState(HIKASHOP_COMPONENT . '.entries_fields', $entriesData);
     $app->redirect(hikashop_completeLink($url, false, true));
 }
开发者ID:q0821,项目名称:esportshop,代码行数:22,代码来源:entry.php


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