You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
466 lines
19 KiB
466 lines
19 KiB
<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage="" %>
|
|
<%@page import="com.sinosoft.utility.XssUtil"%>
|
|
<%@ include file="../common/jsp/UsrCheck.jsp" %>
|
|
<%
|
|
String tUserCode = XssUtil.escapeJavaScript(request.getParameter("userCode"));
|
|
GlobalInput tG1 = (GlobalInput)session.getAttribute("GI");
|
|
String tComCode = tG1.ManageCom;
|
|
%>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<%--<title>首页</title>--%><title>LIS</title>
|
|
<SCRIPT src="../common/javascript/jquery-1.7.2.js"></SCRIPT>
|
|
<script src="../common/javascript/slide.js"></script>
|
|
<script src="../common/javascript/Common.js"></script>
|
|
<SCRIPT src="../common/javascript/i18n/jquery.i18n.js"></SCRIPT>
|
|
<SCRIPT src="../common/javascript/i18n/jquery.i18n.messagestore.js"></SCRIPT>
|
|
<link rel="stylesheet" type="text/css" href="../common/css/head.css">
|
|
</head>
|
|
<style type=text/css>
|
|
div div div.con {
|
|
BORDER-RIGHT: white 1px solid;
|
|
BORDER-TOP: white 1px solid;
|
|
PADDING-LEFT: 10px;
|
|
FONT-SIZE: 12px;
|
|
BACKGROUND: #bed4ea;
|
|
LEFT: 0px;
|
|
BORDER-LEFT: white 1px solid;
|
|
CURSOR: hand;
|
|
COLOR: #0f3990;
|
|
PADDING-TOP: 2px;
|
|
FONT-FAMILY: verdana;
|
|
POSITION: relative;
|
|
TOP: 0px;
|
|
HEIGHT: 20px;
|
|
TEXT-ALIGN: left;
|
|
color: #CC0000
|
|
}
|
|
|
|
html {
|
|
font-size: 12px;
|
|
}
|
|
</style>
|
|
<script language="JavaScript">
|
|
var i18n = $.i18n();
|
|
i18n.locale = sessionStorage.getItem("$language");
|
|
// 接收 Controller 返回
|
|
var sFavorite = "";
|
|
var tFavorite = "";
|
|
var sMenuNodeData = "";
|
|
|
|
this.name = "";
|
|
this.nodes = {};
|
|
this.node = {};
|
|
this.names = "";
|
|
this._d = "\x0f";
|
|
this.index = 0;
|
|
this.divider = "_";
|
|
this.node["0"] = {
|
|
"id": "0",
|
|
"path": "0",
|
|
"isLoad": false,
|
|
"childNodes": [],
|
|
"childAppend": "",
|
|
"sourceIndex": "0"
|
|
};
|
|
|
|
var MenuClass1Html = '<ul class="change">';
|
|
|
|
queryMenuNode();
|
|
|
|
// 开始查询菜单
|
|
function queryMenuNode() {
|
|
var form = $("<form></form>");
|
|
form.attr('action', '../API/logon/logon/headNew/logon');
|
|
form.attr('method', 'post');
|
|
form.css('display', 'none');
|
|
var input = $("<input type='hidden' name='userCode' id='userCode' value='<%=tUserCode%>' />");
|
|
form.append(input);
|
|
$(document.body).append(form);
|
|
ajaxSubmit2(form[0], afterQueryMenu);
|
|
}
|
|
|
|
function afterQueryMenu(flagStr, content, result) {
|
|
if (flagStr == "Succ") {
|
|
sFavorite = result.sFavorite;
|
|
tFavorite = result.tFavorite;
|
|
sMenuNodeData = result.sMenuNodeData;
|
|
|
|
i18n.messageStore.set(i18n.locale,JSON.parse(result.i18n));
|
|
// 执行这个页面的原逻辑
|
|
initMenuTree();
|
|
dataFormat();
|
|
loadData("0");
|
|
var rootCN = this.node["0"].childNodes;
|
|
if (rootCN.length > 0) {
|
|
this.node["0"].hasChild = true;
|
|
for (var i = 0; i < rootCN.length; i++) {
|
|
MenuClass1Html += '<li class="show-poster-3 current"><a class="selected" href="javascript:clickTopMenu(' + rootCN[i].id + ')">' + rootCN[i].text + '</a></li>'
|
|
display(rootCN[i].id);
|
|
}
|
|
}
|
|
MenuClass1Html += '</ul>';
|
|
var flag = 0;
|
|
} else {
|
|
alert(content);
|
|
}
|
|
}
|
|
|
|
function dataFormat() {
|
|
var a = new Array();
|
|
for (var id in this.nodes) a[a.length] = id;
|
|
this.names = a.join(this._d + this._d);
|
|
this.totalNode = a.length;
|
|
a = null;
|
|
};
|
|
|
|
function loadData(id) {
|
|
var node = this.node[id], d = this.divider, _d = this._d;
|
|
if (!node.isLoad) {
|
|
var sid = node.sourceIndex.substr(node.sourceIndex.indexOf(d) + d.length);
|
|
var reg = new RegExp("(^|" + _d + ")" + sid + d + "[^" + _d + d + "]+(" + _d + "|$)", "g");
|
|
var cns = this.names.match(reg), tcn = this.node[id].childNodes;
|
|
if (cns) {
|
|
reg = new RegExp(_d, "g");
|
|
for (var i = 0; i < cns.length; i++)
|
|
tcn[tcn.length] = this.nodeInit(cns[i].replace(reg, ""), id);
|
|
}
|
|
node.isLoad = true;
|
|
}
|
|
};
|
|
|
|
function nodeInit(sourceIndex, parentId) {
|
|
this.index++;
|
|
var source = this.nodes[sourceIndex], d = this.divider;
|
|
var text = this.getAttribute(source, "text");
|
|
var hint = this.getAttribute(source, "hint");
|
|
var url = this.getAttribute(source, "url");
|
|
var sid = sourceIndex.substr(sourceIndex.indexOf(d) + d.length);
|
|
var data = this.getAttribute(source, "data");
|
|
var data_i18n = this.getAttribute(source, "data-i18n");
|
|
if(data_i18n){
|
|
var i18nText = $.i18n(data_i18n);
|
|
if(i18nText){
|
|
text = i18nText;
|
|
}
|
|
}
|
|
if (data) url += (url.indexOf("?") == -1 ? "?" : "&") + data;
|
|
|
|
this.node[this.index] = {
|
|
"id": this.index,
|
|
"text": text,
|
|
"hint": hint ? hint : text,
|
|
"icon": this.getAttribute(source, "icon"),
|
|
"path": this.node[parentId].path + d + this.index,
|
|
"isLoad": false,
|
|
"isExpand": false,
|
|
"parentId": parentId,
|
|
"parentNode": this.node[parentId],
|
|
"sourceIndex": sourceIndex,
|
|
"childAppend": "",
|
|
"url": url,
|
|
"sid": sid
|
|
};
|
|
this.nodes[sourceIndex] = "index:" + this.index + ";" + source;
|
|
this.node[this.index].hasChild = this.names.indexOf(this._d + sid + d) > -1;
|
|
if (this.node[this.index].hasChild) this.node[this.index].childNodes = [];
|
|
return this.node[this.index];
|
|
};
|
|
|
|
function getAttribute(source, name) {
|
|
var reg = new RegExp("(^|;|\\s)" + name + "\\s*:\\s*([^;]*)(\\s|;|$)", "i");
|
|
if (reg.test(source)) return RegExp.$2.replace(/[\x0f]/g, ";");
|
|
return "";
|
|
};
|
|
|
|
function initMenuTree() {
|
|
nodes["0_1"] = "text:" + "首页" + "; url:../usermission/UserMission.jsp; data-i18n:HomePage;";
|
|
nodes["1_2"] = "text:" + "我的收藏夹" + "; icon:folder; url:../usermission/UserMission.jsp; hint:我的收藏夹; data-i18n:MyFavorites;";
|
|
for (var i = 0; i < sFavorite.length; i++) {
|
|
var nodeInfo = sFavorite[i].split("=");
|
|
var nodeId = nodeInfo[0];
|
|
var nodeContent = nodeInfo[1];
|
|
nodeId = nodeId.trim();
|
|
nodes[nodeId] = nodeContent;
|
|
}
|
|
nodes["2_9"] = "text:" + "定制我的收藏夹" + "; icon:file; url:./MenuShortInput.jsp; hint:" + "定制我的收藏夹" + "; data-i18n:CustomizeMyFavorites";
|
|
for (var i = 0; i < sMenuNodeData.length; i++) {
|
|
var equalIndex = sMenuNodeData[i].indexOf("=");
|
|
var nodeId = sMenuNodeData[i].substring(0, equalIndex);
|
|
var nodeContent = sMenuNodeData[i].substring(equalIndex + 1);
|
|
|
|
if (nodeContent.indexOf("../app/NoScanContInput.jsp") != -1) {
|
|
|
|
}
|
|
|
|
|
|
nodeId = nodeId.trim();
|
|
nodes[nodeId] = nodeContent;
|
|
}
|
|
}
|
|
|
|
|
|
function display(id) {
|
|
loadData(id);
|
|
var rootCN = this.node[id].childNodes;
|
|
if (rootCN.length > 0) {
|
|
this.node[id].hasChild = true;
|
|
for (var i = 0; i < rootCN.length; i++) {
|
|
//alert(rootCN[i].id + " " + rootCN[i].text + " "+ rootCN[i].url);
|
|
MenuClass1Html += '<li class="show-poster-3"><a href="javascript:clickTopMenu(' + rootCN[i].id + ')">' + rootCN[i].text + '</a></li>'
|
|
}
|
|
}
|
|
}
|
|
|
|
function richContext(rightid, obj) {
|
|
var kkk = tFavorite;
|
|
var arrayField = new Array();
|
|
arrayField = kkk.split("\|");
|
|
var len = arrayField.length;
|
|
// len:弹出菜单条数,用于计算菜单框高度
|
|
var lefter = obj.style.left + 19;
|
|
var topper = obj.style.top - 15;
|
|
var height = (len) * 20;
|
|
var cc = rightid.childNodes[0];
|
|
var aa = cc.childNodes[0];
|
|
if (flag == 0) {
|
|
var arrayReturn = new Array();
|
|
var i;
|
|
for (i = 0; i < arrayField.length - 1; i++) {
|
|
var arrayNameValuePair = arrayField[i].split(","); //分割出一对域名和域值
|
|
var tDiv = document.createElement('div');
|
|
tDiv.className = 'con';
|
|
tDiv.style.lineHeight = "20px";
|
|
tDiv.style.border = "1px solid #fff";
|
|
tDiv.style.left = "0px";
|
|
tDiv.style.top = "0px";
|
|
tDiv.style.fontSize = '12px';
|
|
tDiv.style.textAlign = "center";
|
|
tDiv.style.height = "10px";
|
|
tDiv.style.width = '102px';
|
|
tDiv.style.cursor = "hand";
|
|
tDiv.style.position = "relative";
|
|
tDiv.style.background = "#bed4ea";
|
|
tDiv.onmouseover = "this.style.background='#6699cc',this.style.color='#ffffff'";
|
|
tDiv.onmouseout = "this.style.background='#bed4ea',this.style.color='#0f3990'";
|
|
tDiv.onclick = "parent.window.open('" + arrayNameValuePair[1] + "','fraInterface')";
|
|
tDiv.innerText = arrayNameValuePair[0];
|
|
rightid.childNodes[0].appendChild(tDiv);
|
|
}
|
|
flag = 1;
|
|
}
|
|
oPopup.document.body.innerHTML = rightid.innerHTML;
|
|
oPopup.show(topper, lefter, 100, height, obj);
|
|
if (oPopup.isOpen == true) {
|
|
setTimeout("hide()", 15000);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 主题切换
|
|
* @param theme 主题名称
|
|
*/
|
|
function switchTheme(theme){
|
|
var fraInterface = window.parent.frames["fraInterface"];
|
|
var fraLeftColor = window.parent.frames["fraLeftColor"];
|
|
var fraRightColor = window.parent.frames["fraRightColor"];
|
|
var fraQuick = window.parent.frames["fraQuick"];
|
|
var fraMenu = window.parent.frames["fraMenu"];
|
|
|
|
if(theme==="blue") {
|
|
document.documentElement.setAttribute('lis-theme', 'blue');
|
|
fraInterface.document.documentElement.setAttribute('lis-theme', 'blue');
|
|
fraLeftColor.document.documentElement.setAttribute('lis-theme', 'blue');
|
|
fraRightColor.document.documentElement.setAttribute('lis-theme', 'blue');
|
|
fraQuick.document.documentElement.setAttribute('lis-theme', 'blue');
|
|
fraMenu.document.documentElement.setAttribute('lis-theme', 'blue');
|
|
}
|
|
if(theme==="green") {
|
|
document.documentElement.setAttribute('lis-theme', 'green');
|
|
fraInterface.document.documentElement.setAttribute('lis-theme', 'green');
|
|
fraLeftColor.document.documentElement.setAttribute('lis-theme', 'green');
|
|
fraRightColor.document.documentElement.setAttribute('lis-theme', 'green');
|
|
fraQuick.document.documentElement.setAttribute('lis-theme', 'green');
|
|
fraMenu.document.documentElement.setAttribute('lis-theme', 'green');
|
|
}
|
|
//更新主题设置信息
|
|
mainWindow.parent.VD.themeStorage.setTheme("lis-theme",theme);
|
|
}
|
|
</script>
|
|
<body>
|
|
<%--登录 开始--%>
|
|
<div class="head">
|
|
<div class="right">
|
|
<div class="loginarea" style="align:right;">
|
|
<ul style="vertical-align: middle ;display: flex;">
|
|
<li class="show-poster-4" style="color:#FFFFFF"><a href="javascript:void(0);" onclick="return false;">
|
|
<img src="../common/images/head-dlyh.png" style="width:20px;"> <%="您好,"+tUserCode+"@"+tComCode %></a></li>
|
|
<li class="show-poster-4"><a target="fraInterface" href="../changePwd/PwdInput.jsp" >
|
|
<img src="../common/images/head-xgmm.png" style="width:20px;"> 修改密码</a></li>
|
|
<li class="show-poster-4"><a target="fraInterface" href="../logon/logout.jsp" >
|
|
<img src="../common/images/head-tcdl.png" style="width:20px;"> 退出登录</a></li>
|
|
<li class="show-poster-4" style="color:#FFFFFF">
|
|
<span style="background: dodgerblue;border-radius: 10px;color:white;font-size: 10px;padding: 4px;cursor: pointer;" onclick="switchTheme('blue');">蓝</span>
|
|
<span style="background: mediumseagreen;border-radius: 10px;color:white;font-size: 10px;padding: 4px;cursor: pointer;" onclick="switchTheme('green');">绿</span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="content">
|
|
<div class="drama-poster">
|
|
<div class="nav" id="menuClass1">
|
|
<ul class="change">
|
|
<li class="show-poster-3 current"><a data-i18n="HomePage">首页</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<ul class="drama-slide">
|
|
<li class="prev"><a href="javascript:void(null)" title="上翻"></a></li>
|
|
<li class="next"><a href="javascript:void(null)" title="下翻"></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="logo">
|
|
<a href="#"><img src="../common/images/min.png" width="42" height="40" border="0" style="vertical-align: middle;" id="headlogo"/>
|
|
<span style="color: whitesmoke;font-size: 22px;font-weight: 500;margin-left: 10px;vertical-align: middle;">团险核心</span></a>
|
|
</div>
|
|
</div>
|
|
<%--登录 结束--%>
|
|
</body>
|
|
<script>
|
|
var _language = sessionStorage.getItem("$language");
|
|
if (_language) {
|
|
if(_language === 'zh-hant'){
|
|
document.getElementById("headlogo").src = "../common/images/logo_03-cht.png";
|
|
} else if(_language === 'en'){
|
|
document.getElementById("headlogo").src = "../common/images/logo_03-en.png";
|
|
} else {
|
|
document.getElementById("headlogo").src = "../common/images/min.png";
|
|
}
|
|
} else {
|
|
document.getElementById("headlogo").src = "../common/images/min.png";
|
|
}
|
|
document.getElementById("menuClass1").innerHTML = MenuClass1Html;
|
|
var initFlag = false;
|
|
|
|
function clickTopMenu(id) {
|
|
var html = "";
|
|
html += '<div class="left">';
|
|
html += '<ul>';
|
|
html += '<p class="diyi" onclick="parent.fraQuick.window.location = \'about:blank\'">';
|
|
if (this.node[id].url) {
|
|
html += '<a class="innerA" target="fraInterface" href="' + this.node[id].url + '">';
|
|
}
|
|
html += '<b>' + this.node[id].text + '</b>';
|
|
if (this.node[id].url) {
|
|
html += '</a>';
|
|
}
|
|
html += '</p>';
|
|
//如果为1,则隐藏具体菜单
|
|
if (id != '1') {
|
|
loadData(id);
|
|
var rootCN = this.node[id].childNodes;
|
|
if (rootCN.length > 0) {
|
|
this.node[id].hasChild = true;
|
|
for (var i = 0; i < rootCN.length; i++) {
|
|
var nodeID = rootCN[i].id;
|
|
html += '<li id="' + nodeID + '" ';
|
|
loadData(nodeID);
|
|
var CN = this.node[nodeID].childNodes;
|
|
if (CN && CN.length > 0) {
|
|
html += 'class="goon" onclick="clickLeftMenu(' + rootCN[i].id + ');" id="' + rootCN[i].id + '" ';
|
|
} else {
|
|
html += ' onclick="showStation(' + rootCN[i].sid + ');" '
|
|
}
|
|
html += ' >';
|
|
if (CN && CN.length > 0) {
|
|
} else {
|
|
if (rootCN[i].url) {
|
|
html += '<a class="innerA" target="fraInterface" href="' + rootCN[i].url + '">'
|
|
}
|
|
}
|
|
html += rootCN[i].text;
|
|
if (CN && CN.length > 0) {
|
|
} else {
|
|
if (rootCN[i].url) {
|
|
html += '</a>'
|
|
}
|
|
}
|
|
html += '</li>'
|
|
}
|
|
}
|
|
html += '</ul>';
|
|
html += '</div>';
|
|
}
|
|
var fraMenu = window.parent.frames["fraMenu"];
|
|
fraMenu.divMenuTreeCopy.innerHTML = html;
|
|
fraMenu.a();
|
|
// 初始化隐藏左侧菜单,点击除首页外其他顶部菜单后展现左侧菜单
|
|
if (!initFlag && id != '1') {
|
|
fraMenu.fivo();
|
|
initFlag = true;
|
|
}
|
|
}
|
|
|
|
function clickLeftMenu(id) {
|
|
var html = "";
|
|
loadData(id);
|
|
var rootCN = this.node[id].childNodes;
|
|
var num = 0;
|
|
if (rootCN.length > 0) {
|
|
this.node[id].hasChild = true;
|
|
for (var i = 0; i < rootCN.length; i++) {
|
|
var nodeID = rootCN[i].id;
|
|
html += '<dl>';
|
|
html += '<dt ';
|
|
loadData(nodeID);
|
|
var CN = this.node[nodeID].childNodes;
|
|
if (CN && CN.length > 0) {
|
|
html += ' class="thirdmenu' + num + '" id="' + num + '" ';
|
|
} else {
|
|
html += ' onclick="showStation(' + rootCN[i].sid + ');" '
|
|
}
|
|
html += '><b>';
|
|
if (CN && CN.length > 0) {
|
|
} else {
|
|
if (rootCN[i].url) {
|
|
html += '<a class="innerA" target="fraInterface" href="' + rootCN[i].url + '">'
|
|
}
|
|
}
|
|
html += rootCN[i].text;
|
|
if (CN && CN.length > 0) {
|
|
} else {
|
|
if (rootCN[i].url) {
|
|
html += '</a>'
|
|
}
|
|
}
|
|
html += '</b></dt>'
|
|
if (CN && CN.length > 0) {
|
|
this.node[nodeID].hasChild = true;
|
|
for (var j = 0; j < CN.length; j++) {
|
|
html += '<dd class="fourthmenu' + num + '" ';
|
|
if (CN[j].url) {
|
|
html += ' onclick="showStation(' + CN[j].sid + ');" '
|
|
}
|
|
html += ' >';
|
|
if (CN[j].url) {
|
|
html += '<a class="innerA" target="fraInterface" href="' + CN[j].url + '">'
|
|
}
|
|
html += CN[j].text;
|
|
if (CN[j].url) {
|
|
html += '</a>'
|
|
}
|
|
html += '</dd>';
|
|
}
|
|
num++;
|
|
}
|
|
html += '</dl>'
|
|
}
|
|
}
|
|
window.parent.frames["fraMenu"].huadong1.innerHTML = html;
|
|
window.parent.frames["fraMenu"].b(id, num);
|
|
}
|
|
</script>
|
|
</html>
|
|
|
|
|