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


PHP vmCommonHTML类代码示例

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


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

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

示例2: vmPageNav

$db->query($count);
$db->next_record();
$num_rows = $db->f("num_rows");
// Create the Page Navigation
$pageNav = new vmPageNav($num_rows, $limitstart, $limit);
// Create the List Object with page navigation
$listObj = new listFactory($pageNav);
// print out the search field and a list heading
$listObj->writeSearchHeader($VM_LANG->_('PHPSHOP_ORDER_STATUS_LIST_MNU'), "", $modulename, "order_status_list");
// start the list table
$listObj->startTable();
// these are the columns in the table
$columns = array("#" => "width=\"20\"", "<input type=\"checkbox\" name=\"toggle\" value=\"\" onclick=\"checkAll(" . $num_rows . ")\" />" => "width=\"20\"", $VM_LANG->_('PHPSHOP_ORDER_STATUS_LIST_NAME') => '', $VM_LANG->_('PHPSHOP_ORDER_STATUS_LIST_CODE') => '', $VM_LANG->_('E_REMOVE') => "width=\"5%\"");
$listObj->writeTableHeader($columns);
$db->query($list);
$i = 0;
while ($db->next_record()) {
    $listObj->newRow();
    // The row number
    $listObj->addCell($pageNav->rowNumber($i));
    // The Checkbox
    $listObj->addCell(vmCommonHTML::idBox($i, $db->f("order_status_id"), false, "order_status_id"));
    $tmp_cell = "<a href=\"" . $sess->url($_SERVER['PHP_SELF'] . "?page={$modulename}.order_status_form&limitstart={$limitstart}&keyword=" . urlencode($keyword) . "&order_status_id=" . $db->f("order_status_id")) . "\">" . $db->f("order_status_name") . "</a>";
    $listObj->addCell($tmp_cell);
    $listObj->addCell($db->f("order_status_code"));
    $listObj->addCell($ps_html->deleteButton("order_status_id", $db->f("order_status_id"), "OrderStatusDelete", $keyword, $limitstart));
    $i++;
}
$listObj->writeTable();
$listObj->endTable();
$listObj->writeFooter($keyword);
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:order.order_status_list.php

示例3: updateFunc

$db->sp("function_description");
?>
</textarea>
      </td>
    </tr>
   
  </table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('function_id', $function_id);
$formObj->hiddenField('module_id', $module_id);
$funcname = !empty($function_id) ? "functionUpdate" : "functionAdd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, 'admin.function_list', $option);
$script = 'function updateFunc(){
	var el = $("function_class" );
	new Ajax( "' . $_SERVER['PHP_SELF'] . '?" + $(document.adminForm).toQueryString() + "&func=&page=admin.ajax_tools&task=get_class_methods&class=" + el.options[el.selectedIndex].value + "&function=" + document.adminForm.function_method.value,
				{ 
				method: "get",
				update: $("function_method_container")
				}).request();

		return false;
	}
	
	$("function_class").onchange = function() { updateFunc() };
	updateFunc();
';
echo vmCommonHTML::scriptTag('', $script);
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:30,代码来源:admin.function_form.php

示例4: array

