Exemplo n.º 1
0
 public function index()
 {
     $parm = array();
     //$Map  = ' b.borrow_status = 2 and b.is_show=1 and b.transfer_total > b.transfer_out';
     $Map = 'b.is_show=1 ';
     $parm['map'] = $Map;
     $parm['orderby'] = "b.is_show desc,b.id DESC";
     $parm['pagesize'] = 8;
     $listTBorrow = getTBorrowList($parm);
     if ($this->isAjax()) {
         $string = '';
         foreach ($listTBorrow['list'] as $vb) {
             $string .= '<a href="' . getInvestUrl($vb['id']) . '">
                     <div class="biao_box">
                      <h4><div class="title_img" style="float:left;margin-top:4px">' . getIco($vb) . '</div>
                         <div style="float:left;text-align:left">' . cnsubstr($vb['borrow_name'], 5) . '</div></h4><table>
                         <tr>
                             <td>融资金额:' . MFormt($vb['borrow_money']) . '元</td>
                             <td>融资期限:' . $vb['borrow_duration'];
             $string .= $vb['repayment_type'] == 1 ? '天' : '个月';
             $string .= '</tr><tr><td>年化利率:' . $vb['borrow_interest_rate'] . '%/';
             $string .= $vb['repayment_type'] == 1 ? '天' : '年';
             $string .= '</td><td><span class="progress"> <span class="precent" style="width":' . $vb['progress'] . '></span></span>
              </td></tr></table> </div> </a>';
         }
         echo $string;
     } else {
         $this->assign("listTBorrow", $listTBorrow);
         $this->display();
     }
 }
Exemplo n.º 2
0
 /**
  * 债权转让列表
  * 
  */
 public function index()
 {
     if ($this->uid) {
         $uid = $this->uid;
     } else {
         $uid = 88;
     }
     $searchMap['borrow_status'] = array("in", '2,4,6,7,3');
     $parm['map'] = $searchMap;
     $parm['pagesize'] = 2;
     $sort = "desc";
     $parm['orderby'] = "b.borrow_status ASC,b.id DESC";
     D("DebtBehavior");
     $Debt = new DebtBehavior();
     $list = $Debt->listAllz($parm);
     $Bconfig = (require C("APP_ROOT") . "Conf/borrow_config.php");
     if ($this->isAjax()) {
         $str = '';
         foreach ($list['list'] as $vb) {
             $str .= "<div class='box'>";
             $str .= " <p class='tit'><a href='/m/invest/detail/id/{$vb['id']}'>{$vb['borrow_name']}</a></p>";
             $str .= "<table cellpadding='0' cellspacing='0' border='0' class='table'>";
             $str .= "<tr>";
             $str .= "<td>借款标题:</td><td>" . getIco($vb) . "<a href='" . getInvestUrl($vb[id]) . "' title='{$vb['borrow_name']}' class='BL_name'>" . cnsubstr($vb[borrow_name], 12) . "</a></td><td>信誉等级:</td><td>" . getLeveIco($vb[credits], 2) . "</td>";
             $str .= "</tr><tr>";
             $str .= "<td>借款利率:</td><td>{$vb['borrow_interest_rate']}%</td><td>转让价格:</td><td>{$vb['transfer_price']}</span>&nbsp;元</td>";
             $str .= "</tr><tr>";
             $str .= "<td>待收本息:</td><td>¥{$vb['money']}</span>&nbsp;元</td><td>转让期数/总期数:</td><td>{$vb['period']}期/{$vb['total_period']}期</td>";
             $str .= "</table>";
             $str .= "<p class='sub'>";
             if ($vb[status] == 2) {
                 $str .= "<a href='javascript:;' onclick='buy_debt({$vb['invest_id']})' id='tz' class='<css1 an btn-a fr'>我要投资</a>";
             } elseif ($vb[status] == 1) {
                 $str .= "<img  class='' src='/Style/H/images/status/ywc.gif'  />";
             } elseif ($vb[status] == 4) {
                 $str .= "<img  class='' src='/Style/H/images/status/yts.gif'  />";
             }
             $str .= " </p></div>";
         }
         echo $str;
     } else {
         $this->assign("list", $list);
         $this->assign('uid', $uid);
         $this->assign("searchUrl", $searchUrl);
         $this->assign("searchMap", $searchMap);
         $this->display();
     }
 }
