<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>项目管理</title>
<link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.metadata.js"></script>
</head>
<body>
 <div class="page_tilte">
        &nbsp;&nbsp;项目管理 | <a href="<?php echo U('Project/add');?>">添加项目</a>
    </div>
    <br />
    <form id="form1" name="form1" method='get' action='' style='margin: 0px'>
    <table id="DataListing" cellspacing="1" cellpadding="0" width="100%" align="Center" border="0" style="font-size: 12px" bgcolor="#C1DAD7">
  <tr class="repeaterHead" height="32px" style="text-align: center">
    <td>编号</td>
    <td>分类</td>
    <td>项目标题</td>
    <td>保理机构</td>
    <td>项目规模</td>
    <td>投资进度</td>
    <td>起投金额</td>
    <td>交易日化收益</td>
    <td>项目期限</td>
    <td>投资状态</td>
    <td>添加时间</td>
    <td>排序</td>
    <td>操作</td>
  </tr>

  <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr class="repeaterTd0" style="text-align:center;">
    <td><?php echo ($vo["id"]); ?></td>
    <td><?php echo (projectName($vo["classid"])); ?></td>
    <td><?php echo ($vo["title"]); ?></td>
    <td><?php echo ($vo["bljg"]); ?></td>
    <td><?php echo ($vo["xmgm"]); ?></td>
    <td><?php echo ($vo["xmjd"]); ?></td>
    <td><?php echo ($vo["qtje"]); ?></td>
    <td><?php echo ($vo["jyrsy"]); ?></td>
    <td><?php echo ($vo["shijian"]); ?><?php echo ($vo["qxdw"]); ?></td>
    <td><?php if($vo['tzzt'] == 0): ?>投资中<?php else: ?>已投满<?php endif; ?></td>
    <td><?php echo (date('Y-m-d H:i:s',$vo["posttime"])); ?></td>
    <td><?php echo ($vo["orderid"]); ?></td>
    <td><a href='<?php echo U('Project/edit',array('id'=>$vo['id']));?>'>编辑</a> | <a href='<?php echo U('Project/delete',array('id'=>$vo['id']));?>' onclick='return cons()'>删除</a></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>

  <tr  class="repeaterTd0" style="text-align:center;">
    <td class="PagerClass" colspan="14"><?php echo ($page); ?></td>
  </tr>
</table>
 </form>
<script type="text/javascript">
  function cons(){
      var msg=confirm("确认操作？");
      if(msg!="0")
      {
          return true;
      }
      else
      {
          return false;
      }
  }
</script>
</body>
</html>