123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433 |
- <style>
- .fr{
- float: right;
- }
- .filter {
- font-size: 0;
- margin-top:10px;
- width: 96%;
- margin:10px auto 0 auto;
- }
- .filter * {
- font-size: 14px;
- }
- .filter label {
- font-weight: bold;
- }
- .filter select {
- height: 36px;
- font-size: 14px;
- margin-left: 10px;
- }
- .filter select:nth-child(2) {
- width: 82px;
- }
- .filter select:nth-child(3) {
- width: 110px;
- }
- .filter button {
- border: none;
- background: #2977ff;
- width: 111px;
- height: 36px;
- border-radius: 3px;
- font-size: 14px;
- color: #fff;
- outline: none;
- cursor: pointer;
- margin-left: 10px;
- }
- .showClassInfo{
- cursor: pointer;
- }
- .list table {
- width: 96%;
- margin-top: 20px;
- text-align: center;
- border-right: 1px solid #ccc;
- margin:20px auto 0 auto;
- }
- .list table th {
- background: #f2f2f2;
- border: 1px solid #ccc;
- border-right: none;
- padding: 12px 15px;
- }
- .list table td {
- border: 1px solid #ccc;
- border-right: none;
- border-top: none;
- padding: 12px 15px;
- font-weight: bold;
- }
- .list table tr:nth-child(even) {
- background: #f2f2f2;
- }
- .list .tl {
- text-align: left;
- }
- .list .red {
- color: #cc3400;
- }
- .list .green {
- color: #2977ff;
- }
- .icon {
- display: inline-block;
- background: center/contain no-repeat;
- width: 25px;
- height: 25px;
- cursor: pointer;
- vertical-align: middle;
- }
- .icon-edit {
- background-image: url("/images/edit.png")
- }
- .icon-eye-close {
- background-image: url("/images/eye_close.png")
- }
- .icon-download {
- background-image: url("/images/download_cylet.png")
- }
- .icon-xunhuan {
- background-image: url("/images/xunhuan.png")
- }
- .icon-add {
- background-image: url("/images/add.png");
- width: 20px;
- height: 20px;
- }
- .list .subjects {
- line-height: 22px;
- font-size: 0;
- }
- .list .icon{
- margin: 0 4px;
- }
- .list .subjects span {
- display: inline-block;
- font-size: 16px;
- word-break: keep-all;
- margin: 0 4px;
- }
- .confirmbox {
- background: #fff;
- border: 1px solid #cccccc;
- border-radius: 3px;
- padding: 40px 40px 30px;
- text-align: center;
- position: fixed;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- z-index: 99;
- }
- .confirmbox-mask {
- background: rgba(0, 0, 0, .7);
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- z-index: 99;
- position: fixed;
- }
- button {
- border: none;
- background: #2977ff;
- width: 111px;
- height: 36px;
- border-radius: 3px;
- font-size: 14px;
- color: #fff;
- outline: none;
- cursor: pointer;
- }
- button.save {
- display: block;
- margin: 40px auto;
- }
- .confirmbox .confirmbox-btns {
- margin-top: 40px;
- }
- .icon-close{
- background-image: url("/images/close.png")
- }
- .class-modal {
- width: 700px;
- min-height: 400px;
- background: #fff;
- border-radius: 5px;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- padding: 20px;
- }
- .class-modal-head {
- font-size: 20px;
- font-weight: bold;
- text-align: center;
- }
- .class-modal-body {
- margin-top: 20px;
- max-height: 300px;
- overflow: auto;
- }
- .class-modal-body .classes {
- margin-bottom: 10px;
- }
- .class-modal-body .classes > div {
- display: inline-block;
- max-width: 640px;
- vertical-align: top;
- }
- .class-modal-body .classes a {
- text-decoration: none;
- display: inline-block;
- margin: 0 5px 5px;
- color: #136bfb;
- font-size: 14px;
- }
- .class-modal-body .classes a.active {
- color: #fc091b
- }
- .class-modal .icon-close{
- position: absolute;
- right: 20px;
- top: 20px;
- }
- .c-red {
- color: #CC3300
- }
- .subject-name {
- display: inline-block;
- padding: 3px 8px;
- background: #ff9900;
- border-radius: 3px;
- color: #ffffff;
- font-size: 12px;
- }
- /* menu */
- .banner-menu{
- /*font-size: 0;*/
- }
- .banner-menu .menu-msg{
- display: inline-block;
- font-size: 14px;
- padding: 4px 22px;
- cursor: pointer;
- }
- .banner-menu .menu-msg.selected{
- border-bottom: 3px solid #2977ff;
- }
- .banner-menu a{
- color:#000;
- }
- .armor_search{
- border:1px solid #ccc;
- padding:5px;
- }
- .armor_search select{
- height:28px;
- width:150px;
- }
- .armor_search button{
- height:28px;
- }
- .armor_search input{
- padding:3px;
- }
- .armor_search label{
- margin:0 10px;
- }
- </style>
- <?php
- if(isset($query_nav)){
- $query_nav='&'.$query_nav;
- }else{
- $query_nav='';
- }
- ?>
- <div class="filter">
- <ul class="banner-menu">
- <li class="menu-msg <?php if(isset($pageType) && $pageType==1){ echo 'selected';}?>" ><a href="?pagetype=1">新需求</a></li>
- <li class="menu-msg <?php if(isset($pageType) && $pageType==2){ echo 'selected';}?>"><a href="?pagetype=2">进行中</a></li>
- <li class="menu-msg <?php if(isset($pageType) && $pageType==3){ echo 'selected';}?>"><a href="?pagetype=3">排队中</a></li>
- <li class="menu-msg <?php if(isset($pageType) && $pageType==4){ echo 'selected';}?>"><a href="?pagetype=4">不采纳</a></li>
- <li class="menu-msg <?php if(isset($pageType) && $pageType==5){ echo 'selected';}?>"><a href="?pagetype=5">已完成</a></li>
- </ul>
- <div class="armor_search">
- <form action="" method="get" id="armor">
- <label>优先级:</label>
- <select name="priority" id="priority">
- <option value="-1" <?php if(isset($param['priority']) && $param['priority']==-1){ echo 'selected';}?> >全部</option>
- <option value="0" <?php if(isset($param['priority']) && $param['priority']==0){ echo 'selected';}?> >普通</option>
- <option value="1" <?php if(isset($param['priority']) && $param['priority']==1){ echo 'selected';}?> >紧急</option>
- <option value="2" <?php if(isset($param['priority']) && $param['priority']==2){ echo 'selected';}?> >非常紧急</option>
- </select>
- <label>类型:</label>
- <select name="type" id="type">
- <option value="-1" <?php if(isset($param['type']) && $param['type']==-1){ echo 'selected';}?> >全部</option>
- <option value="0" <?php if(isset($param['type']) && $param['type']==0){ echo 'selected';}?> >个人建议</option>
- <option value="1" <?php if(isset($param['type']) && $param['type']==1){ echo 'selected';}?> >市场反馈</option>
- <option value="2" <?php if(isset($param['type']) && $param['type']==2){ echo 'selected';}?> >公司决策</option>
- </select>
- <label>状态:</label>
- <select name="readStatus" id="readStatus">
- <option value="-1" <?php if(isset($param['readStatus']) && $param['readStatus']==-1){ echo 'selected';}?>>全部</option>
- <option value="0" <?php if(isset($param['readStatus']) && $param['readStatus']==0){ echo 'selected';}?>>未读</option>
- <option value="1" <?php if(isset($param['readStatus']) && $param['readStatus']==1){ echo 'selected';}?>>已读</option>
- </select>
- <label>提出人:</label>
- <input type="text" name="origin" value="<?php if(isset($param['origin'])){echo $param['origin'];}?>">
- <button type="button" name="search_btn">搜索</button>
- <input type="hidden" name="pagetype" value="<?php if(isset($pageType)) echo $pageType ?>">
- </form>
- </div>
- </div>
- <div class="list">
- <table cellspacing="0" cellpadding="0" >
- <thead>
- <tr>
- <th >序号</th>
- <th >需求标题</th>
- <th >类型</th>
- <th width="12%">优先级</th>
- <th >提出人</th>
- <th>提出日期</th>
- <th >期待上线时间</th>
- <th >采纳时间</th>
- <th >点赞数</th>
- </tr>
- </thead>
- <tbody>
- <?php
- if(isset($list)){
- $i=1;
- foreach ($list as $item){
- ?>
- <tr>
- <td><?php echo $i;?></td>
- <td><a href="<?php echo $this->createUrl('feedback/reply?id='.$item['id'].'&status=4')?>"><?php echo $item['title'];?></a></td>
- <td>
- <?php
- if($item['type']===0){
- echo '个人建议';
- }elseif($item['type']==1){
- echo '市场反馈';
- }elseif($item['type']==2){
- echo '公司决策';
- }
- ?>
- </td>
- <td>
- <?php
- if($item['priority']==0){
- echo '普通';
- }elseif($item['priority']==1){
- echo '紧急';
- }elseif($item['priority']==2){
- echo '非常紧急';
- }
- ?>
- </td>
- <td><?php echo $item['origin'];?></td>
- <td><?php if($item['createTime']) echo date('Y/m/d',strtotime($item['createTime']))?></td>
- <td><?php if($item['releaseTime']) echo date('Y/m/d',strtotime($item['releaseTime']))?></td>
- <td><?php if($item['agreedTime']) echo date('Y/m/d',strtotime($item['agreedTime']))?></td>
- <td><?php echo $item['likesNum'];?></td>
- </tr>
- <?php
- $i++;
- }
- }
- ?>
- <tr>
- <td colspan="9" class="page">
- <?php
- if(isset($pageTotal) && $pageTotal>1){
- $StartPage=$page-5;
- $EndPage=$page+5;
- if($StartPage<1){
- $StartPage=1;
- }
- if($EndPage>$pageTotal){
- $EndPage=$pageTotal;
- }
- ?>
- <div class="row" style="padding-top:10px;">
- <div class="col-xs-7">
-
- </div>
- <div class="col-xs-5" style="font-size: 16px">
- <div class="dataTables_paginate paging_simple_numbers" style="vertical-align:sub;">
- <ul id="yw0" class="yiiPager">
- <?php
- if(isset($query_page)){
- $query_page='&'.$query_page;
- }else{
- $query_page='';
- }
- if($page>1){
- echo '<li class="previous"><a href="'.$this->createUrl('feedback/index').'?page='.($page-1).$query_page.'">上一页</a></li>';
- }
- for($i=$StartPage;$i<=$EndPage;$i++){
- $url=$this->createUrl('feedback/index')."?page=".$i.$query_page;
- if($page==$i){
- echo '<li class="page selected"><a href="#">'.$i.'</a></li>';
- }else{
- echo '<li class="page"><a href="'.$url.'">'.$i.'</a></li>';
- }
- }
- if($page<$pageTotal){
- echo '<li class="next"><a href="'.$this->createUrl('feedback/index').'?page='.($page+1).$query_page.'">下一页</a></li>';
- }
- }
- ?>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <script>
- $('button[name="search_btn"]').click(function() {
- $('#armor').submit();
- })
- </script>
|