<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Plus.Course.AddCoursePeriod" Codebehind="AddCoursePeriod.aspx.cs" %>

<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
         
        <asp:Panel ID="ClassAdd" runat="server" Width="100%">	 		   
             <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable">  
			                                     
                    <tr style="display:<%=KSCMS.S("type")=="2"?"none":""%>">
                    <td class="lefttd" height="30" align="right" style="width: 155px">
                        <strong>章标题：</strong>
                    </td>
                    <td class="righttd">
                       <span id="AddOne">
                        <asp:TextBox CssClass="textbox" ID="Zname" runat="server"  Width="200px"></asp:TextBox>
                        <span class="tips">*请输入章标题，</span>
                       </span>                     
                         </td>
                  </tr> 
				  <tbody style="display:<%=KSCMS.S("type")=="2"?"":"none"%>">
				   <tr>
                    <td class="lefttd" height="30" align="right" style="width: 155px">
                        <strong>选择分类：</strong>
                    </td>
                    <td class="righttd">
                       <span id="Span2">
                        <asp:DropDownList ID="MyItem" runat="server">
                             <asp:ListItem Value="0">-无（作为一级分类）-</asp:ListItem>
                             </asp:DropDownList>&nbsp;
                        <span class="tips"></span>
                       </span>                     
                         </td>
                  </tr>       

				   <tr>
                    <td class="lefttd" height="30" align="right" style="width: 155px">
                        <strong>节标题：</strong>
                    </td>
                    <td class="righttd">
                       <span id="Span1">
                        <asp:TextBox CssClass="textbox" ID="Jname" runat="server"  Width="200px"></asp:TextBox>
                        <span class="tips">*请输入节标题，</span>
                       </span>                     
                         </td>
                  </tr>  
				  
				  </tbody>         
           </table>
             
     <div style="clear:both;text-align:center">
    <br />
          <asp:Button ID="Button1" CssClass="button" runat="server" Text="确定添加" OnClick="SaveButton_Click" />
         <input type="button" value="关闭窗口(C)" onclick="<%=KSCMS.S("about")!="top"?"parent.box.close()":"top.location.reload()" %>" class="button" accesskey="C" /></div>

        </asp:Panel>
        
        <asp:Panel ID="PiliangPanel" runat="server">
            <input type="hidden" name="periodids" value="<%=KSCMS.S("ids") %>" />
              <table width="100%" border="0" cellpadding="1" cellspacing="1" class="CTable">  
                  <tr>
                      <td class="lefttd" >课时学习次数限制:</td>
                      <td class="righttd"><asp:TextBox ID="TxtPlayNum" CssClass="textbox"  runat="server" Text="1" Width="60px" ></asp:TextBox></td>
                  </tr>
                   <tr>
                      <td class="lefttd" >课时是否收费:</td>
                      <td class="righttd"><input type="radio" name="isfree" value="0" checked onclick="isfreeinfo(this.value)" />不收费<input type="radio" name="isfree" value="1" onclick="isfreeinfo(this.value)" />收费
                           </td>
                  </tr> 
                <tbody  id="free" style="display:none">
                    <tr>
                        <td class="lefttd" >课时收费金额:</td>
                        <td class="righttd"><asp:TextBox ID="TxtMoney" CssClass="textbox"  runat="server" Text="0.0" Width="60px"></asp:TextBox></td>
                    </tr>
                </tbody> 
              </table>
            <div style="clear:both;text-align:center">
           <br />
          <asp:Button ID="Button2" CssClass="button" runat="server" Text="确定设置" OnClick="Button2_Click" />
         <input type="button" value="关闭窗口(C)" onclick="<%=KSCMS.S("about")!="top"?"top.frames['main'].box.close()":"top.box.close()" %>" class="button" accesskey="C" /></div>

           <script>
               function isfreeinfo(id)
               { 
                   if (id == 0) {
                       $("#free").hide();
                   } else {
                       $("#free").show();
                   }
               }
           </script>
        </asp:Panel>

</asp:Content>

