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



<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <title>学生导入导出</title>
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
    <%=ImportScriptStr %>
    <script language="javascript" src="/admin/js/System.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        function AutoStart() {
            var info;
            var bstate;

            if (document.getElementById("radOutput").checked) {
                info = "您确实要导出数据吗？导出数据比较浪费系统资源，请尽量在服务器不忙的时候使用！";
                //bstate = confirm(info);
                if (art.dialog.data("retdata") == 1) {
                    art.dialog.data("retdata", 0);//重置
                    return true;
                }
                art.dialog.confirm(info, function () {
                    art.dialog.data("retdata", 1);
                    document.getElementById("btnSubmit1").click();
                });
                return false;
            }

            else {
                info = "您确实要开始学生信息吗？请注意在没有结束的时候，请不要关闭浏览器，否则系统将可能存在问题！";

                if (art.dialog.data("retdata") == 1) {
                    art.dialog.data("retdata", 0);//重置
                    return true;
                }
                art.dialog.confirm(info, function () {
                    art.dialog.data("retdata", 1);

                    var txt1 = document.getElementById("btnSubmit1");
                    txt1.style.display = "none";

                    document.getElementById("btnSubmit1").click();
                });
                return false;
                //bstate = confirm(info);
                //if (bstate) {
                //var txt1 = document.getElementById("btnSubmit1");
                //txt1.style.display = "none";
                //}
            }
            return bstate;
        }

        function SetButtonState(state) {
            var btn = document.getElementById("btnSubmit1");
            if (state) {
                btn.style.display = "none";
            }
            else {
                btn.style.display = "";
            }
        }

    </script>



</head>
<body>
    <form id="form1" runat="server">
        
        
        <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/default/images/mini_icons_046.gif" width="10" height="10" />
                            基本信息
                        </div>
                    </li>
                </ul>
            </div>
            <div id="mypanel">
                <div class="divInfoContext">
                    <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" cellpadding="0" cellspacing="1" class="tablist" id="mainlist"
                            onmouseover="changeto()" onmouseout="changeback()">
                            <tr class="tablisttr">
                                <td class="tablisttitle">导入导出
                                </td>
                                <td class="tabmanagertr">
                                    <div class="divRadCheck">
                                        <asp:RadioButton ID="radOutput" runat="server" Checked="True" GroupName="1"
                                            Text="导出数据" OnCheckedChanged="radOutput_CheckedChanged"
                                            AutoPostBack="True" />&nbsp;&nbsp;
                                      <asp:RadioButton ID="radInput" runat="server" GroupName="1" Text="导入数据"
                                          OnCheckedChanged="radInput_CheckedChanged" AutoPostBack="True" />
                                    </div>
                                </td>
                            </tr>
                            <tbody runat="server" id="tbOutput">
                                <tr class="tablisttr">
                                    <td class="tablisttitle">导出说明
                                    </td>
                                    <td class="tabmanagertr">您可以通过本功能导出标准的Excel文件，方便在以后学生到系统使用；
                                <a href="/upload/systemplate/v8studentgxtk.xlsx" target="_blank">[导出样例]</a>

                                        <div class="divRadCheck" style="display: none">
                                            <asp:RadioButton ID="radPDF" runat="server" GroupName="2" Text="PDF格式" Checked="True" />&nbsp;&nbsp;
                                <asp:RadioButton ID="radRTF" runat="server" GroupName="2" Text="RTF格式" />&nbsp;&nbsp;
                                <asp:RadioButton ID="radCVS" runat="server" GroupName="2" Text="CVS格式" />
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                            <tbody runat="server" id="tbInput" visible="false">
                                <tr class="tablisttr">
                                    <td class="tablisttitle">选择文件<span class="fStar">*</span>
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox runat="server" ID="txtPath" Width="500">/upload/systemplate/v8studentgxtk.xlsx</asp:TextBox>
                                        <a href="#" onclick="SkyOpenBak('txtPath');">[选择]</a>
                                        <a href="/upload/systemplate/v8studentgxtk.xlsx" target="_blank">[模板]</a>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td class="tablisttitle">处理方式
                                    </td>
                                    <td class="tabmanagertr">
                                        <div class="divRadCheck">
                                            <asp:RadioButton ID="radUpdate" runat="server" GroupName="3" Text="更新" Checked="True" />&nbsp;&nbsp;
                                <asp:RadioButton ID="radNoOpr" runat="server" GroupName="3" Text="跳过" />
                                            <span class="usHelpMessage">* 注意事项： 选择[更新]时，当出现相同[学生编号]的记录时，系统更新数据，否则选择[跳过]不处理相同记录；</span>
                                        </div>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td class="tablisttitle">学生提示
                                    </td>
                                    <td class="tabmanagertr">
                                        <div style="height: 300px; overflow: auto" id="logInfo">
                                            <iframe src="exportmainserver.aspx" id="OutputFrame" allowtransparency="true" frameborder="0"
                                                width="100%" height="100%" scrolling="auto" marginheight="0"></iframe>
                                        </div>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td class="tablisttitle">导入说明</td>
                                    <td class="tabmanagertr">
                                        1.导入的文件必须符合标准格式 
                                        <br />
                                        2.导入的学生编号必须符合系统规则 
                                        <br />
                                        3.导入的学生如果系统已经存在则系统自动采用更新方法更新学生信息 
                                        <br />
                                        4.导出的学生的默认密码是【123456】，请提示学生自己登录后修改密码

                                         <br />
                                        5.导入的出生日期和入学日期格式必须是yyyy-MM-dd格式时间才可以；例如：2015-01-12

                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="divSave">
                            <asp:Button ID="btnSubmit1" runat="server" Text="提交(S)" CssClass="SkyButtonFocus"
                                OnClick="btnSubmit_Click" />
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </form>
</body>
</html>
