Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
nayongnua
/
domains
/
nayongnua.go.th
/
public_html
/
calendar
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/nayongnua/domains/nayongnua.go.th/public_html/calendar/index.php
<?php require_once('../admin/Connections/conndb.php'); ?> <?php //echo $this_date; /*$date_i=$_GET[date_i]; $temp=explode("/",$date_i); $input=$temp[2]."-".$temp[1]."-".$temp[0]; //$sql="select * from table where field_date='$input' "*/ //echo $input; if(isset($_POST[this_date])){ $date=$_POST[this_date]; } else{ $date=$_GET[date]; } $temp=explode("-",$date); $input=$temp[2]."-".$temp[1]."-".$temp[0]; // echo $input; $y=$temp[2]+543; $m=$temp[1]; switch($m) { case "1": $printmonth = "ม.ค."; break; case "2": $printmonth = "ก.พ."; break; case "3": $printmonth = "มี.ค."; break; case "4": $printmonth = "เม.ย."; break; case "5": $printmonth = "พ.ค."; break; case "6": $printmonth = "มิ.ย."; break; case "7": $printmonth = "ก.ค."; break; case "8": $printmonth = "ส.ค."; break; case "9": $printmonth = "ก.ย."; break; case "10": $printmonth = "ต.ค."; break; case "11": $printmonth = "พ.ย."; break; case "12": $printmonth = "ธ.ค."; break; } $date_review=$temp[0]." ".$printmonth." ".$y; /*if(isset($_POST[person])){ $person=$_POST[person]; } else{ $person=$_GET[person]; }*/ //echo " new = ".$person; if($person == " " || $person == "all" || $persons=="0"){ //echo "empty value".$_POST['person']; mysql_select_db($database_conndb, $conndb); $query_rsNews = "SELECT * FROM calendar ORDER BY person ASC, created DESC"; $rsNews = mysql_query($query_rsNews, $conndb) or die(mysql_error()); $row_rsNews = mysql_fetch_assoc($rsNews); $totalRows_rsNews = mysql_num_rows($rsNews); } else { //echo "not empty value".$_POST['person']; // $created=$years."-".$month."-".$dated; mysql_select_db($database_conndb, $conndb); $query_rsNews = "SELECT * FROM calendar where created = '".$input."' ORDER BY person"; //echo $query_rsNews; $rsNews = mysql_query($query_rsNews, $conndb) or die(mysql_error()); $row_rsNews = mysql_fetch_assoc($rsNews); $totalRows_rsNews = mysql_num_rows($rsNews); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><!-- InstanceBegin template="/Templates/template_a.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <!-- InstanceBeginEditable name="doctitle" --> <link href='cal/CalendarControl.css' rel='stylesheet' type='text/css'> <script language='JavaScript' src='cal/CalendarControl.js'></script> <!-- InstanceEndEditable --> <title>องค์การบริหารส่วนตำบลนาโยงเหนือ หมู่ที่ 4 ถนนนาโยง - ย่านตาขาว ตำบลนาโยงเหนือ อำเภอนาโยง จังหวัดตรัง 92170 : www.nayongnue.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 --> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } //--> </script> <script type="text/javascript" language="JavaScript1.2" src="../Templates/stm31.js"></script> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #0099FF; } .style2 {color: #CC6633} --> </style></head> <body background="../images/tem_b1.jpg" style="background-repeat:no-repeat; background-position:top"> <div align="center" > <table width="980" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"><div align="center"> <table width="980" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"><div align="center"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="980" height="650"> <param name="movie" value="../images/head.swf"> <param name="quality" value="high"> <embed src="../images/head.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="980" height="650"></embed> </object> </div></td> </tr> </table> </div></td> </tr> <tr> <td> <tr> <td valign="top"><div align="center"> <table width="980" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="50" valign="top"> </td> </tr> <tr> <td height="1500" valign="top"><div align="center"><!-- InstanceBeginEditable name="EditRegion3" --> <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="0"> <tr> <td class="title2"><div align="center"><img src="../images/17.png" width="600" height="53"></div></td> </tr> <tr> <td class="styles1"><form id="form1" name="form1" method="POST" action="index.php"> <div align="right">เลือกวันที่ :: <style> input {border:1px solid #0080C0} .dateinput{background:url(images/date.gif) top left no-repeat; border:solid 1px #0080C0; padding-left:20px; } </style> <input name='this_date' type='text' id='date' value='<?=date('j-n-Y') ?>' class='dateinput' onfocus='showCalendarControl(this);' size='10' /> <label> <input name="Submit" type="submit" class="btn-s" value="ตกลง"> </label> </div> </form></td> </tr> <tr> <td colspan="3" align="left" valign="top" class="title"><div align="center">ปฏิทินปฏิบัติงาน ประจำวันที่ <? echo $date_review; ?> </div></td> </tr> <tr> <td colspan="3" align="left" valign="top"> </td> </tr> <tr> <td colspan="3" align="left" valign="top"><div align="center"> <?php if ($totalRows_rsNews > 0) { // Show if recordset not empty do { ?> <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#999999"> <tr> <td height="25" colspan="4" bgcolor="#FF9900" class="styles"><div align="left"> <? if($row_rsNews[person]== "1"){ echo "นายก อบต."; } else if($row_rsNews[person]== "2"){ echo "รองนายกคนที่ 1"; }else if($row_rsNews[person]== "3"){ echo "รองนายกคนที่ 2"; }else if($row_rsNews[person]== "4"){ echo "สำนักงานปลัด"; }else if($row_rsNews[person]== "5"){ echo "ส่วนคลัง"; }else if($row_rsNews[person]== "6"){ echo "ส่วนโยธา"; } ?> <a href="edit.php?id=<?php echo $row_rsNews[id]; ?>"></a> <a href="javascript:confirmDelete('delete.php?id=<?php echo $row_rsNews[id]; ?>')"></a></div></td> </tr> <tr> <td width="10%" height="20" bgcolor="#FFD6C4" class="styles1"><div align="center">เวลา</div></td> <td width="60%" height="20" bgcolor="#FFD6C4" class="styles1"><div align="center">วาระงาน</div></td> <td width="15%" height="20" bgcolor="#FFD6C4" class="styles1"><div align="center">สถานที่</div></td> <td width="15%" height="20" bgcolor="#FFD6C4" class="styles1"><div align="center">เจ้าภาพ</div></td> </tr> <? if($row_rsNews[time_1]!="" || $row_rsNews[detail_1]!="" || $row_rsNews[where_1]!="" || $row_rsNews[by_1]!="") { ?> <tr> <td width="10%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="center"> <?php echo $row_rsNews[time_1]; ?> </div></td> <td width="60%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"> <?php echo $row_rsNews[detail_1]; ?></td> <td width="15%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="left"> <?php echo $row_rsNews[where_1]; ?> </div></td> <td width="15%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="left"> <?php echo $row_rsNews[by_1]; ?> </div></td> </tr> <? } if($row_rsNews[time_2]!="" || $row_rsNews[detail_2]!="" || $row_rsNews[where_2]!="" || $row_rsNews[by_2]!="") { ?> <tr> <td width="10%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="center"> <?php echo $row_rsNews[time_2]; ?> </div></td> <td width="60%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"> <?php echo $row_rsNews[detail_2]; ?></td> <td width="15%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="left"> <?php echo $row_rsNews[where_2]; ?> </div></td> <td width="15%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="left"> <?php echo $row_rsNews[by_2]; ?> </div></td> </tr> <? } if($row_rsNews[time_3]!="" || $row_rsNews[detail_3]!="" || $row_rsNews[where_3]!="" || $row_rsNews[by_3]!="") { ?> <tr> <td width="10%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="center"> <?php echo $row_rsNews[time_3]; ?> </div></td> <td width="60%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"> <?php echo $row_rsNews[detail_3]; ?></td> <td width="15%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="left"> <?php echo $row_rsNews[where_3]; ?> </div></td> <td width="15%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="left"> <?php echo $row_rsNews[by_3]; ?> </div></td> </tr> <? } if($row_rsNews[time_4]!="" || $row_rsNews[detail_4]!="" || $row_rsNews[where_4]!="" || $row_rsNews[by_4]!="") { ?> <tr> <td width="10%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="center"> <?php echo $row_rsNews[time_4]; ?> </div></td> <td width="60%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"> <?php echo $row_rsNews[detail_4]; ?></td> <td width="15%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="left"> <?php echo $row_rsNews[where_4]; ?> </div></td> <td width="15%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="left"> <?php echo $row_rsNews[by_4]; ?> </div></td> </tr> <? } if($row_rsNews[time_5]!="" || $row_rsNews[detail_5]!="" || $row_rsNews[where_5]!="" || $row_rsNews[by_5]!="") { ?> <tr> <td width="10%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="center"> <?php echo $row_rsNews[time_5]; ?> </div></td> <td width="60%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"> <?php echo $row_rsNews[detail_5]; ?></td> <td width="15%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="left"> <?php echo $row_rsNews[where_5]; ?> </div></td> <td width="15%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="left"> <?php echo $row_rsNews[by_5]; ?> </div></td> </tr> <? } if($row_rsNews[time_6]!="" || $row_rsNews[detail_6]!="" || $row_rsNews[where_6]!="" || $row_rsNews[by_6]!="") { ?> <tr> <td width="10%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="center"> <?php echo $row_rsNews[time_6]; ?> </div></td> <td width="60%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"> <?php echo $row_rsNews[detail_6]; ?></td> <td width="15%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="left"> <?php echo $row_rsNews[where_6]; ?> </div></td> <td width="15%" height="20" valign="top" bgcolor="#FFFFFF" class="styles1"><div align="left"> <?php echo $row_rsNews[by_6]; ?> </div></td> </tr> <? } ?> </table> <?php } while ($row_rsNews = mysql_fetch_assoc($rsNews)); } // Show if recordset not empty ?> </div></td> </tr> <?if ($totalRows_rsNews == 0) { // Show if recordset empty ?> <tr> <td height="100" colspan="4" bgcolor="#FFFFFF" class="red"><div align="center">ไม่มีวาระงาน </div></td> </tr> <? } ?> <tr> <td colspan="3" align="left" valign="top"> </td> </tr> </table> <!-- InstanceEndEditable --></div></td> </tr> </table> </div></td> </tr> <tr> <td height="200" valign="top"><table width="980" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="100" valign="top" background="../images/foot.jpg"><div align="center" class="footer"> <p><img src="../images/foot1.png" width="980" height="675" border="0" usemap="#Map6"> <map name="Map3"> <area shape="rect" coords="561,157,826,175" href="http://main.pasworld.co.th/" target="_blank"> </map> </p> <p> </p> </div></td> </tr> </table></td> </tr> </table> </div> <map name="Map"><area shape="rect" coords="464,116,966,154" href="http://main.pasworld.co.th/" target="_blank"> </map> <map name="Map2"><area shape="rect" coords="613,181,964,215" href="http://main.pasworld.co.th/" target="_blank"> </map> <map name="Map4"><area shape="rect" coords="569,179,832,202" href="http://main.pasworld.co.th/" target="_blank"> </map> <map name="Map5"><area shape="rect" coords="335,199,642,224" href="http://main.pasworld.co.th/" target="_blank"> </map> <map name="Map6"><area shape="rect" coords="333,628,642,647" href="http://main.pasworld.co.th/" target="_blank"> </map></body> <!-- InstanceEnd --></html> <?php mysql_free_result($rsNews); if($conndb) { mysql_close($conndb); unset($conndb); } ?>