index.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <!-- 避免IE使用兼容模式 -->
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
  7. <meta name="renderer" content="webkit">
  8. <title id="browserTitle">JWMS-Control center system</title>
  9. <!-- 浏览器标签图片 -->
  10. <link rel="shortcut icon" href="./topjui/image/favicon.ico"/>
  11. <!-- TopJUI框架样式 -->
  12. <!-- <link type="text/css" href="./topjui/css/topjui.core.min.css" rel="stylesheet"> -->
  13. <link type="text/css" href="/ui/topjui/css/topjui.core.css?v=8" rel="stylesheet">
  14. <link type="text/css" href="./topjui/themes/default/topjui.green.css" rel="stylesheet" id="dynamicTheme"/>
  15. <!-- FontAwesome字体图标 -->
  16. <link type="text/css" href="./static/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
  17. <!-- jQuery相关引用 -->
  18. <script type="text/javascript" src="./static/plugins/jquery/jquery.min.js"></script>
  19. <script type="text/javascript" src="./static/plugins/jquery/jquery.cookie.js"></script>
  20. <!-- TopJUI框架配置 -->
  21. <script type="text/javascript" src="./static/public/js/topjui.config.js?v=1"></script>
  22. <!-- TopJUI框架核心 -->
  23. <script type="text/javascript" src="./topjui/js/topjui.core.min.js"></script>
  24. <!-- TopJUI中文支持 -->
  25. <script type="text/javascript" src="./topjui/js/locale/topjui.lang.zh_CN.js"></script>
  26. <!-- 首页js -->
  27. <script type="text/javascript" src="./static/public/js/topjui.index.js?v=6" charset="utf-8"></script>
  28. </head>
  29. <body>
  30. <div id="loading" class="loading-wrap">
  31. <div class="loading-content">
  32. <div class="loading-round"></div>
  33. <div class="loading-dot"></div>
  34. </div>
  35. </div>
  36. <div id="mm" class="submenubutton" style="width: 140px;">
  37. <div id="mm-tabclose" name="6" iconCls="fa fa-refresh">刷新</div>
  38. <div class="menu-sep"></div>
  39. <div id="Div1" name="1" iconCls="fa fa-close">关闭</div>
  40. <div id="mm-tabcloseother" name="3">关闭其他</div>
  41. <div id="mm-tabcloseall" name="2">关闭全部</div>
  42. <div class="menu-sep"></div>
  43. <div id="mm-tabcloseright" name="4">关闭右侧标签</div>
  44. <div id="mm-tabcloseleft" name="5">关闭左侧标签</div>
  45. </div>
  46. <style type="text/css">
  47. /* right */
  48. .top_right {
  49. /*width: 748px;*/
  50. }
  51. /* top_link */
  52. .top_link {padding-top: 24px;height: 26px;line-height: 26px;padding-right: 35px;text-align: right;}
  53. .top_link i {color: #686868;}
  54. .top_link span, .top_link a {color: #46AAFE;}
  55. .top_link a {font-size: 13px;}
  56. .top_link a:hover {text-decoration: underline;}
  57. .nav_bar {position: relative;z-index: 999;color: #333;margin-right: 10px;height: 50px;line-height: 50px;}
  58. .nav_bar ul {padding: 0;}
  59. .nav {position: relative;margin: 0 auto;font-family: "Microsoft YaHei", SimSun, SimHei;font-size: 14px;}
  60. .nav a {color: #333;}
  61. .nav h3 {font-size: 100%;font-weight: normal;height: 50px;line-height: 50px;}
  62. .nav h3 a {display: block;padding: 0 20px;text-align: center;font-size: 14px;color: #fff;height: 50px;line-height: 50px;}
  63. .nav .m {float: left;position: relative;z-index: 1;height: 50px;line-height: 50px;list-style: none;}
  64. .nav .s {float: left;width: 3px;text-align: center;color: #D4D4D4;font-size: 12px;height: 50px;line-height: 50px;list-style: none;}
  65. .nav .sub, ul.sub {display: none;position: absolute;left: -3px;top: 42px;z-index: 999;width: 128px;border: 1px solid #E6E4E3;border-top: 0;background: #fff;}
  66. .nav .sub li {text-align: center;padding: 0 8px;margin-bottom: -1px;list-style: none;}
  67. .nav .sub li a {display: block;border-bottom: 1px solid #E6E4E3;padding: 8px 0;height: 28px;line-height: 28px;color: #666;}
  68. .nav .sub li a:hover {color: #1E95FB;cursor: pointer;}
  69. .nav .block {height: 3px;background: #1E95FB;position: absolute;left: 0;top: 47px;overflow: hidden;}
  70. .sub {padding: 0;background: #f5f5f5;}
  71. .sub li {padding: 0 8px;list-style: none;}
  72. .sub li:hover {background: #f3f3f3;}
  73. .sub li a {display: block;color: #000;height: 34px;line-height: 34px;}
  74. .sub li a:hover {text-decoration-line: none;}
  75. /* 重用类样式 */
  76. .f_l {float: left !important;}
  77. .f_r {float: right !important;}
  78. .no_margin {margin: 0px !important;}
  79. .no_border {border: 0px !important;}
  80. .no_bg {background: none !important;}
  81. .clear_both {clear: both !important;}
  82. .display_block {display: block !important;}
  83. .text_over {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;-o-text-overflow: ellipsis;-moz-binding: url('ellipsis.xml#ellipsis');}
  84. /* 重用自定义样式 */
  85. .w_100 {width: 100%;}
  86. .w_95 {width: 95%;}
  87. .indextx {width: 980px;margin: 0 auto;margin-top: 10px;background: #FFFFFF;}
  88. .w_min_width {min-width: 1200px;}
  89. .w_1200 {width: 1200px;}
  90. .w_1067 {width: 1067px;}
  91. .w_980 {width: 980px;}
  92. .header {overflow: hidden}
  93. </style>
  94. <script>
  95. $(function () {
  96. $('#ulMenu>li').hover(
  97. function () {
  98. var m = $(this).data('menu');
  99. if (!m) {
  100. m = $(this).find('ul').clone();
  101. m.appendTo(document.body);
  102. $(this).data('menu', m);
  103. var of = $(this).offset();
  104. m.css({left: of.left, top: of.top + this.offsetHeight});
  105. m.hover(function () {
  106. clearTimeout(m.timer);
  107. }, function () {
  108. m.hide()
  109. });
  110. }
  111. m.show();
  112. }, function () {
  113. var m = $(this).data('menu');
  114. if (m) {
  115. m.timer = setTimeout(function () {
  116. m.hide();
  117. }, 100);//延时隐藏,时间自定义,100ms
  118. }
  119. }
  120. );
  121. });
  122. </script>
  123. <div data-toggle="topjui-layout" data-options="id:'index_layout',fit:true">
  124. <!-- 顶部菜单 -->
  125. <div id="north" class="banner" data-options="region:'north',border:false,split:false" style="height: 50px; padding:0;margin:0; overflow: hidden;">
  126. <!-- 顶部菜单左侧 -->
  127. <table style="float:left;border-spacing:0px;">
  128. <tr>
  129. <td class="webname" style="padding-left: 0px;width:200px;">
  130. <!--<span class="fa fa-envira" style="font-size:26px; padding-right:8px;"></span>JWMS-控制中心 -->
  131. <div style="height: 50px;width:200px;overflow: hidden;" id="logoDiv">
  132. <img id="logoImgUrl" src="/ui/static/images/jwms_logo.png">
  133. </div>
  134. </td>
  135. <td class="collapseMenu" style="text-align: center;cursor: pointer;">
  136. <span class="fa fa-chevron-circle-left" style="font-size: 18px;"></span>
  137. </td>
  138. <td>
  139. <table id="topmenucontent" cellpadding="0" cellspacing="0">
  140. <td id="1" class="topmenu systemName">
  141. <a class="l-btn-text bannerMenu" href="javascript:void(0)">
  142. <p>
  143. <lable class="fa fa-flag"></lable>
  144. </p>
  145. <p><span style="white-space:nowrap;">菜单</span></p>
  146. </a>
  147. </td>
  148. </table>
  149. </td>
  150. </tr>
  151. </table>
  152. <!-- 顶部菜单右侧 -->
  153. <div class="top_right f_r">
  154. <!-- menu -->
  155. <div class="nav_bar">
  156. <ul class="nav clearfix" id="ulMenu">
  157. <!-- <li class="m"> -->
  158. <!-- <h3> -->
  159. <!-- <a title="切换主题" id="setThemes" class="l-btn-text bannerbtn" href="javascript:void(0)">主题</a> -->
  160. <!-- </h3> -->
  161. <!-- </li> -->
  162. <!-- <li class="s">|</li> -->
  163. <!-- <li class="m"> -->
  164. <!-- <h3> -->
  165. <!-- <a class="l-btn-text bannerbtn" href="javascript:void(0)"><i class="fa fa-cog"></i></a> -->
  166. <!-- </h3> -->
  167. <!-- <ul class="sub"> -->
  168. <!-- <li><a class="fa fa-user" href="" target="_blank">系统设置</a></li> -->
  169. <!-- <li><a class="fa fa-android" href="javascript:downloadApp()">手持终端</a></li> -->
  170. <!-- </ul> -->
  171. <!-- </li> -->
  172. <!-- <li class="s">|</li> -->
  173. <li class="m">
  174. <h3>
  175. <a class="l-btn-text bannerbtn" href="javascript:void(0)"><i class="fa fa-arrow-circle-right"></i> 登录</a>
  176. </h3>
  177. <ul class="sub">
  178. <li><a class="fa fa-arrow-circle-right" href="/operate/login.html" target="_blank">作业系统</a></li>
  179. <li><a class="fa fa-arrow-circle-right" href="/client/login.html" target="_blank">货主系统</a></li>
  180. </ul>
  181. </li>
  182. <li class="m">
  183. <h3>
  184. <a id="showUserInfo" style="display:inline-block;" class="fa bannerbtn"href="javascript:void(0)">
  185. <img src="./topjui/image/avatar.jpg" class="user-image" alt="User Image">
  186. <span class="user-name" id="CURRENT_USER_CODE">hello</span>
  187. </a>
  188. </h3>
  189. <ul class="sub">
  190. <li><a class="fa fa-info-circle" href="javascript:personal(0)"> 个人信息</a></li>
  191. <li><a class="fa fa-key" href="javascript:modifyPwd(0)">修改密码</a></li>
  192. <li><a class="fa fa-power-off" href="javascript:logout()"> 退出系统</a></li>
  193. </ul>
  194. </li>
  195. <li class="block"></li><!-- 滑动块 -->
  196. </ul>
  197. </div>
  198. <!-- menu | end -->
  199. </div>
  200. </div>
  201. <!-- 顶部菜单结束 -->
  202. <!-- 左侧菜单开始 -->
  203. <div id="west" data-options="region:'west',split:true,width:200,border:false,headerCls:'border_right',bodyCls:'border_right'" title="" iconCls="fa fa-dashboard">
  204. <div id="RightAccordion"></div>
  205. <div id="menuTab" class="easyui-tabs" data-options="fit:true,border:false">
  206. <div title="导航菜单" data-options="iconCls:'fa fa-sitemap'" style="padding:0;">
  207. <div id="RightAccordion" class="easyui-accordion"></div>
  208. </div>
  209. <div title="常用链接" data-options="iconCls:'fa fa-star',closable:true">
  210. <ul id="channgyongLink">
  211. </ul>
  212. </div>
  213. </div>
  214. </div>
  215. <!-- 左侧菜单结束-->
  216. <!-- 中间内容体 -->
  217. <div id="center" data-options="region:'center',border:false" style="overflow:hidden;">
  218. <!-- 默认打开的首页 -->
  219. <div id="index_tabs" style="width:100%;height:100%">
  220. <div title="系统首页"
  221. iconCls="fa fa-home"
  222. data-options="border:true,content:'<iframe src=\'./views/index/index.html\' scrolling=\'auto\' frameborder=\'0\' style=\'width:100%;height:100%;\'></iframe>'">
  223. </div>
  224. </div>
  225. </div>
  226. <!-- 底部 -->
  227. <div data-options="region:'south',border:true" style="text-align:center;height:30px;line-height:30px;border-bottom:0;overflow:hidden;">
  228. <input type="hidden" id="userNameId" name="userNameId" value="${userNameId}"/>
  229. <span style="float:left;padding-left:5px;width:15%;text-align: left;">
  230. 当前用户:<span id="CURRENT_USER_NAME"></span>
  231. </span>
  232. <span style="float:left;padding-right:5px;width:20%;text-align: right;" id="currentDate"></span>
  233. <span style="padding-right:5px;width:40%" id="bottomText">
  234. 版权所有 © 2017-2118<a href="#" target="_blank">JWMS</a>
  235. </span>
  236. <span style="float:right;padding-right:5px;width:25%;text-align: right;"></span>
  237. </div>
  238. </div>
  239. <!--[if lte IE 8]>
  240. <div id="ie6-warning">
  241. <p>您正在使用低版本浏览器,在本页面可能会导致部分功能无法使用,建议您升级到
  242. <a href="http://www.microsoft.com/china/windows/internet-explorer/" target="_blank">IE9或以上版本的浏览器</a>
  243. 或使用<a href="http://se.360.cn/" target="_blank">360安全浏览器</a>的极速模式浏览
  244. </p>
  245. </div>
  246. <![endif]-->
  247. <!-- 风格设置 -->
  248. <div id="themeStyle" data-options="iconCls:'fa fa-tree'" style="width:600px;height:340px">
  249. <table style="width:100%; padding:20px; line-height:30px;text-align:center;">
  250. <tr>
  251. <td>
  252. <div class="skin-common skin-black"></div>
  253. <input type="radio" name="themes" value="black" class="topjuiTheme"/>
  254. </td>
  255. <td>
  256. <div class="skin-common skin-red"></div>
  257. <input type="radio" name="themes" value="red" class="topjuiTheme"/>
  258. </td>
  259. <td>
  260. <div class="skin-common skin-green"></div>
  261. <input type="radio" name="themes" value="green" class="topjuiTheme"/>
  262. </td>
  263. <td>
  264. <div class="skin-common skin-purple"></div>
  265. <input type="radio" name="themes" value="purple" class="topjuiTheme"/>
  266. </td>
  267. <td>
  268. <div class="skin-common skin-blue"></div>
  269. <input type="radio" name="themes" value="blue" class="topjuiTheme"/>
  270. </td>
  271. <td>
  272. <div class="skin-common skin-yellow"></div>
  273. <input type="radio" name="themes" value="yellow" class="topjuiTheme"/>
  274. </td>
  275. </tr>
  276. <tr>
  277. <td>
  278. <div class="skin-common skin-blacklight"></div>
  279. <input type="radio" name="themes" value="blacklight" class="topjuiTheme"/>
  280. </td>
  281. <td>
  282. <div class="skin-common skin-redlight"></div>
  283. <input type="radio" name="themes" value="redlight" class="topjuiTheme"/>
  284. </td>
  285. <td>
  286. <div class="skin-common skin-greenlight"></div>
  287. <input type="radio" name="themes" value="greenlight" class="topjuiTheme"/>
  288. </td>
  289. <td>
  290. <div class="skin-common skin-purplelight"></div>
  291. <input type="radio" name="themes" value="purplelight" class="topjuiTheme"/>
  292. </td>
  293. <td>
  294. <div class="skin-common skin-bluelight"></div>
  295. <input type="radio" name="themes" value="bluelight" class="topjuiTheme"/>
  296. </td>
  297. <td>
  298. <div class="skin-common skin-yellowlight"></div>
  299. <input type="radio" name="themes" value="yellowlight" class="topjuiTheme"/>
  300. </td>
  301. </tr>
  302. </table>
  303. <table style="width: 100%; padding: 20px; line-height: 30px; text-align: center;">
  304. <tr>
  305. <td>
  306. <input type="radio" name="menustyle" value="accordion" checked="checked"/>手风琴
  307. <td>
  308. <input type="radio" name="menustyle" value="tree"/>树形
  309. </td>
  310. <td>
  311. <input type="checkbox" checked="checked" name="topmenu" value="topmenu"/>开启顶部菜单
  312. </td>
  313. </tr>
  314. </table>
  315. </div>
  316. <form id="personalDialog"></form>
  317. <form id="pwdDialog"></form>
  318. <form id="downloadApp"></form>
  319. <script type="text/javascript">
  320. $(function () {
  321. setWebsiteConfig();
  322. writeCurrentDate();
  323. });
  324. function setWebsiteConfig(){
  325. $.post('/base/websiteConfig/get',function (result) {
  326. if(result.code == 0){
  327. var config = result.data;
  328. var loginTitle = config.loginTitle;
  329. var browserTitle = config.browserTitle;
  330. var logoImgUrl = config.logoImgUrl;
  331. var bottomText = config.bottomText;
  332. var remark = config.remark;
  333. //登录页标题
  334. if(loginTitle!=null && loginTitle!=''){
  335. $("#loginTitle").text(loginTitle);
  336. }
  337. //浏览器标题
  338. if(browserTitle!=null && browserTitle!=''){
  339. $("#browserTitle").text(browserTitle);
  340. }
  341. //底部声明
  342. if(bottomText !=null && bottomText!=''){
  343. $("#bottomText").text(bottomText);
  344. }
  345. //logo
  346. if(logoImgUrl !=null && logoImgUrl !=''){
  347. $("#logoImgUrl").attr('src',logoImgUrl);
  348. }
  349. }
  350. },'json');
  351. }
  352. function writeCurrentDate() {
  353. var now = new Date();
  354. var year = now.getFullYear(); //得到年份
  355. var month = now.getMonth();//得到月份
  356. var date = now.getDate();//得到日期
  357. var day = now.getDay();//得到周几
  358. var hour = now.getHours();//得到小时
  359. var minu = now.getMinutes();//得到分钟
  360. var sec = now.getSeconds();//得到秒
  361. var MS = now.getMilliseconds();//获取毫秒
  362. var week;
  363. month = month + 1;
  364. if (month < 10) month = "0" + month;
  365. if (date < 10) date = "0" + date;
  366. if (hour < 10) hour = "0" + hour;
  367. if (minu < 10) minu = "0" + minu;
  368. if (sec < 10) sec = "0" + sec;
  369. if (MS < 100) MS = "0" + MS;
  370. var arr_week = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
  371. week = arr_week[day];
  372. var time = "";
  373. time = year + "年" + month + "月" + date + "日" + " " + hour + ":" + minu + ":" + sec + " " + week;
  374. //当前日期赋值给当前日期输入框中(jQuery easyUI)
  375. $("#currentDate").html(time);
  376. //设置得到当前日期的函数的执行间隔时间,每1000毫秒刷新一次。
  377. var timer = setTimeout("writeCurrentDate()", 1000);
  378. }
  379. </script>
  380. </body>
  381. </html>