Server : Apache
System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
User : www ( 1000)
PHP Version : 5.6.40
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Directory :  /www/wwwroot/saimikebio.com/themes/lingshi/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : /www/wwwroot/saimikebio.com/themes/lingshi/user_transaction.dwt
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{$keywords}" />
<meta name="Description" content="{$description}" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>{$page_title}</title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="{$ecs_css_path}" rel="stylesheet" type="text/css" />
<link href="user.css" rel="stylesheet" type="text/css" />
{* 包含脚本文件 *}
{insert_scripts files='common.js,user.js'}
</head>
<body class="user_center">
<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem --> 
<div id="wrapper" class="cle">	<!-- #BeginLibraryItem "/library/ur_here.lbi" --><!-- #EndLibraryItem --> 
    <div class="my_nala_main">
        <!-- #BeginLibraryItem "/library/user_menu.lbi" --><!-- #EndLibraryItem --> 
			
    <div class="my_nala_centre ilizi_centre">
    <div class="ilizi cle">
      	<div class="box">
     <div class="box_1">
      <div class="userCenterBox boxCenterList clearfix" style="_height:1%;">
         <!-- 用户信息界面 start-->
         <!--{if $action eq 'profile'}-->
         {insert_scripts files='utils.js'}
        <script type="text/javascript">
          {foreach from=$lang.profile_js item=item key=key}
            var {$key} = "{$item}";
          {/foreach}
        </script>
      <h5><span>{$lang.profile}</span></h5>
      <div class="blank"></div>
     <form name="formEdit" action="user.php" method="post" onSubmit="return userEdit()">
      <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tr>
                  <td width="28%" align="right" bgcolor="#FFFFFF">{$lang.birthday}: </td>
                  <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>
                </tr>
                <tr>
                  <td width="28%" align="right" bgcolor="#FFFFFF">{$lang.sex}: </td>
                  <td width="72%" align="left" bgcolor="#FFFFFF"><input type="radio" name="sex" value="0" {if $profile.sex==0}checked="checked"{/if} />
                    {$lang.secrecy}&nbsp;&nbsp;
                    <input type="radio" name="sex" value="1" {if $profile.sex==1}checked="checked"{/if} />
                    {$lang.male}&nbsp;&nbsp;
                    <input type="radio" name="sex" value="2" {if $profile.sex==2}checked="checked"{/if} />
                  {$lang.female}&nbsp;&nbsp; </td>
                </tr>
                <tr>
                  <td width="28%" align="right" bgcolor="#FFFFFF">{$lang.email}: </td>
                  <td width="72%" align="left" bgcolor="#FFFFFF"><input name="email" type="text" value="{$profile.email}" size="25" class="inputBg" /><span style="color:#FF0000"> *</span></td>
                </tr>
		{foreach from=$extend_info_list item=field}
		<!-- {if $field.id eq 6} -->
		<tr>
		  <td width="28%" align="right" bgcolor="#FFFFFF">{$lang.passwd_question}:</td>
		  <td width="72%" align="left" bgcolor="#FFFFFF">
		  <select name='sel_question'>
		  <option value='0'>{$lang.sel_question}</option>
		  {html_options options=$passwd_questions selected=$profile.passwd_question}
		  </select>
		  </td>
		</tr>
		<tr>
		  <td width="28%" align="right" bgcolor="#FFFFFF" <!-- {if $field.is_need} -->id="passwd_quesetion"<!--{/if}-->>{$lang.passwd_answer}:</td>
		  <td width="72%" align="left" bgcolor="#FFFFFF">
		  <input name="passwd_answer" type="text" size="25" class="inputBg" maxlengt='20' value="{$profile.passwd_answer}"/><!-- {if $field.is_need} --><span style="color:#FF0000"> *</span><!-- {/if} -->
		  </td>
		</tr>
		<!-- {elseif $field.reg_field_name=='手机'} -->
			<!-- {if $_CFG['ecsdxt_mobile_bind']=='1'} -->
				<td width="28%" align="right" bgcolor="#FFFFFF" <!-- {if $field.is_need} -->id="extend_field{$field.id}i"<!--{/if}-->>{$field.reg_field_name}:</td>
				<td width="72%" align="left" bgcolor="#FFFFFF">
				<input name="extend_field{$field.id}" type="text" class="inputBg" value="{$field.content}" readonly="readonly" /><!-- {if $field.is_need} --><span style="color:#FF0000"> *</span><!-- {/if} -->
				&nbsp;
				<!-- {if $field.content!=''} -->
				<a href="user.php?act=bindmobile">重新绑定</a>
				<!-- {else} -->
				<a href="user.php?act=bindmobile">绑定手机</a>
				<!-- {/if} -->
				</td>
			<!-- {else} -->
				<td width="28%" align="right" bgcolor="#FFFFFF" <!-- {if $field.is_need} -->id="extend_field{$field.id}i"<!--{/if}-->>{$field.reg_field_name}:</td>
				<td width="72%" align="left" bgcolor="#FFFFFF">
				<input name="extend_field{$field.id}" type="text" class="inputBg" value="{$field.content}"/><!-- {if $field.is_need} --><span style="color:#FF0000"> *</span><!-- {/if} -->
				</td>
			<!-- {/if} -->
		<!-- {else} -->
		<tr>
			<td width="28%" align="right" bgcolor="#FFFFFF" <!-- {if $field.is_need} -->id="extend_field{$field.id}i"<!--{/if}-->>{$field.reg_field_name}:</td>
			<td width="72%" align="left" bgcolor="#FFFFFF">
			<input name="extend_field{$field.id}" type="text" class="inputBg" value="{$field.content}"/><!-- {if $field.is_need} --><span style="color:#FF0000"> *</span><!-- {/if} -->
			</td>
		</tr>
		<!-- {/if} -->
		{/foreach}
                <tr>
                  <td colspan="2" align="center" bgcolor="#FFFFFF"><input name="act" type="hidden" value="act_edit_profile" />
                    <input name="submit" type="submit" value="{$lang.confirm_edit}" class="btn-primary" style="border:none;" />
                  </td>
                </tr>
       </table>
    </form>
     <form name="formPassword" action="user.php" method="post" onSubmit="return editPassword()" >
     <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
        <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">{$lang.old_password}:</td>
          <td width="76%" align="left" bgcolor="#FFFFFF"><input name="old_password" type="password" size="25"  class="inputBg" /></td>
        </tr>
        <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">{$lang.new_password}:</td>
          <td align="left" bgcolor="#FFFFFF"><input name="new_password" type="password" size="25"  class="inputBg" /></td>
        </tr>
        <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">{$lang.confirm_password}:</td>
          <td align="left" bgcolor="#FFFFFF"><input name="comfirm_password" type="password" size="25"  class="inputBg" /></td>
        </tr>
        <tr>
          <td colspan="2" align="center" bgcolor="#FFFFFF"><input name="act" type="hidden" value="act_edit_password" />
            <input name="submit" type="submit" class="btn-primary" style="border:none;" value="{$lang.confirm_edit}" />
          </td>
        </tr>
      </table>
    </form>
     <!--{/if}-->
     <!--#用户信息界面 end-->

     <!-- 会员头像 start-->
     <!--{if $action eq 'headimg'}-->
              <h5><span>会员头像</span></h5>
              <form name="formEdit" action="user.php" method="post" enctype="multipart/form-data" class="ncm-default-form">
                <dl>
                  <dt></dt>
                  <dd>
                    <div class="user-avatar"><span> {if $headimg}<img src="{$headimg}" style="width:150px;height:150px;border:1px solid #eee;">{else} <img class="avatar" src="images/get_avatar.png" style="width:150px;height:150px;border:1px solid #eee;"/>{/if}</span></div>

                  </dd>
                </dl>
                <dl>
                  <dt style="vertical-align:middle">更换头像:</dt>
                  <dd style="vertical-align:middle">
                    <div class="ncm-upload-btn"> <a href="javascript:void(0);"> <span>
                      <input type="file" name="headimg" >
                    请上传jpg,gif,png格式的图片文件,最优尺寸300px*300px。</span> </a> </div>
                  </dd>
                </dl>
                <dl>
                  <dt>&nbsp;</dt>
                  <dd>
                    <label class="submit-border">
                      <input name="act" type="hidden" value="act_edit_headimg" />
                      <input name="submit" type="submit" class="btn-primary" value="{$lang.confirm_edit}" />
                    </label>
                  </dd>
                </dl>
              </form>
     <!--{/if}-->
     <!-- 会员头像 end-->

     <!-- 绑定手机界面 start-->
         <!--{if $action eq 'bindmobile'}-->
	 <script>var ztime={$ztime};</script>
         {insert_scripts files='utils.js'}
	 {insert_scripts files='global.js'}
	 {insert_scripts files='transport.js'}
	 {insert_scripts files='sms.js'}
        <script type="text/javascript">
          {foreach from=$lang.profile_js item=item key=key}
            var {$key} = "{$item}";
          {/foreach}
        </script>
      <h5><span>绑定手机</span></h5>
      <div class="blank"></div>
     <form name="formBindmobile" action="user.php" method="post" onSubmit="return bindMobile()" >
     <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
        <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">手机号:</td>
          <td width="76%" align="left" bgcolor="#FFFFFF"><input id="mobile" name="mobile" type="text" size="25"  class="inputBg" maxlength="12" /></td>
        </tr>
        <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">验证码:</td>
          <td align="left" bgcolor="#FFFFFF"><input id="verifycode" name="verifycode" type="text" size="25"  class="inputBg" maxlength="6" /><span style="color:#FF0000"> <input type="button" id="zphone" value="获取验证码"  onclick="getverifycode2();"></span></td>
        </tr>
        <tr>
          <td colspan="2" align="center" bgcolor="#FFFFFF"><input name="act" type="hidden" value="act_bindmobile" />
            <input name="submit" type="submit" class="btn-primary" style="border:none;" value="{$lang.confirm_edit}" />
          </td>
        </tr>
      </table>
    </form>
     <!--{/if}-->
     <!--#绑定手机界面 end-->
     <!-- {if $action eq 'bonus'} 用户的红包列表 start-->
      <script type="text/javascript">
        {foreach from=$lang.profile_js item=item key=key}
          var {$key} = "{$item}";
        {/foreach}
      </script>
      <h5><span>{$lang.label_bonus}</span></h5>
      <div class="blank"></div>
       <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
        <tr>
          <th align="center" bgcolor="#FFFFFF">{$lang.bonus_sn}</th>
          <th align="center" bgcolor="#FFFFFF">{$lang.bonus_name}</th>
          <th align="center" bgcolor="#FFFFFF">{$lang.bonus_amount}</th>
          <th align="center" bgcolor="#FFFFFF">{$lang.min_goods_amount}</th>
          <th align="center" bgcolor="#FFFFFF">{$lang.bonus_end_date}</th>
          <th align="center" bgcolor="#FFFFFF">{$lang.bonus_status}</th>
        </tr>
        <!-- {if $bonus} -->
        <!--{foreach from=$bonus item=item}-->
        <tr>
          <td align="center" bgcolor="#FFFFFF">{$item.bonus_sn}</td>
          <td align="center" bgcolor="#FFFFFF">{$item.type_name}</td>
          <td align="center" bgcolor="#FFFFFF">{$item.type_money}</td>
          <td align="center" bgcolor="#FFFFFF">{$item.min_goods_amount}</td>
          <td align="center" bgcolor="#FFFFFF">{$item.use_enddate}</td>
          <td align="center" bgcolor="#FFFFFF">{$item.status}</td>
        </tr>
        <!--{/foreach}-->
        <!-- {else} -->
        <tr>
          <td colspan="6" bgcolor="#FFFFFF">{$lang.user_bonus_empty}</td>
        </tr>
        <!-- {/if} -->
      </table>
      <div class="blank5"></div>
      <!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
      <div class="blank5"></div>
      <h5><span>{$lang.add_bonus}</span></h5>
      <div class="blank"></div>
      <form name="addBouns" action="user.php" method="post" onSubmit="return addBonus()">
        <div style="padding: 15px;">
        {$lang.bonus_number}
          <input name="bonus_sn" type="text" size="30" class="inputBg inputcss" />
          <input type="hidden" name="act" value="act_add_bonus" class="inputBg" />
          <input type="submit" class="btn-primary" style="border:none;" value="{$lang.add_bonus}" />
        </div>
      </form>
    <!-- {/if} -->
   <!--用户红包结束-->
      <!--#订单列表界面 start-->
       <!-- {if $action eq 'order_list'} -->
       <h5><span>{$lang.label_order}</span></h5>
       <div class="blank"></div>
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="bought-table">
            <thead>
              <tr class="col-name">
                <th width="33%" style="border-left: 1px solid #E6E6E6;">宝贝</th>
                <th width="10%">属性</th>
                <th width="9%">单价</th>
                <th width="5%">数量</th>
                <th width="13%">售后</th>
                <th width="8%">总金额</th>
                <th width="10%">状态</th>
                <th width="10%" style="border-right: 1px solid #E6E6E6;">操作</th>
              </tr>
            </thead>
            
            <!--{foreach from=$orders item=item}-->
            <tbody class="close-order">
              <tr class="order-hd">
                <td colspan="8"><span class="no">
                  <label> 订单编号:<span class="order-num"><a href="user.php?act=order_detail&order_id={$item.order_id}" class="f6">{$item.order_sn}</a>
                    {if $item.is_suborder}{$item.is_suborder}{/if}</span> </label>
                  </span> <span class="deal-time">&nbsp;&nbsp;成交时间:{$item.order_time}</span>
                  </td>
              </tr>
              <tr class="order-bd last">
                <td align="center" class="baobei no-border-right" style="padding:0px;">
                <!--{foreach from=$item.goods_list item=goods name=goods}-->
                  

                  <div class="goods_desc {if $smarty.foreach.goods.last}last{/if}"> <a class="pic" {if $goods.goods_id gt 0 && $goods.extension_code neq 'package_buy'}href="{if $goods.extension_code eq 'virtual_good'}virtual_group_goods.php?id={$goods.goods_id}{else}{$goods.url}{/if}"{else}{/if} title="查看宝贝详情" target="_blank"> 
                    <!-- {if $goods.goods_id gt 0 && $goods.extension_code neq 'package_buy'} 商品 --> 
                    <img data-original="{$goods.thumb}" src="images/spacer.gif" class="loading" alt="查看宝贝详情" width="50" height="50"> 
                    <!-- {elseif $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} --> 
                    <img src="images/ico_cart_package.gif" alt="查看宝贝详情" width="50" height="50"/> 
                    <!-- {/if} --> 
                    </a>
                    <div class="goods_name">{if $goods.extension_code eq 'virtual_good'}【虚拟团购】{/if} {$goods.goods_name}</div>
                  </div>
                  
                  <!--{/foreach}--></td>
                  <td align="center" class="baobei no-border-right"><!--{foreach from=$item.goods_list item=goods name=goods}-->
                  
                  <div class="goods_desc goods_desc_t"> {if $goods.goods_attr}{$goods.goods_attr|nl2br}{/if} </div>
                  
                  <!--{/foreach}--></td>
                <td align="center" class="baobei no-border-right" style="padding:0px;" ><!--{foreach from=$item.goods_list item=goods name=goods}-->
                  
                  <div class="goods_desc price  {if $smarty.foreach.goods.last}last{/if}" style="padding-left:0px; line-height:50px;"> {$goods.formated_goods_price} </div>
                  
                  <!--{/foreach}--></td>
                <td align="center" class="baobei no-border-right"  style="padding:0px;"><!--{foreach from=$item.goods_list item=goods name=goods}-->
                  
                  <div class="goods_desc  {if $smarty.foreach.goods.last}last{/if}" style="padding-left:0px;line-height:50px;"> {$goods.goods_number} </div>
                  
                  <!--{/foreach}--></td>
                <td align="center" class="after-service baobei no-border-right" valign="middle"><!--{foreach from=$item.goods_list item=goods name=goods}-->
                <!-- 预售商品支付定金不能退款 -->
            	<!-- {if $item.extension_code != 'pre_sale' || $item.pre_sale_status > 1} -->
                  <div class="goods_desc {if $smarty.foreach.goods.last}last{/if}"> 
                    <!-- {if ($item.shipping_status eq 0 || $item.shipping_status eq 3) && $item.pay_status eq 2} --> 
                    {if $goods.back_can == 1} <a href="user.php?act=back_order&order_id={$item.order_id}&goods_id={$goods.goods_id}&product_id={$goods.product_id}&x=1" class="red2" >申请退款</a><br />
                    {else}
                    <p>[已申请 退款]</p>
                    {/if} 
                    <!-- {/if} --> 
                    <!-- {if $item.shipping_status neq 0 && $item.shipping_status neq 3} --> 
                    {if $goods.back_can == 1}
                    <p> <a href="user.php?act=back_order&order_id={$item.order_id}&goods_id={$goods.goods_id}&product_id={$goods.product_id}" class="red2"> {if $item.shipping_status eq 1}
                      退货
                      {else if $item.shipping_status eq 2}
                      {if $item.weixiu_time eq 0}[申请返修 已超期]{else}申请返修{/if}
                      {/if} </a> </p>
                    {else}
                    <p>[已申请
                      {if $item.shipping_status eq 1}退货{else}返修{/if}
                      ]</p>
                    {/if} 
                    <!-- {/if} --> 
                    <!-- {/if} -->
                    <a href="user.php?act=message_list">留言/投诉</a> </div>
                  
                  <!--{/foreach}--></td>
                <td rowspan="1" align="center" class="amount no-border-right"><p class="post-type"><strong>
                <!-- 预售活动 -->
                <!-- {if $item.extension_code eq 'pre_sale' && $item.pre_sale_status == 1 && $item.pre_sale_deposit > 0} -->
				{$item.pre_sale_deposit_format}
				<!-- {else} -->
				{$item.total_fee}
                <!-- {/if} -->
                </strong></p></td>
                <td rowspan="1" align="center" class="trade-status no-border-right">{$item.order_status}</br>
                  {if $item.invoice_no && $item.shipping_name neq '上门取货' && $item.shipping_name neq '城际快递' && $item.shipping_name neq '市内快递' && $item.shipping_name neq '运费到付'}<a href="user.php?act=order_detail&order_id={$item.order_id}#wuliu" class="red2">查看物流</a><br>{/if}
                  <a href="user.php?act=order_detail&order_id={$item.order_id}" class="red2">查看详情</a>
                </td>
                <td rowspan="1" align="center" class="other">
                	<!-- {if $item.order_status1 eq 2 || $item.order_status1 eq 3} -->
                  <!-- {else} --> 
                  <!-- {if $item.pay_status eq 0 && !empty($item.pay_id)} --> 
                  <a href="flow.php?step=payinfo&order_id={$item.order_id}" class="on_money">立即付款</a><br />
                  
                  <!-- {/if} --> 
                  <!-- {/if} --> 
                  <font class="red2">{$item.handler}</font></br>
                  
                  <!-- {if $item.shipping_status eq 2} --> 
                  <!-- {if $item.comment_s eq 0} --> 
                  已评价 
                  <!-- {else} --> 
                  <a href="user.php?act=my_comment&s={$item.comment_s}&order_id={$item.order_id}#commtr_{$item.comment_s}" class="on_comment">评价</a> 
                  <!-- {/if} --><br />
                  <!-- {if $item.shaidan_s eq 0} --> 
                  已晒单 
                  <!-- {else} --> 
                  <a href="user.php?act=shaidan_send&id={$item.shaidan_s}" class="on_comment">晒单</a> 
                  <!-- {/if} --><br />
                  <!-- {/if} --> 

		  <!-- {if $item.shipping_status eq 2 || $item.order_status1 eq 2 || $item.order_status1 eq 3} --> 
                  <a href="goods.php?id={$item.goods_list.0.goods_id}" target="_blank">再次购买</a> 
                  <!-- {/if} --></td>
              </tr>
            </tbody>
            <!--{/foreach}-->
          </table>
        <div class="blank5"></div>
       <!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
       <div class="blank5"></div>
       <h5><span>{$lang.merge_order}</span></h5>
       <div class="blank"></div>
        <script type="text/javascript">
        {foreach from=$lang.merge_order_js item=item key=key}
          var {$key} = "{$item}";
        {/foreach}
        </script>
        <form action="user.php" method="post" name="formOrder" onsubmit="return mergeOrder()">
          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td width="22%" align="right" bgcolor="#ffffff">{$lang.first_order}:</td>
              <td width="12%" align="left" bgcolor="#ffffff"><select name="to_order">
              <option value="0">{$lang.select}</option>

                  {html_options options=$merge}

                </select></td>
              <td width="19%" align="right" bgcolor="#ffffff">{$lang.second_order}:</td>
              <td width="11%" align="left" bgcolor="#ffffff"><select name="from_order">
              <option value="0">{$lang.select}</option>

                  {html_options options=$merge}

                </select></td>
              <td width="36%" bgcolor="#ffffff">&nbsp;<input name="act" value="merge_order" type="hidden" />
              <input type="submit" name="Submit"  class="btn-primary" style="border:none;"  value="{$lang.merge_order}" /></td>
            </tr>
            <tr>
              <td bgcolor="#ffffff">&nbsp;</td>
              <td colspan="4" align="left" bgcolor="#ffffff">{$lang.merge_order_notice}</td>
            </tr>
          </table>
        </form>
       <!--{/if}-->
      <!--#订单列表界面 end-->
       <!--#包裹状态查询界面 start-->
      <!-- {if $action eq 'track_packages'} -->
        <h5><span>{$lang.label_track_packages}</span></h5>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="order_table">
        <tr align="center">
          <td bgcolor="#ffffff">{$lang.order_number}</td>
          <td bgcolor="#ffffff">{$lang.handle}</td>
        </tr>
        <!--{foreach from=$orders item=item}-->
        <tr>
          <td align="center" bgcolor="#ffffff"><a href="user.php?act=order_detail&order_id={$item.order_id}">{$item.order_sn}</a></td>
          <td align="center" bgcolor="#ffffff"><a href="user.php?act=order_detail&order_id={$item.order_id}">{$lang.query_status}</a></td>
        </tr>
        <!--{/foreach}-->
      </table>
      <div class="blank5"></div>
      <!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
      <!--{/if}-->
    <!--#包裹状态查询界面 end-->
     <!-- ==========订单详情页面,包括:订单状态,商品列表,费用总计,收货人信息,支付方式,其它信息========== -->
      <!--{if $action eq order_detail} -->
        <h5><span>{$lang.order_status}</span></h5>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
        <tr>
          <td width="15%" align="right" bgcolor="#ffffff">{$lang.detail_order_sn}:</td>
          <td align="left" bgcolor="#ffffff">{$order.order_sn}
          <!-- {if $order.extension_code eq "group_buy"} -->
					<a href="./group_buy.php?act=view&id={$order.extension_id}" class="f6"><strong>{$lang.order_is_group_buy}</strong></a>
					<!-- {elseif $order.extension_code eq "exchange_goods"} -->
					<a href="./exchange.php?act=view&id={$order.extension_id}" class="f6"><strong>{$lang.order_is_exchange}</strong></a>
					<!--{/if}-->  
					<a href="user.php?act=message_list&order_id={$order.order_id}" class="f6">[{$lang.business_message}]</a>
					</td>
        </tr>
        <tr>
          <td align="right" bgcolor="#ffffff">{$lang.detail_order_status}:</td>
          <td align="left" bgcolor="#ffffff">{$order.order_status}&nbsp;&nbsp;&nbsp;&nbsp;{$order.confirm_time}</td>
        </tr>
        <tr>
          <td align="right" bgcolor="#ffffff">{$lang.detail_pay_status}:</td>
          <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>
        </tr>
        <tr>
          <td align="right" bgcolor="#ffffff">{$lang.detail_shipping_status}:</td>
          <td align="left" bgcolor="#ffffff">{$order.shipping_status}&nbsp;&nbsp;&nbsp;&nbsp;{$order.shipping_time}</td>
        </tr>
        <!-- {if $order.invoice_no}-->
        <tr>
          <td align="right" bgcolor="#ffffff">{$lang.consignment}:</td>
          <td align="left" bgcolor="#ffffff" id="invoice_no">{$order.invoice_no}</td>
        </tr>
        <!--{/if}-->
	</table>
        <!-- {if $order.invoice_no && $order.shipping_name neq '上门取货' && $order.shipping_name neq '城际快递' && $order.shipping_name neq '市内快递' && $order.shipping_name neq '运费到付'}-->
	<a name="wuliu"></a>
        <h5><span>物流跟踪</span></h5>
        <div class="blank"></div>
	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
	<tr>
	   <td bgcolor="#ffffff">
		<div class="kd">
		  <div class="detail_top">
		    <dl>
		      <dd>
			<span>{$kuaidi_list.shipping_name}</span>
			<em>运单编码:{$kuaidi_list.invoice_no}</em></dd>
		    </dl>
		  </div>
		  <div class="kd_wl">{foreach from=$kuaidi_list.data item=data key=i}
		    <dl {if $i eq '0'}style=" margin-top:10px;" {/if}>
		      <dt {if $i neq '0'}style=" background:#ccc;" {/if}></dt>
		      <dd>
			<p {if $i neq '0'}style=" color:#666" {/if}>{$data.context}</p>
			<strong>{if $data.ftime}{$data.ftime}{else}{$data.time}{/if}</strong></dd>
		    </dl>{/foreach}</div>
		</div>		
	   </td>
	</tr>
	</table>
        <!--{/if}-->
	<table>
        <!--{if $order.to_buyer}-->
        <tr>
          <td align="right" bgcolor="#ffffff">{$lang.detail_to_buyer}:</td>
          <td align="left" bgcolor="#ffffff">{$order.to_buyer}</td>
        </tr>
        <!-- {/if} -->

        <!--{if $virtual_card}-->
        <tr>
          <td align="right" bgcolor="#ffffff">{$lang.virtual_card_info}:</td>
          <td colspan="3" align="left" bgcolor="#ffffff">
          <!--{foreach from=$virtual_card item=vgoods}-->
            <!--{foreach from=$vgoods.info item=card}-->
              <!--{if $card.card_sn}-->{$lang.card_sn}:<span style="color:red;">{$card.card_sn}</span><!--{/if}-->
              <!--{if $card.card_password}-->{$lang.card_password}:<span style="color:red;">{$card.card_password}</span><!--{/if}-->
              <!--{if $card.end_date}-->{$lang.end_date}:{$card.end_date}<!--{/if}--><br />
            <!--{/foreach}-->
          <!--{/foreach}-->
          </td>
        </tr>
        <!--{/if}-->
      </table>
        <div class="blank"></div>
        <h5><span>{$lang.goods_list}</span>
        <!-- {if $allow_to_cart} -->
        <a href="javascript:;" onclick="returnToCart({$order.order_id})" class="fr">{$lang.return_to_cart}</a>
        <!-- {/if} -->
        </h5>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <th width="23%" align="center" bgcolor="#ffffff">{$lang.goods_name}</th>
            <th width="29%" align="center" bgcolor="#ffffff">{$lang.goods_attr}</th>
            <!--<th>{$lang.market_price}</th>-->
            <th width="26%" align="center" bgcolor="#ffffff">{$lang.goods_price}<!-- {if $order.extension_code eq "group_buy"} -->{$lang.gb_deposit}<!-- {/if} --></th>
            <th width="9%" align="center" bgcolor="#ffffff">{$lang.number}</th>
            <th width="20%" align="center" bgcolor="#ffffff">{$lang.subtotal}</th>
          </tr>
          <!-- {foreach from=$goods_list item=goods} -->
          <tr>
            <td bgcolor="#ffffff">
              <!-- {if $goods.goods_id gt 0 && $goods.extension_code neq 'package_buy'} 商品 -->
                <a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6">{$goods.goods_name}</a>
                <!-- {if $goods.parent_id > 0} -->
                <span style="color:#FF0000">({$lang.accessories})</span>
                <!-- {elseif $goods.is_gift} -->
                <span style="color:#FF0000">({$lang.largess})</span>
                <!-- {/if} -->
              <!-- {elseif $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} -->
                <a href="javascript:void(0)" onclick="setSuitShow({$goods.goods_id})" class="f6">{$goods.goods_name}<span style="color:#FF0000;">(礼包)</span></a>
                <div id="suit_{$goods.goods_id}" style="display:none">
                    <!-- {foreach from=$goods.package_goods_list item=package_goods_list} -->
                      <a href="goods.php?id={$package_goods_list.goods_id}" target="_blank" class="f6">{$package_goods_list.goods_name}</a><br />
                    <!-- {/foreach} -->
                </div>
              <!-- {/if} -->
              </td>
            <td align="left" bgcolor="#ffffff">{$goods.goods_attr|nl2br}</td>
            <!--<td align="right">{$goods.market_price}</td>-->
            <td align="right" bgcolor="#ffffff">{$goods.goods_price}</td>
            <td align="center" bgcolor="#ffffff">{$goods.goods_number}</td>
            <td align="right" bgcolor="#ffffff">{$goods.subtotal}</td>
          </tr>
          <!-- {/foreach} -->
          <tr>
            <td colspan="8" bgcolor="#ffffff" align="right">
            {$lang.shopping_money}<!-- {if $order.extension_code eq "group_buy"} -->{$lang.gb_deposit}<!-- {/if} -->: {$order.formated_goods_amount}
            </td>
          </tr>
        </table>
         <div class="blank"></div>
        <h5><span>{$lang.fee_total}</span></h5>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td align="right" bgcolor="#ffffff">
                {$lang.goods_all_price}<!-- {if $order.extension_code eq "group_buy"} -->{$lang.gb_deposit}<!-- {/if} -->: {$order.formated_goods_amount}
              <!-- {if $order.discount gt 0} 折扣 -->
              - {$lang.discount}: {$order.formated_discount}
              <!-- {/if} -->
              <!-- {if $order.tax gt 0} -->
              + {$lang.tax}: {$order.formated_tax}
              <!-- {/if} -->
              <!-- {if $order.shipping_fee > 0} -->
              + {$lang.shipping_fee}: {$order.formated_shipping_fee}
              <!-- {/if} -->
              <!-- {if $order.insure_fee > 0} -->
              + {$lang.insure_fee}: {$order.formated_insure_fee}
              <!-- {/if} -->
              <!-- {if $order.pay_fee > 0} -->
              + {$lang.pay_fee}: {$order.formated_pay_fee}
              <!-- {/if} -->
              <!-- {if $order.pack_fee > 0} -->
              + {$lang.pack_fee}: {$order.formated_pack_fee}
              <!-- {/if} -->
              <!-- {if $order.card_fee > 0} -->
              + {$lang.card_fee}: {$order.formated_card_fee}
              <!-- {/if} -->        </td>
          </tr>
          <tr>
            <td align="right" bgcolor="#ffffff">
              <!-- {if $order.money_paid > 0} -->
              - {$lang.order_money_paid}: {$order.formated_money_paid}
              <!-- {/if} -->
              <!-- {if $order.surplus > 0} -->
              - {$lang.use_surplus}: {$order.formated_surplus}
              <!-- {/if} -->
              <!-- {if $order.integral_money > 0} -->
              - {$lang.use_integral}: {$order.formated_integral_money}
              <!-- {/if} -->
              <!-- {if $order.bonus > 0} -->
              - {$lang.use_bonus}: {$order.formated_bonus}
              <!-- {/if} -->        </td>
          </tr>
          <tr>
            <td align="right" bgcolor="#ffffff">{$lang.order_amount}: {$order.formated_order_amount}
            <!-- {if $order.extension_code eq "group_buy"} --><br />
            {$lang.notice_gb_order_amount}<!-- {/if} --></td>
          </tr>
            <!-- {if $allow_edit_surplus} 如果可以编辑使用余额数 -->
          <tr>
            <td align="right" bgcolor="#ffffff">
      <form action="user.php" method="post" name="formFee" id="formFee">{$lang.use_more_surplus}:
            <input name="surplus" type="text" size="8" value="0" style="border:1px solid #ccc;"/>{$max_surplus}
            <input type="submit" name="Submit" class="btn-primary" value="{$lang.button_submit}" />
      <input type="hidden" name="act" value="act_edit_surplus" />
      <input type="hidden" name="order_id" value="{$smarty.get.order_id}" />
      </form></td>
          </tr>
    <!--{/if}-->
        </table>
         <div class="blank"></div>
        <h5><span>{$lang.consignee_info}</span></h5>
        <div class="blank"></div>
         <!-- {if $order.allow_update_address gt 0} -->
          <form action="user.php" method="post" name="formAddress" id="formAddress">
           <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
              <tr>
                <td width="15%" align="right" bgcolor="#ffffff">{$lang.consignee_name}: </td>
                <td width="35%" align="left" bgcolor="#ffffff"><input name="consignee" type="text"  class="inputBg" value="{$order.consignee|escape}" size="25">
                </td>
                <td width="15%" align="right" bgcolor="#ffffff">{$lang.email_address}: </td>
                <td width="35%" align="left" bgcolor="#ffffff"><input name="email" type="text"  class="inputBg" value="{$order.email|escape}" size="25" />
                </td>
              </tr>
              <!-- {if $order.exist_real_goods} -->
              <!-- 只有虚拟商品处理-->
              <tr>
                <td align="right" bgcolor="#ffffff">{$lang.detailed_address}: </td>
                <td align="left" bgcolor="#ffffff"><input name="address" type="text" class="inputBg" value="{$order.address|escape} " size="25" /></td>
                <td align="right" bgcolor="#ffffff">{$lang.postalcode}:</td>
                <td align="left" bgcolor="#ffffff"><input name="zipcode" type="text"  class="inputBg" value="{$order.zipcode|escape}" size="25" /></td>
              </tr>
              <!--{/if}-->
              <tr>
                <td align="right" bgcolor="#ffffff">{$lang.phone}:</td>
                <td align="left" bgcolor="#ffffff"><input name="tel" type="text" class="inputBg" value="{$order.tel|escape}" size="25" /></td>
                <td align="right" bgcolor="#ffffff">{$lang.backup_phone}:</td>
                <td align="left" bgcolor="#ffffff"><input name="mobile" type="text"  class="inputBg" value="{$order.mobile|escape}" size="25" /></td>
              </tr>
              <!-- {if $order.exist_real_goods} -->
              <!-- 只有虚拟商品处理-->
              <tr>
                <td align="right" bgcolor="#ffffff">{$lang.sign_building}:</td>
                <td align="left" bgcolor="#ffffff"><input name="sign_building" class="inputBg" type="text" value="{$order.sign_building|escape}" size="25" />
                </td>
                <td align="right" bgcolor="#ffffff">{$lang.deliver_goods_time}:</td>
                <td align="left" bgcolor="#ffffff"><input name="best_time" type="text" class="inputBg" value="{$order.best_time|escape}" size="25" />
                </td>
              </tr>
              <!-- {/if}-->
              <tr>
                <td colspan="4" align="center" bgcolor="#ffffff"><input type="hidden" name="act" value="save_order_address" />
                  <input type="hidden" name="order_id" value="{$order.order_id}" />
                  <input type="submit" class="btn-primary" value="{$lang.update_address}"  />
                </td>
              </tr>
            </table>
          </form>
          <!-- {else} -->
          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td width="15%" align="right" bgcolor="#ffffff">{$lang.consignee_name}:</td>
              <td width="35%" align="left" bgcolor="#ffffff">{$order.consignee}</td>
              <td width="15%" align="right" bgcolor="#ffffff" >{$lang.email_address}:</td>
              <td width="35%" align="left" bgcolor="#ffffff">{$order.email}</td>
            </tr>
            <!-- {if $order.exist_real_goods} -->
            <tr>
              <td align="right" bgcolor="#ffffff">{$lang.detailed_address}:</td>
              <td colspan="3" align="left" bgcolor="#ffffff">{$order.address}
                <!-- {if $order.zipcode} -->
                [{$lang.postalcode}: {$order.zipcode}]
                <!-- {/if} --></td>
            </tr>
            <!-- {/if}-->
            <tr>
              <td align="right" bgcolor="#ffffff">{$lang.phone}:</td>
              <td align="left" bgcolor="#ffffff">{$order.tel} </td>
              <td align="right" bgcolor="#ffffff">{$lang.backup_phone}:</td>
              <td align="left" bgcolor="#ffffff">{$order.mobile}</td>
            </tr>
            <!-- {if $order.exist_real_goods} -->
            <tr>
              <td align="right" bgcolor="#ffffff" >{$lang.sign_building}:</td>
              <td align="left" bgcolor="#ffffff">{$order.sign_building} </td>
              <td align="right" bgcolor="#ffffff" >{$lang.deliver_goods_time}:</td>
              <td align="left" bgcolor="#ffffff">{$order.best_time}</td>
            </tr>
            <!--{/if}-->
          </table>
          <!-- {/if} -->
          <div class="blank"></div>
	{if $order.order_status1 eq 0}
        <h5><span>{$lang.payment}</span></h5>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tr>
                  <td bgcolor="#ffffff">
                  {$lang.select_payment}: {$order.pay_name}。{$lang.order_amount}: <strong>{$order.formated_order_amount}</strong><br />
                  {$order.pay_desc}
                  </td>
                </tr>
                  <tr>
                  <td bgcolor="#ffffff" align="right">
                  <!--{if $payment_list}-->
              <form name="payment" method="post" action="user.php">
              {$lang.change_payment}:
              <select name="pay_id">
                <!--{foreach from=$payment_list item=payment}-->
                <option value="{$payment.pay_id}">
                {$payment.pay_name}({$lang.pay_fee}:{$payment.format_pay_fee})
                </option>
                <!--{/foreach}-->
              </select>
              <input type="hidden" name="act" value="act_edit_payment" />
              <input type="hidden" name="order_id" value="{$order.order_id}" />
              <input type="submit" name="Submit" class="btn-primary" value="{$lang.button_submit}" />
              </form>
              <!--{/if}-->
                  </td>
                </tr>
              </table>
        <div class="blank"></div>
	{/if}
        <h5><span>{$lang.other_info}</span></h5>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <!-- {if $order.shipping_id > 0} -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">{$lang.shipping}:</td>
            <td colspan="3" width="85%" align="left" bgcolor="#ffffff" id="shipping_name">{$order.shipping_name}</td>
          </tr>
          <!-- {/if} -->

          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">{$lang.payment}:</td>
            <td colspan="3" align="left" bgcolor="#ffffff">{$order.pay_name}</td>
          </tr>
          <!--{if $order.insure_fee > 0}-->
          <!--{/if}-->
          <!-- {if $order.pack_name} 是否使用包装 -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">{$lang.use_pack}:</td>
            <td colspan="3" align="left" bgcolor="#ffffff">{$order.pack_name}</td>
          </tr>
          <!-- {/if} 是否使用包装 -->
          <!-- {if $order.card_name} 是否使用贺卡 -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">{$lang.use_card}:</td>
            <td colspan="3" align="left" bgcolor="#ffffff">{$order.card_name}</td>
          </tr>
          <!-- {/if} -->
          <!-- {if $order.card_message} 是否使用贺卡 -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">{$lang.bless_note}:</td>
            <td colspan="3" align="left" bgcolor="#ffffff">{$order.card_message}</td>
          </tr>
          <!-- {/if} 是否使用贺卡 -->
          <!-- {if $order.surplus > 0} 是否使用余额 -->
          <!-- {/if} -->
          <!-- {if $order.integral > 0} 是否使用积分 -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">{$lang.use_integral}:</td>
            <td colspan="3" align="left" bgcolor="#ffffff">{$order.integral}</td>
          </tr>
          <!-- {/if} 是否使用积分 -->
          <!-- {if $order.bonus > 0} 是否使用红包 -->
          <!-- {/if} -->
          <!-- {if $order.inv_payee && $order.inv_content} 是否开发票 -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">{$lang.invoice_title}:</td>
            <td width="36%" align="left" bgcolor="#ffffff">{$order.inv_payee}</td>
            <td width="19%" align="right" bgcolor="#ffffff">{$lang.invoice_content}:</td>
            <td width="25%" align="left" bgcolor="#ffffff">{$order.inv_content}</td>
          </tr>
          <!-- {/if} -->
          <!-- {if $order.postscript} 是否有订单附言 -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">{$lang.order_postscript}:</td>
            <td colspan="3" align="left" bgcolor="#ffffff">{$order.postscript}</td>
          </tr>
          <!-- {/if} -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">{$lang.booking_process}:</td>
            <td colspan="3" align="left" bgcolor="#ffffff">{$order.how_oos_name}</td>
          </tr>
        </table>
      <!--{/if} -->
    <!--#订单详情页 end-->
    <!--#会员余额 start-->
      <!--{if $action eq "account_raply" || $action eq "account_log" || $action eq "account_deposit" || $action eq "account_detail"} -->
        <script type="text/javascript">
          {foreach from=$lang.account_js item=item key=key}
            var {$key} = "{$item}";
          {/foreach}
        </script>
        <h5><span>{$lang.user_balance}</span></h5>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td align="right" bgcolor="#ffffff">
			<a href="user.php?act=account_deposit" class="f6{if $action eq 'account_deposit'} on{/if}">{$lang.surplus_type_0}</a> | 
			<a href="user.php?act=account_raply" class="f6{if $action eq 'account_raply'} on{/if}">{$lang.surplus_type_1}</a> | 
			<a href="user.php?act=account_detail" class="f6{if $action eq 'account_detail'} on{/if}">{$lang.add_surplus_log}</a> | 
			<a href="user.php?act=account_log" class="f6{if $action eq 'account_log'} on{/if}">{$lang.view_application}</a> </td>
          </tr>
        </table>
        <!-- {/if} -->
        <!-- {if $action eq "account_raply"} -->
        <form name="formSurplus" method="post" action="user.php" onSubmit="return submitSurplus()">
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td width="25%" align="right" bgcolor="#ffffff">{$lang.repay_money}:</td>
            <td bgcolor="#ffffff" align="left"><input type="text" name="amount" placeholder="提现金额(¥)" class="inputBg" size="30" />
            </td>
          </tr>
		  
          <tr>
            <td width="25%" align="right"  bgcolor="#ffffff">真实姓名:</td>
            <td bgcolor="#ffffff" align="left"><input type="text" name="real_name" placeholder="真实姓名"  class="inputBg" size="30" />
            </td>
          </tr>
		  
          <tr>
            <td width="25%" align="right" bgcolor="#ffffff">提现方式:</td>
            <td bgcolor="#ffffff" align="left">