Exemplo n.º 3
0
 public function index()
 {
     $maprow = array();
     $searchMap['borrow_status'] = array("in", '2,4,6,7');
     $parm['map'] = $searchMap;
     $parm['pagesize'] = 5;
     $sort = "desc";
     $parm['orderby'] = "b.borrow_status ASC,b.id DESC";
     $list = getBorrowList($parm);
     $Bconfig = (require C("APP_ROOT") . "Conf/borrow_config.php");
     if ($this->isAjax()) {
         $string = '';
         foreach ($list['list'] as $vb) {
             $string .= '
                     <div class="main_box">
                       <div class="title">
                         <div class="title_img">' . getIco($vb) . '</div>
                         <a href="' . getInvestUrl($vb['id']) . '" >' . cnsubstr($vb['borrow_name'], 17) . '</a>
                            
                       </div>  
                       <div class="box_ner">
                        <table cellpadding="0" cellspacing="0" border="0">
                         <tr>
                          <td align="left">
                              <div class="box_ner_nn">
                               <ul>
                              <li>金额:<span class="col">' . MFormt($vb['borrow_money']) . '元</span></li>
                              <li>期限:' . $vb['borrow_duration'];
             $string .= $vb['repayment_type'] == 1 ? '天' : '个月';
             $string .= '</li>
                              <li>利率:' . $vb['borrow_interest_rate'] . '%/';
             $string .= $vb['repayment_type'] == 1 ? '天' : '年';
             $string .= '</li>
                              <li><span class="jd">进度:</span>
                              <span class="progress">
                              <span class="precent" style="width:' . $vb['progress'] . '%;"></span></span></li>
                             </ul> 
                             </div>     
                          </td>
                          <td align="center">' . borrow_status($vb['id'], $vb['borrow_status']) . '</td>
                          </tr>
                        </table>
                         
                        </div>
                       </div>';
         }
         echo $string;
     } else {
         ///////////////企业直投列表开始 /////////////
         $parm = array();
         $Map = ' b.borrow_status = 2 and b.is_show=1 and b.transfer_total > b.transfer_out';
         $parm['map'] = $Map;
         $parm['orderby'] = "b.is_show desc,b.id DESC";
         $listTBorrow = getTBorrowList($parm);
         $this->assign("listTBorrow", $listTBorrow);
         ///////////////企业直投列表结束 /////////////
         $this->assign('list', $list);
         $this->assign('Bconfig', $Bconfig);
         $this->display();
     }
 }
<tbody> 
<!-- 循环结束 -->
<?php 
if (is_array($listBorrow["list"])) {
    $i = 0;
    $__LIST__ = $listBorrow["list"];
    if (count($__LIST__) == 0) {
        echo "";
    } else {
        foreach ($__LIST__ as $key => $vb) {
            $mod = $i % 2;
            ++$i;
            ?>
<tr>
<td> <?php 
            echo getIco($vb);
            ?>
<a href="<?php 
            echo getinvesturl($vb["id"]);
            ?>
"title="<?php 
            echo $vb["borrow_name"];
            ?>
"><?php 
            echo cnsubstr($vb["borrow_name"], 11);
            ?>
</a></td> 
<td><?php 
            echo getmoneyformt($vb["borrow_money"]);
            ?>
</td>
 
                     </script>
  </div>
</div>

<div class="state_main">
  <div class="xw_main_state">
    <div class="state_project"> 
    <div class="phc_dybt"> <span class="tailuser">借款用户&nbsp;:&nbsp;<?php 
echo $minfo["user_name2"];
?>
&nbsp;<!--<?php 
echo getleveico($minfo["credits"], 2);
?>
--></span><span style="display:block; float:left;"><?php 
echo getIco($vo);
?>
</span> <?php 
echo cnsubstr($vo["borrow_name"], 26);
?>
&nbsp; </div>
      <div class="project_left" <?php 
if ($vo["borrow_status"] != "2") {
    ?>
style="background:url(/Style/H/images/invest/ymb.jpg) no-repeat right 100px "<?php 
}
?>
>
       
        <div class="clear"></div>
        <p> <span class="width1">借款金额</span> <span class="width2">年利率</span> <span class="width3">借款期限</span> </p>