%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 122.155.177.87 / Your IP : 122.155.177.87 Web Server : Apache/2 System : Linux cat177-87.static.lnwhostname.com 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64 User : apache ( 994) PHP Version : 5.3.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,putenv,eval MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/thungkhana/domains/thungkhanan.go.th/public_html/calendar/ |
Upload File : |
<?
session_start();
if($user==""){
$message = "س Login .";
$url = "../admin/index.php";
include("../admin/alert.php");
exit;
}
?>
<?php require_once('../admin/Connections/conndb.php'); ?>
<?php
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "fnews")) {
/******************************** Check file Upplan_4 *********************************************/
$created=$years."-".$month."-".$dated;
$insertSQL = "INSERT INTO calendar (person,created,time_1,detail_1,where_1,by_1,time_2,detail_2,where_2,by_2,time_3,detail_3,where_3,by_3,time_4,detail_4,where_4,by_4,time_5,detail_5,where_5,by_5,time_6,detail_6,where_6,by_6) VALUES ('$person','$created','$time_1','$detail_1','$where_1','$by_1','$time_2','$detail_2','$where_2','$by_2','$time_3','$detail_3','$where_3','$by_3','$time_4','$detail_4','$where_4','$by_4','$time_5','$detail_5','$where_5','$by_5','$time_6','$detail_6','$where_6','$by_6')";
mysql_select_db($database_conndb, $conndb);
$Result1 = mysql_query($insertSQL, $conndb) or die(mysql_error());
$insertGoTo = "add.php";
if (isset($_SERVER['QUERY_STRING']))
{
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
// header(sprintf("Location: %s", $insertGoTo));
}// close if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "fnews")) {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/template_a.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<!-- InstanceEndEditable -->
<?php
require_once('../admin/Connections/conndb.php');
mysql_select_db($database_conndb, $conndb);
?>
<title>ͧúǹӺŷ觢ҹ 99/9 1 Ӻ 觢ҹ ´ ѧѴ ѹ :: www.thungkhanan.go.th</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../styles.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #3CFFFF;
}
-->
</style>
<!--styles -->
<link href="../styles.css" rel="stylesheet" type="text/css" />
<link href="../css/Hover%20Buttons.css" rel="stylesheet" type="text/css"/>
<link href="../css/Hoverable-Sidenav.css" rel="stylesheet" type="text/css"/>
<!--<script src="https://platform-api.sharethis.com/js/sharethis.js#property=5d255a83d97c100012d80679&product='inline-share-buttons'
async='async" type='text/javascript'> -->
</script>
<!--styles -->
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style6 {color: #FFFFFF}
-->
</style></head>
<body background="../images/0bg1.png" style="background-repeat:no-repeat; background-position:top">
<!-- content -->
<div align="center">
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><tr>
<td height="640" align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top">
<table width="1000" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
<div class="hover13 column">
<div>
<figure><a href="http://www.thungkhanan.go.th/index.php"><img src="../images/menu-top_01.png" border="0" /></a></figure>
</div> </td>
<td align="center" valign="top">
<div class="hover13 column">
<div>
<figure><a href="http://www.thungkhanan.go.th/news.php?cat_id=31" target="_blank"><img src="../images/menu-top_02.png" border="0" /></a></figure>
</div> </td>
<td align="center" valign="top">
<div class="hover13 column">
<div>
<figure><a href="http://www.thungkhanan.go.th/albums/index.php" target="_blank"><img src="../images/menu-top_03.png" border="0" /></a></figure>
</div> </td>
<td align="center" valign="top">
<div class="hover13 column">
<div>
<figure><a href="http://www.thungkhanan.go.th/office.php"><img src="../images/menu-top_04.png" border="0" /></a></figure>
</div> </td>
<td align="center" valign="top">
<div class="hover13 column">
<div></div> </td>
</tr>
</table>
</td>
</tr>
</td>
</tr>
<tr>
<td align="center" valign="top"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion3" -->
<form method="POST" name="fnews" enctype="multipart/form-data" action="<?php echo $editFormAction; ?>">
<table width="98%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="21" class="title2"><div align="center" class="head">
<DIV align="center"><img src="../images/botton/calender.png" width="640" height="78"></DIV>
</div></td>
</tr>
<tr>
<td class="styles1"><div align="right"><a href="../admin/main.php" class="styles2">˹ Admin </a>| <a href="admin.php?date=<?=date('j-n-Y') ?>" class="styles2">ԷԹԺѵԧҹ </a> |<span class="red"> Чҹ</span> | <a href="../admin/signout.php" class="styles2">͡ҡк </a></div></td>
</tr>
<tr>
<td align="center" valign="top"><br />
<table width="600" border="0" cellpadding="2" cellspacing="2" class="box-center">
<tr align="center">
<td height="25" colspan="4" background="../images/bg4.gif" class="styles"></td>
</tr>
<tr>
<td width="100" height="30" align="right" class="styles1"> : </td>
<td height="30" colspan="3" align="left" class="red"><select name="person" size="1" class="styles1">
<option>-- ͡ѺԴͺ --</option>
<option value="1">¡ͺ.</option>
<option value="2">ͧ¡ 1</option>
<option value="3">ͧ¡ 2</option>
<option value="4">ӹѡҹѴ</option>
<option value="5">ǹäѧ</option>
<option value="6">ǹ¸</option>
<option value="7">ǹ֡</option>
<option value="8">ǹҸóآ</option>
</select>
**</td>
</tr>
<tr>
<td width="100" class="styles1" ><div align="right">ѹ : </div></td>
<td colspan="3" class="red"><div align="left">
<select name="dated" class="styles1">
<option value="0">ѹ</option>
<? $select_date = date("d");
for($i=1;$i<=31;$i++){
if($select_date==$i) $selected="selected='selected'";
else $selected="";
?>
<option value="<?=$i;?>" <?=$selected; ?>>
<?=$i;?>
</option>
<?
}
?>
</select>
<select name="month" class="styles1">
<option value="0" ></option>
<option value="1" <? if(date("m")==1)echo "selected='selected'";?> >Ҥ</option>
<option value="2" <? if(date("m")==2)echo "selected='selected'";?>>Ҿѹ</option>
<option value="3" <? if(date("m")==3)echo "selected='selected'";?>>չҤ</option>
<option value="4" <? if(date("m")==4)echo "selected='selected'";?>>¹</option>
<option value="5" <? if(date("m")==5)echo "selected='selected'";?>>Ҥ</option>
<option value="6" <? if(date("m")==6)echo "selected='selected'";?>>Զع¹</option>
<option value="7" <? if(date("m")==7)echo "selected='selected'";?>>áҤ</option>
<option value="8" <? if(date("m")==8)echo "selected='selected'";?>>ԧҤ</option>
<option value="9" <? if(date("m")==9)echo "selected='selected'";?>>ѹ¹</option>
<option value="10" <? if(date("m")==10)echo "selected='selected'";?>>Ҥ</option>
<option value="11" <? if(date("m")==11)echo "selected='selected'";?>>Ȩԡ¹</option>
<option value="12" <? if(date("m")==12)echo "selected='selected'";?>>ѹҤ</option>
</select>
<select name="years" class="styles1">
<option value="0"></option>
<?
$start_y=(date("Y")-0);
$end_y=(date("Y")+20);
$select_year = date("Y");
for($yy=$start_y; $yy<=$end_y; $yy++){
if($select_year==$yy) $selected_y="selected='selected'";
else $selected_y="";
?>
<option value="<?=$yy;?>" <?=$selected_y;?>>
<?=$yy+543;?>
</option>
<?
}
?>
</select>
** </div></td>
</tr>
<tr>
<td width="100" height="30" align="right" class="title"><div align="center"></div></td>
<td width="180" height="30" align="left" class="title"><div align="center">Чҹ</div></td>
<td width="160" align="left" class="title"><div align="center">ʶҹ</div></td>
<td width="160" align="left" class="title"><div align="center">Ҿ</div></td>
</tr>
<tr>
<td valign="top" class="styles1"><div align="center">
<input name="time_1" type="text" class="styles1" id="time_1" size="10" maxlength="5" />
. </div></td>
<td align="left" class="red"><div align="center">
<textarea name="detail_1" cols="25" rows="3" class="styles1" id="detail_1"></textarea>
</div></td>
<td align="left" valign="top" class="red"><div align="center">
<input name="where_1" type="text" id="where_1" size="20">
</div></td>
<td align="left" valign="top" class="red"><div align="center">
<input name="by_1" type="text" id="by_1" size="20">
</div></td>
</tr>
<tr>
<td valign="top" class="styles1"><div align="center">
<input name="time_2" type="text" class="styles1" id="time_2" size="10" maxlength="5" />
. </div></td>
<td align="left" class="red"><div align="center">
<textarea name="detail_2" cols="25" rows="3" class="styles1" id="detail_2"></textarea>
</div></td>
<td align="left" valign="top" class="red"><div align="center">
<input name="where_2" type="text" id="where_2" size="20">
</div></td>
<td align="left" valign="top" class="red"><div align="center">
<input name="by_2" type="text" id="by_2" size="20">
</div></td>
</tr>
<tr>
<td valign="top" class="styles1"><div align="center">
<input name="time_3" type="text" class="styles1" id="time_3" size="10" maxlength="5" />
. </div></td>
<td align="left" class="red"><div align="center">
<textarea name="detail_3" cols="25" rows="3" class="styles1" id="detail_3"></textarea>
</div></td>
<td align="left" valign="top" class="red"><div align="center">
<input name="where_3" type="text" id="where_3" size="20">
</div></td>
<td align="left" valign="top" class="red"><div align="center">
<input name="by_3" type="text" id="by_3" size="20">
</div></td>
</tr>
<tr>
<td valign="top" class="styles1"><div align="center">
<input name="time_4" type="text" class="styles1" id="time_4" size="10" maxlength="5" />
. </div></td>
<td align="left" class="red"><div align="center">
<textarea name="detail_4" cols="25" rows="3" class="styles1" id="detail_4"></textarea>
</div></td>
<td align="left" valign="top" class="red"><div align="center">
<input name="where_4" type="text" id="where_4" size="20">
</div></td>
<td align="left" valign="top" class="red"><div align="center">
<input name="by_4" type="text" id="by_4" size="20">
</div></td>
</tr>
<tr>
<td valign="top" class="styles1"><div align="center">
<input name="time_6" type="text" class="styles1" id="time_6" size="10" maxlength="5" />
. </div></td>
<td align="left" class="red"><div align="center">
<textarea name="detail_6" cols="25" rows="3" class="styles1" id="detail_6"></textarea>
</div></td>
<td align="left" valign="top" class="red"><div align="center">
<input name="where_6" type="text" id="where_6" size="20">
</div></td>
<td align="left" valign="top" class="red"><div align="center">
<input name="by_6" type="text" id="by_6" size="20">
</div></td>
</tr>
<tr>
<td valign="top" class="styles1"><div align="center">
<input name="time_5" type="text" class="styles1" id="time_5" size="10" maxlength="5" />
. </div></td>
<td align="left" class="red"><div align="center">
<textarea name="detail_5" cols="25" rows="3" class="styles1" id="detail_5"></textarea>
</div></td>
<td align="left" valign="top" class="red"><div align="center">
<input name="where_5" type="text" id="where_5" size="20">
</div></td>
<td align="left" valign="top" class="red"><div align="center">
<input name="by_5" type="text" id="by_5" size="20">
</div></td>
</tr>
<tr>
<td width="100" valign="top" class="styles1"><div align="center">
<input name="time_6" type="text" class="styles1" id="time_6" size="10" maxlength="5" />
. </div></td>
<td width="180" align="left" class="red"><div align="center">
<textarea name="detail_6" cols="25" rows="3" class="styles1" id="detail_6"></textarea>
</div></td>
<td width="160" align="left" valign="top" class="red"><div align="center">
<input name="where_6" type="text" id="where_6" size="20">
</div></td>
<td width="160" align="left" valign="top" class="red"><div align="center">
<input name="by_6" type="text" id="by_6" size="20">
</div></td>
</tr>
<tr>
<td height="30" colspan="4" align="right" class="red"><div align="center"> س㹪ͧͧ ** ú </div></td>
</tr>
<tr>
<td height="25" colspan="4" background="../images/bg4.gif" >
<div align="center">
<input name="okbutton" type="submit" class="styles1" onMouseOver="check();" value="ѹ֡" />
<input name="clear" type="reset" class="styles1" id="reset" onClick="cc();" value="ҧͤ" />
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="30"> </td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="fnews">
</form>
<script language="javascript">
function cc() {
fnews.person.value="";
fnews.dated.value="";
fnews.month.value="";
fnews.years.value="";
fnews.time_1.value="";
fnews.detail_1.value="";
fnews.where_1.value="";
fnews.by_1.value="";
}
function check() {
if(fnews.person.value==""){
alert ("س͡ / ͧ");
fnews.person.focus();
}
else if (fnews.dated.value==""){
alert ("س͡ѹС");
fnews.dated.focus();
}
else if (fnews.month.value==""){
alert ("س͡С");
fnews.month.focus();
}
else if (fnews.years.value==""){
alert ("س͡ .. С");
fnews.years.focus();
}
else if (fnews.time_1.value==""){
alert ("سк");
fnews.time_1.focus();
}
else if (fnews.detail_1.value==""){
alert ("سЧҹ");
fnews.detail_1.focus();
}
else if (fnews.where_1.value==""){
alert ("سʶҹ");
fnews.where_1.focus();
}
else if (fnews.by_1.value==""){
alert ("س/ͧ");
fnews.by_1.focus();
}
}
</script>
<!-- InstanceEndEditable --></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top" style="background-repeat:no-repeat"><img src="../images/foot.png"></td>
</tr>
</table>
</div>
<!-- end_content -->
<tr><td><a style="display:scroll;position:fixed;bottom:5px;right:5px;" class="backtotop" href="#top" rel="nofollow" title="Back to Top"><img src="../images/up.png" border="0" /></a></td>
</tr>
<map name="Map6" id="Map6"><area shape="rect" coords="210,1,302,41" href="http://www.tratlocal.go.th/index.php" target="_blank" />
</map>
</body>
<!-- InstanceEnd --></html>
<?php
if($conndb)
{
mysql_close($conndb);
unset($conndb);
}
?>