year.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <style>
  4. .widget{
  5. cursor: pointer;
  6. height: 100px;
  7. }
  8. .gray-bg{
  9. color: #333333;
  10. }
  11. h3{
  12. font-size: 14px;
  13. }
  14. .line1 {
  15. overflow: hidden;
  16. text-overflow: ellipsis;
  17. display: box;
  18. display: -webkit-box;
  19. line-clamp: 1;
  20. box-orient: vertical;
  21. -webkit-line-clamp: 1;
  22. -webkit-box-orient: vertical;
  23. word-break: break-all;
  24. }
  25. .line2 {
  26. overflow: hidden;
  27. text-overflow: ellipsis;
  28. display: box;
  29. display: -webkit-box;
  30. line-clamp: 2;
  31. box-orient: vertical;
  32. -webkit-line-clamp: 2;
  33. -webkit-box-orient: vertical;
  34. word-break: break-all;
  35. line-height: 55px;
  36. }
  37. .line3{
  38. line-height: 55px;
  39. }
  40. .line{
  41. float: left;
  42. line-height: 55px;
  43. }
  44. .count-task{
  45. width: 100%;
  46. padding-bottom: 6px;
  47. }
  48. </style>
  49. <div class="row">
  50. <div class="col-sm-12">
  51. <div class="ibox float-e-margins">
  52. <div class="ibox-content">
  53. <div class="row">
  54. <div class="col-xs-3">
  55. <a href="{:url('year',[],'')}?year={$prv}" class="btn btn-sm btn-primary">上一年</a>
  56. </div>
  57. <div class="col-xs-9" style="text-align: right;">
  58. <a href="{:url('year',[],'')}?year={$last}" class="btn btn-sm btn-primary">下一年</a>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="ibox-content">
  63. <div class="row">
  64. {volist name="lists" id="v"}
  65. <a href="{:url('calendar',[],'')}?month={$v.title}">
  66. <div class="col-md-4">
  67. {if $v['count'] > 0}
  68. <div class="widget style1 navy-bg">
  69. <div class="row">
  70. <div class="col-xs-5 text-left">
  71. <h3 class="font-bold line2">{$v.title}</h3>
  72. </div>
  73. <div class="col-xs-7 text-right">
  74. <!-- <h3 class="line pull-right">总任务数:<span class="font-bold line3">{$v.count}</span></h3>-->
  75. <div class="pull-right count-task">
  76. <h3> 总任务数:<span class="font-bold">{$v.count}</span></h3>
  77. </div>
  78. <div class="pull-right count-task">
  79. <h3> 已完成数:<span class="font-bold">{$v.count1}</span></h3>
  80. </div>
  81. <div class="pull-right count-task">
  82. <h3> 未完成数:<span class="font-bold">{$v.count2}</span></h3>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. {else}
  88. <div class="widget style1 gray-bg">
  89. <div class="row">
  90. <div class="col-xs-5 text-left">
  91. <h3 class="font-bold line2">{$v.title}</h3>
  92. </div>
  93. <div class="col-xs-7 text-right">
  94. <div class="pull-right count-task">
  95. <h3> 总任务数:<span class="font-bold">{$v.count}</span></h3>
  96. </div>
  97. <div class="pull-right count-task">
  98. <h3> 已完成数:<span class="font-bold">{$v.count1}</span></h3>
  99. </div>
  100. <div class="pull-right count-task">
  101. <h3> 未完成数:<span class="font-bold">{$v.count2}</span></h3>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. {/if}
  107. </div>
  108. </a>
  109. {/volist}
  110. <!-- <a href="javascript:;" url="{:url('record',['id'=>1,'start'=>1,'end'=>1])}" data-title="提交记录" onclick="layer_open(this,0)">-->
  111. <!-- <div class="col-sm-2">-->
  112. <!-- <div class="widget style1 navy-bg">-->
  113. <!-- <div class="row">-->
  114. <!-- <div class="col-xs-9 text-left">-->
  115. <!-- <h3 class="font-bold line2">住院部大厅厕所2</h3>-->
  116. <!-- <h5 class="line2"> 保洁工人,张小奇(调度) </h5>-->
  117. <!-- </div>-->
  118. <!-- <div class="col-xs-3">-->
  119. <!-- <h1 class="font-bold text-center">1</h1>-->
  120. <!-- </div>-->
  121. <!-- </div>-->
  122. <!-- </div>-->
  123. <!-- </div>-->
  124. <!-- </a>-->
  125. <!-- <a href="javascript:;" url="{:url('record',['id'=>1,'start'=>1,'end'=>1])}" data-title="提交记录" onclick="layer_open(this,0)">-->
  126. <!-- <div class="col-sm-2">-->
  127. <!-- <div class="widget style1 yellow-bg">-->
  128. <!-- <div class="row">-->
  129. <!-- <div class="col-xs-9 text-left">-->
  130. <!-- <h3 class="font-bold line2">住院部大厅厕所3</h3>-->
  131. <!-- <h5 class="line2"> 保洁工人,张小奇(调度) </h5>-->
  132. <!-- </div>-->
  133. <!-- <div class="col-xs-3">-->
  134. <!-- <h1 class="font-bold text-center">1</h1>-->
  135. <!-- </div>-->
  136. <!-- </div>-->
  137. <!-- </div>-->
  138. <!-- </div>-->
  139. <!-- </a>-->
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. {/block}
  146. {block name="script"}
  147. <script>
  148. </script>
  149. {/block}