示例#1
0
" size="32" />
			      </td>
			    </tr>
			    <tr> 
			      <td colspan="2" align="center" >&nbsp;</td>
			    </tr>
			  </table>
			  </fieldset>
	      <br />
	      <fieldset><legend><?php 
echo $VM_LANG->_('PHPSHOP_CURRENCY_DISPLAY');
?>
</legend>
	      <table class="adminform"><?php 
/* Decode vendor_currency_display_style */
$currency_display = ps_vendor::get_currency_display_style($db->f("vendor_currency_display_style"));
?>
		    <tr> 
		      <td class="labelcell"><?php 
echo $VM_LANG->_('PHPSHOP_STORE_FORM_CURRENCY');
?>
: </td>
		      <td width="78%" > 
		        <?php 
$ps_html->list_currency("vendor_currency", $db->sf("vendor_currency"));
?>
		      </td>
		    </tr>
		    <tr>
		      <td class="labelcell"><?php 
echo $VM_LANG->_('PHPSHOP_CURRENCY_SYMBOL');
示例#2
0
$vendor_state = empty($vendor_state) ? "" : $db->f("vendor_state");
$vendor_country = $db->f("vendor_country");
$vendor_country_2_code = $db->f("country_2_code");
$vendor_country_3_code = $db->f("country_3_code");
$vendor_zip = $db->f("vendor_zip");
$vendor_phone = $db->f("vendor_phone");
$vendor_store_desc = $db->f("vendor_store_desc");
$vendor_currency = $db->f("vendor_currency");
$vendor_currency_display_style = $db->f("vendor_currency_display_style");
$vendor_accepted_currencies = $db->f("vendor_accepted_currencies");
$vendor_address_format = $db->f('vendor_address_format');
$vendor_date_format = $db->f('vendor_date_format');
$_SESSION["vendor_currency"] = $vendor_currency;
// see /classes/currency_convert.php
vmSetGlobalCurrency();
$currency_display = ps_vendor::get_currency_display_style($vendor_currency_display_style);
if ($GLOBALS['product_currency'] != $vendor_currency) {
    $currency_display["symbol"] = $GLOBALS['product_currency'];
}
/** load Currency Display Class **/
require_once CLASSPATH . 'currency/class_currency_display.php';
/**
 *  @global CurrencyDisplay $GLOBALS['CURRENCY_DISPLAY']
 *  @global CurrencyDisplay $CURRENCY_DISPLAY
 */
$CURRENCY_DISPLAY = $GLOBALS['CURRENCY_DISPLAY'] = new CurrencyDisplay($currency_display["id"], $currency_display["symbol"], $currency_display["nbdecimal"], $currency_display["sdecimal"], $currency_display["thousands"], $currency_display["positive"], $currency_display["negative"]);
// Include the theme
if (file_exists(VM_THEMEPATH . 'theme.php')) {
    include VM_THEMEPATH . 'theme.php';
} elseif (file_exists($mosConfig_absolute_path . '/components/' . $option . '/themes/default/theme.php')) {
    include $mosConfig_absolute_path . '/components/' . $option . '/themes/default/theme.php';