/********************************************** 메뉴 **********************************************/ function Node(id, pid, Idx, Name, Folder, Files, img, PopCode){ this.id = id; this.pid = pid; this.Idx = Idx; this.Name = Name; this.Folder = Folder; this.Files = Files.split(","); this.img = img; this.SelectYN = 0; this.ChildCnt = 0; this.Depth = 0; this.PopCode = PopCode; } function CMenu(oName, RootIdx){ this.Name = oName; this.aNodes = []; this.iMenuNum = 0; this.RootIdx = RootIdx; this.Uri = (location.href.indexOf("?") > 0) ? "/" + location.href.substring(0, location.href.indexOf("?")).split("/").splice(3,10).join("/") : "/" + location.href.split("/").splice(3,10).join("/"); this.Folder = this.Uri.substring(0, this.Uri.lastIndexOf("/")+1); this.File = this.Uri.substring(this.Uri.lastIndexOf("/")+1, this.Uri.length); this.Add = function(id, pid, Idx, Name, Folder, Files, img, PopCode){ this.aNodes[this.aNodes.length] = new Node(id, pid, Idx, Name, Folder, Files, img, PopCode); for(var i=0; i 1){ for(var i=0; i"; } } s += "
기기등록 초기화
"; s += "
PC버전
"; return s; } this.TopMenus = function(){ var s = ""; var idx = -1; var css = ""; var Hwidth = ""; for(var i=1,item; item=this.aNodes[i]; i++){ if(this.RootIdx.toString() == item.pid.toString() && item.Folder.toUpperCase() == this.Folder.substr(0, item.Folder.length).toUpperCase()){ s += "
"; s += " "; s += " "; s += " "; s += " "; s += " "; s += " "; s += "
\"좌측메뉴열기\"" + item.Name + "\"좌측메뉴열기\"
"; s += "
"; idx = i; break; } } switch(parseInt(this.aNodes[idx].Idx, 10)){ case 1: case 2: case 5: s += ""; s += " "; Hwidth = "width:" + (100 / this.aNodes[idx].ChildCnt).toString() + "%;font-size:1.1em;"; for(var i=1,item; item=this.aNodes[i]; i++){ if(this.aNodes[idx].id.toString() == item.pid.toString()){ css = "color:#392919;background:#F6F2E7;border:1px solid #d5d2c9;text-align:center;"; if(item.Folder.toUpperCase() == this.Folder.substr(0, item.Folder.length).toUpperCase()) css = "color:#FFFFFF;font-weight:bold;background:#5374b8;border:1px solid #d5d2c9;text-align:center"; s += ""; } } s += " "; s += "
"; s += item.Name; s += "
"; break; } return s; } } var oMenu = null; oMenu = new CMenu("oMenu", 0); oMenu.Add(0, null, 0, "Root", "/MobileContents/", "Index.asp"); oMenu.Add(1, 0, 1, "내강의실", "/MobileContents/MyClass/", "Index.asp", "", 0); //oMenu.Add(2, 1, 1, "종합반", "/MobileContents/MyClass/TogetherClass/", "Index.asp", "", 0); oMenu.Add(3, 1, 2, "온라인강의", "/MobileContents/MyClass/EachClass/", "Index.asp", "", 0); oMenu.Add(4, 1, 3, "영상학습실", "/MobileContents/MyClass/EtcClass/", "Index.asp", "", 0); oMenu.Add(5, 1, 4, "공개특강", "/MobileContents/MyClass/PublicClass/", "Index.asp", "", 0); oMenu.Add(6, 0, 2, "결제/배송관리", "/MobileContents/Payment/", "Index.asp", ""); oMenu.Add(7, 6, 1, "장바구니", "/MobileContents/Payment/Basket/", "Index.asp", ""); oMenu.Add(8, 6, 2, "주문/배송조회", "/MobileContents/Payment/OrderList/", "Index.asp", ""); oMenu.Add(9, 6, 3, "내맘대로결제", "/MobileContents/Payment/IWill/", "Index.asp", ""); oMenu.Add(10, 0, 3, "공지사항", "/MobileContents/Notice/", "Index.asp", "", 0); oMenu.Add(11, 10, 1, "공지사항", "/MobileContents/Notice/Notice/", "Index.asp", "", 0); oMenu.Add(12, 10, 1, "채용공고", "/MobileContents/Notice/Job_Notice/", "Index.asp", "", 0); oMenu.Add(13, 10, 1, "신규강의", "/MobileContents/Notice/OpenStudy/", "Index.asp", "", 0); oMenu.Add(14, 10, 1, "신간안내", "/MobileContents/Notice/NewBooks/", "Index.asp", "", 0); oMenu.Add(15, 0, 4, "강사소개", "/MobileContents/TeacherInfo/", "Index.asp", "", 0); oMenu.Add(16, 0, 5, "온라인강의", "/MobileContents/GLecture/", "Index.asp", ""); oMenu.Add(17, 16, 2, "수험영역", "/MobileContents/GLecture/GLecture/", "Index.asp", ""); oMenu.Add(18, 16, 4, "강사", "/MobileContents/GLecture/ExamTeacher/", "Index.asp", ""); oMenu.Add(19, 0, 6, "학원강의", "/MobileContents/GLectureOff/", "Index.asp", ""); oMenu.Add(20, 19, 1, "수험영역", "/MobileContents/GLectureOff/GLecture/", "Index.asp", ""); oMenu.Add(21, 0, 7, "수험서몰", "/MobileContents/BooksMall/", "Index.asp", ""); oMenu.Add(22, 0, 8, "상담실", "/MobileContents/Consult/", "Index.asp", "", 0); oMenu.Add(23, 22, 1, "상담실", "/MobileContents/Consult/ConsultList/", "Index.asp", "", 0); oMenu.Add(24, 22, 2, "내글보기", "/MobileContents/Consult/ConsultMyList/", "Index.asp", "", 0); oMenu.Add(25, 22, 3, "상담실글쓰기", "/MobileContents/Consult/ConsultWrite/", "Index.asp", "", 0); oMenu.Add(26, 0, 9, "수강FAQ", "/MobileContents/FAQ/", "index.asp", "", 0); //oMenu.Add(28, 0, 10, "학원소개및 위치", "/MobileContents/AcademyInfo/", "Index.asp", "", 0); /********************************************** 메뉴 **********************************************/ document.title = "URIJOB 공기업취업"; function Device_Init(){ var Member_Idx = arguments[0]; //if(!confirm("기기를 초기화하시겠습니까?")) return; $.ajax({ type : "POST", async : true, url : "/MobileContents/Include/Member/DeviceInitAjax.asp", dataType: "json", data : "Member_Idx=" + Member_Idx, success : function(Data, Status, xhr){ if("OK" == Data.Result){ alert("초기화되었습니다."); location.reload(); }else{ alert(Data.Data); } }, error : function(xhr, Status, error){alert(xhr.responseText);}, complete: function(xhr, Status){} }); }