bgman_carinputauth.jsp 30 KB

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