<!DOCTYPE html>
<html lang=zh-cn>
<head>
  <meta charset=utf-8>
  <title>纵横计量支付系统</title>
  <meta name=description content=计量支付>
  <meta name=copyright content=smartcost.com.cn>
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel=stylesheet href="<?php echo $data['rootUrl']; ?>global/css/bootstrap.css">
  <link rel=stylesheet href=<?php echo $data['rootUrl']; ?>global/css/style.css>
  <script src=<?php echo $data['rootUrl']; ?>global/js/jquery-1.9.1.min.js></script>
  <script src=<?php echo $data['rootUrl']; ?>global/js/bootstrap.js></script>
  <script src=<?php echo $data['rootUrl']; ?>global/js/jl.js></script>
</head>
<body>
<?php include Doo::conf()->SITE_PATH .  Doo::conf()->PROTECTED_FOLDER . "viewc//top.php"; ?>
<div class="wrapContent">
  <?php include Doo::conf()->SITE_PATH .  Doo::conf()->PROTECTED_FOLDER . "viewc//left.php"; ?>
    	<div class="mainContainer">
    		<!--内容-->
      <div class="mainContent">
      <div class="title clearfix">
        <h1><a href="/sign/index" title="返回"><span class="closePanel" aria-hidden="true" data-icon="Z"></span></a>&nbsp;需要我签署</h1>
      </div>
    <div class="project">
      <?php if( !empty($data['needlist']) ): ?>
      <?php foreach($data['needlist'] as $k1=>$v1): ?>
      <div class="proSection">
        <legend><?php echo $v1['project']; ?></legend>
        <?php if( !empty($v1['tlist']) ): ?>
        <?php foreach($v1['tlist'] as $k2=>$v2): ?>
        <?php if( !empty($v2['plist']) ): ?>
        <?php foreach($v2['plist'] as $k3=>$v3): ?>
        <table class="table">
          <thead>
          <tr><th colspan="3"><?php echo $v2['tender']; ?> 第<?php echo ToChinaseNum($v3['phaseno']); ?>期</th></tr>
          </thead>
          <tbody>
          <?php if( !empty($v3['signlist']) ): ?>
          <?php foreach($v3['signlist'] as $k4=>$v4): ?>
          <tr>
            <td width="50%"><?php echo $v4['name']; ?></td>
            <td>
              <div class="sign-avatars">
                <?php foreach($v4['auditlist'] as $k5=>$v5): ?>
                <?php if( $v5['status'] == 'checked' ): ?>
                <span class="colGreen" data-toggle="tooltip" data-placement="bottom" data-original-title="<?php echo formatDate($v5['intime'], 'Y-m-d'); ?> 完成签署"><?php echo $v5['aname']; ?></span>
                <?php elseif( $v5['status'] == 'checking' ): ?>
                <span class="colOrange" data-toggle="tooltip" data-placement="bottom" data-original-title="签署中"><?php echo $v5['aname']; ?></span>
                <?php else: ?>
                <span><?php echo $v5['aname']; ?></span>
                <?php endif; ?>
                <?php endforeach; ?>
              </div>
            </td>
            <td width="10%"><a href="/sign/needview/<?php echo $v4['sid']; ?>" class="btn btn-primary btn-sm">签署</a></td>
          </tr>
          <?php endforeach; ?>
          <?php endif; ?>
          </tbody>
        </table>
        <?php endforeach; ?>
        <?php endif; ?>
        <?php endforeach; ?>
        <?php endif; ?>
      </div>
      <?php endforeach; ?>
      <?php endif; ?>
    </div>
  </div>
        <!--内容-->
    	</div>
    </div>
<script type="text/javascript">autoFlashHeight();</script>
</body>