| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467 |
- <%@ 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"%>
- <%
- 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();
- }
- }
- }
- %>
-
- <!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 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>CNG气瓶实时动态监管集成系统</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">
- $(document).ready(function(){
- var newAnnTitle = document.getElementById("newAnnTitle").value;
- var newAnnID = document.getElementById("newAnnID").value;
- var newAnnTIME = document.getElementById("newAnnTIME").value;
- 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 _menus = {
- "menus": [{
- "menuid": "55",
- "icon": "icon-more",
- "menuname": "信息管理",
- "menus": [{
- "menuid": "31",
- "menuname": "公告信息查看",
- "icon": "icon-search",
- "url": "jsp/rzx/infoMan/CheckAnnouncementInfofilling.jsp"
- }]
- },
- {
- "menuid": "56",
- "icon": "icon-large-smartart",
- "menuname": "充装情况",
- "menus": [{
- "menuid": "144",
- "menuname": "动态视图",
- "icon": "icon-large-chart",
- "url": "jsp/rzx/filling/Dynamicattempt1.jsp"
- }]
- },
- {
- "menuid": "56",
- "icon": "icon-search",
- "menuname": "数据查询",
- "menus": [{
- "menuid": "145",
- "menuname": "充装数据查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/FillingdataQueryfilling.jsp"
- },
- {
- "menuid": "155",
- "menuname": "考勤数据查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/workattendanceQuery.jsp"
- },
- {
- "menuid": "165",
- "menuname": "外地车标签查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/NonlocalCarsUIDQueryfilling.jsp"
- },
- {
- "menuid": "155",
- "menuname": "CNG质量查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/CNGQualityQueryfilling.jsp"
- },
- {
- "menuid": "215",
- "menuname": "特种设备数据查询",
- "icon": "icon-search",
- "url": "jsp/rzx/dataQuery/SpecialequipmentdataQueryfilling.jsp"
- }]
- },{
- "menuid": "1",
- "icon": "icon-tip",
- "menuname": "数据管理",
- "menus": [{
- "menuid": "121",
- "menuname": "特种设备数据录入",
- "icon": "icon-filter",
- "url": "jsp/rzx/dataMan/Specialequipmentdataintofilling.jsp"
- },{
- "menuid": "122",
- "menuname": "CNG质量数据录入",
- "icon": "icon-save",
- "url": "jsp/rzx/dataMan/CNGQualityIntofilling.jsp"
- }]
- },
-
- {
- "menuid": "56",
- "icon": "icon-large-chart",
- "menuname": "数据统计",
- "menus": [{
- "menuid": "145",
- "menuname": "充装数据统计",
- "icon": "icon-large-chart",
- "url": "jsp/rzx/dataStatistics/FillingdataStatisticsfilling.jsp"
- },
- {
- "menuid": "155",
- "menuname": "考勤数据统计",
- "icon": "icon-large-shapes",
- "url": "jsp/rzx/dataStatistics/kaoqindataStatistics.jsp"
- }]
- },
- {
- "menuid": "56",
- "icon": "icon-more",
- "menuname": "系统管理",
- "menus": [{
- "menuid": "143",
- "menuname": "站点信息查看",
- "icon": "icon-more",
- "url": "jsp/rzx/systemMan/checkStationInfofilling.jsp"
- },
- {
- "menuid": "153",
- "menuname": "充装设备信息",
- "icon": "icon-tip",
- "url": "jsp/rzx/systemMan/fillingMachineInfo.jsp"
- },
- {
- "menuid": "153",
- "menuname": "工作人员信息",
- "icon": "icon-tip",
- "url": "jsp/rzx/systemMan/workPersonInfofilling.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 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;
- }
- 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';
- }
- });
- })
- });
-
-
- </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-bg.gif) #7f99be 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="#" id="loginOut">安全退出</a></span>
- <span style="padding-left:10px; font-size: 16px; "><img src="images/rzx/blocks.gif" width="20" height="20" align="absmiddle" />气瓶电子标签动态监管集成系统-<%=place %> 充装站管理</span>
- </div>
- <div region="south" split="true" style="height: 30px; background: #D2E0F2; ">
- <div class="footer">By 四川润智兴科技有限公司 版权所有</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><h1 style="font-size:24px;">* CNG气瓶电子标签动态监管集成系统-<%=place %> 充装站管理</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"/>
- </body>
- </html>
|