| Server IP : 172.67.187.206 / Your IP : 172.71.28.155 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/ |
Upload File : |
<?php session_start();
ob_start();
include("db.php");
$id = $mysqli->escape_string($_GET['id']);
?>
<!DOCTYPE php>
<php>
<head>
<meta http-equiv="Content-Type" content="text/php; charset=UTF-8">
<title>ของบประมาณ 2565</title>
<?php require 'common/head.php';?>
<?php require 'common/table.php';?>
</head>
<body>
<div class="wrap">
<?php require 'common/navbar.php';?>
<?php if(!isset($_SESSION['s_username'])){?>
<?php
echo "<script language=javascript>alert('คุณยังไม่ได้เข้าระบบ');</script>";
echo "<script>window.parent.location=\"index.php\"</script>";
?>
<?php }else{ ?>
<div class="container">
<?php
$sql = "SELECT * FROM cls_type ORDER BY id ";
//echo $sql ;
$res = $mysqli->query($sql);
if($res) while($Row = $res->fetch_array()){
//print_r($Row);
echo "<br><center>สถานะการตรวจสอบไฟล์$Row[name]<br>"
?>
<table width="80%" border="1">
<tr>
<th width="25%"> <div align="center">ไฟล์</div></th>
<th width="20%" height="30"> <div align="center">วันที่เพิ่มข้อมูล</div></th>
<th width="20%"> <div align="center">สถานะการตรวจสอบ</div></th>
<th width="35%"> <div align="center">รายละเอียดการแก้ไข</div></th>
</tr>
<?PHP
$sql = "SELECT * FROM building where s_id='$id' AND type= $Row[id] ORDER BY b_id DESC";
//echo $sql ;
$result = $mysqli->query($sql);
if($result) while($Row = $result->fetch_array()){
//echo "<tr><td colspan=4>"; print_r($Row ); echo "</td></tr>";
echo "<tr>";
echo "<td>"."<center>","<a href='uploads/petition/$Row[d_file]'>". $Row['d_file'] ."</a>"."</center>"."</td>" ;
echo "<td><center>" . $Row['d_update'] ."</center></td>" ;
echo "<td><center>" . $Row['d_status'] ."</center></td>" ;
echo "<td><center>" . $Row['d_comment'] ."</center></td>" ;
echo "</tr>";
}
echo "</table>";
}
?>
<br>
<a href="building_add.php?id=<?php echo $id ;?>"><button type="button" class="btn btn-success">เพิ่มข้อมูล</button></a>
</center><br>
</div>
<?php } ?>
<?php require 'common/footer.php';?>
</div>
</body>
</php>