ONLINE NESCAFE OF COLLEGE CAMPUS-11
(FUCTIONS OF ADMINISTRATOR)
HEADER OF FUNCTIONS OF ADMIN.ASP
After creating the homepage, first of all you have to create all the script for all the functions to be performed by the administrator. For example, in my site , the administrator will have to perform the functions of updating the database of products, adding the products, deleting the products and deleting the orders after the orders has been placed.
To perform the above mentioned functions, you will first create a database named PRODUCTS with the fields P_name, P_price, P_quantity, P_image, P_type:
The script below is same as the one in the file head.asp so that the same design appears on every page in order to maintain uniformity.
After that, the code which follows creates the BUTTONS for functions . These buttons are created just by saving writing the text in the textbox with a background color and saving it as an image. Each button is a hyperlink to a form associated with proper actions.
<%@Language=”VBScript”%>
<%Option Explicit%>
<!–#include virtual=”/adovbs.inc”–>
<html>
<head>
</head>
<body>
<marquee BGColor=”maroon” direction=UP height=20 width=100% scrolldelay=700>
<font size=5 color=white>
<B>DID U KNOW?</B>
</FONT>
<font size=4 color= white>
<ul>
<li> The name NESCAFÉ is a combination of Nestlé and café.
<li>It can take up to four years for a coffee to reach mature production.
<li>Each cherry consists of two coffee beans.
<li>Arabica beans account for around 65% of total coffee production,rest by Robusta.
<li>The word ‘coffee‘ originates from the Arabic word ‘kaweh’, meaning strength or vigour.
<li>After water, coffee is the 2nd most consumed beverage worldwide.
<li> Coffee reached Europe early in the 17th Century. Louis XIV and Pope Clement III were early converts to the drink.
</font></b></marquee>
<img src=”header1.jpg” width=100%>
<a href=”frame.asp” target=”_parent”><img src=”PIC2.jpg” width=10% HEIGHT=15% border=”0″></a>
<a href=”about us.asp” target=”_parent”><img src=”ABOUTUS.jpg” width=10% HEIGHT=15% border=”0″></a>
<a href=”about cofee.asp” target=”_parent”><img src=”ABOUT COFFEE.jpg” width=10% HEIGHT=15% border=”0″></a>
<a href=”add.asp” target=”admin down”><img src=”add_product.jpg” width=10% HEIGHT=15% border=”0″></a>
<a href=”delete.asp” target=”admin down” ><img src=”delete_product.jpg” width=10% HEIGHT=15% border=”0″></a>
<a href=”change_password.asp” target=”admin down” ><img src=”change_password.jpg” width=10% HEIGHT=15% border=”0″></a>
<a href=”UPDATE.asp” target=”admin down” ><img src=”update.jpg” width=10% HEIGHT=15% border=”0″></a>
<a href=”del_data.asp” target=”admin down” ><img src=”delete_data.jpg” width=10% HEIGHT=15% border=”0″></a>
<br>
<a href=”LOGOUT.asp” target=”_parent”><img src=”LOGOUT.jpg” width=10% HEIGHT=15% border=”0″ align=”right”></a>
<br>
<br>
<table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”100%”>
<%
If Session(“User_Type”)=1 Then
Response.Write “<tr><td align=’right’><font color=’black’ size=’+2′ align=’right’>Welcome: ” & Session(“user_Name”) & ” </font></td></tr>”
End If
%>
</table>
</body>
</html>