Beruflich Dokumente
Kultur Dokumente
In the partial fulfillment of the requirements for the award of the degree of
MASTER OF TECHNOLOGY
IN
MASTER OF COMPUTER APPLICATION
Submitted by
T.V.N.L.THIRUPATHAMMA
(16A71F0016)
Under the Esteemed Guidance of
Dr.S.K.SATPATHY(P.hd)
Associate Professor.
2016-2019
NALANDA INSTITUTE OF ENGINEERING & TECHNOLOGY
(An ISO 9001-2000) Certified Institution, Approved by AICTE New Delhi & Affiliated
to JNT University Kakinada, Kakinada)
Siddhartha Nagar, Kantepudi(V), Sattenapalli(M), Guntur Dist – 522438,
08641-237863/64
CERTIFICATE
T.V.N.L.THIRUPATHAMMA
(16A71F0016)
ACKNOWLEDGEMENT
The Almighty has been bestowing us with his blessings throughout our life. I thank thou
force for all that he has done for me and my friends. We all are his disciples.Words are few to
express the feeling of thanks and gratitude to the following persons
I express my feelings and gratitude to my beloved parents without whose selfless help and
moral support and boundless enthusiasm, I am nothing. They helped me in every possible
way and the love bestowed on us deserves endless praise.
Last but not least, I express my sincere thanks to one and all and also to those whom I might
have missed to mention, who gave constant encouragement and help throughout my
educational career.
T.V.N.L.THIRUPATHAMMA
(16A71F0016)
WAMP Server
Installation Steps:
MODULES:
Module description:
Appending products details:
Administrator can take an important role in this module.
They can able to add new products to online system. All the
products are categorized by administrator. They have to append
price details, stock details and item details of all products to
online. Administrator has rights to add and delete product details
in online. They have to maintain all order details of each customer.
Customer registration:
Hardware Required:
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="cz"><head>
<?php
error_reporting(1);
include("index1.php");
?>
</head>
<body>
<div id="WholePage">
<div id="Inner">
<div id="Head">
<div id="Head_left">
</div>
<div id="Head_right">
<div id="Logo">
<div id="Name"><span
class="blue">F</span><span>ashion</span> <span
class="blue">S</span><span>hop</span> </div>
</div>
<div id="Top_menu"> <a class="kart"
href="?page=home"><span>CART</span></a> <a class="orders"
href="index.php?con=3"><span>GALLERY</span></a>
<a class="contact"
href="index.php?con=1"><span>CONTACT</span></a>
</div>
</div>
</div>
<div id="CentralPart">
<div id="LeftPart">
<div id="Menu">
<div id="Menu_header">
</div>
<h5> </h5>
<form method="post">
<input type="text" name="t1" value="search"
onfocus="if(this.value=='search'){this.value='';}"onBlur="if(this.value
==''){this.value='search';}"/>
</form>
<?php
extract($_REQUEST);
if(isset($sear))
$se=$_REQUEST['t1'];
if($se!=NULL)
echo "<script>location.href='index.php?se=$se'</script>";
?>
<h5> </h5>
<!--</form>-->
</div>
</div>
</span></a><br>
</span></a><br>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="RightPart">
<?php
include("config.php");
if(isset($se))
include("search.php");
if($_REQUEST['con']==1)
include("contact.php");
if($_REQUEST['con']==2)
include("about.php");
}
if($_REQUEST['con']==3)
include("gallery.php");
if($_REQUEST['con']==11)
include("register.php");
if($_REQUEST['con']==12)
include("login.php");
if($_REQUEST['con']==13)
include("welcome.php");
if($_REQUEST['con']==14)
include("viewitem.php");
}
if(!(isset($catg))and !(isset($con))and !(isset($se)))
include("home.php");
if(isset($catg)==1)
if($_REQUEST['subcatg']=='Casual Shirts')
include("casual.php");
if(isset($catg)==1)
if($_REQUEST['subcatg']=='Jeans')
include("jeans.php");
if(isset($catg)==1)
if($_REQUEST['subcatg']=='T-Shirts')
{
include("tshirt.php");
if(isset($catg)==1)
if($_REQUEST['subcatg']=='Footwear')
include("shoe.php");
if(isset($catg)==1)
if($_REQUEST['subcatg']=='Shorts')
include("shorts.php");
if(isset($catg)==1)
if($_REQUEST['subcatg']=='watches')
include("watch.php");
}
}
if(isset($catg)==2)
if($_REQUEST['subcatg']=='dresses')
include("dress.php");
if(isset($catg)==2)
if($_REQUEST['subcatg']=='Churidar Suits')
include("suits.php");
if(isset($catg)==2)
if($_REQUEST['subcatg']=='Sandals')
include("sandals.php");
}
}
if(isset($catg)==2)
if($_REQUEST['subcatg']=='Kurtas')
include("kurtas.php");
if(isset($catg)==2)
if($_REQUEST['subcatg']=='Office Wear')
include("office.php");
if(isset($catg)==2)
if($_REQUEST['subcatg']=='Artificial Jewellery')
include("jewel.php");
if(isset($catg)==3)
{
if($_REQUEST['subcatg']=='Baby Apparel')
include("baby.php");
if(isset($catg)==3)
if($_REQUEST['subcatg']=='Girls Apparel')
include("girls.php");
if(isset($catg)==3)
if($_REQUEST['subcatg']=='Boys Apparel')
include("boy.php");
if(isset($catg)==3)
if($_REQUEST['subcatg']=='Kids Toys')
{
include("toy.php");
?>
</div>
<div class="cleaner"></div>
</div>
<div id="Bottom">
</div>
</div>
</div>
</div>
</div>
</body></html>
Login.php
<?php
session_start();
include("config.php");
extract($_REQUEST);
$i=$_REQUEST['itemno'];
if(isset($sub))
$id=$_REQUEST['t1'];
$pass=$_REQUEST['p1'];
$arr=mysqli_fetch_array($sel);
$_SESSION['eid']=$id;
echo "<script>location.href='order.php?itemno=$i'</script>";
else
}
?>
<html>
<div>
<div style="width:25%;float:right">
<img src="usepics/7.jpg">
</div>
<br><br>
<center><fieldset style="background:#CC99CC;width:50%">
<br><br>
<form method="post">
<tr>
<td width="144"><label>
</label></td>
</tr>
<tr>
</tr>
<tr>
<td><label>
<div align="center">
</div>
</label></td>
<td><strong><a href="index.php?con=11"><font
color="#993333" size="+1" face="Bradley Hand ITC">Sign
Up</font></a></strong> </td>
</tr>
<tr>
</tr>
</form>
</table>
</fieldset></center>
</div>
</div>
<!--<div
style="width:100%;float:left"><center><b>Copyright©Priya
Gupta</b></center></div>
</div>-->
</body>
</html>
Register.php
<?php
//$conn=mysqli_connect("localhost","root","","shop");
include("config.php");
extract($_REQUEST);
if(isset($sub))
$title=$_REQUEST['sel1'];
$fname=$_REQUEST['t1'];
$lname=$_REQUEST['t2'];
$gen=$_REQUEST['r1'];
$id=$_REQUEST['t3'];
$pass=$_REQUEST['p1'];
$phone=$_REQUEST['t5'];
$add=$_REQUEST['t6'];
$city=$_REQUEST['t7'];
$coun=$_REQUEST['t8'];
$dob=$_REQUEST['t9'];
//$arr=mysqli_fetch_array($sel);
$q=mysqli_query($conn,$query);
$r=mysqli_num_rows($q);
if($r)
else
{
echo "<script>location.href='index.php?con=13 &
wel=$id'</script>";
?>
<html>
<head>
<script>
function fnam()
var fnam=/^[a-zA-Z]{4,15}$/;
if(document.f1.t1.value.search(fnam)==-1)
document.f1.t1.focus();
return false;
function lnam()
{
var lnam=/^[a-zA-Z]{4,15}$/;
if(document.f1.t2.value.search(lnam)==-1)
document.f1.t2.focus();
return false;
function email()
var email=/^[a-zA-Z0-9-_\.]+@[a-zA-Z]+\.[a-zA-Z]{2,3}$/;
if(document.f1.t3.value.search(email)==-1)
document.f1.t3.focus();
return false;
function pass()
var pass=/^[a-zA-Z0-9-_]{6,16}$/;
if(document.f1.p1.value.search(pass)==-1)
document.f1.p1.focus();
return false;
function phone()
var phn=/^[0-9]{9,14}$/;
if(document.f1.t5.value.search(phn)==-1)
document.f1.t5.focus();
return false;
function add()
if(document.f1.t6.value.search(add)==-1)
{
alert("enter correct address");
document.f1.t6.focus();
return false;
function city()
var city=/^[a-zA-Z]{5,30}$/;
if(document.f1.t7.value.search(city)==-1)
document.f1.t7.focus();
return false;
function coun()
var city=/^[a-zA-Z]{5,30}$/;
if(document.f1.t8.value.search(city)==-1)
return false;
function vali()
var nam=/^[a-zA-Z]{4,15}$/;
var email=/^[a-zA-Z0-9-_\.]+@[a-zA-Z]+\.[a-zA-Z]{2,3}$/;
var pass=/^[a-zA-Z0-9-_]{6,16}$/;
var phn=/^[0-9]{9,14}$/;
var city=/^[a-zA-Z]{5,30}$/;
if(document.f1.t1.value.search(nam)==-1)
document.f1.t1.focus();
return false;
else if(document.f1.t2.value.search(nam)==-1)
{
document.f1.t2.focus();
return false;
else if(document.f1.t3.value.search(email)==-1)
document.f1.t3.focus();
return false;
else if(document.f1.p1.value.search(pass)==-1)
document.f1.p1.focus();
return false;
else if(document.f1.t5.value.search(phn)==-1)
{
alert("enter correct phone no");
document.f1.t5.focus();
return false;
else if(document.f1.t6.value.search(add)==-1)
document.f1.t6.focus();
return false;
else if(document.f1.t7.value.search(city)==-1)
document.f1.t7.focus();
return false;
else if(document.f1.t8.value.search(city)==-1)
return false;
else
return true;
</script>
</head>
<body>
<div>
<div style="width:25%;float:right">
<br><br><br><br><br>
<img src="usepics/7.jpg">
</div>
<br><br>
<fieldset style="background:#CC99CC;width:50%">
<br><br>
<tr>
<td><label>
<option value="Mr.">Mr.</option>
<option value="Ms.">Ms.</option>
<option value="Mrs.">Mrs.</option>
</select>
</label></td>
</tr>
<tr>
<td width="192">
</tr>
<tr>
<td><div align="center"><font size="+1" face="Comic Sans
MS"><strong>Last name:</strong></font></div></td>
</tr>
<tr>
<strong>Male</strong>
<strong>Female</strong></td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr> <td><div align="center"><font size="+1" face="Comic Sans
MS"><b>Phone no: </b></font></div></td>
</tr>
<tr>
<td><label>
</label></td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td><div align="center"><strong><font size="+1" face="Comic
Sans MS">Date of Birth: </font></strong></div></td>
<td><label>
</label></td>
</tr>
<tr>
<td colspan="2"><label><br>
<center>
</center>
</label></td>
</tr>
</table>
</form>
</fieldset>
</div>
</center>
</div>
</body>
</html>
Products.php
<html>
<?php
include("config.php");
$catg=$_REQUEST['catg'];
$subcatg=$_REQUEST['subcatg'];
$n=1;
while($arr=mysqli_fetch_array($sel))
$i=$arr['itemno'];
if($n%4==0)
echo "<tr>";
}
echo "
<b>Item No:</b>".$arr['itemno'].
"<br><b>Price:</b>Rs ".$arr['price'].
"<br><b>Description:</b>".$arr['desc'].
</td>";
$n++;
echo "</tr></table>
</form>";
?>
<div><br>
</marquee>
</div>
</div>
</body>
</html>
Gallery.php
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- / fim dos arquivos utilizados pelo jQuery lightBox plugin -->
<script type="text/javascript">
$(function() {
$('#gallery a').lightBox();
});
</script>
<style type="text/css">
#gallery {
background-color:#FFFFFF;
padding: 10px;
width: 520px;
#gallery ul img {
color: #fff;
</style>
</head>
<body>
<br />
<br />
<div id="gallery">
<center>
<?php
echo "<ul>";
$p="#gallery";
$op=opendir("photos");
while($fr=readdir($op))
echo "<li>";
echo "</a>";
echo "</li>";
echo "</ul>";
?>
</center>
</div>
</div>
</body>
</html>
Contact.php
<?php
include("config.php");
extract($_REQUEST);
if(isset($sub))
$name=$_REQUEST['t1'];
$phone=$_REQUEST['t2'];
$email=$_REQUEST['t3'];
$subj=$_REQUEST['t4'];
$mesg=$_REQUEST['t5'];
?>
<html>
<head>
<script>
function name()
var name=/^[a-zA-Z]{4,15}$/;
if(document.f1.t1.value.search(name)==-1)
document.f1.t1.focus();
return false;
function phone()
var phone=/^[0-9]{10,15}$/;
if(document.f1.t2.value.search(phone)==-1)
document.f1.t2.focus();
return false;
function email()
{
var email=/^[a-zA-Z0-9-_\.]+@[a-zA-Z]+\.[a-zA-Z]{2,3}$/;
if(document.f1.t3.value.search(email)==-1)
document.f1.t3.focus();
return false;
function subj()
var subj=/^[a-zA_Z0-9]{5,100}$/;
if(document.f1.t4.value.search(subj)==-1)
document.f1.t4.focus();
return false;
function vali()
var name=/^[a-zA-Z]{4,15}$/;
var phone=/^[0-9]{10,15}$/;
var email=/^[a-zA-Z0-9-_\.]+@[a-zA-Z]+\.[a-zA-Z]{2,3}$/;
var subj=/^[a-zA_Z0-9]{5,100}$/;
var mesg=/^[a-zA_Z0-9]{10,300}$/;
if(document.f1.t1.value.search(name)==-1)
document.f1.t1.focus();
return false;
else if(document.f1.t2.value.search(phone)==-1)
document.f1.t2.focus();
return false;
else if(document.f1.t3.value.search(email)==-1)
{
alert("enter correct email");
document.f1.t3.focus();
return false;
else if(document.f1.t4.value.search(subj)==-1)
document.f1.t4.focus();
return false;
else
return true;
</script>
</head>
<div><br/><center><h2><font face="Lucida Handwriting" size="+1"
color="#00CCFF">CONTACT US</font></h2></center></div>
<div>
<p><br/>
</font>
<br>
<p> </p>
</div>
<div>
<div style="width:25%;float:left"><br><br><center><fieldset
style="width:25%;background-color:#CC99CC"><p><font size="+1"
face="Comic Sans MS">We at Fashion Shop value your views and
your concerns regarding our products and services. We would like
to know how we can serve you better. If you have any queries
please feel free to drop in your queries at
customercarecell@fashionshop.in and we will be happy to assist
you.</font></p>
</fieldset>
</center></div>
<div style="width:50%;float:right">
<div><br/><br>
</center></div>
<center><fieldset style="width:25%;border-
color:#006633;float:left">
<br><br>
<tr>
<td width="161"><label>
</label></td>
</tr>
<tr>
<td><font color="#996699" size="+1" face="Comic Sans
MS">Phone No: </font></td>
<td><label>
</label></td>
</tr>
<tr>
<td><label>
</label></td>
</tr>
<tr>
</tr>
<tr>
<td><label>
</tr>
<tr>
</tr>
</table>
</form>
</fieldset></center>
</div>
</div>
</div>
</body>
</html>
Search.php
<?php
include("config.php");
$se=$_REQUEST['se'];
$a=$arr['itemno'];
echo"<form method='post'><br><br><center><table
width='450' border='1' cellspacing='0' cellpadding='0'>
<tr>
<br>
<br><br><b> Price:</b>".$arr['price']."
<br><br><b> Details:</b>".$arr['info']."
<br><br></td>
</tr>
</table></center></form>";
?>
Config.php
<?php
$conn=mysqli_connect("localhost","root","","shop") or
die(mysqli_error());
?>
Style.css
/**
* @name jquery-lightbox-0.5.css
* @version 0.5
* @example Visit
http://leandrovieira.com/projects/jquery/lightbox/ for more
informations about this jQuery plugin
*/
#jquery-overlay {
position: absolute;
top: 0;
left: 0;
z-index: 90;
width: 100%;
height: 500px;
#jquery-lightbox {
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 100;
text-align: center;
line-height: 0;
#lightbox-container-image-box {
position: relative;
background-color: #fff;
width: 250px;
height: 250px;
margin: 0 auto;
#lightbox-loading {
position: absolute;
top: 40%;
left: 0%;
height: 25%;
width: 100%;
text-align: center;
line-height: 0;
#lightbox-nav {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 10;
#lightbox-nav-btnPrev, #lightbox-nav-btnNext {
width: 49%;
height: 100%;
zoom: 1;
display: block;
#lightbox-nav-btnPrev {
left: 0;
float: left;
#lightbox-nav-btnNext {
right: 0;
float: right;
#lightbox-container-image-data-box {
background-color: #fff;
margin: 0 auto;
line-height: 1.4em;
overflow: auto;
width: 100%;
padding: 0 10px 0;
#lightbox-container-image-data {
padding: 0 10px;
color: #666;
#lightbox-container-image-data #lightbox-image-details {
width: 70%;
float: left;
text-align: left;
#lightbox-image-details-currentNumber {
display: block;
clear: left;
padding-bottom: 1.0em;
#lightbox-secNav-btnClose {
width: 66px;
float: right;
padding-bottom: 0.7em;
Javascript
/**
* jQuery lightBox plugin
* @name jquery-lightbox-0.5.js
* @version 0.5
* @example Visit
http://leandrovieira.com/projects/jquery/lightbox/ for more
informations about this jQuery plugin
*/
(function($) {
/**
*/
$.fn.lightBox = function(settings) {
settings = jQuery.extend({
overlayBgColor: '#000', //
(string) Background color to overlay; inform a hexadecimal value
like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values
for the red, green, and blue values of the color.
overlayOpacity: 0.8, //
(integer) Opacity value to overlay; inform: 0.X. Where X are
number from 0 to 9
imageLoading: 'images1/lightbox-ico-
loading.gif', // (string) Path and the name of the loading
icon
imageBtnPrev: 'images1/lightbox-btn-
prev.gif', // (string) Path and the name of the prev
button image
imageBtnNext: 'images1/lightbox-btn-
next.gif', // (string) Path and the name of the next
button image
imageBtnClose: 'images1/lightbox-btn-
close.gif', // (string) Path and the name of the close btn
imageBlank:
'images1/lightbox-blank.gif', // (string) Path
and the name of a blank image (one pixel)
keyToClose: 'c', //
(string) (c = close) Letter to close the jQuery lightBox interface.
Beyond this letter, the letter X and the SCAPE key is used to.
keyToPrev: 'p', //
(string) (p = previous) Letter to show the previous image
keyToNext: 'n', //
(string) (n = next) Letter to show the next image.
imageArray: [],
activeImage: 0
},settings);
// Caching the jQuery object with all elements
matched
/**
*/
function _initialize() {
/**
*/
function _start(objClicked,jQueryMatchedObj) {
_set_interface();
settings.imageArray.length = 0;
settings.activeImage = 0;
if ( jQueryMatchedObj.length == 1 ) {
settings.imageArray.push(new
Array(objClicked.getAttribute('href'),objClicked.getAttribute('title')
));
} else {
settings.imageArray.push(new
Array(jQueryMatchedObj[i].getAttribute('href'),jQueryMatchedObj
[i].getAttribute('title')));
}
while (
settings.imageArray[settings.activeImage][0] !=
objClicked.getAttribute('href') ) {
settings.activeImage++;
_set_image_to_view();
/**
<div id="jquery-overlay"></div>
<div id="jquery-lightbox">
<div id="lightbox-container-image-box">
<div id="lightbox-container-image">
<img src="../fotos/XX.jpg"
id="lightbox-image">
<div id="lightbox-nav">
</div>
<div id="lightbox-loading">
<a href="#" id="lightbox-
loading-link">
<img
src="../images/lightbox-ico-loading.gif">
</a>
</div>
</div>
</div>
<div id="lightbox-container-image-data-
box">
<div id="lightbox-container-image-
data">
<div id="lightbox-image-details">
<span id="lightbox-image-
details-caption"></span>
<span id="lightbox-image-
details-currentNumber"></span>
</div>
<div id="lightbox-secNav">
<img
src="../images/lightbox-btn-close.gif">
</a>
</div>
</div>
</div>
</div>
*/
function _set_interface() {
$('body').append('<div id="jquery-
overlay"></div><div id="jquery-lightbox"><div id="lightbox-
container-image-box"><div id="lightbox-container-image"><img
id="lightbox-image"><div style="" id="lightbox-nav"><a href="#"
id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-
btnNext"></a></div><div id="lightbox-loading"><a href="#"
id="lightbox-loading-link"><img src="' + settings.imageLoading +
'"></a></div></div></div><div id="lightbox-container-image-
data-box"><div id="lightbox-container-image-data"><div
id="lightbox-image-details"><span id="lightbox-image-details-
caption"></span><span id="lightbox-image-details-
currentNumber"></span></div><div id="lightbox-secNav"><a
href="#" id="lightbox-secNav-btnClose"><img src="' +
settings.imageBtnClose + '"></a></div></div></div></div>');
$('#jquery-overlay').css({
backgroundColor:
settings.overlayBgColor,
opacity:
settings.overlayOpacity,
width: arrPageSizes[0],
height: arrPageSizes[1]
}).fadeIn();
$('#jquery-lightbox').css({
left: arrPageScroll[0]
}).show();
$('#jquery-overlay,#jquery-
lightbox').click(function() {
_finish();
});
$('#lightbox-loading-link,#lightbox-secNav-
btnClose').click(function() {
_finish();
return false;
});
// If window was resized, calculate the new
overlay dimensions
$(window).resize(function() {
$('#jquery-overlay').css({
width: arrPageSizes[0],
height: arrPageSizes[1]
});
$('#jquery-lightbox').css({
left: arrPageScroll[0]
});
});
/**
*
*/
$('#lightbox-loading').show();
if ( settings.fixedNavigation ) {
$('#lightbox-image,#lightbox-container-
image-data-box,#lightbox-image-details-currentNumber').hide();
} else {
$('#lightbox-image,#lightbox-nav,#lightbox-
nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-
data-box,#lightbox-image-details-currentNumber').hide();
objImagePreloader.onload = function() {
$('#lightbox-
image').attr('src',settings.imageArray[settings.activeImage][0]);
_resize_container_image_box(objImagePreloader.width,objI
magePreloader.height);
objImagePreloader.onload=function(){};
};
objImagePreloader.src =
settings.imageArray[settings.activeImage][0];
};
/**
*/
function
_resize_container_image_box(intImageWidth,intImageHeight) {
// Diferences
$('#lightbox-container-image-box').animate({
width: intWidth, height: intHeight
},settings.containerResizeSpeed,function() { _show_image(); });
if ( $.browser.msie ) {
___pause(250);
} else {
___pause(100);
$('#lightbox-container-image-data-box').css({
width: intImageWidth });
$('#lightbox-nav-btnPrev,#lightbox-nav-
btnNext').css({ height: intImageHeight +
(settings.containerBorderSize * 2) });
};
/**
*
*/
function _show_image() {
$('#lightbox-loading').hide();
$('#lightbox-image').fadeIn(function() {
_show_image_data();
_set_navigation();
});
_preload_neighbor_images();
};
/**
*/
function _show_image_data() {
$('#lightbox-container-image-data-
box').slideDown('fast');
$('#lightbox-image-details-caption').hide();
if ( settings.imageArray[settings.activeImage][1] ) {
$('#lightbox-image-details-
caption').html(settings.imageArray[settings.activeImage][1]).show(
);
if ( settings.imageArray.length > 1 ) {
$('#lightbox-image-details-
currentNumber').html(settings.txtImage + ' ' + (
settings.activeImage + 1 ) + ' ' + settings.txtOf + ' ' +
settings.imageArray.length).show();
/**
*/
function _set_navigation() {
$('#lightbox-nav').show();
$('#lightbox-nav-btnPrev,#lightbox-nav-
btnNext').css({ 'background' : 'transparent url(' +
settings.imageBlank + ') no-repeat' });
if ( settings.activeImage != 0 ) {
if ( settings.fixedNavigation ) {
$('#lightbox-nav-btnPrev').css({
'background' : 'url(' + settings.imageBtnPrev + ') left 15% no-repeat'
})
.unbind()
.bind('click',function() {
settings.activeImage =
settings.activeImage - 1;
_set_image_to_view();
return false;
});
} else {
$('#lightbox-nav-
btnPrev').unbind().hover(function() {
},function() {
$(this).css({ 'background' :
'transparent url(' + settings.imageBlank + ') no-repeat' });
}).show().bind('click',function() {
settings.activeImage =
settings.activeImage - 1;
_set_image_to_view();
return false;
});
}
// Show the next button, if not the last image in set
if ( settings.activeImage != (
settings.imageArray.length -1 ) ) {
if ( settings.fixedNavigation ) {
$('#lightbox-nav-btnNext').css({
'background' : 'url(' + settings.imageBtnNext + ') right 15% no-
repeat' })
.unbind()
.bind('click',function() {
settings.activeImage =
settings.activeImage + 1;
_set_image_to_view();
return false;
});
} else {
$('#lightbox-nav-
btnNext').unbind().hover(function() {
},function() {
$(this).css({ 'background' :
'transparent url(' + settings.imageBlank + ') no-repeat' });
}).show().bind('click',function() {
settings.activeImage =
settings.activeImage + 1;
_set_image_to_view();
return false;
});
_enable_keyboard_navigation();
/**
*/
function _enable_keyboard_navigation() {
$(document).keydown(function(objEvent) {
_keyboard_action(objEvent);
});
/**
*/
function _disable_keyboard_navigation() {
$(document).unbind();
/**
*/
function _keyboard_action(objEvent) {
// To ie
if ( objEvent == null ) {
keycode = event.keyCode;
escapeKey = 27;
// To Mozilla
} else {
keycode = objEvent.keyCode;
escapeKey = objEvent.DOM_VK_ESCAPE;
key =
String.fromCharCode(keycode).toLowerCase();
_finish();
}
// Verify the key to show the previous image
if ( settings.activeImage != 0 ) {
settings.activeImage =
settings.activeImage - 1;
_set_image_to_view();
_disable_keyboard_navigation();
if ( settings.activeImage != (
settings.imageArray.length - 1 ) ) {
settings.activeImage =
settings.activeImage + 1;
_set_image_to_view();
_disable_keyboard_navigation();
}
/**
*/
function _preload_neighbor_images() {
objNext.src =
settings.imageArray[settings.activeImage + 1][0];
if ( settings.activeImage > 0 ) {
objPrev.src =
settings.imageArray[settings.activeImage -1][0];
/**
*/
function _finish() {
$('#jquery-lightbox').remove();
$('#jquery-overlay').fadeOut(function() {
$('#jquery-overlay').remove(); });
// Show some elements to avoid conflict with
overlay in IE. These elements appear above the overlay.
/**
/ THIRD FUNCTION
* getPageSize() by quirksmode.com
*/
function ___getPageSize() {
xScroll = window.innerWidth +
window.scrollMaxX;
yScroll = window.innerHeight +
window.scrollMaxY;
xScroll = document.body.scrollWidth;
yScroll = document.body.scrollHeight;
xScroll = document.body.offsetWidth;
yScroll = document.body.offsetHeight;
if(document.documentElement.clientWidth){
windowWidth =
document.documentElement.clientWidth;
} else {
windowWidth = self.innerWidth;
windowHeight = self.innerHeight;
windowWidth =
document.documentElement.clientWidth;
windowHeight =
document.documentElement.clientHeight;
windowWidth = document.body.clientWidth;
windowHeight =
document.body.clientHeight;
} else {
pageHeight = yScroll;
pageWidth = xScroll;
} else {
pageWidth = windowWidth;
arrayPageSize = new
Array(pageWidth,pageHeight,windowWidth,windowHeight);
return arrayPageSize;
};
/**
/ THIRD FUNCTION
* getPageScroll() by quirksmode.com
*/
function ___getPageScroll() {
yScroll = self.pageYOffset;
xScroll = self.pageXOffset;
yScroll =
document.documentElement.scrollTop;
xScroll =
document.documentElement.scrollLeft;
yScroll = document.body.scrollTop;
xScroll = document.body.scrollLeft;
return arrayPageScroll;
};
/**
*/
function ___pause(ms) {
curDate = null;
};
return this.unbind('click').click(_initialize);
};
Databases
-- version 4.2.11
-- http://www.phpmyadmin.net
/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
--
-- Database: `shop`
--
-- --------------------------------------------------------
--
--
--
--
INSERT INTO `category` (`cat_id`, `category`) VALUES
('1', 'men'),
('2', 'women'),
('3', 'kids');
-- --------------------------------------------------------
--
--
--
--
('admin', 'priya123');
-- --------------------------------------------------------
--
--
--
--
-- --------------------------------------------------------
--
--
--
-- --------------------------------------------------------
--
--
--
--
('W Mix and match kurta ', 'k4', 'Rs1079', 'Medium', 'Priya Gupta',
'ac345', '36536356353', 'jaewahar Nagar', 'SBI', 'Delhi', 'ord326'),
('', '', 'Rs', 'Small', '', '', '', '', 'SBI', '', 'ord234'),
('United Colors of Benetton Mens', 'cs3', 'Rs1999', 'Small', '', '', '', '',
'SBI', '', 'ord204'),
('United Colors of Benetton Mens', 'cs3', 'Rs1999', 'Small', '', '', '', '',
'SBI', '', 'ord165');
-- --------------------------------------------------------
--
--
--
--
-- --------------------------------------------------------
--
-- Table structure for table `subcategory`
--
--
--
-- --------------------------------------------------------
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
/*!40101 SET
CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET
COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Thank You