<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Us.Web._default" %>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>
        <% = sGet.sSchoolName+" - "+sGet.sSoftName%>
    </title>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <link rel="stylesheet" href="admin/skin/new/login.css" type="text/css">
    <script src="admin/js/SystemUserLogin.js" type="text/javascript"></script>
    <script type="text/javascript">
    if (window!=top) // 判断当前的window对象是否是top对象
    top.location.href =window.location.href; // 如果不是，将top对象的网址自动导向被嵌入网页的网址
    </script>

</head>
<body>
    <form name="FrmReg" method="post" target="_self" action="admin/skyLogin.aspx" id="FrmReg">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
        <tr>
            <td valign="middle">
                <table width="796" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table width="796" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td height="342" align="center" valign="bottom" class="tdbg">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td height="30">
                                                    <table border="0" align="center" cellpadding="3" cellspacing="2" class="skyLoginFont">
                                                        <tr>
                                                            <td>
                                                                <img src="admin/skin/new/1.jpg" width="31" height="27" />
                                                            </td>
                                                            <td>
                                                                身 份：
                                                            </td>
                                                            <td>
                                                                <select name="DrpUserType" id="DrpUserType" class="skyLoginInput" onchange="changeForm(this.value)">
                                                                <%=getroleInfoString()%>
                                                                    <%--<option value="1000" selected>学生角色</option>
                                                                    <option value="1001">教师角色</option>
                                                                    <option value="1002">管理员角色</option>
                                                                    
                                                                    <option value="1005">辅导员角色</option>
                                                                    <option value="1006">学生处角色</option>
                                                                    <option value="1007">教务处角色</option>
                                                                    <option value="1008">家长角色</option>--%>
                                                                </select>
                                                            </td>
                                                            <td>
                                                                <img src="admin/skin/new/2.jpg" width="31" height="27" />
                                                            </td>
                                                            <td id="tdUserName" width="60">
                                                                学生编号：
                                                            </td>
                                                            <td>
                                                                <input name="UserID1" type="text" maxlength="30" id="UserID1" class="skyLoginInput">
                                                            </td>
                                                            <td>
                                                                <img src="admin/skin/new/3.jpg" width="31" height="27" />
                                                            </td>
                                                            <td>
                                                                密 码：
                                                            </td>
                                                            <td>
                                                                <input name="UserPwd1" type="password" maxlength="30" id="UserPwd1" class="skyLoginInput">
                                                            </td>
                                                            <td>
                                                                <input name="openwindow" type="checkbox" id="openwindow">
                                                                <label for="openwindow" title="后台屏蔽菜单等导航功能">
                                                                    登录后全屏</label>
                                                            </td>
                                                            <td>
                                                                <input type="image" name="imageField" id="imageField" src="admin/skin/new/btnLogin.jpg"
                                                                    onclick="return SkyUserLogin();" title="进入教务管理系统">
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="80" align="center">
                                                    <div class="skyCopyFont">
                                                        <% = sGet.sSoftCopyRight %>
                                                    </div>
                                                    <div class="skyOnlineUser">
                                                        当前<font color="#FF0000">
                                                            <% = sOnlineUser%></font>人在线</div>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
   <script type="text/javascript">
       function GetQueryString(name) {
           var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
           var r = window.location.search.substr(1).match(reg);
           if (r != null) return unescape(r[2]); return null;
       }

       function setSelectChecked(selectId, checkValue) {
           var select = document.getElementById(selectId);
           for (var i = 0; i < select.options.length; i++) {
               //alert(select.options[i].value);
               if (select.options[i].value == checkValue) {
                   select.options[i].selected = true;
                   break;
               }
           }
       };
       var p = GetQueryString("p");
       if (p != null) {
           setSelectChecked("DrpUserType", p);
       }
    </script>
</body>
</html>
