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.
133 lines
4.9 KiB
133 lines
4.9 KiB
<!-- $Id -->
|
|
{include file="pageheader.htm"}
|
|
<form name="theForm" method="get" action="order.php" onsubmit="return check()">
|
|
<div class="list-div">
|
|
<table>
|
|
<tr>
|
|
<th width="120">{$lang.label_action_note}</th>
|
|
<td><textarea name="action_note" cols="60" rows="3">{$action_note}</textarea>
|
|
{if $require_note}{$lang.require_field}{/if}</td>
|
|
</tr>
|
|
{if $show_cancel_note}
|
|
<tr>
|
|
<th>{$lang.label_cancel_note}</th>
|
|
<td><textarea name="cancel_note" cols="60" rows="3" id="cancel_note">{$cancel_note}</textarea>
|
|
{$lang.require_field}{$lang.notice_cancel_note}</td>
|
|
</tr>
|
|
{/if}
|
|
{if $show_invoice_no}
|
|
<tr>
|
|
<th>{$lang.label_invoice_no}</th>
|
|
<td><input name="invoice_no" type="text" size="30" /></td>
|
|
</tr>
|
|
{/if}
|
|
{if $show_refund1}
|
|
<tr>
|
|
<th>{$lang.refund_money}</th>
|
|
<td>{$lang.money}:<input name="refound_amount" id="refoundAmount" type="text" size="10" value="{$refound_amount}" onchange="get_refound_amount(this.value, 1)" />{$lang.shipping_money}:<input type="text" name="shipping" value="" id="shippingFee" size="6" onchange="get_refound_amount(this.value, 2)" />
|
|
<input type="radio" name="is_shipping" />{$lang.no_shipping_money}
|
|
<input type="radio" name="is_shipping" />{$lang.is_shipping_money}
|
|
</td>
|
|
<tr>
|
|
<tr>
|
|
<th>{$lang.label_handle_refund}</th>
|
|
<td><p>{if !$anonymous}
|
|
<label><input type="radio" name="refund" value="1" />{$lang.return_user_money}</label><br>{/if}
|
|
<label><input type="radio" name="refund" value="2" />{$lang.return_user_line}</label><br>
|
|
<!-- <label><input name="refund" type="radio" value="3" />
|
|
{$lang.not_handle}</label><br>-->
|
|
</p></td>
|
|
</tr>
|
|
<tr>
|
|
<th>{$lang.label_refund_note}</th>
|
|
<td><textarea name="refund_note" cols="60" rows="3" id="refund_note">{$refund_note}</textarea></td>
|
|
</tr>
|
|
{/if}
|
|
{if $show_refund}
|
|
<tr>
|
|
<th>{$lang.label_handle_refund}</th>
|
|
<td><p>{if !$anonymous}<label><input type="radio" name="refund" value="1" />{$lang.return_user_money}</label><br>{/if}
|
|
<label><input type="radio" name="refund" value="2" />{$lang.create_user_account}</label><br>
|
|
<label><input name="refund" type="radio" value="3" />
|
|
{$lang.not_handle}</label><br>
|
|
</p></td>
|
|
</tr>
|
|
<tr>
|
|
<th>{$lang.label_refund_note}</th>
|
|
<td><textarea name="refund_note" cols="60" rows="3" id="refund_note">{$refund_note}</textarea></td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td colspan="2">
|
|
<div align="center">
|
|
<input type="submit" name="submit" value="{$lang.button_submit}" class="button" />
|
|
<input type="button" name="back" value="{$lang.back}" class="button" onclick="history.back()" />
|
|
<input type="hidden" id="orderId" name="order_id" value="{$order_id}" />
|
|
<input type="hidden" id="recId" name="rec_id" value="{$rec_id}"/>
|
|
<input type="hidden" id="retId" name="ret_id" value="{$ret_id}"/>
|
|
<input type="hidden" name="operation" value="{$operation}" />
|
|
<input type="hidden" name="act" value="{if $batch}batch_operate_post{else}operate_post{/if}" />
|
|
</div></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
<script language="JavaScript">
|
|
var require_note = '{$require_note}';
|
|
var show_refund = '{$show_refund}';
|
|
var show_cancel = '{$show_cancel_note}';
|
|
{literal}
|
|
function check()
|
|
{
|
|
if (require_note && document.forms['theForm'].elements['action_note'].value == '')
|
|
{
|
|
alert(pls_input_note);
|
|
return false;
|
|
}
|
|
if (show_cancel && document.forms['theForm'].elements['cancel_note'].value == '')
|
|
{
|
|
alert(pls_input_cancel);
|
|
return false;
|
|
}
|
|
if (show_refund)
|
|
{
|
|
var selected = false;
|
|
for (var i = 0; i < document.forms['theForm'].elements.length; i++)
|
|
{
|
|
ele = document.forms['theForm'].elements[i];
|
|
if (ele.tagName == 'INPUT' && ele.name == 'refund' && ele.checked)
|
|
{
|
|
selected = true;
|
|
break;
|
|
}
|
|
}
|
|
if (!selected)
|
|
{
|
|
alert(pls_select_refund);
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function get_refound_amount(t, type){
|
|
var orderId = document.getElementById('orderId').value;
|
|
var recId = document.getElementById('recId').value;
|
|
var retId = document.getElementById('retId').value;
|
|
|
|
Ajax.call('order.php?is_ajax=1&act=edit_refound_amount', "refound_amount="+ t + "&type=" + type + "&order_id=" + orderId + "&rec_id=" + recId + "&ret_d=" + retId, refound_amountResponse, "GET", "JSON");
|
|
}
|
|
|
|
function refound_amountResponse(result){
|
|
if(result.content.type == 1){
|
|
if(result.content.refound_amount > result.content.should_return){
|
|
document.getElementById('refoundAmount').value = result.content.should_return;
|
|
}
|
|
}else{
|
|
document.getElementById('shippingFee').value = result.content.shipping_fee;
|
|
}
|
|
|
|
}
|
|
{/literal}
|
|
</script>
|
|
{include file="pagefooter.htm"}
|