<%@ Page Language="C#" Title="设置捆绑销售价格" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="True" Inherits="Kesion.NET.WebSite.Course.Admin_Course_KS_CsSetBandleSale" Codebehind="KS.CsSetBandleSale.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
 <body scroll="no">
 <script type="text/javascript">
     function regInput(obj, reg, inputStr) {
         var docSel = document.selection.createRange()
         if (docSel.parentElement().tagName != "INPUT") return false
         oSel = docSel.duplicate()
         oSel.text = ""
         var srcRange = obj.createTextRange()
         oSel.setEndPoint("StartToStart", srcRange)
         var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
         return reg.test(str)
     }
     function addIn() {
         var title = jQuery("#<%=this.HidTitle.ClientID %>").val();
	    var proid = jQuery("#<%=this.HidInfoID.ClientID %>").val();
         var kbprice = jQuery("#<%=this.KBPrice.ClientID%>").val();
         var bindname = jQuery("#<%=this.bindname.ClientID%>").val();
	    top.frames["main"].updateKBXS(proid + "@@@" + kbprice + "@@@" + title+"@@@"+bindname);
	}
 </script>
  <table  width="98%" cellpadding="1" cellspacing="1" class="CTable">
       <tr>
       <td class="lefttd" style="height: 30px; text-align: right">
      <strong>捆绑名字:</strong>

                 </td>
                    <td class="righttd" colspan="2" style="height: 30px; text-align: left;color:Red">
                        <asp:TextBox ID="bindname" runat="server" Width="116px" CssClass="textbox"></asp:TextBox> 如:基础班
                    </td>
       </tr>

            <tr>
                <td class="lefttd" style="height: 30px; text-align: right"><strong>课程名称：</strong></td>
                <td class="righttd" colspan="2" style="height: 30px; text-align: left">
                    <asp:Label ID="Label1" runat="server" ></asp:Label></td>
            </tr>
            <tr>
                <td class="lefttd" style="height: 30px; text-align: right"><strong>原 价：</strong></td>
                <td class="righttd" colspan="2" style="height: 30px; text-align: left">
                    ￥<asp:Label ID="Label2" runat="server" ></asp:Label> 元</td>
            </tr>
            <tr>
                <td class="lefttd" style="height: 30px; text-align: right;color:Red"><strong>折扣价：</strong></td>
                <td class="righttd" colspan="2" style="height: 30px; text-align: left;color:Red">
                    ￥<asp:Label ID="Label3" runat="server" ></asp:Label> 元</td>
            </tr>

            <tr>
                <td class="lefttd" style="height: 30px; text-align: right"><strong>捆绑销售价：</strong></td>
                <td class="righttd" colspan="2" style="height: 30px; text-align: left">
                 <asp:TextBox ID="KBPrice" runat="server" value="0" CssClass="textbox" Width="60px" onKeyPress= "return regInput(this,/^\d*\.?\d{0,2}$/,String.fromCharCode(event.keyCode))" onpaste="return regInput(this,/^\d*\.?\d{0,2}$/,window.clipboardData.getData('Text'))" ondrop="return regInput(this,    /^\d*\.?\d{0,2}$/,event.dataTransfer.getData('Text'))"/> 元 
                </td>
            </tr>
            
      </table>
     <br />
     <div style="text-align:center">
      <asp:HiddenField ID="HidTitle" runat="server" />
      <asp:HiddenField ID="HidInfoID" runat="server" />
      <asp:HiddenField ID="Hidbindname" runat="server" />

      <input type="button" value="确定加入" onclick="addIn()" class="button" />
     </div>
      <br />

</asp:Content>


