<%@ page language="C#" masterpagefile="~/Admin/MasterPage/Main.master" autoeventwireup="true" inherits="admin_Coupon_AddShopCoupon, App_Web_3olkleaz" 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">
<script type="text/javascript" src="/admin/adminImg/js/jquery.js"></script>
<script type="text/javascript" src="/js/jscommon.js"></script>
<link href="/css/zhezhao.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
        function validateFrm()
        {
            showBg('dialog');
        }
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <div class="divTools">
    <div class="tool-nav">
      <div class="title"> 导航栏</div>
      <asp:HyperLink ID="hy_add" Text="[添加优惠券]" runat="server"/>
      <asp:HyperLink ID="hy_list" Text="[优惠券列表]" runat="server"/>
    </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="138"> 优惠券名称 </td>
            <td>&nbsp;
              <asp:TextBox ID="txtCouponName" runat="server"></asp:TextBox>
              <span class="spanTipsRed">*</span>
            </td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td> 优惠券类型 </td>
            <td>&nbsp;
              <asp:DropDownList runat="server" ID="DropCouponType" AutoPostBack="true" OnSelectedIndexChanged="DropCouponType_SelectedIndexChanged">
                <asp:ListItem Value="0">达到多少减多少</asp:ListItem>
                <asp:ListItem Value="1">现金抵用券</asp:ListItem>
                <asp:ListItem Value="2">折扣</asp:ListItem>
              </asp:DropDownList></td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)" runat="server" id="trCouponType">
            <td width="138"> 优惠券面值 </td>
            <td>
              <asp:Literal runat="server" ID="LitCouponType"></asp:Literal>
              <span class="spanTipsRed">
                &nbsp; <asp:Button runat="server" ID="butMianZ" Text="+" OnClick="butMianZ_Click" />
                <asp:Button runat="server" ID="butMianZ2" Text="-" OnClick="butMianZ2_Click" />
              * </span>
            </td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)" runat="server" id="trFaceValue">
            <td width="138"> 优惠券面值 </td>
            <td>&nbsp;
              <asp:TextBox ID="txtFaceValue" runat="server" onkeyup="onlyNumAndD(this)"></asp:TextBox>
              <span class="spanTipsRed">* 如为折扣，1为不打折；0.9为9折</span>
            </td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="138"> 发行总张数 </td>
            <td>&nbsp;
              <asp:TextBox ID="txtCountInt" runat="server" onkeyup="Onlynumber(this)"></asp:TextBox>
              <span class="spanTipsRed">* 一次性发行张数不允许超过1万张</span>
            </td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="138"> 兑换所需要的积分数 </td>
            <td>&nbsp;
              <asp:TextBox ID="txtbuyInt" runat="server" onkeyup="onlyNumAndD(this)"></asp:TextBox>
              <span class="spanTipsRed">* 会员兑换此购物券所需的积分</span>
            </td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="138"> 在售 </td>
            <td>&nbsp;
              <asp:CheckBox runat="server" ID="chkIsShow" Text="是" />
            </td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="138"> 有效时间 </td>
            <td>&nbsp;
              <asp:TextBox ID="txtEndTime" runat="server"></asp:TextBox>
              <span class="spanTipsRed">* 0为永久有效；1为一年；2为二年；2012-05-08指有效期到2012年5月8号23点59分</span>
            </td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td width="138"> 备注 </td>
            <td>&nbsp;
              <asp:TextBox ID="txtbeizhu" runat="server" MaxLength="200" TextMode="MultiLine" Width="300px" Height="50px"></asp:TextBox>
              <br />
              <span class="spanTipsRed">&nbsp;给管理员自己看的一个备注</span>
            </td>
          </tr>
          <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td align="center" colspan="2"><asp:Button ID="BtnArchive" Text="存 档" runat="server" CssClass="button" OnClick="BtnArchive_Click" OnClientClick="return validateFrm();" />
              <asp:Button ID="BtnLeave" Text="离 开" runat="server" CssClass="button" OnClick="BtnLeave_Click" />
              
              </td>
          </tr>
        </table>
        <div id="fullbg"></div>
        <div id="dialog">
            <div id="loading">
            <img src="../AdminImg/images/load62-62.gif" />
            程序执行中，切勿关闭或者刷新本页；<br />请稍等...</div>
        </div>
  </div>
</asp:Content>
