| Current Path : /home2/wtmwscom/public_html/member/ |
| Current File : /home2/wtmwscom/public_html/member/daily_virtual_growth.php |
<?php
$title= "Daily Virtual Growth";
include 'header.php';
include_once('lib/ps_pagination.php');
$uid = $_SESSION['userid'];
?>
<h1>Daily Virtual Growth</h1>
<?php echo getMessage();?>
<section>
<table style="width: 100%;">
<thead>
<tr>
<th>Day</th>
<th>Growth ID</th>
<th>Commitment No.</th>
<th>Date</th>
<!--<th>Package</th>-->
<th>Daily Bonus</th>
<th>Growth Amount</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT recid, commit_id, datetime, amount FROM `growth` WHERE `uid`='".$uid."' ORDER BY `datetime` ASC";
if(!isset($_GET['page'])){$i=1; }else{$i=(($_GET['page']-1)*30)+1;}
$pager = new PS_Pagination($link, $query, 30, 5);
$pager->setDebug(true);
$result = $pager->paginate();
if($result){
while ($row = mysqli_fetch_object($result)){
$commit = mysqli_fetch_object(mysqli_query($connection,"SELECT package, amount, vertual_amount, balance_amount FROM `commit` WHERE `commit_id`='".$row->commit_id."'"));
?>
<tr <?php if($i%2){echo "class='light'";}else{echo "class='dark'";}?>>
<td><?php echo $i; ?></td>
<td><?php echo $row->recid; ?></td>
<td><?php echo $row->commit_id; ?></td>
<td><?php echo date("d M, Y", strtotime($row->datetime));?></td>
<?php /*<td><?php if($commit->package==1){echo '10 Days';}elseif($commit->package==2){echo '20 Days';}
elseif($commit->package==3){echo '30 Days';}?></td>*/?>
<td><?php echo $row->amount;?></td>
<td><?php echo $commit->amount + $row->amount;?></td>
</tr>
<?php
$i++;}
}?>
</tbody>
</table>
<?php echo $pager->renderFullNav();?>
</section>
<?php include 'footer.php';?>