<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="excelteacher.aspx.cs" Inherits="Us.Web.admin.excel.excelteacher" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!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>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
    <%=ImportScriptStr %></head>
<body>
    <form id="Form1" method="post" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <Triggers>
                <asp:PostBackTrigger ControlID="btnSubmit" />
            </Triggers>
            <ContentTemplate>
                <div id="tbMain">
                    <div class="divTbg">
                        <div class="divTbgL"></div>
                        <div class="divTbgInfo">
                            <div class="divTbgTitle">教师信息导入导出</div>
                        </div>
                    </div>
                    <div class="divTbgF"></div>
                    <div class="divTNavBG" id="topURL">
                        <ul id="topURLul">
                            <li class="divURLed" id="div1">
                                <div>
                                    <img src="../style/green/images/mini_icons_046.gif" width="10" height="10" />
                                    教师信息</div>
                            </li>
                        </ul>
                    </div>
                    <div id="mypanel">
                        <div id="ddiv1">
                            <div class="divInfo">
                                <div class="divInfoblack">
                                    <div class="divInfoTopList">
                                        <div class="listLeft">
                                            <div class="navtitle">导入导出 </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="divInfo">
                                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tablist">
                                    <tr class="tablisttr">
                                        <td width="100" align="center" class="tablisttitle">导入/导出 </td>
                                        <td class="tabmanagertr">
                                            <asp:RadioButton ID="radOut" runat="server" Checked="True" GroupName="rad" Text="导出"
                                                AutoPostBack="True" OnCheckedChanged="radOut_CheckedChanged" />
                                            <asp:RadioButton ID="radIn" runat="server" GroupName="rad" Text="导入" AutoPostBack="True"
                                                OnCheckedChanged="radIn_CheckedChanged" />
                                        </td>
                                    </tr>
                                    <tr class="tablisttr">
                                        <td width="100" align="center" class="tablisttitle">隶属院系 </td>
                                        <td class="tabmanagertr">
                                            <asp:DropDownList ID="drpSkyDID" runat="server"></asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr class="tablisttr" runat="server" id="trShow" visible="false">
                                        <td width="100" align="center" class="tablisttitle">选择EXCEL </td>
                                        <td class="tabmanagertr">
                                            <asp:TextBox ID="txtExcelPath" runat="server" Width="339px">/upload/systemplate/teacher.xls</asp:TextBox>
                                            <a href="#" onclick="SkyOpen('txtExcelPath');">[选择]</a>

                                            <a href="#" onclick="SkyView('txtExcelPath');">[查看]</a>
                                            <a href="/upload/systemplate/teacher.xls" target="_blank">[标准文件下载]</a>

                                            <br />
                                            导入要求如下：<br />
                                            1.导入的文件必须符合标准格式 
                    2.导入的教师编号必须符合系统规则
                                            <br />
                                            3.导入的教师如果系统已经存在则系统自动采用更新方法更新教师信息 
                    4.系统推荐教师编号为10而且教师编号的前2位是院系编号<br />
                                            <br />
                                            <span style="color: Red">
                                                <asp:Literal ID="LiteralScript" runat="server"></asp:Literal></span>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="divSave">
                        <asp:Button ID="btnSubmit" runat="server" Text="操作(S)" CssClass="SkyButtonFocus"
                            OnClick="btnSubmit_Click" AccessKey="S" CommandName="save"></asp:Button>
                    </div>
                </div><div class="divInfo">
            <span class="usHelpMessage">* 注意事项： 新开发的导出功能,点击<a href="/admin/export/exporuserteacher.aspx">[进入]</a> </span>
        </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
            <ProgressTemplate>
                <div id="divLoading">
                    <img src="/admin/images/loading.gif" />
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </form>
</body>
</html>
