<!DOCTYPE html>
<html lang=zh-cn>
<head>
  <meta charset=utf-8>
  <title>纵横计量支付系统</title>
  <meta name=description content=计量支付>
  <meta name=copyright content=smartcost.com.cn>
  <link rel=stylesheet href={{rootUrl}}global/css/fixedheadertable.css>
  <link rel=stylesheet href="{{rootUrl}}global/css/bootstrap.css">
  <link rel=stylesheet href="{{rootUrl}}global/css/style.css">
  <script src="{{rootUrl}}global/js/jquery-1.9.1.min.js"></script>
  <script src="{{rootUrl}}global/js/bootstrap.js"></script>
  <script src="{{rootUrl}}global/js/jl.js"></script>
  <script src={{rootUrl}}global/js/jquery.fixedheadertable.js></script>
</head>
<body>
<!-- include "top" -->
<div class="wrapContent">
  <!-- include "left" -->
  <div class="mainContainer">
    <!--内容-->
    <div class="mainContent">
      <div class="title clearfix">
        <ul class="nav nav-pills">
          <li class="dropdown"><a title="返回" href="{{rootUrl}}project/{{currProID}}/section"><span
                  class="closePanel" aria-hidden="true" data-icon="Z"></span></a></li>
          <li class="dropdown">
            <a href="{{rootUrl}}project/{{currProID}}/section" data-toggle="dropdown" class="dropdown-toggle">
              {{currProName}}<b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
              <!-- loop othrPro -->
              <li><a href="{{rootUrl}}project/{{othrPro' value.pid}}/section">{{othrPro' value.pname}}</a></li>
              <!-- endloop -->
            </ul>
          </li>
          <li class="dropdown">
            <a href="{{rootUrl}}project/{{currProID}}/section" data-toggle="dropdown"
               class="dropdown-toggle">
              {{currconArray.stname}}<b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
              <!-- loop allconArray -->
              <li><a href="{{rootUrl}}project/{{currProID}}/section">{{allconArray' value.stname}}</a></li>
              <!-- endloop -->
            </ul>
          </li>
          <li class="dropdown">
            <a href="{{rootUrl}}project/{{currProID}}/section" data-toggle="dropdown"
               class="dropdown-toggle">
              {{curractmeasureArray.pmname}}<b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
              <!-- loop allactmeasureArray -->
              <li>
                <a href="{{rootUrl}}project/{{currProID}}/section/{{allactmeasureArray' value.pmid}}/intermediate">{{allactmeasureArray' value.pmname}}</a></li>
              <!-- endloop -->
              <!--				    <li class="divider"></li>
                                  <li><a href="#">共18标段，查看更多</a></li>-->
            </ul>
          </li>
        </ul>
      </div>
      <!--导航-->
      <ul class="nav nav-tabs">
        <li>
          <a href="{{rootUrl}}project/{{pid}}/section/{{pmid}}/detail">标段概况</a>
        </li>
        <li><a href="{{rootUrl}}project/{{pid}}/section/{{pmid}}/files">附件</a></li>
        <li class="active"><a href="{{rootUrl}}project/{{pid}}/section/{{pmid}}/intermediate">中间计量草图</a></li>
      </ul>
      <!--导航-->
      <div class="project">
        <ul class="nav nav-pills">
          <!--<li><select class="form-control"><option>请选择项目</option></select>&nbsp;</li>-->
          <!--<li><select class="form-control"><option>请选择标段</option></select>&nbsp;</li>-->
          <li>
            <select class="form-control" id="phasenolist">
              <option value="0">请选择期数</option>
              <!-- if !empty({{phasenolist}}) -->
              <!-- loop phasenolist -->
              <option value="{{phasenolist' value.phaseno}}" <!-- if {{phaseno}} == {{phasenolist' value.phaseno}} -->selected<!-- endif -->>第{{ToChinaseNum(phasenolist' value.numpname)}}期</option>
              <!-- endloop -->
              <!-- endif -->
            </select>&nbsp;
          </li>
        </ul>
        <table class="table">
          <thead>
          <tr><th width="35%">报表名</th><th width="20%">项目-标段-期数</th><th width="10%">生成</th><th width="10%">在线签署</th><th width="10%">操作</th></tr>
          </thead>
          <tbody>
          <!-- if !empty({{list}}) -->
          <!-- loop list -->
          <tr>
            <td width="">{{list' value.name}}</td>
            <td>{{list' value.project}}-{{list' value.tender}}-第{{ToChinaseNum(list' value.phaseno)}}期</td>
            <td>{{list' value.ownname}}<br>{{formatDate(list' value.intime,'Y-m-d')}}</td>
            <td><!-- if {{list' value.status}} == 'checked' --><span class="colGreen">签署完成</span><br>{{formatDate(list' value.sintime,'Y-m-d')}}<!-- elseif {{list' value.status}} == 'checking' --><span class="colOrange">签署中</span><br><!-- elseif {{list' value.status}} == 'uncheck' -->未发起签署<!-- elseif {{list' value.status}} == 'stop' --><span class="colRed">终止</span><br>{{formatDate(list' value.sintime,'Y-m-d')}}<!-- elseif {{list' value.status}} == 'stop' --><span class="colRed">终止</span><br>{{formatDate(list' value.sintime,'Y-m-d')}}<!-- elseif {{list' value.status}} == 'back' --><span class="colOrange">退回</span><br>{{formatDate(list' value.sintime,'Y-m-d')}}<!-- endif --></td>
            <td width=""><a class="btn btn-default btn-sm" href="/project/intermediate/view/{{list' value.sid}}">查看报表</a></td>
          </tr>
          <!-- endloop -->
          <!-- endif -->
          </tbody>
        </table>
        <nav aria-label="Page navigation">
          <ul class="pagination">
            {{pager}}
          </ul>
        </nav>
      </div>
    </div>

  <!--内容-->
    	</div>
    </div>
<script type="text/javascript">autoFlashHeight();</script>
<script>
  $(function(){
    $('#phasenolist').change(function(){
      var url = '/project/{{pid}}/section/{{pmid}}';
      if($(this).val() != 0){
        url += '/phaseno/'+$(this).val();
      }
      window.location.href = url+'/intermediate';
    });
  })
</script>
</body>