Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jwzh-main
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
许晓芬
jwzh-main
Commits
e725489e
Commit
e725489e
authored
Jul 17, 2018
by
xuxf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动态显示title
parent
11a24bb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
277 additions
and
0 deletions
+277
-0
src/main/webapp/WEB-INF/pages/main20180717.jsp
+277
-0
No files found.
src/main/webapp/WEB-INF/pages/main20180717.jsp
0 → 100644
View file @
e725489e
<
%@
page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%
>
<
%@
page
import=
"org.setu.framework.properties.SetuSystemUtil"
%
>
<
%@
include
file=
"/WEB-INF/pages/commonInclude.jsp"
%
>
<
%@
page
import=
"com.founder.framework.config.*"
%
>
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<meta
name=
"renderer"
content=
"webkit"
>
<
%
--360
默认极速模式
--
%
>
<
%
--
<
title
>
四川省警务信息综合应用平台
</title>
--%>
<title></title>
<link
rel=
"shortcut icon"
href=
"<%=staticPath%>/framework/default/favicon.ico"
/>
<link
rel=
"bookmark"
href=
"<%=staticPath%>/framework/default/favicon.ico"
type=
"image/x-icon"
/>
<!--css loader-->
<link
rel=
"stylesheet"
href=
"<%=staticPath%>/common/easyuiDiy/easyui.css"
>
<link
rel=
"stylesheet"
href=
"<%=staticPath%>/common/easyuiDiy/icon.css"
>
<link
rel=
"stylesheet"
href=
"<%=staticPath%>/framework/default/css/font-awesome.min.css"
>
<link
rel=
"stylesheet"
href=
"<%=staticPath%>/common/gridly/jquery.gridly.css"
>
<link
rel=
"stylesheet"
href=
"<%=staticPath%>/framework/default/css/frame.css"
>
<link
rel=
"stylesheet"
href=
"<%=staticPath%>/framework/default/css/index.css"
>
<link
rel=
"stylesheet"
href=
"<%=basePath%>/stylesheets/main.css"
>
<style>
.userZone
span
{
display
:
inline-block
;
width
:
120px
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;}
.userCenterModel
.userHead
img
{
margin-top
:
4px
;}
.userCenterModel
.userInfo
{
cursor
:
default
;}
.userCenterModel
.userInfo
div
span
{
cursor
:
default
;}
.li-list
{
position
:
absolute
;
width
:
100%
;
max-height
:
100%
;
text-align
:
right
;
}
.li-list
>
a
{
padding
:
0
15px
0
0
;
}
</style>
</head>
<body
class=
"easyui-layout"
data-options=
"fit:true"
>
<!--js脚本支持-->
<noscript>
<div
style=
"position:absolute; z-index:100000; height:2046px;top:0;left:0; width:100%; background:white; text-align:center;"
>
<img
src=
"<%=staticPath%>/framework/default/images/noscript.gif"
alt=
'抱歉,请开启脚本支持!'
/>
</div>
</noscript>
<div
data-options=
"region:'north',border:false,"
style=
"overflow: hidden;height: 50px;min-width: 960px;"
>
<!--header-->
<div
class=
"sc_header"
>
<div
class=
"m-left"
id=
"sc_header_title"
>
<
%
--
<
img
src=
"<%=staticPath%>/framework/default/images/title_2.png"
alt=
"logo"
>
--%>
<
%
--
<
span
>
案件侦办全过程信息采集
</span>
--%>
</div>
<div
class=
"clearfix"
></div>
</div>
</div>
<
%
--tab
区域
--
%
>
<div
data-options=
"region:'center',border:false"
style=
"overflow: hidden;"
>
<div
id=
"frameTabs"
class=
"easyui-tabs"
style=
"width:100%;height: 100%;"
></div>
</div>
<!--right keyword tabs-->
<div
id=
"rightKeyTab"
class=
"easyui-menu"
style=
"width:120px;display: none;"
>
<div
id=
"closeCurrentTab"
>
关闭
</div>
<div
class=
"menu-sep"
></div>
<div
id=
"closeRight"
>
关闭右边窗口
</div>
<div
id=
"closeLeft"
>
关闭左边窗口
</div>
<div
id=
"closeNotCurrent"
>
关闭其他窗口
</div>
<div
id=
"closeAll"
>
全部关闭
</div>
<div
class=
"menu-sep"
></div>
<div
id=
"exit"
>
退出
</div>
</div>
<script>
var
loginPath
=
"<%=basePath+SetuSystemUtil.loginPage%>"
;
var
logoutPath
=
"<%=SetuOidcPlaceholderConfigurer.oidcProperties.get("
logout
")%>"
;
var
window_type
=
'open_url'
;
</script>
<script
src=
"<%=staticPath%>/common/easyui/jquery.min.js"
></script>
<script
src=
"<%=staticPath%>/common/easyui/jquery.easyui.min.js"
></script>
<script
src=
"<%=staticPath%>/common/easyui/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"<%=staticPath%>/common/easyui/jquery.easyui.extend.js"
></script>
<script
src=
"<%=staticPath%>/common/easyui/jquery.easyui.extend.tabs.js"
></script>
<script
src=
"<%=staticPath%>/common/gridly/jquery.gridly.js"
></script>
<script
src=
"<%=staticPath%>/common/js/messenger.js"
></script>
<script
src=
"<%=staticPath%>/framework/default/js/common.js"
></script>
<script
src=
"<%=staticPath%>/common/js/ajax.js"
></script>
<script
src=
"<%=staticPath%>/common/js/function.js"
></script>
<script>
//函数调用
$
(
function
()
{
$
(
'body'
).
css
(
'visibility'
,
'visible'
);
initTab
();
//初始化tab
handleTab
();
//操作Tab,右键,双击等右键功能
logout
();
//注销
getBGUrl
();
//查询背景图片
});
//初始化tab
function
initTab
(){
var
pathObj
=
getParamLinkUrl
();
//url所有参数
var
title
=
pathObj
.
title
||
'主页'
;
if
(
""
==
pathObj
||
pathObj
==
null
){
window
.
location
.
href
=
"http://zhyy.xzxt.nm/index.action"
;
}
var
url
=
pathObj
.
url
||
'http://zhyy.xzxt.nm/index.action'
;
if
(
pathObj
.
url
){
for
(
var
k
in
pathObj
){
var
value
=
pathObj
[
k
];
if
(
k
!=
'url'
&&
k
!=
'title'
){
if
(
url
.
indexOf
(
'?'
)
==
-
1
){
url
+=
'?'
+
k
+
'='
+
value
;
}
else
{
url
+=
'&'
+
k
+
'='
+
value
;
}
}
}
var
spanStr
=
''
;
if
(
pathObj
.
url
.
indexOf
(
"anjian"
)
!=
-
1
){
document
.
title
=
'案件侦办全过程信息采集'
;
spanStr
=
'<span>案件侦办全过程信息采集</span>'
;
}
else
if
(
pathObj
.
url
.
indexOf
(
"ztcx"
)
!=
-
1
){
document
.
title
=
'组合查询'
;
spanStr
=
'<span>组合查询</span>'
;
}
else
{
document
.
title
=
'案件侦办全过程信息采集'
;
spanStr
=
'<span>案件侦办全过程信息采集</span>'
;
}
$
(
"#sc_header_title"
).
append
(
spanStr
);
}
var
tabContent
=
'<iframe scrolling="hidden" src="'
+
url
+
'" frameborder="0" id="home_page_ifr" style="width:100%;height: 100%;"></iframe>'
;
$
(
'#frameTabs'
).
tabs
(
'add'
,{
id
:
'home_page'
,
title
:
title
,
content
:
tabContent
});
}
//查询 背景图片url
function
getBGUrl
(){
$
.
ajax
({
url
:
basePath
+
'/personalcdpz/queryPicurlInfo'
,
type
:
"post"
,
dataType
:
'json'
,
success
:
function
(
response
){
if
(
""
!=
response
&&
response
.
picurl
!=
undefined
&&
""
!=
response
.
picurl
){
$
(
'body'
).
css
(
"background"
,
"url("
+
response
.
picurl
+
") no-repeat center"
);
}
else
{
//未设置背景
$
(
'body'
).
css
(
"background"
,
"url("
+
'<%=staticPath%>/framework/default/images/bgi_1.jpg'
+
") no-repeat center"
);
}
},
error
:
function
(){
console
.
log
(
"设置背景失败!"
);
}
});
}
//绑定Tab菜单事件:右键等
function
handleTab
()
{
//tabs绑定右键功能
$
(
'.tabs-inner'
).
off
().
on
({
//右键事件
contextmenu
:
function
(
e
)
{
//右键菜单div,main.jsp页面中
$
(
"#rightKeyTab"
).
menu
(
'show'
,{
left
:
e
.
pageX
,
top
:
e
.
pageY
});
e
.
preventDefault
();
},
click
:
function
(
e
){
if
(
e
.
button
==
1
){
var
scTabs
=
$
(
'#frameTabs'
);
//tabs节点
var
currentTab
=
scTabs
.
tabs
(
'getSelected'
);
//当前的tab
var
currentTabTitle
=
currentTab
.
panel
(
'options'
).
title
;
if
(
currentTabTitle
!=
'主页'
){
scTabs
.
tabs
(
'close'
,
currentTabTitle
);
}
}
}
});
//选择菜单按钮
$
(
"#rightKeyTab"
).
menu
({
onClick
:
function
(
item
)
{
var
tab_mark
=
item
.
id
;
closeTabs
(
tab_mark
);
}
});
var
openTabTitle
=
'主页'
;
//定义唯一不被关闭的窗口title
//选择关闭tab的方式
function
closeTabs
(
tab_mark
)
{
var
scTabs
=
$
(
'#frameTabs'
);
//tabs节点
var
allTabs
=
scTabs
.
tabs
(
'tabs'
);
//所有的tab
var
currentTab
=
scTabs
.
tabs
(
'getSelected'
);
//当前的tab
var
allTabTitles
=
[];
//所有tab的title
$
.
each
(
allTabs
,
function
(
i
,
o
)
{
allTabTitles
.
push
(
$
(
o
).
panel
(
'options'
).
title
);
});
switch
(
tab_mark
)
{
case
'closeCurrentTab'
:
//关闭当前
var
currentTabTitle
=
currentTab
.
panel
(
'options'
).
title
;
//console.log(currentTabTitle);
scTabs
.
tabs
(
'close'
,
currentTabTitle
);
break
;
case
'closeAll'
:
//关闭所有
$
.
each
(
allTabTitles
,
function
(
i
,
o
)
{
if
(
o
!=
openTabTitle
)
{
scTabs
.
tabs
(
'close'
,
o
);
}
});
break
;
case
'closeNotCurrent'
:
//关闭除此之外的其他
var
currentTabTitle
=
currentTab
.
panel
(
'options'
).
title
;
$
.
each
(
allTabTitles
,
function
(
i
,
o
)
{
if
(
o
!=
openTabTitle
&&
o
!=
currentTabTitle
)
{
scTabs
.
tabs
(
'close'
,
o
);
}
});
break
;
case
'closeLeft'
:
//关闭左侧所有
var
tabIndex
=
scTabs
.
tabs
(
'getTabIndex'
,
currentTab
);
if
(
tabIndex
==
1
)
{
alert
(
'左边没有窗口咯,亲!'
);
return
false
;
}
$
.
each
(
allTabTitles
,
function
(
i
,
o
)
{
if
(
tabIndex
>
i
)
{
if
(
o
!=
openTabTitle
)
{
scTabs
.
tabs
(
'close'
,
o
);
}
}
});
break
;
case
'closeRight'
:
//关闭右侧所有
var
tabIndex
=
scTabs
.
tabs
(
'getTabIndex'
,
currentTab
);
if
(
tabIndex
==
allTabs
.
length
-
1
)
{
alert
(
'右边没有窗口咯,亲!'
);
return
false
;
}
$
.
each
(
allTabTitles
,
function
(
i
,
o
)
{
if
(
tabIndex
<
i
)
{
if
(
o
!=
openTabTitle
)
{
scTabs
.
tabs
(
'close'
,
o
);
}
}
});
break
;
case
'exit'
:
//退出
$
(
'#rightKeyTab'
).
menu
(
'hide'
);
break
;
}
}
}
//logout
function
logout
()
{
$
(
'#logout'
).
click
(
function
()
{
$
.
messager
.
confirm
(
'确认对话框'
,
'您确定要退出该系统吗?'
,
function
(
r
){
if
(
r
){
location
.
href
=
logoutPath
;}
});
});
}
</script>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment