private void LoadSubjectClass() { using (var helper = new DbHelper.Classes()) { var cls = helper.GetSubjectSession(SubjectSessionId); if (cls != null) { txtName.Text = cls.Name; txtEnd.Text = cls.EndDate != null?cls.EndDate.Value.ToString("MM/dd/yyyy") : ""; txtStart.Text = cls.StartDate != null?cls.StartDate.Value.ToString("MM/dd/yyyy") : ""; txtLastEnrollDate.Text = cls.JoinLastDate != null?cls.JoinLastDate.Value.ToString("MM/dd/yyyy") : ""; ddlEnrollmentMethod.SelectedIndex = (cls.EnrollmentMethod - 1); //ddlGroupingOfStudents.SelectedValue = cls.gro } } }
protected void Page_Load(object sender, EventArgs e) { CustomDialog.OkClick += CustomDialog_OkClick; CustomDialog.CancelClick += CustomDialog_CancelClick; var user = Page.User as CustomPrincipal; if (user != null) { if (!IsPostBack) { var isManager = user.IsInRole(DbHelper.StaticValues.Roles.Manager); var isTeacher = user.IsInRole(DbHelper.StaticValues.Roles.Teacher); if (!isTeacher && !isManager) { Response.Redirect("~/"); return; } SetMarkCompletionDialog(); var edit = (Session["editMode"] as string) == "1"; var classId = Request.QueryString["ccId"]; if (classId != null) { var clsId = Convert.ToInt32(classId); SubjectClassId = clsId; using (var helper = new DbHelper.Classes()) using (var usrHelper = new DbHelper.User()) { var cls = helper.GetSubjectSession(clsId); if (cls != null) { var teacherRoleId = usrHelper.GetRole(Academic.DbHelper.DbHelper.StaticValues.Roles.Teacher) .Id; lbldNotice.Visible = !cls.ClassUsers.Any(x => x.RoleId == teacherRoleId && !(x.Void ?? false)); //lblStartDate.Text =cls.StartDate==null?" - ": cls.StartDate.Value.ToString("D"); //lblEndDate.Text = cls.EndDate==null?" - ":cls.EndDate.Value.ToString("D"); var clsname = cls.GetName; var coursefullname = cls.GetCourseFullName; lblTitle.Text = clsname; if (cls.SessionComplete ?? false) { imgIndicate.ToolTip = "Complete"; imgIndicate.Visible = true; } else if (cls.StartDate <= DateTime.Now && cls.EndDate >= DateTime.Now) { imgIndicate.Visible = true; imgIndicate.ToolTip = "Active"; imgIndicate.ImageUrl = "~/Content/Icons/Start/active_icon_10px.png"; } else { imgIndicate.Visible = true; imgIndicate.ToolTip = "Due"; imgIndicate.ImageUrl = "~/Content/Icons/Watch/alarm_clock_14px.png"; } lblEnrollmentMethod.Text = cls.EnrollmentMethod == 0 ? "Auto" : (cls.EnrollmentMethod == 1) ? "Manual" : "Self"; var autoEnrollment = cls.EnrollmentMethod == 0; var curTeach = helper.IsTheUserCurrentlyTeacher(user.Id, cls.IsRegular ? cls.SubjectStructure.SubjectId : cls.SubjectId ?? 0); if (edit && (isManager || curTeach) && !(cls.SessionComplete ?? false)) { lnkMarkCompletion.Visible = true; lnkEnrollStudents.Visible = (!autoEnrollment || isManager);//&& (isTeacher || isManager); lnkEnrollTeachers.Visible = isManager; } hidOrderby.Value = autoEnrollment ? "crn" : "name"; LoadSitemap(cls); var from = Request.QueryString["from"]; lnkReport.NavigateUrl = "~/Views/Report/?ccId=" + cls.Id + "&from=" + from; lnkEnrollStudents.NavigateUrl = "~/Views/Class/Enrollment/Enrollment.aspx?ccId=" + hidSubjectSessionId.Value + "&type=student"; lnkEnrollTeachers.NavigateUrl = "~/Views/Class/Enrollment/Enrollment.aspx?ccId=" + hidSubjectSessionId.Value + "&type=teacher"; lblClassName.Text = clsname; //cls.IsRegular ? cls.GetName : cls.Name; lblCourseName.Text = coursefullname; //cls.IsRegular //? cls.SubjectStructure.Subject.FullName //: cls.Subject.FullName; lblEndDate.Text = cls.EndDate == null ? " - " : cls.EndDate.Value.ToString("D"); lblStartDate.Text = cls.StartDate == null ? " - " : cls.StartDate.Value.ToString("D"); //grouping //var grp = "No grouping"; //if (cls.HasGrouping) //{ // grp = ""; // cls.SubjectClassGrouping.ToList().ForEach(c => // { // grp += cls.Name + ", "; // }); // grp = grp.TrimEnd(new char[] { ',' }); //} //lblGrouping.Text = grp; //ListView1.DataSource = helper.ListSubjectSessionEnrolledUsers(clsId); //ListView1.DataSource = helper.ListEnrolledUsers(clsId); // ListView1.DataBind(); } } } } } }
protected void btnCancel_OnClick(object sender, EventArgs e) { try { switch (hidTask.Value) { case "courseCategory": //category delete var categoryId = Request.QueryString["catId"]; Response.Redirect("~/Views/Course/?catId=" + categoryId, false); return; break; case "course": //course delete var crsId = Request.QueryString["crsId"]; Response.Redirect("~/Views/Course/CourseDetail.aspx?cId=" + crsId, false); return; break; case "courseSection": //section delete var courseId = Request.QueryString["crsId"]; Response.Redirect("~/Views/Course/Section/default.aspx?SubId=" + courseId + "&edit=1", false); return; break; case "actRes": var courseId1 = Request.QueryString["crsId"]; var red = "~/Views/Course/Section/default.aspx?SubId=" + courseId1 + "&edit=1"; Response.Redirect(red, false); return; break; case "batch": Response.Redirect("~/Views/Student/?edit=1", false); return; break; case "structure": Response.Redirect("~/Views/Structure/?edit=1", false); return; break; case "grade": Response.Redirect("~/Views/Grade/GradeListing.aspx?edit=1", false); return; break; case "notice": var noticeId = Request.QueryString["nId"]; Response.Redirect("~/Views/NoticeBoard/NoticeDetail.aspx?nId=" + noticeId, false); return; break; case "academicYear": Response.Redirect("~/Views/Academy/?edit=1", false); return; break; case "session": var acaId = Request.QueryString["acaId"]; Response.Redirect("~/Views/Academy/AcademicYear/AcademicYearDetail.aspx?aId=" + acaId + "&edit=1", false); return; break; case "subjectClass": var subclsId = Request.QueryString["subclsId"]; if (subclsId != null) { using (var helper = new DbHelper.Classes()) { var cls = helper.GetSubjectSession(Convert.ToInt32(subclsId)); if (cls != null) { Response.Redirect("~/Views/Course/CourseDetail.aspx?cId=" + (cls.IsRegular ? cls.SubjectStructure.SubjectId : cls.SubjectId), false); } } } return; break; case "chapsubjectClass": var chapterId = Request.QueryString["bcId"]; var bookId = Request.QueryString["bId"]; var subId = Request.QueryString["SubId"]; var secId = Request.QueryString["secId"]; Response.Redirect("~/Views/ActivityResource/Book/BookView.aspx?arId=" + bookId + "&SubId=" + subId + "&secId=" + secId); return; break; } } catch (Exception exe) { Response.Redirect("~/Views/All_Resusable_Codes/Error/ErrorPage.aspx"); } }
private void LoadCustomText() { try { #region Activity Resource var actResId = Request.QueryString["actResId"]; //var actOrRes = Request.QueryString["actOrRes"]; //var actOrResId = Request.QueryString["actOrResId"]; //var actResType = Request.QueryString["actResType"]; if (actResId != null)//actOrRes != null && actOrResId != null && actResType != null) { var displayType = ""; //var type = Convert.ToByte(actResType); //var aOrRId = Convert.ToInt32(actOrResId); using (var helper = new DbHelper.ActAndRes()) { var actRes = helper.GetActivityResource(Convert.ToInt32(actResId)); if (actRes != null) { if (Convert.ToBoolean(actRes.ActivityOrResource)) //activity { switch (actRes.ActivityResourceType - 1) { case (int)Enums.Activities.Assignment: //Assignment displayType = Enums.Activities.Assignment.ToString().ToLower(); break; case (int)Enums.Activities.Chat: //chat displayType = Enums.Activities.Chat.ToString().ToLower(); break; case (int)Enums.Activities.Forum: //forum displayType = Enums.Activities.Forum.ToString().ToLower(); break; case (int)Enums.Activities.Choice: displayType = Enums.Activities.Choice.ToString().ToLower(); break; case (int)Enums.Activities.Lession: //lession displayType = Enums.Activities.Lession.ToString().ToLower(); break; case (int)Enums.Activities.Wiki: //wiki displayType = Enums.Activities.Wiki.ToString().ToLower(); break; case (int)Enums.Activities.Workshop: //Workshop displayType = Enums.Activities.Workshop.ToString().ToLower(); break; } } else //resource { switch (actRes.ActivityResourceType - 1) { case (int)Enums.Resources.Book: //Book displayType = Enums.Resources.Book.ToString().ToLower(); break; case (int)Enums.Resources.File: //file displayType = Enums.Resources.File.ToString().ToLower(); break; case (int)Enums.Resources.Folder: displayType = Enums.Resources.Folder.ToString().ToLower(); break; case (int)(Enums.Resources.Label): displayType = Enums.Resources.Label.ToString().ToLower(); break; case (int)(Enums.Resources.Page): displayType = Enums.Resources.Page.ToString().ToLower(); break; case (int)(Enums.Resources.Url): displayType = Enums.Resources.Url.ToString().ToLower(); break; } } lblInfoText.Text = ("Are you sure to delete the " + displayType + ", " + actRes.Name + "?"); //DbHelper.StaticValues.Decode } } return; } #endregion #region Book chapter var chapterId = Request.QueryString["bcId"]; if (chapterId != null) { using (var helper = new DbHelper.ActAndRes()) { var chapter = helper.GetChapter(Convert.ToInt32(chapterId)); if (chapter != null) { lblInfoText.Text = "Are you sure to delete the chapter, " + chapter.Title + "?"; } return; } } #endregion #region Grade var gradeId = Request.QueryString["grdId"]; if (gradeId != null) { using (var helper = new DbHelper.Grade()) { var grade = helper.GetGrade(Convert.ToInt32(gradeId)); if (grade != null) { lblInfoText.Text = "Are you sure to delete the grade, " + grade.Name + "?"; } return; } } #endregion #region Notice var noticeId = Request.QueryString["nId"]; if (noticeId != null) { using (var helper = new DbHelper.Notice()) { var notice = helper.GetNotice(Convert.ToInt32(noticeId)); if (notice != null) { lblInfoText.Text = "Are you sure to delete the notice, " + notice.Title + "?"; } } return; } #endregion #region Academic year and SEssion var acaId = Request.QueryString["acaId"]; if (acaId != null) { using (var helper = new DbHelper.AcademicYear()) { var academic = helper.GetAcademicYear(Convert.ToInt32(acaId)); if (academic != null) { lblInfoText.Text = "Are you sure to delete the academic year, " + academic.Name + "?"; } return; } } var sessId = Request.QueryString["sessId"]; if (sessId != null) { using (var helper = new DbHelper.AcademicYear()) { var session = helper.GetSession(Convert.ToInt32(sessId)); if (session != null) { lblInfoText.Text = "Are you sure to delete the session, " + session.Name + "?"; } return; } } #endregion #region SubjectClass var subclsId = Request.QueryString["subclsId"]; if (subclsId != null) { using (var helper = new DbHelper.Classes()) { var cls = helper.GetSubjectSession(Convert.ToInt32(subclsId)); if (cls != null) { lblInfoText.Text = "Are you sure to delete the class, " + (cls.IsRegular ? cls.GetName : cls.Name) + "?"; } } return; } #endregion #region Course and Category var catId = Request.QueryString["catId"]; var crsId = Request.QueryString["crsId"]; //crsId should be null so it means that its category only if (catId != null && crsId == null) { using (var helper = new DbHelper.Subject()) { var category = helper.GetCategory(Convert.ToInt32(catId)); if (category != null) { lblInfoText.Text = "Are you sure to delete the category, " + category.Name + "?"; } } return; } #endregion } catch { } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ViewState["enrolledList"] = new List <UserClassViewModel>(); var user = Page.User as CustomPrincipal; if (user != null) { UserId = user.Id; //============================ populate data in dropdownlist ===========// var enrollmentDuration = new List <IdAndName>(); enrollmentDuration.Add(new IdAndName() { Id = 0, Name = "Unlimited" }); enrollmentDuration.Add(new IdAndName() { Id = 1, Name = "1 day" }); for (int i = 2; i <= 365; i++) { enrollmentDuration.Add(new IdAndName() { Id = i, Name = i + " days" }); } ddlEnrollmentDuration.DataSource = enrollmentDuration; ddlEnrollmentDuration.DataBind(); //=================== End of Data population =======================// using (var helper = new DbHelper.Classes()) { ddlEnrollmentDuration.Enabled = false; //var subsession = helper.GetSubjectSession() var session = helper.GetSubjectSession(SubjectSessionId); if (session == null) { Response.Redirect("~/Views/Course/"); return; } var role = GetRole(session, user); if (role == "") { Response.Redirect("~/Views/Class/CourseClassDetail.aspx?ccId=" + session.Id); return; } DbHelper.ComboLoader.LoadRoleForUserEnroll(ref ddlAssignRole, user.SchoolId, role); hidSessionStartDate.Value = ((session.StartDate == null) ? DateTime.Now.ToShortDateString() : session.StartDate.Value.ToShortDateString()); var startingFrom = new List <IdAndName>() { new IdAndName() { Id = 0, Name = "Class Start Day (" + ((session.StartDate == null)?"not set":session.StartDate.Value.ToShortDateString()) + ")" } , new IdAndName() { Id = 1, Name = "Today " + DateTime.Now.ToShortDateString() } }; ddlStartingFrom.DataSource = startingFrom; ddlStartingFrom.DataBind(); var asglist = helper.ListUsersOfSubjectSession(SubjectSessionId); lstAsg.DataSource = asglist; lstAsg.DataBind(); ViewState["enrolledList"] = helper.ListSessionUsers(SubjectSessionId); var notasgList = helper.ListUsersNotInSubjectSession( SubjectSessionId , asglist.Select(x => x.Id).ToList() , user.SchoolId , EnrollType); lstUnAsg.DataSource = notasgList; lstUnAsg.DataSource = notasgList; lstUnAsg.DataBind(); //AutoCompleteExtender1.ServiceMethod = "GetUnassignedUsersList"; //group populate if (session.HasGrouping) { pnlGroup.Visible = true; ddlGroup.DataSource = session.SubjectClassGrouping.ToList(); ddlGroup.DataBind(); } else { pnlGroup.Visible = false; } } //DbHelper.ComboLoader.LoadStudentGroup(ref cmbGroup, // user.SchoolId, true, GroupId); //SchoolId = user.SchoolId; //lstUnAsg.DataSource = } } else { } //DateChooser1.Validate = false; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var classId = Request.QueryString["ccId"]; var enrolType = Request.QueryString["type"]; lblEnrollHeading.Text = (enrolType == DbHelper.StaticValues.Roles.Teacher ? "Teacher" : "Student") + " enroll"; UserEnrollUC_ListDisplay1.EnrollRole = enrolType; if (classId != null) { try { hidCourseClassId.Value = classId; var clsId = Convert.ToInt32(classId); CourseClassId = clsId; using (var helper = new DbHelper.Classes()) { UserEnrollUC_ListDisplay1.SubjectSessionId = Convert.ToInt32(classId); var cls = helper.GetSubjectSession(clsId); if (cls != null) { var clsname = cls.GetName; //var coursefullname = cls.GetCourseFullName; lblClassName.Text = clsname; lblCourseName.Text = cls.GetCourseFullName; if (SiteMap.CurrentNode != null) { var list = new List <IdAndName>() { new IdAndName() { Name = SiteMap.RootNode.Title , Value = SiteMap.RootNode.Url , Void = true }, new IdAndName() { Name = SiteMap.CurrentNode.ParentNode.ParentNode.ParentNode.Title , Value = SiteMap.CurrentNode.ParentNode.ParentNode.ParentNode.Url , Void = true }, new IdAndName() { Name = cls.GetCourseFullName , Value = SiteMap.CurrentNode.ParentNode.ParentNode.Url + "?cId=" + (cls.GetCourseId) , Void = true } , new IdAndName() { Name = clsname , Value = SiteMap.CurrentNode.ParentNode.Url + "?ccId=" + classId , Void = true } , new IdAndName() { Name = "Users enroll" } }; SiteMapUc.SetData(list); } } } } catch { Response.Redirect("~/ViewsSite/User/Dashboard/Dashboard.aspx"); } } } }
protected void Page_Load(object sender, EventArgs e) { lblError.Visible = false; if (!IsPostBack) { try { var aId = Request.QueryString["aId"]; var sId = Request.QueryString["sId"]; var clsId = Request.QueryString["clsId"]; var task = Request.QueryString["task"]; var user = Page.User as CustomPrincipal; if (user != null) { using (var clsHelper = new DbHelper.Classes()) using (var helper = new DbHelper.AcademicYear()) { if (aId != null) { #region Academic year var acaId = Convert.ToInt32(aId); AcademicYearId = acaId; var aca = helper.GetAcademicYear(acaId); if (task != null && aca != null) { #region SiteMap if (SiteMap.CurrentNode != null) { var list = new List <IdAndName>() { new IdAndName() { Name = SiteMap.RootNode.Title , Value = SiteMap.RootNode.Url , Void = true }, new IdAndName() { Name = SiteMap.CurrentNode.ParentNode.ParentNode.ParentNode.Title , Value = SiteMap.CurrentNode.ParentNode.ParentNode.ParentNode.Url + "?edit=1" , Void = true }, new IdAndName() { Name = aca.Name , Value = SiteMap.CurrentNode.ParentNode.ParentNode.Url + "?aId=" + aId + "&edit=1" , Void = true }, new IdAndName() { Name = (task == "activate")?"Activate":"Mark Complete" } }; SiteMapUc.SetData(list); } #endregion if (aca.SchoolId != user.SchoolId) { Response.Redirect("~/Views/Academy/List.aspx"); } Task = task; if (task == "activate") { lblPageTitle.Text = "Activate"; lblHeading.Text = "Activate Academic year : " + aca.Name + ((aca.IsActive) ? " (Active)" : ""); if (aca.IsActive) { btnOk.Enabled = false; btnOk.ToolTip = "Already Active."; lblQue.Text = "Already Active."; } else { lblQue.Text = //"Previous academic year will be marked as completed along with all the running " + //"classes in that academic year. " + "All the classes in this academic year will be active. " + "Are you sure to 'activate' the academic year : " + aca.Name + "?"; } } else if (task == "completed") { lblQue.Text = "All the running classes in this academic year will be marked as completed. " + "This can't be undone. " + "Are you sure to mark this academic year : <strong>" + aca.Name + "</strong>" + ", as 'completed'? "; lblPageTitle.Text = "Mark complete"; lblHeading.Text = "Mark Academic year : " + aca.Name + " as 'Complete'"; } else { Response.Redirect("~/Views/Academy/List.aspx"); } } else { Response.Redirect("~/Views/Academy/List.aspx"); } #endregion } else if (sId != null) { #region Session var sessId = Convert.ToInt32(sId); SessionId = sessId; var sess = helper.GetSession(sessId); if (task != null && sess != null) { #region SiteMap AcademicYearId = sess.AcademicYearId; if (SiteMap.CurrentNode != null) { var list = new List <IdAndName>() { new IdAndName() { Name = SiteMap.RootNode.Title , Value = SiteMap.RootNode.Url , Void = true }, new IdAndName() { Name = SiteMap.CurrentNode.ParentNode.ParentNode.ParentNode.Title , Value = SiteMap.CurrentNode.ParentNode.ParentNode.ParentNode.Url + "?edit=1" , Void = true }, new IdAndName() { Name = sess.AcademicYear.Name , Value = SiteMap.CurrentNode.ParentNode.ParentNode.Url + "?aId=" + sess.AcademicYearId + "&edit=1" , Void = true }, new IdAndName() { Name = sess.Name , Value = SiteMap.CurrentNode.ParentNode.Url + "?aId=" + sess.AcademicYearId + "&sId=" + sess.Id + "&edit=1" , Void = true }, new IdAndName() { Name = (task == "activate")?"Activate":"Mark Complete" } }; SiteMapUc.SetData(list); } #endregion if (sess.AcademicYear.SchoolId != user.SchoolId) { Response.Redirect("~/Views/Academy/List.aspx"); } Task = task; if (task == "activate") { lblQue.Text = "Previous session will be marked as completed along with all the running" + " classes in that session. This task " + "can't be undone. " + "Are you sure to 'activate' the session : " + sess.Name + "?"; lblPageTitle.Text = "Activate"; lblHeading.Text = "Activate Session : " + sess.Name; } else if (task == "completed") { lblQue.Text = "All the running classes in this session will be marked as completed. " + "This can't be undone. " + "Are you sure to mark this session '<strong>" + sess.Name + "</strong>' as '<em>completed</em>'? "; lblPageTitle.Text = "Mark complete"; lblHeading.Text = "Mark Session : <strong>'" + sess.Name + "'</strong> as '<em>Complete</em>'"; } else { Response.Redirect("~/Views/Academy/List.aspx"); } } else { Response.Redirect("~/Views/Academy/List.aspx"); } #endregion } else if (clsId != null) { var classId = Convert.ToInt32(clsId); var cls = clsHelper.GetSubjectSession(classId); if (cls != null && task != null) { } } else { Response.Redirect("~/Views/Academy/List.aspx"); } } } } catch { Response.Redirect("~/Views/Academy/List.aspx"); } } }
protected void Page_Load(object sender, EventArgs e) { CustomDialog.OkClick += CustomDialog_OkClick; CustomDialog.CancelClick += CustomDialog_CancelClick; var user = Page.User as CustomPrincipal; if (user != null) { if (!IsPostBack) { var classId = Request.QueryString["ccId"]; if (classId != null) { var clsId = Convert.ToInt32(classId); SubjectClassId = clsId; using (var helper = new DbHelper.Classes()) using (var usrHelper = new DbHelper.User()) { var cls = helper.GetSubjectSession(clsId); if (cls != null) { var subject = cls.IsRegular ? cls.SubjectStructure.Subject : cls.Subject; ListOfSectionsInCourseUC.UserId = user.Id; ListOfSectionsInCourseUC.CourseId = subject.Id; var teacherRoleId = usrHelper.GetRole(Academic.DbHelper.DbHelper.StaticValues.Roles.Teacher) .Id; lbldNotice.Visible = !cls.ClassUsers.Any(x => x.RoleId == teacherRoleId && !(x.Void ?? false)); var clsname = cls.GetName; lblTitle.Text = clsname; lblClassName.Text = clsname; //cls.IsRegular ? cls.GetName : cls.Name; lblCourseName.Text = subject.FullName; //cls.IsRegular lblEndDate.Text = cls.EndDate == null ? " - " : cls.EndDate.Value.ToString("D"); lblStartDate.Text = cls.StartDate == null ? " - " : cls.StartDate.Value.ToString("D"); if (!(user.IsInRole("manager") || user.IsInRole("teacher"))) { var joinedClass = helper.HasTheUserAlreadyJoinedThisClass(user.Id, cls.Id); if (!(cls.SessionComplete ?? false) && cls.EnrollmentMethod == 2) { if (joinedClass != null) { lblJoinLastDate.Text = joinedClass.StartDate.HasValue ? joinedClass.StartDate.Value.ToString("D") : "-"; lblJoinLstDateTitle.Text = "Joined on"; SetEnrollDialog(false); btnEnroll.Text = "Remove enrolment"; btnEnroll.Visible = true; } else if ((cls.JoinLastDate ?? DateTime.MaxValue.Date) >= DateTime.Now.Date) { lblJoinLastDate.Text = cls.JoinLastDate.HasValue ? cls.JoinLastDate.Value.ToString("D") : "-"; SetEnrollDialog(true); btnEnroll.Visible = true; } //lnkEnrollNow.NavigateUrl = ""; } //else if (joinedClass!=null && !(cls.SessionComplete ?? false)) //{ //} } else { lblJoinLastDate.Text = cls.JoinLastDate == null ? " - " : cls.JoinLastDate.Value.ToString("D"); } lnkViewCourse.Visible = true; lnkViewCourse.NavigateUrl = "~/Views/Course/Section/?SubId=" + subject.Id; hidOrderby.Value = "name"; LoadSitemap(cls); } } } } } }