File: /www/wwwroot/www.snodshop.com/Admin/Tpl/Order/modify.html
{:W("Main",array('module'=>MODULE_NAME,'action'=>ACTION_NAME,'do'=>$_GET['do']))}
<script type="text/javascript" src="__PUBLIC__/Assets/js/My97DatePicker/WdatePicker.js"></script>
<div class="layout-main">
<div id="breadclumb" class="box">
<h3><strong>{:lang('breadclumb_colon')}</strong>{:lang(MODULE_NAME)}<span></span><empty name="_GET.id">{:lang('add')}<else />{:lang('modify')}</empty></h3>
</div>
<div class="box clear-fix">
<div class="layout-block-header"><h2>{:lang('order_info')} <span class="order-no">({:lang('order_number_colon')}{$info.order_no})</span></h2></div>
<div class="AccountInfo">
<div class="info-block">
<form method="post" action="{:U(MODULE_NAME.'/modify/')}" enctype="multipart/form-data" id="ajaxform">
<table class="info-table">
<tbody>
<tr>
<th width="200">{:lang('item_name_colon')}</th>
<td colspan="3">{$info.item_name}</td>
</tr>
<tr>
<th>{:lang('item_package_colon')}</th>
<td colspan="3" class="extends">
<input type="text" name="item_params" value="{$info.item_params}" class="ui-text" size="80">
</td>
</tr>
<tr>
<th>商品属性:</th>
<td class="extends" colspan="3">
<php>
$extends=json_decode($info['item_extends'],true);
foreach($extends as $name=>$value){
$value = is_array($value)?implode(',',$value):$value;
echo "<p><i>$name</i>:<span><input type='text' name='item_extends[$name]' value='$value' class='ui-text' size='50'></span></p>";
}
</php>
</td>
</tr>
<tr>
<th>{:lang('order_status_colon')}</th>
<td>
<php>$status = C('order_status');</php>
<select name="change_status">
<volist name="status" id="vo">
<option value="{$key}" <eq name="key" value="$info['status']">selected</eq>>{$vo}</option>
</volist>
</select>
<input type="hidden" name="status" value="{$info.status|intval}">
</td>
<th>支付方式:</th>
<td>
<php>$payment = C('PAYMENT');</php>
<select name="payment">
<volist name="payment" id="vo">
<option value="{$key}" <eq name="key" value="$info['payment']">selected</eq>>{$vo.name}</option>
</volist>
</select>
</td>
</tr>
<tr>
<th>{:lang('amount_/_price_colon')}</th>
<td>
<input type="text" name="quantity" value="{$info.quantity}" class="ui-text" size="5">/
<input type="text" name="total_price" value="{$info.total_price}" class="ui-text" size="8">
<notempty name="info.coupon"><p style='color:#f00'>{:lang('coupon_colon')}{$info.coupon}</p></notempty>
</td>
<th>预约日期:</th>
<td valign="top"><input type="text" name="datetime" value="{$info.datetime}" size="40" class="ui-text" ></td>
</tr>
<tr>
<th>{:lang('realname_colon')}</th>
<td width="100"><input type="text" name="name" value="{$info.name}" class="ui-text" size="30"></td>
<th>{:lang('mobile_colon')}</th>
<td><input type="text" name="mobile" value="{$info.mobile}" class="ui-text" size="30"></td>
</tr>
<tr>
<th>{:lang('身份证_colon')}</th>
<td width="100"><input type="text" name="idnum" value="{$info.idnum}" class="ui-text" size="30"></td>
<th>{:lang('zcode_colon')}</th>
<td><input type="text" name="zcode" value="{$info.zcode}" class="ui-text" size="30"></td>
</tr>
<tr>
<th>{:lang('email_colon')}</th>
<td><input type="text" name="mail" value="{$info.mail}" class="ui-text" size="30"></td>
<th>{:lang('phone_colon')}</th>
<td><input type="text" name="phone" value="{$info.phone}" class="ui-text" size="30"></a></td>
</tr>
<tr>
<th>{:lang('remark_colon')}</th>
<td><textarea name="remark" class="ui-text" style="height:80px;width:100%;">{$info.remark}</textarea></td>
<th>{:lang('address_colon')}</th>
<td>
<input type="text" name="province" value="{$info.province}" class="ui-text" size="15">-
<input type="text" name="city" value="{$info.city}" class="ui-text" size="15">-
<input type="text" name="area" value="{$info.area}" class="ui-text" size="15"><br>
<input type="text" name="region" value="{$info.region}" readonly class="ui-text" size="60"><br>
<input type="text" name="address" value="{$info.address}" class="ui-text" size="60"></td>
</tr>
<tr>
<th>{:lang('qq_colon')}</th>
<td><input type="text" name="qq" value="{$info.qq}" class="ui-text" size="30"></td>
<th valign="top">微信:</th>
<td valign="top"><input type="text" name="weixin" id="weixin" class="ui-text" value="{$info.weixin}" size="30"></td>
</tr>
<tr>
<th>上传图片:</th>
<td>
<a href="{$info.file|imageUrl}" target="_blank"><img src="{$info.file|imageUrl}" height="80" /></a>
</td>
</tr>
<tr>
<th>{:lang('express_setting_colon')}</th>
<td>
<select name="delivery_name" id="delivery_name" style="float:left">
<option value="">{:lang('please_select_express')}</option>
<volist name="delivery" id="vo">
<option value="{$key}" <eq name="info.delivery_name" value="$key">selected</eq>>{$vo}</option>
</volist>
</select>
</td>
<th>{:lang('express_number_colon')}</th>
<td>
<input type="text" name="delivery_no" id="delivery_no" class="ui-text" value="{$info.delivery_no}" size="30">
</td>
</tr>
<tr>
<th>{:lang('action_remark_colon')}</th>
<td>
<textarea name="action_remark" id="action_remark" class="input-textarea editor" rows="3" style="width:100%"></textarea>
</td>
</tr>
<tr>
<th> </th>
<td colspan="3">
<input type="hidden" name="id" value="{$info.id}" />
<input type="submit" class="btn btn-ok" value="确认修改">
</td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
</div><!--.box-->
<div class="box clear-fix">
<div class="layout-block-header"><h2>{:lang('order_info')} </span></h2></div>
<div class="AccountInfo">
<div class="info-block">
<table class="info-table">
<tbody>
<tr>
<th width="200">下单 IP:</th>
<td><a href="http://www.ip.cn/index.php?ip={$info.add_ip}&from=http://{$_SERVER['HTTP_HOST']}{:C('ROOT_FILE')}" target="_blank">{$info.add_ip}</a></td>
<th>下单设备:</th>
<td><eq name="info.device" value="2">M<else />PC</eq></td>
</tr>
<tr>
<th>下单地址:</th>
<td valign="top" colspan='3'><a href="{$info.url}" target="_blank">{$info.url}</a></td>
</tr>
<tr>
<th>来路地址:</th>
<td valign="top" colspan='3'><a href="{$info.referer}" target="_blank">{$info.referer}</a></td>
</tr>
</tbody>
</table>
</div>
</div>
</div><!--.box-->
<div class="box clear-fix">
<div class="layout-block-header"><h2>{:lang('action_record')}</h2></div>
<div class="AccountInfo">
<div class="ui-table-body ui-table-body-hover">
<table cellpadding="0" cellspacing="0" width="100%">
<thead>
<tr class="ui-table-head">
<th class="ui-table-hcell" width="150">操作时间</th>
<th class="ui-table-hcell" width="80">操作类型</th>
<th class="ui-table-hcell" width="80">操作用户</th>
<th class="ui-table-hcell">操作备注</th>
</tr>
</thead>
<tbody>
<volist name="log" id="vo">
<tr>
<td>{$vo.add_time|date="Y-m-d H:i:s",###}</td>
<td>{:status($vo['status'],'',C('order_status'))}</td>
<td><empty name="vo.user_id">{:lang('customer')}<else />{$vo.user_id|getFields="User","username",###}</empty></td>
<td class="action">{$vo.remark}</td>
</tr>
</volist>
</tbody>
</table>
</div>
</div>
</div><!--.box-->
<script type="text/javascript">
$(function(){
var order_id = "{$info['id']}";
$('#ajaxform').ajaxForm({
timeout: 15000,
error:function(){ $('#ajaxLoading').hide();alert("{:lang('ajaxError')}");},
beforeSubmit:function(){
/*
if( $('#remark').val()==''){
$.alert('请输入备注内容',0);
return false;
}
*/
if(!confirm('确认操作?')) return false;
$('#ajaxLoading').show();
},
success:function(data){
$('#ajaxLoading').hide();
if(data.status==1){
//var redirectURL = "<empty name='_GET.id'>{:U('Order/index')}<else />{$_SERVER['HTTP_REFERER']}</empty>";
$.ajax({ url:"http://{$_SERVER['HTTP_HOST']}{:C('akmall_ROOT')}?m=Api&a=send",timeout:100,data:{order_id:order_id,status:data.data,print:1} });
//$.alert(data.info,data.status,function(){window.location.reload();});
$.alert(data.info,data.status,function(){window.history.back();});
}else{
$.alert(data.info,data.status);
}
},
dataType: 'json'
});
});
function delivery(){
var id='{$info.id}';
var delivery_name = $('#delivery_name').val();
var delivery_no = $('#delivery_no').val();
$.ajax({
url:'{:U("Order/deliveryUpdate")}',
type:'post',
dataType:'json',
data:{id:id,delivery_name:delivery_name,delivery_no:delivery_no},
beforeSend:function(){
if(!delivery_name){
$.alert('请选择快递',0);return false;
}
if(!delivery_no){
$.alert('请填写快递单号',0);return false;
}
},
success:function(data){
$.alert(data.info,data.status);
}
})
}
function modify(){
var update_user_id = $('#update_user_id').val();
if(!update_user_id){
//$.alert('请选择客服',0);return false;
}
}
</script>
{:W("Foot")}