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