Example #1
0
 private void method_1(string string_3, string string_4)
 {
     LibraryClass class2 = new LibraryClass();
     string[] strArray = new AutoSave().getAutoSaveInfo(string_4);
     try
     {
         string str = strArray[0].ToString();
         string str2 = strArray[1].ToString();
         string str3 = strArray[4].ToString();
         string strParameters = strArray[2].ToString();
         string str5 = strArray[3].ToString();
         string str6 = strArray[5].ToString();
         this.Session["SubjectNo"] = str;
         this.Session["LibraryNo"] = strParameters;
         Convert.ToDateTime(strArray[6]);
         this.string_2 = class2.getLibraryLayout(strParameters);
         string str7 = this.jc.SixSelections ? "true" : "false";
         string text1 = this.jc.FillAutoScore ? "true" : "false";
         string str8 = this.jP.getSaveInterval();
         string str9 = this.jP.getBackShowAnswer();
         this.str_PaperHead = "";
         this.str_PaperHead = this.str_PaperHead + " <p><img src=\"" + this.string_1 + "img1.gif\" /><span class=\"PaperItemlbl\">恢复考试</span></p>\n ";
         string str10 = this.str_PaperHead;
         this.str_PaperHead = str10 + " <p><img src=\"" + this.string_1 + "img2.gif\" /><span>科目:</span><span class=\"PaperItemlbl\">" + str2 + "</span></p>\n ";
         str10 = this.str_PaperHead;
         this.str_PaperHead = str10 + " <p><img src=\"" + this.string_1 + "img3.gif\" /><span>试卷:</span><span class=\"PaperItemlbl\" id=\"LibraryName\">" + str5 + "</span></p>\n ";
         str10 = this.str_PaperHead;
         this.str_PaperHead = str10 + " <p>\n<img src=\"" + this.string_1 + "img5.gif\" /><span>姓名:</span>\n<span id=\"lbl_TrueName\" class=\"PaperItemlbl\">" + str6 + "</span>\n</p>\n ";
         this.str_PaperHead = this.str_PaperHead + " <p>\n<img src=\"" + this.string_1 + "img4.gif\" /><span>剩余时间:</span>\n<span  id=\"timer\" class=\"PaperItemlbl\"></span>\n</p>\n ";
         this.str_PaperHead = this.str_PaperHead + " <p>\n<img src=\"" + this.string_1 + "img4.gif\" /><span>已用时间:</span>\n<span  id=\"DivtimerLong\" class=\"PaperItemlbl\"></span>\n</p>\n ";
         this.pageHead.Controls.Add(new LiteralControl(this.str_PaperHead));
         string str11 = "var imgpath = '" + this.string_1 + "',PageLibraryLayout='" + this.string_2 + "',NormalExit=false,SixSelections=" + str7 + ",timer,maxtime,timerLong,sec=0,fnAutoSave,SubjectNo='" + str + "',SubjectName='" + str2 + "',LibraryNo='" + strParameters + "',LibraryName='" + str5 + "',UserCardId='" + string_3 + "',UserTrueName='" + str6 + "',UserGroupID='" + str3 + "',SaveInterval=" + str8 + ",RecoverAutoTest='1',Animation=false,AutoChange=false,TotalNum=0,FQ_Not=false,yizuo=0,aryyizuo='',weizuo=0,aryweizuo='',strSummar,RadioHead,MoreHead,BoolHead,FillHead,QAHead,LibraryProperties,RadioNum=Number(0),MoreNum=Number(0),BoolNum=Number(0),FillNum=Number(0),QANum=Number(0),LibraryScore,TestTime,PassingGrade,fixedNo,NowPType='',NowRadioId,NowMoreId,NowBoolId,NowFillId,NowQAId,NowSelId='SelectBtn1',OneRScore,OneMScore,OneBScore,testDate='" + DateTime.Now.ToString() + "',backShowAnswer=" + str9 + ",_ie6,_ie7,_ie8,screenW,screenH,allAnswer,allAnalysis,allPNo;";
         this.liScript.Text = "<script type=\"text/javascript\">" + str11 + this.method_2() + "</script>";
     }
     catch
     {
         base.Response.Write("载入自动保存的试题时出现错误!");
         base.Response.End();
     }
 }
