You are on page 1of 45

COLLEGE WEB SITE

PGM.No :
Date :
<Index.html>
<html>
<head>
<title>College Website</title>
<frameset rows="30%,*">
<frame src="Top.html" id="top">
</frame>
<frameset cols="10%,*">
<frame src="Menu.html" id="menu">
</frame>
<frameset cols="100%,*">
<frame src="Content.html" name="content">
<h3>Academics</h3>
</frame>
</frameset>
</frameset>
</frameset>
</head>
</html>
<Top.html>
<html>
<head>
</head>
<center>
<h1>
<img src="logo.jpg" width="100px" height="100px"/>
Sri Chandrasekharendra Saraswathi Viswa Mahavidyalaya
</h1>
</center>
</head></html>
<Content.html>
<html>
<body>
<div><center> <h1><u>Home<u></h1></center></div>
<center><p>Welcome to SCSVMV university portal.</p></center></head></html>
<Menu.html>

<html>
<body>
<p>
<a href="Content.html" target="content" >Home</a>
</p>
<p>
<a href="Academics.html" target="content" >Departments</a>
</p>
<p>
<a href="Administration.html" target="content" >administration</a>
</p>
<p>
<a href="FeeStructure.html" target="content">Fee Structure</a>
</p>
<p>
<a href="Faculty.html" target="content">Faculty</a>
</p>
</body>
</html>
<Academics.html>
<html>
<body>
<center>
<h3>Our Academics</h3>
<table >
<th>Departments</th>
<tr><td><a href="CSE.html">CSE</a></td></tr>
<tr><td><a href="EEE.html">EEE</td></tr>
<tr><td><a href="ECE.html">ECE</td></tr>
<tr><td><a href="Mech.html">Mech</td></tr>
<tr><td><a href="IT.html">IT</td></tr>
</body>
</html>
<CSE.html>
<html>
<center>
<h2>
Welcome to CSE
</h2>
</center></html>
<ECE.html>

<html>
<center>
<h2>
Welcome to ECE
</h2>
</center></html>
<EEE.html>
<html>
<center>
<h2>
Welcome to EEE
</h2></center></html>
<Mech.html>
<html>
<center>
<h2>
Welcome to MECH
</h2></center></html>
<IT.html>
<html>
<center>
<h2>
Welcome to IT
</h2></center></html>
<Administration.html>
<html>
<body>
<center>
<h3>Our Administration</h3>
</center></body></html>
<FeeStructure.html>
<html>
<head>
<center><h1>FEE STRUCTURE</h1></center>
<style>
#table
{
background-color:#F0E68C;
font-color:#B22222;

}
td
{
color:#B22222;
}
th
{
color:#B22222;
}
</style>
<title>FEE STRUCTURE</title>
<table >
<tr>
<th>
<th>TUTION FEE</th>
<th>LAB FEE</th>
<th>LIBRARY FEE</th>
<th>CAUTION DEPOSITE</th>
<th>TOTAL</th>
</tr>
<tr>
<th>BE 4TH YEAR</th>
<td>26000</td>
<td>2000</td>
<td>1000</td>
<td>----</td>
<td>29000</td>
</tr>
<tr>
<th>BE 3RD YEAR</th>
<td>29000</td>
<td>5000</td>
<td>2000</td>
<td>----</td>
<td>36000</td>
</tr>
<tr>
<th>BE 2ND YEAR</th>
<td>32000</td>
<td>6000</td>
<td>3000</td>
<td>----</td>
<td>41000</td>
</tr>

<tr>
<th>BE 1STYEAR </th>
<td>35000</td>
<td>7000</td>
<td>4000</td>
<td>20000</td>
<td>66000</td>
</tr>
<tr></table></head></html>
<Faculty.html>
<html>
<body>
<center>
<h2><u>Our Faculty</u></h2>
<center>
<p style="font-size:20px;" align=left>Chancellor : Prof.Dr.S.Jayarama Reddy <br>
Vice Chancellor : Prof.Dr.V.S.Vishnu Potty <br>
Registrar : Prof.Dr.G. Srinivasu </p></center></body></html>

Basic Calculator

PGM. No. :
Date
:
<html>
<head>
<h1 align="center"><u>Calculator</u></h1>
<style>
body
{
padding-top:100px;
}
</style>
</head>
<body>
<form class="form" name="calc">
<center>
<input type="text" name="input" placeholder="Input Values" />
<table border="6" overflow="auto" >
<br/>
<input type="input" value="1" onclick="calc.input.value+='1'"/>1</input>&nbsp;
<input type="input" value="2" onclick="calc.input.value+='2'" />2</input>&nbsp;
<input type="input" value="3" onclick="calc.input.value+='3'" />3</input> &nbsp;
<input type="input" value="+" onclick="calc.input.value+='+'" />+</input> &nbsp;
<br/>
<input type="input" value="4" onclick="calc.input.value+='4'"/> 4</input>&nbsp;
<input type="input" value="5" onclick="calc.input.value+='5'" />5</input>&nbsp;
<input type="input" value="6" onclick="calc.input.value+='6'" />6</input> &nbsp;
<input type="input" value="-" onclick="calc.input.value+='-'" /> -</input>&nbsp;
<br/>
<input type="input" value="7" onclick="calc.input.value+='7'"/> 7</input>&nbsp;
<input type="input" value="8" onclick="calc.input.value+='8'" />8</input> &nbsp;
<input type="input" value="9" onclick="calc.input.value+='9'" />9</input> &nbsp;
<input type="input" value="/" onclick="calc.input.value+='/'" />/</input> &nbsp;
<br/>
<input type="input" value="0" onclick="calc.input.value+='0'"/>0</input> &nbsp;
<input type="input" value="C" onclick="calc.input.value=''" />C</input>&nbsp;
<input type="input" value="*" onclick="calc.input.value+='*'" />*</input> &nbsp;
<input type="input" value="%" onclick="calc.input.value+='%'" />%</input> &nbsp;
<br/>
<input type="input" value="Execute" onclick="calc.input.value=eval(calc.input.value)"/ >
&nbsp;</table></center></body></html>

