<?php 
            } else {
                ?>
              <?php 
                echo $vb["borrow_duration"];
                ?>
个<?php 
            }
            ?>
</td>
<td><?php 
            echo $vb["repayment_type"];
            ?>
</td>
<td><a target="_blank" href="<?php 
            echo getinvesturl($vb["id"]);
            ?>
" class="buy">加入</a></td>  
</tr><?php 
        }
    }
} else {
    echo "";
}
?>
<!-- 循环结束 -->
</tbody>
</table>
</div>
</div>
   
     <th>金额(含利息)</th>
     <th>已还期数/总期数</th>
     <th>当前期数</th>
     <th>状态</th>
     <th>实际还款时间</th>
     <th>备注</th>
    </tr>
    <?php if(is_array($nearlylist)): $i = 0; $__LIST__ = $nearlylist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nl): $mod = ($i % 2 );++$i;?><tr>
     <td align="center"><a href="javascripg:void(0);"><?php echo (hidecard($nl["borrow_user"],8)); ?></a></td>
     <td align="center"><?php echo (date("Y-m-d",$nl["deadline"])); ?></td>
     <td align="center"><?php echo (fmoney($nl["repay_money"],false)); ?></td>
     <td align="center"><?php echo (($nl["back"])?($nl["back"]):"0"); ?>/<?php echo ($nl["total"]); ?>(<?php if($nl["repayment_type"] == 1): ?>天<?php else: ?>月<?php endif; ?>)</td>
     <td align="center"><?php echo ($nl["sort_order"]); ?></td>
     <td align="center"><?php if($nl['repayment_time'] != 0): ?>已还<?php else: ?>待还<?php endif; ?></td>
     <td align="center"><?php if($nl['repayment_time'] != 0): echo (date("Y-m-d H:i",$nl["repayment_time"])); else: ?>-<?php endif; ?></td>
     <td align="left"><a href="<?php echo (getinvesturl($nl["borrow_id"])); ?>" target="_blank"><?php echo ($nl["borrow_name"]); ?></a></td>
    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
   </table>
   <div class="pages"><?php echo ($pagebar); ?></div>
  </div>
 </div>
