<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="exame_Add.aspx.cs" Inherits="RPWEB.Manage.exame_Add" EnableEventValidation="false"%>

<%@ Register Assembly="Com.EEShou.Www.TreeControl" Namespace="Com.EEShou.Www.TreeControl"
    TagPrefix="tree" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <link href="../Web_CSS/WebCss.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
     <div class="div_All">
    <div class="Body_Title"><a href=exame_manage.aspx>考试管理</a> 》》添加考试</div>
        <hr />
     <table cellpadding="2" cellspacing="1" class="Admin_Table" style="width:99%; margin:5px auto;">
     <thead>
        <tr class="Admin_Table_Title">
            <th colspan="3">考试名称:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text="添加" onclick="Button1_Click" />
                         </th>
        </tr>
     </thead>
     
             <tr>
            <td>&nbsp;</td>
            <td>
                 <asp:ListBox ID="ListBox1" runat="server" SelectionMode="Multiple" >
                 </asp:ListBox>
                <asp:CheckBox ID="CheckBox1" runat="server" Text="只添加属性为“在校”的学生" Checked="True" 
                    TextAlign="Left" Height="20px" />
                </td>
            <td> 
                <asp:ListBox ID="ListBox2" runat="server" SelectionMode="Multiple"></asp:ListBox>
                 </td>
        </tr>  
     
     
     
     <tr><td>
     <p>

        
        
 
        
        </p>
     </td></tr>
     
          </table>
    
    
    
    
        <hr />
     <table cellpadding="2" cellspacing="1" class="Admin_Table" style="width:99%; margin:5px auto;">
     <thead>
        <tr class="Admin_Table_Title">
            <th colspan="3">添加方式二：直接导入。直接使用Excel里的班级、学生、科目进行统计，班级、学生、科目数据不一定要系统存在，应用于统计外校，或者快速统计。
                         </th>
        </tr>
     </thead>
     
             <tr>
            <td colspan=3>
            
            

            考试名称:<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br />

            
            <script type="text/javascript">
   function CheckFile(str)
   {
        var strRegex = "(.xls|.xls|.xls|.xls)$"; //用于验证图片扩展名的正则表达式
        var re=new RegExp(strRegex);

        if (re.test(str)){
            return (true);
        }
        else{
            alert("禁止的文件扩展名"); 
            return (false);
        }
   }
</script>

            
        Excel文件：<asp:FileUpload  ID="fileId" runat="server" onchange="CheckFile(this.value);" /><asp:Button ID="Button2" runat="server" Text="导入" OnClientClick="return check()" onclick="Button2_Click" />
            
            <br />   
Excel表格格式(<a href="../down/直接导入数据模板.xls">模板</a> )：            

<table border="1" cellpadding="0" cellspacing="0">
  <tr>
    <td height="19" >班级</td>
    <td >学号</td>
    <td >考号</td>
    <td >姓名</td>
    <td >科目一</td>
    <td >科目二</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
  </tr>
    <tr>
    <td height="19" >初一(1)班</td>
    <td >2010001</td>
    <td >1</td>
    <td >XXX</td>
    <td >88</td>
    <td >98</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
  </tr>
      <tr>
    <td height="19" >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
    <td >...</td>
  </tr>
</table>       
            
            </td>

        </tr>  
     
     
     
     <tr><td>
     <p>

        
        
 
        
        </p>
     </td></tr>
     
          </table>
          
          
          

            <tree:BackGround ID="backGround1" runat="server" />
            <tree:DialogBox ID="dBox" runat="server" OnOnSelect="dBox_OnSelect" />
        
    </div>
    </form>
</body>
</html>
