sysHome.jsp 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>首页</title>
  6. <meta name="decorator" content="ani"/>
  7. <style>
  8. #body-container {
  9. margin-left: 0px !important;
  10. /**padding: 10px;*/
  11. margin-top: 0px !important;
  12. overflow-x: hidden!important;
  13. transition: all 0.2s ease-in-out !important;
  14. height: 100% !important;
  15. }
  16. </style>
  17. </head>
  18. <body class="">
  19. <div id="body-container" class="wrapper wrapper-content">
  20. <div class="conter-wrapper home-container">
  21. <div class="row home-row">
  22. <div class="row home-row">
  23. <div class="col-lg-4 col-md-6">
  24. <div class="todo-container panel-danger">
  25. <div class="panel-heading">
  26. <div class="todo-header text-center">
  27. <h4><i class="fa fa-tasks"></i>&nbsp;待办任务</h4>
  28. </div>
  29. </div>
  30. <div class="panel-body bg-danger">
  31. <div class="todo-body">
  32. <div class="todo-list-wrap">
  33. <ul class="todo-list">
  34. <c:if test="${ not empty actlist}">
  35. <c:forEach items="${actlist}" var="actlist" varStatus="index">
  36. <li>
  37. <a href="${ctx}/act/task/form?taskId=${actlist.taskId}&taskName=${actlist.taskName}&taskDefKey=${actlist.taskDefKey}&procInsId=${actlist.procInsId}&procDefId=${actlist.procDefId}&status=${actlist.status}" style="color: white">${actlist.title}</a>
  38. </li>
  39. </c:forEach>
  40. </c:if>
  41. <c:if test="${empty actlist}">
  42. <span>暂无待办事项</span>
  43. </c:if>
  44. </ul>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="col-lg-4 col-md-6">
  51. <div class="todo-container panel-info">
  52. <div class="panel-heading">
  53. <div class="todo-header text-info">
  54. <h4><i class="fa fa-tasks"></i>&nbsp;通知</h4>
  55. </div>
  56. </div>
  57. <div class="panel-body bg-info">
  58. <div class="todo-body">
  59. <div class="todo-list-wrap">
  60. <ul class="todo-list">
  61. <c:if test="${ not empty list1}">
  62. <c:forEach items="${list1}" var="actlist" varStatus="index">
  63. <li>
  64. <a href="${ctx}/oa/oaNotify/form?id=${actlist.id}&isSelf=true" style="color: white">${actlist.title}${actlist.type}</a>
  65. </li>
  66. </c:forEach>
  67. </c:if>
  68. <c:if test="${empty list1}">
  69. <span>暂无通知</span>
  70. </c:if>
  71. </ul>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <script>
  81. $(function(){
  82. $('#calendar2').fullCalendar({
  83. eventClick: function(calEvent, jsEvent, view) {
  84. alert('Event: ' + calEvent.title);
  85. alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
  86. alert('View: ' + view.name);
  87. }
  88. });
  89. $('#rtlswitch').click(function() {
  90. console.log('hello');
  91. $('body').toggleClass('rtl');
  92. var hasClass = $('body').hasClass('rtl');
  93. $.get('/api/set-rtl?rtl='+ (hasClass ? 'rtl': ''));
  94. });
  95. $('.theme-picker').click(function() {
  96. changeTheme($(this).attr('data-theme'));
  97. });
  98. $('#showMenu').click(function() {
  99. $('body').toggleClass('push-right');
  100. });
  101. });
  102. function changeTheme(the) {
  103. $("#current-theme").remove();
  104. $('<link>')
  105. .appendTo('head')
  106. .attr('id','current-theme')
  107. .attr({type : 'text/css', rel : 'stylesheet'})
  108. .attr('href', '/css/app-'+the+'.css');
  109. }
  110. </script>
  111. <script>
  112. $(function(){
  113. setTimeout(function() {
  114. var chart = c3.generate({
  115. bindto: '#lineChart',
  116. data: {
  117. columns: [
  118. ['搜索引擎', 30, 200, 100, 400, 150, 250],
  119. ['自主访问', 50, 120, 210, 140, 115, 425],
  120. ['友情链接', 40, 150, 98, 300, 175, 100]
  121. ]
  122. },
  123. color: {
  124. pattern: ['#3CA2E0','#5CB85C','#F1B35B']
  125. },
  126. axis: {
  127. x: {
  128. show: false
  129. },
  130. y: {
  131. show: false
  132. },
  133. }
  134. });
  135. }, 275);
  136. setTimeout(function() {
  137. var chart2 = c3.generate({
  138. bindto: '#cbar',
  139. data: {
  140. columns: [
  141. [10,40,20,90,35,70,10,50,20,80,60,10,20,40,70]
  142. ],
  143. type:'bar'
  144. },
  145. bar: {
  146. width: {
  147. ratio: 0.5 // this makes bar width 50% of length between ticks
  148. }
  149. },
  150. color: {
  151. pattern: ['#DB5B57']
  152. },
  153. labels: true,
  154. legend: {
  155. show: 0
  156. },
  157. axis: {
  158. x: {
  159. show: false
  160. },
  161. y: {
  162. show: false
  163. },
  164. }
  165. });
  166. }, 275);
  167. setTimeout(function() {
  168. var chart = c3.generate({
  169. bindto: '#pie',
  170. data: {
  171. // iris data from R
  172. columns: [
  173. ['data1', 11],
  174. ['data2', 23],
  175. ['data3', 66]
  176. ],
  177. type : 'pie',
  178. },
  179. color: {
  180. pattern: ['#5CB85C','#F0AD4E','#3CA2E0']
  181. },
  182. legend: {
  183. show: 0
  184. },
  185. });
  186. }, 275);
  187. });
  188. </script>
  189. </body>
  190. </html>