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


PHP AdminUIHelper::backEnd方法代码示例

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


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

示例1: startAdminArea

    /**
     * Start the administrator area table
     *
     * The entire administrator area with contained in a table which include the admin ribbon menu
     * in the left column and the content in the right column.  This function sets up the table and
     * displays the admin menu in the left column.
     */
    static function startAdminArea($vmView, $selectText = 'COM_VIRTUEMART_DRDOWN_AVA2ALL')
    {
        if (vRequest::getCmd('format') == 'pdf') {
            return;
        }
        if (vRequest::getCmd('manage', false)) {
            self::$backEnd = false;
        }
        if (self::$vmAdminAreaStarted) {
            return;
        }
        self::$vmAdminAreaStarted = true;
        $admin = 'administrator/components/com_virtuemart/assets/css';
        //loading defaut admin CSS
        vmJsApi::css('admin_ui', $admin);
        vmJsApi::css('admin.styles', $admin);
        vmJsApi::css('toolbar_images', $admin);
        vmJsApi::css('menu_images', $admin);
        vmJsApi::css('vtip');
        $view = vRequest::getCmd('view', 'virtuemart');
        $modalJs = '';
        if ($view != 'virtuemart') {
            vmJsApi::css('chosen');
            vmJsApi::css('jquery.fancybox-1.3.4');
            vmJsApi::css('ui/jquery.ui.all');
            $modalJs = "\$('.modal').fancybox();";
        }
        if ($view != 'virtuemart') {
            vmJsApi::addJScript('fancybox/jquery.mousewheel-3.0.4.pack', false, false);
            vmJsApi::addJScript('fancybox/jquery.easing-1.3.pack', false, false);
            vmJsApi::addJScript('fancybox/jquery.fancybox-1.3.4.pack', false, false);
            VmJsApi::chosenDropDowns();
        }
        vmJsApi::addJScript('/administrator/components/com_virtuemart/assets/js/jquery.coookie.js');
        vmJsApi::addJScript('/administrator/components/com_virtuemart/assets/js/vm2admin.js');
        //vmJsApi::addJScript ('vm.accordeon',"",true);
        $vm2string = "editImage: 'edit image',select_all_text: '" . vmText::_('COM_VIRTUEMART_DRDOWN_SELALL') . "',select_some_options_text: '" . vmText::_($selectText) . "'";
        vmJsApi::addJScript('vm.remindTab', "\r\r\n\t\tvar tip_image='" . JURI::root(true) . "/components/com_virtuemart/assets/js/images/vtip_arrow.png';\r\r\n\t\tvar vm2string ={" . $vm2string . "} ;\r\r\n\t\tjQuery( function(\$) {\r\r\n\r\r\n\t\t\tjQuery('dl#system-message').hide().slideDown(400);\r\r\n\t\t\tjQuery('.virtuemart-admin-area .toggler').vm2admin('toggle');\r\r\n\t\t\tjQuery('#admin-ui-menu').vm2admin('accordeon');\r\r\n\t\t\tif ( \$('#admin-ui-tabs').length  ) {\r\r\n\t\t\t\t\$('#admin-ui-tabs').vm2admin('tabs',virtuemartcookie);\r\r\n\t\t\t}\r\r\n\t\t\t\$('#content-box [title]').vm2admin('tips',tip_image);\r\r\n\t\t\t" . $modalJs . "\r\r\n\t\t\t\$('.reset-value').click( function(e){\r\r\n\t\t\t\te.preventDefault();\r\r\n\t\t\t\tnone = '';\r\r\n\t\t\t\tjQuery(this).parent().find('.ui-autocomplete-input').val(none);\r\r\n\t\t\t});\r\r\n\t\t});\t");
        ?>

		<!--[if lt IE 9]>
		<script src="//ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
		<![endif]-->
		<?php 
        if (!self::$backEnd) {
            //JToolBarHelper
            $bar = JToolbar::getInstance('toolbar');
            ?>
<div class="toolbar-box" style="height: 84px;position: relative;"><?php 
            echo $bar->render();
            ?>
</div>
		<?php 
        }
        ?>

    <?php 
        $hideMenu = JFactory::getApplication()->input->cookie->getString('vmmenu', 'show') === 'hide' ? ' menu-collapsed' : '';
        ?>

    <div class="virtuemart-admin-area<?php 
        echo $hideMenu;
        ?>
">
		<div class="toggler vmicon-show<?php 
        echo $hideMenu;
        ?>
"></div>
			<div class="menu-wrapper<?php 
        echo $hideMenu;
        ?>
" id="menu-wrapper">
				<?php 
        if (!empty($vmView->langList)) {
            ?>

					<div class="vm-lang-list-container">
						<?php 
            echo $vmView->langList;
            ?>

					</div>
				<?php 
        } else {
            ?>
<a href="index.php?option=com_virtuemart&view=virtuemart" ><img src="<?php 
            echo JURI::root(true) . '/administrator/components/com_virtuemart/assets/images/vm_menulogo.png';
            ?>
"></a>
				<?php 
        }
        AdminUIHelper::showAdminMenu($vmView);
        ?>
//.........这里部分代码省略.........
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:101,代码来源:adminui.php

示例2: startAdminArea

    /**
     * Start the administrator area table
     *
     * The entire administrator area with contained in a table which include the admin ribbon menu
     * in the left column and the content in the right column.  This function sets up the table and
     * displays the admin menu in the left column.
     */
    static function startAdminArea($vmView, $selectText = 'com_tsmart_DRDOWN_AVA2ALL')
    {
        JHtml::_('jquery.framework');
        $doc = JFactory::getDocument();
        //JHtml::_('behavior.formvalidator');
        JHtml::_('formbehavior.chosen');
        JHTML::_('behavior.core');
        JHtml::_('jquery.ui');
        $doc = JFactory::getDocument();
        $doc->addScript(JUri::root() . '/media/system/js/jquery.serializeObject.js');
        $doc->addScript(JUri::root() . '/media/jquery-ui-1.11.1/ui/datepicker.js');
        $doc->addScript(JUri::root() . '/media/jquery-ui-1.11.1/ui/effect.js');
        $doc->addScript(JUri::root() . '/media/jquery-ui-1.11.1/ui/draggable.js');
        $doc->addScript(JUri::root() . '/media/jquery-ui-1.11.1/ui/dialog.js');
        $doc->addScript(JUri::root() . '/media/jquery-ui-1.11.1/ui/autocomplete.js');
        $doc->addStyleSheet(JUri::root() . '/media/jquery-ui-1.11.1/themes/base/core.css');
        $doc->addStyleSheet(JUri::root() . '/media/jquery-ui-1.11.1/themes/base/theme.css');
        $doc->addStyleSheet(JUri::root() . '/media/jquery-ui-1.11.1/themes/base/dialog.css');
        $doc->addStyleSheet(JUri::root() . '/media/jquery-ui-1.11.1/themes/base/datepicker.css');
        $doc->addStyleSheet(JUri::root() . '/media/jquery-ui-1.11.1/themes/base/datepicker.css');
        $doc->addStyleSheet(JUri::root() . '/media/system/js/datepicker/css/base.css');
        $doc->addStyleSheet(JUri::root() . '/media/system/js/datepicker/css/clean.css');
        if (vRequest::getCmd('format') == 'pdf') {
            return;
        }
        if (vRequest::getCmd('manage', false)) {
            self::$backEnd = false;
        }
        if (self::$vmAdminAreaStarted) {
            return;
        }
        self::$vmAdminAreaStarted = true;
        $doc->addLessStyleSheet(JUri::root() . '/administrator/components/com_tsmart/assets/less/admin_ui.less');
        $doc->addStyleSheet(JUri::root() . '/administrator/components/com_tsmart/assets/css/icons.css');
        $doc->addScript(JUri::root() . '/media/system/js/purl-master/purl-master/purl.js');
        $doc->addScript(JUri::root() . '/media/system/js/URI.js-gh-pages/src/URI.js');
        $doc->addScript(JUri::root() . '/administrator/components/com_tsmart/assets/js/asianventure.js');
        $doc->addLessStyleSheet(JUri::root() . '/administrator/components/com_tsmart/assets/less/asianventure.less');
        $admin = 'administrator/components/com_tsmart/assets/css';
        $modalJs = '';
        //loading defaut admin CSS
        vmJsApi::css('admin_ui', $admin);
        vmJsApi::css('admin.styles', $admin);
        vmJsApi::css('toolbar_images', $admin);
        vmJsApi::css('menu_images', $admin);
        vmJsApi::css('vtip');
        $view = vRequest::getCmd('view', 'tsmart');
        if ($view != 'tsmart') {
            vmJsApi::css('chosen');
            vmJsApi::css('jquery.fancybox-1.3.4');
            //vmJsApi::css('ui/jquery.ui.all');
        }
        if ($view != 'tsmart') {
            vmJsApi::addJScript('fancybox/jquery.mousewheel-3.0.4.pack', false, false);
            vmJsApi::addJScript('fancybox/jquery.easing-1.3.pack', false, false);
            vmJsApi::addJScript('fancybox/jquery.fancybox-1.3.4.pack', false, false);
            VmJsApi::chosenDropDowns();
        }
        $app = JFactory::getApplication();
        $input = $app->input;
        $cid = $input->get('cid', array(), 'array');
        $key = $input->get('key', array(), 'array');
        $list_key = array();
        foreach ($key as $a_key => $item) {
            $list_key = "{$a_key}={$item}";
        }
        $str_key = '';
        if ($list_key != '') {
            $str_key = '&' . $list_key;
        }
        $key_string = '';
        $show_edit_in_line = $input->get('show_edit_in_line', 0, 'int');
        $hide_toolbar = $input->get('hide_toolbar', 0, 'int');
        if ($show_edit_in_line) {
            $doc->addLessStyleSheet(JUri::root() . '/administrator/components/com_tsmart/assets/less/asianventure-edit-inline.less');
        }
        $tsmart_product_id = $app->input->get('tsmart_product_id', array(), 'array');
        $tsmart_product_id = $tsmart_product_id[0];
        $uri = JUri::getInstance();
        $url = $uri->toString(array('query'));
        $js_content = '';
        ob_start();
        ?>
    <script type="text/javascript">
        jQuery(document).ready(function ($) {
            $('.admin.com_tsmart').asianventure({
                show_iframe:<?php 
        echo json_encode(tsmConfig::$show_iframe);
        ?>
,
                add_new_popup:<?php 
        echo $vmView->add_new_popup == 1 ? 1 : 0;
        ?>
//.........这里部分代码省略.........
开发者ID:cuongnd,项目名称:etravelservice,代码行数:101,代码来源:adminui.php

示例3: startAdminArea

    /**
     * Start the administrator area table
     *
     * The entire administrator area with contained in a table which include the admin ribbon menu
     * in the left column and the content in the right column.  This function sets up the table and
     * displayes the admin menu in the left column.
     */
    static function startAdminArea($vmView, $selectText = 'COM_VIRTUEMART_DRDOWN_AVA2ALL')
    {
        if (JRequest::getWord('format') == 'pdf') {
            return;
        }
        if (JRequest::getWord('tmpl') == 'component') {
            self::$backEnd = false;
        }
        if (self::$vmAdminAreaStarted) {
            return;
        }
        self::$vmAdminAreaStarted = true;
        $front = JURI::root(true) . '/components/com_virtuemart/assets/';
        $admin = JURI::root(true) . '/administrator/components/com_virtuemart/assets/';
        $document = JFactory::getDocument();
        //loading defaut admin CSS
        $document->addStyleSheet($admin . 'css/admin_ui.css');
        //$document->addStyleSheet($admin.'css/admin_menu.css');
        $document->addStyleSheet($admin . 'css/admin.styles.css');
        $document->addStyleSheet($admin . 'css/toolbar_images.css');
        $document->addStyleSheet($admin . 'css/menu_images.css');
        $document->addStyleSheet($front . 'css/chosen.css');
        $document->addStyleSheet($front . 'css/vtip.css');
        $document->addStyleSheet($front . 'css/jquery.fancybox-1.3.4.css');
        $document->addStyleSheet($front . 'css/ui/jquery.ui.all.css');
        //$document->addStyleSheet($admin.'css/jqtransform.css');
        //loading defaut script
        $document->addScript($front . 'js/fancybox/jquery.mousewheel-3.0.4.pack.js');
        $document->addScript($front . 'js/fancybox/jquery.easing-1.3.pack.js');
        $document->addScript($front . 'js/fancybox/jquery.fancybox-1.3.4.pack.js');
        $document->addScript($admin . 'js/jquery.coookie.js');
        $document->addScript($front . 'js/chosen.jquery.min.js');
        $document->addScript($admin . 'js/vm2admin.js');
        $vm2string = "editImage: 'edit image',select_all_text: '" . JText::_('COM_VIRTUEMART_DRDOWN_SELALL') . "',select_some_options_text: '" . JText::_($selectText) . "'";
        $document->addScriptDeclaration("\n//<![CDATA[\n\t\tvar tip_image='" . JURI::root(true) . "/components/com_virtuemart/assets/js/images/vtip_arrow.png';\n\t\tvar vm2string ={" . $vm2string . "} ;\n\t\t jQuery( function(\$) {\n\n\t\t\t\$('dl#system-message').hide().slideDown(400);\n\t\t\t\$('.virtuemart-admin-area .toggler').vm2admin('toggle');\n\t\t\t\$('#admin-ui-menu').vm2admin('accordeon');\n\t\t\tif ( \$('#admin-ui-tabs').length  ) {\n\n\t\t\t\t\$('#admin-ui-tabs').vm2admin('tabs',virtuemartcookie).find('select').chosen({enable_select_all: true,select_all_text : vm2string.select_all_text,select_some_options_text:vm2string.select_some_options_text}); \n\t\t\t}\n\n\t\t\t\$('#content-box [title]').vm2admin('tips',tip_image);\n\t\t\t\$('.modal').fancybox();\n\t\t\t\$('.reset-value').click( function(e){\n\t\t\t\te.preventDefault();\n\t\t\t\tnone = '';\n\t\t\t\tjQuery(this).parent().find('.ui-autocomplete-input').val(none);\n\t\t\t\t\n\t\t\t});\n\n\t\t});\n//]]>\n\t\t");
        ?>
		<?php 
        if (!self::$backEnd) {
            echo '<div class="toolbar" style="height: 84px;position: relative;">' . vmView::getToolbar($vmView) . '</div>';
        }
        ?>
		<div class="virtuemart-admin-area">
		<?php 
        // Include ALU System
        if (self::$backEnd) {
            ?>

			<div class="menu-wrapper">
				<a href="index.php?option=com_virtuemart&view=virtuemart" ><div class="menu-vmlogo"></div></a>
				<?php 
            AdminUIHelper::showAdminMenu();
            ?>
				<div class="menu-notice">
				<?php 
            echo "VirtueMart " . VmConfig::getInstalledVersion();
            ?>
				</div>

			</div>
		<?php 
        }
        ?>
			<div id="admin-content-wrapper">
			<div class="toggler vmicon-show"></div>
				<div id="admin-content" class="admin-content">
		<?php 
    }
开发者ID:juanmcortez,项目名称:Lectorum,代码行数:74,代码来源:adminui.php

示例4: startAdminArea

    /**
     * Start the administrator area table
     *
     * The entire administrator area with contained in a table which include the admin ribbon menu
     * in the left column and the content in the right column.  This function sets up the table and
     * displayes the admin menu in the left column.
     */
    static function startAdminArea($backEnd = true)
    {
        if (JRequest::getWord('format') == 'pdf') {
            return;
        }
        if (JRequest::getWord('tmpl') == 'component') {
            self::$backEnd = false;
            include 'front/edit.html.php';
        }
        if (self::$vmAdminAreaStarted) {
            return;
        }
        self::$vmAdminAreaStarted = true;
        $front = JURI::root(true) . '/components/com_virtuemart/assets/';
        $admin = JURI::root(true) . '/administrator/components/com_virtuemart/assets/';
        $document = JFactory::getDocument();
        //loading defaut admin CSS
        // $document->addStyleSheet($admin.'css/admin_ui.css');
        // $document->addStyleSheet($admin.'css/admin_menu.css');
        JHtml::_('bootstrap.framework');
        if (JVM_VERSION === 2 || self::$backEnd === false) {
            $document->addStyleSheet($front . 'css/ui/bootstrap.min.css');
            // JHtml::_('bootstrap.loadCss') ;
            JHtml::_('bootstrap.tooltip');
            if (JVM_VERSION === 2) {
                $document->addScript($admin . 'js/j25fixes.js');
            }
            $document->setMetadata('viewport', 'width=device-width, initial-scale=1.0');
            JHtml::_('behavior.framework');
        }
        $document->addStyleSheet($admin . 'css/admin.styles.css');
        $document->addStyleSheet($admin . 'css/toolbar_images.css');
        $document->addStyleSheet($admin . 'css/menu_images.css');
        $document->addStyleSheet($admin . 'css/fileinput.css');
        // $document->addStyleSheet($front.'css/chosen.css');
        // $document->addStyleSheet($front.'css/vtip.css');
        $document->addStyleSheet($front . 'css/jquery.fancybox-1.3.4.css');
        //$document->addStyleSheet($admin.'css/jqtransform.css');
        //loading defaut script
        JHtml::_('behavior.framework');
        // JHtml::_('bootstrap.tooltip');
        $document->addScript($front . 'js/fancybox/jquery.mousewheel-3.0.4.pack.js');
        $document->addScript($front . 'js/fancybox/jquery.easing-1.3.pack.js');
        $document->addScript($front . 'js/fancybox/jquery.fancybox-1.3.4.pack.js');
        $document->addScript($admin . 'js/jquery.coookie.js');
        // $document->addScript($front.'js/chosen.jquery.min.js');
        JHtml::_('formbehavior.chosen', 'select');
        $document->addScript($admin . 'js/vm2admin.js');
        $document->addScript($admin . 'js/fileinput.js');
        //$document->addScript($admin.'js/jquery.jqtransform.js');
        if (JText::_('COM_VIRTUEMART_JS_STRINGS') == 'COM_VIRTUEMART_JS_STRINGS') {
            $vm2string = "editImage: 'edit image',select_all_text: 'select all options',select_some_options_text: 'select some options'";
        } else {
            $vm2string = JText::_('COM_VIRTUEMART_JS_STRINGS');
        }
        //prevent joomlaJtext bug.
        JText::script('JGLOBAL_SELECT_SOME_OPTIONS');
        // old type image var tip_image='".JURI::root(true)."/components/com_virtuemart/assets/js/images/vtip_arrow.png';
        // fix for jsonRequest in front admin
        $baseUrlCurrent = self::$backEnd === false ? '/' : '/administrator/';
        $document->addScriptDeclaration("\n//<![CDATA[\n\t\tvar vmBaseUrl = '" . JURI::root(true) . $baseUrlCurrent . "';\n\t\tvar vm2string ={" . $vm2string . "} ;\n\t\t jQuery( function(\$) {\n\n\t\t\t\$('dl#system-message').hide().slideDown(400);\n\t\t\t\$('.virtuemart-admin-area .toggler').vm2admin('toggle');\n\t\t\t\$('#admin-ui-menu').vm2admin('accordeon');\n\t\t\t// if ( \$('#adminForm > ul').length  ) {\n\t\t\t\t// \$('#adminForm > ul').vm2admin('tabs',virtuemartcookie);\n\t\t\t\t//.find('select').chosen({enable_select_all: true,select_all_text : vm2string.select_all_text,select_some_options_text:vm2string.select_some_options_text}); \n\t\t\t// }\n\n\t\t\t// TIPS IS now from bootstrap  \$('#content-box [title]').vm2admin('tips',tip_image);\n\t\t\tjQuery('.hasTip').tooltip({});\n\n\t\t\t\$('.fb-modal-toggle,.modalbox').fancybox();\n\t\t\t// \$('.modal').modal();\n\t\t\t\$('.reset-value').click( function(e){\n\t\t\t\te.preventDefault();\n\t\t\t\tnone = '';\n\t\t\t\tjQuery(this).parent().find('.ui-autocomplete-input').val(none);\n\t\t\t\t\n\t\t\t});\n\n\t\t});\n//]]>\n\t\t");
        ?>


		<?php 
        // Include ALU System
        if (self::$backEnd) {
            require_once JPATH_VM_ADMINISTRATOR . DS . 'liveupdate' . DS . 'liveupdate.php';
            ?>
		<div class="vm2admin">
		<div class="row-fluid">
		<div class="span12">
			<div class="btn btn-large btn-inverse" id="sidebar-toggle"><i class="icon-chevron-left"></i></div>
			<div class="span3 j-sidebar-container" id="j-sidebar-container">
				<div class="well well-small"><a href="index.php?option=com_virtuemart&view=virtuemart" ><div class="menu-vmlogo"></div></a></div>
				<?php 
            AdminUIHelper::showAdminMenu();
            if ($admin = JFactory::getUser()->authorise('core.admin')) {
                ?>
					<div class="menu-notice hidden-phone">
						<?php 
                echo LiveUpdate::getIcon(array(), 'notice');
                ?>
						<?php 
                echo VmConfig::getInstalledVersion();
                ?>
					</div>
					<?php 
            }
            ?>

			</div>
		<?php 
//.........这里部分代码省略.........
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:101,代码来源:adminui.php


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