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


PHP vmJsApi::css方法代码示例

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


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

示例1: getInput

 protected function getInput()
 {
     vmJsApi::addJScript('/plugins/vmpayment/realex_hpp_api/realex_hpp_api/assets/js/admin.js');
     vmJsApi::css('admin', 'plugins/vmpayment/realex_hpp_api/realex_hpp_api/assets/css/');
     $url = "http://www.realexpayments.com/partner-referral?id=tsmart";
     $logo = '<img src="http://www.realexpayments.com/images/logo_realex_large.png" width="150"/>';
     $html = '<p><a target="_blank" href="' . $url . '"  >' . $logo . '</a></p>';
     $html .= '<p><a target="_blank" href="' . $url . '" class="signin-button-link">' . tsmText::_('VMPAYMENT_REALEX_HPP_API_REGISTER') . '</a>';
     $html .= ' <a target="_blank" href="http://docs.tsmart.net/manual/shop-menu/payment-methods/realex-hpp-and-api.html" class="signin-button-link">' . tsmText::_('VMPAYMENT_REALEX_HPP_API_DOCUMENTATION') . '</a></p>';
     return $html;
 }
开发者ID:cuongnd,项目名称:etravelservice,代码行数:11,代码来源:getrealex.php

示例2: getInput

    function getInput()
    {
        $js = '
//<![CDATA[
		jQuery(document).ready(function( $ ) {

		    jQuery("#paybox_getpaybox_link").click( function() {
				 if ( $("#paybox_getpaybox_show_hide").is(":visible") ) {
				  $("#paybox_getpaybox_show_hide").hide("slow");
			        $("#paybox_getpaybox_link").html("' . addslashes(vmText::_('VMPAYMENT_PAYBOX_ALREADY_ACCOUNT')) . '");
				} else {
				 $("#paybox_getpaybox_show_hide").show("slow");
			       $("#paybox_getpaybox_link").html("' . addslashes(vmText::_('VMPAYMENT_PAYBOX_GET_PAYBOX_HIDE')) . '");
			    }
		    });
		});
//]]>
';
        vmJsApi::addJScript("vm.getPaybox", $js);
        vmJsApi::addJScript('/plugins/vmpayment/paybox/paybox/assets/js/admin.js');
        vmJsApi::css('admin', 'plugins/vmpayment/paybox/paybox/assets/css/');
        $cid = vRequest::getvar('cid', NULL, 'array');
        if (is_Array($cid)) {
            $virtuemart_paymentmethod_id = $cid[0];
        } else {
            $virtuemart_paymentmethod_id = $cid;
        }
        $query = "SELECT * FROM `#__virtuemart_paymentmethods` WHERE  virtuemart_paymentmethod_id = '" . $virtuemart_paymentmethod_id . "'";
        $db = JFactory::getDBO();
        $db->setQuery($query);
        $params = $db->loadObject();
        $html = '<img src="http://virtuemart.boutique-paybox.com/PayboxLogo.jpg" width="200px"/><br />';
        if ($params->created_on == $params->modified_on) {
            $id = "paybox_getpaybox_link";
            $html .= '<a href="#" id="' . $id . '">' . vmText::_('VMPAYMENT_PAYBOX_GET_PAYBOX_HIDE') . '</a>';
            $display = '';
            $html .= '<div id="paybox_getpaybox_show_hide" align=""' . $display . ' >';
        } else {
            $id = "paybox_getpaybox_link";
            $html .= '<a href="#" id="' . $id . '">' . vmText::_('VMPAYMENT_PAYBOX_ALREADY_ACCOUNT') . '</a>';
            $display = ' style="display: none;"';
            $html .= '<div id="paybox_getpaybox_show_hide" align=""' . $display . ' >';
        }
        $id = "";
        $lang = $this->getLang();
        if ($lang == 'fr') {
            $url = "http://virtuemart.boutique-paybox.com/PayboxPres.html";
        } else {
            $url = "http://virtuemart.boutique-paybox.com/PayboxPres.html";
        }
        $html .= '<iframe src="' . $url . '" scrolling="yes" style="x-overflow: none;" frameborder="0" height="1400px" width="800px"></iframe>';
        $html .= "</div>";
        return $html;
    }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:54,代码来源:getpaybox.php

