runnin.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <style>
  2. .fr{
  3. float: right;
  4. }
  5. .filter {
  6. font-size: 0;
  7. margin-top:10px;
  8. width: 96%;
  9. margin:10px auto 0 auto;
  10. }
  11. .filter * {
  12. font-size: 14px;
  13. }
  14. .filter label {
  15. font-weight: bold;
  16. }
  17. .filter select {
  18. height: 36px;
  19. font-size: 14px;
  20. margin-left: 10px;
  21. }
  22. .filter select:nth-child(2) {
  23. width: 82px;
  24. }
  25. .filter select:nth-child(3) {
  26. width: 110px;
  27. }
  28. .filter button {
  29. border: none;
  30. background: #2977ff;
  31. width: 111px;
  32. height: 36px;
  33. border-radius: 3px;
  34. font-size: 14px;
  35. color: #fff;
  36. outline: none;
  37. cursor: pointer;
  38. margin-left: 10px;
  39. }
  40. .showClassInfo{
  41. cursor: pointer;
  42. }
  43. .list table {
  44. width: 96%;
  45. margin-top: 20px;
  46. text-align: center;
  47. border-right: 1px solid #ccc;
  48. margin:20px auto 0 auto;
  49. }
  50. .list table th {
  51. background: #f2f2f2;
  52. border: 1px solid #ccc;
  53. border-right: none;
  54. padding: 12px 15px;
  55. }
  56. .list table td {
  57. border: 1px solid #ccc;
  58. border-right: none;
  59. border-top: none;
  60. padding: 12px 15px;
  61. font-weight: bold;
  62. }
  63. .list table tr:nth-child(even) {
  64. background: #f2f2f2;
  65. }
  66. .list .tl {
  67. text-align: left;
  68. }
  69. .list .red {
  70. color: #cc3400;
  71. }
  72. .list .green {
  73. color: #2977ff;
  74. }
  75. .icon {
  76. display: inline-block;
  77. background: center/contain no-repeat;
  78. width: 25px;
  79. height: 25px;
  80. cursor: pointer;
  81. vertical-align: middle;
  82. }
  83. .icon-edit {
  84. background-image: url("/images/edit.png")
  85. }
  86. .icon-eye-close {
  87. background-image: url("/images/eye_close.png")
  88. }
  89. .icon-download {
  90. background-image: url("/images/download_cylet.png")
  91. }
  92. .icon-xunhuan {
  93. background-image: url("/images/xunhuan.png")
  94. }
  95. .icon-add {
  96. background-image: url("/images/add.png");
  97. width: 20px;
  98. height: 20px;
  99. }
  100. .list .subjects {
  101. line-height: 22px;
  102. font-size: 0;
  103. }
  104. .list .icon{
  105. margin: 0 4px;
  106. }
  107. .list .subjects span {
  108. display: inline-block;
  109. font-size: 16px;
  110. word-break: keep-all;
  111. margin: 0 4px;
  112. }
  113. .confirmbox {
  114. background: #fff;
  115. border: 1px solid #cccccc;
  116. border-radius: 3px;
  117. padding: 40px 40px 30px;
  118. text-align: center;
  119. position: fixed;
  120. left: 50%;
  121. top: 50%;
  122. transform: translate(-50%, -50%);
  123. z-index: 99;
  124. }
  125. .confirmbox-mask {
  126. background: rgba(0, 0, 0, .7);
  127. left: 0;
  128. right: 0;
  129. top: 0;
  130. bottom: 0;
  131. z-index: 99;
  132. position: fixed;
  133. }
  134. button {
  135. border: none;
  136. background: #2977ff;
  137. width: 111px;
  138. height: 36px;
  139. border-radius: 3px;
  140. font-size: 14px;
  141. color: #fff;
  142. outline: none;
  143. cursor: pointer;
  144. }
  145. button.save {
  146. display: block;
  147. margin: 40px auto;
  148. }
  149. .confirmbox .confirmbox-btns {
  150. margin-top: 40px;
  151. }
  152. .icon-close{
  153. background-image: url("/images/close.png")
  154. }
  155. .class-modal {
  156. width: 700px;
  157. min-height: 400px;
  158. background: #fff;
  159. border-radius: 5px;
  160. position: absolute;
  161. top: 50%;
  162. left: 50%;
  163. transform: translate(-50%, -50%);
  164. padding: 20px;
  165. }
  166. .class-modal-head {
  167. font-size: 20px;
  168. font-weight: bold;
  169. text-align: center;
  170. }
  171. .class-modal-body {
  172. margin-top: 20px;
  173. max-height: 300px;
  174. overflow: auto;
  175. }
  176. .class-modal-body .classes {
  177. margin-bottom: 10px;
  178. }
  179. .class-modal-body .classes > div {
  180. display: inline-block;
  181. max-width: 640px;
  182. vertical-align: top;
  183. }
  184. .class-modal-body .classes a {
  185. text-decoration: none;
  186. display: inline-block;
  187. margin: 0 5px 5px;
  188. color: #136bfb;
  189. font-size: 14px;
  190. }
  191. .class-modal-body .classes a.active {
  192. color: #fc091b
  193. }
  194. .class-modal .icon-close{
  195. position: absolute;
  196. right: 20px;
  197. top: 20px;
  198. }
  199. .c-red {
  200. color: #CC3300
  201. }
  202. .subject-name {
  203. display: inline-block;
  204. padding: 3px 8px;
  205. background: #ff9900;
  206. border-radius: 3px;
  207. color: #ffffff;
  208. font-size: 12px;
  209. }
  210. /* menu */
  211. .banner-menu{
  212. /*font-size: 0;*/
  213. }
  214. .banner-menu .menu-msg{
  215. display: inline-block;
  216. font-size: 14px;
  217. padding: 4px 22px;
  218. cursor: pointer;
  219. }
  220. .banner-menu .menu-msg.selected{
  221. border-bottom: 3px solid #2977ff;
  222. }
  223. .banner-menu a{
  224. color:#000;
  225. }
  226. .armor_search{
  227. border:1px solid #ccc;
  228. padding:5px;
  229. }
  230. .armor_search select{
  231. height:28px;
  232. width:150px;
  233. }
  234. .armor_search button{
  235. height:28px;
  236. }
  237. .armor_search input{
  238. padding:3px;
  239. }
  240. .armor_search label{
  241. margin:0 10px;
  242. }
  243. </style>
  244. <?php
  245. if(isset($query_nav)){
  246. $query_nav='&'.$query_nav;
  247. }else{
  248. $query_nav='';
  249. }
  250. ?>
  251. <div class="filter">
  252. <ul class="banner-menu">
  253. <li class="menu-msg <?php if(isset($pageType) && $pageType==1){ echo 'selected';}?>" ><a href="?pagetype=1">新需求</a></li>
  254. <li class="menu-msg <?php if(isset($pageType) && $pageType==2){ echo 'selected';}?>"><a href="?pagetype=2">进行中</a></li>
  255. <li class="menu-msg <?php if(isset($pageType) && $pageType==3){ echo 'selected';}?>"><a href="?pagetype=3">排队中</a></li>
  256. <li class="menu-msg <?php if(isset($pageType) && $pageType==4){ echo 'selected';}?>"><a href="?pagetype=4">不采纳</a></li>
  257. <li class="menu-msg <?php if(isset($pageType) && $pageType==5){ echo 'selected';}?>"><a href="?pagetype=5">已完成</a></li>
  258. </ul>
  259. <div class="armor_search">
  260. <form action="" method="get" id="armor">
  261. <label>优先级:</label>
  262. <select name="priority" id="priority">
  263. <option value="-1" <?php if(isset($param['priority']) && $param['priority']==-1){ echo 'selected';}?> >全部</option>
  264. <option value="0" <?php if(isset($param['priority']) && $param['priority']==0){ echo 'selected';}?> >普通</option>
  265. <option value="1" <?php if(isset($param['priority']) && $param['priority']==1){ echo 'selected';}?> >紧急</option>
  266. <option value="2" <?php if(isset($param['priority']) && $param['priority']==2){ echo 'selected';}?> >非常紧急</option>
  267. </select>
  268. <label>类型:</label>
  269. <select name="type" id="type">
  270. <option value="-1" <?php if(isset($param['type']) && $param['type']==-1){ echo 'selected';}?> >全部</option>
  271. <option value="0" <?php if(isset($param['type']) && $param['type']==0){ echo 'selected';}?> >个人建议</option>
  272. <option value="1" <?php if(isset($param['type']) && $param['type']==1){ echo 'selected';}?> >市场反馈</option>
  273. <option value="2" <?php if(isset($param['type']) && $param['type']==2){ echo 'selected';}?> >公司决策</option>
  274. </select>
  275. <label>状态:</label>
  276. <select name="readStatus" id="readStatus">
  277. <option value="-1" <?php if(isset($param['readStatus']) && $param['readStatus']==-1){ echo 'selected';}?>>全部</option>
  278. <option value="0" <?php if(isset($param['readStatus']) && $param['readStatus']==0){ echo 'selected';}?>>未读</option>
  279. <option value="1" <?php if(isset($param['readStatus']) && $param['readStatus']==1){ echo 'selected';}?>>已读</option>
  280. </select>
  281. <label>提出人:</label>
  282. <input type="text" name="origin" value="<?php if(isset($param['origin'])){echo $param['origin'];}?>">
  283. <label>负责人:</label>
  284. <input type="text" name="chargeMan" value="<?php if(isset($param['chargeMan'])){echo $param['chargeMan'];}?>">
  285. <button type="button" name="search_btn">搜索</button>
  286. <input type="hidden" name="pagetype" value="<?php if(isset($pageType)) echo $pageType ?>">
  287. </form>
  288. </div>
  289. </div>
  290. <div class="list">
  291. <table cellspacing="0" cellpadding="0" >
  292. <thead>
  293. <tr>
  294. <th >序号</th>
  295. <th >需求标题</th>
  296. <th >提出人</th>
  297. <th >提出日期</th>
  298. <th width="12%">期待上线时间</th>
  299. <th >采纳时间</th>
  300. <th>负责人</th>
  301. <th >启动开发时间</th>
  302. <th >任务数</th>
  303. <th >参与开发人数</th>
  304. <th >已进行时长</th>
  305. <th >计划上线时间</th>
  306. </tr>
  307. </thead>
  308. <tbody>
  309. <?php
  310. if(isset($list)){
  311. $i=1;
  312. foreach ($list as $item){
  313. ?>
  314. <tr>
  315. <td><?php echo $i;?></td>
  316. <td><a href="<?php echo $this->createUrl('feedback/reply?id='.$item['id'].'&status=1')?>"><?php echo $item['title'];?></a></td>
  317. <td ><?php echo $item['origin'];?></td>
  318. <td width="5%">
  319. <?php echo date('Y/m/d',strtotime($item['createTime'])) ?>
  320. </td>
  321. <td width="7%"><?php if($item['releaseTime']) echo date('Y/m/d',strtotime($item['releaseTime']));?>
  322. <td width="7%"><?php if($item['agreedTime']) echo date('Y/m/d',strtotime($item['agreedTime']));?></td>
  323. <td width="7%"><?php echo $item['chargeMan'];?></td>
  324. <td width="7%"><?php if($item['startTime']) echo date('Y/m/d',strtotime($item['startTime']));?></td>
  325. <td width="7%"><?php echo $item['taskNum']?></td>
  326. <td width="7%"><?php echo $item['workerNum'];?></td>
  327. <td width="7%"><?php echo $item['workedWeeks'];?>周</td>
  328. <td width="7%"><?php if($item['expectOnlineTime']) echo date('Y/m/d',strtotime($item['expectOnlineTime']));?></td>
  329. </tr>
  330. <?php
  331. $i++;
  332. }
  333. }
  334. ?>
  335. <tr>
  336. <td colspan="12" class="page">
  337. <?php
  338. if(isset($pageTotal) && $pageTotal>1){
  339. $StartPage=$page-5;
  340. $EndPage=$page+5;
  341. if($StartPage<1){
  342. $StartPage=1;
  343. }
  344. if($EndPage>$pageTotal){
  345. $EndPage=$pageTotal;
  346. }
  347. ?>
  348. <div class="row" style="padding-top:10px;">
  349. <div class="col-xs-7">
  350. &nbsp;
  351. </div>
  352. <div class="col-xs-5" style="font-size: 16px">
  353. <div class="dataTables_paginate paging_simple_numbers" style="vertical-align:sub;">
  354. <ul id="yw0" class="yiiPager">
  355. <?php
  356. if(isset($query_page)){
  357. $query_page='&'.$query_page;
  358. }else{
  359. $query_page='';
  360. }
  361. if($page>1){
  362. echo '<li class="previous"><a href="'.$this->createUrl('feedback/index').'?page='.($page-1).$query_page.'">上一页</a></li>';
  363. }
  364. for($i=$StartPage;$i<=$EndPage;$i++){
  365. $url=$this->createUrl('feedback/index')."?page=".$i.$query_page;
  366. if($page==$i){
  367. echo '<li class="page selected"><a href="#">'.$i.'</a></li>';
  368. }else{
  369. echo '<li class="page"><a href="'.$url.'">'.$i.'</a></li>';
  370. }
  371. }
  372. if($page<$pageTotal){
  373. echo '<li class="next"><a href="'.$this->createUrl('feedback/index').'?page='.($page+1).$query_page.'">下一页</a></li>';
  374. }
  375. }
  376. ?>
  377. </td>
  378. </tr>
  379. </tbody>
  380. </table>
  381. </div>
  382. <script>
  383. $('button[name="search_btn"]').click(function() {
  384. $('#armor').submit();
  385. })
  386. </script>