PageRenderTime 44ms CodeModel.GetById 3ms app.highlight 21ms RepoModel.GetById 2ms app.codeStats 0ms

/templates/standard/user_transaction.dwt

https://github.com/wangjian2254/eshop
Unknown | 1098 lines | 1073 code | 25 blank | 0 comment | 0 complexity | d3915d6cdc4e8a8e1b22ecd2f5d875c9 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   2<html xmlns="http://www.w3.org/1999/xhtml">
   3<head>
   4<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   5<meta name="Keywords" content="{$keywords}" />
   6<meta name="Description" content="{$description}" />
   7<!-- TemplateBeginEditable name="doctitle" -->
   8<title>{$page_title}</title>
   9<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
  10<link rel="shortcut icon" href="favicon.ico" />
  11<link rel="icon" href="animated_favicon.gif" type="image/gif" />
  12<link href="{$ecs_css_path}" rel="stylesheet" type="text/css" />
  13{* 包含脚本文件 *}
  14{insert_scripts files='transport.js,common.js,user.js'}
  15<script type="text/javascript" src="js/action.js"></script>
  16</head>
  17<body>
  18<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
  19<div class="block">
  20<!-- #BeginLibraryItem "/library/ur_here.lbi" --><!-- #EndLibraryItem -->
  21</div>
  22<!--主体内容 start-->
  23<div class="block clearfix">
  24 <div id="userLeft" class="fl">
  25 <!-- #BeginLibraryItem "/library/user_menu.lbi" --><!-- #EndLibraryItem -->
  26 </div>
  27 <div id="userRight" class="fr">
  28   <!-- 用户信息界面 start-->
  29	  <!--{if $action eq 'profile'}-->
  30	  {insert_scripts files='utils.js'}
  31	  <script type="text/javascript">
  32		{foreach from=$lang.profile_js item=item key=key}
  33			var {$key} = "{$item}";
  34		{/foreach}
  35	  </script>
  36		<div class="us_contentBox">
  37    <h6>{$lang.profile}</h6>
  38     <form name="formEdit" action="user.php" method="post" onsubmit="return userEdit()">
  39      <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  40				<tr>
  41					<td width="28%" align="right" bgcolor="#FFFFFF">{$lang.birthday}: </td>
  42					<td width="72%" align="left" bgcolor="#FFFFFF"> {html_select_date field_order=YMD prefix=birthday start_year=-60 end_year=+1 display_days=true month_format=%m day_value_format=%02d time=$profile.birthday} </td>
  43				</tr>
  44				<tr>
  45					<td width="28%" align="right" bgcolor="#FFFFFF">{$lang.sex}: </td>
  46					<td width="72%" align="left" bgcolor="#FFFFFF">
  47					  <input type="radio" name="sex" value="0" {if $profile.sex==0}checked="checked"{/if} />
  48						{$lang.secrecy}&nbsp;&nbsp;
  49						<input type="radio" name="sex" value="1" {if $profile.sex==1}checked="checked"{/if} />
  50						{$lang.male}&nbsp;&nbsp;
  51						<input type="radio" name="sex" value="2" {if $profile.sex==2}checked="checked"{/if} />
  52					{$lang.female}&nbsp;&nbsp; </td>
  53				</tr>
  54				<tr>
  55					<td width="28%" align="right" bgcolor="#FFFFFF">{$lang.email}: </td>
  56					<td width="72%" align="left" bgcolor="#FFFFFF">
  57					<input name="email" type="text" value="{$profile.email}" size="25" class="InputBorder" /><span style="color:#FF0000"> *</span>
  58					</td>
  59				</tr>
  60				{foreach from=$extend_info_list item=field}
  61				<!-- {if $field.id eq 6} -->
  62				<tr>
  63					<td width="28%" align="right" bgcolor="#FFFFFF">{$lang.passwd_question}:</td>
  64					<td width="72%" align="left" bgcolor="#FFFFFF">
  65					<select name='sel_question' class="InputBorder">
  66					<option value='0'>{$lang.sel_question}</option>
  67					{html_options options=$passwd_questions selected=$profile.passwd_question}
  68					</select>
  69					</td>
  70				</tr>
  71				<tr>
  72					<td width="28%" align="right" bgcolor="#FFFFFF" <!-- {if $field.is_need} -->id="passwd_quesetion"<!--{/if}-->>{$lang.passwd_answer}:</td>
  73					<td width="72%" align="left" bgcolor="#FFFFFF">
  74					<input name="passwd_answer" type="text" size="25" class="InputBorder" maxlengt='20' value="{$profile.passwd_answer}"/><!-- {if $field.is_need} --><span style="color:#FF0000"> *</span><!-- {/if} -->
  75					</td>
  76				</tr>
  77				<!-- {else} -->
  78				<tr>
  79					<td width="28%" align="right" bgcolor="#FFFFFF" <!-- {if $field.is_need} -->id="extend_field{$field.id}i"<!--{/if}-->>{$field.reg_field_name}:</td>
  80					<td width="72%" align="left" bgcolor="#FFFFFF">
  81					<input name="extend_field{$field.id}" type="text" class="InputBorder" value="{$field.content}"/><!-- {if $field.is_need} --><span style="color:#FF0000"> *</span><!-- {/if} -->
  82					</td>
  83				</tr>
  84				<!-- {/if} -->
  85				{/foreach}
  86				<tr>
  87					<td colspan="2" align="center" bgcolor="#FFFFFF"><input name="act" type="hidden" value="act_edit_profile" />
  88						<input name="submit" type="submit" value="{$lang.confirm_edit}" class="bnt_number4" />
  89					</td>
  90				</tr>
  91       </table>
  92    </form>
  93     <form name="formPassword" action="user.php" method="post" onsubmit="return editPassword()" >
  94     <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
  95        <tr>
  96          <td width="28%" align="right" bgcolor="#FFFFFF">{$lang.old_password}:</td>
  97          <td width="76%" align="left" bgcolor="#FFFFFF"><input name="old_password" type="password" size="25"  class="InputBorder" /></td>
  98        </tr>
  99        <tr>
 100          <td width="28%" align="right" bgcolor="#FFFFFF">{$lang.new_password}:</td>
 101          <td align="left" bgcolor="#FFFFFF"><input name="new_password" type="password" size="25"  class="InputBorder" /></td>
 102        </tr>
 103        <tr>
 104          <td width="28%" align="right" bgcolor="#FFFFFF">{$lang.confirm_password}:</td>
 105          <td align="left" bgcolor="#FFFFFF"><input name="comfirm_password" type="password" size="25"  class="InputBorder" /></td>
 106        </tr>
 107        <tr>
 108          <td colspan="2" align="center" bgcolor="#FFFFFF">
 109					<input name="act" type="hidden" value="act_edit_password" />
 110            <input name="submit" type="submit" class="bnt_number4" value="{$lang.confirm_edit}" />
 111          </td>
 112        </tr>
 113      </table>
 114    </form>
 115		</div>
 116    <!--{/if}-->
 117   <!--#用户信息界面 end-->
 118	 
 119   <!-- {if $action eq 'bonus'} 用户的红包列表 start-->
 120		<script type="text/javascript">
 121			{foreach from=$lang.profile_js item=item key=key}
 122				var {$key} = "{$item}";
 123			{/foreach}
 124		</script>
 125    <div class="us_contentBox">
 126    <h6>{$lang.label_bonus}</h6>
 127		 <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 128			<tr>
 129				<th align="center" bgcolor="#FFFFFF">{$lang.bonus_sn}</th>
 130				<th align="center" bgcolor="#FFFFFF">{$lang.bonus_name}</th>
 131				<th align="center" bgcolor="#FFFFFF">{$lang.bonus_amount}</th>
 132				<th align="center" bgcolor="#FFFFFF">{$lang.min_goods_amount}</th>
 133				<th align="center" bgcolor="#FFFFFF">{$lang.bonus_end_date}</th>
 134				<th align="center" bgcolor="#FFFFFF">{$lang.bonus_status}</th>
 135			</tr>
 136			<!-- {if $bonus} -->
 137			<!--{foreach from=$bonus item=item}-->
 138			<tr>
 139				<td align="center" bgcolor="#FFFFFF">{$item.bonus_sn|default:N/A}</td>
 140				<td align="center" bgcolor="#FFFFFF">{$item.type_name}</td>
 141				<td align="center" bgcolor="#FFFFFF">{$item.type_money}</td>
 142				<td align="center" bgcolor="#FFFFFF">{$item.min_goods_amount}</td>
 143				<td align="center" bgcolor="#FFFFFF">{$item.use_enddate}</td>
 144				<td align="center" bgcolor="#FFFFFF">{$item.status}</td>
 145			</tr>
 146			<!--{/foreach}-->
 147			<!-- {else} -->
 148			<tr>
 149				<td colspan="6" bgcolor="#FFFFFF">{$lang.user_bonus_empty}</td>
 150			</tr>
 151			<!-- {/if} -->
 152		</table>
 153    </div>
 154      <!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
 155    <div class="us_contentBox">
 156    <h6>{$lang.add_bonus}</h6>
 157      <form name="addBouns" action="user.php" method="post" onsubmit="return addBonus()">
 158        <div style="padding: 15px;">
 159        {$lang.bonus_number}
 160          <input name="bonus_sn" type="text" size="30" class="InputBorder" />
 161          <input type="hidden" name="act" value="act_add_bonus" class="InputBorder" />
 162          <input type="submit" class="bnt_number4" value="{$lang.add_bonus}" />
 163        </div>
 164      </form>
 165		</div>	
 166    <!-- {/if} -->
 167   <!--用户红包结束-->
 168	 
 169  <!--#订单列表界面 start-->
 170  <!-- {if $action eq 'order_list'} -->
 171  <div class="us_contentBox">
 172   <h6>{$lang.label_order}</h6>
 173	 <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 174			<tr align="center">
 175				<td bgcolor="#ffffff">{$lang.order_number}</td>
 176				<td bgcolor="#ffffff">{$lang.order_addtime}</td>
 177				<td bgcolor="#ffffff">{$lang.order_money}</td>
 178				<td bgcolor="#ffffff">{$lang.order_status}</td>
 179				<td bgcolor="#ffffff">{$lang.handle}</td>
 180			</tr>
 181			<!--{foreach from=$orders item=item}-->
 182			<tr>
 183				<td align="center" bgcolor="#ffffff"><a href="user.php?act=order_detail&order_id={$item.order_id}">{$item.order_sn}</a></td>
 184				<td align="center" bgcolor="#ffffff">{$item.order_time}</td>
 185				<td align="right" bgcolor="#ffffff">{$item.total_fee}</td>
 186				<td align="center" bgcolor="#ffffff">{$item.order_status}</td>
 187				<td align="center" bgcolor="#ffffff"><font class="f6">{$item.handler}</font></td>
 188			</tr>
 189			<!--{/foreach}-->
 190	 </table>
 191  </div>
 192  <!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
 193  <div class="us_contentBox">
 194  <h6>{$lang.merge_order}</h6>
 195	<script type="text/javascript">
 196	{foreach from=$lang.merge_order_js item=item key=key}
 197		var {$key} = "{$item}";
 198	{/foreach}
 199	</script>
 200  <form action="user.php" method="post" name="formOrder" onsubmit="return mergeOrder()">
 201          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 202            <tr>
 203              <td width="22%" align="right" bgcolor="#ffffff">{$lang.first_order}:</td>
 204              <td width="12%" align="left" bgcolor="#ffffff"><select name="to_order">
 205              <option value="0">{$lang.select}</option>
 206
 207                  {html_options options=$merge}
 208
 209                </select></td>
 210              <td width="19%" align="right" bgcolor="#ffffff">{$lang.second_order}:</td>
 211              <td width="11%" align="left" bgcolor="#ffffff"><select name="from_order">
 212              <option value="0">{$lang.select}</option>
 213
 214                  {html_options options=$merge}
 215
 216                </select></td>
 217              <td width="36%" bgcolor="#ffffff">&nbsp;<input name="act" value="merge_order" type="hidden" />
 218              <input type="submit" name="Submit"  class="bnt_number4" style="border:none;"  value="{$lang.merge_order}" /></td>
 219            </tr>
 220            <tr>
 221              <td bgcolor="#ffffff">&nbsp;</td>
 222              <td colspan="4" align="left" bgcolor="#ffffff" class="f1">{$lang.merge_order_notice}</td>
 223            </tr>
 224          </table>
 225        </form>
 226	</div>
 227  <!--{/if}-->
 228 <!--#订单列表界面 end-->
 229 
 230 <!--#包裹状态查询界面 start-->
 231 <!-- {if $action eq 'track_packages'} -->
 232 <div class="us_contentBox">
 233  <h6>{$lang.label_track_packages}</h6>
 234	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="order_table">
 235	<tr align="center">
 236		<td bgcolor="#ffffff">{$lang.order_number}</td>
 237		<td bgcolor="#ffffff">{$lang.handle}</td>
 238	</tr>
 239	<!--{foreach from=$orders item=item}-->
 240	<tr>
 241		<td align="center" bgcolor="#ffffff"><a href="user.php?act=order_detail&order_id={$item.order_id}">{$item.order_sn}</a></td>
 242		<td align="center" bgcolor="#ffffff">{$item.query_link}</td>
 243	</tr>
 244	<!--{/foreach}-->
 245	</table>
 246	<script>
 247	var query_status = '{$lang.query_status}';
 248	var ot = document.getElementById('order_table');
 249	for (var i = 1; i < ot.rows.length; i++)
 250	{
 251		var row = ot.rows[i];
 252		var cel = row.cells[1];
 253		cel.getElementsByTagName('a').item(0).innerHTML = query_status;
 254	}
 255	</script>
 256	</div>
 257	<!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
 258	<!--{/if}-->
 259	<!--#包裹状态查询界面 end-->
 260	
 261  <!-- ==========订单详情页面,包括:订单状态,商品列表,费用总计,收货人信息,支付方式,其它信息========== -->
 262  <!--{if $action eq order_detail} -->
 263  <div class="us_contentBox">
 264  <h6>{$lang.order_status}</h6>
 265  <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 266        <tr>
 267          <td width="15%" align="right" bgcolor="#ffffff">{$lang.detail_order_sn}:</td>
 268          <td align="left" bgcolor="#ffffff">{$order.order_sn}
 269          <!-- {if $order.extension_code eq "group_buy"} -->
 270					<a href="./group_buy.php?act=view&id={$order.extension_id}"><strong>{$lang.order_is_group_buy}</strong></a>
 271					<!-- {elseif $order.extension_code eq "exchange_goods"} -->
 272					<a href="./exchange.php?act=view&id={$order.extension_id}"><strong>{$lang.order_is_exchange}</strong></a>
 273					<!--{/if}-->  
 274					<a href="user.php?act=message_list&order_id={$order.order_id}">[<u>{$lang.business_message}</u>]</a>
 275					</td>
 276        </tr>
 277        <tr>
 278          <td align="right" bgcolor="#ffffff">{$lang.detail_order_status}:</td>
 279          <td align="left" bgcolor="#ffffff">{$order.order_status}&nbsp;&nbsp;&nbsp;&nbsp;{$order.confirm_time}</td>
 280        </tr>
 281        <tr>
 282          <td align="right" bgcolor="#ffffff">{$lang.detail_pay_status}:</td>
 283          <td align="left" bgcolor="#ffffff">{$order.pay_status}&nbsp;&nbsp;&nbsp;&nbsp;{if $order.order_amount gt 0}{$order.pay_online}{/if}{$order.pay_time}</td>
 284        </tr>
 285        <tr>
 286          <td align="right" bgcolor="#ffffff">{$lang.detail_shipping_status}:</td>
 287          <td align="left" bgcolor="#ffffff">{$order.shipping_status}&nbsp;&nbsp;&nbsp;&nbsp;{$order.shipping_time}</td>
 288        </tr>
 289        <!-- {if $order.invoice_no}-->
 290        <tr>
 291          <td align="right" bgcolor="#ffffff">{$lang.consignment}:</td>
 292          <td align="left" bgcolor="#ffffff">{$order.invoice_no}</td>
 293        </tr>
 294        <!--{/if}-->
 295        <!--{if $order.to_buyer}-->
 296        <tr>
 297          <td align="right" bgcolor="#ffffff">{$lang.detail_to_buyer}:</td>
 298          <td align="left" bgcolor="#ffffff">{$order.to_buyer}</td>
 299        </tr>
 300        <!-- {/if} -->
 301
 302        <!--{if $virtual_card}-->
 303        <tr>
 304          <td align="right" bgcolor="#ffffff">{$lang.virtual_card_info}:</td>
 305          <td colspan="3" align="left" bgcolor="#ffffff">
 306          <!--{foreach from=$virtual_card item=vgoods}-->
 307            <!--{foreach from=$vgoods.info item=card}-->
 308              <!--{if $card.card_sn}-->{$lang.card_sn}:<span style="color:red;">{$card.card_sn}</span><!--{/if}-->
 309              <!--{if $card.card_password}-->{$lang.card_password}:<span style="color:red;">{$card.card_password}</span><!--{/if}-->
 310              <!--{if $card.end_date}-->{$lang.end_date}:{$card.end_date}<!--{/if}--><br />
 311            <!--{/foreach}-->
 312          <!--{/foreach}-->
 313          </td>
 314        </tr>
 315        <!--{/if}-->
 316      </table>
 317	</div>
 318
 319  <div class="us_contentBox">
 320  <h6 class="clearfix"><span class="fl">{$lang.goods_list}</span>
 321	 <span class="fr">
 322   <!-- {if $allow_to_cart} -->
 323    <a href="javascript:;" onclick="returnToCart({$order.order_id})" class="us_textDot">{$lang.return_to_cart}</a>
 324   <!-- {/if} -->
 325	 </span>
 326  </h6>
 327  <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 328          <tr>
 329            <th width="23%" align="center" bgcolor="#ffffff">{$lang.goods_name}</th>
 330            <th width="29%" align="center" bgcolor="#ffffff">{$lang.goods_attr}</th>
 331            <!--<th>{$lang.market_price}</th>-->
 332            <th width="26%" align="center" bgcolor="#ffffff">{$lang.goods_price}<!-- {if $order.extension_code eq "group_buy"} -->{$lang.gb_deposit}<!-- {/if} --></th>
 333            <th width="9%" align="center" bgcolor="#ffffff">{$lang.number}</th>
 334            <th width="20%" align="center" bgcolor="#ffffff">{$lang.subtotal}</th>
 335          </tr>
 336          <!-- {foreach from=$goods_list item=goods} -->
 337          <tr>
 338            <td bgcolor="#ffffff">
 339						<!-- {if $goods.goods_id gt 0 && $goods.extension_code neq 'package_buy'} 商品 -->
 340							<a href="goods.php?id={$goods.goods_id}" target="_blank">{$goods.goods_name}</a>
 341							<!-- {if $goods.parent_id > 0} -->
 342							<span style="color:#FF0000">({$lang.accessories})</span>
 343							<!-- {elseif $goods.is_gift} -->
 344							<span style="color:#FF0000">({$lang.largess})</span>
 345							<!-- {/if} -->
 346						<!-- {elseif $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} -->
 347							<a href="javascript:void(0)" onclick="setSuitShow({$goods.goods_id})">{$goods.goods_name}<span style="color:#FF0000;">(礼包)</span></a>
 348							<div id="suit_{$goods.goods_id}" style="display:none">
 349									<!-- {foreach from=$goods.package_goods_list item=package_goods_list} -->
 350										<a href="goods.php?id={$package_goods_list.goods_id}" target="_blank">{$package_goods_list.goods_name}</a><br />
 351									<!-- {/foreach} -->
 352							</div>
 353						<!-- {/if} -->
 354						</td>
 355
 356            <td align="left" bgcolor="#ffffff">{$goods.goods_attr|nl2br}</td>
 357            <!--<td align="right">{$goods.market_price}</td>-->
 358            <td align="right" bgcolor="#ffffff" class="price">{$goods.goods_price}</td>
 359            <td align="center" bgcolor="#ffffff" class="price">{$goods.goods_number}</td>
 360            <td align="right" bgcolor="#ffffff" class="price">{$goods.subtotal}</td>
 361          </tr>
 362          <!-- {/foreach} -->
 363          <tr>
 364            <td colspan="8" bgcolor="#ffffff" align="right">
 365            {$lang.shopping_money}
 366						<!-- {if $order.extension_code eq "group_buy"} -->
 367						<font class="price">{$lang.gb_deposit}</font>
 368						<!-- {/if} -->: 
 369						<font class="price">{$order.formated_goods_amount}</font>
 370            </td>
 371          </tr>
 372        </table>
 373  </div>
 374	
 375  <div class="us_contentBox">
 376  <h6>{$lang.fee_total}</h6>
 377   <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 378          <tr>
 379            <td align="right" bgcolor="#ffffff">
 380                {$lang.goods_all_price}<!-- {if $order.extension_code eq "group_buy"} -->{$lang.gb_deposit}<!-- {/if} -->: <font class="f1 f14b">{$order.formated_goods_amount}</font>
 381              <!-- {if $order.discount gt 0} 折扣 -->
 382              - {$lang.discount}: <font class="f1 f14b">{$order.formated_discount}</font>
 383              <!-- {/if} -->
 384              <!-- {if $order.tax gt 0} -->
 385              + {$lang.tax}: <font class="f1 f14b">{$order.formated_tax}</font>
 386              <!-- {/if} -->
 387              <!-- {if $order.shipping_fee > 0} -->
 388              + {$lang.shipping_fee}: <font class="f1 f14b">{$order.formated_shipping_fee}</font>
 389              <!-- {/if} -->
 390              <!-- {if $order.insure_fee > 0} -->
 391              + {$lang.insure_fee}: <font class="f1 f14b">{$order.formated_insure_fee}</font>
 392              <!-- {/if} -->
 393              <!-- {if $order.pay_fee > 0} -->
 394              + {$lang.pay_fee}: <font class="f1 f14b">{$order.formated_pay_fee}</font>
 395              <!-- {/if} -->
 396              <!-- {if $order.pack_fee > 0} -->
 397              + {$lang.pack_fee}: <font class="f1 f14b">{$order.formated_pack_fee}</font>
 398              <!-- {/if} -->
 399              <!-- {if $order.card_fee > 0} -->
 400              + {$lang.card_fee}: <font class="f1 f14b">{$order.formated_card_fee}</font>
 401              <!-- {/if} -->
 402							</td>
 403          </tr>
 404          <tr>
 405            <td align="right" bgcolor="#ffffff">
 406              <!-- {if $order.money_paid > 0} -->
 407              - {$lang.order_money_paid}: <font class="f1 f14b">{$order.formated_money_paid}</font>
 408              <!-- {/if} -->
 409              <!-- {if $order.surplus > 0} -->
 410              - {$lang.use_surplus}: <font class="f1 f14b">{$order.formated_surplus}</font>
 411              <!-- {/if} -->
 412              <!-- {if $order.integral_money > 0} -->
 413              - {$lang.use_integral}: <font class="f1 f14b">{$order.formated_integral_money}</font>
 414              <!-- {/if} -->
 415              <!-- {if $order.bonus > 0} -->
 416              - {$lang.use_bonus}: <font class="f1 f14b">{$order.formated_bonus}</font>
 417              <!-- {/if} -->
 418							</td>
 419          </tr>
 420          <tr>
 421            <td align="right" bgcolor="#ffffff">{$lang.order_amount}: <font class="f1 f14b">{$order.formated_order_amount}</font>
 422            <!-- {if $order.extension_code eq "group_buy"} --><br />
 423            {$lang.notice_gb_order_amount}
 424						<!-- {/if} -->
 425						</td>
 426          </tr>
 427            <!-- {if $allow_edit_surplus} 如果可以编辑使用余额数 -->
 428          <tr>
 429            <td align="right" bgcolor="#ffffff">
 430      <form action="user.php" method="post" name="formFee" id="formFee">{$lang.use_more_surplus}:
 431            <input name="surplus" type="text" size="8" value="0" style="border:1px solid #ccc;"/>{$max_surplus}
 432            <input type="submit" name="Submit" class="bnt_munber4" value="{$lang.button_submit}" />
 433      <input type="hidden" name="act" value="act_edit_surplus" />
 434      <input type="hidden" name="order_id" value="{$smarty.get.order_id}" />
 435      </form></td>
 436          </tr>
 437    <!--{/if}-->
 438        </table>
 439  </div>
 440	
 441 <div class="us_contentBox">
 442  <h6>{$lang.consignee_info}</h6>
 443	 <!-- {if $order.allow_update_address gt 0} -->
 444		<form action="user.php" method="post" name="formAddress" id="formAddress">
 445		 <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 446				<tr>
 447					<td width="15%" align="right" bgcolor="#ffffff">{$lang.consignee_name}: </td>
 448					<td width="35%" align="left" bgcolor="#ffffff"><input name="consignee" type="text"  class="InputBorder" value="{$order.consignee|escape}" size="25">
 449					</td>
 450					<td width="15%" align="right" bgcolor="#ffffff">{$lang.email_address}: </td>
 451					<td width="35%" align="left" bgcolor="#ffffff"><input name="email" type="text"  class="InputBorder" value="{$order.email|escape}" size="25" />
 452					</td>
 453				</tr>
 454				<!-- {if $order.exist_real_goods} -->
 455				<!-- 只有虚拟商品处理-->
 456				<tr>
 457					<td align="right" bgcolor="#ffffff">{$lang.detailed_address}: </td>
 458					<td align="left" bgcolor="#ffffff"><input name="address" type="text" class="InputBorder" value="{$order.address|escape} " size="25" /></td>
 459					<td align="right" bgcolor="#ffffff">{$lang.postalcode}:</td>
 460					<td align="left" bgcolor="#ffffff"><input name="zipcode" type="text"  class="InputBorder" value="{$order.zipcode|escape}" size="25" /></td>
 461				</tr>
 462				<!--{/if}-->
 463				<tr>
 464					<td align="right" bgcolor="#ffffff">{$lang.phone}:</td>
 465					<td align="left" bgcolor="#ffffff"><input name="tel" type="text" class="InputBorder" value="{$order.tel|escape}" size="25" /></td>
 466					<td align="right" bgcolor="#ffffff">{$lang.backup_phone}:</td>
 467					<td align="left" bgcolor="#ffffff"><input name="mobile" type="text"  class="InputBorder" value="{$order.mobile|escape}" size="25" /></td>
 468				</tr>
 469				<!-- {if $order.exist_real_goods} -->
 470				<!-- 只有虚拟商品处理-->
 471				<tr>
 472					<td align="right" bgcolor="#ffffff">{$lang.sign_building}:</td>
 473					<td align="left" bgcolor="#ffffff"><input name="sign_building" class="InputBorder" type="text" value="{$order.sign_building|escape}" size="25" />
 474					</td>
 475					<td align="right" bgcolor="#ffffff">{$lang.deliver_goods_time}:</td>
 476					<td align="left" bgcolor="#ffffff"><input name="best_time" type="text" class="InputBorder" value="{$order.best_time|escape}" size="25" />
 477					</td>
 478				</tr>
 479				<!-- {/if}-->
 480				<tr>
 481					<td colspan="4" align="center" bgcolor="#ffffff"><input type="hidden" name="act" value="save_order_address" />
 482						<input type="hidden" name="order_id" value="{$order.order_id}" />
 483						<input type="submit" class="bnt_number8" value="{$lang.update_address}"  />
 484					</td>
 485				</tr>
 486			</table>
 487		</form>
 488		<!-- {else} -->
 489		<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 490			<tr>
 491				<td width="15%" align="right" bgcolor="#ffffff">{$lang.consignee_name}:</td>
 492				<td width="35%" align="left" bgcolor="#ffffff">{$order.consignee}</td>
 493				<td width="15%" align="right" bgcolor="#ffffff" >{$lang.email_address}:</td>
 494				<td width="35%" align="left" bgcolor="#ffffff">{$order.email}</td>
 495			</tr>
 496			<!-- {if $order.exist_real_goods} -->
 497			<tr>
 498				<td align="right" bgcolor="#ffffff">{$lang.detailed_address}:</td>
 499				<td colspan="3" align="left" bgcolor="#ffffff">{$order.address}
 500					<!-- {if $order.zipcode} -->
 501					[{$lang.postalcode}: {$order.zipcode}]
 502					<!-- {/if} --></td>
 503			</tr>
 504			<!-- {/if}-->
 505			<tr>
 506				<td align="right" bgcolor="#ffffff">{$lang.phone}:</td>
 507				<td align="left" bgcolor="#ffffff">{$order.tel} </td>
 508				<td align="right" bgcolor="#ffffff">{$lang.backup_phone}:</td>
 509				<td align="left" bgcolor="#ffffff">{$order.mobile}</td>
 510			</tr>
 511			<!-- {if $order.exist_real_goods} -->
 512			<tr>
 513				<td align="right" bgcolor="#ffffff" >{$lang.sign_building}:</td>
 514				<td align="left" bgcolor="#ffffff">{$order.sign_building} </td>
 515				<td align="right" bgcolor="#ffffff" >{$lang.deliver_goods_time}:</td>
 516				<td align="left" bgcolor="#ffffff">{$order.best_time}</td>
 517			</tr>
 518			<!--{/if}-->
 519		</table>
 520		<!-- {/if} -->
 521 </div>
 522 
 523 <div class="us_contentBox">
 524  <h6>{$lang.payment}</h6>
 525	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 526		<tr>
 527			<td bgcolor="#ffffff">
 528			{$lang.select_payment}: {$order.pay_name}。{$lang.order_amount}: <font class="f2">{$order.formated_order_amount}</font><br />
 529			{$order.pay_desc}
 530			</td>
 531		</tr>
 532		<!--{if $payment_list}-->
 533			<tr>
 534			<td bgcolor="#ffffff" align="right">
 535	<form name="payment" method="post" action="user.php">
 536	{$lang.change_payment}:
 537	<select name="pay_id">
 538		<!--{foreach from=$payment_list item=payment}-->
 539		<option value="{$payment.pay_id}">
 540		{$payment.pay_name}({$lang.pay_fee}:{$payment.format_pay_fee})
 541		</option>
 542		<!--{/foreach}-->
 543	</select>
 544	<input type="hidden" name="act" value="act_edit_payment" />
 545	<input type="hidden" name="order_id" value="{$order.order_id}" />
 546	<input type="submit" name="Submit" class="bnt_number4" value="{$lang.button_submit}" />
 547	</form>
 548			</td>
 549		</tr>
 550		<!--{/if}-->
 551	</table>
 552 </div>
 553 
 554 <div class="us_contentBox">
 555  <h6>{$lang.other_info}</h6>
 556  <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 557          <!-- {if $order.shipping_id > 0} -->
 558          <tr>
 559            <td width="15%" align="right" bgcolor="#ffffff">{$lang.shipping}:</td>
 560            <td colspan="3" width="85%" align="left" bgcolor="#ffffff">{$order.shipping_name}</td>
 561          </tr>
 562          <!-- {/if} -->
 563
 564          <tr>
 565            <td width="15%" align="right" bgcolor="#ffffff">{$lang.payment}:</td>
 566            <td colspan="3" align="left" bgcolor="#ffffff">{$order.pay_name}</td>
 567          </tr>
 568          <!--{if $order.insure_fee > 0}-->
 569          <!--{/if}-->
 570          <!-- {if $order.pack_name} 是否使用包装 -->
 571          <tr>
 572            <td width="15%" align="right" bgcolor="#ffffff">{$lang.use_pack}:</td>
 573            <td colspan="3" align="left" bgcolor="#ffffff">{$order.pack_name}</td>
 574          </tr>
 575          <!-- {/if} 是否使用包装 -->
 576          <!-- {if $order.card_name} 是否使用贺卡 -->
 577          <tr>
 578            <td width="15%" align="right" bgcolor="#ffffff">{$lang.use_card}:</td>
 579            <td colspan="3" align="left" bgcolor="#ffffff">{$order.card_name}</td>
 580          </tr>
 581          <!-- {/if} -->
 582          <!-- {if $order.card_message} 是否使用贺卡 -->
 583          <tr>
 584            <td width="15%" align="right" bgcolor="#ffffff">{$lang.bless_note}:</td>
 585            <td colspan="3" align="left" bgcolor="#ffffff">{$order.card_message}</td>
 586          </tr>
 587          <!-- {/if} 是否使用贺卡 -->
 588          <!-- {if $order.surplus > 0} 是否使用余额 -->
 589          <!-- {/if} -->
 590          <!-- {if $order.integral > 0} 是否使用积分 -->
 591          <tr>
 592            <td width="15%" align="right" bgcolor="#ffffff">{$lang.use_integral}:</td>
 593            <td colspan="3" align="left" bgcolor="#ffffff">{$order.integral}</td>
 594          </tr>
 595          <!-- {/if} 是否使用积分 -->
 596          <!-- {if $order.bonus > 0} 是否使用红包 -->
 597          <!-- {/if} -->
 598          <!-- {if $order.inv_payee && $order.inv_content} 是否开发票 -->
 599          <tr>
 600            <td width="15%" align="right" bgcolor="#ffffff">{$lang.invoice_title}:</td>
 601            <td width="36%" align="left" bgcolor="#ffffff">{$order.inv_payee}</td>
 602            <td width="19%" align="right" bgcolor="#ffffff">{$lang.invoice_content}:</td>
 603            <td width="25%" align="left" bgcolor="#ffffff">{$order.inv_content}</td>
 604          </tr>
 605          <!-- {/if} -->
 606          <!-- {if $order.postscript} 是否有订单附言 -->
 607          <tr>
 608            <td width="15%" align="right" bgcolor="#ffffff">{$lang.order_postscript}:</td>
 609            <td colspan="3" align="left" bgcolor="#ffffff">{$order.postscript}</td>
 610          </tr>
 611          <!-- {/if} -->
 612          <tr>
 613            <td width="15%" align="right" bgcolor="#ffffff">{$lang.booking_process}:</td>
 614            <td colspan="3" align="left" bgcolor="#ffffff">{$order.how_oos_name}</td>
 615          </tr>
 616        </table>
 617 </div>				
 618  <!--{/if} -->
 619 <!--#订单详情页 end-->
 620 
 621 <!--#会员余额 start-->
 622  <!--{if $action eq "account_raply" || $action eq "account_log" || $action eq "account_deposit" || $action eq "account_detail"} -->
 623	<script type="text/javascript">
 624		{foreach from=$lang.account_js item=item key=key}
 625			var {$key} = "{$item}";
 626		{/foreach}
 627	</script>
 628 <div class="us_contentBox">
 629  <h6>{$lang.user_balance}</h6>
 630	 <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 631			<tr>
 632				<td align="right" bgcolor="#ffffff">
 633				<a href="user.php?act=account_deposit" {if $action eq 'account_deposit'}class="f14b"{/if}>{$lang.surplus_type_0}</a> | <a href="user.php?act=account_raply" {if $action eq 'account_raply'}class="f14b"{/if}>{$lang.surplus_type_1}</a> | <a href="user.php?act=account_detail" {if $action eq 'account_detail'}class="f14b"{/if}>{$lang.add_surplus_log}</a> | <a href="user.php?act=account_log" {if $action eq 'account_log'}class="f14b"{/if}>{$lang.view_application}</a>
 634				</td>
 635			</tr>
 636   </table>
 637	<!-- {/if} -->
 638	<!-- {if $action eq "account_raply"} -->
 639	<form name="formSurplus" method="post" action="user.php" onsubmit="return submitSurplus()">
 640	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 641		<tr>
 642			<td width="15%" bgcolor="#ffffff">{$lang.repay_money}:</td>
 643			<td bgcolor="#ffffff" align="left"><input type="text" name="amount" value="{$order.amount|escape}" class="InputBorder" size="30" />
 644			</td>
 645		</tr>
 646		<tr>
 647			<td bgcolor="#ffffff">{$lang.process_notic}:</td>
 648			<td bgcolor="#ffffff" align="left"><textarea name="user_note" cols="55" rows="6" class="InputBorder">{$order.user_note|escape}</textarea></td>
 649		</tr>
 650		<tr>
 651			<td bgcolor="#ffffff" colspan="2" align="center">
 652			<input type="hidden" name="surplus_type" value="1" />
 653				<input type="hidden" name="act" value="act_account" />
 654				<input type="submit" name="submit"  class="bnt_number4" value="{$lang.submit_request}" />
 655				<input type="reset" name="reset" class="bnt_number4" value="{$lang.button_reset}" />
 656			</td>
 657		</tr>
 658	</table>
 659	</form>
 660	<!-- {/if} -->
 661	<!-- {if $action eq "account_deposit"} -->
 662	<form name="formSurplus" method="post" action="user.php" onsubmit="return submitSurplus()">
 663	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 664			<tr>
 665				<td width="15%" bgcolor="#ffffff">{$lang.deposit_money}:</td>
 666				<td align="left" bgcolor="#ffffff"><input type="text" name="amount"  class="InputBorder" value="{$order.amount|escape}" size="30" /></td>
 667			</tr>
 668			<tr>
 669				<td bgcolor="#ffffff">{$lang.process_notic}:</td>
 670				<td align="left" bgcolor="#ffffff"><textarea name="user_note" cols="55" rows="6"  class="InputBorder">{$order.user_note|escape}</textarea></td>
 671			</tr>
 672		</table>
 673		<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 674			<tr align="center">
 675				<td bgcolor="#ffffff"  colspan="3" align="left">{$lang.payment}:</td>
 676			</tr>
 677			<tr align="center">
 678				<td bgcolor="#ffffff">{$lang.pay_name}</td>
 679				<td bgcolor="#ffffff" width="60%">{$lang.pay_desc}</td>
 680				<td bgcolor="#ffffff" width="17%">{$lang.pay_fee}</td>
 681			</tr>
 682			<!-- {foreach from=$payment item=list} -->
 683			<tr>
 684				<td bgcolor="#ffffff" align="left">
 685				<input type="radio" name="payment_id" value="{$list.pay_id}" />{$list.pay_name}</td>
 686				<td bgcolor="#ffffff" align="left">{$list.pay_desc}</td>
 687				<td bgcolor="#ffffff" align="center">{$list.pay_fee}</td>
 688			</tr>
 689			<!-- {/foreach} -->
 690			<tr>
 691	<td bgcolor="#ffffff" colspan="3"  align="center">
 692	<input type="hidden" name="surplus_type" value="0" />
 693		<input type="hidden" name="rec_id" value="{$order.id}" />
 694		<input type="hidden" name="act" value="act_account" />
 695		<input type="submit" class="bnt_number4" name="submit" value="{$lang.submit_request}" />
 696		<input type="reset" class="bnt_number4" name="reset" value="{$lang.button_reset}" />
 697	</td>
 698</tr>
 699		</table>
 700	</form>
 701	<!-- {/if} -->
 702	<!-- {if $action eq "act_account"} -->
 703	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 704		<tr>
 705			<td width="25%" align="right" bgcolor="#ffffff">{$lang.surplus_amount}</td>
 706			<td width="80%" bgcolor="#ffffff">{$amount}</td>
 707		</tr>
 708		<tr>
 709			<td align="right" bgcolor="#ffffff">{$lang.payment_name}</td>
 710			<td bgcolor="#ffffff">{$payment.pay_name}</td>
 711		</tr>
 712		<tr>
 713			<td align="right" bgcolor="#ffffff">{$lang.payment_fee}</td>
 714			<td bgcolor="#ffffff">{$pay_fee}</td>
 715		</tr>
 716		<tr>
 717			<td align="right" valign="middle" bgcolor="#ffffff">{$lang.payment_desc}</td>
 718			<td bgcolor="#ffffff">{$payment.pay_desc}</td>
 719		</tr>
 720		<tr>
 721			<td colspan="2" bgcolor="#ffffff">{$payment.pay_button}</td>
 722		</tr>
 723	</table>
 724	<!-- {/if} -->
 725 <!-- {if $action eq "account_detail"} -->
 726	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 727		<tr align="center">
 728			<td bgcolor="#ffffff">{$lang.process_time}</td>
 729			<td bgcolor="#ffffff">{$lang.surplus_pro_type}</td>
 730			<td bgcolor="#ffffff">{$lang.money}</td>
 731			<td bgcolor="#ffffff">{$lang.change_desc}</td>
 732		</tr>
 733		<!--{foreach from=$account_log item=item}-->
 734		<tr>
 735			<td align="center" bgcolor="#ffffff">{$item.change_time}</td>
 736			<td align="center" bgcolor="#ffffff">{$item.type}</td>
 737			<td align="right" bgcolor="#ffffff">{$item.amount}</td>
 738			<td bgcolor="#ffffff" title="{$item.change_desc}">&nbsp;&nbsp;{$item.short_change_desc}</td>
 739		</tr>
 740		<!--{/foreach}-->
 741		<tr>
 742			<td colspan="4" align="right" bgcolor="#ffffff">{$lang.current_surplus}<font class="f2">{$surplus_amount}</font></td>
 743		</tr>
 744	</table>
 745	<!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
 746	<!-- {/if} -->
 747	<!-- {if $action eq "account_log"} -->
 748	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 749		<tr align="center">
 750			<td bgcolor="#ffffff">{$lang.process_time}</td>
 751			<td bgcolor="#ffffff">{$lang.surplus_pro_type}</td>
 752			<td bgcolor="#ffffff">{$lang.money}</td>
 753			<td bgcolor="#ffffff">{$lang.process_notic}</td>
 754			<td bgcolor="#ffffff">{$lang.admin_notic}</td>
 755			<td bgcolor="#ffffff">{$lang.is_paid}</td>
 756			<td bgcolor="#ffffff">{$lang.handle}</td>
 757		</tr>
 758		<!--{foreach from=$account_log item=item}-->
 759		<tr>
 760			<td align="center" bgcolor="#ffffff">{$item.add_time}</td>
 761			<td align="left" bgcolor="#ffffff">{$item.type}</td>
 762			<td align="right" bgcolor="#ffffff">{$item.amount}</td>
 763			<td align="left" bgcolor="#ffffff">{$item.short_user_note}</td>
 764			<td align="left" bgcolor="#ffffff">{$item.short_admin_note}</td>
 765			<td align="center" bgcolor="#ffffff">{$item.pay_status}</td>
 766			<td align="right" bgcolor="#ffffff">{$item.handle}
 767				<!-- {if ($item.is_paid eq 0 && $item.process_type eq 1) || $item.handle} -->
 768				<a href="user.php?act=cancel&id={$item.id}" onclick="if (!confirm('{$lang.confirm_remove_account}')) return false;">{$lang.is_cancel}</a>
 769				<!-- {/if} -->
 770				</td>
 771		</tr>
 772		<!--{/foreach}-->
 773		<tr>
 774			<td colspan="7" align="right" bgcolor="#ffffff">{$lang.current_surplus}<font class="f2">{$surplus_amount}</font></td>
 775		</tr>
 776	</table>
 777	<!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
 778  <!-- {/if} -->
 779	<!--{if $action eq "account_raply" || $action eq "account_log" || $action eq "account_deposit" || $action eq "account_detail"} -->
 780 </div>
 781  <!-- {/if} -->
 782 <!--#会员余额 end-->
 783			
 784 <!--#收货地址页面 -->
 785 <!--{if $action eq 'address_list'} -->
 786 <div class="us_contentBox">
 787 <h6>{$lang.consignee_info}</h6>
 788 {* 包含脚本文件 *}
 789		{insert_scripts files='utils.js,transport.js,region.js,shopping_flow.js'}
 790		<script type="text/javascript">
 791			region.isAdmin = false;
 792			{foreach from=$lang.flow_js item=item key=key}
 793			var {$key} = "{$item}";
 794			{/foreach}
 795			{literal}
 796			onload = function() {
 797				if (!document.all)
 798				{
 799					document.forms['theForm'].reset();
 800				}
 801			}
 802			{/literal}
 803		</script>
 804		<!-- {foreach from=$consignee_list item=consignee key=sn} -->
 805		<form action="user.php" method="post" name="theForm" onsubmit="return checkConsignee(this)">
 806			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 807				<tr>
 808					<td align="right" bgcolor="#ffffff">{$lang.country_province}:</td>
 809					<td colspan="3" align="left" bgcolor="#ffffff">
 810					<select name="country" id="selCountries_{$sn}" onchange="region.changed(this, 1, 'selProvinces_{$sn}')" class="InputBorder">
 811							<option value="0">{$lang.please_select}{$name_of_region[0]}</option>
 812							<!-- {foreach from=$country_list item=country} -->
 813							<option value="{$country.region_id}" {if $consignee.country eq $country.region_id}selected{/if}>{$country.region_name}</option>
 814							<!-- {/foreach} -->
 815						</select>
 816						<select name="province" id="selProvinces_{$sn}" onchange="region.changed(this, 2, 'selCities_{$sn}')"  class="InputBorder">
 817							<option value="0">{$lang.please_select}{$name_of_region[1]}</option>
 818							<!-- {foreach from=$province_list.$sn item=province} -->
 819							<option value="{$province.region_id}" {if $consignee.province eq $province.region_id}selected{/if}>{$province.region_name}</option>
 820							<!-- {/foreach} -->
 821						</select>
 822						<select name="city" id="selCities_{$sn}" onchange="region.changed(this, 3, 'selDistricts_{$sn}')" class="InputBorder">
 823							<option value="0">{$lang.please_select}{$name_of_region[2]}</option>
 824							<!-- {foreach from=$city_list.$sn item=city} -->
 825							<option value="{$city.region_id}" {if $consignee.city eq $city.region_id}selected{/if}>{$city.region_name}</option>
 826							<!-- {/foreach} -->
 827						</select>
 828						<select name="district" id="selDistricts_{$sn}" {if !$district_list.$sn}style="display:none"{/if} class="InputBorder">
 829							<option value="0">{$lang.please_select}{$name_of_region[3]}</option>
 830							<!-- {foreach from=$district_list.$sn item=district} -->
 831							<option value="{$district.region_id}" {if $consignee.district eq $district.region_id}selected{/if}>{$district.region_name}</option>
 832							<!-- {/foreach} -->
 833						</select>
 834					{$lang.require_field} </td>
 835				</tr>
 836				<tr>
 837					<td align="right" bgcolor="#ffffff">{$lang.consignee_name}:</td>
 838					<td align="left" bgcolor="#ffffff"><input name="consignee" type="text" class="InputBorder" id="consignee_{$sn}" value="{$consignee.consignee|escape}" />
 839					{$lang.require_field} </td>
 840					<td align="right" bgcolor="#ffffff">{$lang.email_address}:</td>
 841					<td align="left" bgcolor="#ffffff"><input name="email" type="text" class="InputBorder" id="email_{$sn}" value="{$consignee.email|escape}" />
 842					{$lang.require_field}</td>
 843				</tr>
 844				<tr>
 845					<td align="right" bgcolor="#ffffff">{$lang.detailed_address}:</td>
 846					<td align="left" bgcolor="#ffffff"><input name="address" type="text" class="InputBorder" id="address_{$sn}" value="{$consignee.address|escape}" />
 847					{$lang.require_field}</td>
 848					<td align="right" bgcolor="#ffffff">{$lang.postalcode}:</td>
 849					<td align="left" bgcolor="#ffffff"><input name="zipcode" type="text" class="InputBorder" id="zipcode_{$sn}" value="{$consignee.zipcode|escape}" /></td>
 850				</tr>
 851				<tr>
 852					<td align="right" bgcolor="#ffffff">{$lang.phone}:</td>
 853					<td align="left" bgcolor="#ffffff"><input name="tel" type="text" class="InputBorder" id="tel_{$sn}" value="{$consignee.tel|escape}" />
 854					{$lang.require_field}</td>
 855					<td align="right" bgcolor="#ffffff">{$lang.backup_phone}:</td>
 856					<td align="left" bgcolor="#ffffff"><input name="mobile" type="text" class="InputBorder" id="mobile_{$sn}" value="{$consignee.mobile|escape}" /></td>
 857				</tr>
 858				<tr>
 859					<td align="right" bgcolor="#ffffff">{$lang.sign_building}:</td>
 860					<td align="left" bgcolor="#ffffff"><input name="sign_building" type="text" class="InputBorder" id="sign_building_{$sn}" value="{$consignee.sign_building|escape}" /></td>
 861					<td align="right" bgcolor="#ffffff">{$lang.deliver_goods_time}:</td>
 862					<td align="left" bgcolor="#ffffff"><input name="best_time" type="text"  class="InputBorder" id="best_time_{$sn}" value="{$consignee.best_time|escape}" /></td>
 863				</tr>
 864				<tr>
 865					<td align="right" bgcolor="#ffffff">&nbsp;</td>
 866					<td colspan="3" align="center" bgcolor="#ffffff">
 867					<!-- {if $consignee.consignee && $consignee.email} -->
 868						<input type="submit" name="submit" class="bnt_number4" value="{$lang.confirm_edit}" />
 869						<input name="button" type="button" class="bnt_number2"  onclick="if (confirm('{$lang.confirm_drop_address}'))location.href='user.php?act=drop_consignee&id={$consignee.address_id}'" value="{$lang.drop}" />
 870						<!-- {else} -->
 871						<input type="submit" name="submit" class="bnt_number6"  value="{$lang.add_address}"/>
 872						<!-- {/if} -->
 873						<input type="hidden" name="act" value="act_edit_address" />
 874						<input name="address_id" type="hidden" value="{$consignee.address_id}" />
 875					</td>
 876				</tr>
 877			</table>
 878		</form>
 879		<!-- {/foreach} -->
 880	</div>
 881  <!--{/if} -->
 882 <!--#收货地址添加页面 -->
 883 
 884 <!--* 积分兑换-->
 885 <!--{if $action eq 'transform_points'} -->
 886 <div class="us_contentBox">
 887 <h6>{$lang.transform_points}</h6>
 888 <!--{if $exchange_type eq 'ucenter'}-->
 889	<form action="user.php" method="post" name="transForm" onsubmit="return calcredit();">
 890 <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 891		<tr>
 892		<th width="120" bgcolor="#FFFFFF" align="right" valign="top">{$lang.cur_points}:</th>
 893		<td bgcolor="#FFFFFF">
 894		<label for="pay_points">{$lang.exchange_points.1}:</label><input type="text" size="15" id="pay_points" name="pay_points" value="{$shop_points.pay_points}" style="border:none; border-bottom:1px solid #DADADA;" readonly="readonly" /><br />
 895		<div class="blank"></div>
 896		<label for="rank_points">{$lang.exchange_points.0}:</label><input type="text" size="15" id="rank_points" name="rank_points" value="{$shop_points.rank_points}" style="border:none; border-bottom:1px solid #DADADA;" readonly="readonly" />
 897		</td>
 898		</tr>
 899		<tr><td bgcolor="#FFFFFF">&nbsp;</td>
 900		<td bgcolor="#FFFFFF">&nbsp;</td>
 901		</tr>
 902		<tr>
 903			<th align="right" bgcolor="#FFFFFF"><label for="amount">{$lang.exchange_amount}:</label></th>
 904			<td bgcolor="#FFFFFF"><input size="15" name="amount" id="amount" value="0" onkeyup="calcredit();" type="text"  class="InputBorder"/>
 905					<select name="fromcredits" id="fromcredits" onchange="calcredit();"  class="InputBorder">
 906						{html_options options=$lang.exchange_points selected=$selected_org}
 907					</select>
 908			</td>
 909		</tr>
 910		<tr>
 911			<th align="right" bgcolor="#FFFFFF"><label for="desamount">{$lang.exchange_desamount}:</label></th>
 912			<td bgcolor="#FFFFFF">
 913			<input type="text" name="desamount" id="desamount" disabled="disabled" value="0" size="15"  class="InputBorder"/>
 914				<select name="tocredits" id="tocredits" onchange="calcredit();" class="InputBorder">
 915					{html_options options=$to_credits_options selected=$selected_dst}
 916				</select>
 917			</td>
 918		</tr>
 919		<tr>
 920			<th align="right" bgcolor="#FFFFFF">{$lang.exchange_ratio}:</th>
 921			<td bgcolor="#FFFFFF">1 <span id="orgcreditunit">{$orgcreditunit}</span> <span id="orgcredittitle">{$orgcredittitle}</span> {$lang.exchange_action} <span id="descreditamount">{$descreditamount}</span> <span id="descreditunit">{$descreditunit}</span> <span id="descredittitle">{$descredittitle}</span></td>
 922		</tr>
 923		<tr><td bgcolor="#FFFFFF">&nbsp;</td>
 924		<td bgcolor="#FFFFFF">
 925		<input type="hidden" name="act" value="act_transform_ucenter_points" />
 926		<input type="submit" name="transfrom" value="{$lang.transform}" class="bnt_number4" /></td></tr>
 927</table>
 928	</form>
 929 <script type="text/javascript">
 930	{foreach from=$lang.exchange_js item=lang_js key=key}
 931	var {$key} = '{$lang_js}';
 932	{/foreach}
 933
 934	var out_exchange_allow = new Array();
 935	{foreach from=$out_exchange_allow item=ratio key=key}
 936	out_exchange_allow['{$key}'] = '{$ratio}';
 937	{/foreach}
 938
 939	function calcredit()
 940	{
 941			var frm = document.forms['transForm'];
 942			var src_credit = frm.fromcredits.value;
 943			var dest_credit = frm.tocredits.value;
 944			var in_credit = frm.amount.value;
 945			var org_title = frm.fromcredits[frm.fromcredits.selectedIndex].innerHTML;
 946			var dst_title = frm.tocredits[frm.tocredits.selectedIndex].innerHTML;
 947			var radio = 0;
 948			var shop_points = ['rank_points', 'pay_points'];
 949			if (parseFloat(in_credit) > parseFloat(document.getElementById(shop_points[src_credit]).value))
 950			{
 951					alert(balance.replace('{%s}', org_title));
 952					frm.amount.value = frm.desamount.value = 0;
 953					return false;
 954			}
 955			if (typeof(out_exchange_allow[dest_credit+'|'+src_credit]) == 'string')
 956			{
 957					radio = (1 / parseFloat(out_exchange_allow[dest_credit+'|'+src_credit])).toFixed(2);
 958			}
 959			document.getElementById('orgcredittitle').innerHTML = org_title;
 960			document.getElementById('descreditamount').innerHTML = radio;
 961			document.getElementById('descredittitle').innerHTML = dst_title;
 962			if (in_credit > 0)
 963			{
 964					if (typeof(out_exchange_allow[dest_credit+'|'+src_credit]) == 'string')
 965					{
 966							frm.desamount.value = Math.floor(parseFloat(in_credit) / parseFloat(out_exchange_allow[dest_credit+'|'+src_credit]));
 967							frm.transfrom.disabled = false;
 968							return true;
 969					}
 970					else
 971					{
 972							frm.desamount.value = deny;
 973							frm.transfrom.disabled = true;
 974							return false;
 975					}
 976			}
 977			else
 978			{
 979					return false;
 980			}
 981	}
 982 </script>
 983 <!--{else}-->
 984	<b>{$lang.cur_points}:</b>
 985	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
 986		<tr>
 987			<td width="30%" valign="top" bgcolor="#FFFFFF"><table border="0">
 988				<!--{foreach from=$bbs_points item=points}-->
 989				<tr>
 990					<th>{$points.title}:</th>
 991					<td width="120" style="border-bottom:1px solid #DADADA;">{$points.value}</td>
 992				</tr>
 993				<!--{/foreach} -->
 994			</table></td>
 995			<td width="50%" valign="top" bgcolor="#FFFFFF"><table>
 996							<tr>
 997					<th>{$lang.pay_points}:</th>
 998					<td width="120" style="border-bottom:1px solid #DADADA;">{$shop_points.pay_points}</td>
 999							</tr>