// these are the columns in the table
$columns = array("#" => "width=\"20\"", "<input type=\"checkbox\" name=\"toggle\" value=\"\" onclick=\"checkAll(" . $num_rows . ")\" />" => "width=\"20\"", $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_FORM_NAME') => 'width="25%"', $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_FORM_DESCRIPTION') => 'width="30%"', $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_FORM_PARAMETERS') => 'width="15%"', $VM_LANG->_('PHPSHOP_PRODUCTS_LBL') => 'width="15%"', $VM_LANG->_('PHPSHOP_PRODUCT_LIST_PUBLISH') => 'width="5%"', $VM_LANG->_('PHPSHOP_MODULE_LIST_ORDER') => 'width="5%"', $VM_LANG->_('E_REMOVE') => "width=\"5%\"");
$listObj->writeTableHeader($columns);
$i = 0;
while ($db->next_record()) {
    $product_count = $ps_product_type->product_count($db->f("product_type_id"));
    $parameter_count = $ps_product_type->parameter_count($db->f("product_type_id"));
    $listObj->newRow();
    // The row number
    $listObj->addCell($pageNav->rowNumber($i));
    // The Checkbox
    $listObj->addCell(vmCommonHTML::idBox($i, $db->f("product_type_id"), false, "product_type_id"));
    $tmp_cell = "<a href=\"" . $_SERVER['PHP_SELF'] . "?option=com_virtuemart&page=product.product_type_form&product_type_id=" . $db->f("product_type_id") . "\">" . $db->f("product_type_name") . "</a>";
    $listObj->addCell($tmp_cell);
    $listObj->addCell($db->f("product_type_description"));
    $tmp_cell = $parameter_count . " " . $VM_LANG->_('PHPSHOP_PARAMETERS_LBL') . " <a href=\"" . $_SERVER['PHP_SELF'] . "?option=com_virtuemart&page=product.product_type_parameter_list&product_type_id=" . $db->f("product_type_id") . "\">[ " . $VM_LANG->_('PHPSHOP_SHOW') . " ]</a>";
    $listObj->addCell($tmp_cell);
    $tmp_cell = $product_count . " " . $VM_LANG->_('PHPSHOP_PRODUCTS_LBL') . "&nbsp;<a href=\"" . $_SERVER['PHP_SELF'] . "?option=com_virtuemart&page=product.product_list&product_type_id=" . $db->f("product_type_id") . "\">[ " . $VM_LANG->_('PHPSHOP_SHOW') . " ]</a>";
    $listObj->addCell($tmp_cell);
    //$listObj->addCell( $db->f("list_order"));
    $listObj->addCell(vmCommonHTML::getYesNoIcon($db->f("product_type_publish")));
    //      echo "<a href=\"javascript: void(0);\" onClick=\"return listItemTask('cb$i','orderdown')\">";
    //      echo "Down</a>";
    $tmp_cell = "<div align=\"center\">" . $pageNav->orderUpIcon($i, $i > 0, "orderup", $VM_LANG->_('CMN_ORDER_UP'), $page, "ProductTypeReorder") . "\n&nbsp;" . $pageNav->orderDownIcon($i, $db->num_rows(), $i - 1 <= $db->num_rows(), "orderdown", $VM_LANG->_('CMN_ORDER_DOWN'), $page, "ProductTypeReorder") . "</div>";
    $listObj->addCell($tmp_cell);
    $listObj->addCell($ps_html->deleteButton("product_type_id", $db->f("product_type_id"), "ProductTypeDelete", $keyword, $limitstart));
    $i++;
}
$listObj->writeTable();
$listObj->endTable();
$listObj->writeFooter($keyword);
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:product.product_type_list.php

示例5: sprintf

		$text = $VM_LANG->_('VM_LEGALINFO_SHORTTEXT');
	} else {
		$text = VM_ONCHECKOUT_LEGALINFO_SHORTTEXT;
	}
	?>
    <div class="legalinfo"><?php
    	echo sprintf( $text, $link, $jslink );
    	?>
    </div><br />
    <?php
	}
    ?>
<div>
<input type="submit" onclick="return( submit_order( this.form ) );" class="button" name="formSubmit" value="<?php echo $VM_LANG->_('PHPSHOP_ORDER_CONFIRM_MNU') ?>" />
</div>
<?php
if(  PSHOP_AGREE_TO_TOS_ONORDER == '1' ) {
	echo vmCommonHTML::scriptTag('', "function submit_order( form ) {
    if (!form.agreed.checked) {
        alert( \"". $VM_LANG->_('PHPSHOP_AGREE_TO_TOS',false) ."\" );
        return false;
    }
    else {
        return true;
    }
}" );
} else {
	echo vmCommonHTML::scriptTag('', "function submit_order( form ) { return true;  }" );
}
?>
开发者ID:rubengarcia0510,项目名称:tienda,代码行数:30,代码来源:get_final_confirmation.tpl.php

示例6:

<?php 
}
?>

<?php 
include PAGEPATH . 'checkout_register_form.php';
?>

<?php 
if ($show_login) {
    ?>
   </div>
   <br />
   
<?php 
    echo vmCommonHTML::scriptTag('', 'Window.onDomReady(function() {
	
	// get accordion elements
	myStretch = $$( \'.toggler\' );
	myStretcher = $$( \'.stretcher\' );
	
	// Create the accordion
	myAccordion = new Fx.Accordion(myStretch, myStretcher, 
		{
			/*fixedHeight: 125,*/
			opacity : true,
			display: ' . $open_to_stretcher . '
		});

});');
}
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:login_registration.tpl.php

示例7: image_tag

 /**
  * Returns the img tag for the given product image
  *
  * @param string $image The name of the imahe OR the full URL to the image
  * @param string $args Additional attributes for the img tag
  * @param int $resize 
  * (1 = resize the image by using height and width attributes, 
  * 0 = do not resize the image)
  * @param string $path_appendix The path to be appended to IMAGEURL / IMAGEPATH
  * @return The HTML code of the img tag
  */
 function image_tag($image, $args = "", $resize = 1, $path_appendix = 'product', $thumb_width = 0, $thumb_height = 0)
 {
     global $mosConfig_live_site, $mosConfig_absolute_path;
     require_once CLASSPATH . 'imageTools.class.php';
     $border = "";
     if (strpos($args, "border=") === false) {
         $border = 'border="0"';
     }
     $height = $width = 0;
     if ($image != "") {
         // URL
         if (substr($image, 0, 4) == "http") {
             $url = $image;
         } else {
             if (PSHOP_IMG_RESIZE_ENABLE == '1' && $resize == 1) {
                 $url = $mosConfig_live_site . "/components/com_virtuemart/show_image_in_imgtag.php?filename=" . urlencode($image) . "&amp;newxsize=" . PSHOP_IMG_WIDTH . "&amp;newysize=" . PSHOP_IMG_HEIGHT . "&amp;fileout=";
                 if (!strpos($args, "height=")) {
                     $arr = @getimagesize(vmImageTools::getresizedfilename($image, $path_appendix, '', $thumb_height, $thumb_width));
                     $width = $arr[0];
                     $height = $arr[1];
                 }
             } else {
                 $url = IMAGEURL . $path_appendix . '/' . $image;
                 $using_resized_image = false;
                 if ($resize) {
                     $image = vmImageTools::getresizedfilename($image, $path_appendix, '', $thumb_height, $thumb_width);
                     if (file_exists($image)) {
                         $using_resized_image = true;
                     }
                 }
                 if ($resize && !$using_resized_image) {
                     if ($height < $width) {
                         $width = @round($width / ($height / PSHOP_IMG_HEIGHT));
                         $height = PSHOP_IMG_HEIGHT;
                     } else {
                         $height = @round($height / ($width / PSHOP_IMG_WIDTH));
                         $width = PSHOP_IMG_WIDTH;
                     }
                 }
                 if (file_exists($image)) {
                     $url = str_replace($mosConfig_absolute_path, $mosConfig_live_site, $image);
                 } elseif (file_exists($mosConfig_absolute_path . '/' . $image)) {
                     $url = $mosConfig_live_site . '/' . $image;
                 }
                 $url = str_replace('//', '/', $url);
                 $url = str_replace(':/', '://', $url);
                 if (!strpos($args, "height=")) {
                     $f = str_replace(IMAGEURL, IMAGEPATH, $url);
                     if (file_exists($f)) {
                         $arr = getimagesize($f);
                         $width = $arr[0];
                         $height = $arr[1];
                     } else {
                         $width = 100;
                         $height = 100;
                     }
                 }
             }
             $url = str_replace(basename($url), $GLOBALS['VM_LANG']->convert(basename($url)), $url);
         }
     } else {
         $url = VM_THEMEURL . 'images/' . NO_IMAGE;
     }
     return vmCommonHTML::imageTag($url, '', '', $height, $width, '', '', $args . ' ' . $border);
 }
开发者ID:noikiy,项目名称:owaspbwa,代码行数:76,代码来源:ps_product.php

示例8:

		  <?php
	}

	// Delivery time!
	// Ships in 24hrs, 48hrs, ....
	if( $product_availability ) { ?>
		<span style="font-weight:bold;">
			<?php echo $VM_LANG->_('PHPSHOP_DELIVERY_TIME') ?>: 
		</span>
		<br /><br />
		<?php
		if( CHECK_STOCK == '1' && !$product_in_stock ) {
			$product_availability = 'not_available.gif';
		}
		if( is_file( VM_THEMEPATH."images/availability/".$product_availability)) {
			echo vmCommonHTML::imageTag( VM_THEMEURL."images/availability/".$product_availability, $product_availability );
		}
		else {
			echo $product_availability;
		}
	}
	$avail = ob_get_contents();
	ob_end_clean();
	if( !empty( $avail ) ) { 
		?>
		<div class="availabilityHeader"><?php echo $VM_LANG->_('PHPSHOP_AVAILABILITY') ?></div>
		<br />
		<?php
		echo $avail;
	}
?>
开发者ID:rubengarcia0510,项目名称:tienda,代码行数:31,代码来源:availability.tpl.php