Email Validation using Java Script

PGM. No.:
Date :
<html>
<head>
<title>Email Validation</title>
<script type="text/javascript">
function button1_click()
{
if(mail.text1.value.length==0 ||
mail.text2.value.length==0 ||
mail.text3.value.length==0 ||
mail.text4.value.length==0 ||
mail.text5.value.length==0 ||
mail.text6.value.length==0 )
{
alert("please fill the required fields");
}
else
{
alert("account creation has been validated");
}
}
</script>
</head>
<center><h1>Email Account page validation</h1></center>
</br><hr></br></br>
<form name="mail" id="email"s>
Name: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input id="text1" type="text"></br>
Username:
<input id="text2" type="text"></br>
password: &nbsp;
<input id="text3" type="password"></br>
Email: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input id="text4" type="text"></br>
Telephone:
<input id="text5" type="text"></br>
Location:
<input id="text6" type="text"></br>
<input id="button1" type="button" value="submit" onclick="button1_click();">
</form>
</body>
</html>

Arithmetic calculation using Java Script

PGM.No :
Data :
<html>
<head>
<title>arithmetic on different types</title>
<script type="text/javascript">
n1=prompt("enter the first number","");
n2=prompt("enter the second number","");
n1=parseInt(n1);
n2=parseInt(n2);
sum=n1+n2;
sub=n1-n2;
prod=n1*n2;
div=n1/n2;
document.write("the first number is"+n1+"</br>");
document.write("the second number is"+n2+"</br>");
document.write("the sum is"+sum+"</br>");
document.write("the difference is"+sub+"</br>");
document.write("the product is"+prod+"</br>");
document.write("the division value is"+div+"</br>");
</script>
</head>
</html>

Sorting by Ascending Order using Java Script

PGM. No. :
Date
:
<html>
<head> </head>
<body>
<h1>click the button to get the Number Sorted</h1>
<input type="button" onclick="array_size()" value="Get ArraySize"/>
</body>
<script type="text/javascript">
var num=0;
number=0;
var numarray=new Array();
function array_size()
{
num=prompt("enter how many number to be sorted","");
number=parseInt(num);
get_numbers();
}
function get_numbers()
{
if(number!=null && number!="")
{
for(i=0;i<number;i++)
{
n=prompt("Enter the number to be sorted","");
numarray[i]=parseInt(n);
}
}
sorting();
}
function sorting()
{
document.writeln("<h1>sorted Array<h1>");
document.writeln(numarray.sort(sortNumber));
document.writeln("");
}
function sortNumber(a,b)
{
return a-b;
} </script>
</html>

Sorting by Descending Order using Java Script

PGM.No :
Date :
<html>
<head></head>
<script type="text/javascript">
var num=0;
number=0;
var numarray=new Array();
function array_size()
{
num=prompt("enter how many number to be sorted","");
number=parseInt(num);
get_numbers();
}
function get_numbers()
{
if(number!=null && number!="")
{
for(i=0;i<number;i++)
{
n=prompt("Enter the number to be sorted","");
numarray[i]=parseInt(n);
}
}
sorting();
}
function sorting()
{
document.writeln("<h1>sorted Array<h1>");
document.writeln(numarray.sort(sortNumber));
document.writeln("");
}
function sortNumber(a,b)
{
return b-a;
}
</script> <body>
<h1>click the button to get the Number Sorted</h1>
<input type="button" onclick="array_size()" value="Get ArraySize"/>
</body> </html>

Exception Handling Using Java Script

PGM. No. :
Date
:
<html>
<body>
<p>Please Input a Number Between 5 and 10:</p>
<input id="demo" type="text">
<input type="button" onclick="myfunction()" value="Test Input"></input>
<p id="message"></p>
</body>
<script>
function myfunction()
{
var message,x;
message=document.getElementById("message");
message.innerHTML="";
x=document.getElementById("demo").value;
try
{
if(x=="")throw" is Empty";
if(isNaN(x))throw" not a number";
if(x>10)throw" too high";
if(x<5)throw" too low";
if(x>5&&x<10)
throw"<br/>Yours is a correct choice"
}
catch(err)
{
message.innerHTML="Input"+err;
}
finally
{
document.getElementById("demo").value="";
}
}
</script>
</html>

CSS - Simple Style Sheet

PGM.No :
Date
:
<Css.html>
<html>
<head>
<link href="stylesheet.css" rel="stylesheet">
<title>Styling</title>
<style>#div_style
{
padding-left:600px;
padding-top:200px;
}
#font_style
{
color:white;
}
</style>
</head>
<body>
<div id="div_style">
<div class ="style_internal"><p id="font_style">this is text</p></div>
</div>
</div>
<div class="row">
<p style="color:red">this is styled using Inline style sheet</p>
</div></body></html>
<stylesheet.css>
.style_internal
{
border:3px;
border-radius:20px;
height:150px;
width:150px;
background-color:black;
overflow:hidden;
}

INSERTION OF RECORDS INTO TABLE USING CD2CD