<select name="bank_name" class="inputBg">  
  <option value="">请选择提现方式</option> 
  <option value="银行">银行</option> 
  <option value="支付宝">支付宝</option>  
  <option value="微信">微信</option>  
</select>  
			
            </td>
          </tr>
		  
          <tr>
            <td width="25%" align="right" bgcolor="#ffffff">银行账号/支付宝账号/微信账号:</td>
            <td bgcolor="#ffffff" align="left"><input type="text" name="bank_account" placeholder="银行账号/支付宝账号/微信账号"  class="inputBg" size="30" />
            </td>
          </tr>
		  
          <tr>
            <td width="25%" align="right" bgcolor="#ffffff">手机号:</td>
           <td bgcolor="#ffffff" align="left"><input type="text" name="mobile_phone" placeholder="手机号"  class="inputBg" size="30" />
            </td>
          </tr>
		  
		  
          <tr>
            <td width="25%" align="right" bgcolor="#ffffff">{$lang.process_notic}:</td>
            <td bgcolor="#ffffff" align="left"><textarea name="user_note" cols="55" rows="6" placeholder="{$lang.process_notic}" style="border:1px solid #ccc;">{$order.user_note|escape}</textarea></td>
          </tr>          <tr>
            <td bgcolor="#ffffff" colspan="2" align="center">
            <input type="hidden" name="surplus_type" value="1" />
              <input type="hidden" name="act" value="act_account" />
              <input type="submit" name="submit"  class="btn-primary" value="{$lang.submit_request}" />
              <input type="reset" name="reset" class="btn-primary" value="{$lang.button_reset}" />
            </td>
          </tr>
        </table>
        </form>
        <!-- {/if} -->
        <!-- {if $action eq "account_deposit"} -->
        <form name="formSurplus" method="post" action="user.php" onSubmit="return submitSurplus()">
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td width="15%" bgcolor="#ffffff">{$lang.deposit_money}:</td>
              <td align="left" bgcolor="#ffffff"><input type="text" name="amount"  class="inputBg" value="{$order.amount|escape}" size="30" /></td>
            </tr>
            <tr>
              <td bgcolor="#ffffff">{$lang.process_notic}:</td>
              <td align="left" bgcolor="#ffffff"><textarea name="user_note" cols="55" rows="6" style="border:1px solid #ccc;">{$order.user_note|escape}</textarea></td>
            </tr>
          </table>
          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr align="center">
              <td bgcolor="#ffffff"  colspan="3" align="left">{$lang.payment}:</td>
            </tr>
            <tr align="center">
              <td bgcolor="#ffffff">{$lang.pay_name}</td>
              <td bgcolor="#ffffff" width="60%">{$lang.pay_desc}</td>
              <td bgcolor="#ffffff" width="17%">{$lang.pay_fee}</td>
            </tr>
            <!-- {foreach from=$payment item=list} -->
            <tr>
              <td bgcolor="#ffffff" align="left">
              <input type="radio" name="payment_id" value="{$list.pay_id}" />{$list.pay_name}</td>
              <td bgcolor="#ffffff" align="left">{$list.pay_desc}</td>
              <td bgcolor="#ffffff" align="center">{$list.pay_fee}</td>
            </tr>
            <!-- {/foreach} -->
            <tr>
        <td bgcolor="#ffffff" colspan="3"  align="center">
        <input type="hidden" name="surplus_type" value="0" />
          <input type="hidden" name="rec_id" value="{$order.id}" />
          <input type="hidden" name="act" value="act_account" />
          <input type="submit" class="btn-primary" name="submit" value="{$lang.submit_request}" />
          <input type="reset" class="btn-primary" name="reset" value="{$lang.button_reset}" />
        </td>
      </tr>
          </table>
        </form>
        <!-- {/if} -->
        <!-- {if $action eq "act_account"} -->
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td width="25%" align="right" bgcolor="#ffffff">{$lang.surplus_amount}</td>
            <td width="80%" bgcolor="#ffffff">{$amount}</td>
          </tr>
          <tr>
            <td align="right" bgcolor="#ffffff">{$lang.payment_name}</td>
            <td bgcolor="#ffffff">{$payment.pay_name}</td>
          </tr>
          <tr>
            <td align="right" bgcolor="#ffffff">{$lang.payment_fee}</td>
            <td bgcolor="#ffffff">{$pay_fee}</td>
          </tr>
          <tr>
            <td align="right" valign="middle" bgcolor="#ffffff">{$lang.payment_desc}</td>
            <td bgcolor="#ffffff">{$payment.pay_desc}</td>
          </tr>
          <tr>
            <td colspan="2" bgcolor="#ffffff">{$payment.pay_button}</td>
          </tr>
        </table>
        <!-- {/if} -->
       <!-- {if $action eq "account_detail"} -->
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr align="center">
            <td bgcolor="#ffffff">{$lang.process_time}</td>
            <td bgcolor="#ffffff">{$lang.surplus_pro_type}</td>
            <td bgcolor="#ffffff">{$lang.money}</td>
            <td bgcolor="#ffffff">{$lang.change_desc}</td>
          </tr>
          <!--{foreach from=$account_log item=item}-->
          <tr>
            <td align="center" bgcolor="#ffffff">{$item.change_time}</td>
            <td align="center" bgcolor="#ffffff">{$item.type}</td>
            <td align="right" bgcolor="#ffffff">{$item.amount}</td>
            <td bgcolor="#ffffff" title="{$item.change_desc}">&nbsp;&nbsp;{$item.short_change_desc}</td>
          </tr>
          <!--{/foreach}-->
          <tr>
            <td colspan="4" align="center" bgcolor="#ffffff"><div align="right">{$lang.current_surplus}{$surplus_amount}</div></td>
          </tr>
        </table>
        <!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
        <!-- {/if} -->
        <!-- {if $action eq "account_log"} -->
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr align="center">
            <td bgcolor="#ffffff">{$lang.process_time}</td>
            <td bgcolor="#ffffff">{$lang.surplus_pro_type}</td>
            <td bgcolor="#ffffff">{$lang.money}</td>
            <td bgcolor="#ffffff">{$lang.process_notic}</td>
            <td bgcolor="#ffffff">{$lang.admin_notic}</td>
            <td bgcolor="#ffffff">{$lang.is_paid}</td>
            <td bgcolor="#ffffff">{$lang.handle}</td>
          </tr>
          <!--{foreach from=$account_log item=item}-->
          <tr>
            <td align="center" bgcolor="#ffffff">{$item.add_time}</td>
            <td align="left" bgcolor="#ffffff">{$item.type}</td>
            <td align="right" bgcolor="#ffffff">{$item.amount}</td>
            <td align="left" bgcolor="#ffffff" width="450">{$item.user_note}</td>
            <td align="left" bgcolor="#ffffff">{$item.short_admin_note}</td>
            <td align="center" bgcolor="#ffffff">{$item.pay_status}</td>
            <td align="right" bgcolor="#ffffff">{$item.handle}
              <!-- {if ($item.is_paid eq 0 && $item.process_type eq 1) || $item.handle} -->
              <a href="user.php?act=cancel&id={$item.id}" onclick="if (!confirm('{$lang.confirm_remove_account}')) return false;">{$lang.is_cancel}</a>
              <!-- {/if} -->
                            </td>
          </tr>
          <!--{/foreach}-->
          <tr>
            <td colspan="7" align="right" bgcolor="#ffffff">{$lang.current_surplus}{$surplus_amount}</td>
          </tr>
        </table>
        <!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
      <!-- {/if} -->
      <!--#会员余额 end-->
      <!--#收货地址页面 -->
      <!--{if $action eq 'address_list'} -->
        <h5><span>{$lang.consignee_info}</span></h5>
        <div class="blank"></div>
         {* 包含脚本文件 *}
            {insert_scripts files='utils.js,transport_jquery.js,region.js,shopping_flow.js'}
            <script type="text/javascript">
              region.isAdmin = false;
              {foreach from=$lang.flow_js item=item key=key}
              var {$key} = "{$item}";
              {/foreach}
              {literal}
              onload = function() {
                if (!document.all)
                {
                  document.forms['theForm'].reset();
                }
              }
              {/literal}
            </script>
            <!-- {foreach from=$consignee_list item=consignee key=sn} -->
            <form action="user.php" method="post" name="theForm" onsubmit="return checkConsignee(this)">
              <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tr>
                  <td align="right" bgcolor="#ffffff">{$lang.country_province}:</td>
                  <td colspan="3" align="left" bgcolor="#ffffff"><select name="country" id="selCountries_{$sn}" onchange="region.changed(this, 1, 'selProvinces_{$sn}')">
                      <option value="0">{$lang.please_select}{$name_of_region[0]}</option>
                      <!-- {foreach from=$country_list item=country} -->
                      <option value="{$country.region_id}" {if $consignee.country eq $country.region_id}selected{/if}>{$country.region_name}</option>
                      <!-- {/foreach} -->
                    </select>
                    <select name="province" id="selProvinces_{$sn}" onchange="region.changed(this, 2, 'selCities_{$sn}')">
                      <option value="0">{$lang.please_select}{$name_of_region[1]}</option>
                      <!-- {foreach from=$province_list.$sn item=province} -->
                      <option value="{$province.region_id}" {if $consignee.province eq $province.region_id}selected{/if}>{$province.region_name}</option>
                      <!-- {/foreach} -->
                    </select>
                    <select name="city" id="selCities_{$sn}" onchange="region.changed(this, 3, 'selDistricts_{$sn}')">
                      <option value="0">{$lang.please_select}{$name_of_region[2]}</option>
                      <!-- {foreach from=$city_list.$sn item=city} -->
                      <option value="{$city.region_id}" {if $consignee.city eq $city.region_id}selected{/if}>{$city.region_name}</option>
                      <!-- {/foreach} -->
                    </select>
                    <select name="district" id="selDistricts_{$sn}" {if !$district_list.$sn}style="display:none"{/if}>
                      <option value="0">{$lang.please_select}{$name_of_region[3]}</option>
                      <!-- {foreach from=$district_list.$sn item=district} -->
                      <option value="{$district.region_id}" {if $consignee.district eq $district.region_id}selected{/if}>{$district.region_name}</option>
                      <!-- {/foreach} -->
                    </select>
                  {$lang.require_field} </td>
                </tr>
                <tr>
                  <td align="right" bgcolor="#ffffff">{$lang.consignee_name}:</td>
                  <td align="left" bgcolor="#ffffff"><input name="consignee" type="text" class="inputBg" id="consignee_{$sn}" value="{$consignee.consignee|escape}" />
                  {$lang.require_field} </td>
                  <td align="right" bgcolor="#ffffff">{$lang.email_address}:</td>
                  <td align="left" bgcolor="#ffffff"><input name="email" type="text" class="inputBg" id="email_{$sn}" value="{$consignee.email|escape}" />
                  {$lang.require_field}</td>
                </tr>
                <tr>
                  <td align="right" bgcolor="#ffffff">{$lang.detailed_address}:</td>
                  <td align="left" bgcolor="#ffffff"><input name="address" type="text" class="inputBg" id="address_{$sn}" value="{$consignee.address|escape}" />
                  {$lang.require_field}</td>
                  <td align="right" bgcolor="#ffffff">{$lang.postalcode}:</td>
                  <td align="left" bgcolor="#ffffff"><input name="zipcode" type="text" class="inputBg" id="zipcode_{$sn}" value="{$consignee.zipcode|escape}" /></td>
                </tr>
                <tr>
                  <td align="right" bgcolor="#ffffff">{$lang.phone}:</td>
                  <td align="left" bgcolor="#ffffff"><input name="tel" type="text" class="inputBg" id="tel_{$sn}" value="{$consignee.tel|escape}" />
                  </td>
                  <td align="right" bgcolor="#ffffff">{$lang.backup_phone}:</td>
                  <td align="left" bgcolor="#ffffff"><input name="mobile" type="text" class="inputBg" id="mobile_{$sn}" value="{$consignee.mobile|escape}" />{$lang.require_field}</td>
                </tr>
                <tr>
                  <td align="right" bgcolor="#ffffff">{$lang.sign_building}:</td>
                  <td align="left" bgcolor="#ffffff"><input name="sign_building" type="text" class="inputBg" id="sign_building_{$sn}" value="{$consignee.sign_building|escape}" /></td>
                  <td align="right" bgcolor="#ffffff">{$lang.deliver_goods_time}:</td>
                  <td align="left" bgcolor="#ffffff"><input name="best_time" type="text"  class="inputBg" id="best_time_{$sn}" value="{$consignee.best_time|escape}" /></td>
                </tr>
                <tr>
                  <td align="right" bgcolor="#ffffff">&nbsp;</td>
                  <td colspan="3" align="center" bgcolor="#ffffff">
		    <!-- {if $consignee.consignee} -->
                    <input type="submit" name="submit" class="btn-primary" value="{$lang.confirm_edit}" />
                    <input name="button" type="button" class="btn-primary"  onclick="if (confirm('{$lang.confirm_drop_address}'))location.href='user.php?act=drop_consignee&id={$consignee.address_id}'" value="{$lang.drop}" />
                    <!-- {else} -->
                    <input type="submit" name="submit" class="btn-primary"  value="{$lang.add_address}"/>
                    <!-- {/if} -->
                    <input type="hidden" name="act" value="act_edit_address" />
                    <input name="address_id" type="hidden" value="{$consignee.address_id}" />
                  </td>
                </tr>
              </table>
            </form>

            <!-- {/foreach} -->
      <!--{/if} -->
    <!--#收货地址添加页面 -->
      <!--* 积分兑换-->
       <!--{if $action eq 'transform_points'} -->
       <h5><span>{$lang.transform_points}</span></h5>
             <div class="blank"></div>
       <!--{if $exchange_type eq 'ucenter'}-->
        <form action="user.php" method="post" name="transForm" onsubmit="return calcredit();">
       <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tr>
                    <th width="120" bgcolor="#FFFFFF" align="right" valign="top">{$lang.cur_points}:</th>
                    <td bgcolor="#FFFFFF">
                    <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 />
                    <div class="blank"></div>
                    <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" />
                    </td>
                    </tr>
          <tr><td bgcolor="#FFFFFF">&nbsp;</td>
          <td bgcolor="#FFFFFF">&nbsp;</td>
          </tr>
          <tr>
            <th align="right" bgcolor="#FFFFFF"><label for="amount">{$lang.exchange_amount}:</label></th>
            <td bgcolor="#FFFFFF"><input size="15" name="amount" id="amount" value="0" onkeyup="calcredit();" type="text" />
                <select name="fromcredits" id="fromcredits" onchange="calcredit();">
                  {html_options options=$lang.exchange_points selected=$selected_org}
                </select>
            </td>
          </tr>
          <tr>
            <th align="right" bgcolor="#FFFFFF"><label for="desamount">{$lang.exchange_desamount}:</label></th>
            <td bgcolor="#FFFFFF"><input type="text" name="desamount" id="desamount" disabled="disabled" value="0" size="15" />
              <select name="tocredits" id="tocredits" onchange="calcredit();">
                {html_options options=$to_credits_options selected=$selected_dst}
              </select>
            </td>
          </tr>
          <tr>
            <th align="right" bgcolor="#FFFFFF">{$lang.exchange_ratio}:</th>
            <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>
          </tr>
          <tr><td bgcolor="#FFFFFF">&nbsp;</td>
          <td bgcolor="#FFFFFF"><input type="hidden" name="act" value="act_transform_ucenter_points" /><input type="submit" name="transfrom" value="{$lang.transform}" /></td></tr>
  </table>
        </form>
       <script type="text/javascript">
        {foreach from=$lang.exchange_js item=lang_js key=key}
        var {$key} = '{$lang_js}';
        {/foreach}

        var out_exchange_allow = new Array();
        {foreach from=$out_exchange_allow item=ratio key=key}
        out_exchange_allow['{$key}'] = '{$ratio}';
        {/foreach}

        function calcredit()
        {
            var frm = document.forms['transForm'];
            var src_credit = frm.fromcredits.value;
            var dest_credit = frm.tocredits.value;
            var in_credit = frm.amount.value;
            var org_title = frm.fromcredits[frm.fromcredits.selectedIndex].innerHTML;
            var dst_title = frm.tocredits[frm.tocredits.selectedIndex].innerHTML;
            var radio = 0;
            var shop_points = ['rank_points', 'pay_points'];
            if (parseFloat(in_credit) > parseFloat(document.getElementById(shop_points[src_credit]).value))
            {
                alert(balance.replace('{%s}', org_title));
                frm.amount.value = frm.desamount.value = 0;
                return false;
            }
            if (typeof(out_exchange_allow[dest_credit+'|'+src_credit]) == 'string')
            {
                radio = (1 / parseFloat(out_exchange_allow[dest_credit+'|'+src_credit])).toFixed(2);
            }
            document.getElementById('orgcredittitle').innerHTML = org_title;
            document.getElementById('descreditamount').innerHTML = radio;
            document.getElementById('descredittitle').innerHTML = dst_title;
            if (in_credit > 0)
            {
                if (typeof(out_exchange_allow[dest_credit+'|'+src_credit]) == 'string')
                {
                    frm.desamount.value = Math.floor(parseFloat(in_credit) / parseFloat(out_exchange_allow[dest_credit+'|'+src_credit]));
                    frm.transfrom.disabled = false;
                    return true;
                }
                else
                {
                    frm.desamount.value = deny;
                    frm.transfrom.disabled = true;
                    return false;
                }
            }
            else
            {
                return false;
            }
        }
       </script>
       <!--{else}-->
        <b>{$lang.cur_points}:</b>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td width="30%" valign="top" bgcolor="#FFFFFF"><table border="0">
              <!--{foreach from=$bbs_points item=points}-->
              <tr>
                <th>{$points.title}:</th>
                <td width="120" style="border-bottom:1px solid #DADADA;">{$points.value}</td>
              </tr>
              <!--{/foreach} -->
            </table></td>
            <td width="50%" valign="top" bgcolor="#FFFFFF"><table>
                    <tr>
                <th>{$lang.pay_points}:</th>
                <td width="120" style="border-bottom:1px solid #DADADA;">{$shop_points.pay_points}</td>
                    </tr>
              <tr>
                <th>{$lang.rank_points}:</th>
                <td width="120" style="border-bottom:1px solid #DADADA;">{$shop_points.rank_points}</td>
              </tr>
            </table></td>
          </tr>
        </table>
        <br />
        <b>{$lang.rule_list}:</b>
        <ul class="point clearfix">
          <!-- {foreach from=$rule_list item=rule} -->
          <li><font class="f1">·</font>"{$rule.from}" {$lang.transform} "{$rule.to}" {$lang.rate_is} {$rule.rate}
          <!-- {/foreach} -->
        </ul>

        <form action="user.php" method="post" name="theForm">
        <table width="100%" border="1" align="center" cellpadding="5" cellspacing="0" style="border-collapse:collapse;border:1px solid #DADADA;">
          <tr style="background:#F1F1F1;">
            <th>{$lang.rule}</th>
            <th>{$lang.transform_num}</th>
            <th>{$lang.transform_result}</th>
          </tr>
          <tr>
            <td>
              <select name="rule_index" onchange="changeRule()">
                <!--{foreach from=$rule_list item=rule key=key}-->
                <option value="{$key}">{$rule.from}->{$rule.to}</option>
                <!--{/foreach}-->
              </select>
          </td>
          <td>
            <input type="text" name="num" value="0" onkeyup="calPoints()"/>
          </td>
          <td><span id="ECS_RESULT">0</span></td>
          </tr>
          <tr>
            <td colspan="3" align="center"><input type="hidden" name="act" value="act_transform_points"  /><input type="submit" value="{$lang.transform}" /></td>
          </tr>
        </table>
        </form>
       <script type="text/javascript">
          //<![CDATA[
            var rule_list = new Object();
            var invalid_input = '{$lang.invalid_input}';
            {foreach from=$rule_list item=rule key=key}
            rule_list['{$key}'] = '{$rule.rate}';
            {/foreach}
            function calPoints()
            {
              var frm = document.forms['theForm'];
              var rule_index = frm.elements['rule_index'].value;
              var num = parseInt(frm.elements['num'].value);
              var rate = rule_list[rule_index];

              if (isNaN(num) || num < 0 || num != frm.elements['num'].value)
              {
                document.getElementById('ECS_RESULT').innerHTML = invalid_input;
                rerutn;
              }
              var arr = rate.split(':');
              var from = parseInt(arr[0]);
              var to = parseInt(arr[1]);

              if (from <=0 || to <=0)
              {
                from = 1;
                to = 0;
              }
              document.getElementById('ECS_RESULT').innerHTML = parseInt(num * to / from);
            }

            function changeRule()
            {
              document.forms['theForm'].elements['num'].value = 0;
              document.getElementById('ECS_RESULT').innerHTML = 0;
            }
          //]]>
       </script>
       <!--{/if}-->
        <!--{/if} -->
        <!--#积分兑换 -->

        <!--#会员卡 -->
        <!-- {if $action eq "user_card"} -->
         <form  action="user.php" method="post">
    <h5><span>绑定会员卡/修改卡密</span></h5>
    <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
    <tr>
          <td width="28%" align="left" bgcolor="#FFFFFF" colspan="2" >
