shortcut_main.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html >
  4. <html>
  5. <head>
  6. <title><t:mutiLang langKey="jeect.platform"/></title>
  7. <t:base type="jquery,easyui,tools,DatePicker,autocomplete"></t:base>
  8. <!-- add-start--Author:jg_renjie Date:20160315 for:配合首页改造,引入portal依赖的js及css文件 -->
  9. <script type="text/javascript" src="plug-in/easyui/portal/jquery.portal.js"></script>
  10. <link rel="stylesheet" type="text/css" href="plug-in/easyui/portal/portal.css">
  11. <!-- add-end--Author:jg_renjie Date:20160315 for:配合首页改造,引入portal依赖的js及css文件 -->
  12. <!--add-start--Author:wangkun Date:20160813 for:内部聊天修改-->
  13. <%@include file="/context/layui.jsp"%>
  14. <!--add-end--Author:wangkun Date:20160813 for:内部聊天修改-->
  15. <link rel="shortcut icon" href="images/favicon.ico">
  16. <style type="text/css">
  17. a {
  18. color: Black;
  19. text-decoration: none;
  20. }
  21. a:hover {
  22. color: black;
  23. text-decoration: none;
  24. }
  25. /*update-start--Author:zhangguoming Date:20140622 for:左侧树调整:加大宽度、更换节点图标、修改选中颜色*/
  26. .tree-node-selected{
  27. background: #eaf2ff;
  28. }
  29. /*update-end--Author:zhangguoming Date:20140622 for:左侧树调整:加大宽度、更换节点图标、修改选中颜色*/
  30. </style>
  31. <SCRIPT type="text/javascript">
  32. $(function() {
  33. $('#layout_jeecg_onlineDatagrid').datagrid({
  34. url : 'systemController.do?datagridOnline&field=ip,logindatetime,user.userName,',
  35. title : '',
  36. iconCls : '',
  37. fit : true,
  38. fitColumns : true,
  39. pagination : true,
  40. pageSize : 10,
  41. pageList : [ 10 ],
  42. nowarp : false,
  43. border : false,
  44. idField : 'id',
  45. sortName : 'logindatetime',
  46. sortOrder : 'desc',
  47. frozenColumns : [ [ {
  48. title : '<t:mutiLang langKey="common.code"/>',
  49. field : 'id',
  50. width : 150,
  51. hidden : true
  52. } ] ],
  53. columns : [ [ {
  54. title : '<t:mutiLang langKey="common.login.name"/>',
  55. field : 'user.userName',
  56. width : 130,
  57. align : 'center',
  58. sortable : true,
  59. formatter : function(value, rowData, rowIndex) {
  60. return formatString('<span title="{0}">{1}</span>', value, value);
  61. }
  62. }, {
  63. title : 'IP',
  64. field : 'ip',
  65. width : 150,
  66. align : 'center',
  67. sortable : true,
  68. formatter : function(value, rowData, rowIndex) {
  69. return formatString('<span title="{0}">{1}</span>', value, value);
  70. }
  71. }, {
  72. title : '<t:mutiLang langKey="common.login.time"/>',
  73. field : 'logindatetime',
  74. width : 150,
  75. sortable : true,
  76. formatter : function(value, rowData, rowIndex) {
  77. return formatString('<span title="{0}">{1}</span>', value, value);
  78. },
  79. hidden : true
  80. } ] ],
  81. onClickRow : function(rowIndex, rowData) {
  82. },
  83. onLoadSuccess : function(data) {
  84. $('#layout_jeecg_onlinePanel').panel('setTitle', '( ' + data.total + ' )' + ' <t:mutiLang langKey="lang.user.online"/>');
  85. }
  86. }).datagrid('getPager').pagination({
  87. showPageList : false,
  88. showRefresh : false,
  89. beforePageText : '',
  90. afterPageText : '/{pages}',
  91. displayMsg : ''
  92. });
  93. $('#layout_jeecg_onlinePanel').panel({
  94. tools : [ {
  95. iconCls : 'icon-reload',
  96. handler : function() {
  97. $('#layout_jeecg_onlineDatagrid').datagrid('load', {});
  98. }
  99. } ]
  100. });
  101. $('#layout_east_calendar').calendar({
  102. fit : true,
  103. current : new Date(),
  104. border : false,
  105. onSelect : function(date) {
  106. $(this).calendar('moveTo', new Date());
  107. }
  108. });
  109. $(".layout-expand").click(function(){
  110. $('#layout_east_calendar').css("width","auto");
  111. $('#layout_east_calendar').parent().css("width","auto");
  112. $("#layout_jeecg_onlinePanel").find(".datagrid-view").css("max-height","200px");
  113. $("#layout_jeecg_onlinePanel .datagrid-view .datagrid-view2 .datagrid-body").css("max-height","180px").css("overflow-y","auto");
  114. });
  115. });
  116. var onlineInterval;
  117. function easyPanelCollapase(){
  118. window.clearTimeout(onlineInterval);
  119. }
  120. function easyPanelExpand(){
  121. onlineInterval = window.setInterval(function() {
  122. $('#layout_jeecg_onlineDatagrid').datagrid('load', {});
  123. }, 1000 * 20);
  124. }
  125. function panelCollapase(){
  126. $(".easyui-layout").layout('collapse','north');
  127. }
  128. $(document).ready(function(){
  129. var url = "noticeController.do?getNoticeList";
  130. var roll = false;
  131. $.ajax({
  132. url:url,
  133. type:"GET",
  134. dataType:"JSON",
  135. async: false,
  136. success:function(data){
  137. if(data.success){
  138. var noticeList = data.attributes.noticeList;
  139. var noticehtml = "";
  140. if(noticeList.length > 0){
  141. noticehtml = noticehtml + "<marquee behavior='scroll'><a href='javascript:goNotice(1);'>";
  142. for(var i=0;i<noticeList.length;i++){
  143. noticehtml = noticehtml + noticeList[i].noticeTitle + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
  144. }
  145. noticehtml = noticehtml + "</a></marquee>";
  146. $("#notice").html(noticehtml);
  147. roll = true;
  148. $("#noticeTitle").show();
  149. $("#notice").show();
  150. }else{
  151. $("#noticeTitle").hide();
  152. $("#notice").hide();
  153. }
  154. }
  155. }
  156. });
  157. //update-begin--Author:zhoujf Date:20170309 for:TASK #975 【首页提醒】我的任务
  158. //加载待办任务
  159. var taskurl = "taskController.do?getTaskCount";
  160. $.ajax({
  161. url:taskurl,
  162. type:"GET",
  163. dataType:"JSON",
  164. async: false,
  165. success:function(data){
  166. if(data.success){
  167. var taskCount = data.obj;
  168. //加载待办任务条数
  169. if(taskCount>99){
  170. $("#taskCount").html("99+");
  171. }else{
  172. $("#taskCount").html(taskCount);
  173. }
  174. }
  175. }
  176. });
  177. //update-begin--Author:zhoujf Date:20170309 for:TASK #975 【首页提醒】我的任务
  178. });
  179. function goNotice(id){
  180. var addurl = "noticeController.do?noticeList";
  181. createdetailwindow("通知公告", addurl, 800, 400);
  182. }
  183. </SCRIPT>
  184. </head>
  185. <body class="easyui-layout" style="overflow-y: hidden" scroll="no">
  186. <!-- 顶部-->
  187. <div region="north" border="false" title="" style="BACKGROUND: #A8D7E9; height: 100px; padding: 1px; overflow: hidden;">
  188. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  189. <tr>
  190. <td align="left" style="vertical-align: text-bottom">
  191. <img src="plug-in/login/images/logo.jpg">
  192. <!--
  193. <img src="plug-in/login/images/toplogo.png" width="550" height="52" alt="">-->
  194. <div style="position: absolute; top: 75px; left: 33px;">JEECG Framework <span style="letter-spacing: -1px;"> <t:mutiLang langKey="system.version.number"/></span></div>
  195. </td>
  196. <td align="right" nowrap>
  197. <table border="0" cellpadding="0" cellspacing="0">
  198. <tr style="height: 25px;" align="right">
  199. <td style="" colspan="2">
  200. <div style="background: url(plug-in/login/images/top_bg.jpg) no-repeat right center; float: right;">
  201. <div style="float: left; line-height: 25px; margin-left: 70px;">
  202. <div style="float: left; line-height: 25px; margin-left: 70px;">
  203. <div id="noticeTitle" style="display:none;float:left;text-align:center;color: rgb(255, 255, 255);width: 40px; background: rgb(90, 166, 40);">公告</div>
  204. <div id="notice" style="display:none;float:left;width: 240px; background: rgb(0, 160, 160);margin-right: 20px; height: 25px;">
  205. </div>
  206. <span style="color: #386780"><img src="${webRoot}/plug-in/login/images/user.png"></span>
  207. <span style="color: #FFFFFF">${userName }</span>&nbsp;&nbsp;&nbsp;&nbsp;
  208. <!-- update-begain--Author: zhoujf Date:20170309 for: TASK #975 【首页提醒】我的任务 -->
  209. <span><img src="${webRoot}/plug-in/accordion/images/group_add.png"></span>
  210. <span style="color: #EE6B6B;cursor:pointer;" onclick="addOneTab('我的任务', 'taskController.do?goTaskListTab', 'default')">待办任务(<span id="taskCount">0</span>)</span>&nbsp;&nbsp;&nbsp;&nbsp;
  211. <!-- update-end--Author: zhoujf Date:20170309 for: TASK #975 【首页提醒】我的任务 -->
  212. <span style="color: #386780"><t:mutiLang langKey="current.org"/>:</span>
  213. <span style="color: #FFFFFF">${currentOrgName }</span>&nbsp;&nbsp;&nbsp;&nbsp;
  214. <span style="color: #386780"><t:mutiLang langKey="common.role"/>:</span>
  215. <span style="color: #FFFFFF">${roleName }</span>
  216. </div>
  217. <div style="float: left; margin-left: 18px;">
  218. <div style="right: 0px; bottom: 0px;">
  219. <a href="javascript:void(0);" class="easyui-menubutton" menu="#layout_north_kzmbMenu" iconCls="icon-comturn" style="color: #FFFFFF">
  220. <t:mutiLang langKey="common.control.panel"/>
  221. </a>&nbsp;&nbsp;
  222. <a href="javascript:void(0);" class="easyui-menubutton" menu="#layout_north_zxMenu" iconCls="icon-exit" style="color: #FFFFFF">
  223. <t:mutiLang langKey="common.logout"/>
  224. </a>
  225. </div>
  226. <div id="layout_north_kzmbMenu" style="width: 100px; display: none;">
  227. <div onclick="openwindow('<t:mutiLang langKey="common.profile"/>','userController.do?userinfo')">
  228. <t:mutiLang langKey="common.profile"/>
  229. </div>
  230. <div class="menu-sep"></div>
  231. <div onclick="add('<t:mutiLang langKey="common.change.password"/>','userController.do?changepassword','',550,200)">
  232. <t:mutiLang langKey="common.change.password"/>
  233. </div>
  234. <div class="menu-sep"></div>
  235. <div onclick="openwindow('<t:mutiLang langKey="common.ssms.getSysInfos"/>','tSSmsController.do?getSysInfos')">
  236. <t:mutiLang langKey="common.ssms.getSysInfos"/>
  237. </div>
  238. <div class="menu-sep"></div>
  239. <div onclick="add('<t:mutiLang langKey="common.change.style"/>','userController.do?changestyle','',550,200)">
  240. <t:mutiLang langKey="common.change.style"/>
  241. </div>
  242. <div onclick="window.open('http://yun.jeecg.org')">
  243. 云应用中心
  244. </div>
  245. <div onclick="clearLocalstorage()">
  246. <t:mutiLang langKey="common.clear.localstorage"/>
  247. </div>
  248. </div>
  249. <div id="layout_north_zxMenu" style="width: 100px; display: none;">
  250. <div onclick="exit('loginController.do?logout','<t:mutiLang langKey="common.exit.confirm"/>',1);">
  251. <t:mutiLang langKey="common.exit"/>
  252. </div>
  253. </div>
  254. </div>
  255. <%--update-begin--Author:JueYue Date:20140616 for:首页上方可以折叠--%>
  256. <div style="float: left; margin-left: 8px;margin-right: 5px; margin-top: 5px;">
  257. <img src="plug-in/easyui/themes/default/images/layout_button_up.gif"
  258. style="cursor:pointer" onclick="panelCollapase()" />
  259. </div>
  260. <%--update-end--Author:JueYue Date:20140616 for:首页上方可以折叠--%>
  261. </div>
  262. </td>
  263. </tr>
  264. <tr style="height: 80px;">
  265. <td colspan="2">
  266. <ul class="shortcut">
  267. <!-- 动态生成并赋值过来 -->
  268. </ul>
  269. </td>
  270. </tr>
  271. </table>
  272. </td>
  273. </tr>
  274. </table>
  275. </div>
  276. <!-- 左侧-->
  277. <div region="west" split="true" href="loginController.do?shortcut_top" title="<t:mutiLang langKey="common.navegation"/>" style="width: 200px; padding: 1px;"></div>
  278. <!-- 中间-->
  279. <div id="mainPanle" region="center" style="overflow: hidden;">
  280. <div id="maintabs" class="easyui-tabs" fit="true" border="false">
  281. <div class="easyui-tab" title="<t:mutiLang langKey="common.dash_board"/>" href="loginController.do?home" style="padding: 2px;"></div>
  282. <c:if test="${map=='1'}">
  283. <div class="easyui-tab" title="<t:mutiLang langKey="common.map"/>" style="padding: 1px; overflow: hidden;">
  284. <iframe name="myMap" id="myMap" scrolling="no" frameborder="0" src="mapController.do?map" style="width: 100%; height: 99.5%;"></iframe>
  285. </div>
  286. </c:if>
  287. </div>
  288. </div>
  289. <!-- 右侧 -->
  290. <div collapsed="true" region="east" iconCls="icon-reload" title="<t:mutiLang langKey="common.assist.tools"/>" split="true" style="width: 190px;"
  291. data-options="onCollapse:function(){easyPanelCollapase()},onExpand:function(){easyPanelExpand()}">
  292. <!--
  293. <div id="tabs" class="easyui-tabs" border="false" style="height: 240px">
  294. <div title='<t:mutiLang langKey="common.calendar"/>' style="padding: 0px; overflow: hidden; color: red;">
  295. <div id="layout_east_calendar"></div>
  296. </div>
  297. </div>
  298. <div id="layout_jeecg_onlinePanel" data-options="fit:true,border:false" title=<t:mutiLang langKey="common.online.user"/>>
  299. <table id="layout_jeecg_onlineDatagrid"></table>
  300. </div>
  301. -->
  302. <div class="easyui-layout" fit="true" border="false">
  303. <div region="north" border="false" style="height:180px;overflow: hidden;">
  304. <div id="tabs" class="easyui-tabs" border="false" style="height: 240px">
  305. <div title='<t:mutiLang langKey="common.calendar"/>' style="padding: 0px; overflow: hidden; color: red;">
  306. <div id="layout_east_calendar"></div>
  307. </div>
  308. </div>
  309. </div>
  310. <div region="center" border="false" style="overflow: hidden;">
  311. <div id="layout_jeecg_onlinePanel" fit="true" border="false" title='<t:mutiLang langKey="common.online.user"/>'>
  312. <table id="layout_jeecg_onlineDatagrid"></table>
  313. </div>
  314. </div>
  315. </div>
  316. </div>
  317. <!-- 底部 -->
  318. <div region="south" border="false" style="height: 25px; overflow: hidden;">
  319. <div align="center" style="color: #1fa3e5; padding-top: 2px">&copy;
  320. <t:mutiLang langKey="common.copyright"/>
  321. <span class="tip">
  322. <a href="http://www.jeecg.org" title="JEECG Framework <t:mutiLang langKey="system.version.number"/>">JEECG Framework <t:mutiLang langKey="system.version.number"/></a>
  323. (推荐谷歌浏览器,获得更快响应速度) 技术支持:
  324. <a href="#" title="JEECG Framework <t:mutiLang langKey="system.version.number"/>">JEECG Framework <t:mutiLang langKey="system.version.number"/></a>
  325. </span>
  326. </div>
  327. </div>
  328. <div id="mm" class="easyui-menu" style="width: 150px;">
  329. <div id="mm-tabupdate"><t:mutiLang langKey="common.refresh"/></div>
  330. <div id="mm-tabclose"><t:mutiLang langKey="common.close"/></div>
  331. <div id="mm-tabcloseall"><t:mutiLang langKey="common.close.all"/></div>
  332. <div id="mm-tabcloseother"><t:mutiLang langKey="common.close.all.but.this"/></div>
  333. <div class="menu-sep"></div>
  334. <div id="mm-tabcloseright"><t:mutiLang langKey="common.close.all.right"/></div>
  335. <div id="mm-tabcloseleft"><t:mutiLang langKey="common.close.all.left"/></div>
  336. </div>
  337. <script type="text/javascript">
  338. </script>
  339. </body>
  340. </html>