<?php  
  header("Content-type:text/html;charset=utf-8");
  include("/template/top.php");?>
    <link rel="stylesheet" href="/public/Front/css/common.css" /> 
  <link rel="stylesheet" href="/public/Front/css/login.css" /> 
  <link rel="stylesheet" href="/public/Front/css/service.css" />
  <link rel="stylesheet" href="/public/Front/css/register.css" />
  <link rel="stylesheet" href="/public/Front/css/react.css" />
   <link rel="stylesheet" href="/public/style/css/index.css" />
   <link rel="stylesheet" href="/public/style/css/style.css" />
 
   
  <script type="text/javascript" src="/public/Front/js/json-eps.js"></script> 
  <script type="text/javascript" charset="utf-8" src="/public/Front/user/user.js"></script>

  
<?php  
	$type = trim($_GET['type']); 
  //判断是否会员
  // if($type == 'vip' && $userConfig['level'] !== 4 ){
  //     echo "<script>javascript:alert('您不是vip，不能访问vip专区');top.location.href='/projectlist.php?type=rt';</script>";exit();
  // }
	$sqlsc = "select * from  {$db_prefix}project_classid where pre = '".$type."'";
	$rsscc = $db->get_one($sqlsc);
	if(!$rsscc){
		echo "<script>top.location.href='/index.php';</script>";exit();
	}
?> 
  <link rel="stylesheet" href="/public/Front/css/financing--.css" /> 
 	<body id="page-index" u-id="" u-host="" u-currenturl="/">
	<style>
	.bd .conWrap .con{
		width:1190px!important;
		height:auto!important;
		overflow:hidden;
		position:relative!important;
		
	}
	.bd .conWrap{
		height:auto!important;
	}