示例3: getInput

 protected function getInput()
 {
     JHtml::_('behavior.colorpicker');
     vmJsApi::addJScript('/plugins/vmpayment/paypal/paypal/assets/js/admin.js');
     vmJsApi::css('paypal', 'plugins/vmpayment/paypal/paypal/assets/css/');
     $url = "https://www.paypal.com/us/webapps/mpp/referral/paypal-payments-standard?partner_id=83EP5DJG9FU6L";
     $logo = '<img src="https://www.paypalobjects.com/en_US/i/logo/PayPal_mark_60x38.gif" />';
     $html = '<p><a target="_blank" href="' . $url . '"  >' . $logo . '</a></p>';
     $html .= '<p><a target="_blank" href="' . $url . '" class="signin-button-link">' . vmText::_('VMPAYMENT_PAYPAL_REGISTER') . '</a>';
     $html .= ' <a target="_blank" href="http://docs.virtuemart.net/manual/shop-menu/payment-methods/paypal.html" class="signin-button-link">' . vmText::_('VMPAYMENT_PAYPAL_DOCUMENTATION') . '</a></p>';
     return $html;
 }
开发者ID:cybershocik,项目名称:Darek,代码行数:12,代码来源:getpaypal.php

示例4: getInput

    function getInput()
    {
        vmJsApi::addJScript('/plugins/vmpayment/klarnacheckout/klarnacheckout/assets/js/admin.js');
        vmJsApi::css('klarnacheckout', 'plugins/vmpayment/klarnacheckout/klarnacheckout/assets/css/');
        $jlang = JFactory::getLanguage();
        $lang = $jlang->getTag();
        $langArray = explode("-", $lang);
        $lang = strtolower($langArray[1]);
        $countriesData = KlarnaHandler::countriesData();
        $signLang = "en";
        foreach ($countriesData as $countryData) {
            if ($countryData['country_code'] == $lang) {
                $signLang = $lang;
                break;
            }
        }
        /*
        		$logo = '<a href="https://merchants.klarna.com/signup?locale=' . $signLang . '&partner_id=7829355537eae268a17667c199e7c7662d3391f7" target="_blank">
        	             <img src="' . JURI::root () . VMKLARNAPLUGINWEBROOT . '/klarna/assets/images/logo/get_klarna_now.png" /></a> ';
        */
        $logo = '<img src="' . JURI::root() . VMKLARNAPLUGINWEBROOT . '/klarna/assets/images/logo/get_klarna_now.jpg" style="margin-bottom: 10px"/>';
        $html = '<p><a href="#" id="klarna_getklarna_link" ">' . $logo . '</a></p>';
        // https://merchants.klarna.com/signup?locale=en&partner_id=7829355537eae268a17667c199e7c7662d3391f7&utm_campaign=Platform&utm_medium=Partners&utm_source=Virtuemart
        $html .= '<div id="klarna_getklarna_show_hide" >';
        $url = "https://merchants.klarna.com/signup/?locale=" . $signLang . "&partner_id=7829355537eae268a17667c199e7c7662d3391f7&utm_campaign=Platform&utm_medium=Partners&utm_source=Virtuemart";
        $js = '
		jQuery(document).ready(function( $ ) {
			$("#klarna_getklarna_show_hide").hide();
			jQuery("#klarna_getklarna_link").click( function() {
				 if ( $("#klarna_getklarna_show_hide").is(":visible") ) {
				  $("#klarna_getklarna_show_hide").hide("slow");
			        $("#klarna_getklarna_link").html("' . addslashes($logo) . '");
				} else {
				 $("#klarna_getklarna_show_hide").show("slow");
			       $("#klarna_getklarna_link").html("' . addslashes(vmText::_('VMPAYMENT_KLARNA_GET_KLARNA_HIDE')) . '");
			    }
		    });
		});
';
        vmJsApi::addJScript('vm.getKlarna', $js);
        $html .= '<iframe src="' . $url . '" scrolling="yes" style="x-overflow: none;" frameborder="0" height="600px" width="850px"></iframe>';
        $html .= '</div>';
        $html .= '<p><a target="_blank" href="http://cdn.klarna.com/1.0/shared/content/integration/guide/virtuemart.pdf" class="signin-button-link">' . vmText::_('VMPAYMENT_KLARNA_DOCUMENTATION') . '</a></p>';
        return $html;
    }
