|
|
|
|
<!-- $Id: merge_order.htm 14216 2008-03-10 02:27:21Z testyang $ -->
|
|
|
|
|
{include file="pageheader.htm"}
|
|
|
|
|
{insert_scripts files="validator.js"}
|
|
|
|
|
<div class="main-div">
|
|
|
|
|
<table cellspacing="0" cellpadding="0" width="100%">
|
|
|
|
|
{if $priv_ru eq 1}
|
|
|
|
|
<form action="javascript:searchMerchant()" name="searchForm">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">店铺名称</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="store_search" onchange="get_store_search(this.value)">
|
|
|
|
|
<option value="-1">请选择...</option>
|
|
|
|
|
<option value="0">平台自营</option>
|
|
|
|
|
<option value="1">按店铺名称</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 type="submit" value="{$lang.button_search}" class="button" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{/if}
|
|
|
|
|
</form>
|
|
|
|
|
</table>
|
|
|
|
|
<span id="merge_order">
|
|
|
|
|
<table cellspacing="0" cellpadding="0" width="100%" style="padding:0px;">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label"><a href="javascript:showNotice('noticeOrderSn');" title="{$lang.form_notice}"><img src="images/notice.gif" width="14" height="14" border="0" alt="{$lang.form_notice}"></a>{$lang.to_order_sn}</td>
|
|
|
|
|
<td><input name="to_order_sn" type="text" id="to_order_sn">
|
|
|
|
|
<select name="to_list" id="to_list" onchange="if (this.value != '') document.getElementById('to_order_sn').value = this.value; else document.getElementById('to_order_sn').value = '';">
|
|
|
|
|
<option value="">{$lang.select_please}</option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="noticeOrderSn">{$lang.notice_order_sn}</span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.from_order_sn}</td>
|
|
|
|
|
<td><input name="from_order_sn" type="text" id="from_order_sn">
|
|
|
|
|
<select name="from_list" onchange="if (this.value != '') document.getElementById('from_order_sn').value = this.value; else document.getElementById('from_order_sn').value = '';">
|
|
|
|
|
<option value="">{$lang.select_please}</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</span>
|
|
|
|
|
<table cellspacing="0" cellpadding="0" width="100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2"><div align="center">
|
|
|
|
|
<input name="merge" type="button" id="merge" value="{$lang.merge}" class="button" onclick="if (confirm(confirm_merge)) merge()" />
|
|
|
|
|
</div></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
{literal}
|
|
|
|
|
<script language="JavaScript">
|
|
|
|
|
|
|
|
|
|
{if $priv_ru eq 1}
|
|
|
|
|
function get_store_search(val){
|
|
|
|
|
if(val == 1){
|
|
|
|
|
document.forms['searchForm'].elements['merchant_id'].style.display = '';
|
|
|
|
|
}else{
|
|
|
|
|
document.forms['searchForm'].elements['merchant_id'].style.display = 'none';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function searchMerchant(){
|
|
|
|
|
|
|
|
|
|
var store_search = document.forms['searchForm'].elements['store_search'].value;
|
|
|
|
|
var merchant_id = document.forms['searchForm'].elements['merchant_id'].value;
|
|
|
|
|
Ajax.call('order.php?is_ajax=1&act=ajax_merge_order_list','store_search=' + store_search + '&merchant_id=' + merchant_id, searchMerchantResponse, 'POST', 'JSON');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function searchMerchantResponse(result){
|
|
|
|
|
document.getElementById('merge_order').innerHTML = result.content;
|
|
|
|
|
}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 合并
|
|
|
|
|
*/
|
|
|
|
|
function merge()
|
|
|
|
|
{
|
|
|
|
|
var fromOrderSn = document.getElementById('from_order_sn').value;
|
|
|
|
|
var toOrderSn = document.getElementById('to_order_sn').value;
|
|
|
|
|
Ajax.call('order.php?is_ajax=1&act=ajax_merge_order','from_order_sn=o' + fromOrderSn + '&to_order_sn=o' + toOrderSn, mergeResponse, 'POST', 'JSON');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function mergeResponse(result)
|
|
|
|
|
{
|
|
|
|
|
if (result.message.length > 0)
|
|
|
|
|
{
|
|
|
|
|
alert(result.message);
|
|
|
|
|
}
|
|
|
|
|
if (result.error == 0)
|
|
|
|
|
{
|
|
|
|
|
//成功则清除用户填写信息
|
|
|
|
|
document.getElementById('from_order_sn').value = '';
|
|
|
|
|
document.getElementById('to_order_sn').value = '';
|
|
|
|
|
location.reload();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onload = function()
|
|
|
|
|
{
|
|
|
|
|
// 开始检查订单
|
|
|
|
|
startCheckOrder();
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
{/literal}
|
|
|
|
|
{include file="pagefooter.htm"}
|