예제 #1
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     //清除缓存
     Response.Expires = 0;
     Response.Buffer  = true;
     Response.Clear();
     //判断是否允许帐户注册
     if (ObjFun.GetValues("select StartValue from SystemSet where SetName='OnLineRegist'", "StartValue") == "1")
     {
         intUserState = Convert.ToInt32(ObjFun.GetValues("select StartValue from SystemSet where SetName='RegistWay'", "StartValue"));
     }
     else
     {
         ObjFun.Alert("系统不允许帐户在线注册!");
     }
     txtBirthday.Attributes["readonly"] = "true";
     if (!IsPostBack)
     {
         ShowDeptInfo();               //显示部门信息
         ShowJobInfo();                //显示职务信息
         ShowUserType();               //显示帐户类型
         txtCertType.Text = "身份证";
         DDLDept.Items.FindByText("--请选择--").Selected = true;
         DDLJob.Items.FindByText("--请选择--").Selected  = true;
     }
 }
예제 #2
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            try
            {
                myUserID   = Session["UserID"].ToString();
                myLoginID  = Session["LoginID"].ToString();
                myUserName = Session["UserName"].ToString();
            }
            catch
            {
            }
            if (myLoginID == "")
            {
                Response.Redirect("Login.aspx");
            }
            intUserID   = Convert.ToInt32(myUserID);
            intUserType = Convert.ToInt32(ObjFun.GetValues("select UserType from UserInfo where LoginID='" + myLoginID + "'", "UserType"));
            if (intUserType == 0)          //普通帐户
            {
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td id='imgmenu1' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(1)'";
                strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menuup.gif'";
                strMainMenu = strMainMenu + "height='25'>";
                strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>个人事务</span></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td id='submenu1' style='DISPLAY: block; font-size:9pt; color:#333333; line-height:150%'>";
                strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' align='center'>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='PersonInfo/BrowNewsList.aspx'><font color='000000'>查看新闻</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='PersonInfo/JoinExam.aspx'><font color='000000'>参加考试</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='PersonInfo/JoinJob.aspx'><font color='000000'>参加作业</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='PersonInfo/JoinStudyFrame.aspx'><font color='000000'>参加学习</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='PersonInfo/UserInfo.aspx'><font color='000000'>帐户信息</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='PersonInfo/PassWord.aspx'><font color='000000'>修改密码</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "</table>";
                strMainMenu = strMainMenu + "</div>";
                strMainMenu = strMainMenu + "</td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td id='imgmenu2' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(2)'";
                strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menuup.gif'";
                strMainMenu = strMainMenu + "height='25'>";
                strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>成绩查询</span></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td id='submenu2' style='DISPLAY: block; font-size:9pt; color:#333333; line-height:150%'>";
                strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' style='border-collapse: collapse' bordercolor='#111111'";
                strMainMenu = strMainMenu + "align='center'>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='PersonInfo/QueryGrade.aspx?PaperType=1'><font color='000000'>考试成绩</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='PersonInfo/QueryGrade.aspx?PaperType=2'><font color='000000'>作业成绩</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "</table>";
                strMainMenu = strMainMenu + "</div>";
                strMainMenu = strMainMenu + "</td>";
                strMainMenu = strMainMenu + "</tr>";
            }
            else            //管理帐户
            {
                intRoleMenu = Convert.ToInt32(ObjFun.GetValues("select RoleMenu from UserInfo where LoginID='" + myLoginID + "'", "RoleMenu"));

                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td id='imgmenu1' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(1)'";
                strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menudown.gif'";
                strMainMenu = strMainMenu + "height='25'>";
                strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>个人事务</span></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td id='submenu1' style='DISPLAY: none; font-size:9pt; color:#333333; line-height:150%'>";
                strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' align='center'>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='PersonInfo/BrowNewsList.aspx'><font color='000000'>查看新闻</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='PersonInfo/JoinExam.aspx'><font color='000000'>参加考试</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='PersonInfo/JoinJob.aspx'><font color='000000'>参加作业</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='PersonInfo/JoinStudyFrame.aspx'><font color='000000'>参加学习</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='PersonInfo/UserInfo.aspx'><font color='000000'>帐户信息</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='PersonInfo/PassWord.aspx'><font color='000000'>修改密码</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "</table>";
                strMainMenu = strMainMenu + "</div>";
                strMainMenu = strMainMenu + "</td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td id='imgmenu2' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(2)'";
                strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menudown.gif'";
                strMainMenu = strMainMenu + "height='25'>";
                strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>成绩查询</span></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td id='submenu2' style='DISPLAY: none; font-size:9pt; color:#333333; line-height:150%'>";
                strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' style='border-collapse: collapse' bordercolor='#111111'";
                strMainMenu = strMainMenu + "align='center'>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='PersonInfo/QueryGrade.aspx?PaperType=1'><font color='000000'>考试成绩</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='PersonInfo/QueryGrade.aspx?PaperType=2'><font color='000000'>作业成绩</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "</table>";
                strMainMenu = strMainMenu + "</div>";
                strMainMenu = strMainMenu + "</td>";
                strMainMenu = strMainMenu + "</tr>";

                if ((intRoleMenu == 1) || (ObjFun.GetValues("select OptionID from UserPower where UserID=" + intUserID + " and PowerID=3 and OptionID=1", "OptionID") != ""))     //新闻管理
                {
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='imgmenu3' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(3)'";
                    strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menudown.gif'";
                    strMainMenu = strMainMenu + "height='25'>";
                    strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>新闻管理</span></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='submenu3' style='DISPLAY: none; font-size:9pt; color:#333333; line-height:150%'>";
                    strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                    strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' style='border-collapse: collapse' bordercolor='#111111'";
                    strMainMenu = strMainMenu + "align='center'>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='NewsManag/ManagNewsList.aspx'><font color='000000'>新闻管理</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "</table>";
                    strMainMenu = strMainMenu + "</div>";
                    strMainMenu = strMainMenu + "</td>";
                    strMainMenu = strMainMenu + "</tr>";
                }
                if ((intRoleMenu == 1) || (ObjFun.GetValues("select OptionID from UserPower where UserID=" + intUserID + " and PowerID=3 and OptionID=2", "OptionID") != ""))     //帐户管理
                {
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='imgmenu4' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(4)'";
                    strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menudown.gif'";
                    strMainMenu = strMainMenu + "height='25'>";
                    strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>帐户管理</span></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='submenu4' style='DISPLAY: none; font-size:9pt; color:#333333; line-height:150%'>";
                    strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                    strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' style='border-collapse: collapse' bordercolor='#111111'";
                    strMainMenu = strMainMenu + "align='center'>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='UserManag/NewMoreUser.aspx'><font color='000000'>批量新建</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='UserManag/ImportUser.aspx'><font color='000000'>导入帐户</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='UserManag/ManagUserList.aspx'><font color='000000'>帐户管理</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "</table>";
                    strMainMenu = strMainMenu + "</div>";
                    strMainMenu = strMainMenu + "</td>";
                    strMainMenu = strMainMenu + "</tr>";
                }
                if ((intRoleMenu == 1) || (ObjFun.GetValues("select OptionID from UserPower where UserID=" + intUserID + " and PowerID=3 and OptionID=3", "OptionID") != ""))     //题库管理
                {
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='imgmenu5' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(5)'";
                    strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menudown.gif'";
                    strMainMenu = strMainMenu + "height='25'>";
                    strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>题库管理</span></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='submenu5' style='DISPLAY: none; font-size:9pt; color:#333333; line-height:150%'>";
                    strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                    strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' style='border-collapse: collapse' bordercolor='#111111'";
                    strMainMenu = strMainMenu + "align='center'>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='RubricManag/ImportTest.aspx'><font color='000000'>导入试题</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='RubricManag/ManagTestList.aspx'><font color='000000'>题库管理</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='RubricManag/CountTest.aspx'><font color='000000'>题库统计</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='RubricManag/ManagBookFrame.aspx'><font color='000000'>电子书籍</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "</table>";
                    strMainMenu = strMainMenu + "</div>";
                    strMainMenu = strMainMenu + "</td>";
                    strMainMenu = strMainMenu + "</tr>";
                }
                if ((intRoleMenu == 1) || (ObjFun.GetValues("select OptionID from UserPower where UserID=" + intUserID + " and PowerID=3 and OptionID=4", "OptionID") != ""))     //试卷管理
                {
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='imgmenu6' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(6)'";
                    strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menudown.gif'";
                    strMainMenu = strMainMenu + "height='25'>";
                    strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>试卷管理</span></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='submenu6' style='DISPLAY: none; font-size:9pt; color:#333333; line-height:150%'>";
                    strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                    strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' style='border-collapse: collapse' bordercolor='#111111'";
                    strMainMenu = strMainMenu + "align='center'>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='PaperManag/ManagExamPaper.aspx'><font color='000000'>考试试卷</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='PaperManag/ManagJobPaper.aspx'><font color='000000'>作业试卷</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "</table>";
                    strMainMenu = strMainMenu + "</div>";
                    strMainMenu = strMainMenu + "</td>";
                    strMainMenu = strMainMenu + "</tr>";
                }
                if ((intRoleMenu == 1) || (ObjFun.GetValues("select OptionID from UserPower where UserID=" + intUserID + " and PowerID=3 and OptionID=5", "OptionID") != ""))     //过程管理
                {
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='imgmenu7' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(7)'";
                    strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menudown.gif'";
                    strMainMenu = strMainMenu + "height='25'>";
                    strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>过程管理</span></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='submenu7' style='DISPLAY: none; font-size:9pt; color:#333333; line-height:150%'>";
                    strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                    strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' style='border-collapse: collapse' bordercolor='#111111'";
                    strMainMenu = strMainMenu + "align='center'>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='ProcessManag/ManagProcess.aspx?PaperType=1'><font color='000000'>考试管理</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%'><a target='main' href='ProcessManag/ManagProcess.aspx?PaperType=2'><font color='000000'>作业管理</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "</table>";
                    strMainMenu = strMainMenu + "</div>";
                    strMainMenu = strMainMenu + "</td>";
                    strMainMenu = strMainMenu + "</tr>";
                }
                if ((intRoleMenu == 1) || (ObjFun.GetValues("select OptionID from UserPower where UserID=" + intUserID + " and PowerID=3 and OptionID=6", "OptionID") != ""))     //成绩管理
                {
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='imgmenu8' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(8)'";
                    strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menudown.gif'";
                    strMainMenu = strMainMenu + "height='25'>";
                    strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>成绩管理</span></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='submenu8' style='DISPLAY: none; font-size:9pt; color:#333333; line-height:150%'>";
                    strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                    strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' align='center'>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='GradeManag/ManagGrade.aspx?PaperType=1'><font color='000000'>考试成绩</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='GradeManag/ManagGrade.aspx?PaperType=2'><font color='000000'>作业成绩</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "</table>";
                    strMainMenu = strMainMenu + "</div>";
                    strMainMenu = strMainMenu + "</td>";
                    strMainMenu = strMainMenu + "</tr>";
                }

                if (myLoginID.Trim().ToUpper() == "ADMIN")              //系统管理员
                {
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='imgmenu9' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(9)'";
                    strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menudown.gif'";
                    strMainMenu = strMainMenu + "height='25'>";
                    strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>系统设置</span></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td id='submenu9' style='DISPLAY: none; font-size:9pt; color:#333333; line-height:150%'>";
                    strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                    strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' align='center'>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='SystemSet/ManagDeptList.aspx'><font color='000000'>部门设置</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='SystemSet/ManagJobList.aspx'><font color='000000'>职务设置</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='SystemSet/ManagSubjectList.aspx'><font color='000000'>科目设置</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='SystemSet/ManagTestTypeList.aspx'><font color='000000'>题型设置</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='SystemSet/ManagPowerList.aspx'><font color='000000'>权限设置</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    strMainMenu = strMainMenu + "<tr>";
                    strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='SystemSet/SetOther.aspx'><font color='000000'>综合设置</font></a></td>";
                    strMainMenu = strMainMenu + "</tr>";
                    //strMainMenu=strMainMenu+"<tr>";
                    //strMainMenu=strMainMenu+"<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a target='main' href='SystemSet/RegistSoft.aspx'><font color='000000'>软件注册</font></a></td>";
                    //strMainMenu=strMainMenu+"</tr>";
                    strMainMenu = strMainMenu + "</table>";
                    strMainMenu = strMainMenu + "</div>";
                    strMainMenu = strMainMenu + "</td>";
                    strMainMenu = strMainMenu + "</tr>";
                }
            }

            if (intUserType == 0)          //普通帐户
            {
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td id='imgmenu10' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(10)'";
                strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menuup.gif'";
                strMainMenu = strMainMenu + "height='25'>";
                strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>系统帮助</span></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td id='submenu10' style='DISPLAY: block; font-size:9pt; color:#333333; line-height:150%'>";
                strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' align='center'>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a href='#' onclick={NewWin=window.open('Help/CommoHelp.htm','CommoHelp','titlebar=yes,menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=no,copyhistory=yes,top=0,left=0,width=screen.availWidth,height=screen.availHeight');NewWin.moveTo(0,0);NewWin.resizeTo(screen.availWidth,screen.availHeight);}><font color='000000'>在线帮助</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a href='#' onclick=showModalDialog('Help/About.aspx',0,'dialogWidth:306px;dialogHeight:224px;help:no;center:yes;resizable:no;status:no;scroll:no');><font color='000000'>关于系统</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "</table>";
                strMainMenu = strMainMenu + "</div>";
                strMainMenu = strMainMenu + "</td>";
                strMainMenu = strMainMenu + "</tr>";
            }
            else            //管理帐户
            {
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td id='imgmenu10' class='menu_title' onmouseover=this.className='menu_title2'; onclick='showsubmenu(10)'";
                strMainMenu = strMainMenu + "onmouseout=this.className='menu_title'; style='cursor:hand' background='images/menudown.gif'";
                strMainMenu = strMainMenu + "height='25'>";
                strMainMenu = strMainMenu + "<span style='font-weight: bold; left: 18px; color: #215dc6; position: relative; top: 2px'>系统帮助</span></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td id='submenu10' style='DISPLAY: none; font-size:9pt; color:#333333; line-height:150%'>";
                strMainMenu = strMainMenu + "<div class='sec_menu' style='WIDTH: 135px'>";
                strMainMenu = strMainMenu + "<table cellspacing='3' cellpadding='0' width='100' align='center'>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a href='#' onclick={NewWin=window.open('Help/ManagHelp.htm','ManagHelp','titlebar=yes,menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=no,copyhistory=yes,top=0,left=0,width=screen.availWidth,height=screen.availHeight');NewWin.moveTo(0,0);NewWin.resizeTo(screen.availWidth,screen.availHeight);}><font color='000000'>在线帮助</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "<tr>";
                strMainMenu = strMainMenu + "<td style='font-size: 9pt; color: #333333; line-height: 150%' width='100'><a href='#' onclick=showModalDialog('Help/About.aspx',0,'dialogWidth:306px;dialogHeight:224px;help:no;center:yes;resizable:no;status:no;scroll:no');><font color='000000'>关于系统</font></a></td>";
                strMainMenu = strMainMenu + "</tr>";
                strMainMenu = strMainMenu + "</table>";
                strMainMenu = strMainMenu + "</div>";
                strMainMenu = strMainMenu + "</td>";
                strMainMenu = strMainMenu + "</tr>";
            }
        }