Example #2
0
 private void method_0(string string_3, string string_4, string string_5)
 {
     LibraryClass class2 = new LibraryClass();
     string str = this.jP.getSubjectName(string_4);
     string trueName = this.jP.GetTrueName(string_3);
     string groupID = this.jP.GetGroupID(string_3);
     string str4 = this.jP.getLibraryName(string_5);
     this.string_2 = class2.getLibraryLayout(string_5);
     string str5 = this.jc.SixSelections ? "true" : "false";
     string text1 = this.jc.FillAutoScore ? "true" : "false";
     string str6 = this.jP.getSaveInterval();
     string str7 = this.jP.getBackShowAnswer();
     this.str_PaperHead = "";
     this.str_PaperHead = this.str_PaperHead + " <p><img src=\"" + this.string_1 + "img1.gif\" /><span class=\"PaperItemlbl\">考试</span></p>\n ";
     string str8 = this.str_PaperHead;
     this.str_PaperHead = str8 + " <p><img src=\"" + this.string_1 + "img2.gif\" /><span>科目:</span><span class=\"PaperItemlbl\">" + str + "</span></p>\n ";
     str8 = this.str_PaperHead;
     this.str_PaperHead = str8 + " <p><img src=\"" + this.string_1 + "img3.gif\" /><span>试卷:</span><span class=\"PaperItemlbl\" id=\"LibraryName\">" + str4 + "</span></p>\n ";
     str8 = this.str_PaperHead;
     this.str_PaperHead = str8 + " <p>\n<img src=\"" + this.string_1 + "img5.gif\" /><span>姓名:</span>\n<span id=\"lbl_TrueName\" class=\"PaperItemlbl\">" + trueName + "</span>\n</p>\n ";
     this.str_PaperHead = this.str_PaperHead + " <p>\n<img src=\"" + this.string_1 + "img4.gif\" /><span>剩余时间:</span>\n<span  id=\"timer\" class=\"PaperItemlbl\"></span>\n</p>\n ";
     this.str_PaperHead = this.str_PaperHead + " <p>\n<img src=\"" + this.string_1 + "img4.gif\" /><span>已用时间:</span>\n<span  id=\"DivtimerLong\" class=\"PaperItemlbl\"></span>\n</p>\n ";
     this.pageHead.Controls.Add(new LiteralControl(this.str_PaperHead));
     string str9 = "var imgpath = '" + this.string_1 + "',PageLibraryLayout='" + this.string_2 + "',NormalExit=false,SixSelections=" + str5 + ",timer,maxtime,timerLong,sec=0,fnAutoSave,SubjectNo='" + string_4 + "',SubjectName='" + str + "',LibraryNo='" + string_5 + "',LibraryName='" + str4 + "',UserCardId='" + string_3 + "',UserTrueName='" + trueName + "',UserGroupID='" + groupID + "',SaveInterval=" + str6 + ",RecoverAutoTest='0',Animation=false,AutoChange=false,TotalNum=0,FQ_Not=false,yizuo=0,aryyizuo='',weizuo=0,aryweizuo='',strSummar,RadioHead,MoreHead,BoolHead,FillHead,QAHead,LibraryProperties,RadioNum=Number(0),MoreNum=Number(0),BoolNum=Number(0),FillNum=Number(0),QANum=Number(0),LibraryScore,TestTime,PassingGrade,fixedNo,NowPType='',NowRadioId,NowMoreId,NowBoolId,NowFillId,NowQAId,NowSelId='SelectBtn1',OneRScore,OneMScore,OneBScore,testDate='" + DateTime.Now.ToString() + "',backShowAnswer=" + str7 + ",_ie6,_ie7,_ie8,screenW,screenH,allAnswer,allAnalysis,allPNo;";
     this.liScript.Text = "<script type=\"text/javascript\">" + str9 + this.method_2() + "</script>";
 }