1000				<tr>
1001					<th>{$lang.rank_points}:</th>
1002					<td width="120" style="border-bottom:1px solid #DADADA;">{$shop_points.rank_points}</td>
1003				</tr>
1004			</table></td>
1005		</tr>
1006	</table>
1007	<br />
1008	<b>{$lang.rule_list}:</b>
1009	<ul>
1010		<!-- {foreach from=$rule_list item=rule} -->
1011		<li>"{$rule.from}" {$lang.transform} "{$rule.to}" {$lang.rate_is} {$rule.rate}</li>
1012		<!-- {/foreach} -->
1013	</ul>
1014	<form action="user.php" method="post" name="theForm">
1015	<table width="100%" border="1" align="center" cellpadding="5" cellspacing="0" style="border-collapse:collapse;border:1px solid #DADADA;">
1016		<tr style="background:#F1F1F1;">
1017			<th>{$lang.rule}</th>
1018			<th>{$lang.transform_num}</th>
1019			<th>{$lang.transform_result}</th>
1020		</tr>
1021		<tr>
1022			<td>
1023				<select name="rule_index" onchange="changeRule()" class="InputBorder">
1024					<!--{foreach from=$rule_list item=rule key=key}-->
1025					<option value="{$key}">{$rule.from}->{$rule.to}</option>
1026					<!--{/foreach}-->
1027				</select>
1028		</td>
1029		<td>
1030			<input type="text" name="num" value="0" onkeyup="calPoints()"  class="InputBorder"/>
1031		</td>
1032		<td><span id="ECS_RESULT">0</span></td>
1033		</tr>
1034		<tr>
1035			<td colspan="3" align="center">
1036			<input type="hidden" name="act" value="act_transform_points"  />
1037			<input type="submit" value="{$lang.transform}" class="bnt_number4" />
1038			</td>
1039		</tr>
1040	</table>
1041	</form>
1042 <script type="text/javascript">
1043		//<![CDATA[
1044			var rule_list = new Object();
1045			var invalid_input = '{$lang.invalid_input}';
1046			{foreach from=$rule_list item=rule key=key}
1047			rule_list['{$key}'] = '{$rule.rate}';
1048			{/foreach}
1049			function calPoints()
1050			{
1051				var frm = document.forms['theForm'];
1052				var rule_index = frm.elements['rule_index'].value;
1053				var num = parseInt(frm.elements['num'].value);
1054				var rate = rule_list[rule_index];
1055
1056				if (isNaN(num) || num < 0 || num != frm.elements['num'].value)
1057				{
1058					document.getElementById('ECS_RESULT').innerHTML = invalid_input;
1059					rerutn;
1060				}
1061				var arr = rate.split(':');
1062				var from = parseInt(arr[0]);
1063				var to = pars…

Large files files are truncated, but you can click here to view the full file