| Server IP : 104.21.80.248 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/news/csr/admin/pages/ |
Upload File : |
<?php
if(isset($ugroup)){
?>
<div class="row">
<div class="col-xl-12">
<div class="breadcrumb-holder">
<h1 class="main-title float-left"><i class="fa fa-university"></i> <?php if($ugroup=="school"){ echo "โรงเรียน"; }?><?=$fullname?></h1>
<ol class="breadcrumb float-right">
<li class="breadcrumb-item">Home</li>
<li class="breadcrumb-item active"><?=$ugroup;?></li>
</ol>
<div class="clearfix"></div>
</div>
</div>
</div>
<?php
// Msg แจ้งเตือนการทำงาน
if(isset($_GET['msg'])){ ?>
<script type="text/javascript">
$(window).on('load',function(){
$('#msgAlert').modal('show');
});
</script>
<?php } else {} ?>
<?php include ("pages/modals/modal_msg.php");?>
<!-- end row -->
<link rel="stylesheet" type="text/css" href="<?php echo ADMIN_URL;?>/assets/plugins/datatables/dataTables.bootstrap4.min.css"/>
<script type="text/javascript" src="<?php echo ADMIN_URL;?>/assets/plugins/datatables/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="<?php echo ADMIN_URL;?>/assets/plugins/datatables/dataTables.bootstrap4.min.js"></script>
<link rel="stylesheet" href="<?php echo ADMIN_URL;?>/assets/css/bootstrap-select.css">
<script src="<?php echo ADMIN_URL;?>/assets/js/bootstrap-select.js"></script>
<script>
// START CODE FOR BASIC DATA TABLE
$(document).ready(function() {
$('#example1').DataTable();
} );
$(document).ready(function() {
$('#table1').DataTable();
} );
// END CODE FOR BASIC DATA TABLE
</script>
<style type="text/css">
table.dataTable tbody th, table.dataTable tbody td {
padding: 3px 2px;
}
</style>
<div class="row">
<div class="col-lg-12">
<div class="card mb-3">
<div class="card-header">
<span class="pull-right">
<a href="Export/Export_student.php"><button class="btn btn-success m-l-5 btn-sm"><i class="fa fa-file-excel-o" aria-hidden="true"></i> ส่งออก</button></a>
<a href="account.php?page=studentreport&op4=1"><button class="btn btn-secondary m-l-5 btn-sm"><i class="fa fa-print" aria-hidden="true"></i> พิมพ์ข้อมูล</button></a>
</span>
<h3><i class="fa fa-table"></i> รายงานการรับบริจาค</h3>
</div>
<div class="card-body">
<!-- ส่วนของฟอร์มข้อมูล-->
<?php
//เผื่อไว้แสดงข้อมูลปีปัจจุบัน
$setyear=date("Y")+543;
?>
<table id="table1" data-page-length="10" class="table table-bordered table-hover display" cellspacing="0" width="100%">
<thead>
<tr>
<th><center>ที่</center></th>
<th><center>เลขประชาชน</center></th>
<th><center>ชื่อ-นามสกุล</center></th>
<th><center>รายการ</center></th>
<th><center>จำนวน</center></th>
<th><center>ราคา</center></th>
</tr>
</thead>
<tbody>
<?php
$sqlx= $mysqli->query("SELECT
*
FROM
`tb_donated`
INNER JOIN `tb_category_detail` ON `tb_donated`.`u_type` =
`tb_category_detail`.`Did`
WHERE
`tb_donated`.`u_scid` = '$user' ");
$i = 0;
while($rowx=mysqli_fetch_array($sqlx)) {
$i++;
?>
<tr>
<td align="center" width="10"><?php echo "$i"; ?></td>
<td align="center" width="130"><?=$rowx['u_donate'];?></td>
<td width="200"><?=$rowx['u_name'];?></td>
<td><?=$rowx['d_title'];?></td>
<td align="center" width="70"><?=$rowx['u_max'];?></td>
<td align="center" width="70"><?=number_format($rowx['u_sarary'],2);?></td>
</tr>
<?php } ?>
</tbody>
</table>
<!-- สจบ่วนของฟอร์มข้อมูล-->
</div>
</div><!-- end card-->
</div>
</div>
<?php }else{
header("Location: ../index.php?msg=error");
exit;
} ?>