本文整理汇总了PHP中vmCommonHTML::hyperLink方法的典型用法代码示例。如果您正苦于以下问题:PHP vmCommonHTML::hyperLink方法的具体用法?PHP vmCommonHTML::hyperLink怎么用?PHP vmCommonHTML::hyperLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vmCommonHTML
的用法示例。
在下文中一共展示了vmCommonHTML::hyperLink方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); ?>
<?php
// User is not allowed to see a price or there is no price
if( !$auth['show_prices'] || !isset($price_info["product_price_id"] )) {
$link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.ask&product_id='.$product_id.'&subject='. urlencode( $VM_LANG->_('PHPSHOP_PRODUCT_CALL').": $product_name") );
echo vmCommonHTML::hyperLink( $link, $VM_LANG->_('PHPSHOP_PRODUCT_CALL') );
}
?>
<?php
if( !empty( $price_info["product_price_id"] )) { ?>
<span class="product-Old-Price">
<?php echo $CURRENCY_DISPLAY->getFullValue($undiscounted_price); ?>
</span>
<?php
}
echo $price_table;
?>
<?php
// DISCOUNT: Show old price!
if(!empty($discount_info["amount"])) {
?>
<span class="productPrice">
<?php echo $CURRENCY_DISPLAY->getFullValue($base_price) ?>
<?php echo $text_including_tax ?>
</span>
<?php
示例2: getGreyboxPopUpLink
function getGreyboxPopUpLink($url, $text, $target = '_blank', $title = '', $attributes = '', $height = 500, $width = 600, $no_js_url = '')
{
vmCommonHTML::loadGreybox();
if ($no_js_url == '') {
$no_js_url = $url;
}
$link = vmCommonHTML::hyperLink($no_js_url, $text, $target, $title, $attributes . ' onclick="try{ if( !parent.GB ) return GB_showCenter(\'' . $title . '\', \'' . $url . '\', ' . $height . ', ' . $width . ');} catch(e) { }"');
return $link;
}
示例3: basename
<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&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&theme=' . basename(VM_THEMEURL) . '&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
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_PRODUCTS_PER_ROW');
?>
</td>
<td>
示例4: while
while ($db->next_record()) {
$listObj->newRow();
// The row number
$listObj->addCell($pageNav->rowNumber($i));
// The product name and link
$link = $_SERVER['PHP_SELF'] . "?page={$modulename}.product_form&limitstart={$limitstart}&keyword=" . urlencode($keyword) . "&product_id=" . $db->f("product_id") . "&product_parent_id=" . $product_parent_id;
if ($vmLayout != 'standard') {
$link .= "&no_menu=1&tmpl=component";
$link = defined('_VM_IS_BACKEND') ? str_replace('index2.php', 'index3.php', str_replace('index.php', 'index3.php', $link)) : str_replace('index.php', 'index2.php', $link);
}
$link = $sess->url($link);
$text = shopMakeHtmlSafe($db->f("product_name"));
if ($vmLayout == 'standard') {
$tmpcell = vmCommonHTML::hyperLink($link, $text, '', 'Edit: ' . $text);
} else {
$tmpcell = vmCommonHTML::hyperLink($link, $text, '', 'Edit: ' . $text, 'onclick="parent.addSimplePanel( \'' . $db->getEscaped($db->f("product_name")) . '\', \'' . $link . '\' );return false;"');
}
$listObj->addCell($tmpcell);
$listObj->addCell($db->f("product_sku"));
$listObj->addCell($db->f("product_in_stock"));
$price = $ps_product->get_price($db->f("product_id"));
if ($price) {
if (!empty($price["item"])) {
$tmp_cell = $price["product_price"];
} else {
$tmp_cell = "none";
}
} else {
$tmp_cell = "none";
}
$listObj->addCell($tmp_cell);