📄 currencies.php
字号:
<?php
/*
$Id: currencies.php,v 1.13 2002/05/27 13:24:35 hpdl Exp $
网络商店 - 吉鑫网络
http://www.chinaifc.com
Copyright (c) 2001,2003 网络商店
汗化版权所有吉鑫网络
*/
?>
<!-- currencies //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => BOX_HEADING_CURRENCIES
);
new infoBoxHeading($info_box_contents, false, true);
$select_box = '<select name="currency" onChange="this.form.submit();" style="width: 100%">';
reset($currencies->currencies);
while (list($key, $value) = each($currencies->currencies)) {
$select_box .= '<option value="' . $key . '"';
// $currency is a session variable
if ($currency == $key) {
$select_box .= ' SELECTED';
}
$select_box .= '>' . $value['title'] . '</option>';
}
$select_box .= "</select>";
$select_box .= tep_hide_session_id();
$hidden_get_variables = '';
reset($HTTP_GET_VARS);
while (list($key, $value) = each ($HTTP_GET_VARS)) {
if ( ($key != 'currency') && ($key != tep_session_name()) ) {
$hidden_get_variables .= '<input type="hidden" name="' . $key . '" value="' . $value . '">';
}
}
if (getenv('HTTPS') == 'on') $connection = 'SSL';
else $connection = 'NONSSL';
$select_box .= $hidden_get_variables;
$info_box_contents = array();
$info_box_contents[] = array('form' => '<form name="currencies" method="get" action="' . tep_href_link(basename($PHP_SELF), '', $connection, false) . '">',
'align' => 'left',
'text' => $select_box
);
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- currencies_eof //-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -