<%@ page language="VB" masterpagefile="~/blank.master" autoeventwireup="false" inherits="WebExam.Web.secure_storage_keypoint, App_Web_5ydpmfdq" title="题库设置" %>

<%@ MasterType VirtualPath="~/blank.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script type ="text/javascript" >
  
 function fg(){
    var tkInput =document.getElementById("<%= CheckBox1.ClientId() %>");
    
    if (tkInput.checked){
       return confirm("设置当前科目为保密级别时，系统自动设置所有下级科目为保密级别，确定修改吗？")
    
    }
    var fgInput =document.getElementById("<%= CheckBox2.ClientId() %>");
    if(confirm("所有下级科目也要设置为公开吗？")){
       fgInput.checked=true;
    
    
    }
    else
    fgInput.checked=false;
   return;
 
 }

</script>
    <table>
        <tr>
            <td valign="top">
                &nbsp;</td>
            <td style="width: 20px">
                
            </td>
            <td valign="top">
                <table>
                    
                    <tr>
                        <td><p style="text-align:center; font-weight:bold">知识点列表</p>
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" HorizontalAlign="Center"
                                CellPadding="4" ForeColor="#333333" DataKeyNames="id" GridLines="None">
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#EFF3FB" />
                                <Columns>
                                    <asp:BoundField DataField="id" HeaderText="编号" ReadOnly="True" />
                                    <asp:BoundField DataField="keyWord" HeaderText="知识点" />
                                    <asp:CommandField ShowEditButton="True" />
                                    <asp:CommandField ShowDeleteButton="True" />
                                </Columns>
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <EmptyDataTemplate>
                                    尚未设置知识点</EmptyDataTemplate>
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <EditRowStyle BackColor="#2461BF" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                            <asp:TextBox ID="TB_new" runat="server" ValidationGroup="add"></asp:TextBox><asp:RequiredFieldValidator
                                ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ValidationGroup="add"
                                ControlToValidate="TB_new"></asp:RequiredFieldValidator>
                            <asp:Button ID="Btn_add" runat="server" Text="添加知识点" ValidationGroup="add" />
                            <p style="text-align:center;">
                            
                            </p>
                        </td>
                        <td style="width:100px">
                        </td>
                        <td style="vertical-align:top">
                            <asp:CheckBox ID="CheckBox1" runat="server"  Text="题库保密" ValidationGroup="addp"
                              />
                            <asp:CheckBox ID="CheckBox2" runat="server"  style="display:none" ValidationGroup="addp" />
                            <asp:Button ID="Button1" runat="server" Text="修改" OnClientClick ="return fg();" ValidationGroup="addp" />
                           
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
   
</asp:Content>