</style>
	
  <div class="wrap" style="background:#f1f1f1" >
    <?php  include("/template/menu.php");?> 
	
		
 <div class="licaibox">
  <div class="hd">
    <ul class="clearfix">
      <?php  
        $sqlcs = "select * from  {$db_prefix}project_classid";
        $rssc = $db->query($sqlcs);
        while($rsleftc = $db->fetch_array($rssc)){  ?>
      <li><?php echo $rsleftc['name']; ?>(<?php echo projectNum($rsleftc['id']); ?>)</li>
      <?php  }  ?> 
    </ul>
  </div>
  <div class="bd">
    <div class="conWrap">
      <div class="con" >
      
          <?php  
            $sqlcs = "select * from  {$db_prefix}project where classid = 1 order by orderid,id";
            $rsscc = $db->query($sqlcs);
            while($rs2 = $db->fetch_array($rsscc)){  
			
          ?>
		  
		
		
		  <div class="cle"></div>
		  
		  
           <div class="fina-list" <?php  if($rs2['tzzt'] == 1){ ?>style="background:#ffffff url(/public/style/images/fullscale_ico.png) 350px center no-repeat;"<?php } ?>>
			 
			  <div class="fina-content">
				<h4>
				  <img src="/img/credit.gif"><a href="/project.php?id=<?php echo $rs2['id'];?>" title="<?php echo $rs2['title']; ?>"><?php echo $rs2['title']; ?></a>
				  <i class="ico_all size22 img_icon ben_pos3 mr_10 ml_10"></i>
				  <span>百分百本息保障</span></h4>
				
				<div class="row">
				  <span>日化利率：</span>
				  <span class="yellow fs"><?php echo $rs2['jyrsy']; ?>%</span></div>
				<div class="row">
				  <span>投资期限：</span>
				  <span class="fs">
					<span class="yellow fs"><?php echo $rs2['shijian']; ?></span><?php echo $rs2['qxdw']; ?></span></div>
					<div class="row" style="width:300px;">
				  <span>项目金额：</span>
				  <span class="yellow fs">￥<?php echo $rs2['xmgm']; ?></span>万元</div>
				<div class="row" >
				  <span>起投金额：</span>
				  <span class="fs">
					<span class="yellow fs"><?php echo $rs2['qtje']; ?></span>元</span></div>
				
				
				<div class="row fina_plan" >
				 
				 
				  <span class="b_jingdu b_jd<?php echo $rs2['xmjd']; ?>"><?php echo $rs2['xmjd']; ?>%</span>
					
				 
				 </div>
				<div class="row fina_plansy" style="width:240px; float:right">
				  <span style="width:auto;height: 20px;
    line-height: 20px;"><i class="ico_all size22 img_icon xi_pos3"></i>还款方式：</span>
				  <span class="fs" style="width:auto;height: 20px;
    line-height: 20px;">
				  <?php if($rs2['hkfs']==0){?>
					按日付收益，到期还本
				  <?php }elseif($rs2['hkfs']==1){ ?>
				  按周期付收益，到期还本
				  <?php } ?>
				  </span></div>
				<p class="rowbtn">
				<?php  if($rs2['tzzt'] == 1){ ?>
				    <a class="finabtn bluebtn" href="/project.php?id=<?php echo $rs2['id'];?>" title="已投满" style='background:#ff9000;'>已投满</a></p>
				<?php }else{?>
					<a class="finabtn bluebtn" href="/project.php?id=<?php echo $rs2['id'];?>" title="立即投资">立即投资</a></p>
				<?php } ?>
			  </div>
			</div>
			
          <?php  } ?>
      
      </div>
      <div class="con" style="display:none">
        
          <?php  
            $sqlcs = "select * from  {$db_prefix}project where classid = 2 order by orderid,id";
            $rsscc = $db->query($sqlcs);
            while($rs2 = $db->fetch_array($rsscc)){  
          ?>
  <div class="fina-list" <?php  if($rs2['tzzt'] == 1){ ?>style="background:#ffffff url(/public/style/images/fullscale_ico.png) 350px center no-repeat;"<?php } ?>>
			 
			  <div class="fina-content">
				<h4>
				  <img src="/img/credit.gif"><a href="/project.php?id=<?php echo $rs2['id'];?>" title="<?php echo $rs2['title']; ?>"><?php echo $rs2['title']; ?></a>
				  <i class="ico_all size22 img_icon ben_pos3 mr_10 ml_10"></i>
				  <span>百分百本息保障</span></h4>
				
				<div class="row">
				  <span>日化利率：</span>
				  <span class="yellow fs"><?php echo $rs2['jyrsy']; ?>%</span></div>
				<div class="row">
				  <span>投资期限：</span>
				  <span class="fs">
					<span class="yellow fs"><?php echo $rs2['shijian']; ?></span><?php echo $rs2['qxdw']; ?></span></div>
					<div class="row" style="width:300px;">
				  <span>项目金额：</span>
				  <span class="yellow fs">￥<?php echo $rs2['xmgm']; ?></span>万元</div>
				<div class="row" >
				  <span>起投金额：</span>
				  <span class="fs">
					<span class="yellow fs"><?php echo $rs2['qtje']; ?></span>元</span></div>
				
				
				<div class="row fina_plan" >
				 
				 
				  <span class="b_jingdu b_jd<?php echo $rs2['xmjd']; ?>"><?php echo $rs2['xmjd']; ?>%</span>
					
				 
				 </div>
				<div class="row fina_plansy" style="width:240px; float:right">
				  <span style="width:auto;height: 20px;
    line-height: 20px;"><i class="ico_all size22 img_icon xi_pos3"></i>还款方式：</span>
				  <span class="fs" style="width:auto;height: 20px;
    line-height: 20px;">
				  <?php if($rs2['hkfs']==0){?>
					按日付收益，到期还本
				  <?php }elseif($rs2['hkfs']==1){ ?>
				  按周期付收益，到期还本
				  <?php } ?>
				  </span></div>
				<p class="rowbtn">
				<?php  if($rs2['tzzt'] == 1){ ?>
				    <a class="finabtn bluebtn" href="/project.php?id=<?php echo $rs2['id'];?>" title="已投满" style='background:#ff9000;'>已投满</a></p>
				<?php }else{?>
					<a class="finabtn bluebtn" href="/project.php?id=<?php echo $rs2['id'];?>" title="立即投资">立即投资</a></p>
				<?php } ?>
			  </div>
			</div>
          <?php  } ?>
        
      </div>
      
      <div class="con" style="display:none">
          <?php  
            $sqlcs = "select * from  {$db_prefix}project where classid = 4 order by orderid,id";
            $rsscc = $db->query($sqlcs);
            while($rs2 = $db->fetch_array($rsscc)){  
          ?>
  <div class="fina-list" <?php  if($rs2['tzzt'] == 1){ ?>style="background:#ffffff url(/public/style/images/fullscale_ico.png) 350px center no-repeat;"<?php } ?>>
			 
			  <div class="fina-content">
				<h4>
				  <img src="/img/credit.gif"><a href="/project.php?id=<?php echo $rs2['id'];?>" title="<?php echo $rs2['title']; ?>"><?php echo  strlen($rs2['title']) > 48 ? substr($rs2['title'],0,48) : $rs2['title']; ?></a>
				  
				 
				  <i class="ico_all size22 img_icon ben_pos3 mr_10 ml_10"></i>
				  <span>百分百本息保障</span></h4>
				
				<div class="row">
				  <span>日化利率：</span>
				  <span class="yellow fs"><?php echo $rs2['jyrsy']; ?>%</span></div>
				<div class="row">
				  <span>投资期限：</span>
				  <span class="fs">
					<span class="yellow fs"><?php echo $rs2['shijian']; ?></span><?php echo $rs2['qxdw']; ?></span></div>
					<div class="row" style="width:300px;">
				  <span>项目金额：</span>
				  <span class="yellow fs">￥<?php echo $rs2['xmgm']; ?></span>万元</div>
				<div class="row" >
				  <span>起投金额：</span>
				  <span class="fs">
					<span class="yellow fs"><?php echo $rs2['qtje']; ?></span>元</span></div>
				
				
				<div class="row fina_plan" >
				 
				 
				  <span class="b_jingdu b_jd<?php echo $rs2['xmjd']; ?>"><?php echo $rs2['xmjd']; ?>%</span>
					
				 
				 </div>
				<div class="row fina_plansy" style="width:240px; float:right">
				  <span style="width:auto;height: 20px;
    line-height: 20px;"><i class="ico_all size22 img_icon xi_pos3"></i>还款方式：</span>
				  <span class="fs" style="width:auto;height: 20px;
    line-height: 20px;">
				  <?php if($rs2['hkfs']==0){?>
					按日付收益，到期还本
				  <?php }elseif($rs2['hkfs']==1){ ?>
				  按周期付收益，到期还本
				  <?php } ?>
				  </span></div>
				<p class="rowbtn">
				<?php  if($rs2['tzzt'] == 1){ ?>
				    <a class="finabtn bluebtn" href="/project.php?id=<?php echo $rs2['id'];?>" title="已投满" style='background:#ff9000;'>已投满</a></p>
				<?php }else{?>
					<a class="finabtn bluebtn" href="/project.php?id=<?php echo $rs2['id'];?>" title="立即投资">立即投资</a></p>
				<?php } ?>
			  </div>
			</div>
          <?php  } ?>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">jQuery(".licaibox").slide({ mainCell:".conWrap", effect:"fold"});</script>
  


  </div>
  <?php  include("/template/foot.php");?>
<script>$(function(){
  var defaultLeft = 0;
  var type = getQueryString('type');
  switch (type){
    case 'yy':
      defaultLeft = 0;
      break;
    case 'cx':
      defaultLeft = 300;
      break;
    case 'rt':
      defaultLeft = 600;
      break;
    default:
      defaultLeft = 900;
      break;
  }
  if(!/mobile|Android|iPhone|iPod|BlackBerry|SymbianOS|Windows Phone/i.test(navigator.userAgent)){
    //移动设备不绑定hover事件
    $("li.ui-select-list").hover(function(){
      $(".ui-select-listBox-red").stop().animate({"left":$(this).index()*300+"px"},200);
    },function(){
      $(".ui-select-listBox-red").stop().animate({"left":defaultLeft+"px"},200);
    });
  }
});
</script>
 </body>
</html>