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

Current Path : home/irplbiz/public_html/lnselgallery/
Upload File :
Current File : /home/irplbiz/public_html/lnselgallery/categories.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 src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>

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



</head>



<body>

	<div class="container">

		<div class="wrapper">

			<div class="header">

				<div class="logo" style="margin-top: 20px;"><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>



			<!-- <form name="filter_by_cat" method="get" action="categories.php"> -->



			<label for="cat_id">Filter By Category: </label>

			<select class="cat_id" name="cat_id" id="cat_id">

				<option value="">All</option>

				<?php

				$sql_q = "select * from `ln_tbl_category`";



				$rows_q = mysql_query($sql_q);

				if (mysql_num_rows($rows_q) > 0) {

					while ($res_q = mysql_fetch_assoc($rows_q)) {

				?>

						<option value="<?php echo $res_q["id"]; ?>" <?php echo (isset($_REQUEST['id']) && $_REQUEST['id'] == $res_q["id"]) ? 'selected' : ''; ?>><?php echo $res_q["name"]; ?></option>

				<?php

					}

				}

				?>



			</select>





			<!-- </form> -->





			<div class="content-area">

				<!--<a href="cat.php"><h1>Back</h1></a>-->



				<?php





				if (isset($_REQUEST['id'])) {

					$sq1 = "select * from `ln_tbl_category` WHERE id='" . $_REQUEST['id'] . "'";

				}



				$rows1 = mysql_query($sq1);

				if (mysql_num_rows($rows1) > 0) {

					while ($res1 = mysql_fetch_assoc($rows1)) {

				?>

						<h1 class="heading">You are here: <a href="categories.php">Categories</a><span>&nbsp;<?php echo $res1["name"]; ?></span></h1>

				<?php

					}

				}

				?>





				<ul class="categories-list">



					<?php

					if (isset($_REQUEST['id'])) {







						$sq1 = "select * from `ln_tbl_gallery` WHERE find_in_set('" . $_REQUEST['id'] . "',cid) > 0";

					} else {

						$sq1 = "select * from `ln_tbl_gallery`";

					}





					$rows1 = mysql_query($sq1);

					if (mysql_num_rows($rows1) > 0) {

						while ($res1 = mysql_fetch_assoc($rows1)) {



					?>

							<li>

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

								<div class="cat-dtls">

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

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

								</div>



						<?php }

					} ?>

							</li>

							<!-- <li>

                	<a href="images/portfolio/big.jpg" rel="lightbox-gallery"><img src="images/porfolio/thumb.jpg" width="180" height="120" /></a>

                    <div class="cat-dtls">

                    	Rallis<br />

                        <a href="#">www.rallissingh.com</a>

                    </div>

                </li>

                <li>

                	<a href="images/portfolio/big.jpg" rel="lightbox-gallery"><img src="images/porfolio/thumb.jpg" width="180" height="120" /></a>

                    <div class="cat-dtls">

                    	Rallis<br />

                        <a href="#">www.rallissingh.com</a>

                    </div>

                </li>

                <li>

                	<a href="images/portfolio/big.jpg" rel="lightbox-gallery"><img src="images/porfolio/thumb.jpg" width="180" height="120" /></a>

                    <div class="cat-dtls">

                    	Rallis<br />

                        <a href="#">www.rallissingh.com</a>

                    </div>

                </li>

                <li>

                	<a href="images/portfolio/big.jpg" rel="lightbox-gallery"><img src="images/porfolio/thumb.jpg" width="180" height="120" /></a>

                    <div class="cat-dtls">

                    	Rallis<br />

                        <a href="#">www.rallissingh.com</a>

                    </div>

                </li>

                <li>

                	<a href="images/portfolio/big.jpg" rel="lightbox-gallery"><img src="images/porfolio/thumb.jpg" width="180" height="120" /></a>

                    <div class="cat-dtls">

                    	Rallis<br />

                        <a href="#">www.rallissingh.com</a>

                    </div>

                </li>

                <li>

                	<a href="images/portfolio/big.jpg" rel="lightbox-gallery"><img src="images/porfolio/thumb.jpg" width="180" height="120" /></a>

                    <div class="cat-dtls">

                    	Rallis<br />

                        <a href="#">www.rallissingh.com</a>

                    </div>

                </li>-->

				</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>

		<script>

			$(document).ready(function() {

				$(document).on("change", ".cat_id", function() {

					var cat_id = $(this).val();

					if (cat_id != '') {

						window.location.href = 'categories.php?id=' + cat_id;

					}else{

						window.location.href = 'categories.php';

					}



				});

			});

			//snigdho

		</script>

	</div>

</body>



</html>