<script language=javascript src="__ROOT__/Style/Js/gchart/jquery.gchart.min.js" type=text/javascript></script>
<script language=javascript src="__ROOT__/Style/Js/gchart/jquery.gchart.icons.min.js" type=text/javascript></script>
<script language=javascript src="__ROOT__/Style/Js/gchart/jquery.gchart.graphviz.min.js" type=text/javascript></script>
<script language=javascript src="__ROOT__/Style/Js/gchart/jquery.gchart.ext.min.js" type=text/javascript></script>
<script type="text/javascript">
<!--
$(function () {
var data = [$.gchart.series('2013', [<?php echo $expiredrate; ?>, <?php echo $normalrate; ?>], ['ff8888', '88ff88'])]; 
                 
$('#pieChart').gchart({type: 'pie3D', series: data, legend: 'right', 
</div>
<table width="758" border="0" cellspacing="0" cellpadding="0">
 <tr>
  <th nowrap="nowrap">借款标号</th>
  <th nowrap="nowrap">借款标题</th>
  <th nowrap="nowrap">借入人</th>
  <th nowrap="nowrap">年化利率</th>
  <th nowrap="nowrap">已收本金</th>
  <th nowrap="nowrap">已收利息</th>
  <th nowrap="nowrap">投资时间</th>
  <th nowrap="nowrap">复审时间</th>
  <th nowrap="nowrap">回收时间</th>
 </tr>
 <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
	<td><?php echo ($vo["borrow_id"]); ?></td>
	<td><a href="<?php echo (getinvesturl($vo["borrow_id"])); ?>" target="_blank"><?php echo ($vo["borrow_name"]); ?></a></td>
	<td><?php echo ($vo["borrow_user"]); ?></td>
	<td><?php echo ($vo["borrow_interest_rate"]); ?>%<?php if($vo["repayment_type"] == 1): ?>/天<?php endif; ?></td>
	<td><?php echo ($vo["receive_capital"]); ?></td>
	<td><?php echo ($vo["receive_interest"]); ?></td>
	<td><?php echo (date("Y-m-d H:i",$vo["invest_time"])); ?></td>
	<td><?php echo (date("Y-m-d H:i",$vo["second_verify_time"])); ?></td>
	<td><?php echo (date("Y-m-d H:i",$vo["repayment_time"])); ?></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
<div data="fragment-5" id="pager" style="float: right; text-align: right; width: 500px; padding-right: 8px;margin-right: 24px;" class="yahoo2 ajaxpagebar"><?php echo ($pagebar); ?></div>

<script type="text/javascript">
$('.ajaxpagebar a').click(function(){
	try{	
		var geturl = $(this).attr('href');
					<p class="ui-list-field fn-left num text-right w160 pr50"><em class="value"><?php echo (fmoney($vb["borrow_money"])); ?></em>元</p>
					<p class="ui-list-field fn-left num text-right w100 pr30"><em class="value"><?php echo ($vb["borrow_duration"]); ?></em><?php if($vb["repayment_type"] == 1): ?>天<?php else: ?>个月<?php endif; ?></p>
					<p class="ui-list-field fn-left w110">
					  <strong class="ui-progressbar-small ui-progressbar-small-<?php echo (round($vb["progress"])); ?>"><em><?php echo (round($vb["progress"])); ?></em>%</strong>
					</p>
					<p class="ui-list-field fn-left w160 pl35" style="margin-top:10px;">

					<?php if($vb["borrow_status"] == 3): ?><samp class="ui-button ui-button-mid ui-button-grey ui-list-invest-button ui-list-invest-button-OPEN">已流标</samp>
				         <?php elseif($vb["borrow_status"] == 4): ?>
				         <samp class="ui-button ui-button-mid ui-button-grey ui-list-invest-button ui-list-invest-button-OPEN">等待复审</samp>
				         <?php elseif($vb["borrow_status"] == 6): ?>
				         <samp class="ui-button ui-button-mid ui-button-grey ui-list-invest-button ui-list-invest-button-OPEN">还款中</samp>
				         <?php elseif($vb["borrow_status"] > 6): ?>
				         <samp class="ui-button ui-button-mid ui-button-grey ui-list-invest-button ui-list-invest-button-OPEN">已经还完</samp>
				         <?php else: ?>
				         <samp class="ui-button ui-button-mid ui-button-blue ui-list-invest-button ui-list-invest-button-OPEN" onclick="javascript:window.location.href='<?php echo (getinvesturl($vb["id"])); ?>'">投 资</samp><?php endif; ?>
					</p>
				</li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
	</div>
	
    
    <div>
	    <div id="left" style="padding-top: 20px;">
			<div id="left1" style="padding-left:20px">
	       		<div class="rb1_ha" style="margin-top: 0;"><span style="color: black;padding-left:15px">公司动态</span>
	       			<span style="padding-left: 250px;"><a href="http://www.yintt.cn/indexs/notice.html" class="fn-more">更多 &gt;</a></span>
	       		</div>
	      			<div class="rb1a">
	       			<ul>
</div>
<table width="758" border="0" cellspacing="0" cellpadding="0">
 <tr>
  <th>借款标号</th>
  <th>标题</th>
  <th>借入人</th>
  <th>投标日期</th>
  <th>借款金额</th>
  <th>年化利率</th>
  <th>借款期限</th>
  <th>我的投资金额</th>
  <th>预期本息</th>
 </tr>
 <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
	<td><?php echo ($vo["borrow_id"]); ?></td>
	<td><a target="_blank" href="<?php echo (getinvesturl($vo["borrow_id"])); ?>" title="<?php echo ($vo["borrow_name"]); ?>"><?php echo (cnsubstr($vo["borrow_name"],10)); ?></a></td>
	<td><?php echo ($vo["borrow_user"]); echo (getleveico($vo["credits"],2)); ?></td>
	<td><?php echo (date("Y-m-d",$vo["add_time"])); ?></td>
	<td><?php echo ($vo["borrow_money"]); ?></td>
	<td><?php echo ($vo["borrow_interest_rate"]); ?>%<?php if($vo["repayment_type"] == 1): ?>/天<?php endif; ?></td>
	<td><?php echo ($vo["borrow_duration"]); if($vo["repayment_type"] == 1): ?>天<?php else: ?>个月<?php endif; ?></td>
	<td><?php echo ($vo["investor_capital"]); ?></td>
	<td><?php echo ($vo['investor_capital'] + $vo['investor_interest']); ?></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
<div data="fragment-2" id="pager" style="float: right; text-align: right; width: 500px; padding-right: 8px;margin-right: 24px;" class="yahoo2 ajaxpagebar"><?php echo ($pagebar); ?></div>
<script type="text/javascript">
$('.ajaxpagebar a').click(function(){
	try{	
		var geturl = $(this).attr('href');
		var id = $(this).parent().attr('data');
        <td><a onclick="loadUser(<?php 
            echo $vo["borrow_uid"];
            ?>
,'<?php 
            echo $vo["user_name"];
            ?>
')" href="javascript:void(0);"><?php 
            echo $vo["user_name"];
            ?>
</a></td>
        <td><?php 
            echo $vo["borrow_type"];
            ?>
</td>
        <td><a href="<?php 
            echo getinvesturl($vo["id"]);
            ?>
" title="<?php 
            echo $vo["borrow_name"];
            ?>
" target="_blank"><?php 
            echo cnsubstr($vo["borrow_name"], 12);
            ?>
</a></td>
        <td><?php 
            echo $vo["borrow_money"];
            ?>
</td>
        <td><?php 
            echo $vo["repayment_type"];
            ?>
        <div class="col-md-2 xs-m-b-20">
          <div class="m-t-30">
            
           
            
            
            
             <?php if($vb["borrow_status"] == 3): ?><samp class="yellow">已流标</samp>
 <?php elseif($vb["borrow_status"] == 4): ?>
 <samp class="yellow">等待复审</samp>
 <?php elseif($vb["borrow_status"] == 6): ?>
 <samp class="yellow">还款中...</samp>
 <?php elseif($vb["borrow_status"] > 6): ?>
 <samp class="green">已经还完</samp>
 <?php else: ?>
 <input type="button" class="list_but" value="投 资" onclick="javascript:window.location.href='<?php echo (getinvesturl($vb["id"])); ?>'" /><?php endif; ?>
            
            
            
            
            
            
            
            
            
            
            
          </div>
        </div>
        
      </div>
			else
			{
				$("#detail_menu_"+id).attr('style','display: none');
				$("#li_menu_"+id).removeClass();
			}
		}
	if(num != 8){
		$("#spec-list ul li img").css('display', 'none');
	}else{
		$("#spec-list ul li img").css('display', '');
	}
}

bindpage();
function refreshComment(){
	var geturl = "<?php echo (getinvesturl($vo["id"])); ?>?type=commentlist&id=<?php echo ($vo["id"]); ?>&p=1";
	var id = "scomment";
	var x={};
	$.ajax({
		url: geturl,
		data: x,
		timeout: 5000,
		cache: false,
		type: "get",
		dataType: "json",
		success: function (d, s, r) {
			if(d) $("#"+id).html(d.html);//更新客户端 作个判断,避免报错
		}
	});
}
function bindpage(){