PGM.No :
Date
:
<Index.html>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>ONLINE CD TO CD LIBRARY</title>
</head>
<body>
<p align="center"><font size="5">O N L I N E&nbsp;&nbsp;&nbsp; C D&nbsp;&nbsp; D E
T A I L S&nbsp;&nbsp; TO&nbsp;&nbsp; C D - L I B R A R Y </font></p>
<p>&nbsp;</p>
<p align="center"><img border="2" src="pics/cd2cd.jpg" width="461" height="291"></p>
<p align="center">&nbsp;</p>
<p align="center"><a href= cd2cd.asp>ENTER</a></p>
</body>
</html>
<cd2cd.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<form name=cd2cd action=detailsadded.asp method=post>
<BODY>
<P align=center><FONT size=4><b>ENTER THE DETAILS</b></FONT></P>
<P align=center><FONT size=2>ENTER THE CD NUMBER :&nbsp;<INPUT id=text1
name=cnum ></FONT></P>
<P align=center><FONT size=2>ENTER THE CD NAME :&nbsp;<INPUT id=text2
name=cname ></FONT></P>
<P align=center><FONT size=2>ENTER THE CD CATEGORY :&nbsp;<INPUT id=text3
name=ccat ></FONT></P>
<P align=center><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<INPUT id=submit1 type=submit value="ADD TO LIBRARY"
name=submit1></FONT></P></BODY></form></HTML>

