當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。