Exemplo n.º 1
0
                                  <td width="17%">Date</td>
                                  <td width="10%">Status</td>
                                  <td width="17%">Link</td>
                                  <td width="30%">Action</td>
                              </tr>
                              <tbody>    
				<?php 
    $perpage = 30;
    if (!isset($_GET['p']) || $_GET['p'] == 0) {
        $screen = 0;
    } else {
        $screen = $_GET['p'] - 1;
    }
    $start = $screen * $perpage;
    $db->query("select * from tbl_donate order by date desc limit " . $start . "," . $perpage);
    if ($db->rownum() > 0) {
        while ($res = $db->Fetcharray()) {
            ?>

                              <tr <?php 
            if ($res['amount'] >= $db2->res['value']) {
                echo 'style="background-color:rgba(127,205,163,0.42)"';
            }
            ?>
>
                                  <td width="15%"><?php 
            echo $res['amount'];
            ?>
</td>
                                  <td width="11%">
                                  <?php 
Exemplo n.º 2
0
                        
                        
                        
<table width="100%" class="table table-hover personal-task">

    <tr>
      <th width="26%">Prize</th>
      <th width="30%">Chance</th>
      <th width="17%">&nbsp;</th>
    </tr>

  <tbody>
<?php 
    $prizes = array();
    $db->query("select * from tbl_prize order by chance desc");
    if ($db->rownum() > 0) {
        while ($res = $db->fetchArray()) {
            array_push($prizes, $res['prize'] . '*' . $res['chance']);
        }
        $chancer = get_rewards(implode(',', $prizes));
    }
    $db->query("select * from tbl_prize order by chance desc");
    while ($res = $db->fetchArray()) {
        ?>
    <tr>
      <td width="26%"><?php 
        echo $res['prize'];
        ?>
</td>
      <td width="30%"><?php 
        echo $chancer[$res['prize']];