<tr> <th>#</th> <th>Ime</th> <th>Telefon</th> <th>Od</th> <th>Do</th> <th>Cena</th> <th>Za mesec </th> <th>Nacin placanja</th> <th>Dana</th> </tr> </thead> <tbody> <?php /*****************************************************************************/ $all_paid_users = ViewPaidDateFormat::getAll("WHERE user_paid_status=1 ORDER BY user_paid_id DESC"); //print_r($all_paid_users); /******************************************************************************/ foreach ($all_paid_users as $paid_user) { echo "<tr class='gradeU'>\n <td>{$paid_user->user_id}</td>\n <td>{$paid_user->user_name} {$paid_user->user_surname}</td>\n <td>{$paid_user->user_phone}</td>\n <td>{$paid_user->user_paid_start} </td>\n <td>{$paid_user->user_paid_end} </td>\n <td>{$paid_user->price} </td>\n <td>{$paid_user->user_paid_mounth} </td>\n <td>{$paid_user->method_pay_name} </td>\n <td>{$paid_user->price_name} </td>\n </tr>"; } /******************************************************************************/ ?> </tbody> </table> </div> </div> </div> <!--End Advanced Tables -->
</div> <div class="panel-body"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <th>#</th> <th>Ime</th> <th>Do</th> <th>Mesec </th> </tr> </thead> <tbody> <?php /**********************************************************************************************************************/ $last_ten_paid_user = ViewPaidDateFormat::getAll("WHERE user_paid_status=1 ORDER BY user_paid_id DESC LIMIT 10"); foreach ($last_ten_paid_user as $paid_user) { echo "<tr>\n <td>{$paid_user->user_id}</td>\n <td>{$paid_user->user_name} {$paid_user->user_surname}</td>\n <td>{$paid_user->user_paid_end}</td>\n <td>{$paid_user->user_paid_mounth} </td>\n </tr>"; } /****************************************************************************************************************************/ ?> </tbody> </table> </div> </div> </div> </div> <!-- End Kitchen Sink --> <!-- Kitchen Sink --> <div class="col-md-12">
Korinisni koji nemaju pravo koriscenja teretane </div> <div class="panel-body"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover" id="dataTables-example" width="100%"> <thead> <th>Br.kartice</th> <th>Ime</th> <th>Telefon</th> <th>Do</th> <th>Status</th> </thead> <tbody> <?php /******************************************************************************/ $all_users_expire = ViewPaidDateFormat::getAll("WHERE user_paid_status=0"); foreach ($all_users_expire as $user_expire) { echo "<tr class='gradeU'>\n <td>{$user_expire->user_id} </td>\n <td>{$user_expire->user_name} {$user_expire->user_surname} </td>\n <td>{$user_expire->user_phone} </td>\n <td>{$user_expire->user_paid_end}</td>\n <td> <i class='fa fa-minus-circle'></i></td>\n </tr>"; } /******************************************************************************/ ?> </tbody> </table> </div> </div> </div> <!--End Advanced Tables --> <!-- Advanced Tables --> <div class="panel panel-default">