bgman_carauth.jsp 30 KB

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