开发者ID:cybershocik,项目名称:Darek,代码行数:45,代码来源:getklarnacheckout.php

示例5: jDate

    static function jDate($date = '', $name = "date", $id = NULL, $resetBt = TRUE, $yearRange = '')
    {
        if ($yearRange) {
            $yearRange = 'yearRange: "' . $yearRange . '",';
        }
        if ($date == "0000-00-00 00:00:00") {
            $date = 0;
        }
        if (empty($id)) {
            $id = $name;
        }
        static $jDate;
        $dateFormat = JText::_('COM_VIRTUEMART_DATE_FORMAT_INPUT_J16');
        //="m/d/y"
        $search = array('m', 'd');
        $replace = array('mm', 'dd');
        $jsDateFormat = str_replace($search, $replace, $dateFormat);
        if ($date) {
            if (JVM_VERSION === 1) {
                $search = array('m', 'd', 'y');
                $replace = array('%m', '%d', '%y');
                $dateFormat = str_replace($search, $replace, $dateFormat);
            }
            $formatedDate = JHTML::_('date', $date, $dateFormat);
        } else {
            $formatedDate = JText::_('COM_VIRTUEMART_NEVER');
        }
        $display = '<input class="datepicker-db" id="' . $id . '" type="hidden" name="' . $name . '" value="' . $date . '" />';
        $display .= '<input id="' . $id . '_text" class="datepicker" type="text" value="' . $formatedDate . '" />';
        if ($resetBt) {
            $display .= '<span class="vmicon vmicon-16-logout icon-nofloat js-date-reset"></span>';
        }
        // If exist exit
        if ($jDate) {
            return $display;
        }
        $front = 'components/com_virtuemart/assets/';
        $document = JFactory::getDocument();
        $document->addScriptDeclaration('
			jQuery(document).ready( function($) {
			$(".datepicker").live( "focus", function() {
				$( this ).datepicker({
					changeMonth: true,
					changeYear: true,
					' . $yearRange . '
					dateFormat:"' . $jsDateFormat . '",
					altField: $(this).prev(),
					altFormat: "yy-mm-dd"
				});
			});
			$(".js-date-reset").click(function() {
				$(this).prev("input").val("' . JText::_('COM_VIRTUEMART_NEVER') . '").prev("input").val("0");
			});
		});
		');
        vmJsApi::js('jquery.ui.core', FALSE, '', TRUE);
        vmJsApi::js('jquery.ui.datepicker', FALSE, '', TRUE);
        vmJsApi::css('jquery.ui.all', $front . 'css/ui');
        $lg = JFactory::getLanguage();
        $lang = $lg->getTag();
        $existingLang = array("af", "ar", "ar-DZ", "az", "bg", "bs", "ca", "cs", "da", "de", "el", "en-AU", "en-GB", "en-NZ", "eo", "es", "et", "eu", "fa", "fi", "fo", "fr", "fr-CH", "gl", "he", "hr", "hu", "hy", "id", "is", "it", "ja", "ko", "kz", "lt", "lv", "ml", "ms", "nl", "no", "pl", "pt", "pt-BR", "rm", "ro", "ru", "sk", "sl", "sq", "sr", "sr-SR", "sv", "ta", "th", "tj", "tr", "uk", "vi", "zh-CN", "zh-HK", "zh-TW");
        if (!in_array($lang, $existingLang)) {
            $lang = substr($lang, 0, 2);
        } elseif (!in_array($lang, $existingLang)) {
            $lang = "en-GB";
        }
        vmJsApi::js('jquery.ui.datepicker-' . $lang, $front . 'js/i18n');
        $jDate = TRUE;
        return $display;
    }
开发者ID:romuland,项目名称:khparts,代码行数:70,代码来源:config.php

示例6: 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

示例7: store

    static function store($config, $item)
    {
        // Load the language file of com_virtuemart.
        JFactory::getLanguage()->load('com_virtuemart');
        // Load path constant
        if (!defined('VMPATH_ADMIN')) {
            define('VMPATH_ADMIN', JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart');
        }
        // Load VM configuration if necessary
        if (!class_exists('VmConfig')) {
            require JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php';
            VmConfig::loadConfig();
        }
        // load necessary classes
        if (!class_exists('calculationHelper')) {
            require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'calculationh.php';
        }
        if (!class_exists('CurrencyDisplay')) {
            require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'currencydisplay.php';
        }
        if (!class_exists('VirtueMartModelVendor')) {
            require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'models' . DS . 'vendor.php';
        }
        if (!class_exists('VmImage')) {
            require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'image.php';
        }
        if (!class_exists('shopFunctionsF')) {
            require JPATH_SITE . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'shopfunctionsf.php';
        }
        if (!class_exists('calculationHelper')) {
            require JPATH_COMPONENT_SITE . DS . 'helpers' . DS . 'cart.php';
        }
        if (!class_exists('VirtueMartModelProduct')) {
            JLoader::import('product', JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'models');
        }
        // load the base
        $productModel = new VirtueMartModelProduct();
        $product = $productModel->getProduct($item['id'], 100, true, true, true);
        $currency = CurrencyDisplay::getInstance();
        $price = '<strong>' . $currency->createPriceDiv($config['vm_show_price_type'], '', $product->prices, true) . '</strong>';
        if ($config['vm_add_to_cart'] == 1 && JRequest::getCmd('option') != 'com_virtuemart') {
            vmJsApi::jPrice();
            vmJsApi::addJScript('facebox');
            vmJsApi::css('facebox');
            vmJsApi::writeJS();
        }
        $news_price = '<div>';
        //
        if ($config['vm_show_price_type'] != 'none') {
            if ($config['vm_display_type'] == 'text_price') {
                $news_price .= '<span>' . JText::_('MOD_NEWS_PRO_GK5_PRODUCT_PRICE') . ' ' . $price . '</span>';
            } else {
                $news_price .= '<span>' . $price . '</span>';
            }
        }
        // 'Add to cart' button
        if ($config['vm_add_to_cart'] == 1) {
            if (isset($product->customfields) && count($product->customfields)) {
                foreach ($product->customfields as $field) {
                    if (isset($field->is_cart_attribute) && $field->is_cart_attribute == 1 || isset($field->layout_pos) && $field->layout_pos == 'addtocart') {
                        $product->orderable = 0;
                        break;
                    }
                }
            }
            $code = '<div class="addtocart-area">';
            if ($product->orderable != 0) {
                $code .= '<form method="post" class="product" action="index.php">';
            } else {
                $code .= '<form method="post" class="product-variant" action="' . static::itemLink($item, $config) . '">';
            }
            $code .= '<div class="addtocart-bar">';
            $code .= '<span class="quantity-box" style="display: none"><input type="text" class="quantity-input" name="quantity[]" value="1" /></span>';
            $addtoCartButton = '';
            if ($product->addToCartButton) {
                $addtoCartButton = $product->addToCartButton;
            } else {
                $addtoCartButton = shopFunctionsF::getAddToCartButton($product->orderable);
            }
            $code .= str_replace('addtocart-button-disabled"', 'addtocart-button" type="submit"', $addtoCartButton);
            if ($product->orderable != 0) {
                $code .= '</div>
	                    <input type="hidden" class="pname" value="' . $product->product_name . '"/>
	                    <input type="hidden" name="option" value="com_virtuemart" />
	                    <input type="hidden" name="view" value="cart" />
	                    <noscript><input type="hidden" name="task" value="add" /></noscript>
	                    <input type="hidden" name="virtuemart_product_id[]" value="' . $product->virtuemart_product_id . '" />
	                    <input type="hidden" name="virtuemart_category_id[]" value="' . $product->virtuemart_category_id . '" />
	                </form>';
            } else {
                $code .= '</div></form>';
            }
            $code .= '</div>';
            $news_price .= $code;
        }
        // display discount
        if ($config['vm_show_discount_amount'] == 1) {
            $disc_amount = $currency->priceDisplay($product->prices['discountAmount'], $currency->getId());
            $news_price .= '<small class="nspDiscount">' . JText::_('MOD_NEWS_PRO_GK5_PRODUCT_DISCOUNT_AMOUNT') . $disc_amount . '</small>';
        }
//.........这里部分代码省略.........
开发者ID:Roma48,项目名称:moesto,代码行数:101,代码来源:view.php

示例8: 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

示例9:

 * @version $Id: cart_advertisement.php 7862 2014-04-25 09:26:53Z alatak $
 * @package VirtueMart
 * @subpackage payment
 * @copyright Copyright (C) 2004-Copyright (C) 2004-2016 Virtuemart Team. All rights reserved.   - All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
 *
 * http://virtuemart.net
 */
$css = ".totalInPaymentCurrency {display:none;}\n";
if ($viewData['payment_form_position'] == 'right' or $viewData['payment_form_position'] == 'specific') {
    vmJsApi::css('klarnacheckout', 'plugins/vmpayment/klarnacheckout/assets/css');
}
?>

<?php 
$class = '';
if ($viewData['message']) {
    $class = 'disableSnippet';
}
?>

<div id="kco-payment-method" >
	<div id="kco-shipment-method"><?php 
echo $viewData['message'];
?>
  </div>
开发者ID:virtuemart-fr,项目名称:virtuemart-fr,代码行数:31,代码来源:cart_advertisement.php

示例10: jimport

?>

<?php 
static $jsAWLoaded = false;
$doc = JFactory::getDocument();
vmJsApi::jPrice();
jimport('joomla.environment.browser');
$browser = JBrowser::getInstance();
$isMobile = $browser->isMobile();
if ($isMobile) {
    $doc->setMetaData('viewport', "width=device-width, initial-scale=1, maximum-scale=1");
}
if (!$jsAWLoaded) {
    vmJsApi::addJScript('/plugins/vmpayment/amazon/assets/js/amazon.js');
    if ($viewData['include_amazon_css']) {
        vmJsApi::css('amazon', 'plugins/vmpayment/amazon/assets/css/');
    }
    //vmJsApi::js('plugins/vmpayment/amazon/amazon/assets/js/site', '');
    $js = "\njQuery(document).ready( function(\$) {\n\tamazonPayment.initPayment('" . $viewData['sellerId'] . "','" . $viewData['amazonOrderReferenceId'] . "', '" . $viewData['addressbook_designWidth'] . "', '" . $viewData['addressbook_designHeight'] . "', '" . $isMobile . "', '" . $viewData['virtuemart_paymentmethod_id'] . "', '" . $viewData['readOnlyWidgets'] . "');\n});\n";
    vmJsApi::addJScript('vm.initAmazonPayment', $js);
    if ($viewData['renderAddressBook']) {
        $js = "\njQuery(document).ready( function(\$) {\n\tamazonPayment.showAmazonAddress();\n});\n";
        vmJsApi::addJScript('vm.showAmazonAddress', $js);
    }
    if ($viewData['renderWalletBook']) {
        $js = "\njQuery(document).ready( function(\$) {\n\tamazonPayment.showAmazonWallet();\n});\n";
        vmJsApi::addJScript('vm.showAmazonWallet', $js);
    }
    $js = "\njQuery(document).ready( function(\$) {\n\$('#leaveAmazonCheckout').click(function(){\n\tamazonPayment.leaveAmazonCheckout();\n\t});\n});\n";
    vmJsApi::addJScript('vm.leaveAmazonCheckout', $js);
    if ($viewData['captureNow']) {
开发者ID:naka211,项目名称:studiekorrektur,代码行数:31,代码来源:addressbook_wallet.php

示例11: datePicker

    function datePicker($jsDateFormat, $name, $id, $date = '', $placeholder = '')
    {
        $display = '<input class="datepicker-db" id="' . $id . '" type="hidden" name="' . $name . '" value="' . $date . '" />';
        $formatedDate = $date;
        //JFactory::getDate($date);
        $display .= '<input id="' . $id . '_text" class="datepicker" type="text" value="' . $formatedDate . '" placeholder="' . $placeholder . '" />';
        // If exist exit
        $front = 'components/com_virtuemart/assets/';
        $document = JFactory::getDocument();
        $document->addScriptDeclaration('
//<![CDATA[
			jQuery(document).ready( function($) {
			$("#' . $id . '_text").live( "focus", function() {
				$( this ).datepicker({
					changeMonth: true,
					changeYear: true,
					dateFormat:"' . $jsDateFormat . '",
					altField: $(this).prev(),
					altFormat: "yy-mm-dd"
				});
			});
			$(".js-date-reset").click(function() {
				$(this).prev("input").val("' . $placeholder . '").prev("input").val("0");
			});
		});
//]]>
		');
        vmJsApi::js('jquery.ui.core', FALSE, '', TRUE);
        vmJsApi::js('jquery.ui.datepicker', FALSE, '', TRUE);
        vmJsApi::css('jquery.ui.all', $front . 'css/ui');
        $lg = JFactory::getLanguage();
        $lang = $lg->getTag();
        $existingLang = array("af", "ar", "ar-DZ", "az", "bg", "bs", "ca", "cs", "da", "de", "el", "en-AU", "en-GB", "en-NZ", "eo", "es", "et", "eu", "fa", "fi", "fo", "fr", "fr-CH", "gl", "he", "hr", "hu", "hy", "id", "is", "it", "ja", "ko", "kz", "lt", "lv", "ml", "ms", "nl", "no", "pl", "pt", "pt-BR", "rm", "ro", "ru", "sk", "sl", "sq", "sr", "sr-SR", "sv", "ta", "th", "tj", "tr", "uk", "vi", "zh-CN", "zh-HK", "zh-TW");
        if (!in_array($lang, $existingLang)) {
            $lang = substr($lang, 0, 2);
        } elseif (!in_array($lang, $existingLang)) {
            $lang = "en-GB";
        }
        vmJsApi::js('jquery.ui.datepicker-' . $lang, $front . 'js/i18n');
        return $display;
    }
开发者ID:aldegtyarev,项目名称:stelsvelo,代码行数:41,代码来源:orders.php

示例12: function

			ext = href.substring(href.length-4),
			isImg ;
		ext = ext.toLowerCase();
		isImg = (ext ==".png" || ext ==".jpg" || ext =="jpeg" || ext ==".gif");
		if (isImg) {
			main.find("img").attr("src",this.href ).attr("alt",this.title );
			main.find("a").attr("href",this.href ).attr("alt",this.title );
			$(this).parent().addClass("active").siblings().removeClass("active");
			return false;
		}
	}); 

';
if ($isSlide) {
    vmJsApi::js('jquery.lightSlider.min');
    vmJsApi::css('lightSlider');
    $imageJS .= '
		var $slideBar = $(".additional-images .row-fluid");
		var lightSlider =
			$slideBar.lightSlider({
				  minSlide:' . $imgagesPerRow . ',
				  maxSlide:' . $imgagesPerRow . ',
				  slideMove:' . $imgagesPerRow . ',
				  pager:false,
				  gallery:true,
				  prevHtml:\'<span class="icon-previous"></span>\',
				  nextHtml:\'<span class="icon-next"></span>\',
				  onAfterSlide: function() {
					$slideBar.children(".active").children().trigger("click");
					// console.log($slideBar.children(".active"),this);
				  }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:31,代码来源:default_images.php

示例13:

 * @package VirtueMart
 * @subpackage payment
 * @copyright Copyright (C) 2004-Copyright (C) 2004-2014 Virtuemart Team. All rights reserved.   - All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
 *
 * http://virtuemart.net
 */

$css =".totalInPaymentCurrency {display:none;}\n";

vmJsApi::css($css);
/*
$js = '
	jQuery(document).ready(function( $ ) {
		      $("#checkoutForm").hide();
	});
	';
*/
if ($viewData ['hide_BTST']) {
	$js .= '
	jQuery(document).ready(function( $ ) {
		      $(".billto-shipto").hide();
		      $("#com-form-login").hide();

	});
	';
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:31,代码来源:cart_advertisement.php

示例14: cssSite

 /**
  * ADD some CSS if needed
  * Prevent duplicate load of CSS stylesheet
  * @author Max Milbers
  */
 static function cssSite()
 {
     if (!tsmConfig::get('css', TRUE)) {
         return FALSE;
     }
     static $cssSite;
     if ($cssSite) {
         return;
     }
     // Get the Page direction for right to left support
     $document = JFactory::getDocument();
     $direction = $document->getDirection();
     $cssFile = 'vmsite-' . $direction;
     if (!class_exists('VmTemplate')) {
         require VMPATH_SITE . DS . 'helpers' . DS . 'vmtemplate.php';
     }
     $vmStyle = VmTemplate::loadVmTemplateStyle();
     $template = $vmStyle['template'];
     if ($template) {
         //Fallback for old templates
         $path = 'templates' . DS . $template . DS . 'css' . DS . $cssFile . '.css';
         if (file_exists($path)) {
             // If exist exit
             vmJsApi::css($cssFile);
         } else {
             $cssFile = 'vm-' . $direction . '-common';
             vmJsApi::css($cssFile);
             $cssFile = 'vm-' . $direction . '-site';
             vmJsApi::css($cssFile);
             $cssFile = 'vm-' . $direction . '-reviews';
             vmJsApi::css($cssFile);
         }
         $cssSite = TRUE;
     }
     return TRUE;
 }
开发者ID:cuongnd,项目名称:etravelservice,代码行数:41,代码来源:avmjsapi.php

示例15: jQuery

}
VmConfig::loadConfig();
if (method_exists('vmJsApi', 'js')) {
    $app = JFactory::getApplication();
    $jq = $app->get('jquery');
    if (empty($jq) && !OPCJ3) {
        vmJsApi::js('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.6.4', '', TRUE);
        vmJsApi::js('jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16', '', TRUE);
    }
    if (OPCJ3) {
        JHtml::_('jquery.framework');
        JHtml::_('jquery.ui');
        JHtml::_('formbehavior.chosen', 'select');
    } else {
        vmJsApi::js('chosen.jquery.min');
        vmJsApi::css('chosen');
    }
    $document->addScriptDeclaration('
//<![CDATA[
		var vm2string ={' . $vm2string . '} ;
		 jQuery( function($) {
			$(".vm-chzn-select").chosen({enable_select_all: true,select_all_text : vm2string.select_all_text,select_some_options_text:vm2string.select_some_options_text});
		});
//]]>
				');
} else {
    vmJsApi::jQuery();
}
$base = JURI::base();
$jbase = str_replace('/administrator', '', $base);
if (substr($jbase, -1) !== '/') {
开发者ID:aldegtyarev,项目名称:stelsvelo,代码行数:31,代码来源:default_header.php


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