You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
154 lines
5.3 KiB
154 lines
5.3 KiB
<!-- $Id: sale_general.htm 16869 2009-12-10 10:31:14Z liuhui $ -->
|
|
{if $full_page}
|
|
{include file="pageheader.htm"}
|
|
|
|
<script type="text/javascript" src="../js/calendar.php?lang={$cfg_lang}"></script>
|
|
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
|
|
{insert_scripts files="validator.js,../js/utils.js,listtable.js}
|
|
|
|
<div class="form-div">
|
|
<form action="javascript:searchGeneral()" name="searchForm">
|
|
<strong>选择日期</strong>
|
|
<input name="date_start_time" type="text" id="start_time" value="{$start_time}" readonly="readonly" />
|
|
<input name="selbtn1" type="button" id="selbtn1" onclick="return showCalendar('start_time', '%Y-%m-%d %H:%M', '24', false, 'selbtn1');" value="{$lang.btn_select}" class="button" />
|
|
~
|
|
<input name="date_end_time" type="text" id="end_time" value="{$end_time}" readonly="readonly" />
|
|
<input name="selbtn2" type="button" id="selbtn2" onclick="return showCalendar('end_time', '%Y-%m-%d %H:%M', '24', false, 'selbtn2');" value="{$lang.btn_select}" class="button" />
|
|
|
|
<br/>
|
|
<strong>订单时间类型</strong>
|
|
<select name="time_type">
|
|
<option value="0">按发货时间</option>
|
|
<option value="1">按下单时间</option>
|
|
</select>
|
|
<br/>
|
|
<strong>订单状态</strong>
|
|
{foreach from=$os_list item=os key=key}
|
|
<label><input name="order_status[]" type="checkbox" value="{$key}" />{$os}</label>
|
|
{/foreach}
|
|
<br/>
|
|
<strong>发货状态</strong>
|
|
{foreach from=$ss_list item=ss key=key}
|
|
<label><input name="shipping_status[]" type="checkbox" value="{$key}" />{$ss}</label>
|
|
{/foreach}
|
|
<br/>
|
|
分类名称 <input name="cat_name" value="" type="text" />
|
|
<br/>
|
|
<input type="submit" name="query_by_date" value="{$lang.query}" class="button" />
|
|
</form>
|
|
</div>
|
|
|
|
<div class="list-div" id="listDiv">
|
|
{/if}
|
|
|
|
<table width="100%" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<th>商家名称</th>
|
|
<th>商品名称</th>
|
|
<th>货号</th>
|
|
<th>分类</th>
|
|
<th><a href="javascript:listTable.sort('goods_number'); ">数量</a></th>
|
|
<th>单价</th>
|
|
<th>总金额</th>
|
|
<th>售出日期</th>
|
|
</tr>
|
|
{foreach from=$data_list item=list}
|
|
<tr align="center">
|
|
<td align="center" style="color:#F00;">{$list.shop_name}</td>
|
|
<td align="left">{$list.goods_name}</td>
|
|
<td align="center">{$list.goods_sn}</td>
|
|
<td align="center">{$list.cat_name}</td>
|
|
<td align="center">{$list.goods_number}</td>
|
|
<td align="center">{$list.goods_price}</td>
|
|
<td align="center">{$list.total_fee}</td>
|
|
<td align="center">{$list.add_time}</td>
|
|
</tr>
|
|
{foreachelse}
|
|
<tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
|
|
{/foreach}
|
|
</table>
|
|
<table id="page-table" cellspacing="0">
|
|
<tr>
|
|
<td> </td>
|
|
<td align="right" nowrap="true">
|
|
{include file="page.htm"}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{if $full_page}
|
|
</div>
|
|
|
|
<script type="text/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['date_start_time'].value = '{$start_time}';
|
|
document.forms['searchForm'].elements['date_end_time'].value = '{$end_time}';
|
|
|
|
// 开始检查订单
|
|
startCheckOrder();
|
|
}
|
|
|
|
function searchGeneral(){
|
|
|
|
var where_cat = '';
|
|
var where_order = '';
|
|
var where_shipping = '';
|
|
var order_arr = new Array();
|
|
var order_status = document.forms['searchForm'].elements['order_status[]'];
|
|
|
|
var shipping_arr = new Array();
|
|
var shipping_status = document.forms['searchForm'].elements['shipping_status[]'];
|
|
|
|
for(var i=0; i<order_status.length;i++){
|
|
if(order_status[i].checked == true){
|
|
order_arr.push(order_status[i].value);
|
|
}
|
|
}
|
|
|
|
listTable.filter['order_status'] = order_arr;
|
|
|
|
for(var i=0; i<shipping_status.length;i++){
|
|
if(shipping_status[i].checked == true){
|
|
shipping_arr.push(shipping_status[i].value);
|
|
}
|
|
}
|
|
|
|
listTable.filter['shipping_status'] = shipping_arr;
|
|
listTable.filter['time_type'] = document.forms['searchForm'].elements['time_type'].value;
|
|
listTable.filter['date_start_time'] = document.forms['searchForm'].elements['date_start_time'].value;
|
|
listTable.filter['date_end_time'] = document.forms['searchForm'].elements['date_end_time'].value;
|
|
listTable.filter['cat_name'] = document.forms['searchForm'].elements['cat_name'].value;
|
|
|
|
if(listTable.filter['order_status'] != ''){
|
|
where_order = '&order_status=' + listTable.filter['order_status'];
|
|
}
|
|
|
|
if(listTable.filter['shipping_status'] != ''){
|
|
where_shipping = '&shipping_status=' + listTable.filter['shipping_status'];
|
|
}
|
|
|
|
if(listTable.filter['cat_name'] != ''){
|
|
where_cat = '&cat_name=' + listTable.filter['cat_name'];
|
|
}
|
|
|
|
var a_action = document.getElementById('actionSpan');
|
|
a_action.href = 'sale_general.php?act=download&date_start_time=' + listTable.filter['date_start_time'] + '&date_end_time=' + listTable.filter['date_end_time'] + '&time_type=' + listTable.filter['time_type'] + where_order + where_shipping + where_cat;
|
|
|
|
listTable.filter['page'] = 1;
|
|
listTable.loadList();
|
|
}
|
|
{/literal}
|
|
-->
|
|
</script>
|
|
|
|
{include file="pagefooter.htm"}
|
|
{/if}
|