<%@ page language="C#" masterpagefile="~/Admin/MasterPage/Main.master" autoeventwireup="true" inherits="admin_logistics_update, App_Web_dglgf-li" title="无标题页" %>
<%@ Register Src="~/Admin/Controls/CurrTool_Panel.ascx" TagName="CurrTool" TagPrefix="html" %>
<%@ Register Src="~/Admin/Controls/CurrImage_Panel.ascx" TagName="CurrImage" TagPrefix="html" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"></asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<input type="hidden" id="hidMoney" runat="server" />
  <div class="divTools">
    <div class="tool-nav">
      <div class="title"> 导航栏</div>
    </div>
    <div class="clear"> </div>
    <html:CurrTool ID="CurrTool1" Title="快递信息管理" Version="120402" runat="server"/>
    <html:CurrImage ID="CurrImage1" Title="管理快递信息" 
            Tips="在这里您可以编辑快递到各个地区的价格。" runat="server" />
  </div>
  <div class="clear"> </div>
  <div class="divContent">
    <asp:ScriptManager ID="ScriptManager2" runat="server"> </asp:ScriptManager>
    <table width="100%" border="0" cellspacing="1" cellpadding="0" class="content-table">
      <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
        <td width="10%" class="BotDas"> 默认价格 </td>
        <td class="BotDas" colspan="7">
            <input type="text" name="DefMoney" id="DefMoney" onkeyup="onlyNumAndD(this);writeMoney()" />
            <span class="spanTipsRed">默认价格是指：此价格一改变，所有快递到省份的价格跟着变；如数据库中有数据，则无效</span>
        </td>
      </tr>
      <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
        <td width="10%" class="BotDas"> 公司名称 </td>
        <td class="BotDas" colspan="7">
            <asp:DropDownList runat="server" ID="DropComName" OnSelectedIndexChanged="DropComName_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
        </td>
      </tr>
      <asp:Literal runat="server" ID="LitMoneyList"></asp:Literal>
      <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
        <td align="center" colspan="8"><asp:Button ID="BtnArchive" Text="存 档" runat="server" CssClass="button" OnClick="BtnArchive_Click" />
          <asp:Button ID="BtnLeave" Text="离 开" runat="server" CssClass="button" OnClick="BtnLeave_Click" Visible="false" /></td>
      </tr>
    </table>
    <asp:Literal runat="server" ID="LitShengName" Visible="false"></asp:Literal>
  </div>
  
<script type="text/javascript">
    function DefMoney()
    {
        var hidMoney = document.getElementById("ctl00_ContentPlaceHolder1_hidMoney");
        var DefMoney = document.getElementById("DefMoney");
        if(hidMoney.value == "1")
        {
            DefMoney.disabled = "false";
        }
        else
        {
            DefMoney.disabled = "";
        }
    }
    DefMoney();
    
    function writeMoney()
    {
        var MoneyValue = document.getElementsByName("MoneyValue");
        var DefMoney = document.getElementById("DefMoney");
        for(var i=0;i<MoneyValue.length;i++)
        {
            MoneyValue[i].value = DefMoney.value;
        }
    }
</script>
</asp:Content>
