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.
 
 
 
 

147 lines
5.7 KiB

<!-- $Id: agency_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
{if $priv_ru eq 1}
<!-- 订单搜索 -->
<div class="form-div">
<form action="javascript:searchStore()" name="searchForm">
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
店铺名称
<select name="store_search" onchange="get_store_search(this.value)">
<option value="0">请选择...</option>
<option value="1">按店铺名称</option>
<option value="2">按期望店铺名称</option>
<option value="3">按入驻品牌+类型</option>
</select>
<select name="merchant_id" style="display:none">
{foreach from=$store_list item=store}
<option value="{$store.ru_id}">{$store.store_name}</option>
{/foreach}
</select>
<input name="store_keyword" type="text" style="display:none"/>
<select name="store_type" style="display:none">
<option value="0">店铺类型</option>
<option value="旗舰店">旗舰店</option>
<option value="专卖店">专卖店</option>
<option value="专营店">专营店</option>
<option value="馆"></option>
</select>
<input type="submit" value="{$lang.button_search}" class="button" />
</form>
</div>
{/if}
<form method="post" action="" name="listForm" onsubmit="return confirm(batch_drop_confirm);">
<div class="list-div" id="listDiv">
{/if}
<table cellpadding="3" cellspacing="1">
<tr>
<th> <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox" />
{if $no_all}<a href="javascript:listTable.sort('suppliers_ser_id');">{$lang.record_id}</a>{else}{$lang.record_id}{/if} {$sort_suppliers_id} </th>
<th>{$lang.suppliers_name}</th>
<th>{$lang.suppliers_store}</th>
<th>{$lang.suppliers_company}</th>
<th>{$lang.suppliers_address}</th>
<th>{$lang.suppliers_contact}</th>
<th>{$lang.order_valid_total}</th>
<th>{$lang.order_refund_total}</th>
<th>{$lang.handler}</th>
</tr>
{foreach from=$merchants_commission_list item=commission}
<tr>
<td width="80"><input type="checkbox" name="checkboxes[]" value="{$commission.server_id}" />
{$commission.server_id}</td>
<td align="center" class="first-cell">{$commission.user_name}</td>
<td align="center" style="color:#F00">{$commission.store_name}</td>
<td align="center">{$commission.companyName}</td>
<td align="center">{$commission.company_adress}</td>
<td align="center">{$commission.company_contactTel}</td>
<td align="center" style="color:#C00">{$commission.order_valid_total}</td>
<td align="center" style="color:#1b9ad5">{$commission.order_refund_total}</td>
<td align="center">
<a href="merchants_commission.php?act=order_list&id={$commission.user_id}">订单列表</a> |
{if $no_all}
<a href="merchants_commission.php?act=edit&id={$commission.server_id}" title="{$lang.edit}">{$lang.edit}</a> |
<a href="javascript:void(0);" onclick="listTable.remove({$commission.server_id}, '{$lang.drop_confirm}')" title="{$lang.remove}">{$lang.remove}</a>
{else}暂无操作{/if}
</td>
</tr>
{foreachelse}
<tr><td class="no-records" colspan="7">{$lang.no_records}</td></tr>
{/foreach}
</table>
<table id="page-table" cellspacing="0">
<tr>
<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();
}
{if $priv_ru eq 1}
function get_store_search(val){
if(val == 1){
document.forms['searchForm'].elements['merchant_id'].style.display = '';
document.forms['searchForm'].elements['store_keyword'].style.display = 'none';
document.forms['searchForm'].elements['store_type'].style.display = 'none';
}else if(val == 2){
document.forms['searchForm'].elements['merchant_id'].style.display = 'none';
document.forms['searchForm'].elements['store_keyword'].style.display = '';
document.forms['searchForm'].elements['store_type'].style.display = 'none';
}else if(val == 3){
document.forms['searchForm'].elements['merchant_id'].style.display = 'none';
document.forms['searchForm'].elements['store_keyword'].style.display = '';
document.forms['searchForm'].elements['store_type'].style.display = '';
}else{
document.forms['searchForm'].elements['merchant_id'].style.display = 'none';
document.forms['searchForm'].elements['store_keyword'].style.display = 'none';
document.forms['searchForm'].elements['store_type'].style.display = 'none';
}
}
/**
* 搜索店铺
*/
function searchStore()
{
listTable.filter['store_search'] = Utils.trim(document.forms['searchForm'].elements['store_search'].value);
listTable.filter['merchant_id'] = Utils.trim(document.forms['searchForm'].elements['merchant_id'].value);
listTable.filter['store_keyword'] = Utils.trim(document.forms['searchForm'].elements['store_keyword'].value);
listTable.filter['store_type'] = Utils.trim(document.forms['searchForm'].elements['store_type'].value);
listTable.filter['page'] = 1;
listTable.loadList();
}
{/if}
{/literal}
//-->
</script>
{include file="pagefooter.htm"}
{/if}