您已绑定的卡号:<br />
          {if $card_list}
          <table border="0" cellpadding="0" cellspacing="0" width="80%" align="center">
          <tr>
    <th  align="center">卡号</th>
    <th  align="center">等级</th>
    <th  align="center">发卡方式</th>
    <th  align="center">绑定时间</th>
    <th  align="center">状态</th>
     <th  align="center">备注</th>
  </tr>
          {foreach from=$card_list item=card}
          
  <tr>
    <td align="center">{$card.card_no}</td>
    <td  align="center">{$card.card_level}</td>
    <td  align="center">{$card.send_type}</td>
    <td  align="center">{$card.str_bind_time}</td>
    <td  align="center">{if $card.is_show}可用{else}锁定{/if}</td>
     <td  align="center">{$card.des}</td>
  </tr>
  


          
          {/foreach}
          
          </table>
          {else}
          暂无
          {/if}
          </td>
          <tr>
        
        <tr>
        <td colspan="2" bgcolor="#FFFFFF" align="left">
        <span class="f4">提示:</span><br />
1.每个可以用户绑定多个会员卡号,绑定后你就可以用任何一个卡号登录<br />
2.使用会员卡号登录时请输入会员卡号和密码(卡密)<br />
        </td>
        </tr>
        <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">卡号:</td>
          <td width="76%" align="left" bgcolor="#FFFFFF"><input name="card_no" type="text" size="25"  class="inputBg" value="" /></td>
          <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">卡密:</td>
          <td width="76%" align="left" bgcolor="#FFFFFF"><input name="card_pass" type="password" size="25"  class="inputBg" value="" /></td>
          
        </tr>
        <tr><td colspan="2" bgcolor="#FFFFFF" align="center">
        <input name="act" type="hidden" value="user_card" />
        <input name="bind" type="submit" value="绑定" class="btn-primary" style="border:none;" />&nbsp;<input name="unbind" type="submit" value="解绑" class="btn-primary" style="border:none;" />&nbsp;<input name="chgcardpass" type="submit" value="修改卡密" class="btn-primary" style="border:none;" /></td></tr>
    </table>    
    </form>
        
        <!--{/if} -->
        <!--#会员卡 -->

          <!-- {if $action eq back_list} -->
	  <h5><span>售后订单列表</span></h5>
          <div class="blank"></div>
          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#E6E6E6">
            <tr align="center">
              <td bgcolor="#ffffff">售后单号</td>
              <td bgcolor="#ffffff">原订单号</td>
              <td bgcolor="#ffffff" width="20%">商品名称</td>
              <td bgcolor="#ffffff">申请时间</td>
              <td bgcolor="#ffffff">应退金额</td>
              <td bgcolor="#ffffff">{$lang.order_status}</td>
              <td bgcolor="#ffffff">{$lang.handle}</td>
            </tr>
            <!--{foreach from=$orders item=item}-->
            <tr>
              <td align="center" bgcolor="#ffffff">{$item.back_id}</td>
              <td align="center" bgcolor="#ffffff">{$item.order_sn}</td>
              <td align="center" bgcolor="#ffffff" ><a href="{$item.goods_url}" target="_blank">{$item.goods_name}</a></td>
              <td align="center" bgcolor="#ffffff">{$item.order_time}</td>
              <td align="right" bgcolor="#ffffff">{$item.refund_money_1}</td>
              <td align="center" bgcolor="#ffffff">{$item.status_back}</td>
              <td align="center" bgcolor="#ffffff">{if $item.status_back eq 0} <a href="user.php?act=del_back_order&id={$item.back_id}" onclick="return confirm('你确认要取消吗?')">取消</a> | {/if} <a href="user.php?act=back_order_detail&id={$item.back_id}">查看</a></td>
            </tr>
            <!--{/foreach}-->
          </table>
          <div class="blank5"></div>
          <!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
          <div class="blank5"></div>
          <!-- {/if} --> 
          <!-- {if $action eq back_order} -->
          <div class="tabmenu">
            <ul class="tab pngFix">
              <li class="active"> <a href="#"><!-- {if $back_goods.shipping_time_end == 0} -->
    退款\退货
    <!-- {else} -->
    申请返修
    <!-- {/if} -->退换货订单提交</a> </li>
            </ul>
          </div>
          <div class="blank"></div>
          <script>
	function check_back_form()
	{
		var now_number = Number(document.getElementById("tui_goods_number").value);
		var goods_number = {$back_goods.goods_number};
		if (now_number < 1)
		{
			alert("提交数量不能小于1");
			document.getElementById("tui_goods_number").value = 1;
			document.getElementById("tui_goods_number").focus();
			return false;
		}
		else if (now_number > goods_number)
		{
			alert("提交数量不能超过购买数量"+goods_number);
			document.getElementById("tui_goods_number").value = goods_number;
			document.getElementById("tui_goods_number").focus();
			return false;
		}
		if (document.getElementById("back_reason").value == '')
		{
			alert("请输入问题描述!");	
			document.getElementById("back_reason").focus();
			return false;
		}
		
		if (document.getElementById("back_type_3").checked = true)
		{
			if (document.getElementById("back_address").value == '')
			{
				alert("请输入收货地址!");	
				document.getElementById("back_address").focus();
				return false;
			}
			if (document.getElementById("back_consignee").value == '')
			{
				alert("请输入联系人姓名!");	
				document.getElementById("back_consignee").focus();
				return false;
			}
			if (document.getElementById("back_mobile").value == '')
			{
				alert("请输入手机号码!");	
				document.getElementById("back_mobile").focus();
				return false;
			}
		}
	}
	</script>
          <form action="user.php?act=back_order_act" name="theForm" id="theForm" method="post" onsubmit="return check_back_form();">
            <table width="100%" border="0" cellpadding="5" cellspacing="1"  bgcolor="#E6E6E6">
              <tr>
                <td align=center bgcolor="#FFFFFF">订单编号</td>
                <td align=center bgcolor="#FFFFFF">商品名称</td>
                <td align=center bgcolor="#FFFFFF">商品属性</td>
                <td align=center bgcolor="#FFFFFF">商品价格</td>
                <td align=center bgcolor="#FFFFFF">购买数量</td>
                <td align=center bgcolor="#FFFFFF">小计</td>
              </tr>
              <tr>
                <td align=center bgcolor="#FFFFFF">{$back_goods.order_sn}</td>
                <td align=center bgcolor="#FFFFFF">{$back_goods.goods_name} </td>
                <td bgcolor="#FFFFFF">{$back_goods.goods_attr}</td>
                <td align=center bgcolor="#FFFFFF">{$back_goods.goods_price_format}</td>
                <td align=center bgcolor="#FFFFFF">{$back_goods.goods_number}</td>
                <td align=center bgcolor="#FFFFFF">{$back_goods.total_price_format}</td>
              </tr>
            </table>
            <div class="blank"></div>
            <div class="blank"></div>
            <table width="100%" border="0" cellpadding="5" cellspacing="1" >
              <tr>
                <td width="15%" align="right" valign=top>服务类型:</td>
        <td>
        	<!-- {if $back_goods.shipping_time_end == 0} -->
            {if $smarty.get.x != 1}<input type="radio" name="back_type" id="back_type_1" value="1" {if $smarty.get.x != 1}checked="checked" {/if}onclick="tui_box_show(1)" />退货 {/if}
            <!--<input type="radio" name="back_type" id="back_type_2" value="2" onclick="tui_box_show(2)" />换货 -->
            <input type="radio" name="back_type" id="back_type_4" value="4" {if $smarty.get.x == 1}checked="checked" {/if}onclick="tui_box_show(3)" />退款(无需退货) 
            <!-- {else} -->
            <input type="radio" name="back_type" id="back_type_3" value="3" checked="checked" />申请返修
            <!-- {/if} -->
            
            <input type="hidden" name="tui_goods_price" value ="{$back_goods.goods_price}">
            <input type="hidden" name="product_id_tui" value ="{$back_goods.product_id}" >
            <input type="hidden" name="goods_attr_tui" value ="{$back_goods.goods_attr}" >
        </td>
              </tr>
              <tr id="thh_2" style="display:none">
                <td width="15%" align="right" valign=top></td>
                <td><div>
                    <input type="button" name="add_huan_btton" id="add_huan_btton" value="添加换货商品" onclick="javascript:show_huan_goods();">
                    <font color=#ff3300>(*)</font> </div>
                  <table id="huan_goods" style="padding:10px;background:#eee;display:none;">
                    <tr>
                      <td align=right>商品名称:</td>
                      <td>{$back_goods.goods_name} </td>
                    </tr>
                    <!-- {foreach from=$specification item=spec key=spec_key} --> 
                    <!-- {if $spec.attr_type eq 1} -->
                    <tr>
                      <td valign=top style="padding-top:5px;" align=right>{$spec.name}:</td>
                      <td ><div class="catt"> 
                          <!-- {foreach from=$spec.values item=value key=key} --> 
                          <a {if $key eq 0}class="cattsel"{/if} onclick="changeAtt(this,{$back_goods.goods_id})" href="javascript:;" name="{$value.id}" title="[{if $value.price gt 0}{$lang.plus}{elseif $value.price lt 0}{$lang.minus}{/if} {$value.format_price|abs}]">{$value.label}
                          <input style="display:none" id="spec_value_{$value.id}" type="radio" name="spec_{$spec_key}" value="{$value.id}" {if $key eq 0}checked{/if} />
                          </a> 
                          <!-- {/foreach} --> 
                        </div>
                        <input type="hidden" name="spec_list" value="{$key}" /></td>
                    </tr>
                    <!-- {/if} --> 
                    <!-- {/foreach} -->
                    <tr>
                      <td colspan=2><input type="button" value="确定" onclick="add_huan_goods({$back_goods.goods_id});"></td>
                    </tr>
                  </table>
                  <table id="huan_box" >
                  </table></td>
              </tr>
              <tr>
                <td width="15%" align="right" valign=top>提交数量:</td>
                <td><input type="text" name="tui_goods_number" id="tui_goods_number" value="{$back_goods.goods_number}" size=5></td>
              </tr>
              <tr>
                <td width="15%" align="right" valign=top>问题描述:</td>
                <td><textarea name="back_reason" id="back_reason" rows=5 cols=50></textarea>
                  <font color=#ff3300>(*)</font>
                  <div style="color:#999">请您如实填写申请原因及商品情况,字数在500字内。</div></td>
              </tr>
              <tr>
                <td width="15%" align="right" valign=top>图片信息:</td>
                <td>
		<link rel="stylesheet" href="includes/kindeditor/themes/default/default.css" />
                <script src="includes/kindeditor/kindeditor.js"></script>
		<script>
			KindEditor.ready(function(K) {
				var editor = K.editor({
					allowFileManager : true
				});
				K('#back_order_img').click(function() {
					editor.loadPlugin('multiimage', function() {
						editor.plugin.multiImageDialog({
							clickFn : function(urlList) {
								var div = K('#back_order_img_list');
								div.html('');
								K.each(urlList, function(i, data) {
									div.append('<div><img src="' + data.url + '" height="60"><input type="hidden" name="imgs[]" value="' + data.url + '" /></div>');
								});
								editor.hideDialog();
							}
						});
					});
				});
			});
		</script>
                <style>
			#back_order_img_list div { float:left; margin:0 10px 10px 0;}
                </style>
                  <div id="back_order_img_list" class="clearfix"> </div>
                  <div><img id="back_order_img" src="images/back_order_img.gif" /></div>
                  <div style="margin-top:10px;">为了帮助我们更好的解决问题,请您上传图片</div>
                  <div style="color:#999">每张图片大小不超过2M,支持gif,jpg,png,jpeg格式文件</div></td>
              </tr>
    <!-- {if $back_goods.shipping_time_end == 0} -->
    <tr id="thh_1">
    <!-- {else} -->
    <tr id="thh_1" style="display:none">
    <!-- {/if} -->
                <td width="15%" align="right" valign=top>退款方式:</td>
                <td><input type="radio" name="back_pay" value="1" checked="checked" />
                  退款至账户余额<br />
                  <input type="radio" name="back_pay" value="2" />
                  线下退款
                  </td>
              </tr>
    <!-- {if $smarty.get.x == 1} -->
	<tbody id="thh_address" style="display:none">
    <!-- {else} -->
	<tbody id="thh_address">
    <!-- {/if} -->
                <tr>
                  <td width="15%" align="right" >收货地址:</td>
                  <td> {insert_scripts files='utils.js,transport.js,region.js,shopping_flow.js'}
                    <select name="country" id="selCountries_1" onchange="region.changed(this, 1, 'selProvinces_1')">
                      <option value="0">{$lang.please_select}{$name_of_region[0]}</option>
                      <!-- {foreach from=$country_list item=country} -->
                      <option value="{$country.region_id}" {if $order.country eq $country.region_id}selected{/if}>{$country.region_name}</option>
                      <!-- {/foreach} -->
                    </select>
                    <select name="province" id="selProvinces_1" onchange="region.changed(this, 2, 'selCities_1')">
                      <option value="0">{$lang.please_select}{$name_of_region[1]}</option>
                      <!-- {foreach from=$shop_province item=province} -->
                      <option value="{$province.region_id}" {if $order.province eq $province.region_id}selected{/if}>{$province.region_name}</option>
                      <!-- {/foreach} -->
                    </select>
                    <select name="city" id="selCities_1" onchange="region.changed(this, 3, 'selDistricts_1')">
                      <option value="0">{$lang.please_select}{$name_of_region[2]}</option>
                      <!-- {foreach from=$shop_city item=city} -->
                      <option value="{$city.region_id}" {if $order.city eq $city.region_id}selected{/if}>{$city.region_name}</option>
                      <!-- {/foreach} -->
                    </select>
                    <select name="district" id="selDistricts_1" {if !$shop_district}style="display:none"{/if}>
                      <option value="0">{$lang.please_select}{$name_of_region[3]}</option>
                      <!-- {foreach from=$shop_district item=district} -->
                      <option value="{$district.region_id}" {if $order.district eq $district.region_id}selected{/if}>{$district.region_name}</option>
                      <!-- {/foreach} -->
                    </select>
                    <div>
                      <input type="text" name="back_address" id="back_address" size=50 value="{$order.address}">
                      <font color=#ff3300>(*)</font></div></td>
                </tr>
                <tr>
                  <td align="right" >邮政编码:</td>
                  <td><input type="text" name="back_zipcode"  id="back_zipcode" size=20 value="{$order.zipcode}"></td>
                </tr>
                <tr>
                  <td width="15%" align="right" >联系人姓名:</td>
                  <td><input type="text" name="back_consignee"  id="back_consignee" size=20 value="{$order.consignee}">
                    <font color=#ff3300>(*)</font></td>
                </tr>
                <tr>
                  <td width="15%" align="right" >手机号码:</td>
                  <td><input type="text" name="back_mobile"  id="back_mobile" size=20 value="{$order.mobile}">
                    <font color=#ff3300>(*)</font></td>
                </tr>
              </tbody>
              <tr>
                <td width="15%" align="right" >我要留言:</td>
                <td><textarea name="back_postscript" rows=5 cols=50></textarea></td>
              </tr>
              <tr>
                <td colspan=2 align=center><input type="hidden" name="act" value="back_order_act">
                  <input type="hidden" name="order_id" value="{$back_goods.order_id}">
                  <input type="hidden" name="order_sn" value="{$back_goods.order_sn}">
                  <input type="hidden" name="goods_id" value="{$back_goods.goods_id}">
                  <input type="hidden" name="goods_name" value="{$back_goods.goods_name}">
                  <input type="hidden" name="goods_sn" value="{$back_goods.goods_sn}">
                  <input type="hidden" name="old_goods_number" value="{$back_goods.goods_number}">
                  <input name="submit" type="submit" value="确认" class="btn-primary" style="border:none;" />
                  <input name="reset" type="reset" value="取消" class="btn-primary" style="border:none;" /></td>
              </tr>
            </table>
            <script>

	function show_huan_goods()
	{
	   if (document.getElementById('huan_goods').style.display=="block")
	   {
		document.getElementById('huan_goods').style.display="none";
	   }
	   else if(document.getElementById('huan_goods').style.display=="none")
	   {
		document.getElementById('huan_goods').style.display="block";
	   }
	}

	function changeAtt(t,goods_id) {
	t.lastChild.checked='checked';
	for (var i = 0; i<t.parentNode.childNodes.length;i++) {
		if (t.parentNode.childNodes[i].className == 'cattsel') {
		t.parentNode.childNodes[i].className = '';
		}
	}

	t.className = "cattsel";	
	}

	function  add_huan_goods(goods_id)
	{
	   var goods        = new Object();
	   var formBuy      = document.forms['theForm'];
	   spec_arr = getSelectedAttributes(formBuy);
	   goods.spec     = spec_arr;
	   goods.goods_id = goods_id;
	   Ajax.call('user.php?act=add_huan_goods', 'goods=' + goods.toJSONString(), add_huan_goodsResponse, 'POST', 'JSON');
	}
       function rand_str(prefix)
	{
	var dd = new Date();
	 var tt = dd.getTime();
	tt = prefix + tt;

	var rand = Math.random();
	rand = Math.floor(rand * 100);

	return (tt + rand);
	}

	function add_huan_goodsResponse(result)
	{
		var table_list = document.getElementById('huan_box');
		var new_tr_id = rand_str('t');
		var index = table_list.rows.length; 
		var new_row = table_list.insertRow(index);//新增行
		new_row.setAttribute("id", new_tr_id);
		var new_col = new_row.insertCell(0);
		new_col.innerHTML =  result.goods_name + result.content + '<input type="hidden" name="product_id_huan[]" id="pro_"'+index+' value="' + result.product_id + '"><input type="hidden" name="goods_attr_huan[]" value="' + result.content + '"><input type="button" class="button" value="删除 " onclick="javascript:del_huan_goods(\'' + new_tr_id + '\');"/>';
	
	}


	function del_huan_goods(tr_number)
	{
	if (tr_number.length > 0)
	{
		if (confirm("确定删除吗?") == false)
		{
			return false;
		}
		var table_list = document.getElementById('huan_box');
		for (var i = 0; i < table_list.rows.length; i++)
		{
		if (table_list.rows[i].id == tr_number)
		{
		 table_list.deleteRow(i);
		}
		}
	}
	return true;
	}

	function tui_box_show(type)
	{
		if (type == 1)
		{
			document.getElementById("thh_1").style.display = '';
			document.getElementById("thh_2").style.display = 'none';
			document.getElementById("thh_4").style.display = '';
			document.getElementById("thh_address").style.display = '';
		}
		
		if (type == 2)
		{
			document.getElementById("thh_1").style.display = 'none';
			document.getElementById("thh_2").style.display = '';
			document.getElementById("thh_4").style.display = '';
			document.getElementById("thh_address").style.display = '';
		}
		
		if (type == 3)
		{
			document.getElementById("thh_1").style.display = '';
			document.getElementById("thh_2").style.display = 'none';
			document.getElementById("thh_4").style.display = '';
			document.getElementById("thh_address").style.display = 'none';
		}
		
	}

	function check_back(frm)
	{
	var back_number = {$back_goods.goods_number};
	//alert(back_number);
	var msg = new Array();
	var err = false; 
	if (frm.elements['back_consignee'].value == "" )
	{
	     err = true;
	     msg.push('换回商品收件人不能为空!');
        }
	if (frm.elements['back_address'].value == "" )
	{
	     err = true;
	     msg.push('收货人地址不能为空!');
        }
	
	var back_type_list = frm.elements["back_type"];
	var tui_goods_number=0;
	var huan_goods_number=0;
	if (back_type_list[0].checked == true)
	{
		tui_goods_number = frm.elements['tui_goods_number'].value;		
	}
	if (back_type_list[1].checked == true)
	{
		var table_list = document.getElementById('huan_box');
		huan_goods_number = table_list.rows.length;
	}
	var all_goods_number = Number(huan_goods_number) + Number(tui_goods_number);
	var old_goods_number =frm.elements['old_goods_number'].value;
	//alert(all_goods_number);
	if (all_goods_number > old_goods_number)
	{
	     err = true;
	     msg.push('售后总数不能大于原订单购买数量!');
	}

	if (err)
	{
	    message = msg.join("\n");
	    alert(message);
	}
	return ! err;
	}
	</script>
          </form>
          
          <!-- {/if} --> 
          <!-- {if $action eq back_order_detail} -->
	  <h5><span>售后详情</span></h5>
          <div class="blank"></div>
          <table width="100%" border="0" cellpadding="5" cellspacing="1"  bgcolor="#E6E6E6">
            <tr>
              <td width="100%" height=25  bgcolor="#FFFFFF" style="padding-left:10px">原订单号:{$back_shipping.order_sn}</td>
            </tr>
            <tr>
              <td width="100%" height=25  bgcolor="#FFFFFF" style="padding-left:10px">商品名称:{$back_shipping.goods_name}</td>
            </tr>
            <tr>
              <td width="100%" height=25  bgcolor="#FFFFFF"  style="padding-left:10px">售后类型:{if $back_shipping.back_type eq 1}退货{/if}{if $back_shipping.back_type eq 2}换货{/if}{if $back_shipping.back_type eq 3}申请返修{/if}{if $back_shipping.back_type eq 4}退款(无需退货){/if}</td>
            </tr>
          </table>
          <div class="blank"></div>
          {if $list_backgoods.0}
          <table width="100%" border="0" cellpadding="5" cellspacing="1"  bgcolor="#E6E6E6">
            {foreach from= $list_backgoods.0.goods_list item=bgoods}
            <tr>
              <td width="15%" align=center bgcolor="#FFFFFF"><font color=#ff3300>退回商品</font></td>
              <td width="40%" bgcolor="#FFFFFF">{$bgoods.goods_name} </td>
              <td width="25%" bgcolor="#FFFFFF">{if $bgoods.goods_attr}{$bgoods.goods_attr|nl2br}{/if} </td>
              <td width="10%" bgcolor="#FFFFFF">数量:{if $bgoods.back_goods_number}{$bgoods.back_goods_number}{/if} </td>
              <td width="10%" bgcolor="#FFFFFF">类型:退货 </td>
            </tr>
            {/foreach}
            
	    <tr> <td  align=center bgcolor="#FFFFFF">退款金额</td><td colspan=4 bgcolor="#FFFFFF">应退金额:{$bgoods.back_goods_money} </td></tr>
	    <tr><td  align=center bgcolor="#FFFFFF">处理状态</td><td colspan=4 bgcolor="#FFFFFF">{$bgoods.status_back}</td></tr>
	    <tr><td align=center bgcolor="#FFFFFF">退款状态</td><td colspan=4 bgcolor="#FFFFFF">{$bgoods.status_refund} </td></tr>
	    </table>
	{/if}
	{if $list_backgoods.3}
	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
    {foreach from= $list_backgoods.3.goods_list item=bgoods}
	<tr bgcolor=#ffffff >
	<td width="15%" align=center><font color=#ff3300>退回商品</font></td><td width="40%">{$bgoods.goods_name} </td>
	<td width="25%">{if $bgoods.goods_attr}{$bgoods.goods_attr|nl2br}{/if} </td>
	<td width="10%">数量:{if $bgoods.back_goods_number}{$bgoods.back_goods_number}{/if} </td>
	<td width="10%">类型:申请返修 </td></tr>
	{/foreach}
	<tr bgcolor=#ffffff ><td  align=center>处理状态</td><td colspan=4>{$bgoods.status_back}</td></tr>
	</table>
	{/if}
	{if $list_backgoods.4}
	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
    {foreach from= $list_backgoods.4.goods_list item=bgoods}
	<tr bgcolor=#ffffff >
	<td width="15%" align=center><font color=#ff3300>退回商品</font></td><td width="40%">{$bgoods.goods_name} </td>
	<td width="25%">{if $bgoods.goods_attr}{$bgoods.goods_attr|nl2br}{/if} </td>
	<td width="10%">数量:{if $bgoods.back_goods_number}{$bgoods.back_goods_number}{/if} </td>
	<td width="10%">类型:退款<br />(无需退货) </td></tr>
	{/foreach}
	<tr bgcolor=#ffffff ><td  align=center>退款金额</td><td colspan=4>应退金额:{$bgoods.back_goods_money} </td></tr>
	<tr bgcolor=#ffffff ><td  align=center>处理状态</td><td colspan=4>{$bgoods.status_back}</td></tr>
	<tr bgcolor=#ffffff ><td  align=center>退款状态</td><td colspan=4>{$bgoods.status_refund} </td></tr>
	</table>
          {/if}
          <div class="blank"></div>
          {if $list_backgoods.1}
          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#E6E6E6">
            {foreach from= $list_backgoods.1.goods_list name="list_backgoods_1" item=bgoods}
            <tr>
              <td width="15%" align=center bgcolor="#FFFFFF"><font color=#ff3300>{if $smarty.foreach.list_backgoods_1.iteration eq 1}退回{else}换回{/if}商品</font></td>
              <td width="40%" bgcolor="#FFFFFF">{$bgoods.goods_name}</td>
              <td width="25%" bgcolor="#FFFFFF">{if $bgoods.goods_attr}属性:{$bgoods.goods_attr}{/if} </td>
              <td width="10%" bgcolor="#FFFFFF">数量:{if $bgoods.back_goods_number}{$bgoods.back_goods_number}{/if} </td>
              <td width="10%" bgcolor="#FFFFFF">{if $smarty.foreach.list_backgoods_1.iteration eq 1}类型:换货{/if}</td>
            </tr>
            {/foreach}
            <tr>
              <td align=center bgcolor="#FFFFFF">退款金额</td>
              <td colspan=4 bgcolor="#FFFFFF">应退金额:{$bgoods.back_goods_money}</td>
            </tr>
            <tr>
              <td align=center  bgcolor="#FFFFFF">处理状态</td>
              <td colspan=4 bgcolor="#FFFFFF">{$bgoods.status_back}</td>
            </tr>
            <tr>
              <td align=center bgcolor="#FFFFFF">退款状态</td>
              <td colspan=4  bgcolor="#FFFFFF">{$bgoods.status_refund} </td>
            </tr>
          </table>
          <div class="blank"></div>
          <table width="100%" border="0" cellpadding="5" cellspacing="1"  bgcolor="#E6E6E6">
            <tr>
              <td align=center width="15%"  bgcolor="#FFFFFF">寄回商品<br>
                收件人信息</td>
              <td colspan=4  bgcolor="#FFFFFF">商品寄回地址:{$back_shipping.country_name} {$back_shipping.province_name} {$back_shipping.city_name} {$back_shipping.district_name} {$back_shipping.address}<br>
                邮政编码:{$back_shipping.zipcode}<br>
                收件人:{$back_shipping.consignee}<br></td>
            </tr>
            <tr>
              <td align=center width="15%"  bgcolor="#FFFFFF">退款信息</td>
              <td colspan=4  bgcolor="#FFFFFF">应退金额:{$back_shipping.refund_money_1}&nbsp;&nbsp;&nbsp;&nbsp;实退金额:{$back_shipping.refund_money_2}</td>
            </tr>
            <tr>
              <td align=center width="15%"  bgcolor="#FFFFFF">退款形式</td>
              <td colspan=4  bgcolor="#FFFFFF">{$back_shipping.refund_type_name}</td>
            </tr>
            <tr>
              <td align=center width="15%"  bgcolor="#FFFFFF">退款说明</td>
              <td colspan=4  bgcolor="#FFFFFF">{$back_shipping.refund_desc}</td>
            </tr>
          </table>
          {/if}
          <div class="blank"></div>
	{if $back_shipping.back_type neq 4 && $back_shipping.status_back lt 6}
          <div class="tabmenu">
            <ul class="tab pngFix">
              <li class="active"> <a href="#"> 快递信息(请填写您寄回商品的快递信息):</a> </li>
            </ul>
          </div>
          <div class="blank"></div>
          <form action="user.php" method="post">
            <table width="100%" border="0" cellpadding="7" cellspacing="1" bgcolor="#dddddd">
              <tr>
                <td width="100%"  style="padding-left:25px;"  bgcolor="#FFFFFF"> 快递公司:
                  <select name="shipping_id" size=1>
                    <option value="0">请选择快递公司</option>
                    
                    
                
                
	{foreach from=$shipping_list item=shipping}
	
                
                
                    
                    <option value="{$shipping.shipping_id}" {if $back_shipping.shipping_id eq $shipping.shipping_id}selected{/if} >{$shipping.shipping_name} </option>
                    
                    
                
                
	{/foreach}
	
              
              
                  
                  </select>
                  快递运单号:
                  <input type="text" name="invoice_no" size=20 value="{$back_shipping.invoice_no}">
                  <input type="submit" name="submit" value="确定" {if $back_shipping.status_back gt 0 && $back_shipping.status_back lt 5}disabled{/if}>
                  <input type="hidden" name="back_id" value="{$back_id}">
                  <input type="hidden" name="act" value="back_order_detail_edit"></td>
              </tr>
            </table>
          </form>
    {/if}
    <div class="blank"></div>
    <div class="tabmenu">
            <ul class="tab pngFix">
              <li class="active">留言/回复</li>
            </ul>
    </div>
    <div class="blank"></div>
    <table width="100%" cellspacing="1" cellpadding="6" style="border:1px #dddddd solid">
    <!--{if $back_shipping.postscript}-->
      <tr>
        <td width="50" align="right">我说:</td>
        <td>{$back_shipping.postscript} ({$back_shipping.add_time})</td>
      </tr>
      <!--{/if}-->
            <!--{foreach from=$back_replay item=value}--> 
            {if $value.type eq 0}
            <tr style="color:#F00">
              <td align="right" bgcolor="#FFFFFF">客服:</td>
              <td bgcolor="#FFFFFF">{$value.message} ({$value.add_time})</td>
            </tr>
            {else}
            <tr>
              <td align="right" bgcolor="#FFFFFF">我说:</td>
              <td bgcolor="#FFFFFF">{$value.message} ({$value.add_time})</td>
            </tr>
            {/if} 
            <!--{/foreach}-->
            <tr>
        <td valign="top" align="right">我说:</td>
              <td bgcolor="#FFFFFF"><script>
            function check_replay()
            {
                if (document.getElementById("message").value == '')
                {
                    alert("请输入回复内容!");
                    document.getElementById("message").focus();
                    return false;	
                }
            }
            </script>
                <form action="user.php?act=back_replay" method="post" onsubmit="return check_replay()">
                  <input name="back_id" type="hidden" value="{$back_shipping.back_id}">
                  <div>
                    <textarea id="message" name="message" style="width:500px; height:60px;"></textarea>
                  </div>
                  <div class="blank"></div>
                  <div style="margin-top:10px;">
                    <input type="submit" value="回复" class="btn-primary" />
                  </div>
                </form></td>
            </tr>
          </table>
          
          <!-- {/if} --> 
          <!-- {if $action eq back_order_act} -->
          <div class="tabmenu">
            <ul class="tab pngFix">
              <li class="active"> 
    <!-- {if $back_act_w eq 'tuihuo'} -->
    退货&nbsp;申请已提交
    <!-- {elseif $back_act_w eq 'tuikuan'} -->
	退款&nbsp;申请已提交
    <!-- {elseif $back_act_w eq 'weixiu'} -->
    维修&nbsp;申请已提交
    <!-- {/if} -->
    </li>
            </ul>
          </div>
          <div class="blank"></div>
          <table cellpadding=5 cellspacing=1 width=100% bgcolor="#E6E6E6">
            <tr>
              <td bgcolor="#FFFFFF" style="font-size:15px;font-weight:bold;line-height:180%;padding:20px;color:#555"> 
    	<!-- {if $back_act_w eq 'tuihuo'} -->
	      商品寄回地址:{$back_address}<br>
                邮政编码:{$back_zipcode}<br>
                收件人:{$back_consignee} 
		</td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" style="padding:10px 20px 20px 30px"> 1、请尽快将退换货商品寄出<br>
	2、退货商品寄出后,请您在“用户中心 》售后 》详情”中填写快递信息<br>
	3、您随时可以在“售后”中查看退货进度<br>
                4、如果您有其他需要,请随时联系我们的客服。 </td>
    <!-- {elseif $back_act_w eq 'tuikuan'} -->
    退款申请已提交,请耐心等待卖家处理。
    <!-- {elseif $back_act_w eq 'weixiu'} -->
    维修申请已提交,请耐心等待卖家处理。<br>
	商品寄回地址:{$back_address}<br>
	邮政编码:{$back_zipcode}<br>
	收件人:{$back_consignee}
    <!-- {/if} -->
	</td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" align=center><input type="button" value="确定" onclick='location.href="user.php?act=back_list";' style="cursor:pointer;border:none; background:#ED5854;color:#fff;padding:5px 15px"></td>
            </tr>
          </table>
          <!-- {/if} --> 

          <!-- {if $action eq 'my_comment'} -->
	  <h5><span>商品评价/晒单({$num.x}个待评价,{$num.y}个待晒单)</span></h5>
          <div class="blank"></div>
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="bought-table item_list">
            <tr class="order-hd">
              <th colspan="2">商品信息</th>
              <th width="120">商品来源</th>
              <th width="80">购买时间</th>
              <th width="80">评价</th>
              <th width="80">晒单</th>
            </tr>
            <input id="commtr_have" type="hidden" value="0" />
            <!--{foreach from=$item_list item=value} -->
            <tr class="order-bd last">
              <td width="50"><a href="{$value.url}" target="_blank"> 
                <!-- {if $value.goods_id gt 0 && $value.extension_code neq 'package_buy'} 商品 --> 
                <img height="50" width="50" src="{$value.thumb}" /> 
                <!-- {elseif $value.goods_id gt 0 && $value.extension_code eq 'package_buy'} --> 
                <img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/czlb.png" height="50" width="50"/> 
                <!-- {/if} --> 
                </a></td>
              <td><a href="{$value.url}" target="_blank">{$value.goods_name}</a></td>
              <td align="center">
              	{if $value.supplier_id}
                <a href="supplier.php?suppId={$value.supplier_id}" target="_blank">{$value.shopname}</a>
                {else}
                {$value.shopname}
                {/if}
              </td>
              <td align="center">{$value.add_time_str}</td>
              <td align="center">
              	{if $value.comment_state eq 0}
                	{if $value.shipping_time_end gt $min_time} 
                    <a href="javascript:;" onclick="show_commtr({$value.rec_id})">发表评价</a> 
                    {else}
                	已超期
                	{/if}
                {/if}
                {if $value.comment_state eq 1}<a href="goods_comment.php?act=view&id={$value.rec_id}" target="_blank">已评价</a>{/if}
                {if $value.comment_state eq 1 && $value.comment_status eq 0}
                <div class="main-color">审核中</div>
		{/if}
		</td>
              <td align="center">
              	{if $value.shaidan_state eq 0}
                	{if $value.shipping_time_end gt $min_time} 
                    <a href="user.php?act=shaidan_send&id={$value.rec_id}" target="_self">发表晒单</a> 
                    {else}
                	已超期
                	{/if}
                {/if}
                {if $value.shaidan_state eq 1}<a href="goods_shaidan.php?act=view&id={$value.shaidan_id}" target="_blank">已晒单</a>{/if}
                {if $value.shaidan_state eq 1 && $value.shaidan_status eq 0}
                <div class="main-color">审核中</div>
                {/if}
                {if $value.shaidan_points > 0}
                <div class="main-color">已获{$value.shaidan_points}积分</div>
                {/if} </td>
            </tr>
            {if $value.comment_state eq 0}
            {if $value.rec_id == $smarty.get.s}
            <tr id="commtr_{$value.rec_id}"> 
            {else}
            <tr id="commtr_{$value.rec_id}" style="display:none"> 
            {/if}
              <td colspan="6" class="comment-pop" style="background:#fffdee;">
              	<div class="send-comment"> 
                  {if $value.shipping_time_end gt $min_time}
                  <form action="user.php?act=my_comment_send" method="post" onsubmit="return check_my_comment_send({$value.rec_id}, {$value.goods_id}, {$value.order_id})">
                    <input type="hidden" name="goods_id" value="{$value.goods_id}" />
                    <input type="hidden" name="rec_id" value="{$value.rec_id}" />
                    <table width="70%" border="0" cellspacing="1" cellpadding="5" style="float:left">
                      <script src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.raty.js" type="text/javascript"></script>
                      <tr>
                        <th>描述:</th>
                        <td class="stars_box">
                          <div id="star1{$value.goods_id}" class="star_t"></div>
                          <div id="result1{$value.goods_id}" class="result"></div>
                          <input type="hidden" name="comment_rank" value="" id="hidden1{$value.goods_id}"/>
                          <input type="hidden" name="o1_id" value="{$value.o_id}" />
                          <div class="feel_con_box">
                            <div class="feel_con"><span class="arrow"></span>1分,非常不满意</div>
                            <div class="feel_con"><span class="arrow"></span>2分,不满意</div>
                            <div class="feel_con"><span class="arrow"></span>3分,一般</div>
                            <div class="feel_con"><span class="arrow"></span>4分,满意</div>
                            <div class="feel_con"><span class="arrow"></span>5分,非常满意</div>
                          </div></td>
                      </tr>
                      {if $value.order_id}
                      <tr>
                        <th>服务:</th>
                        <td class="stars_box">
                          <div id="star2{$value.goods_id}" class="star_t"></div>
                          <div id="result2{$value.goods_id}" class="result"></div>
                          <input type="hidden" name="server" value="" id="hidden2{$value.goods_id}"/>
                          <input type="hidden" name="o_id" value="{$value.order_id}" />
                          <div class="feel_con_box">
                            <div class="feel_con"><span class="arrow"></span>1分,非常不满意</div>
                            <div class="feel_con"><span class="arrow"></span>2分,不满意</div>
                            <div class="feel_con"><span class="arrow"></span>3分,一般</div>
                            <div class="feel_con"><span class="arrow"></span>4分,满意</div>
                            <div class="feel_con"><span class="arrow"></span>5分,非常满意</div>
                          </div></td>
                      </tr>
                      <tr>
                        <th>发货:</th>
                        <td class="stars_box">
                          <div id="star3{$value.goods_id}" class="star_t"></div>
                          <div id="result3{$value.goods_id}" class="result"></div>
                          <input type="hidden" name="send" value="" id="hidden3{$value.goods_id}"/>
                          <div class="feel_con_box">
                            <div class="feel_con"><span class="arrow"></span>1分,非常不满意</div>
                            <div class="feel_con"><span class="arrow"></span>2分,不满意</div>
                            <div class="feel_con"><span class="arrow"></span>3分,一般</div>
                            <div class="feel_con"><span class="arrow"></span>4分,满意</div>
                            <div class="feel_con"><span class="arrow"></span>5分,非常满意</div>
                          </div></td>
                      </tr>
                      <tr>
                        <th>物流:</th>
                        <td class="stars_box">
                          <div id="star4{$value.goods_id}" class="star_t"></div>
                          <div id="result4{$value.goods_id}" class="result"></div>
                          <input type="hidden" name="shipping" value="" id="hidden4{$value.goods_id}"/>
                          <div class="feel_con_box">
                            <div class="feel_con"><span class="arrow"></span>1分,非常不满意</div>
                            <div class="feel_con"><span class="arrow"></span>2分,不满意</div>
                            <div class="feel_con"><span class="arrow"></span>3分,一般</div>
                            <div class="feel_con"><span class="arrow"></span>4分,满意</div>
                            <div class="feel_con"><span class="arrow"></span>5分,非常满意</div>
                          </div></td>
                      </tr>
                      {/if} 
                      <script type="text/javascript">
						rat('star1{$value.goods_id}','result1{$value.goods_id}','hidden1{$value.goods_id}',1);
						rat('star2{$value.goods_id}','result2{$value.goods_id}','hidden2{$value.goods_id}',1);
						rat('star3{$value.goods_id}','result3{$value.goods_id}','hidden3{$value.goods_id}',1);
						rat('star4{$value.goods_id}','result4{$value.goods_id}','hidden4{$value.goods_id}',1);
						$('.star_t').find('img').mouseover(function(){
							var index=$(this).index();
							$(this).parents('.star_t').siblings('.feel_con_box').find('.feel_con').eq(index).css('display','inline-block').siblings('.feel_con').hide();	
						}).mouseout(function(){
							$(this).parents('.star_t').siblings('.feel_con_box').find('.feel_con').hide();		
						})
						function rat(star,result,hidden,m){
							star= '#' + star;
							result= '#' + result;
							hidden='#'+hidden;
							
							$(result).hide();//将结果DIV隐藏
						
							$(star).raty({
								hints: ['1','2', '3', '4', '5'],
								path: "themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images",
								starOff: 'star-off-big.png',
								starOn: 'star-on-big.png',
								size: 24,
								start: 40,
								showHalf: true,
								targetKeep : true,//targetKeep 属性设置为true,用户的选择值才会被保持在目标DIV中,否则只是鼠标悬停时有值,而鼠标离开后这个值就会消失
								click: function (score, evt) {
									//第一种方式:直接取值
									$(result).show();
									if((score*m)==5){
										$(result).html('<span>'+score*m+'</span>分,非常满意');
									}else if((score*m)==4){
										$(result).html('<span>'+score*m+'</span>分,满意');	
									}else if((score*m)==3){
										$(result).html('<span>'+score*m+'</span>分,一般');	
									}else if((score*m)==2){
										$(result).html('<span>'+score*m+'</span>分,不满意');	
									}else if((score*m)==1){
										$(result).html('<span>'+score*m+'</span>分,非常不满意');	
									}
									
									
									$(hidden).val(score*m);
								}
							});
						}
					  	</script> 
                      <!--评分 end-->
                      <tr>
                        <th>印象:</th>
                        <td>
                          <input type="hidden" id="tag_select_{$value.rec_id}" name="comment_tag" value="" />
                          <dl class="tags clearfix">
                            <!--{if $value.goods_tags}--> 
                            <!--{foreach from=$value.goods_tags item=tag}-->
                            <dt id="tag_dt_{$value.rec_id}_{$tag.tag_id}" onclick="select_tag({$value.rec_id},{$tag.tag_id})">{$tag.tag_name}</dt>
                            <!--{/foreach}--> 
                            <!--{/if}-->
                            <dd class="zdy" onclick="show_add_tags({$value.rec_id})">自定义</dd>
                          </dl>
                          <ul class="tags_zi clearfix" id="tags_zi_{$value.rec_id}"></ul>
                          <div class="add_tags clearfix" id="add_tags_{$value.rec_id}" style="display:none"> 
                            <input type="text" id="add_tag_text_{$value.rec_id}" value="" class="inputBg" style="padding: 0 5px;" />
                            <input type="button" value="添加" onclick="add_tag_one({$value.rec_id})" class="main-btn"/>
                          	<span onclick="hide_add_tags({$value.rec_id})" class="main-btn">关闭</span>
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <th>评价:</th>
                        <td><textarea name="content" class="comment-textarea" id="content_{$value.rec_id}"></textarea></td>
                      </tr>
                      <tr>
                        <th>&nbsp;</th>
                        <td>
                        	<input type="submit" class="main-btn main-btn-large fl" value="提交评价"/>
                          	<label class="anonymous-comment"><input type="checkbox" name="hide_username" value="1" />匿名评价 </label>
                        </td>
                      </tr>
                    </table>
                  </form>
                  {else}
                  此单已超期
                  {/if} 
                </div>
              </td>
            </tr>
            {/if} 
            <!-- {/foreach} -->
          </table>
          <div class="blank"></div>
          <!-- {if $item_list}--> 
          <!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem --> 
          <!-- {else}-->
          <table width="100%" border="0" cellpadding="10" cellspacing="1" bgcolor="#eeeeee" class="item_list">
            <tr>
              <td colspan="5" align="center">没有任何晒单评价记录</td>
            </tr>
          </table>
          <!-- {/if}--> 
          <!--{/if} --> 
          
          <!--{if $action eq 'shaidan_send'}--> 
          <!-- {if $pan_1 == 0 } --> 
          此单已超期 
          <!-- {elseif $pan_2 == 1 } --> 
          此单已晒单 
          <!-- {elseif $pan_3 == 1 } --> 
          这不是您的订单,请不要非法晒单。 
          <!-- {else} -->
	  <h5><span>发表晒单</span></h5>
          <div class="about-comment"> 
            <!-- #BeginLibraryItem "/library/shaidan.lbi" --><!-- #EndLibraryItem --> 
          </div>
          <div class="blank"></div>
          <div class="shaidan-form">
            <form action="user.php?act=shaidan_save" method="post" onsubmit="return check_shaidan_send()">
              <input type="hidden" name="goods_id" value="{$goods.goods_id}" />
              <input type="hidden" name="rec_id" value="{$goods.rec_id}" />
              <table width="100%" border="0" cellspacing="1" cellpadding="5">
                <tr>
                  <th width="90">晒单商品:</th>
                  <td>{$goods.goods_name}</td>
                </tr>
                <tr>
                  <th><span class="main-color">*</span> 晒单内容:</th>
                  <td>
		    <link rel="stylesheet" href="includes/kindeditor/themes/default/default.css" />
		    <script charset="utf-8" src="includes/kindeditor/kindeditor.js"></script> 
                    <script>
                            	KindEditor.ready(function(K) {
									var editor = K.editor({
									   allowFileManager : false,
									   imageUploadLimit : {$shaidan_imgs_num}
									});
									K('#J_selectImage').click(function() {
										editor.loadPlugin('multiimage', function() {
											editor.plugin.multiImageDialog({
												clickFn : function(urlList) {
													var div = K('#J_imageView');
													div.html('');
													K.each(urlList, function(i, data) {
														div.append('<dl class="clearfix"><dt><img src="' + data.url + '" /></dt><dd><input type="hidden" name="img_srcs[]" value="' + data.url + '" /><textarea name="img_names[]" ></textarea></dd></dl>');
													});
													
													editor.hideDialog();
												}
											});
										});
									});
									
                            	});
				
                            </script>
                    <textarea name="message" id="message" style="width:400px;height:80px;"></textarea></td>
                </tr>
                <tr>
                  <th><span class="main-color">*</span> 上传图片:</th>
		  <td><div id="J_selectImage" class="J_selectImage"></div>
                    <div id="J_imageView" class="simgs"></div></td>
                </tr>
                <tr>
                  <th>&nbsp;</th>
                  <td>请上传最多{$shaidan_imgs_num}张照片,每张照片不超过{$php_max_filesize},支持的照片格式为jpg,jpeg,png,gif</td>
                </tr>
                <tr>
                  <th>&nbsp;</th>
                  <td>
                  	<input type="submit" value="提交晒单" class="fl main-btn main-btn-large"/>
                    <label class="anonymous-comment"><input type="checkbox" name="hide_username" value="1" />匿名评价</label>
                  </td>
                </tr>
              </table>
            </form>
          </div>
          
          <!--{/if} --> 
          <!--{/if} --> 

          <!--{if $action eq "vc_login"} -->
	  <h5><span>储值卡充值</span></h5>
	  <form action="user.php" method="post" name="valueForm" id="valueForm" onSubmit="return valueLogin()">
	  <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
	     <tr>
		<td colspan="2" bgcolor="#FFFFFF" align="left">当前账户余额:<font color=#e61952>{$info.surplus}</font></td>
	     </tr>
	     <tr>
		<td width="28%" align="right" bgcolor="#FFFFFF">充值账号:</td>
		<td width="76%" align="left" bgcolor="#FFFFFF"><input name="card" value="{$smarty.session.user_name}" type="text" size="25" readonly class="inputBg" style="background:#eeeeee;" /><font color=#e61952>* 默认为登录用户,不可编辑</font></td>
	     </tr>
	     <tr>
		<td width="28%" align="right" bgcolor="#FFFFFF">储值卡卡号:</td>
		<td width="76%" align="left" bgcolor="#FFFFFF"><input name="vcard" type="text" size="25"  class="inputBg" value="" /></td>
	     </tr>
	     <tr>
		<td width="28%" align="right" bgcolor="#FFFFFF">储值卡密码:</td>
		<td width="76%" align="left" bgcolor="#FFFFFF"><input name="pwd" type="password" size="25"  class="inputBg" value="" /></td>
	     </tr>
	     <tr>
		<td colspan="2" bgcolor="#FFFFFF" align="center">
		<input type="hidden" name="act" value="vc_login_act">
		<input name="bind" type="submit" value="充值" class="btn-primary" style="border:none;" />
		</td>
	     </tr>
	  </table>
	  </form>
          <script type="text/javascript">
              function valueLogin()
		{
			var frm = document.forms['valueForm'];
			var vcard=frm.elements['vcard'].value;
			var pwd = frm.elements['pwd'].value;
			var msg = '';

			if (vcard.length == 0)
			{
				msg +=  '储值卡卡号不能为空\n';
			}
			if (pwd.length == 0)
			{
				msg +=  '储值卡密码不能为空\n';
			}

			if (msg.length > 0)
			{
				alert(msg);
				return false;
			}
			else
			{
				return true;
			}
		}
          </script> 
          <!-- {/if} --> 

      </div>
     </div>
    </div>
    </div>
    
    </div>
    </div>
    </div>
<!-- #BeginLibraryItem "/library/page_footer.lbi" --> <!-- #EndLibraryItem -->
</body>
<script type="text/javascript">
{foreach from=$lang.clips_js item=item key=key}
var {$key} = "{$item}";
{/foreach}
</script>
</html>