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


PHP vmCommonHTML::hyperlink方法代码示例

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


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

示例1: basename

echo $VM_LANG->_('VM_ADMIN_CFG_LAYOUT');
?>
</legend>
<table class="adminlist">
    <tr>
        <td class="labelcell"><?php 
echo $VM_LANG->_('VM_SELECT_THEME');
?>
</td>
        <td>
        <?php 
echo ps_html::list_themes('conf_THEME', basename(VM_THEMEURL));
if ($vmLayout == 'standard') {
    $link = $sess->url($_SERVER['PHP_SELF'] . '?page=admin.theme_config_form&amp;theme=' . basename(VM_THEMEURL));
    $text = $VM_LANG->_('PHPSHOP_CONFIG');
    echo vmCommonHTML::hyperlink($link, $VM_LANG->_('PHPSHOP_CONFIG'));
} else {
    $link = $sess->url($_SERVER['PHP_SELF'] . '?page=admin.theme_config_form&amp;theme=' . basename(VM_THEMEURL) . '&amp;no_menu=1');
    $text = $VM_LANG->_('PHPSHOP_CONFIG');
    echo vmCommonHTML::hyperLink($link, $text, '', 'Edit: ' . $text, 'onclick="parent.addSimplePanel( \'' . $db->getEscaped($text) . '\', \'' . $link . '\' );return false;"');
}
?>
        </td>
        <td><?php 
echo vmToolTip($VM_LANG->_('VM_SELECT_THEME_TIP'));
?>
</td>
    </tr> 
  
    <tr>
        <td class="labelcell"><?php 
开发者ID:albertobraschi,项目名称:Hab,代码行数:31,代码来源:admin.show_cfg.php

示例2:

$q = "SELECT published FROM #__modules WHERE module='mod_virtuemart_cart'";
$db->query($q);
if (USE_AS_CATALOGUE != '1' && $show_minicart == 'yes' && !$db->f("published")) {
    $_SESSION['vmMiniCart'] = true;
    ?>
    <tr>
        <td colspan="2">
        	<?php 
    $class_att = 'class="' . $class_mainlevel . '"';
    $href = $sess->url($mm_action_url . "index.php?page=shop.cart");
    $href2 = $sess->url($mm_action_url . "index2.php?page=shop.cart", true);
    $text = $VM_LANG->_('PHPSHOP_CART_SHOW');
    if ($useGreyBox_cartlink) {
        echo vmCommonHTML::getGreyboxPopUpLink($href2, $text, '', $text, $class_att, 500, 600, $href);
    } else {
        echo vmCommonHTML::hyperlink($href, $text, '', $text, $class_att);
    }
    ?>
		</td>
    </tr>
    <tr>
        <td colspan="2" class="vmCartModule">
        	<?php 
    //				^ Do not change this class name!! It is used to update this cell after a cart action
    // This is the 'mini cart' file
    include PAGEPATH . 'shop.basket_short.php';
    ?>
        </td>
    </tr>
        <?php 
} else {
开发者ID:dalinhuang,项目名称:joomla-goods-china,代码行数:31,代码来源:mod_virtuemart.php

示例3: vmToolTip

}
// Display clear cart
$delete_cart = '';
if (@$_SESSION['vmEnableEmptyCart'] && !@$_SESSION['vmMiniCart']) {
    // Output the empty cart button
    //echo vmCommonHTML::scriptTag( $mosConfig_live_site.'/components/'.$option.'/js/wz_tooltip.js' );
    $delete_cart = "<a href=\"" . $_SERVER['SCRIPT_NAME'] . "?page=shop.cart_reset&amp;option=com_virtuemart&amp;option2={$option}&amp;product_id={$prodid}&amp;category_id={$catid}&amp;return={$page}&amp;flypage={$flypage}&amp;Itemid={$Itemid}\" title=\"" . $VM_LANG->_('PHPSHOP_EMPTY_YOUR_CART') . " \">\r\n\t\t\t\t\t<img src=\"" . $mosConfig_live_site . "/images/cancel_f2.png\" width=\"12\" border=\"0\" style=\"float: right;vertical-align: middle;\" alt=\"" . $VM_LANG->_('PHPSHOP_EMPTY_YOUR_CART') . " \" />\r\n      </a>";
    $html1 = vmToolTip($VM_LANG->_('VM_EMPTY_YOUR_CART_TIP'), $VM_LANG->_('PHPSHOP_EMPTY_YOUR_CART'), '', '', $delete_cart, true);
    $delete_cart = $html1;
}
$href = $sess->url($mm_action_url . "index.php?page=shop.cart");
$href2 = $sess->url($mm_action_url . "index2.php?page=shop.cart", true);
$text = $VM_LANG->_('PHPSHOP_CART_SHOW');
if (@$_SESSION['vmUseGreyBox']) {
    $show_cart = vmCommonHTML::getGreyboxPopUpLink($href2, $text, '', $text, '', 500, 600, $href);
} else {
    $show_cart = vmCommonHTML::hyperlink($href, $text, '', $text, '');
}
$tpl->set('minicart', $minicart);
$tpl->set('empty_cart', $empty_cart);
$tpl->set('delete_cart', $delete_cart);
$tpl->set('vmMinicart', @$_SESSION['vmMiniCart']);
$tpl->set('total_products', @$total_products);
$tpl->set('total_price', @$total_price);
$tpl->set('show_cart', @$show_cart);
$saved_cart_text = "";
if ($saved_cart['idx'] != 0) {
    $saved_cart_text = "<br style=\"clear:both;\"/><a href=\"" . str_replace("Itemid=26", "Itemid=34", $sess->url($mm_action_url . "index.php?page=shop.savedcart")) . "\" class=\"savedCart\">" . $VM_LANG->_('VM_RECOVER_CART') . "</a>";
}
$tpl->set('saved_cart', $saved_cart_text);
echo $tpl->fetch('common/minicart.tpl.php');
开发者ID:albertobraschi,项目名称:Hab,代码行数:31,代码来源:shop.basket_short.php


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