Commit 87895484 authored by 季圣华's avatar 季圣华
Browse files

No commit message

No commit message
parent 6d34773a
<%@page import="com.jsh.util.common.Tools"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String clientIp = Tools.getCurrentUserIP();
%>
<!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>
<title>ERP系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css" />
</head>
<frameset frameborder="no" border="0" framespacing="0" id="framesetList">
<frame src="<%=path %>/pages/common/main.jsp" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<body>
</body>
</noframes>
</html>
\ No newline at end of file
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!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>
<title>资产管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css" />
</head>
<body>
<div id="foot">Copyright © 2015 季圣华 版权所有 版本号 V1.0</div>
</body>
</html>
\ No newline at end of file
<%@page import="com.jsh.util.common.Tools"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String clientIp = Tools.getCurrentUserIP();
%>
<!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>
<title>资产管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css" />
<script type="text/javascript" src="<%=path %>/js/jquery-1.8.0.min.js"></script>
</head>
<body>
<div id="header">
<div id="logo"><img src="<%=path%>/images/windvane.png" height="50" alt="资产管理" title="资产管理"/></div>
<!-- <div id="logo"><img src="<%=path%>/images/suma_logo.png" height="45" alt="资产管理系统" title="资产管理系统"/></div> -->
<div id="nav_top">
<ul>
<li><a href="<%=path%>/pages/other/clock.jsp" style="background:url(<%=path %>/images/clock.png) 0 1px no-repeat;color:#333;text-decoration:none;" target="mainFrame"><span id="showNowTime"></span></a></li>
<li>|</li>
<li><a href="javascript:void(0)" style="background:url(<%=path %>/images/user_business_boss.png) 0 1px no-repeat;color:#333;text-decoration:none;">用户名:${sessionScope.user.loginame}</a></li>
<li>|</li>
<li id="1"><a href="<%=path %>/pages/common/home.jsp" id="navtop_home" target="mainFrame" style="color:#333;text-decoration:none;">首页</a></li>
<li id="2">|</li>
<li id="3"><a href="<%=path %>/pages/user/userinfo.jsp" id="person_file" target="mainFrame" style="background:url(<%=path %>/images/comment.png) 0 1px no-repeat;color:#333;text-decoration:none;">个人资料</a></li>
<li id="4">|</li>
<li id="5"><a href="<%=path %>/pages/user/password.jsp" target="mainFrame" id="navtop_editpwd" style="background:url(<%=path %>/images/lock_unlock.png) 0 1px no-repeat;color:#333;text-decoration:none;">修改密码</a></li>
<!--<li>|</li>
<li><a href="javascript:void(0)" id="navtop_help">帮助</a></li>
-->
<li id="6">|</li>
<li><a href="javascript:void(0)" id="navtop_logout">注销</a></li>
</ul>
</div>
</div>
<script type="text/javascript">
$(init);
//页面初始化
function init()
{
//初始化时间
showTime();
if('${sessionScope.user.loginame}'!= 'guest')
$("#1").add("#2").add("#3").add("#4").add("#5").add("#6").show();
else
$("#1").add("#2").add("#3").add("#4").add("#5").add("#6").hide();
}
function showDate()
{
var calendar = new Date();
var day = calendar.getDay();
var month = calendar.getMonth();
var date = calendar.getDate();
var year = calendar.getYear();
if (year< 1900)
{
year = 1900 + year;
}
var cent = parseInt(year/100);
var g = year % 19;
var k = parseInt((cent - 17)/25);
var i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
var j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
var l = i - j;
var emonth = 3 + parseInt((l + 40)/44);
var edate = l + 28 - 31*parseInt((emonth/4));
emonth--;
var dayname = new Array ("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
var monthname =new Array ("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月" );
var message = "";
if(getOs().indexOf("MSIE")!= -1)
{
//控制时间和图片之间的距离
$("#blankSpace").empty().append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
message = year + "" + monthname[month]+ date + "日&nbsp;&nbsp;" + dayname[day]+"&nbsp;&nbsp;";
}
else if(getOs().indexOf("Firefox") != -1)
{
$("#blankSpace").empty().append("&nbsp;&nbsp;&nbsp;");
message = year + "" + monthname[month]+ date + "日&nbsp;&nbsp;" + dayname[day]+"&nbsp;&nbsp;";
}
else
{
$("#blankSpace").empty().append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
message = year + "" + monthname[month]+ date + "日&nbsp;&nbsp; " + dayname[day] + "&nbsp;&nbsp;";
}
return message;
}
function showTime()
{
var Digital=new Date();
var hours=Digital.getHours();
var minutes=Digital.getMinutes();
var seconds=Digital.getSeconds();
if(hours==0)
{
hours="00";
}
if(hours <= 9 && hours > 0)
{
hours="0"+hours;
}
if(minutes<=9)
minutes="0"+minutes;
if(seconds<=9)
seconds="0"+seconds;
var myclock=hours+":"+minutes+":"+seconds;
//定时器
setTimeout("showTime()",1000);
var message = showDate()+" "+myclock;
$("#showNowTime").empty().append(message);
}
//判断浏览器的类型
function getOs()
{
var OsObject = "";
if(navigator.userAgent.indexOf("MSIE")>0)
{
return "MSIE";
}
else if(navigator.userAgent.indexOf("Firefox")>0)
{
return "Firefox";
}
else if(navigator.userAgent.indexOf("Safari")>0)
{
return "Safari";
}
else if(navigator.userAgent.indexOf("Camino")>0)
{
return "Camino";
}
else if(navigator.userAgent.indexOf("Gecko/")>0)
{
return "Gecko";
}
else if(navigator.userAgent.indexOf("Opera/")>0)
{
return "Opera";
}
else
{
return "unknown";
}
}
//退出系统
$("#navtop_logout").bind({
click:function()
{
if(confirm("确认要退出系统吗?"))
{
window.location.href ="<%=path%>/user/logout.action?clientIp=<%=clientIp%>" ;
}
}
});
</script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
<%@page import="com.jsh.util.common.Tools"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String clientIp = Tools.getCurrentUserIP();
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ERP系统</title>
<link href="<%=path%>/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.css" rel="stylesheet" />
<link href="<%=path%>/js/HoorayOS_mini/img/ui/index.css" rel="stylesheet" />
<style type="text/css">
.newsTitle {
text-align: center;
color: red;
font-weight: bold;
font-size: 20px;
}
.newsContent {
padding-top: 10px;
color: red;
font-weight: bold;
height: 140px;
overflow: hidden;
line-height: 20px;
}
.newsFoot {
text-align: right;
color: red;
font-weight: bold;
}
.newsTime {
text-align: right;
color: red;
font-weight: bold;
}
</style>
</head>
<body>
<div class="loading"></div>
<!-- 浏览器升级提示 -->
<div class="update_browser_box">
<div class="update_browser">
<div class="subtitle">您正在使用的IE浏览器版本过低,<br>我们建议您升级或者更换浏览器,以便体验顺畅、兼容、安全的互联网。</div>
<div class="title">选择一款<span></span>浏览器吧</div>
<div class="browser">
<a href="http://windows.microsoft.com/zh-CN/internet-explorer/downloads/ie" class="ie" target="_blank" title="ie浏览器">ie浏览器</a>
<a href="http://www.google.cn/chrome/" class="chrome" target="_blank" title="谷歌浏览器">谷歌浏览器</a>
<a href="http://www.firefox.com.cn" class="firefox" target="_blank" title="火狐浏览器">火狐浏览器</a>
<a href="http://www.opera.com" class="opera" target="_blank" title="opera浏览器">opera浏览器</a>
<a href="http://www.apple.com.cn/safari" class="safari" target="_blank" title="safari浏览器">safari浏览器</a>
</div>
<div class="bottomtitle">[&nbsp;<a href="http://www.baidu.com/search/theie6countdown.html" target="_blank">对IE6说再见</a>&nbsp;]</div>
</div>
</div>
<!-- 桌面 -->
<div id="desktop">
<div id="zoom-tip"><div><i></i><span></span></div><a href="javascript:;" class="close" onclick="HROS.zoom.close();">×</a></div>
<div id="desk">
<div id="desk-1" class="desktop-container"><div class="scrollbar scrollbar-x"></div><div class="scrollbar scrollbar-y"></div></div>
<div id="dock-bar">
<div id="dock-container">
<div class="dock-middle">
<div class="dock-applist"></div>
<div class="dock-toollist">
<a id="loginOut" href="#">
<img src="<%=path%>/js/HoorayOS_mini/img/exit.png" style="height:50px;width:50px;">
</a>
<span style="text-align:center;color:white; position:absolute;top:435px; left:15px;">
${sessionScope.user.username}
</span>
</div>
</div>
</div>
</div>
</div>
<div id="task-bar-bg1"></div>
<div id="task-bar-bg2"></div>
<div id="task-bar">
<div id="task-next"><a href="javascript:;" id="task-next-btn" hidefocus="true"></a></div>
<div id="task-content">
<div id="task-content-inner"></div>
</div>
<div id="task-pre"><a href="javascript:;" id="task-pre-btn" hidefocus="true"></a></div>
</div>
</div>
<script src="<%=path%>/js/HoorayOS_mini/js/jquery-1.8.3.min.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/HoorayLibs/hooraylibs.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/templates.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/core.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.app.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.base.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.desktop.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.dock.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.grid.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.maskBox.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.taskbar.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.popupMenu.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.wallpaper.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.widget.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.window.js"></script>
<script src="<%=path%>/js/HoorayOS_mini/js/hros.zoom.js"></script>
<script type="text/javascript" src="<%=path%>/js/easyui-1.3.5/jquery.easyui.min.js"></script>
<link href="<%=path%>/js/easyui-1.3.5/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<script>
$(function () {
$('#loginOut').click(function () {
if (confirm("确认要退出系统吗?"))
location.href = '<%=path%>/user/logout.action?clientIp=<%=clientIp%>';
})
//IE下禁止选中
document.body.onselectstart = document.body.ondrag = function () { return false; }
//隐藏加载遮罩层
$('.loading').hide();
//IE6升级提示
if ($.browser.msie && $.browser.version < 7) {
if ($.browser.version < 7) {
//虽然不支持IE6,但还是得修复PNG图片透明的问题
DD_belatedPNG.fix('.update_browser .browser');
}
$('.update_browser_box').show();
} else {
$('#desktop').show();
//初始化一些桌面信息
HROS.CONFIG.wallpaper = '<%=path%>/js/HoorayOS_mini/img/wallpaper/wallpaper.jpg';
//加载桌面
HROS.base.init();
}
if ('@ViewData["News"].ToString()'.length > 0) {
$.messager.show({
title: '公 告',
msg: '最新公告',
timeout: 20000,
showType: 'slide',
width: 500,
height: 280
});
}
function JSGetCookie(Name) {
var search = Name + "="
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1) end = document.cookie.length
return unescape(document.cookie.substring(offset, end))
}
else return ""
}
}
function UserOut() {
if (JSGetCookie("UserId") == null)
top.location.href = '../../';
}
setInterval(UserOut, 5000);
});
</script>
</body>
</html>
\ No newline at end of file
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css" href="<%=path %>/js/easyui-1.3.5/themes/icon.css"/>
<link type="text/css" rel="stylesheet" href="<%=path %>/css/common.css" />
<script type="text/javascript" src="<%=path %>/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/easyui-1.3.5/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="<%=path %>/js/easyui-1.3.5/outlook.js"></script>
<script type="text/javascript" src="<%=path %>/js/common/common.js"></script>
<script type="text/javascript">
function NewTab(name, url) {
addTab(name, url, '');
}
</script>
</head>
<body class="easyui-layout" style="overflow-y: hidden" scroll="no">
<script>
var pageid = getUrlParam('id'); //获取传值id
var id=${sessionScope.user.id};
//alert(pageid);
var userBusinessList = null;
var userBusinessID = null;
var type=null;
var options = "";
var kid=null;
var lei=null;
var last="";
var functions="";
//初始化界面
$(function()
{
//初始化系统基础信息
initSystemData(id,'UserRole');
initSelectInfo(0);
initSelect();
//ceshi();
});
//初始化系统基础信息
function initSystemData(kid,type)
{
$.ajax({
type:"post",
url: "<%=path%>/userBusiness/getBasicData.action",
data: ({
KeyId:kid,
Type:type
}),
//设置为同步
async:false,
dataType: "json",
success: function (systemInfo)
{
if(systemInfo)
{
userBusinessList = systemInfo.showModel.map.userBusinessList;
var msgTip = systemInfo.showModel.msgTip;
if(msgTip == "exceptoin")
{
$.messager.alert('提示','查找UserBusiness异常,请与管理员联系!','error');
return;
}
}
else
{
userBusinessList=null;
}
}
});
}
//初始化页面选项卡
function initSelectInfo(lei)
{
if(userBusinessList !=null)
{
if(userBusinessList.length>0)
{
options =userBusinessList[0].value;
if(options!="")
{
options=options.substring(1,options.length-1);
}
if(lei==1)
{
last+=options+'][';
}
else if(lei==2)
{
functions+=options+'][';
}
}
}
}
//初始化页面
function initSelect()
{
var arr = options.split('][');
for(var i in arr){
initSystemData(arr[i],'RoleAPP'); //根据角色找app
initSelectInfo(1);
initSystemData(arr[i],'RoleFunctions'); //根据角色找functions
initSelectInfo(2);
}
if(last!="")
{
last="["+last.substring(0,last.length-1);
//alert(last);
if(last.indexOf("["+pageid+"]")!=-1)
{
//alert("存在");
$("#west").show();
$("#mainPanle").show();
$("#mm").show();
}
else
{
//alert("不存在");
$("div").remove();
$("<div style='width:100%;text-align:center;padding-top:20px'><b>抱歉,您没有该权限!</b></div>").appendTo("body");
}
}
if(functions!="")
{
functions="["+functions.substring(0,functions.length-1);
//alert(functions);
}
}
//测试自定义hql
function ceshi()
{
$.ajax({
type:"post",
url: "<%=path%>/userBusiness/getceshi.action",
data: ({
Type:"UserRole"
}),
//设置为同步
async:false,
dataType: "json",
success: function (systemInfo)
{
if(systemInfo)
{
userBusinessList = systemInfo.showModel.map.userBusinessList;
var msgTip = systemInfo.showModel.msgTip;
if(msgTip == "exceptoin")
{
$.messager.alert('提示','查找UserBusiness异常,请与管理员联系!','error');
return;
}
}
else
{
userBusinessList=null;
}
}
});
if(userBusinessList !=null)
{
if(userBusinessList.length>0)
{
alert(userBusinessList[0][0]);
alert(userBusinessList[0][1]);
}
}
}
</script>
<div region="west" hide="true" split="true" title="导航菜单" style="width: 200px;" id="west">
<!--<div id="nav" class="easyui-accordion" fit="true" border="false">-->
<div id="nav" fit="true" border="false">
<!-- 导航内容 -->
<div>
<ul id="tt"></ul>
<script type="text/javascript">
var PNumber = getUrlParam('appID'); //获取传值appid
$(function () {
$('#tt').tree({
url:'<%=path%>/functions/findMenu.action?PNumber='+PNumber+'&hasFunctions='+functions,
animate:true,
});
});
</script>
</div>
</div>
</div>
<div id="mainPanle" region="center" style="background: #eee; overflow-y: hidden">
<div id="tabs" class="easyui-tabs" fit="true" border="false">
<!--<div title="欢迎使用" style="padding: 20px; overflow: hidden; color: red;">
</div>-->
</div>
</div>
<div id="mm" class="easyui-menu" style="width: 150px;">
<div id="mm-tabupdate">
刷新
</div>
<div class="menu-sep">
</div>
<div id="mm-tabclose">
关闭
</div>
<div id="mm-tabcloseall">
全部关闭
</div>
<div id="mm-tabcloseother">
除此之外全部关闭
</div>
<div class="menu-sep">
</div>
<div id="mm-tabcloseright">
当前页右侧全部关闭
</div>
<div id="mm-tabcloseleft">
当前页左侧全部关闭
</div>
<div class="menu-sep">
</div>
<div id="mm-exit">
退出
</div>
</div>
</body>
</html>
\ No newline at end of file
<%@page import="com.jsh.util.common.Tools"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String clientIp = Tools.getCurrentUserIP();
%>
<!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>
<title>资产管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link rel="shortcut icon" href="<%=path%>/images/favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" href="<%=path %>/css/css.css" />
<script type="text/javascript" src="<%=path %>/js/jquery-1.8.0.min.js"></script>
</head>
<body>
<script type="text/javascript">
//初始化界面
$(function()
{
init();
});
function init()
{
}
</script>
</body>
</html>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment