123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065 |
-
- Namespace.register("U.MD.D.I");
- U.MD.D.I.IsDrag;
- U.MD.D.I.Ip;
- U.MD.D.I.teacherDeskIcon = [
- { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
- { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
- { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
- { "Name": "评价管理", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
- { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
- { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
- { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
- { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
- { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
- { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
- { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
-
- { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
- { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
- { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
- { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } }
- ];
- U.MD.D.I.studentDeskIcon = [
- { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
- { "Name": "学习中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
- { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
- { "Name": "我的资料", "Url": "studentMy", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
- { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
- { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
- { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
- { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
-
- { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
- { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
- { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
- { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } }
- ];
- U.MD.D.I.init = function() {
- if ($("#U_MD_D_K")[0]) {
-
- U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0]);
-
-
-
-
-
-
-
-
-
- }
- }
- U.MD.D.I.hiddenTaskbar = function(el) {
-
- U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
-
-
- }
- U.MD.D.I.hiddenTaskbarout = function(el) {
-
- if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
-
- U.selectEl(el).css({ "bottom": "-60px" });
-
-
- }
- }
- U.MD.D.I.initDesktopIcons = function(el) {
- var i,
- _content,
- _iconcontent,
- _frag = $$("frag"),
- _type = US.userInfo.type,
- _teacherDesktopIconInfo = U.MD.D.I.teacherDeskIcon,
- _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon;
-
- el.innerHTML = "";
-
- if (_type == 2) {
- for (i = 0; i < _studentDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function(obj) {
-
- U.MD.D.click(this, obj);
- }, [_studentDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function(obj) {
-
- U.MD.D.click(this, obj);
- }, [_studentDesktopIconInfo[i]])
- }, _frag);
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
- }
- } else {
- for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function(obj) {
-
- U.MD.D.click(this, obj);
- }, [_teacherDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function(obj) {
-
- U.MD.D.click(this, obj);
- }, [_teacherDesktopIconInfo[i]])
- }, _frag);
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
- }
- }
-
- U.MD.D.iconPostion($(_frag).Child());
-
- el.appendChild(_frag);
- }
- U.MD.D.I.displayTaskbar = function(el) {
-
- if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
-
- U.selectEl(el).css({ "bottom": "0px" });
-
-
- }
- }
- U.MD.D.iconPostion = function(childs, top, left) {
- var i;
- top = top || 15;
- left = left || 20;
-
- for (i = 0; i < childs.length; i++) {
-
- if (top + 95 > US.height - 10) {
-
- if ((left + 180) > US.width) {
- top -= 115;
- left -= 90;
- }
-
- else {
- left += 90;
- top = 15;
- };
- }
-
- U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
- if (i < childs.length - 1) {
-
- top += 115;
- }
- }
-
- return [top, left];
- }
- U.MD.D.click = function(el, obj) {
- var _buttonnumber = event.button;
- var _userinfo = US.userInfo;
- U.UF.EV.stopBubble();
-
- if (_buttonnumber < 2) {
-
- if (event.type == "click") {
-
- if (!U.MD.D.I.IsDrag) {
- if (!_userinfo || Object.keys(_userinfo).length === 0) {
- U.alert("请先登录您的账号!");
- setTimeout(() => {
- U.MD.U.L.login();
- }, 2000);
- } else {
-
- U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
- }
- }
- }
-
- else {
-
- U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
- }
- U.MD.D.I.IsDrag = false;
- }
- }
- U.MD.D.iconMove = function() {
-
- U.MD.D.I.IsDrag = true;
- }
- U.MD.D.iconUp = function(el) {
- var _top = 15,
- _left = 20,
- _margin,
- _childs = U.selectEl("#U_MD_D_K").Child(),
- _positioninfo = U.UF.EL.getElementInfo(el);
- if (_positioninfo["OT"] > 15) {
-
- _margin = ((_positioninfo["OT"] - 15) % 115 > 55 && _positioninfo["OT"] + 115 < US.height) ? 1 : 0;
- _top = (Math.floor((_positioninfo["OT"] - 15) / 115) + _margin) * 115 + 15;
- }
- if (_positioninfo["OL"] > 20) {
-
- _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
- _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
- }
-
- do {
- _positioninfo = U.MD.D.iconPostion([el], _top, _left);
- _top = _positioninfo[0] + 115;
- _left = _positioninfo[1];
- } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
- }
- U.MD.D.isOverlap = function(el, childs, postionarray) {
-
- for (var i = 0; i < childs.length; i++) {
-
- if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
- return childs[i];
- }
- }
- }
- window.addEventListener('message', function(e) {
-
- if (e.data.type && e.data.type == "1") {
- U.MD.D.I.openInApplication("study", e.data.cid)
- } else if (e.data.close && e.data.close == "1") {
- U.MD.D.I.selectUser();
- } else if (e.data.tools && e.data.tools == "1") {
- U.MD.D.I.openApplication("whiteboard")
- } else if (e.data.tools && e.data.tools == "2") {
- U.MD.D.I.openApplication("note")
- } else if (e.data.tools && e.data.tools == "3") {
- U.MD.D.I.openApplication("mind")
- } else if (e.data.tools && e.data.tools == "4") {
- U.MD.D.I.openApplication("investigation")
- } else if (e.data.tools && e.data.tools == "6") {
- U.MD.D.I.openApplication("doc")
- } else if (e.data.tools && e.data.tools == "7") {
- U.MD.D.I.openApplication("mindNetwork")
- } else if (e.data.tools && e.data.tools == "8") {
- U.MD.D.I.openApplication("library")
- }
- });
- U.MD.D.I.selectUser = function() {
- U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) {
- if (res.value[0].length > 0) {
- US.userInfo = res.value[0][0];
- $(".userName")[0].innerHTML = US.userInfo.username;
- }
- }, [], { "type": "GET", "withCredentials": true });
- }
- U.MD.D.I.openInApplication = function(str, data) {
- var _userinfo = US.userInfo,
- _userid = US.userInfo.userid,
- _oid = _userinfo.organizeid;
- switch (str) {
- case "study":
- if (!_userinfo || Object.keys(_userinfo).length === 0) {
- setTimeout(() => {
- U.MD.U.L.login();
- }, 2000);
- } else {
- _formdiv = new U.UF.UI.form(
- "项目详情",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&courseId=" + data }), {
- "id": "study",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- }
- }
- }
- U.MD.D.I.openApplication = function(str, obj, info) {
- obj = obj || {};
- var _taskbar,
- _formdiv,
- _userinfo = US.userInfo,
- _userid = obj.userid || US.userInfo.userid,
- _oid = obj.organizeid || _userinfo.organizeid,
- _type = US.userInfo.type;
- if (_type == 2) {
- switch (str) {
- case "studnetProject":
- _formdiv = new U.UF.UI.form(
- "我的项目",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid }), {
- "id": "studnetProject",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "studentEvaluate":
- _formdiv = new U.UF.UI.form(
- "我的评价",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
- "id": "studentEvaluate",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "my":
- _formdiv = new U.UF.UI.form(
- "我的资料",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
- "id": "my",
- "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "library":
- _formdiv = new U.UF.UI.form(
- "素材库",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
- "id": "library",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "whiteboard":
- _formdiv = new U.UF.UI.form(
- "电子白板",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
- "id": "whiteboard",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "investigation":
- _formdiv = new U.UF.UI.form(
- "问卷调查",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
- "id": "investigation",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "note":
- _formdiv = new U.UF.UI.form(
- "便签分类",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
- "id": "note",
- "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
-
-
-
-
-
-
-
-
-
-
-
-
- case "mind":
- _formdiv = new U.UF.UI.form(
- "思维导图",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), {
- "id": "mind",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "doc":
-
- _formdiv = new U.UF.UI.form(
- "协同文档",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
- "id": "doc",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
- })
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "studentStudy":
- _formdiv = new U.UF.UI.form(
- "学习中心",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid }), {
- "id": "studentStudy",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "mindNetwork":
- _formdiv = new U.UF.UI.form(
- "思维网格",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
- "id": "mindNetwork",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "studentClassRoom":
- _formdiv = new U.UF.UI.form(
- "实时课堂",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid }), {
- "id": "studentClassRoom",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- }
- } else {
-
- switch (str) {
- case "project":
- _formdiv = new U.UF.UI.form(
- "项目管理",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid }), {
- "id": "project",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "项目管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "student":
- _formdiv = new U.UF.UI.form(
- "学生管理",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid }), {
- "id": "student",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "evaluate":
- _formdiv = new U.UF.UI.form(
- "评价管理",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
- "id": "evaluate",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "评价管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "class":
- _formdiv = new U.UF.UI.form(
- "班级管理",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid }), {
- "id": "class",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "my":
- _formdiv = new U.UF.UI.form(
- "我的资料",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
- "id": "my",
- "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "notice":
- _formdiv = new U.UF.UI.form(
- "通知公告",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid }), {
- "id": "notice",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "library":
- _formdiv = new U.UF.UI.form(
- "素材库",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
- "id": "library",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "whiteboard":
- _formdiv = new U.UF.UI.form(
- "电子白板",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
- "id": "whiteboard",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "investigation":
- _formdiv = new U.UF.UI.form(
- "问卷调查",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
- "id": "investigation",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "note":
- _formdiv = new U.UF.UI.form(
- "便签分类",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
- "id": "note",
- "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
-
-
-
-
-
-
-
-
-
-
-
-
- case "mind":
- _formdiv = new U.UF.UI.form(
- "思维导图",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), {
- "id": "mind",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "doc":
-
- _formdiv = new U.UF.UI.form(
- "协同文档",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
- "id": "doc",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
- })
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "study":
- _formdiv = new U.UF.UI.form(
- "学习中心",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid }), {
- "id": "study",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "mindNetwork":
- _formdiv = new U.UF.UI.form(
- "思维网格",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
- "id": "mindNetwork",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "teacherClassRoom":
- _formdiv = new U.UF.UI.form(
- "实时课堂",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/classRoom?userid=" + _userid + "&oid=" + _oid }), {
- "id": "teacherClassRoom",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function() {}
- }, {
- closecallback: function() {}
- }, { "style": { "height": "36px" } }).form;
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- break;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- }
-
-
- if (_taskbar) {
- U.MD.D.T.taskbar(_taskbar);
- }
- }
|