<detailsadded.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY>
<form name=detailsadded action=reserved.asp method=post>
<P align=center>&nbsp;<U>CD DETAILS&nbsp;</U></P>
<P align=center>
<%
dim cn1,cn2,cn3
cn1=Request.Form("cnum")
cn2=Request.Form("cname")
cn3=Request.Form("ccat")
Response.Write("CD NUMBER : ")
Response.Write(cn1)
Response.Write "<br>"
Response.Write("CD NAME : ")
Response.Write(cn2)
Response.Write "<br>"
Response.Write("CD CATEGORY : ")
Response.Write(cn3)
Response.Write "<br>"
Set Con=Server.CreateObject("adodb.connection")
Con.Open ("PROVIDER=Microsoft.Jet.4.0;DATA
SOURCE="&Server.MapPath("cd2cd.mdb"))
Set rs1=Server.CreateObject("adodb.recordset")
rs1.Open "insert into
cd2cd(c_num,c_name,c_cat)values('"&cn1&"','"&cn2&"','"&cn3&"')",Con
Response.Write("The CD details you have entered has been added to the CD library
database")
%>
</P>
</BODY>
</form>
</HTML>

TRANSACTION OF BOOKS USING INSERTION DELETION UPDATION

PGM No :
Date
:
<Frame.html>
<html>
<frameset cols="10%,90%">
<frame src="left.html" name=mahi>
<frame src="index.html" name=raju>
<head> my website</head>
</html>
<Left.html>
<html>
<title>book library</title>
<body>
<a href="booksearch.asp"target="raju"><font color="red"><b>Book
Search</b></font></a><br>
<a href="insert.asp" target="raju"><font color="black"><b>Book
Insert</b></font></a><br>
<a href="update.asp"target="raju"><font color="red"><b>Book
Update</b></font></a><br>
<a href="delete.asp"target="raju"><font color="black"><b>Book
Delete</b></font></a><br>
</body>
</html>
<Index.html>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<html>
<body>
<hr><br><br><br><br><br><br><br><br>
<center><br><br><font size="24" color="blue"> Welcome to Online Book
Library...</font></center><hr>
</body>
</html>
</body>
</html>

<Booksearch.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<form name=booksearch action=bookavail.asp method=post>
<BODY>
<P align=center><FONT size=7 color="olive"><b>Welcome to online Book Search
</b></FONT></P>
<hr>
<%
dim cn,rs
set cn=server.CreateObject("adodb.connection")
cn.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("libbook.mdb"))
set rs=server.CreateObject("ADODB.recordset")
rs.Open "select b_num,b_name,b_author from libbook",cn
if not rs.EOF then
%><P>
<TABLE borderColor=black cellSpacing=1 cellPadding=1 width="75%" border=2
align=center>
<TR> <TD>
<P align=center>BOOK NUMBER</P> </TD>
<TD>
<P align=center>BOOK NAME</P></TD>
<TD>
<P align=center>BOOK AUTHOR</P></TD>
<%while not rs.EOF%>
<tr> <td>
<P align=center><%=rs(0)%>&nbsp;</P></td>
<td>
<P align=center><%=rs(1)%>&nbsp;</P></td>
<td>
<P align=center><%=rs(2)%>&nbsp;</P></td>
<%rs.MoveNext
wend
end if
%>
</tr></TABLE></P>
<P>&nbsp;</P>
<hr></BODY>
</form>
</HTML>

<Insert.asp>

<%@ Language=VBScript %>


<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<form name=cd2cd action=insert1.asp method=post>
<BODY>
<P align=center><FONT color="red" size=10><b>Insert Book Details</b></FONT></P>
<hr>
<P align=center><FONT size=4>Enter Book Number :&nbsp;<INPUT id=text1 name=cnum
></FONT></P>
<P align=center><FONT size=4>Enter Book Name&nbsp;&nbsp;&nbsp; :&nbsp;<INPUT
id=text2 name=cname ></FONT></P>
<P align=center><FONT size=4>Enter Author Name :&nbsp;<INPUT id=text3 name=ccat
></FONT></P>
<P align=center><FONT
size=4>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<hr>
<center><INPUT id=submit1 type=submit value="Insert to Library"
name=submit1></FONT></P>
</BODY>
</form>
</HTML>
<Insert1.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY>
<form name=detailsadded action=reserved.asp method=post>
<P align=center>&nbsp;<U>Book DETAILS&nbsp;</U></P>
<P align=center>
<%
dim cn1,cn2,cn3
cn1=Request.Form("cnum")
cn2=Request.Form("cname")
cn3=Request.FOrm("ccat")
Response.Write("CBook NUMBER : ")
Response.Write(cn1)
Response.Write "<br>"

Response.Write("Book NAME : ")


Response.Write(cn2)
Response.Write "<br>"
Response.Write("Book CATEGORY : ")
Response.Write(cn3)
Response.Write "<br>"
set con=server.CreateObject("adodb.connection")
con.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("libbook.mdb"))
set rs1=server.CreateObject("adodb.recordset")
rs1.Open "insert into
libbook(b_num,b_name,b_author)values('"&cn1&"','"&cn2&"','"&cn3&"')",con
Response.Write("The Book details you have entered has been added to the Book library
database")
%>
</P>
</BODY>
</form>
</HTML>
<Update.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<form name=cd2cd action=update11.asp method=post>
<BODY>
<P align=center><FONT size=10 color="blue"><b>Update Book Details</b></FONT></P>
<hr>
<P align=center><FONT size=4>Enter Book Number : :&nbsp;<INPUT id=text1
name=cnum ></FONT></P>
<P align=center><FONT size=4>Enter Book Name&nbsp;&nbsp;&nbsp;:&nbsp;<INPUT
id=text2 name=cname ></FONT></P>
<P align=center><FONT size=4>Enter Author Name :&nbsp;<INPUT id=text3 name=ccat
></FONT></P>
<P align=center><FONT
size=4>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<hr><center><INPUT id=submit1 type=submit value="Update TO Library"
name=submit1></FONT></P>
</BODY>
</form>

</HTML>
<Update11.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY>
<form name=detailsadded action=reserved.asp method=post>
<P align=center>&nbsp;<U>Book DETAILS&nbsp;</U></P>
<P align=center>
<%
dim cn1,cn2,cn3
cn1=Request.Form("cnum")
cn2=Request.Form("cname")
cn3=Request.FOrm("ccat")
Response.Write("CBook NUMBER : ")
Response.Write(cn1)
Response.Write "<br>"
Response.Write("Book NAME : ")
Response.Write(cn2)
Response.Write "<br>"
Response.Write("Book CATEGORY : ")
Response.Write(cn3)
Response.Write "<br>"
set con=server.CreateObject("adodb.connection")
con.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("libbook.mdb"))
set rs1=server.CreateObject("adodb.recordset")
rs1.Open "update libbook set b_name='" & cn2 & "',b_author='" & cn3 & "'where libbook.
[b_num]='" & cn1 & "'",con
Response.Write("The Book details you have entered has been updated to the Book library
database")
%></P>
</BODY></form></HTML>
<Delete.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<form name=cd2cd action=delete1.asp method=post>

<BODY>
<P align=center><FONT size=10 color="Gray"><b>Delete Book Details</b></FONT></P>
<hr>
<P align=center><FONT size=4>Enter the Book Number :&nbsp;<INPUT id=text1
name=cnum ></FONT></P>
<P align=center><FONT
size=4>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<hr>
<center><INPUT id=submit1 type=submit value=Delete From Library
name=submit1></FONT></P>
</BODY>
</form>
</HTML>
<Delete1.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY>
<form name=detailsadded action=reserved.asp method=post>
<P align=center>&nbsp;<U>Book DETAILS&nbsp;</U></P>
<P align=center>
<%
dim cn1
cn1=Request.Form("cnum")
Response.Write("CBook NUMBER : ")
response.write(cn1)
Response.Write "<br>"
set con=server.CreateObject("adodb.connection")
con.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("libbook.mdb"))
set rs1=server.CreateObject("adodb.recordset")
rs1.Open "delete * from libbook where(libbook.[b_num]='" &cn1& "')",con
Response.Write("The Book details you have entered has been deleted from the Book library
database")
%>
</P></BODY>
</form></HTML>

e-BOOK SEARCH

PGM. No. :
Date
:
<main.html>
<html>
<head>
<title> BOOK SEARCH</title>
</head>
<frameset cols= "20%,75%">
<frame src="menu.html">
<frame src="bkg.html" name="secondframe">
</noframes>
</frameset>
</html>
<menu.html>
<html>
<head>
<title> MENU</title>
</head>
<body >
<h3> MENU</h3>
<ul>
<li><a href="booksearch.asp"
target="secondframe">SEARCH</a>
<li><a href="browse.asp"
target="secondframe">Browse</a>
</ul>
<p> <a href="libindex.html" target="libindex.html" >HOME</a>
</p>
</body>
</html>
<Bkg.html>
<html>
<body >
<p align="center">
<h1> WELCOME TO LIBRARY BOOK SEARCH </h1>
</p>
</body>
</html>
<libraryindex.html>
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>LIBRARY BOOK SEARCH</title>
</head>
<body >
<p align="center"><font size="10"> Book Search&nbsp;&nbsp;
</font></p>
<p>&nbsp;</p>
<p align="center"></p>
<p align="center">&nbsp;</p>
<p align="center"><a href="main.html">ENTER</a></p>
</body>
</html>
<booksearch.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<form name=booksearch action=bookavail.asp method=post>
<BODY >
<P>&nbsp;</P>
<P><FONT size=3>ENTER THE DETAILS</FONT></P>
<P><FONT size=3>ENTER THE BOOK NAME :&nbsp;<INPUT id=text2 name=dest
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<INPUT id=submit1 type=submit value="VIEW THE BOOK"
name=submit1></FONT></P>
</BODY>
</form>
</HTML>

<browse.asp>
<%@ Language=VBScript %>

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<form name=browse action=reserve.asp method=post>
<BODY>
<%
dim cn,rs
set cn=server.CreateObject("adodb.connection")
cn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
Server.MapPath("libbookdetails.mdb")
set rs=server.CreateObject("ADODB.recordset")
rs.Open "select * from librarybook",cn
if not rs.EOF then
%>
<P>
<TABLE borderColor=black cellSpacing=2 cellPadding=2 width="75%" border=2
align=center>
<TR>
<TD>
<P align=center><b>BOOK NUMBER</b></P> </TD>
<TD>
<P align=center><b>BOOK NAME</b></P></TD>
<TD>
<P align=center><b>BOOK AUTHOR</b></P></TD>
<%while not rs.EOF%>
<tr>
<td>
<P align=center><%=rs(0)%>&nbsp;</P></td>
<td>
<P align=center><%=rs(1)%>&nbsp;</P></td>
<td>
<P align=center><%=rs(2)%>&nbsp;</P></td>
<%rs.MoveNext
wend
end if
%>
</tr></TABLE></P>
<P>&nbsp;</P>
</BODY></form></HTML>
<bookavail.asp>

<%@ Language=VBScript %>


<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY >
<form name=bookavail action= open.asp method=post>
<P align=center>&nbsp;<U><b>BOOK DETAILS&nbsp;</b></U></P>
<P align=center>
<%
dim cn1,rs1,dest
Response.Write(" BOOK : ")
dest=Request.Form("dest")
response.write(dest)
Response.Write "<br><br>"
Response.Write(" AUTHOR : ")
dest1=Request.Form("dest1")
response.write(dest)
Response.Write "<br><br>"
set cn1=server.CreateObject("adodb.connection")
cn1.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
Server.MapPath("libbookdetails.mdb")
set rs1=server.CreateObject("adodb.recordset")
rs1.Open "select * from librarybook where bookname='" &dest& "'",cn1
if not rs1.EOF then
%>
<TABLE borderColor=black cellSpacing=2 cellPadding=2 width="75%" border=2>
<TR>
<th>BOOK NUMBER</th>
<th>BOOK NAME</th>
<th>BOOK NAME</th>
<th>LOOK UP</th>
</TR>
<%
while not rs1.EOF
%>
<tr>
<td><%response.write(rs1(0))%>&nbsp;</td>
<td><%response.write(rs1(1))%>&nbsp;</td>
<td><%response.write(rs1(2))%>&nbsp;</td>
<td><a href="<%response.write(rs1(3))%>">open</a></td>
</tr>
<%rs1.MoveNext
wend

end if
%>
</TABLE></P>
<P align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;</P>
</BODY>
</form>
</HTML>

e-Shopping

PGM No :
Date
:
<frame.html>
<html>
<frameset rows="20%,80%">
<frame src="top.html" name=top>
<frameset cols="15%,80%">
<frame src="left.html" name=left>
<frame src="index.html" name=index>
<head>e-Shoppe</head>
</html>
<left.html>
<html>
<title>my coll</title>
<body>
<h3><b>Category:</h3><hr>
<a href="book.asp"target="book"><font color="black"><b>Books</b></font></a><br>
<a href="movie.asp" target="movie"><font color="black"><b>Movies</b></font></a><br>
<a href="cd.asp"target="cd"><font color="black"><b>CD's</b></font></a><br>
<a href="computer.asp"target="computer"><font
color="black"><b>Laptops</b></font></a><br>
<a href="mobile.asp"target="mobile"><font
color="black"><b>Mobiles</b></font></a><br>
<hr>
<a href="cart.asp"target="cart"><font color="black"><b>View Cart</b></font></a><br>
</body>
</html>
<index.html>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<html>
<body>
<hr><br><br><br><br><br><br><br><br>
<center><br><br><font size="24" color="blue"> Select category from left
pane...</font></center><hr> </body></html> </body></html>
<Top.html>
<html>

<title>Welcome to e-shoppe portal</title>


<body>
<center><font size=10 color=blue> e-Shoppe</center></body></html>
<cart.asp>
<%@ Language=VBScript %>
<html>
<body>
<h2><b><u><left>Your Cart:</b></left></u></h2>
<form name=booksearch action=bookavail.asp method=post>
<% dim cn,rs
set cn=server.CreateObject("adodb.connection")
cn.Open("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA
SOURCE="&Server.MapPath("shop.mdb"))
set rs=server.CreateObject("adodb.recordset")
rs.Open"select item_id,item_name,item_amount from cart",cn
if not rs.EOF then %>
<p>
<table borderColor=black cellSpacing=1 cellPadding=1 width="75%" border=2
align=center>
<tr>
<th>
<p align=center>Item Id </p>
</th>
<th>
<p align=center>Item Name </p>
</th>
<th>
<p align=center>Item Amount </p>
</th>
<% while not rs.EOF%>
<tr>
<td>
<p align=center><%= rs(0)%>&nbsp;</p></td>
<td><p align="center"><%=rs(1)%>&nbsp;</p></td>
<td><p align="center"><%=rs(2)%>&nbsp;</p></td>
<%rs.MoveNext
wend
end if
%>
</tr>
</table>
</p>
<p>&nbsp;</p>

<hr></body>
</form>
</html>
<book.asp>
<%@ Language=VBScript %>
<HTML><HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<form name=book action=book1.asp method=post>
<BODY>
<h2><b><u><left>Available Books:</b></left></u></h2>
<%
dim cn,rs
set cn=server.CreateObject("adodb.connection")
cn1.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from book",cn
if not rs.EOF then
%>
<P>
<TABLE borderColor=black cellSpacing=1 cellPadding=1 width="75%" border=2
align=center>
<br>
<TR>
<TD>
<P align=center>Item Id</P> </TD>
<TD>
<P align=center>Item Name</P></TD>
<TD>
<P align=center> Item Amount</P></TD>
<%while not rs.EOF%>
<tr>
<td>
<P align=center><%=rs(0)%>&nbsp;</P></td>
<td>
<P align=center><%=rs(1)%>&nbsp;</P></td>
<td>
<P align=center><%=rs(2)%>&nbsp;</P></td>
<%rs.MoveNext
wend
end if
%>

</tr></TABLE></P>
<P>&nbsp;</P>
<hr>
<P><FONT size=3>ENTER THE ITEM CODE:&nbsp;<INPUT id=text2 name=dest
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<img src="./images/cart.gif" width="30" height="33" />
<INPUT id=submit1 type=submit value="ADD TO CART" name=submit1></FONT></P>
</BODY></form></HTML>
<book1.asp>
<%@ Language=VBScript %>
<HTML><HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY >
<form name=book1 action= book2.asp method=post>
<P align=center>&nbsp;<U><b>BOOK DETAILS&nbsp;</b></U></P>
<P align=center>
<%
dim cn1,rs1,dest
Response.Write(" BOOK : ")
dest=Request.Form("dest")
response.write(dest)
Response.Write "<br><br>"
set cn1=server.CreateObject("adodb.connection")
cn1.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs1=server.CreateObject("adodb.recordset")
rs1.Open "select * from book where item_id='" &dest& "'",cn1
if not rs1.EOF then
%>
<TABLE borderColor=black cellSpacing=2 cellPadding=2 width="75%" border=2>
<TR>
<th>BOOK NUMBER</th>
<th>BOOK NAME</th>
<th>AMOUNT</th>
</TR>
<%
while not rs1.EOF

%>
<tr>
<td><%response.write(rs1(0))%>&nbsp;</td>
<td><%response.write(rs1(1))%>&nbsp;</td>
<td><%response.write(rs1(2))%>&nbsp;</td>
</tr>
<%rs1.MoveNext
wend
end if
%>
</TABLE>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM ID :&nbsp;<INPUT id=text2 name=item_id
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM NAME :&nbsp;<INPUT id=text3 name=item_name
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM AMOUNT :&nbsp;<INPUT id=text2
name=item_amount ></FONT></P>
</P>
<INPUT id=submit1 type=submit value="CONFIRM ADDITION TO CART"
name=submit1></FONT></P>
<P align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;</P>
</BODY></form></HTML>

<book2.asp>
<%@ Language=VBScript %>

<HTML><HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD><BODY >
<form name=book2 action= reserved.asp method=post>
<P align=center>&nbsp;<U><b>BOOK DETAILS&nbsp;</b></U></P>
<P align=center>
<%
dim cn1,cn2,cn3,con,rs1,dest
cn1=Request.Form("item_id")
cn2=Request.Form("item_name")
cn3=Request.Form("item_amount")
Response.Write("BookNumber : ")
Response.Write(cn1)
Response.Write "<br>"
Response.Write("BookName : ")
Response.Write(cn2)
Response.Write "<br>"
Response.Write("Price : ")
Response.Write(cn3)
Response.Write "<br>"
set con=server.CreateObject("adodb.connection")
cn.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs1=server.CreateObject("adodb.recordset")
rs1.Open "insert into cart(item_id,item_name,item_amount)
values('"&cn1&"','"&cn2&"','"&cn3&"')",con
%>
<P align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;</P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
</BODY></form></HTML>
<movie.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<form name=book action=movie1.asp method=post>
<BODY>

<h2><b><u><left>Available Movies:</b></left></u></h2>
<%
dim cn,rs
set cn=server.CreateObject("adodb.connection")
cn1.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs=server.CreateObject("ADODB.recordset")
rs.Open "select * from movies",cn
if not rs.EOF then
%>
<P>
<TABLE borderColor=black cellSpacing=1 cellPadding=1 width="75%" border=2
align=center>
<br><TR><TD><P align=center>Item Id</P> </TD>
<TD><P align=center>Item Name</P></TD>
<TD><P align=center> Item Amount</P></TD>
<%while not rs.EOF%>
<tr><td><P align=center><%=rs(0)%>&nbsp;</P></td>
<td><P align=center><%=rs(1)%>&nbsp;</P></td>
<td><P align=center><%=rs(2)%>&nbsp;</P></td>
<%rs.MoveNext
wend
end if
%>
</tr></TABLE></P>
<P>&nbsp;</P>
<hr>
<P><FONT size=3>ENTER THE ITEM CODE:&nbsp;<INPUT id=text2 name=dest
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<INPUT id=submit1 type=submit value="ADD TO CART" name=submit1></FONT></P>
</BODY></form></HTML>
<movie1.asp>
<%@ Language=VBScript %>
<HTML><HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY >
<form name=movie1 action= movie2.asp method=post>

<P align=center>&nbsp;<U><b>ITEM DETAILS&nbsp;</b></U></P>


<P align=center>
<%
dim cn1,rs1,dest
Response.Write(" BOOK : ")
dest=Request.Form("dest")
response.write(dest)
Response.Write "<br><br>"
set cn1=server.CreateObject("adodb.connection")
cn1.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs1=server.CreateObject("adodb.recordset")
rs1.Open "select * from movies where item_id='" &dest& "'",cn1
if not rs1.EOF then
%>
<TABLE borderColor=black cellSpacing=2 cellPadding=2 width="75%" border=2>
<TR>
<th>ITEM ID</th>
<th>ITEM NAME</th>
<th>ITEM AMOUNT</th>
</TR>
<%
while not rs1.EOF
%>
<tr><td><%response.write(rs1(0))%>&nbsp;</td>
<td><%response.write(rs1(1))%>&nbsp;</td>
<td><%response.write(rs1(2))%>&nbsp;</td>
</tr>
<%rs1.MoveNext
wend
end if
%>
</TABLE>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM ID :&nbsp;<INPUT id=text2 name=item_id
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM NAME :&nbsp;<INPUT id=text3 name=item_name
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM AMOUNT :&nbsp;<INPUT id=text2
name=item_amount ></FONT></P>
</P>
<INPUT id=submit1 type=submit value="CONFIRM ADDITION TO CART"
name=submit1></FONT></P>
<P align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;</P>
</BODY></form></HTML>
<movie2.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY >
<form name=movie2 action= reserved.asp method=post>
<P align=center>&nbsp;<U><b>ITEM DETAILS&nbsp;</b></U></P>
<P align=center>
<%
dim cn1,cn2,cn3,con,rs1,dest
cn1=Request.Form("item_id")
cn2=Request.Form("item_name")
cn3=Request.Form("item_amount")
Response.Write("Itemid : ")
Response.Write(cn1)
Response.Write "<br>"
Response.Write("Itemname : ")
Response.Write(cn2)
Response.Write "<br>"
Response.Write("Price : ")
Response.Write(cn3)
Response.Write "<br>"
set con=server.CreateObject("adodb.connection")
cn.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs1=server.CreateObject("adodb.recordset")
rs1.Open "insert into cart(item_id,item_name,item_amount)
values('"&cn1&"','"&cn2&"','"&cn3&"')",con
%>
<P align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;</P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
</BODY></form></HTML>
<mobile.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<form name=book action=mobile1.asp method=post>
<BODY>
<h2><b><u><left>Available Mobile Models:</b></left></u></h2>
<%
dim cn,rs
set cn=server.CreateObject("adodb.connection")
cn.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs=server.CreateObject("ADODB.recordset")
rs.Open "select * from mobile",cn
if not rs.EOF then
%>
<P>
<TABLE borderColor=black cellSpacing=1 cellPadding=1 width="75%" border=2
align=center>
<br><TR><TD><P align=center>Item Id</P> </TD>
<TD><P align=center>Item Name</P></TD>
<TD><P align=center> Item Amount</P></TD>
<%while not rs.EOF%>
<tr><td><P align=center><%=rs(0)%>&nbsp;</P></td>
<td><P align=center><%=rs(1)%>&nbsp;</P></td>
<td>
<P align=center><%=rs(2)%>&nbsp;</P></td>
<%rs.MoveNext
wend

end if
%>
</tr></TABLE></P>
<P>&nbsp;</P>
<hr>
<P><FONT size=3>ENTER THE ITEM CODE:&nbsp;<INPUT id=text2 name=dest
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<INPUT id=submit1 type=submit value="ADD TO CART" name=submit1></FONT></P>
</BODY></form></HTML>
<mobile1.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY >
<form name=mobile1 action= mobile2.asp method=post>
<P align=center>&nbsp;<U><b>ITEM DETAILS&nbsp;</b></U></P>
<P align=center>
<%
dim cn1,rs1,dest
Response.Write(" BOOK : ")
dest=Request.Form("dest")
response.write(dest)
Response.Write "<br><br>"
set cn1=server.CreateObject("adodb.connection")
cn1.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs1=server.CreateObject("adodb.recordset")
rs1.Open "select * from mobile where item_id='" &dest& "'",cn1
if not rs1.EOF then
%>
<TABLE borderColor=black cellSpacing=2 cellPadding=2 width="75%" border=2>
<TR>
<th>ITEM ID</th>
<th>ITEM NAME</th>
<th>ITEM AMOUNT</th>
</TR>

<%
while not rs1.EOF
%>
<tr><td><%response.write(rs1(0))%>&nbsp;</td>
<td><%response.write(rs1(1))%>&nbsp;</td>
<td><%response.write(rs1(2))%>&nbsp;</td>
</tr>
<%rs1.MoveNext
wend
end if
%>
</TABLE>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM ID :&nbsp;<INPUT id=text2 name=item_id
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM NAME :&nbsp;<INPUT id=text3 name=item_name
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM AMOUNT :&nbsp;<INPUT id=text2
name=item_amount ></FONT></P>
</P>
<INPUT id=submit1 type=submit value="CONFIRM ADDITION TO CART"
name=submit1></FONT></P>
<P align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;</P>
</BODY></form></HTML>
<mobile2.asp>
<%@ Language=VBScript %>
<HTML><HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">

</HEAD>
<BODY >
<form name=mobile2 action= reserved.asp method=post>
<P align=center>&nbsp;<U><b>ITEM DETAILS&nbsp;</b></U></P>
<P align=center>
<%
dim cn1,cn2,cn3,con,rs1,dest
cn1=Request.Form("item_id")
cn2=Request.Form("item_name")
cn3=Request.Form("item_amount")
Response.Write("Itemid : ")
Response.Write(cn1)
Response.Write "<br>"
Response.Write("Itemname : ")
Response.Write(cn2)
Response.Write "<br>"
Response.Write("Price : ")
Response.Write(cn3)
Response.Write "<br>"
set con=server.CreateObject("adodb.connection")
con.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs1=server.CreateObject("adodb.recordset")
rs1.Open "insert into cart(item_id,item_name,item_amount)
values('"&cn1&"','"&cn2&"','"&cn3&"')",con
%>
<P align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;</P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
</BODY></form></HTML>
<computer.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<form name=book action=computer1.asp method=post>
<BODY>
<h2><b><u><left>Available Computer Models:</b></left></u></h2>

<%
dim cn,rs
set cn=server.CreateObject("adodb.connection")
cn.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs=server.CreateObject("ADODB.recordset")
rs.Open "select * from computer",cn
if not rs.EOF then
%>
<P>
<TABLE borderColor=black cellSpacing=1 cellPadding=1 width="75%" border=2
align=center>
<br><TR><TD><P align=center>Item Id</P> </TD>
<TD><P align=center>Item Name</P></TD>
<TD><P align=center> Item Amount</P></TD>
<%while not rs.EOF%>
<tr><td><P align=center><%=rs(0)%>&nbsp;</P></td>
<td><P align=center><%=rs(1)%>&nbsp;</P></td>
<td><P align=center><%=rs(2)%>&nbsp;</P></td>
<%rs.MoveNext
wend
end if
%>
</tr></TABLE></P>
<P>&nbsp;</P>
<hr>
<P><FONT size=3>ENTER THE ITEM CODE:&nbsp;<INPUT id=text2 name=dest
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<INPUT id=submit1 type=submit value="ADD TO CART" name=submit1></FONT></P>
</BODY></form></HTML>
<computer1.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY >
<form name=computer1 action= computer2.asp method=post>

<P align=center>&nbsp;<U><b>ITEM DETAILS&nbsp;</b></U></P>


<P align=center>
<%
dim cn1,rs1,dest
Response.Write(" BOOK : ")
dest=Request.Form("dest")
response.write(dest)
Response.Write "<br><br>"
set cn1=server.CreateObject("adodb.connection")
cn1.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs1=server.CreateObject("adodb.recordset")
rs1.Open "select * from computer where item_id='" &dest& "'",cn1
if not rs1.EOF then
%>
<TABLE borderColor=black cellSpacing=2 cellPadding=2 width="75%" border=2>
<TR><th>ITEM ID</th>
<th>ITEM NAME</th>
<th>ITEM AMOUNT</th>
</TR>
<%
while not rs1.EOF
%>
<tr>
<td><%response.write(rs1(0))%>&nbsp;</td>
<td><%response.write(rs1(1))%>&nbsp;</td>
<td><%response.write(rs1(2))%>&nbsp;</td>
</tr>
<%rs1.MoveNext
wend
end if
%>
</TABLE>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM ID :&nbsp;<INPUT id=text2 name=item_id
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM NAME :&nbsp;<INPUT id=text3 name=item_name
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM AMOUNT :&nbsp;<INPUT id=text2
name=item_amount ></FONT></P>
</P>
<INPUT id=submit1 type=submit value="CONFIRM ADDITION TO CART"
name=submit1></FONT></P>
<P align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;</P>
</BODY></form></HTML>
<computer2.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY >
<form name=computer2 action= reserved.asp method=post>
<P align=center>&nbsp;<U><b>ITEM DETAILS&nbsp;</b></U></P>
<P align=center>
<%
dim cn1,cn2,cn3,con,rs1,dest
cn1=Request.Form("item_id")
cn2=Request.Form("item_name")
cn3=Request.Form("item_amount")
Response.Write("Itemid : ")
Response.Write(cn1)
Response.Write "<br>"
Response.Write("Itemname : ")
Response.Write(cn2)
Response.Write "<br>"
Response.Write("Price : ")
Response.Write(cn3)
Response.Write "<br>"
set con=server.CreateObject("adodb.connection")
con.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs1=server.CreateObject("adodb.recordset")
rs1.Open "insert into cart(item_id,item_name,item_amount)
values('"&cn1&"','"&cn2&"','"&cn3&"')",con
%>
<P align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;</P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
</BODY></form></HTML>
<cd.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<form name=book action=cd1.asp method=post>
<BODY>
<h2><b><u><left>Available CD's:</b></left></u></h2>
<%
dim cn,rs
set cn=server.CreateObject("adodb.connection")
cn.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs=server.CreateObject("ADODB.recordset")
rs.Open "select * from cd",cn
if not rs.EOF then
%>
<P>
<TABLE borderColor=black cellSpacing=1 cellPadding=1 width="75%" border=2
align=center>
<br><TR><TD><P align=center>Item Id</P> </TD>
<TD><P align=center>Item Name</P></TD>
<TD><P align=center> Item Amount</P></TD>
<%while not rs.EOF%>
<tr><td><P align=center><%=rs(0)%>&nbsp;</P></td>
<td><P align=center><%=rs(1)%>&nbsp;</P></td>
<td><P align=center><%=rs(2)%>&nbsp;</P></td>
<%rs.MoveNext
wend
end if

%>
</tr></TABLE></P>
<P>&nbsp;</P>
<hr><P><FONT size=3>ENTER THE ITEM CODE:&nbsp;<INPUT id=text2 name=dest
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<INPUT id=submit1 type=submit value="ADD TO CART" name=submit1></FONT></P>
</BODY></form></HTML>
<cd1.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY >
<form name=cd1 action= cd2.asp method=post>
<P align=center>&nbsp;<U><b>ITEM DETAILS&nbsp;</b></U></P>
<P align=center>
<%
dim cn1,rs1,dest
Response.Write(" ITEMID : ")
dest=Request.Form("dest")
response.write(dest)
Response.Write "<br><br>"
set cn1=server.CreateObject("adodb.connection")
cn1.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs1=server.CreateObject("adodb.recordset")
rs1.Open "select * from cd where item_id='" &dest& "'",cn1
if not rs1.EOF then
%>
<TABLE borderColor=black cellSpacing=2 cellPadding=2 width="75%" border=2>
<TR><th>ITEM ID</th>
<th>ITEM NAME</th>
<th>ITEM AMOUNT</th>
</TR>
<%
while not rs1.EOF
%>

<tr><td><%response.write(rs1(0))%>&nbsp;</td>
<td><%response.write(rs1(1))%>&nbsp;</td>
<td><%response.write(rs1(2))%>&nbsp;</td>
</tr>
<%rs1.MoveNext
wend
end if
%>
</TABLE>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM ID :&nbsp;<INPUT id=text2 name=item_id
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM NAME :&nbsp;<INPUT id=text3 name=item_name
></FONT></P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<P><FONT size=3>ENTER THE ITEM AMOUNT :&nbsp;<INPUT id=text2
name=item_amount ></FONT></P>
</P>
<INPUT id=submit1 type=submit value="CONFIRM ADDITION TO CART"
name=submit1></FONT></P>
<P align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;</P>
</BODY></form></HTML>
<cd2.asp>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY >

<form name=cd2 action= reserved.asp method=post>


<P align=center>&nbsp;<U><b>ITEM DETAILS&nbsp;</b></U></P>
<P align=center>
<%
dim cn1,cn2,cn3,con,rs1,dest
cn1=Request.Form("item_id")
cn2=Request.Form("item_name")
cn3=Request.Form("item_amount")
Response.Write("Itemid : ")
Response.Write(cn1)
Response.Write "<br>"
Response.Write("Itemname : ")
Response.Write(cn2)
Response.Write "<br>"
Response.Write("Price : ")
Response.Write(cn3)
Response.Write "<br>"
set con=server.CreateObject("adodb.connection")
con.Open ("PROVIDER= Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&
Server.MaPath("shop.mdb"))

set rs1=server.CreateObject("adodb.recordset")
rs1.Open "insert into cart(item_id,item_name,item_amount)
values('"&cn1&"','"&cn2&"','"&cn3&"')",con
%>
<P align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;</P>
<P><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
</BODY></form></HTML>

You might also like