PageRenderTime 29ms CodeModel.GetById 2ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 1ms

/themes/clothing/user_transaction.dwt

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

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