| 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 : |
<html>
<head>
<title>สพม.ราชบุรี</title>
<meta charset="utf-8">
<?php include("head2.php") ?>
</head>
<body><br><center>
<!--<center><font Color="blue"><h3>เกียรติบัตรการประชุมเชิงปฏิบัติการพัฒนาทักษะ<br />มุ่งสู่เป็น Digital Content Creater บนแพลตฟอร์มออนไลน์</h3></font></center><br>-->
<p>
<font Color="red"><h3>Admin เจ้าหน้าที่เพิ่ม ลบ แก้ไข รายชื่อ</h3></font>
</p>
<div class="container">
<!-- <table class="table table-bordered">
<thead>
<tr>
<th> --><br><center>
<!--</th>
</tr>
</thead>
</table>-->
<br><br>
<?php
$objConnect = mysql_connect("localhost","root","P@ssw0rdMySQL0") or die("Error Connect to Database");
$objDB = mysql_select_db("news");
mysql_query("SET character_set_results=utf8");
mysql_query("SET character_set_client=utf8");
mysql_query("SET character_set_connection=utf8");
// Search By Name or Email
$strSQL = "SELECT * FROM posts WHERE cat_id between 70 and 85";
/*
$strSQL = "SELECT * FROM certificate WHERE 1 ";
if($_POST["txtKeyword"] != "")
{
$strSQL .= " AND name like '%".$_POST["txtKeyword"]."%' ";
}
if($_POST["telKeyword"] != "")
{
$strSQL .= " AND tel = '".$_POST["telKeyword"]."' ";
}
*/
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
<?
if(mysql_num_rows($objQuery) <1){
?>
<center><font size="5" color="red">ไม่พบข้อมูล!!!!</font><center></td>
<!-- <center><a href="https://docs.google.com/forms/d/e/1FAIpQLSfO1PVG7221D8VvX3ySqN178as_SB68Hasb7x0q9qnMTcpt2w/viewform?usp=sf_link" target="_blank"><font size="4" color="red">หากไม่พบชื่อ สามารถแจ้งได้ที่นี่ ::Click Here::</font></a><center> -->
<?
}else{
?>
<br>
<table id="example" class="table table-striped table-bordered" width="100%">
<thead>
<tr>
<th width="30%" height="30"> <div align="center">เรื่อง</div></th>
<th width="10%"> <div align="center">ผู้เขียน</div></th>
<th width="10%"> <div align="center">เปิดอ่าน</div></th>
</tr>
</thead>
<?php
while($objResult = mysql_fetch_array($objQuery))
{
?>
<tr>
<td height="40"> <div align="center"><?php echo $objResult["title"];?></div></td>
<td><div align="center"><a href="JavaScript:if(confirm('ต้องการลบ <?=$objResult["nm"]?> ?') == true){window.location='cre-dele.php?id=<?=$objResult["id"]?>';}">ลบ</a></div></td>
<td><div align="center"><a href ="edit.php?id=<?=$objResult["id"]?>">แก้ไข</a></div></td>
</tr>
<?php
}
?>
</table>
<?php
mysql_close($objConnect);
?>
<a href="admin-ins.php" class="btn btn-success" role="button" aria-pressed="true">เพิ่มข้อมูล</a>
</div>
<script>
new DataTable('#example');
</script>
</body>
</html>