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
/
Grape
/
Edit File:
show.php
<?php SYS::DOMAIN("Grape"); SYS::DOMAIN("Product"); SYS::CONTROLLER("grapeController"); $grapeInstance = new Grape(); $grapeInstance->get($_GET["id"]); ?> <div class="row"><div class="col-lg-12"> <div class="box box-info"> <div class="box-header with-border"> <h3 class="box-title">แสดงข้อมูล พันธุ์องุ่น</h3> <div class="btn-group"> <a href="?page=Grape/list" class="btn bg-orange"><i class="fa fa-list"></i> รายการ พันธุ์องุ่น</a> <a href="?page=Grape/create" class="btn bg-olive"><i class="fa fa-plus-circle"></i> เพิ่มข้อมูล พันธุ์องุ่น</a> </div> </div> <div class="box-body"> <div class="form-group row"> <span class="col-sm-3 text-right"><strong>ชื่อพันธุ์องุ่น</strong></span> <div class="col-sm-9"> <?php echo $grapeInstance->name; ?> </div> </div> <div class="form-group row"> <?php $ProductInstance = new Product(); ?> <span class="col-sm-3 text-right"><strong>สินค้า</strong></span> <div class="col-sm-9"> <ul> <?php foreach($grapeInstance->instance("product") as $product){ ?> <li> <a href="?page=Product/show&id=<?php echo $product->id; ?>"> <?php echo $product->toString(); ?> </a> </li> <?php } ?> </ul> </div> </div> </div> <div class="box-footer"><div class="col-sm-offset-3 col-sm-9"> <a class="btn btn-warning" href="?page=Grape/edit&id=<?php echo $grapeInstance->id; ?>"><i class="fa fa-pencil"></i> Edit</a> <a class="btn btn-danger" href="?page=Grape/show&action=delete&id=<?php echo $grapeInstance->id; ?>"onClick="javascript:return confirm('Are you sure?');" ><i class="fa fa-minus-circle"></i> Delete</a> </div></div> </div> </div></div>
Simpan