| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ page import="com.runzhixing.constant.Constant"%>
- <%@ page import="com.runzhixing.bean.User"%>
- <%@ page import="com.runzhixing.bean.Announcement"%>
- <%@ page import="java.util.List"%>
- <%@ page import="com.runzhixing.packageProcedure.InformationAnnouncementProcedure"%>
- <%@ page import="com.runzhixing.filter.MyFilter"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- String username = (String)session.getAttribute("username");
- String place = (String) session.getAttribute("place");
- if(place!=null&&!place.trim().equals("")){
- String end = place.substring(place.length()-1,place.length());
- if(end.equals("市")||end.equals("县")) place= place.substring(0,place.length()-1);
- }
- User uu = (User)session.getAttribute(Constant.userMark);
- String s = uu.getPrivilegeCode();
- if(s.length()>6) {
- s = s.substring(0, 6);
- }
- s = s.replaceAll("(00)*$", "");//// 一直过滤到最高行政地域(删去尾部的 00 )
- List<Announcement> list = new InformationAnnouncementProcedure().areatedmachinerunningstate1(5000, 1, -1, s, s, null, null, null, 0);
- int id=-1;
- String title="";
- String anTime="";
- if(list.size()>0){
- for(Announcement an:list){
- if(an.getId()>id){
- id=an.getId();
- title = an.getTitle();
- anTime = an.getPublishTime1();
- }
- }
- }
-
- //查询各部门有效期
- List<Announcement> list1 = new ArrayList<Announcement>();
- String PrivilegeCode = (String)request.getSession().getAttribute("PrivilegeCode");
- if(PrivilegeCode!=null&&!PrivilegeCode.trim().equals("")){
- if(PrivilegeCode.length()>=4&&PrivilegeCode.substring(0,4).equals("1502")){//包头市
- list1 = new InformationAnnouncementProcedure()
- .checkValidity((String)request.getSession().getAttribute("PrivilegeCode"),(String)request.getSession().getAttribute("sOperatorNo"),s,Integer.parseInt((String)session.getAttribute(Constant.moudel)));
- }
- }
- String validity="";
- if (list1.size() > 0) {
- Announcement an = new Announcement();
- an=list1.get(0);
- if(an.getL()>0){
- validity+="<span style='color: yellow;'>证书快过期!";
- }else{
- validity+="<span style='color: red;'>证书已过期!";
- }
- validity+= "<br/>站点编号:"+an.getStationNo()+" <br/>站点名:"+an.getStationName()+" <br/>有效期:"+an.getValidity()+" <br/>联系人:"+an.getManager()+" <br/>电话:"+an.getPhone();
- validity+="</span>";
- }
- if (list1.size() > 1) {
- validity+="<br/><a href='CheckValidity' target='_blank'>还有"+(list1.size()-1)+"条过期信息,点击查询>></a>";
- }
- %>
-
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html xmlns="http://www.w3.org/1999/xhtml">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1">
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta http-equiv="X-UA-Compatible" content="IE=10"/>
- <title><%=MyFilter.man_prefix %></title>
- <link href="css/default.css" rel="stylesheet" type="text/css" />
- <link rel="stylesheet" type="text/css" href="css/easyui/themes/default/easyui.css">
- <link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
- <link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
- <script type="text/javascript" src="css/easyui/jquery.min.js"></script>
- <script type="text/javascript" src="css/easyui/jquery.easyui.min.js"></script>
- <script type="text/javascript" src="js/easyui/XiuCai.index.js"> </script>
- <style type="text/css">
- .hzb a:HOVER{
- color: red;
- text-decoration: underline;
- }
- .hzb a{
- color: #f08300;
- text-decoration: underline;
- }
- </style>
- <script type="text/javascript">
- var info_publish = '<%=MyFilter.info_publish %>';
- $(document).ready(function(){
- var newAnnTitle = document.getElementById("newAnnTitle").value;
- var newAnnID = document.getElementById("newAnnID").value;
- var newAnnTIME = document.getElementById("newAnnTIME").value;
- if(info_publish=="0"){}else{
- if(!newAnnID){
- show1("暂时没有公告!");
- }else{
- if(newAnnID=="-1"){
- show1("暂时没有公告!");
- }else{
- if(!newAnnTitle){
- show1("有新公告,标题:"+'<span class="hzb"><a href="Detailbyid?hiddenID='+newAnnID+'" target="_blank">'+无标题+'('+newAnnTIME+')'+'</span></a>');
- }else{
- show1("有新公告,标题:"+'<span class="hzb"><a href="Detailbyid?hiddenID='+newAnnID+'" target="_blank">'+newAnnTitle+'('+newAnnTIME+')'+'</span></a>');
- }
- }
-
- }
- }
-
- var validity = document.getElementById("validity").value;
- if(validity){
- $.messager.show({
- title: '证书信息提示',
- msg: validity,
- timeout: 0,
- showType: 'slide' ,
- width:400,
- height:200
- });
- }
- });
-
- var _menus;
- if(info_publish=="0"){
- _menus = {
- "menus": [
- {
- "menuid": "56",
- "icon": "icon-large-smartart",
- "menuname": "改装情况",
- "menus": [{
- "menuid": "144",
- "menuname": "当天改装情况",
- "icon": "icon-large-chart",
- "url": "jsp/rzx/filling/todayModify.jsp"
- }]
- },
- {
- "menuid": "1",
- "icon": "icon-tip",
- "menuname": "数据管理",
- "menus": [{
- "menuid": "121",
- "menuname": "特种设备数据录入",
- "icon": "icon-filter",
- "url": "jsp/rzx/dataMan/Specialequipmentdataintomodify.jsp"
- }]
- },
- {
- "menuid": "56",
- "icon": "icon-search",
- "menuname": "数据查询",
- "menus": [
- {
- "menuid": "165",
- "menuname": "气瓶数据查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/CylinderdataQuery1modify.jsp?clear=1"
- },
-
- {
- "menuid": "205",
- "menuname": "车辆数据查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/CarsdataQuerymodify.jsp"
- },{
- "menuid": "165",
- "menuname": "标签发放信息",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/tagIssuingInfomofiy.jsp"
- },
- {
- "menuid": "165",
- "menuname": "改装数据查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/ModifieddataQuerytesting.jsp"
- },
- {
- "menuid": "215",
- "menuname": "特种设备数据查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/SpecialequipmentdataQuerymodify.jsp"
- }]
- },
-
- {
- "menuid": "56",
- "icon": "icon-large-chart",
- "menuname": "数据统计",
- "menus": [
- {
- "menuid": "145",
- "menuname": "改装数据统计",
- "icon": "icon-large-chart",
- "url": "jsp/rzx/dataStatistics1/ModifydataStatistics.jsp"
- },{
- "menuid": "165",
- "menuname": "标签发放信息统计",
- "icon": "icon-search",
- "url": "jsp/rzx/dataStatistics1/tagIssuingInfoStatistics.jsp"
- }]
- },
- {
- "menuid": "56",
- "icon": "icon-more",
- "menuname": "系统管理",
- "menus": [{
- "menuid": "143",
- "menuname": "站点信息查看",
- "icon": "icon-more",
- "url": "jsp/rzx/systemMan/modifyStationInfoCheck.jsp"
- },
- {
- "menuid": "153",
- "menuname": "工作人员信息",
- "icon": "icon-tip",
- "url": "jsp/rzx/systemMan/modifyworkPersonInfo.jsp"
- }
- ]
- }]
- };
- }else{
- _menus = {
- "menus": [{
- "menuid": "55",
- "icon": "icon-more",
- "menuname": "信息管理",
- "menus": [{
- "menuid": "31",
- "menuname": "公告信息查看",
- "icon": "icon-search",
- "url": "jsp/rzx/infoMan/CheckAnnouncementInfomodify.jsp"
- }]
- },
- {
- "menuid": "56",
- "icon": "icon-large-smartart",
- "menuname": "改装情况",
- "menus": [{
- "menuid": "144",
- "menuname": "当天改装情况",
- "icon": "icon-large-chart",
- "url": "jsp/rzx/filling/todayModify.jsp"
- }]
- },
- {
- "menuid": "1",
- "icon": "icon-tip",
- "menuname": "数据管理",
- "menus": [{
- "menuid": "121",
- "menuname": "特种设备数据录入",
- "icon": "icon-filter",
- "url": "jsp/rzx/dataMan/Specialequipmentdataintomodify.jsp"
- }]
- },
- {
- "menuid": "56",
- "icon": "icon-search",
- "menuname": "数据查询",
- "menus": [
- {
- "menuid": "165",
- "menuname": "气瓶数据查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/CylinderdataQuery1modify.jsp?clear=1"
- },
-
- {
- "menuid": "205",
- "menuname": "车辆数据查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/CarsdataQuerymodify.jsp"
- },{
- "menuid": "165",
- "menuname": "标签发放信息",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/tagIssuingInfomofiy.jsp"
- },
- {
- "menuid": "165",
- "menuname": "改装数据查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/ModifieddataQuerytesting.jsp"
- },
- {
- "menuid": "215",
- "menuname": "特种设备数据查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/SpecialequipmentdataQuerymodify.jsp"
- }]
- },
-
- {
- "menuid": "56",
- "icon": "icon-large-chart",
- "menuname": "数据统计",
- "menus": [
- {
- "menuid": "145",
- "menuname": "改装数据统计",
- "icon": "icon-large-chart",
- "url": "jsp/rzx/dataStatistics1/ModifydataStatistics.jsp"
- },{
- "menuid": "165",
- "menuname": "标签发放信息统计",
- "icon": "icon-search",
- "url": "jsp/rzx/dataStatistics1/tagIssuingInfoStatistics.jsp"
- }]
- },
- {
- "menuid": "56",
- "icon": "icon-more",
- "menuname": "系统管理",
- "menus": [{
- "menuid": "143",
- "menuname": "站点信息查看",
- "icon": "icon-more",
- "url": "jsp/rzx/systemMan/modifyStationInfoCheck.jsp"
- },
- {
- "menuid": "153",
- "menuname": "工作人员信息",
- "icon": "icon-tip",
- "url": "jsp/rzx/systemMan/modifyworkPersonInfo.jsp"
- }
- ]
- }]
- };
- }
-
- //设置登录窗口
- function openlogin() {
- $('#l').window({
- title: '登陆',
- width: 300,
- modal: true,
- shadow: true,
- closed: true,
- height: 160,
- resizable:false
- });
- }
- function openPwd() {
- $('#w').window({
- title: '修改密码',
- width: 300,
- modal: true,
- shadow: true,
- closed: true,
- height: 'auto',
- resizable:false
- });
- }
- //关闭修改密码窗口
- function closePwd() {
- $('#w').window('close');
- }
- //关闭登录窗口
- function closelogin() {
- $('#l').window('close');
- }
- //登陆
- function serverLogin() {
- var $name = $('#txtName');
- var $pass = $('#txtPass');
- if ($name.val() == '') {
- msgShow('系统提示', '请输入用户名!', 'warning');
- return false;
- }
- if ($pass.val() == '') {
- msgShow('系统提示', '请输入密码!', 'warning');
- return false;
- }
- $.post('ajax/ajax_login?name=' + $name.val()+'&pass='+$pass.val(), function(msg) {
- msgShow('系统提示', '恭喜,登陆成功!<br>欢迎您:' + msg, 'info');
- $name.val('');
- $pass.val('');
- $('#l').window('close');
- })
-
- }
- function checkPwd(pwd)
- {
- var regNumber = /\d+/; //验证0-9的任意数字最少出现1次。
- var regString = /[a-zA-Z]+/; //验证大小写26个字母任意字母最少出现1次。
- if (regNumber.test(pwd) && regString.test(pwd)) {
- return true;
- }else{
- return false;
- }
- }
- //修改密码
- function serverAlterpass() {
- var $oldpass = $('#txtOldPass').val().replace(/\s+/g,"");;
- var $newpass = $('#txtNewPass').val().replace(/\s+/g,"");;
- var $rePass = $('#txtRePass').val().replace(/\s+/g,"");;
-
- if ($oldpass == '') {
- msgShow('系统提示', '请输入旧密码!', 'warning');
- return false;
- }
- if ($newpass == '') {
- msgShow('系统提示', '请输入新密码!', 'warning');
- return false;
- }else if($newpass.length<8){
- msgShow('系统提示', '密码长度不能低于8位!且须包含数字和字母!!!', 'warning');
- return false;
- }
- if($newpass.match(/^.*[A-Z]+.*$/)==null){
- alert("密码必须包含数字和大小写字母!!!且长度不能低于8位");
- return false;
- }
- if($newpass.match(/^.*[a-z]+.*$/)==null){
- alert("密码必须包含数字和大小写字母!!!且长度不能低于8位");
- return false;
- }
- if($newpass.match(/^.*[0-9]+.*$/)==null){
- alert("密码必须包含数字和大小写字母!!!且长度不能低于8位");
- return false;
- }
- if ($rePass == '') {
- msgShow('系统提示', '请再一次输入新密码!', 'warning');
- return false;
- }
- if ($newpass != $rePass) {
- msgShow('系统提示', '两次密码不一至!请重新输入', 'warning');
- return false;
- }
-
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- data:$('#alterpasswordform').serialize(),
- url:"ajax/alterpassword",
- success:function (data){
- var obj=eval("(" + data + ")");
- $.each(obj.rows, function(i,item){
- if(item.sresult=="0"){
- $('#txtOldPass').val('');
- $('#txtNewPass').val('');
- $('#txtRePass').val('');
- $('#w').window('close');
- // msgShow('系统提示', '恭喜,密码修改成功!<br>您的新密码为:' + item.pass, 'info');
- show("修改成功您的新密码为:"+item.pass.substring(0,1)+"********");
- }else if(item.sresult=="2"){
- show("修改错误");
- }else if(item.sresult=="3"){
- show("用户不存在");
- }else if(item.sresult=="4"){
- show("旧密码错误");
- }
- });
-
- }
- });
-
- }
- function show(message) {
- $.messager.show({
- title: '提示信息',
- msg: message,
- timeout: 2000,
- showType: 'slide'
- });
- }
- function show1(message) {
- $.messager.show({
- title: '提示信息',
- msg: message,
- timeout: 15000,
- showType: 'slide'
- });
- }
- $(function() {
- openlogin();
- openPwd();
- $('#login').click(function() {
- $('#l').window('open');
- });
- $('#btnlogin').click(function() {
- serverLogin();
- })
- $('#btnloginCancel').click(function(){closelogin();})
- $('#editpass').click(function() {
- $('#w').window('open');
- });
-
- $('#btnEp').click(function() {
- serverAlterpass();
- })
- $('#btnCancel').click(function(){closePwd();})
- $('#loginOut').click(function() {
- $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
- if (r) {
- location.href = 'jsp/login/loginre.jsp';
- }
- });
- })
- });
-
- function sExit(){
- $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
- if (r) {
-
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"safeExit",
- success:function (data){
- window.location.href = 'jsp/login/loginre.jsp';
- //IE6
- window.event.returnValue = false;
-
- }
- });
-
-
- }
- });
- }
- </script>
- </head>
- <body class="easyui-layout" style="overflow-y: hidden" fit="true" scroll="no">
- <noscript>
- <div style=" position:absolute; z-index:100000; height:2046px;top:0px;left:0px; width:100%; background:white; text-align:center;">
- <img src="images/noscript.gif" alt='抱歉,请开启脚本支持!' />
- </div></noscript>
- <div id="loading-mask" style="position:absolute;top:0px; left:0px; width:100%; height:100%; background:#D2E0F2; z-index:20000">
- <div id="pageloading" style="position:absolute; top:50%; left:50%; margin:-120px 0px 0px -120px; text-align:center; border:2px solid #8DB2E3; width:200px; height:40px; font-size:14px;padding:10px; font-weight:bold; background:#fff; color:#15428B;">
- <img src="images/loading.gif" align="absmiddle" /> 正在加载中,请稍候...</div>
- </div>
- <div region="north" split="true" border="false" style="overflow: hidden; height: 30px;
- background: url(images/rzx/layout-browser-hd-bg12.gif) #817865 repeat-x center 50%;
- line-height: 20px;color: #fff; font-family: Verdana, 微软雅黑,黑体">
- <span style="float:right; padding-right:20px;" class="head">欢迎您 <%=username %> <a href="#" id="editpass">修改密码</a> <a href="javaScript:void(0);" onclick="sExit();return false;">安全退出</a></span>
- <% if(MyFilter.placeStart){ %>
- <span style="padding-left:10px; font-size: 16px; "><img src="images/rzx/blocks.gif" width="20" height="20" align="absmiddle" /><%=MyFilter.man_prefix %>-<%=place %> 改装厂管理</span>
- <% }else { %>
- <span style="padding-left:10px; font-size: 16px; "><img src="images/rzx/blocks.gif" width="20" height="20" align="absmiddle" /><%=MyFilter.man_prefix %>-改装厂管理</span>
- <% }%>
- <span style="padding-left:100px; font-size: 12px; ">
- <marquee scrollAmount=2 width="780px">
- <span style="font-size: 12px;">
- 为了确保系统安全,请使用包含数字、字母、大写字符等内容的密码,遇到系统不能正常登录,数据异常等情况,及时与客服联系!
- </span>
- </marquee>
- </span>
- </div>
- <div region="south" split="true" style="height: 30px; background: #D2E0F2; ">
- <div class="footer"> </div>
- </div>
- <div region="west" split="true" title="导航菜单" style="width:180px;" id="west">
- <div id="nav">
- <!-- 导航内容 -->
-
- </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:#f08300; " >
- <center>
- <% if(MyFilter.placeStart){ %>
- <h1 style="font-size:24px;">* <%=MyFilter.man_prefix %>-<%=place %> 改装厂管理</h1>
- <% }else { %>
- <h1 style="font-size:24px;">* <%=MyFilter.man_prefix %>-改装厂管理</h1>
- <% }%>
- </center>
- </div>
- </div>
- </div>
-
-
- <!--修改密码窗口-->
- <div id="w" class="easyui-window" title="修改密码" collapsible="false" minimizable="false"
- maximizable="false" icon="icon-save" style="width: 300px; height: auto; padding: 5px;
- background: #fafafa;">
- <form id="alterpasswordform">
- <div fit="true" >
- <div region="center" border="false" style="padding: 0px; background: #fff; border: 1px solid #ccc;height: auto;">
- <table cellpadding=3>
- <tr>
- <td>旧密码:</td>
- <td><input id="txtOldPass" name="txtOldPass" type="Password" class="txt01" /></td>
- </tr>
- <tr>
- <td>新密码:</td>
- <td><input id="txtNewPass" name="txtNewPass" type="Password" class="txt01" /></td>
- </tr>
- <tr>
- <td>确认密码:</td>
- <td><input id="txtRePass" type="Password" name="txtRePass" class="txt01" /></td>
- </tr>
- </table>
- </div>
- <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
- <a id="btnEp" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" >
- 确定</a> <a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)">取消</a>
- </div>
- </div>
- </form>
- </div>
- <!--登陆窗口-->
- <div id="l" class="easyui-window" title="登陆窗口" collapsible="false" minimizable="false"
- maximizable="false" icon="icon-save" style="width: 300px; height: 150px; padding: 15px;
- background: #fafafa;">
- <div class="easyui-layout" fit="true">
- <div region="center" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
- <table cellpadding=3>
- <tr>
- <td>用户名:</td>
- <td><input id="txtName" type="text" class="txt01" /></td>
- </tr>
- <tr>
- <td>密码:</td>
- <td><input id="txtPass" type="Password" class="txt01" /></td>
- </tr>
- </table>
- </div>
- <div region="south" border="false" style="text-align: right; ">
- <a id="btnlogin" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" >
- 确定</a> <a id="btnloginCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)">取消</a>
- </div>
- </div>
- </div>
- <div id="mm" class="easyui-menu" style="width:150px;">
- <div id="tabupdate">刷新</div>
- <div class="menu-sep"></div>
- <div id="close">关闭</div>
- <div id="closeall">全部关闭</div>
- <div id="closeother">除此之外全部关闭</div>
- <div class="menu-sep"></div>
- <div id="closeright">当前页右侧全部关闭</div>
- <div id="closeleft">当前页左侧全部关闭</div>
- <div class="menu-sep"></div>
- <div id="exit">退出</div>
- </div>
-
-
- <input type="hidden" value="<%=title %>" name="newAnnTitle" id="newAnnTitle"/>
- <input type="hidden" value="<%=id %>" name="newAnnID" id="newAnnID"/>
- <input type="hidden" value="<%=anTime %>" name="newAnnTIME" id="newAnnTIME"/>
- <input type="hidden" value="<%=validity%>" name="validity" id="validity"/>
- </body>
- </html>
|