rejected.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  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. <button type="button" name="search_btn">搜索</button>
  284. <input type="hidden" name="pagetype" value="<?php if(isset($pageType)) echo $pageType ?>">
  285. </form>
  286. </div>
  287. </div>
  288. <div class="list">
  289. <table cellspacing="0" cellpadding="0" >
  290. <thead>
  291. <tr>
  292. <th >序号</th>
  293. <th >需求标题</th>
  294. <th >类型</th>
  295. <th width="12%">优先级</th>
  296. <th >提出人</th>
  297. <th>提出日期</th>
  298. <th >期待上线时间</th>
  299. <th >点赞数</th>
  300. <th >驳回人</th>
  301. <th >驳回时间</th>
  302. </tr>
  303. </thead>
  304. <tbody>
  305. <?php
  306. if(isset($list)){
  307. $i=1;
  308. foreach ($list as $item){
  309. ?>
  310. <tr>
  311. <td><?php echo $i;?></td>
  312. <td><a href="<?php echo $this->createUrl('feedback/reply?id='.$item['id'].'&status=3')?>"><?php echo $item['title'];?></a></td>
  313. <td>
  314. <?php
  315. if($item['type']===0){
  316. echo '个人建议';
  317. }elseif($item['type']==1){
  318. echo '市场反馈';
  319. }elseif($item['type']==2){
  320. echo '公司决策';
  321. }
  322. ?>
  323. </td>
  324. <td>
  325. <?php
  326. if($item['priority']==0){
  327. echo '普通';
  328. }elseif($item['priority']==1){
  329. echo '紧急';
  330. }elseif($item['priority']==2){
  331. echo '非常紧急';
  332. }
  333. ?>
  334. </td>
  335. <td><?php echo $item['origin'];?></td>
  336. <td><?php if($item['createTime']) echo date('Y/m/d',strtotime($item['createTime']))?></td>
  337. <td><?php if($item['releaseTime']) echo date('Y/m/d',strtotime($item['releaseTime']))?></td>
  338. <td><?php echo $item['likesNum'];?></td>
  339. <td><?php echo $item['rejectUser'];?></td>
  340. <td><?php if($item['rejectedTime']) echo date('Y/m/d',strtotime($item['rejectedTime']))?></td>
  341. </tr>
  342. <?php
  343. $i++;
  344. }
  345. }
  346. ?>
  347. <tr>
  348. <td colspan="10" class="page">
  349. <?php
  350. if(isset($pageTotal) && $pageTotal>1){
  351. $StartPage=$page-5;
  352. $EndPage=$page+5;
  353. if($StartPage<1){
  354. $StartPage=1;
  355. }
  356. if($EndPage>$pageTotal){
  357. $EndPage=$pageTotal;
  358. }
  359. ?>
  360. <div class="row" style="padding-top:10px;">
  361. <div class="col-xs-7">
  362. &nbsp;
  363. </div>
  364. <div class="col-xs-5" style="font-size: 16px">
  365. <div class="dataTables_paginate paging_simple_numbers" style="vertical-align:sub;">
  366. <ul id="yw0" class="yiiPager">
  367. <?php
  368. if(isset($query_page)){
  369. $query_page='&'.$query_page;
  370. }else{
  371. $query_page='';
  372. }
  373. if($page>1){
  374. echo '<li class="previous"><a href="'.$this->createUrl('feedback/index').'?page='.($page-1).$query_page.'">上一页</a></li>';
  375. }
  376. for($i=$StartPage;$i<=$EndPage;$i++){
  377. $url=$this->createUrl('feedback/index')."?page=".$i.$query_page;
  378. if($page==$i){
  379. echo '<li class="page selected"><a href="#">'.$i.'</a></li>';
  380. }else{
  381. echo '<li class="page"><a href="'.$url.'">'.$i.'</a></li>';
  382. }
  383. }
  384. if($page<$pageTotal){
  385. echo '<li class="next"><a href="'.$this->createUrl('feedback/index').'?page='.($page+1).$query_page.'">下一页</a></li>';
  386. }
  387. }
  388. ?>
  389. </td>
  390. </tr>
  391. </tbody>
  392. </table>
  393. </div>
  394. <script>
  395. $('button[name="search_btn"]').click(function() {
  396. $('#armor').submit();
  397. })
  398. </script>