bgman.jsp 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ page import="com.runzhixing.constant.Constant"%>
  3. <%@ page import="com.runzhixing.bean.User"%>
  4. <%@ page import="com.runzhixing.bean.Announcement"%>
  5. <%@ page import="java.util.List"%>
  6. <%@ page import="com.runzhixing.packageProcedure.InformationAnnouncementProcedure"%>
  7. <%@ page import="com.runzhixing.filter.MyFilter"%>
  8. <%
  9. User uu = (User) session.getAttribute(Constant.userMark);
  10. String s = uu.getPrivilegeCode();
  11. if (s.length() > 6) {
  12. s = s.substring(0, 6);
  13. }
  14. s = s.replaceAll("(00)*$", "");//// 一直过滤到最高行政地域(删去尾部的 00 )
  15. String path = request.getContextPath();
  16. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  17. String username = (String) session.getAttribute("username");
  18. String place = (String) session.getAttribute("place");
  19. String place1 = place;
  20. if (place != null && !place.trim().equals("")) {
  21. String end = place
  22. .substring(place.length() - 1, place.length());
  23. if (end.equals("市") || end.equals("县"))
  24. place = place.substring(0, place.length() - 1);
  25. //if (place.equals("四川省")) {
  26. // place1 += "市场监督管理局";
  27. //} else {
  28. // place1 += "质量技术监督局";
  29. //}
  30. if(s.equals("64")){
  31. place1 += "市场监督管理厅";
  32. }else{
  33. place1 += "市场监督管理局";
  34. }
  35. }
  36. List<Announcement> list = new InformationAnnouncementProcedure()
  37. .areatedmachinerunningstate1(5000, 1, -1, s, s, null, null,
  38. null, 0);
  39. int id = -1;
  40. String title = "";
  41. String anTime = "";
  42. if (list.size() > 0) {
  43. for (Announcement an : list) {
  44. if (an.getId() > id) {
  45. id = an.getId();
  46. title = an.getTitle();
  47. anTime = an.getPublishTime1();
  48. }
  49. }
  50. }
  51. //查询各部门有效期
  52. List<Announcement> list1 = new ArrayList<Announcement>();
  53. String PrivilegeCode = (String)request.getSession().getAttribute("PrivilegeCode");
  54. if(PrivilegeCode!=null&&!PrivilegeCode.trim().equals("")){
  55. if(PrivilegeCode.length()>=4&&PrivilegeCode.substring(0,4).equals("1502")){//包头市
  56. list1 = new InformationAnnouncementProcedure()
  57. .checkValidity((String)request.getSession().getAttribute("PrivilegeCode"),(String)request.getSession().getAttribute("sOperatorNo"),s,Integer.parseInt((String)session.getAttribute(Constant.moudel)));
  58. }
  59. }
  60. String validity="";
  61. if (list1.size() > 0) {
  62. Announcement an = new Announcement();
  63. an=list1.get(0);
  64. if(an.getL()>0){
  65. validity+="<span style='color: yellow;'>证书快过期!";
  66. }else{
  67. validity+="<span style='color: red;'>证书已过期!";
  68. }
  69. validity+= "<br/>站点编号:"+an.getStationNo()+" <br/>站点名:"+an.getStationName()+" <br/>有效期:"+an.getValidity()+" <br/>联系人:"+an.getManager()+" <br/>电话:"+an.getPhone();
  70. validity+="</span>";
  71. }
  72. if (list1.size() > 1) {
  73. validity+="<br/><a href='CheckValidity' target='_blank'>还有"+(list1.size()-1)+"条过期信息,点击查询&gt;&gt;</a>";
  74. }
  75. %>
  76. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html xmlns="http://www.w3.org/1999/xhtml">
  77. <head id="Head1">
  78. <title><%=MyFilter.man_prefix %></title>
  79. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  80. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  81. <meta http-equiv="X-UA-Compatible" content="IE=10"/>
  82. <link href="css/default.css" rel="stylesheet" type="text/css" />
  83. <link rel="stylesheet" type="text/css" href="css/easyui/themes/default/easyui.css">
  84. <link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
  85. <link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
  86. <script type="text/javascript" src="css/easyui/jquery.min.js"></script>
  87. <script type="text/javascript" src="css/easyui/jquery.easyui.min.js"></script>
  88. <script type="text/javascript" src="js/easyui/XiuCai.index.js"> </script>
  89. <style type="text/css">
  90. .hzb a:HOVER{
  91. color: red;
  92. text-decoration: underline;
  93. }
  94. .hzb a{
  95. color: #f08300;
  96. text-decoration: underline;
  97. }
  98. </style>
  99. <script type="text/javascript">
  100. var info_publish = '<%=MyFilter.info_publish %>';
  101. $(document).ready(function(){
  102. var newAnnTitle = document.getElementById("newAnnTitle").value;
  103. var newAnnID = document.getElementById("newAnnID").value;
  104. var newAnnTIME = document.getElementById("newAnnTIME").value;
  105. if(info_publish=="0"){}else{
  106. if(!newAnnID){
  107. show1("暂时没有公告!");
  108. }else{
  109. if(newAnnID=="-1"){
  110. show1("暂时没有公告!");
  111. }else{
  112. if(!newAnnTitle){
  113. show1("有新公告,标题:"+'<span class="hzb"><a href="Detailbyid?hiddenID='+newAnnID+'" target="_blank">'+无标题+'('+newAnnTIME+')'+'</span></a>');
  114. }else{
  115. show1("有新公告,标题:"+'<span class="hzb"><a href="Detailbyid?hiddenID='+newAnnID+'" target="_blank">'+newAnnTitle+'('+newAnnTIME+')'+'</span></a>');
  116. }
  117. }
  118. }
  119. }
  120. var validity = document.getElementById("validity").value;
  121. if(validity){
  122. $.messager.show({
  123. title: '证书信息提示',
  124. msg: validity,
  125. timeout: 0,
  126. showType: 'slide' ,
  127. width:400,
  128. height:200
  129. });
  130. }
  131. });
  132. var _menus;
  133. if(info_publish=="0"){
  134. _menus = {
  135. "menus": [
  136. {
  137. "menuid": "1",
  138. "icon": "icon-tip",
  139. "menuname": "系统日志查看",
  140. "menus": [{
  141. "menuid": "121",
  142. "menuname": "查看网络情况",
  143. "icon": "icon-filter",
  144. "url": "jsp/rzx/log/Networksituation.jsp"
  145. },{
  146. "menuid": "122",
  147. "menuname": "系统告警日志",
  148. "icon": "icon-save",
  149. "url": "ajax/AdvanceSystemwarninglog"
  150. }]
  151. },
  152. {
  153. "menuid": "56",
  154. "icon": "icon-edit",
  155. "menuname": "系统设置",
  156. "menus": [{
  157. "menuid": "31",
  158. "menuname": "报警参数设置",
  159. "icon": "icon-edit",
  160. "url": "jsp/rzx/systemSet/warningparaset.jsp"
  161. }]
  162. },
  163. {
  164. "menuid": "56",
  165. "icon": "icon-more",
  166. "menuname": "系统管理",
  167. "menus": [{
  168. "menuid": "143",
  169. "menuname": "监察人员管理",
  170. "icon": "icon-more",
  171. "url": "jsp/rzx/systemMan/Supervisormanagement.jsp"
  172. },
  173. {
  174. "menuid": "153",
  175. "menuname": "场所管理",
  176. "icon": "icon-tip",
  177. "url": "jsp/rzx/systemMan/Placemanagement.jsp"
  178. }
  179. ]
  180. },
  181. {
  182. "menuid": "56",
  183. "icon": "icon-large-smartart",
  184. "menuname": "充装情况",
  185. "menus": [{
  186. "menuid": "144",
  187. "menuname": "动态视图",
  188. "icon": "icon-large-chart",
  189. "url": "jsp/rzx/filling/Dynamicattempt1.jsp"
  190. },
  191. {
  192. "menuid": "154",
  193. "menuname": "加气机运行状态",
  194. "icon": "icon-large-smartart",
  195. "url": "jsp/rzx/filling/Aeratedmachinerunningstate.jsp"
  196. }]
  197. },
  198. {
  199. "menuid": "56",
  200. "icon": "icon-search",
  201. "menuname": "数据查询",
  202. "menus": [{
  203. "menuid": "145",
  204. "menuname": "人员巡查情况",
  205. "icon": "icon-search",
  206. "url": "jsp/rzx/dataQuery/PersonnelInspection21.jsp"
  207. },
  208. {
  209. "menuid": "155",
  210. "menuname": "巡查数据查询",
  211. "icon": "icon-search",
  212. "url": "jsp/rzx/dataQuery/InspectiondataQuery.jsp"
  213. },
  214. {
  215. "menuid": "165",
  216. "menuname": "气瓶数据查询",
  217. "icon": "icon-search",
  218. "url": "jsp/rzx/dataQuery/CylinderdataQuery1.jsp?clear=1"
  219. },
  220. {
  221. "menuid": "175",
  222. "menuname": "改装数据查询",
  223. "icon": "icon-search",
  224. "url": "jsp/rzx/dataQuery/ModifieddataQuery.jsp"
  225. },
  226. {
  227. "menuid": "185",
  228. "menuname": "充装数据查询",
  229. "icon": "icon-search",
  230. "url": "jsp/rzx/dataQuery/FillingdataQuery.jsp"
  231. },
  232. <% if(MyFilter.chgStart){ %>
  233. {
  234. "menuid": "185",
  235. "menuname": "氢气充装查询",
  236. "icon": "icon-search",
  237. "url": "jsp/rzx/dataQuery/HcngFillingdataQuery.jsp"
  238. },
  239. <% } %>
  240. {
  241. "menuid": "195",
  242. "menuname": "检验数据查询",
  243. "icon": "icon-search",
  244. "url": "jsp/rzx/dataQuery/TestingdataQuery.jsp"
  245. },{
  246. "menuid": "165",
  247. "menuname": "监检数据查询",
  248. "icon": "icon-search",
  249. "url": "jsp/rzx/dataQuery/checkSeeQuery.jsp"
  250. },
  251. {
  252. "menuid": "205",
  253. "menuname": "车辆数据查询",
  254. "icon": "icon-search",
  255. "url": "jsp/rzx/dataQuery/CarsdataQuery.jsp"
  256. },{
  257. "menuid": "165",
  258. "menuname": "外地车标签查询",
  259. "icon": "icon-search",
  260. "url": "jsp/rzx/dataQuery/NonlocalCarsUIDQuery.jsp"
  261. },{
  262. "menuid": "165",
  263. "menuname": "标签发放信息",
  264. "icon": "icon-search",
  265. "url": "jsp/rzx/dataQuery/tagIssuingInfobgman.jsp"
  266. },
  267. {
  268. "menuid": "155",
  269. "menuname": "黑名单查询",
  270. "icon": "icon-search",
  271. "url": "jsp/rzx/dataQuery/BlacklistQuery.jsp"
  272. },
  273. {
  274. "menuid": "155",
  275. "menuname": "介质质量查询",
  276. "icon": "icon-search",
  277. "url": "jsp/rzx/dataQuery/CNGQualityQuery.jsp"
  278. },
  279. {
  280. "menuid": "215",
  281. "menuname": "特种设备数据查询",
  282. "icon": "icon-search",
  283. "url": "jsp/rzx/dataQuery/SpecialequipmentdataQuery.jsp"
  284. }]
  285. },
  286. {
  287. "menuid": "56",
  288. "icon": "icon-large-chart",
  289. "menuname": "数据统计",
  290. "menus": [
  291. {
  292. "menuid": "145",
  293. "menuname": "报表统计",
  294. "icon": "icon-large-chart",
  295. "url": "jsp/rzx/dataStatistics/reportForm.jsp"
  296. },
  297. {
  298. "menuid": "145",
  299. "menuname": "加气站/机统计",
  300. "icon": "icon-large-chart",
  301. "url": "jsp/rzx/dataStatistics1/stationStatistics.jsp"
  302. },
  303. {
  304. "menuid": "145",
  305. "menuname": "充装数据统计",
  306. "icon": "icon-large-chart",
  307. "url": "jsp/rzx/dataStatistics1/FillingdataStatistics.jsp"
  308. },
  309. {
  310. "menuid": "155",
  311. "menuname": "车辆数据统计",
  312. "icon": "icon-large-shapes",
  313. "url": "jsp/rzx/dataStatistics1/CarsdataStatistics.jsp"
  314. },
  315. {
  316. "menuid": "165",
  317. "menuname": "气瓶数据统计",
  318. "icon": "icon-large-smartart",
  319. "url": "jsp/rzx/dataStatistics1/CylinderdataStatistics.jsp"
  320. },{
  321. "menuid": "165",
  322. "menuname": "标签发放信息统计",
  323. "icon": "icon-search",
  324. "url": "jsp/rzx/dataStatistics1/tagIssuingInfoStatistics.jsp"
  325. },{
  326. "menuid": "165",
  327. "menuname": "车辆气瓶数量统计",
  328. "icon": "icon-search",
  329. "url": "jsp/rzx/dataStatistics1/carcyNumStatistics.jsp"
  330. }]
  331. }
  332. /* ,
  333. {
  334. "menuid": "55",
  335. "icon": "icon-more",
  336. "menuname": "网上办公",
  337. "menus": [{
  338. "menuid": "31",
  339. "menuname": "审核数据",
  340. "icon": "icon-examine",
  341. "url": "jsp/rzx/dataMan/examineInfo.jsp"
  342. },{
  343. "menuid": "31",
  344. "menuname": "录入数据",
  345. "icon": "icon-add",
  346. "url": "jsp/applyRegister1.jsp?method=1"
  347. }]
  348. } */
  349. ]
  350. };
  351. }else{
  352. _menus = {
  353. "menus": [
  354. {
  355. "menuid": "55",
  356. "icon": "icon-more",
  357. "menuname": "信息管理",
  358. "menus": [{
  359. "menuid": "31",
  360. "menuname": "公告信息查看",
  361. "icon": "icon-search",
  362. "url": "jsp/rzx/infoMan/CheckAnnouncementInfo.jsp"
  363. }
  364. ,{
  365. "menuid": "31",
  366. "menuname": "添加公告信息",
  367. "icon": "icon-add",
  368. "url": "jsp/rzx/infoMan/releaseAnnouncement.jsp"
  369. }
  370. ]
  371. },
  372. {
  373. "menuid": "1",
  374. "icon": "icon-tip",
  375. "menuname": "系统日志查看",
  376. "menus": [{
  377. "menuid": "121",
  378. "menuname": "查看网络情况",
  379. "icon": "icon-filter",
  380. "url": "jsp/rzx/log/Networksituation.jsp"
  381. },{
  382. "menuid": "122",
  383. "menuname": "系统告警日志",
  384. "icon": "icon-save",
  385. "url": "ajax/AdvanceSystemwarninglog"
  386. }]
  387. },
  388. {
  389. "menuid": "56",
  390. "icon": "icon-edit",
  391. "menuname": "系统设置",
  392. "menus": [{
  393. "menuid": "31",
  394. "menuname": "报警参数设置",
  395. "icon": "icon-edit",
  396. "url": "jsp/rzx/systemSet/warningparaset.jsp"
  397. }]
  398. },
  399. {
  400. "menuid": "56",
  401. "icon": "icon-more",
  402. "menuname": "系统管理",
  403. "menus": [{
  404. "menuid": "143",
  405. "menuname": "监察人员管理",
  406. "icon": "icon-more",
  407. "url": "jsp/rzx/systemMan/Supervisormanagement.jsp"
  408. },
  409. {
  410. "menuid": "153",
  411. "menuname": "场所管理",
  412. "icon": "icon-tip",
  413. "url": "jsp/rzx/systemMan/Placemanagement.jsp"
  414. }
  415. ]
  416. },
  417. {
  418. "menuid": "56",
  419. "icon": "icon-large-smartart",
  420. "menuname": "充装情况",
  421. "menus": [{
  422. "menuid": "144",
  423. "menuname": "动态视图",
  424. "icon": "icon-large-chart",
  425. "url": "jsp/rzx/filling/Dynamicattempt1.jsp"
  426. },
  427. {
  428. "menuid": "154",
  429. "menuname": "加气机运行状态",
  430. "icon": "icon-large-smartart",
  431. "url": "jsp/rzx/filling/Aeratedmachinerunningstate.jsp"
  432. }]
  433. },
  434. {
  435. "menuid": "56",
  436. "icon": "icon-search",
  437. "menuname": "数据查询",
  438. "menus": [{
  439. "menuid": "145",
  440. "menuname": "人员巡查情况",
  441. "icon": "icon-search",
  442. "url": "jsp/rzx/dataQuery/PersonnelInspection21.jsp"
  443. },
  444. {
  445. "menuid": "155",
  446. "menuname": "巡查数据查询",
  447. "icon": "icon-search",
  448. "url": "jsp/rzx/dataQuery/InspectiondataQuery.jsp"
  449. },
  450. {
  451. "menuid": "165",
  452. "menuname": "气瓶数据查询",
  453. "icon": "icon-search",
  454. "url": "jsp/rzx/dataQuery/CylinderdataQuery1.jsp?clear=1"
  455. },
  456. {
  457. "menuid": "175",
  458. "menuname": "改装数据查询",
  459. "icon": "icon-search",
  460. "url": "jsp/rzx/dataQuery/ModifieddataQuery.jsp"
  461. },
  462. {
  463. "menuid": "185",
  464. "menuname": "充装数据查询",
  465. "icon": "icon-search",
  466. "url": "jsp/rzx/dataQuery/FillingdataQuery.jsp"
  467. },
  468. <% if(MyFilter.chgStart){ %>
  469. {
  470. "menuid": "185",
  471. "menuname": "氢气充装查询",
  472. "icon": "icon-search",
  473. "url": "jsp/rzx/dataQuery/HcngFillingdataQuery.jsp"
  474. },
  475. <% } %>
  476. {
  477. "menuid": "195",
  478. "menuname": "检验数据查询",
  479. "icon": "icon-search",
  480. "url": "jsp/rzx/dataQuery/TestingdataQuery.jsp"
  481. },{
  482. "menuid": "165",
  483. "menuname": "监检数据查询",
  484. "icon": "icon-search",
  485. "url": "jsp/rzx/dataQuery/checkSeeQuery.jsp"
  486. },
  487. {
  488. "menuid": "205",
  489. "menuname": "车辆数据查询",
  490. "icon": "icon-search",
  491. "url": "jsp/rzx/dataQuery/CarsdataQuery.jsp"
  492. },{
  493. "menuid": "165",
  494. "menuname": "外地车标签查询",
  495. "icon": "icon-search",
  496. "url": "jsp/rzx/dataQuery/NonlocalCarsUIDQuery.jsp"
  497. },{
  498. "menuid": "165",
  499. "menuname": "标签发放信息",
  500. "icon": "icon-search",
  501. "url": "jsp/rzx/dataQuery/tagIssuingInfobgman.jsp"
  502. },
  503. {
  504. "menuid": "155",
  505. "menuname": "黑名单查询",
  506. "icon": "icon-search",
  507. "url": "jsp/rzx/dataQuery/BlacklistQuery.jsp"
  508. },
  509. {
  510. "menuid": "155",
  511. "menuname": "介质质量查询",
  512. "icon": "icon-search",
  513. "url": "jsp/rzx/dataQuery/CNGQualityQuery.jsp"
  514. },
  515. {
  516. "menuid": "215",
  517. "menuname": "特种设备数据查询",
  518. "icon": "icon-search",
  519. "url": "jsp/rzx/dataQuery/SpecialequipmentdataQuery.jsp"
  520. }]
  521. },
  522. {
  523. "menuid": "56",
  524. "icon": "icon-large-chart",
  525. "menuname": "数据统计",
  526. "menus": [
  527. {
  528. "menuid": "145",
  529. "menuname": "报表统计",
  530. "icon": "icon-large-chart",
  531. "url": "jsp/rzx/dataStatistics/reportForm.jsp"
  532. },
  533. {
  534. "menuid": "145",
  535. "menuname": "加气站/机统计",
  536. "icon": "icon-large-chart",
  537. "url": "jsp/rzx/dataStatistics1/stationStatistics.jsp"
  538. },
  539. {
  540. "menuid": "145",
  541. "menuname": "充装数据统计",
  542. "icon": "icon-large-chart",
  543. "url": "jsp/rzx/dataStatistics1/FillingdataStatistics.jsp"
  544. },
  545. {
  546. "menuid": "155",
  547. "menuname": "车辆数据统计",
  548. "icon": "icon-large-shapes",
  549. "url": "jsp/rzx/dataStatistics1/CarsdataStatistics.jsp"
  550. },
  551. {
  552. "menuid": "165",
  553. "menuname": "气瓶数据统计",
  554. "icon": "icon-large-smartart",
  555. "url": "jsp/rzx/dataStatistics1/CylinderdataStatistics.jsp"
  556. },{
  557. "menuid": "165",
  558. "menuname": "标签发放信息统计",
  559. "icon": "icon-search",
  560. "url": "jsp/rzx/dataStatistics1/tagIssuingInfoStatistics.jsp"
  561. },{
  562. "menuid": "165",
  563. "menuname": "车辆气瓶数量统计",
  564. "icon": "icon-search",
  565. "url": "jsp/rzx/dataStatistics1/carcyNumStatistics.jsp"
  566. }]
  567. }
  568. ]
  569. };
  570. }
  571. //设置登录窗口
  572. function openlogin() {
  573. $('#l').window({
  574. title: '登陆',
  575. width: 300,
  576. modal: true,
  577. shadow: true,
  578. closed: true,
  579. height: 160,
  580. resizable:false
  581. });
  582. }
  583. function openPwd() {
  584. $('#w').window({
  585. title: '修改密码',
  586. width: 300,
  587. modal: true,
  588. shadow: true,
  589. closed: true,
  590. height: 'auto',
  591. resizable:false
  592. });
  593. }
  594. //关闭修改密码窗口
  595. function closePwd() {
  596. $('#w').window('close');
  597. }
  598. //关闭登录窗口
  599. function closelogin() {
  600. $('#l').window('close');
  601. }
  602. //登陆
  603. function serverLogin() {
  604. var $name = $('#txtName');
  605. var $pass = $('#txtPass');
  606. if ($name.val() == '') {
  607. msgShow('系统提示', '请输入用户名!', 'warning');
  608. return false;
  609. }
  610. if ($pass.val() == '') {
  611. msgShow('系统提示', '请输入密码!', 'warning');
  612. return false;
  613. }
  614. $.post('ajax/ajax_login?name=' + $name.val()+'&pass='+$pass.val(), function(msg) {
  615. msgShow('系统提示', '恭喜,登陆成功!<br>欢迎您:' + msg, 'info');
  616. $name.val('');
  617. $pass.val('');
  618. $('#l').window('close');
  619. })
  620. }
  621. function checkPwd(pwd)
  622. {
  623. var regNumber = /\d+/; //验证0-9的任意数字最少出现1次。
  624. var regString = /[a-zA-Z]+/; //验证大小写26个字母任意字母最少出现1次。
  625. if (regNumber.test(pwd) && regString.test(pwd)) {
  626.     return true;
  627. }else{
  628.     return false;
  629. }
  630. }
  631. //修改密码
  632. function serverAlterpass() {
  633. var $oldpass = $('#txtOldPass').val().replace(/\s+/g,"");;
  634. var $newpass = $('#txtNewPass').val().replace(/\s+/g,"");;
  635. var $rePass = $('#txtRePass').val().replace(/\s+/g,"");;
  636. if ($oldpass == '') {
  637. msgShow('系统提示', '请输入旧密码!', 'warning');
  638. return false;
  639. }
  640. if ($newpass == '') {
  641. msgShow('系统提示', '请输入新密码!', 'warning');
  642. return false;
  643. }else if($newpass.length<8){
  644. msgShow('系统提示', '密码长度不能低于8位!且须包含数字和字母!!!', 'warning');
  645. return false;
  646. }
  647. if($newpass.match(/^.*[A-Z]+.*$/)==null){
  648. alert("密码必须包含数字和大小写字母!!!且长度不能低于8位");
  649. return false;
  650. }
  651. if($newpass.match(/^.*[a-z]+.*$/)==null){
  652. alert("密码必须包含数字和大小写字母!!!且长度不能低于8位");
  653. return false;
  654. }
  655. if($newpass.match(/^.*[0-9]+.*$/)==null){
  656. alert("密码必须包含数字和大小写字母!!!且长度不能低于8位");
  657. return false;
  658. }
  659. if ($rePass == '') {
  660. msgShow('系统提示', '请再一次输入新密码!', 'warning');
  661. return false;
  662. }
  663. if ($newpass != $rePass) {
  664. msgShow('系统提示', '两次密码不一至!请重新输入', 'warning');
  665. return false;
  666. }
  667. $.ajax({
  668. type:"POST",
  669. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  670. data:$('#alterpasswordform').serialize(),
  671. url:"ajax/alterpassword",
  672. success:function (data){
  673. var obj=eval("(" + data + ")");
  674. $.each(obj.rows, function(i,item){
  675. if(item.sresult=="0"){
  676. $('#txtOldPass').val('');
  677. $('#txtNewPass').val('');
  678. $('#txtRePass').val('');
  679. $('#w').window('close');
  680. // msgShow('系统提示', '恭喜,密码修改成功!<br>您的新密码为:' + item.pass, 'info');
  681. show("修改成功您的新密码为:"+item.pass.substring(0,1)+"********");
  682. }else if(item.sresult=="2"){
  683. show("修改错误");
  684. }else if(item.sresult=="3"){
  685. show("用户不存在");
  686. }else if(item.sresult=="4"){
  687. show("旧密码错误");
  688. }
  689. });
  690. }
  691. });
  692. }
  693. function show(message) {
  694. $.messager.show({
  695. title: '提示信息',
  696. msg: message,
  697. timeout: 2000,
  698. showType: 'slide'
  699. });
  700. }
  701. function show1(message) {
  702. $.messager.show({
  703. title: '提示信息',
  704. msg: message,
  705. timeout: 15000,
  706. showType: 'slide'
  707. });
  708. }
  709. $(function() {
  710. openlogin();
  711. openPwd();
  712. $('#login').click(function() {
  713. $('#l').window('open');
  714. });
  715. $('#btnlogin').click(function() {
  716. serverLogin();
  717. })
  718. $('#btnloginCancel').click(function(){closelogin();})
  719. $('#editpass').click(function() {
  720. $('#w').window('open');
  721. });
  722. $('#btnEp').click(function() {
  723. serverAlterpass();
  724. })
  725. $('#btnCancel').click(function(){closePwd();})
  726. $('#loginOut').click(function() {
  727. $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
  728. if (r) {
  729. window.location.href = 'jsp/login/loginre.jsp';
  730. }
  731. });
  732. })
  733. });
  734. function sExit(){
  735. $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
  736. if (r) {
  737. $.ajax({
  738. type:"POST",
  739. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  740. url:"safeExit",
  741. success:function (data){
  742. window.location.href = 'jsp/login/loginre.jsp';
  743. //IE6
  744. window.event.returnValue = false;
  745. }
  746. });
  747. }
  748. });
  749. }
  750. </script>
  751. </head>
  752. <body class="easyui-layout" style="overflow-y: hidden" fit="true" scroll="no">
  753. <noscript>
  754. <div style=" position:absolute; z-index:100000; height:2046px;top:0px;left:0px; width:100%; background:white; text-align:center;">
  755. <img src="images/noscript.gif" alt='抱歉,请开启脚本支持!' />
  756. </div></noscript>
  757. <div id="loading-mask" style="position:absolute;top:0px; left:0px; width:100%; height:100%; background:#D2E0F2; z-index:20000">
  758. <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;">
  759. <img src="images/loading.gif" align="absmiddle" /> 正在加载中,请稍候...</div>
  760. </div>
  761. <div region="north" split="true" border="false" style="overflow: hidden; height: 30px;
  762. background: url(images/rzx/layout-browser-hd-bg12.gif) #817865 repeat-x center 50%;
  763. line-height: 20px;color: #fff; font-family: Verdana, 微软雅黑,黑体">
  764. <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>
  765. <% if(MyFilter.placeStart){ %>
  766. <span style="padding-left:10px; font-size: 16px; "><img src="images/rzx/blocks.gif" width="20" height="20" align="absmiddle" /><%=MyFilter.man_prefix %>-<%=place1%></span>
  767. <% }else { %>
  768. <span style="padding-left:10px; font-size: 16px; "><img src="images/rzx/blocks.gif" width="20" height="20" align="absmiddle" /><%=MyFilter.man_prefix %></span>
  769. <% }%>
  770. <span style="padding-left:100px; font-size: 12px; ">
  771. <marquee scrollAmount=2 width="780px">
  772. <span style="font-size: 12px;">
  773. 为了确保系统安全,请使用包含数字、字母、大写字符等内容的密码,遇到系统不能正常登录,数据异常等情况,及时与客服联系!
  774. </span>
  775. </marquee>
  776. </span>
  777. </div>
  778. <div region="south" split="true" style="height: 30px; background: #D2E0F2; ">
  779. <div class="footer"> </div>
  780. </div>
  781. <div region="west" split="true" title="导航菜单" style="width:180px;" id="west">
  782. <div id="nav">
  783. <!-- 导航内容 -->
  784. </div>
  785. </div>
  786. <div id="mainPanle" region="center" style="background: #eee; overflow-y:hidden;" >
  787. <div id="tabs" class="easyui-tabs" fit="true" border="false" >
  788. <div title="欢迎使用" style="padding:20px;overflow:hidden; color:#f08300; " >
  789. <center>
  790. <% if(MyFilter.placeStart){ %>
  791. <h1 style="font-size:24px;">* <%=MyFilter.man_prefix %>-<%=place1%></h1>
  792. <% }else { %>
  793. <h1 style="font-size:24px;">* <%=MyFilter.man_prefix %></h1>
  794. <% }%>
  795. </center>
  796. </div>
  797. </div>
  798. </div>
  799. <!--修改密码窗口-->
  800. <div id="w" class="easyui-window" title="修改密码" collapsible="false" minimizable="false"
  801. maximizable="false" icon="icon-save" style="width: 300px; height: auto; padding: 5px;
  802. background: #fafafa;">
  803. <form id="alterpasswordform">
  804. <div fit="true" >
  805. <div region="center" border="false" style="padding: 0px; background: #fff; border: 1px solid #ccc;height: auto;">
  806. <table cellpadding=3>
  807. <tr>
  808. <td>旧密码:</td>
  809. <td><input id="txtOldPass" name="txtOldPass" type="Password" class="txt01" /></td>
  810. </tr>
  811. <tr>
  812. <td>新密码:</td>
  813. <td><input id="txtNewPass" name="txtNewPass" type="Password" class="txt01" /></td>
  814. </tr>
  815. <tr>
  816. <td>确认密码:</td>
  817. <td><input id="txtRePass" type="Password" name="txtRePass" class="txt01" /></td>
  818. </tr>
  819. </table>
  820. </div>
  821. <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
  822. <a id="btnEp" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" >
  823. 确定</a> <a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)">取消</a>
  824. </div>
  825. </div>
  826. </form>
  827. </div>
  828. <!--登陆窗口-->
  829. <div id="l" class="easyui-window" title="登陆窗口" collapsible="false" minimizable="false"
  830. maximizable="false" icon="icon-save" style="width: 300px; height: 150px; padding: 15px;
  831. background: #fafafa;">
  832. <div class="easyui-layout" fit="true">
  833. <div region="center" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
  834. <table cellpadding=3>
  835. <tr>
  836. <td>用户名:</td>
  837. <td><input id="txtName" type="text" class="txt01" /></td>
  838. </tr>
  839. <tr>
  840. <td>密码:</td>
  841. <td><input id="txtPass" type="Password" class="txt01" /></td>
  842. </tr>
  843. </table>
  844. </div>
  845. <div region="south" border="false" style="text-align: right; ">
  846. <a id="btnlogin" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" >
  847. 确定</a> <a id="btnloginCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)">取消</a>
  848. </div>
  849. </div>
  850. </div>
  851. <div id="mm" class="easyui-menu" style="width:150px;">
  852. <div id="tabupdate">刷新</div>
  853. <div class="menu-sep"></div>
  854. <div id="close">关闭</div>
  855. <div id="closeall">全部关闭</div>
  856. <div id="closeother">除此之外全部关闭</div>
  857. <div class="menu-sep"></div>
  858. <div id="closeright">当前页右侧全部关闭</div>
  859. <div id="closeleft">当前页左侧全部关闭</div>
  860. <div class="menu-sep"></div>
  861. <div id="exit">退出</div>
  862. </div>
  863. <input type="hidden" value="<%=title%>" name="newAnnTitle" id="newAnnTitle"/>
  864. <input type="hidden" value="<%=id%>" name="newAnnID" id="newAnnID"/>
  865. <input type="hidden" value="<%=anTime%>" name="newAnnTIME" id="newAnnTIME"/>
  866. <input type="hidden" value="<%=validity%>" name="validity" id="validity"/>
  867. </body>
  868. </html>