示例9: array

                $dbf->query('SELECT attribute_id FROM `#__{vm}_product_attribute` WHERE attribute_name=\'download\' AND attribute_value=\'' . $db->f('file_title') . '\' AND product_id=\'' . $product_id . '\'');
                $dbf->next_record();
                $attribute_id = $dbf->f('attribute_id');
                vmCommonHTML::setSelectedArray($selected_type, 3, 'selected', array(0, 1, 2, 4));
            } else {
                $index = $db->f("file_is_image") == 1 ? 4 : 5;
                $disableArr = $db->f("file_is_image") == 1 ? array(3, 5) : array(0, 1, 2, 4);
                vmCommonHTML::setSelectedArray($selected_type, $index, 'selected', $disableArr);
            }
        }
    } else {
        vmCommonHTML::setSelectedArray($selected_type, 0, 'selected', array(3, 5));
    }
} else {
    if ($hasProductImages) {
        vmCommonHTML::setSelectedArray($selected_type, 4, 'selected', array(0, 1, 2));
    }
    $isProductDownload = false;
    $default["file_title"] = $db->f('product_name');
    $default["file_published"] = "1";
    unset($db->record);
}
//First create the object and let it print a form heading
$formObj = new formFactory($title);
//Then Start the form
$formObj->startForm('adminForm', 'enctype="multipart/form-data"');
?>
<br />
  <table class="adminform">
  <?php 
if ($file_id) {
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:product.file_form.php

示例10:

            $tmp_cell = $VM_LANG->_('PHPSHOP_PAYMENT_FORM_USE_PP');
            break;
        case "N":
            $tmp_cell = $VM_LANG->_('PHPSHOP_PAYMENT_FORM_AO');
            break;
        case "B":
            $tmp_cell = $VM_LANG->_('PHPSHOP_PAYMENT_FORM_BANK_DEBIT');
            break;
        case "P":
            $tmp_cell = $VM_LANG->_('VM_PAYMENT_FORM_FORMBASED');
            break;
        default:
            $tmp_cell = $VM_LANG->_('PHPSHOP_PAYMENT_FORM_CC');
            break;
    }
    $listObj->addCell($tmp_cell);
    $tmpcell = "<a href=\"" . $sess->url($_SERVER['PHP_SELF'] . "?page={$page}&payment_method_id=" . $db->f("payment_method_id") . "&func=changePublishState");
    if ($db->f("payment_enabled") == 'N') {
        $tmpcell .= "&task=publish\">";
    } else {
        $tmpcell .= "&task=unpublish\">";
    }
    $tmpcell .= vmCommonHTML::getYesNoIcon($db->f("payment_enabled"), $VM_LANG->_('CMN_PUBLISH'), $VM_LANG->_('CMN_UNPUBLISH'));
    $tmpcell .= "</a>";
    $listObj->addCell($tmpcell);
    $listObj->addCell($ps_html->deleteButton("payment_method_id", $db->f("payment_method_id"), "paymentMethodDelete", $keyword, $limitstart));
    $i++;
}
$listObj->writeTable();
$listObj->endTable();
$listObj->writeFooter($keyword);
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:store.payment_method_list.php

示例11: vmPageNav

$db->query($count);
$db->next_record();
$num_rows = $db->f("num_rows");
// Create the Page Navigation
$pageNav = new vmPageNav($num_rows, $limitstart, $limit);
// Create the List Object with page navigation
$listObj = new listFactory($pageNav);
// print out the search field and a list heading
$listObj->writeSearchHeader($VM_LANG->_('PHPSHOP_CREDITCARD_LIST_LBL'), VM_THEMEURL . 'images/administration/dashboard/credit.png', $modulename, "creditcard_list");
// start the list table
$listObj->startTable();
// these are the columns in the table
$columns = array("#" => "width=\"20\"", "<input type=\"checkbox\" name=\"toggle\" value=\"\" onclick=\"checkAll(" . $num_rows . ")\" />" => "width=\"20\"", $VM_LANG->_('PHPSHOP_CREDITCARD_NAME') => '', $VM_LANG->_('PHPSHOP_CREDITCARD_CODE') => '', $VM_LANG->_('E_REMOVE') => "width=\"5%\"");
$listObj->writeTableHeader($columns);
$db->query($list);
$i = 0;
while ($db->next_record()) {
    $listObj->newRow();
    // The row number
    $listObj->addCell($pageNav->rowNumber($i));
    // The Checkbox
    $listObj->addCell(vmCommonHTML::idBox($i, $db->f("creditcard_id"), false, "creditcard_id"));
    $tmp_cell = '<a href="' . $sess->url($_SERVER['PHP_SELF'] . "?page=store.creditcard_form&limitstart={$limitstart}&keyword=" . urlencode($keyword) . "&creditcard_id=" . $db->f("creditcard_id")) . '">' . $db->f("creditcard_name") . "</a>";
    $listObj->addCell($tmp_cell);
    $listObj->addCell($db->f("creditcard_code"));
    $listObj->addCell($ps_html->deleteButton("creditcard_id", $db->f("creditcard_id"), "creditcardDelete", $keyword, $limitstart));
    $i++;
}
$listObj->writeTable();
$listObj->endTable();
$listObj->writeFooter($keyword);
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:store.creditcard_list.php

