 <?php  include("../template/usertop.php");?>
<body>
<?php  include("../template/menu.php");?>
<div class="head-wrap">
<div class="main_top_1">
<div class="mt" style="position:relative;">
<?php  include("../template/user_left.php");?> 
<div class="user_zx_right">
<div class="box">
<div class="tagMenu">
<ul class="menu">
<li><a href="/user/project.php">投资产品</a></li>
<li><a href="/user/tender.php">已投产品</a></li>
<li class="current"><a href="/user/recycling.php">收益明细</a></li>
<li><a href="/user/received.php">投资明细</a></li>
<li><a href="/user/projectback.php">收回本金明细</a></li>
</ul>
<div class="hite"> <span id="account"></span> </div>
</div>
</div>
<?php
	$username = $_SESSION["glo_username"];
	$sqlct="select sum(moneylog_money) as count from {$db_prefix}moneylog where moneylog_user ='".$username."' and moneylog_notice like '%项目分红%'";
	$rsc = $db->get_one($sqlct);//总收益
?>
<div class="myinfo" style="padding: 20px; margin-bottom: 15px;background:#fff;">
<p style="margin:15px 0px;">尊敬的<?php echo configW('webname'); ?>会员，以下是您在<?php echo configW('webname'); ?>的回收中投资，一月以30天为准，敬请审阅！</p>
<p>截止 <?php echo toData(time()); ?>   您目前收益的总额是：<span style="color:#ff6600; font-size:14px;">￥<?php echo $rsc['count']?$rsc['count']:0; ?></span><!-- ，共 <span style="color:#ff6600; font-size:14px;">0</span> 笔投资 --></p>
<div class="container-fluid">
        <div class="row-fluid">
            <table class="table table-striped table-bordered table-hover datatable">
                <thead>
                    <tr>
                        <th width="12%">说明</th>
                        <th width="12%">金额</th>
                        <th width="12%">发生日期</th>
                    </tr>
                </thead>
                <tbody>
					<?php 
						$sql="select * from {$db_prefix}moneylog where moneylog_user ='".$username."' and moneylog_notice like '%项目分红%'";
						$rs = $db->query($sql);
						if(mysql_num_rows($rs) <1 ){  ?>
							<tr>
								<td width="90%" colspan="6">暂无记录</td>
							</tr>
					<?php }else{ 
						while ($rs2=$db->fetch_array($rs)){  ?>
                    <tr class="odd gradeX">
                        <td><?php echo $rs2['moneylog_notice']; ?></td>
                       	<td><?php echo $rs2['moneylog_money']; ?></td>
                       	<td><?php echo $rs2['moneylog_time'].$rs2['qxdw']; ?></td>
                    </tr>
                    <?php  }}  ?>
                </tbody>
            </table>
        </div>
    </div> 
</div>
</div>
</div>
<?php  include("../template/foot.php");?> 
<?php  include("../template/page.php");?> 
</body></html>