bhq@iemsoft.cn
2018-11-27 e2b48dac099e43f4b3243cdf19a7522e4b5eccbe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
 
{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
 
<div class="form-div">
  <form action="javascript:searchSnatch()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
   <!-- <select name = "searchType" disabled="true">
      <option value="card_sn">{$lang.lab_card_sn}</option>
      <option value="order_sn" selected="selected">{$lang.lab_order_sn}</option>
    </select>-->
   {$lang.lab_order_sn} <input type="text" name="order_sn" /> <input type="submit" value="{$lang.button_search}" class="button" />
  </form>
</div>
 
<form method="POST" action="virtual_goods_card.php?act=del_virtual_order&goods_id={$goods_id}" name="listForm" onsubmit="return del_virtual_order()">
<!-- start card list -->
<div class="list-div1" id="listDiv">
{/if}
 
  <table cellpadding="3" cellspacing="1">
    <tr>
   <!--   <th>
        <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
        <a href="javascript:listTable.sort('card_id'); ">{$lang.record_id}</a>{$sort_card_id}
      </th>-->
   <td align="center"><input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox"><a href="javascript:listTable.sort('order_sn'); ">订单号</a>{$sort_order_sn}</td>
    <td align="center">用户</td>
      <td align="center">{$lang.order_price}</td>
      <td align="center">订单状态</td>
      <td align="center" width="60%">
    <table>
        <tr>
      <td align="center" width="25%">验证码</td>
      <td align="center" width="15%">下单时间</td>
      <td align="center" width="15%">使用时间</td>
     <!-- <th><a href="javascript:listTable.sort('card_password'); ">{$lang.lab_card_password}</a>{$sort_card_password}</th>-->
      <td align="center" width="15%">截止日期</td>
      <td align="center" width="9%">出售</td>
      <td align="center" width="9%">使用</td>
      <td align="center" width="15%">{$lang.handler}</td>
        </tr>
    </table>
      </td>
      
    </tr>
    {foreach from=$order_list item=order}
    <tr>
      <td  rowspan="1" align="center"><input value="{$order.order_id}" name="checkboxes[]" type="checkbox">
        <a href="virtual_goods_card.php?act=info&order_id={$order.order_id}">{$order.order_sn}</a>
      </td>
   <td align="center"><span>{$order.user_name}</span></td>
   <td align="center"><span>{$order.total_fee}</span></td>
   <td align="center"><span>
           {if $order.order_status eq 0}未确认{elseif $order.order_status eq 1}已确认{elseif $order.order_status eq 2}已取消{elseif $order.order_status eq 3}无效{elseif $order.order_status eq 4}退货{else}已完成{/if},
           {if $order.pay_status eq 0}未付款{else}已付款{/if}  
       </span></td>
   <td colspan="7" align="center">
       {if $order.pay_status eq 0}
       <span>订单未付款</span>
       {elseif $order.pay_status eq 2}
       <table>
        {foreach from=$order.card item=card key=i}
        <tr>
            <td align="center" width="25%"><span>{$card.card_sn}</span></td>
            <td align="center" width="15%"><span>{$card.add_date}</span></td>
            <td align="center" width="15%"><span>{if $card.buy_date}{$card.buy_date}{else}未使用{/if}</span></td>
            <td align="center" width="15%"><span>{$card.end_date}</span></td>
            <td align="center" width="9%"><img src="images/{if $card.is_saled}yes{else}no{/if}.gif" /></span></td>
            <td align="center" width="9%"><img src="images/{if $card.is_verification}yes{else}no{/if}.gif" /></span></td>
            <td align="center" width="15%">
                <a href="virtual_goods_card.php?act=edit_replenish&amp;card_id={$card.card_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>
                <a href="javascript:;" onclick="listTable.remove({$card.card_id}, '{$lang.drop_confirm}', 'remove_card')" title="{$lang.drop}"><img src="images/icon_drop.gif" border="0" height="16" width="16" /></a>
            </td>
        </tr>
        {/foreach}
    </table>
       {else}
        异常错误未获取到验证码,请联系管理员
       {/if}
   </td>
    </tr>
    {foreachelse}
    <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
    {/foreach}
  </table>
 
  <table cellpadding="4" cellspacing="0">
    <tr>
      <td><input type="submit" name="drop" id="btnSubmit" value="{$lang.drop}" class="button" disabled="true" /></td>
      <td align="right">{include file="page.htm"}</td>
    </tr>
  </table>
 
{if $full_page}
</div>
<!-- end card_list list -->
</form>
 
<script type="text/javascript" language="JavaScript">
<!--
 
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};
  listTable.query = "query_card";
 
  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}
 
{literal}
  onload = function()
  {
    document.forms['searchForm'].elements['order_sn'].focus();
    startCheckOrder();
  }
 
/**
 * 搜索团购商品
 */
function searchSnatch()
{
   var order_sn = Utils.trim(document.forms['searchForm'].elements['order_sn'].value);
 
  if (order_sn.length > 0)
  {
    listTable.filter['order_sn']     = order_sn;
    listTable.loadList();
  }
  else
  {
    document.forms['searchForm'].elements['order_sn'].focus();
  }
}
//-->
function del_virtual_order(){
       
    if(confirm("确定要进行此操作吗?"))
    {
            return true;
    }
    else
    {
            return false;
    }
}
</script>
{/literal}
 
{include file="pagefooter.htm"}
{/if}