<?php  
  header("Content-type:text/html;charset=utf-8");
  include("/template/top.php");?>
<link rel="stylesheet" type="text/css" href="/mobile/public/style/css/user.css"/>
<link rel="stylesheet" type="text/css" href="/mobile/public/style/css/index.css"/>
<link rel="stylesheet" type="text/css" href="/mobile/public/style/css/public.css"/>
<style>
	.bd .conWrap .con{
		max-width:450px;
		min-width:320px!important;
		height:1430px!important;
		overflow:hidden;
		position:relative!important;
		
	}
	.bd .conWrap{
		height:auto!important;
		max-width:450px;
		min-width:320px;
	}
</style>
</head>
<body>
<?php  include("/template/menu.php");?>
<div class="lcbanner"></div>
<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="fina-list" <?php  if($rs2['tzzt'] == 1){ ?>style="background:#ffffff url(/public/style/images/fullscale_ico.png) 50% 32% no-repeat;"<?php } ?>>
			  <div class="finaimg"style="display:none">
				<a href="/mobile/project.php?id=<?php echo $rs2['id'];?>">
				  <img width="125" height="125" src="/public/Project/<?php echo $rs2['pic'] ?>"></a>
			  </div>
			  <div class="fina-content">
				<h4>
				 <img src="images/mortgage.gif" style="width:24px;height:24px;"> <a href="/mobile/project.php?id=<?php echo $rs2['id'];?>" title="<?php echo $rs2['title']; ?>"><?php echo $rs2['title']; ?></a></h4>
				<div class="row">
				  <span>项目金额:</span>
				  <span class="yellow fs">￥<?php echo $rs2['xmgm']; ?></span>万元</div>
				<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">
				  <span>起投金额:</span>
				  <span class="fs">
					<span class="yellow fs"><?php echo $rs2['qtje']; ?></span>元</span></div>
				<div class="row" style="width:100%;margin:0px">
				  <span style="color:#999">还款方式:</span>
				  <span style="color:#999" class="fs">
				  <?php if($rs2['hkfs']==0){?>
					按日付收益 到期还本
				  <?php }elseif($rs2['hkfs']==1){ ?>
				  按周期付收益 到期还本
				  <?php } ?>
				  </span></div>
				<div class="row" style="width:100%;margin:0px">
				  <span style="color:#999">保理机构:</span>
				  <span class="fs" style="color:#999"><?php echo $rs2['bljg']; ?></span></div>
				<div class="row fina_plan" style='width:100%;'>
				  <span class="fl">当前进度:</span>
				  <div class="progress fl">
					<div class="progressBar" style="width: <?php echo $rs2['xmjd']; ?>%;"></div>
				  </div>
				  <span><?php echo $rs2['xmjd']; ?>%</span></div>
				<div class="row fina_plansy" style="width:100px; float:left">
				  <a href="/mobile/project.php?id=<?php echo $rs2['id'];?>" class="finabtnsy btnredsy" title="项目介绍">项目介绍</a></div>
				<p class="rowbtn">
				<?php  if($rs2['tzzt'] == 1){ ?>
				    <a class="finabtn bluebtn" href="/mobile/project.php?id=<?php echo $rs2['id'];?>" title="已投满" style='background:#ff9000;'>已投满</a></p>
				<?php }else{?>
					<a class="finabtn bluebtn" href="/mobile/project.php?id=<?php echo $rs2['id'];?>" title="立即投资">立即投资</a></p>
				<?php } ?>
			  </div>
			</div>
          <?php  } ?>
      
      </div>
      <div class="con">
        
          <?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) 50% 32% no-repeat;"<?php } ?>>
			  <div class="finaimg" style="display:none">
				<a href="/mobile/project.php?id=<?php echo $rs2['id'];?>">
				  <img width="125" height="125" src="/public/Project/<?php echo $rs2['pic'] ?>"></a>
			  </div>
			  <div class="fina-content">
				<h4>
				 <img src="images/mortgage.gif" style="width:24px;height:24px;"> <a href="/mobile/project.php?id=<?php echo $rs2['id'];?>" title="<?php echo $rs2['title']; ?>"><?php echo $rs2['title']; ?></a></h4>
				<div class="row">
				  <span>项目金额:</span>
				  <span class="yellow fs">￥<?php echo $rs2['xmgm']; ?></span>万元</div>
				<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">
				  <span>起投金额:</span>
				  <span class="fs">
					<span class="yellow fs"><?php echo $rs2['qtje']; ?></span>元</span></div>
				<div class="row" style="width:100%;margin:0px">
				  <span style="color:#999">还款方式:</span>
				  <span class="fs" style="color:#999">
				  <?php if($rs2['hkfs']==0){?>
					按日付收益 到期还本
				  <?php }elseif($rs2['hkfs']==1){ ?>
				  按周期付收益 到期还本
				  <?php } ?>
				  </span></div>
				<div class="row" style="width:100%;margin:0px">
				  <span style="color:#999">保理机构:</span>
				  <span class="fs" style="color:#999"><?php echo $rs2['bljg']; ?></span></div>
				<div class="row fina_plan" style='width:100%;'>
				  <span class="fl">当前进度:</span>
				  <div class="progress fl">
					<div class="progressBar" style="width: <?php echo $rs2['xmjd']; ?>%;"></div>
				  </div>
				  <span><?php echo $rs2['xmjd']; ?>%</span></div>
				<div class="row fina_plansy" style="width:100px; float:left">
				  <a href="/mobile/project.php?id=<?php echo $rs2['id'];?>" class="finabtnsy btnredsy" title="项目介绍">项目介绍</a></div>
				<p class="rowbtn">
				  	<?php  if($rs2['tzzt'] == 1){ ?>
						<a class="finabtn bluebtn" href="/mobile/project.php?id=<?php echo $rs2['id'];?>" title="已投满" style='background:#ff9000;'>已投满</a></p>
					<?php }else{?>
						<a class="finabtn bluebtn" href="/mobile/project.php?id=<?php echo $rs2['id'];?>" title="立即投资">立即投资</a></p>
					<?php } ?>
			  </div>
			</div>
          <?php  } ?>
        
      </div>
      
      <div class="con">
          <?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) 50% 32% no-repeat;"<?php } ?>>
			  <div class="finaimg" style="display:none">
				<a href="/mobile/project.php?id=<?php echo $rs2['id'];?>">
				  <img width="125" height="125" src="/public/Project/<?php echo $rs2['pic'] ?>"></a>
			  </div>
			  <div class="fina-content">
				<h4>
				 <img src="images/mortgage.gif" style="width:24px;height:24px;"> <a href="/mobile/project.php?id=<?php echo $rs2['id'];?>" title="<?php echo $rs2['title']; ?>"><?php echo $rs2['title']; ?></a></h4>
				<div class="row">
				  <span>项目金额:</span>
				  <span class="yellow fs">￥<?php echo $rs2['xmgm']; ?></span>万元</div>
				<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">
				  <span>起投金额:</span>
				  <span class="fs">
					<span class="yellow fs"><?php echo $rs2['qtje']; ?></span>元</span></div>
				<div class="row" style="width:100%;margin:0px">
				  <span style="color:#999">还款方式:</span>
				  <span class="fs" style="color:#999">
				  <?php if($rs2['hkfs']==0){?>
					按日付收益 到期还本
				  <?php }elseif($rs2['hkfs']==1){ ?>
				  按周期付收益 到期还本
				  <?php } ?>
				  </span></div>
				<div class="row" style="width:100%;margin:0px">
				  <span style="color:#999">保理机构:</span>
				  <span class="fs" style="color:#999"><?php echo $rs2['bljg']; ?></span></div>
				<div class="row fina_plan" style='width:100%;'>
				  <span class="fl">当前进度:</span>
				  <div class="progress fl">
					<div class="progressBar" style="width: <?php echo $rs2['xmjd']; ?>%;"></div>
				  </div>
				  <span><?php echo $rs2['xmjd']; ?>%</span></div>
				<div class="row fina_plansy" style="width:100px; float:left">
				  <a href="/mobile/project.php?id=<?php echo $rs2['id'];?>" class="finabtnsy btnredsy" title="项目介绍">项目介绍</a></div>
				<p class="rowbtn">
				  	<?php  if($rs2['tzzt'] == 1){ ?>
						<a class="finabtn bluebtn" href="/mobile/project.php?id=<?php echo $rs2['id'];?>" title="已投满" style='background:#ff9000;'>已投满</a></p>
					<?php }else{?>
						<a class="finabtn bluebtn" href="/mobile/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>
<?php  include("/template/foot.php");?>
</body>
</html>
