예제 #1
0
                                  <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 
            $db2->queryres("select * from tbl_user where user_id='" . $res['user_id'] . "'");