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


PHP vmCommonHTML::hyperLink方法代码示例

本文整理汇总了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&amp;product_id='.$product_id.'&amp;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
开发者ID:rubengarcia0510,项目名称:tienda,代码行数:31,代码来源:price.tpl.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;
 }
开发者ID:noikiy,项目名称:owaspbwa,代码行数:9,代码来源:htmlTools.class.php

示例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&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 
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_PRODUCTS_PER_ROW');
?>
</td>
        <td>
开发者ID:albertobraschi,项目名称:Hab,代码行数:31,代码来源:admin.show_cfg.php

示例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);
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:product.product_inventory.php


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