示例12:

	<?php 
    if (!empty($item->link)) {
        ?>
	<a class="pathway" href="<?php 
        echo $item->link;
        ?>
"><?php 
        echo $item->name;
        ?>
</a>
	<?php 
    } else {
        ?>
	<?php 
        echo $item->name;
        ?>
	<?php 
    }
    ?>

<?php 
    if ($catcount < $count || $item->link != '') {
        // This prints the separator image (uses the one from the template if available!)
        // Cat1 * Cat2 * ...
        echo vmCommonHTML::pathway_separator();
    }
    $catcount++;
}
if (isset($return_link) && !empty($return_link)) {
    echo $return_link;
}
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:pathway.tpl.php

示例13: mm_showMyFileName

* @copyright Copyright (C) 2004-2008 soeren - 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
*/
mm_showMyFileName(__FILE__);
/*********************************************************
************* PRODUCT & CATEGORY TREE ******************************
*/
$vmFoldersMenu = new vmFoldersMenu();
vmCommonHTML::loadTigraTree();
$menu_htmlcode = "<br /><div style=\"text-align:left;margin-left:200px;\">\r\n<script type=\"text/javascript\"><!--\r\nvar TREE_ITEMS = [\r\n['{" . $VM_LANG->_('PHPSHOP_STORE_MOD') . "}', '{$_SERVER['PHP_SELF']}',\r\n";
$vmFoldersMenu->traverse_tree_down($menu_htmlcode);
$menu_htmlcode .= "]];\r\nnew tree(TREE_ITEMS, TREE_TPL);\r\n--></script>\r\n</div>";
echo $menu_htmlcode;
class vmFoldersMenu
{
    /***************************************************
     * function traverse_tree_down
     */
    function traverse_tree_down(&$mymenu_content, $category_id = '0', $level = '0')
    {
        static $ibg = -1;
        global $db, $module, $mosConfig_live_site;
        $level++;
        $query = "SELECT category_name as cname, category_id as cid, category_child_id as ccid " . "FROM #__{vm}_category as a, #__{vm}_category_xref as b " . "WHERE a.category_publish='Y' AND " . " b.category_parent_id='{$category_id}' AND a.category_id=b.category_child_id " . "ORDER BY category_parent_id, list_order, category_name ASC";
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:product.folders.php

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

示例15: empty

 // Here is the most important part of the whole Shop:
 // LOADING the requested page for displaying it to the customer.
 // I have wrapped it with a function, because it becomes
 // cacheable that way.
 // It's just an "include" statement which loads the page
 $vmDoCaching = ($page == "shop.browse" || $page == "shop.product_details") && (empty($keyword) && empty($keyword1) && empty($keyword2));
 // IE6 PNG transparency fix
 $vm_mainframe->addScript("{$mosConfig_live_site}/components/{$option}/js/sleight.js");
 echo '<div id="vmMainPage">' . "\n";
 // Load requested PAGE
 if (file_exists(PAGEPATH . $modulename . "." . $pagename . ".php")) {
     if ($only_page) {
         require_once CLASSPATH . 'connectionTools.class.php';
         vmConnector::sendHeaderAndContent(200);
         if ($func) {
             echo vmCommonHTML::getSuccessIndicator($ok, $vmDisplayLogger);
         }
         /*@MWM1: Log/Debug enhancements*/
         include PAGEPATH . $modulename . "." . $pagename . ".php";
         // Exit gracefully
         $vm_mainframe->close(true);
     }
     include PAGEPATH . $modulename . "." . $pagename . ".php";
 } elseif (file_exists(PAGEPATH . HOMEPAGE . '.php')) {
     include PAGEPATH . HOMEPAGE . '.php';
 } else {
     include PAGEPATH . 'shop.index.php';
 }
 if (!empty($mosConfig_caching) && $vmDoCaching) {
     echo '<span class="small">' . $VM_LANG->_('LAST_UPDATED') . ': ' . strftime($vendor_date_format) . '</span>';
 }
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:virtuemart.php


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