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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!-- $Id: distrib_goods_list.htm 14216 2008-03-10 02:27:21Z  $ -->
 
 
 
{if $full_page}
 
{include file="pageheader.htm"}
 
{insert_scripts files="../js/utils.js,listtable.js"}
 
<div class="form-div">
 
  <form action="javascript:searchGoods()" name="searchForm">
  <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    {$lang.supplier}
    <select name="supplier_id">
        <option value="">所有商家</option>
        <option value="0">{$lang.self_sale}</option>
        {foreach from=$supplier_list item=list}
        <option value="{$list.supplier_id}">{$list.supplier_name}</option>
        {/foreach}
    </select>
    &nbsp;{$lang.label_goods_name} &nbsp;<input type="text" name="keyword" size="20" /> <input type="submit" value="{$lang.button_search}" class="button"/>
 
  </form>
 
</div>
 
<form method="post" action="distrib_goods.php" name="listForm">
 
<!-- start distrib_goods 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('id'); ">{$lang.record_id}</a>{$sort_act_id}
 
      </th>
      <th>{$lang.supplier}</th>
 
      <th><a href="javascript:listTable.sort('goods_name'); ">{$lang.goods_name}</a>{$sort_goods_name}</th>
 
      <th><a href="javascript:listTable.sort('end_time'); ">{$lang.end_date}</a>{$sort_end_time}</th>
 
      <th>{$lang.distrib_money}</a></th>
 
      <th>{$lang.distrib_percent}</th>
 
      <th>{$lang.handler}</th>
 
    </tr>
 
 
 
    {foreach from=$distrib_goods_list item=list}
 
    <tr>
 
      <td align="center"><input type="checkbox" name="checkboxes[]" value="{$list.id}" />{$list.id}</td>
      
      <td align="center">{if $list.supplier}{$list.supplier}{else}{$lang.self_sale}{/if}</td>
 
      <td align="center">{$list.goods_name|escape:html}</td>
 
      <td align="center">{if $list.distrib_time eq 0}永久分销{else}{$list.end_time}{/if}</td>
 
 
 
      <td align="center">{if $list.distrib_type eq 1}{$list.distrib_money}{else}0{/if}</td>
 
      <td align="center">{if $list.distrib_type eq 2}{$list.distrib_money}%{else}0{/if}</td>
 
      <td align="center">
 
        <a href="distrib_goods.php?act=edit&amp;id={$list.id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>
 
        <a href="distrib_goods.php?act=del&amp;id={$list.id}" title="{$lang.remove}"><img src="images/icon_drop.gif" border="0" height="16" width="16" /></a>
 
      </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="hidden" name="act" value="batch_remove" />
      <input type="submit" id="btnSubmit" value="{$lang.button_remove}" disabled="true" class="button" />
      </td>
      <td align="right">{include file="page.htm"}</td>
 
    </tr>
 
  </table>
 
 
 
{if $full_page}
 
</div>
 
<!-- end distrib_goods list -->
 
</form>
 
 
 
<script type="text/javascript" language="JavaScript">
 
<!--
 
  listTable.recordCount = {$record_count};
 
  listTable.pageCount = {$page_count};
 
 
 
  {foreach from=$filter item=item key=key}
 
  listTable.filter.{$key} = '{$item}';
 
  {/foreach}
 
 
 
  {literal}
 
  onload = function()
 
  {
 
    document.forms['searchForm'].elements['keyword'].focus();
 
 
 
    startCheckOrder();
 
  }
 
 
  function searchGoods()
 {
 
    listTable.filter['keyword'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
 
    listTable.filter['supplier_id'] = document.forms['searchForm'].elements['supplier_id'].value;
 
    listTable.filter['page'] = 1;
 
    listTable.loadList();
 
}
 
  {/literal}
 
//-->
 
</script>
 
 
 
{include file="pagefooter.htm"}
 
{/if}