|
|
|
|
<!-- $Id: sale_list.htm 15848 2009-04-24 07:07:13Z liubo $ -->
|
|
|
|
|
{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="../js/utils.js,listtable.js"}
|
|
|
|
|
<div class="form-div">
|
|
|
|
|
<form name="TimeInterval" action="javascript:getList()" style="margin:0px">
|
|
|
|
|
{$lang.start_date}
|
|
|
|
|
<input name="start_date" type="text" id="start_date" size="18" value='{$start_date}' readonly="readonly" /><input name="selbtn1" type="button" id="selbtn1" onclick="return showCalendar('start_date', '%Y-%m-%d %H:%M', '24', false, 'selbtn1');" value="{$lang.btn_select}" class="button"/>
|
|
|
|
|
{$lang.end_date}
|
|
|
|
|
<input name="end_date" type="text" id="end_date" size="18" value='{$end_date}' readonly="readonly" /><input name="selbtn2" type="button" id="selbtn2" onclick="return showCalendar('end_date', '%Y-%m-%d %H:%M', '24', false, 'selbtn2');" value="{$lang.btn_select}" class="button"/>
|
|
|
|
|
货号
|
|
|
|
|
<input name="goods_sn" value="" type="text" />
|
|
|
|
|
|
|
|
|
|
<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 type="submit" name="submit" value="{$lang.query}" class="button" />
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<form method="POST" action="" name="listForm">
|
|
|
|
|
<div class="list-div" id="listDiv">
|
|
|
|
|
{/if}
|
|
|
|
|
<table width="100%" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<th>商家名称</th>
|
|
|
|
|
<th>货号</th>
|
|
|
|
|
<th>{$lang.goods_name}</th>
|
|
|
|
|
<th>{$lang.order_sn}</th>
|
|
|
|
|
<th><a href="javascript:listTable.sort('goods_number'); ">{$lang.amount}</a></th>
|
|
|
|
|
<th>{$lang.sell_price}</th>
|
|
|
|
|
<th>总金额</th>
|
|
|
|
|
<th>{$lang.sell_date}</th>
|
|
|
|
|
</tr>
|
|
|
|
|
{foreach from=$goods_sales_list item=list}
|
|
|
|
|
<tr align="center">
|
|
|
|
|
<td style="color:#F00;">{$list.shop_name}</td>
|
|
|
|
|
<td>{$list.goods_sn}</td>
|
|
|
|
|
<td align="left"><a href="../goods.php?id={$list.goods_id}" target="_blank">{$list.goods_name}</a></td>
|
|
|
|
|
<td><a href="order.php?act=info&order_id={$list.order_id}">{$list.order_sn}</a></td>
|
|
|
|
|
<td align="right">{$list.goods_num}</td>
|
|
|
|
|
<td align="right">{$list.sales_price}</td>
|
|
|
|
|
<td align="right">{$list.total_fee}</td>
|
|
|
|
|
<td>{$list.sales_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>
|
|
|
|
|
</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()
|
|
|
|
|
{
|
|
|
|
|
// 开始检查订单
|
|
|
|
|
startCheckOrder();
|
|
|
|
|
getDownUrl();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getList()
|
|
|
|
|
{
|
|
|
|
|
var frm = document.forms['TimeInterval'];
|
|
|
|
|
|
|
|
|
|
var where_order = '';
|
|
|
|
|
var where_shipping = '';
|
|
|
|
|
var order_arr = new Array();
|
|
|
|
|
var order_status = frm.elements['order_status[]'];
|
|
|
|
|
|
|
|
|
|
var shipping_arr = new Array();
|
|
|
|
|
var shipping_status = frm.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['start_date'] = frm.elements['start_date'].value;
|
|
|
|
|
listTable.filter['end_date'] = frm.elements['end_date'].value;
|
|
|
|
|
listTable.filter['goods_sn'] = frm.elements['goods_sn'].value;
|
|
|
|
|
listTable.filter['time_type'] = frm.elements['time_type'].value;
|
|
|
|
|
listTable.filter['page'] = 1;
|
|
|
|
|
listTable.loadList();
|
|
|
|
|
getDownUrl(frm.elements['goods_sn'].value, order_arr, shipping_arr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getDownUrl(goods_sn, order_arr, shipping_arr)
|
|
|
|
|
{
|
|
|
|
|
var where_sn = '';
|
|
|
|
|
var where_order = '';
|
|
|
|
|
var where_shipping = '';
|
|
|
|
|
var aTags = document.getElementsByTagName('A');
|
|
|
|
|
for (var i = 0; i < aTags.length; i++)
|
|
|
|
|
{
|
|
|
|
|
if (aTags[i].href.indexOf('download') >= 0)
|
|
|
|
|
{
|
|
|
|
|
if (listTable.filter['start_date'] == "")
|
|
|
|
|
{
|
|
|
|
|
var frm = document.forms['TimeInterval'];
|
|
|
|
|
listTable.filter['start_date'] = frm.elements['start_date'].value;
|
|
|
|
|
listTable.filter['end_date'] = frm.elements['end_date'].value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!(typeof(goods_sn) == 'undefined')){
|
|
|
|
|
if(goods_sn != ''){
|
|
|
|
|
where_sn = "&goods_sn=" + goods_sn;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(order_arr){
|
|
|
|
|
where_order = '&order_status=' + listTable.filter['order_status'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(shipping_arr){
|
|
|
|
|
where_shipping = '&shipping_status=' + listTable.filter['shipping_status'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
aTags[i].href = "sale_list.php?act=download&start_date=" + listTable.filter['start_date'] + "&end_date=" + listTable.filter['end_date'] + where_sn + where_order + where_shipping;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//-->
|
|
|
|
|
</script>
|
|
|
|
|
{/literal}
|
|
|
|
|
{include file="pagefooter.htm"}
|
|
|
|
|
{/if}
|