<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WayBillPrint.aspx.cs" Inherits="LMN.Web.Admin.Order.WayBillPrint" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<link href="../css/admin.css" rel="stylesheet" type="text/css" />
<link href="../Scripts/wbox/wbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
<script src="../Scripts/alert.js" type="text/javascript"></script>
<script src="../Scripts/wbox.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
  <div style="padding: 20px;">
    <h4>收货地址信息</h4>
    <div class="division">
      <table width="100%">
        <tbody>
          <tr>
            <th>姓名：</th>
            <td colspan="3"><input size="10" style="width: 80px;" value="飞沙" name="order[ship_name]" autocomplete="off" /></td>
          </tr>
          <tr>
            <th>地址：</th>
            <td><span package="mainland" vtype=""><input type="hidden" value="mainland:湖北/武汉市/江夏区:1332" name="order[ship_area]" /> <input size="50" style="width: 400px;" name="order[ship_addr]" value="湖北武汉市江夏区江厦大道特77号" autocomplete="off" /> </span></td>
            <th>邮编：</th>
            <td><input style="width: 90px;" size="6" name="order[ship_zip]" value="430229" autocomplete="off" /></td>
          </tr>
          <tr>
            <th>手机：</th>
            <td><input size="36" style="width: 145px;" value="12343254656" name="order[ship_mobile]" autocomplete="off" /></td>
            <th>电话：</th>
            <td><input size="36" style="width: 145px;" value="" name="order[ship_tel]" autocomplete="off" /></td>
          </tr>
          <tr>
            <th>备注：</th>
            <td colspan="3"><input size="50" style="width: 400px;" name="order[order_memo]" value="填写的订单备注信息。" autocomplete="off" /></td>
          </tr>
          <tr>
            <th>&nbsp;</th>
            <td colspan="3"><button id="btn_save_addr">保存订单地址</button> <span style="text-align: left; color: #aaaaaa;">您也可以将编辑过的收货地址更新至订单</span></td>
          </tr>
        </tbody>
      </table>
    </div>
    <h4>发货地址信息 <select id="sendaddr" title="" name="sendaddr" size="1">
      <option value="1">上海</option>
    </select> </h4>
    <span style="padding-left: 10px;"></span>
    <div class="division">
      <table width="100%">
        <tr>
          <th>姓名：</th>
          <td>商派</td>
          <th>地区：</th>
          <td>上海-上海市-卢湾区</td>
        </tr>
        <tr>
          <th>邮编：</th>
          <td>200030</td>
          <th>地址：</th>
          <td>上海市徐汇区虹桥路333号</td>
        </tr>
        <tr>
          <th>手机：</th>
          <td>13966668888</td>
          <th>电话：</th>
          <td>021-66668888</td>
        </tr>
        <tr>
          <th colspan="4"><b class="submitBtn" style="margin-left: 3px"><input type="button" value="EMS" onclick="$('dly_tmpl_id').value='1';$('dly_printer_form').submit()" /> </b><b class="submitBtn" style="margin-left: 3px"><input type="button" value="申通快递单" onclick="$('dly_tmpl_id').value='2';$('dly_printer_form').submit()" /> </b><b class="submitBtn" style="margin-left: 3px"><input type="button" value="顺丰速运1" onclick="$('dly_tmpl_id').value='3';$('dly_printer_form').submit()" /> </b><b class="submitBtn" style="margin-left: 3px"><input type="button" value="顺丰速运2" onclick="$('dly_tmpl_id').value='4';$('dly_printer_form').submit()" /> </b></th>
        </tr>
      </table>
    </div>
  </div>
</form>
<iframe id="iframe" name="iframe" src="about:blank" style="display: none;"></iframe>
<script type="text/javascript">
$("#all").click(function() {
  var b = $(this).attr("checked");
  $("input[name=id]").each(function() {
    $(this).attr("checked", b);
  });
});
$("#dele").click(function() {
  if ($("input[name=id]:checked").length == 0) {
    showTips("请选择要删除的项！", 3);
    return false;
  }

  if (!confirm("确认删除选中的记录？"))
    return false;

  var ids = "";
  $("input[name=id]:checked").each(function() {
    ids += (ids == "" ? "" : ",") + $(this).val();
  });

  if (ids != "") {
    $.get("Action.aspx?action=Helpdelete&id=" + ids + "&" + new Date(), function(data) {
      if (data == "-1") {
        alert("请选择要删除的记录！");
      } else if (data == "0") {
        alert("删除失败，请重试！");
      } else {
        alert("删除成功！");
        location.reload();
      }
    });
  }
  return true;
});
</script>
</body>
</html>
