Professional Documents
Culture Documents
Session (2013-2015)
Program
Master in Computer Science
Submitted By
Inam Ullah
13-MCS-S-HU-8
Atta-Ur-Rahman
13-MCS-S-HU-3
Supervised By
Mr. Aamir Javed
Lecturer, IT Department
FINAL APPROVAL
This is to certify that we have read the project report titled Online Vehicle Showroom
submitted by the fowling students of MCS 4th semester.
Roll No
Name
Registration No
31048
Inam Ullah
13-MCS-S-HU-8
31040
Atta-Ur-Rahman
13-MCS-S-HU-3
It is our judgment that this project report is of sufficient standard to warrant its
acceptance by the department of Information Technology, Hazara University Mansehra.
COMMITTEE
External Examiner
________________________________
Internal Examiner
________________________________
Supervisor
________________________________
Head of Department
_______________________________
DEDICATION
They fed me when I was hungry, gave me strength when weak, Protected me when in danger,
taught me to walk on my feet, Nursed me when hurt, encouraged me when dejected and helped me
to live honourably in this world, we dedicate this humble effort to our Respected Parents, Family
Members and Teachers with love and gratitude May Allah bless them with a very happy, successful
and a healthy life.
(AMEEN)
DECLARATION
We hereby declare that this software, neither as a whole nor as a part has been copied out
from any source. It is further declared that we developed this software and this report
entirely on the basis of our personal efforts made under the sincere guidance of our
project supervisor.
If any part of this software is proved to be copied or found to be a report of some other,
we shall standby the consequences. No portion of the work presented in this report has
been submitted in support of any application from any other degree of qualification of his
or any other university or institute of learning. We further declare that this software and
all associated documents, reports and records are submitted as partial requirement for the
degree of MCS. We understand and transfer copyrights for these materials to HAZARA
UNIVERSITY MANSEHRA. We shall not sale this software and documents not get any
financial gains from these.
(31040)
_____________________
ACKNOWLEDGMENT
In the great name of ALLAH, the most gracious and the most merciful, Who gifted us
blessings, strength and mental powers, without which we could not complete this project.
Before we get into thick of the things we would like to add a few heart felt words for the
people who were part of this project in numerous ways. People who gave unending
support right from the stage project idea were conceived. In particular we are extremely
indebted our teacher and supervisor of this project Mr. Aamir Javed, and also we are
thankful to our teachers and friends for their support. Vivacious and exuberant approach
always put us on right track. We are extremely thankful to our beloved Parents and family
whose prayers and continuous encouragement made the successful completion of this
project possible.
Inam Ullah
Atta-Ur-Rahman
PREFACE
Computer science and information technology has brought revolutionary changes in
every field of life. Increase processing speed, style etc. are some of the features that are
considered essential for the development of an organization. It is computer which pays a
vital role in achieving these targets. There are different websites that are available today
are the outcome of the needs and requirements of different organization. Online Vehicle
Showroom is one such activity that requires a lot of time and hard work. The wastage of
time in these processes can be greatly reduced only with the help of efficient Website.
So this website for Online Vehicle Showroom will improve the day-to-day work. The
user have no need to visit the showroom for purchasing vehicle but this application will
allow him/her to avail all the purchasing and business deals online. By using this website
user will purchase the products online and payment system will also by online services
and finally the user will get his/her desired product on his/her door step.
PROJECT IN BRIEF
Project Title:
Organization:
Objectives:
Developed By:
Supervised By:
Tools Used:
System Used:
Operation System:
Microsoft Windows7.
TABLE OF CONTENTS
CHAPTER 1 INTRODUCTION
1.1 Introduction....................................................................................................................1
1.2 History...........................................................................................................................1
1.2.1 Online purchasing system in Pakistan....................................................................1
1.3 Purpose of Project (Software)........................................................................................1
1.4 Scope..............................................................................................................................2
1.5 Advantages of the Project..............................................................................................2
1.6 Disadvantage of the Manual System.............................................................................3
1.7 Feasibility of project......................................................................................................3
1.8 Gantt Chart for Project Development............................................................................4
1.9 Outputs from the Project................................................................................................4
CHAPTER 2 EXISTING SYSTEM
2.1 Drawback of manual system..........................................................................................5
2.1.1 Data Duplication.....................................................................................................5
2.1.2 Delayed Information...............................................................................................5
2.1.3 Security...................................................................................................................6
2.1.4 Integrity...................................................................................................................6
2.1.5 Common Errors......................................................................................................6
2.1.7 Too Much Paper Work............................................................................................7
2.1.8 Loss and Profit........................................................................................................7
2.1.9 Tedious Information Access....................................................................................7
2.1.10 Backup problem....................................................................................................7
2.1.11 Data Entry.............................................................................................................8
2.1.12 Data recovery........................................................................................................8
5.5.2.2 Contact...........................................................................................................34
5.5.2.3 Delivery.........................................................................................................35
5.5.2.4 Employee.......................................................................................................35
5.5.2.5 FAQs..............................................................................................................35
5.5.2.6 Feed Back......................................................................................................36
5.5.2.7 Loss and Profit...............................................................................................36
5.5.2.8 Order..............................................................................................................36
5.5.2.9 Payment.........................................................................................................37
5.5.2.10 Product.........................................................................................................37
5.5.2.11 Stock............................................................................................................37
5.5.2.12 Accessories..................................................................................................38
5.5.2.13 Temporary Table..........................................................................................38
5.5.2.14 User Registration.........................................................................................38
5.6 Database Diagram........................................................................................................39
5.7 Entity Relationship Diagram.......................................................................................40
CHAPTER 6 SYSTEM TESTING
6.1 The place of testing in SDLC......................................................................................41
6.2 System and Software Design.......................................................................................41
6.2.1 Implementation and Unit Testing.........................................................................41
6.2.2 Integration and System Testing.............................................................................42
6.2.3 Operations and Maintenance................................................................................42
6.3 Type of testing.............................................................................................................42
6.3.1 Functional testing..................................................................................................42
6.3.2 Stress testing.........................................................................................................42
6.3.3 Black box testing..................................................................................................43
10
11
LIST OF TABLES
Table 5.1: Accessories...26
Table 5.2: Admin...27
Table 5.3: Contact..27
Table 5.4: Delivery27
Table 5.5: Employee..28
Table 5.6: FAQs.28
Table 5.7: Feed Back.28
Table 5.8: Loos and profit..29
Table 5.9: Order.29
Table 5.10: Payment..29
Table 5.11: Product Info30
Table 5.12: Stock...30
Table 5.13: User Registration31
Table 6.1: Trace ability Matrix..42
Table 6.2: Test Case Description...44
12
LIST OF FIGURES
Figure 1.1: Gantt chart.4
Figure 2.1: Data Duplication5
Figure 2.2: Lack of Security6
Figure 2.3: Fire6
Figure 2.4: Repetition of Work7
Figure 2.5: Too much paper work7
Figure 2.6: Loss and Profit...7
Figure 3.1: SDLC...12
Figure 3.2: Waterfall model...15
Figure 5.1: Level 0 DFD32
Figure 5.2: Notations of DFDs
32
Figure 5.3: Level 1 DFD ...33
Figure 5.4: Level 2 DFD34
Figure 5.5: Admin..35
Figure 5.6: Contact.35
Figure 5.7: Delivery...36
Figure 5.8: Employee.36
Figure 5.9: FAQs...36
Figure 5.10: Feed Back..37
Figure 5.11: Loss and Profit...37
Figure 5.12: Order..37
Figure 5.13: Payment.....................................................................................................38
Figure 5.14: Product...38
Figure 5.15: Stock..38
Figure 5.16: Accessories39
Figure 5.17: Temp_Table...39
Figure 5.18: User registration....39
Figure 5.19: Database Diagram.40
13
14
LIST OF ACRONYM
DBMS
DD
Data Dictionary.
SQL
DFD
GUI
ERD
SDLC
SQA
DD
Database Design.
DDS
LDD
PDD
15
CHAPTER 1
INTRODUCTION
1.1 Introduction
This software is developed for a web application that depicts online vehicles showroom
and booking vehicle. Customer can register to this site and he can book vehicles by
entering his login information. Administrator is main user of this system and can add
employees, and new vehicles details.
This project is developed for vehicle showroom. The project aims to show Online its
records. So all of its paper and manual computer work is to be converted into a database,
which is updateable, modifiable and easy to use.
The basic idea of the database is to provide information and to make it easy to use and to
make fast access to the records. This system will maintain records of the shopping. And
also have queries about customers, Product etc.
The proposed system can be expended to a complete comparison-shopping site. Then
they can check out their whole order at one place.
Therefore the whole online purchasing process will be much easier than it is today. The
goal of this design is to develop efficient software architecture to offer easy online
purchasing.
1.2 History
1.2.1 Online purchasing system in Pakistan.
Pakistan is considered to be worlds 2nd slowest adopter in online system. Most people
are interested to purchase and bought usually books and cloths. Airline tickets, books,
hotel reservations are also commonly done online. In Pakistan, online shoppers look 25%
for computer hardware for clothing 18% and rest 57% are saying that they are not willing
to or plan to make online purchasing in the next two year. The other important factor is
that the most of the people in this region have negative experience in online purchasing.
1.4 Scope
We describe what features are in the scope of the software and what are not in the scope
of the software to be developed.
This software will consist of some significant modules in order to satisfy the companys
needs as well as the customers.
User authentication to secure the login information of both user and administrator.
Inventory system where the admin can have full control of the information stored in
the database like members and products information and able to view orders
information.
The system can print the profile information of the members for both admin and
ordinary users.
Secure.
Easy to handle.
Operational problem.
3
4. Administrator will be the only user of the system and will have full authority and
privileges.
Administrator of the system will be able to maintain system, upgrade record so on. The
administrator of the system will be able to move all around the system controlling all
activities by having complete privileges/rights.
Finish Line
Installation andTraining
Progress
Implementation
Development
Design
Analysis
1 Feb-15 Feb
Time
Software.
Database.
Project Documentation.
16 Mar-31 Mar
1 Apr-5 Apr
CHAPTER 2
EXISTING SYSTEM
Study of present system is a basic step in developing the new system, by this study we
will be able to find out the drawbacks of present system which we will be removed in
new system and will improve the good features of present system in new system.
So a thorough study of the present system was conducted to completely understand the
working nature of present system. No Online Software was developed for vehicle
showroom, therefore a generalized study was conducted.
Present system is working manually in registers, pads and files etc.
So the present system has many of the drawbacks i.e. time consuming, not secure, not
reliable and efficient etc. The present system do not provide the facility of online
purchasing of the product. It may lead to errors so handling such type of information
manually at a time is very difficult, may lead to errors and very time consuming so we
decided that it is time to computerize the existing / present system to save their time and
get the desired information with in second. The following drawback in the present system
were found, which compelled us to develop a software.
2.1.3 Security
The security of the manual system is very poor because the registers can be lost or stolen
at any time, it may be possible that any miss-haps occur such as the department building
get fire in that situation entire information will be lost.
For Example:
a. If someone steals the shop, data will be lost.
CHAPTER 3
PROPOSED SYSTEM
10
System Definition
Design
Conceptual Design
Logical Design
Physical Design
Implementation
Data Loading
Testing
Maintenance
Feedback
11
The data collected through preliminary investigation (analysis) was conducted through
following two methods.
3.4.1 Review of Documents
First of all brief information was obtained about the online vehicle showroom by
studying different documents. During this process the following information was
obtained.
How it operates? How information comes and how it is processed? And where the
information is transferred after processing? These details were gathered and studied by
examining the Organizational charts and written operating procedures. The operating
procedures describes how the data collecting process should operate and identify the most
important steps involved in receiving, managing and dispatching the data.
3.4.2 Interview and Observation
For making software for online vehicle showroom, first we met the owner. We also
contacted some other showroom in the local area to develop the software more
generalized and flexible. They gave us all the related data vehicle showroom
He gives us the detailed study of the flow of data. We found him very cooperative as a
friend. We met him several times and discussed various issues regarding all processes of
online vehicle showroom.
Whenever we faced problem regarding the working nature of online vehicle showroom,
we consulted the owner either by phone or we met him face by face.
By conducting this technique, we found the following necessary information regarding
Vehicle showroom.
The customer see online details of the required item, and in the case of
availability the customer order.
12
The customer will pay the payment any payment of method (debt card, easy
paisa).
3.4.3 Questioner
As this is another important technique for analysis of system in Software Development
Life Cycle, we have also created a questionnaire to extract some necessary information
regarding.
Analysis conducted for showroom
Q1: Have you any computer skill?
Yes
No
Honda
(new /used)
Suzuki
(new/used)
Toyota
(new/used)
All companies
(new/used)
Other
(new /used)
Honda
(new/used)
Suzuki
(new/ used)
Toyota
(new/used)
13
All companies
(new/ used)
Others
(new/used)
Loss
Profit
Yes
No
Yes
No
Yes
No
None of them.
Q9: What are the reasons due to which you computerize the present system?
Ans: Because computerize system will fulfill all the requirement of user, it is to restore
the backup and also time saving.
14
15
16
phase and tested to check if all modules/units coordinate between each other and the
system as a whole behaves as per the specifications. After successfully testing the
software, it is delivered to the customer.
3.5.1.6 Operations and Maintenance
This phase of "The Waterfall Model" is virtually never ending phase (Very long).
Generally, problems with the system developed (which are not found during the
development life cycle) come up after its practical use starts, so the issues related to the
system are solved after deployment of the system. Not all the problems come in picture
directly but they arise time to time and needs to be solved, hence this process is referred
as Maintenance.
CHAPTER 4
REQUIREMENT ANALYSIS
17
4.1 Introduction
This involves understanding the problem, establishing the services, which the system
should provide the constraints under which meet operation.
It is the process of translating the ideas about the system to be developed, in the mind of
client mind the actual users, in to more formal ways, it is communicating between
customer and software development team. Without preparing the requirement
specification the process of developing software with all of its functionality look quite
impossible.
There are four principle stages in the requirement engineering process.
Feasibility study.
Requirement analysis.
Requirement definition.
Requirement specification.
Economic Feasibility.
Technical Feasibility.
Operational Feasibility.
17
Estimate of hardware and software can be made and must have alternate
solution for providing economical feasibility.
The evaluation of benefits will be higher than the estimated total cost. Since
project proposal for vehicle showroom passes all these feasibility tests,
therefore, it is considered as an economically feasible system.
There are technical guarantees of accuracy, reliability, ease of access and high data
security.
4.1.4 Operational Feasibility
Proposed system is operationally feasible in showroom because it fulfils the
requirements, as it is more efficient, accurate and reliable.
ASP.NET with C# and SQL server 2008 will be operationally feasible because it will be
efficient, accurate, and reliable and provides more facilities any other available system.
The proposed system will be user friendly and easy to understand, so users would be able
to understand and use this system easily, no high computer knowledge would be required
for it.
This project is operationally feasible for the following reasons:
19
20
4.6.3 Usability
All the options should be provided in clickable from avoid wasting time in writing
commands.
4.6.4 Efficiency
The proposed system should much more efficient and helpful to check the information.
4.6.5 Reliability.
The system should be reliable enough that it provides the correct result as expected.
4.6.6 Backup facility
System should be capable of backup and restoring information (if the system crashes etc.
4.6.7 Maintainability
Developed system should be maintainable that it is allow the change to be made. Code
should be documented properly.
4.6.8 Refer images to the operation system
Referring all images to the operating system instead of storing them in data base.
4.6.9 Future Enhancement
There should be extensible support for future enhancement in the data base.
21
CHAPTER 5
SYSTEM DESIGN
22
Design is a decision making activity. Design works is a base for the proceeding activities
in the development good design lead to efficient software. System design is the phase
where quality is fostered in software development.
Hence good development work depends upon good quality of design. Design changes
customer, s requirement into representation of software. Software or system is unable
without a good design and fails when changes are made into it.
So the designing is the basic building block of any software. The design depends upon
the study and understanding of the present system and the vision and approach of the
software designer for the proposed system. The design can be divided into three parts.
Input Design.
Output Design.
In the designing phase of online vehicle showroom, the activities included many
important designing aspects; Viewed from a purely functional point of view, most of the
computer system will perform three task
Presentation logic.
Business logic.
Data service.
22
(1) Input
The input to the system comes from administration of the vehicle showroom.
(2) Output
The output coming from the magnitudes displaying in different form.
What will happen to do the data in the system?
The following describe format will be used for input and outputs. Accuracy of the data is
dependent upon connection. Speed gateway, device type flow of data depend upon the
member of the user accessing database.
23
The two main approaches to the design of a data base system are referred to as the top
down and bottom up approaches.
5.2.1 Bottom up approach
The bottom up approach begins at the fundamental level of attributes, which are grouped
into entities and relationships. As the process continues we identify and add new
relationships between entities. The process of normalization also represents a bottom up
approach to design. This approach is suitable for simple databases having a small number
of attributes. Normalization involves the identification of the required attributes and their
subsequent decomposition into normalized tables.
5.2.2 Top down approach
It is suitable for designing complex databases. It stars with the development of data
models that contain a few high level entities and then identify lower level entities,
attributes and their relationships. It uses ER model, which shows the entities and their
relationships.
In our project we have used the top down approach.
The Top down database design approach is composed of two major phases:
24
25
26
5.4.5 Employee
27
29
30
31
Login
Login
Confirmation
Confirmation
Figure 5.1: Level 0 DFD
32
33
34
Emails
Password
Admin
Name
Mob No
Con ID
Contact
35
Pro _id
D _id
User reg id
Date
Name
Teacher Name
D source
Delivery
CNIC
Designation
Gender
Mob No
Name
Address
Teacher Name
Salary
Emp_ID
Employee
36
5.5.2.5 FAQs
Faq_ID
Answer
Question
FAQs
Fb Answer
Fb Question
Feed Back
Loss_Amount
Lp_ID
Profit_Amount
37
5.5.2.8 Order
User_Name
Pro_Name
User_ID
Pro_Price
Pro_ID
Pro_Image
Teacher Name
Qty
Order_ID
Date
Order
5.5.2.9 Payment
Pro_ID
User Reg_ID
Pay_Date
Pay_ID
Payment
38
5.5.2.10 Product
Image
Pro_Name
Description
Pro_ID
Pro_price
Size
Teacher Name
Qty
Cat_ID
Color
File_Path
File_Name
Released
Product
Pro_ID
Stock
39
Qty
5.5.2.12 Accessories
Name
Acc_ID
Product ID
Acc_Price
Description
Accessories
Product ID
Pro_Name
Pro_Price
Temp_Table
Gender
User_CNIC
User_Name
Password
Address
Mob_No
Tel_No
User Registration
40
41
42
CHAPTER 6
SYSTEM TESTING
43
To developing software there is a tendency to push the end product out of door as soon
as possible. Most of the time, software project are not estimated properly and tend to run
behind schedule. System testing is essential step for development of a reliable and error
free system. Testing is a process of executing a program with explicit intension of finding
errors but this does not mean to embarrass the programmer or fail the product but positive
intension to remove as many problems from the system. A test case is a set of data items
that the system process as normal input. Good testing involves much more than just
running the program a few time to see whether it work.
A successful test is the one that find error. So some people ignore this important phase.
But our project online vehicle showroom has been thoroughly tested by us.
41
42
can peek into the box and again knowledge about the implementation.
6.3.5 Beta testing
The process of distribution a prerelease version of a product to a subset of its intended
audience for the purpose of obtaining feedback.
Test
Result
Test 1
43
Test2
Test3
Test 4
successfully
Test5
Test 6
Test7
Test8
successfully
Verify that user can view only index page user is not
login.
successfully
Test 10
Test has
successfully
Test 11
Test12
and password.
successfully
Test 13
successfully
44
Test case ID
Test 3
Test date
1 march 2015 Test case version : Vr :1.0
Objective: Verify that user cannot access the administrator functionality if login as
customer.
Module /version:
Environment :
Window7
Pre- Requisite:
Method
3 -march -2015
Objective:
Version/module:
Environment:
Window 7
Pre-Requisite :
Method
1. Check the field on from and enter data according to the mentioned fields.
45
CHAPTER 7
OVERVIEW
46
7.1 Overview
It is particularly important first to design how the system will look and inspire the user
before designing the software structure. The most critical and creative aspect of
development is to design the user interface. User interface design determines how the
system will look the user from outside. The basic design principle, consider the user
interface design, are the following. The interface describe how the software communicate
with the system that inter operate with it and with human who use it. An interface implies
of flow of the information for interface design.
The interface design create in effective communicate medium between human and a
computer. Following are set of design principle. The design identifier interface object
action and then create a screen layout that formats the basic for the user interface
prototype. User interface begin with the identification of the user, task and the
environment requirement. User interface for software should be design in such a way that
is friendly to the user, easy to use and easy to understand. It should provide high quality
interface between the users in the system. The results produce by our software should be
consistence.
In the designing the user interface it has been kept in mind that on technical personnel
will operate the system with very little or no technical knowledge, therefore the user
interface has been designed is user friendly as possible that facilitate easy and quick entry
of input data. Controls that has been used and designing the screen are:
1. Main page.
2. Administrator Login.
3. User Login.
4. Product page.
5. View product details.
6. Order.
7. Add to cart.
8. Registration from.
9. Success page.
10. Contact us.
11. Feedback.
46
47
48
7.5 Products
There is list of product available and also all of the description of the product and
category. If we want to buy a product, you simply click on the product, and the selected
product will show you more details about product.
49
50
In this table all of details of the product along with its specification and price are
available
here.
51
7.7 Order
In this page we have all the details about the product by which the customer order.
52
53
54
7.11 Contact us
In this form the developer contact is available for any problem. There is Name, email,
and phone no of owner are available.
55
56
CHAPTER 8
CODING
57
Appendices
Accessories
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Accessories.aspx.cs"
Inherits="OnlineVehicleShowroom.Admin.Accessories" %>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.0
Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Accessories</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( Accessories Form )
</h1>
<div class="loginDisplay">
<div class="clear hideSkiplink">
</div>
<asp:Menu ID="NavigationMenuuu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Admin Dashboard"/>
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
</div>
<div class="all" style="border: 2px solid white; width: 79.7%;">
<br />
<div id="Acc_grid_h1">
<h1><b>Accessories Form</b></h1>
<br />
<%--UpdateCommand="UPDATE
[User_Registration]
Set
[User_Name]=@User_Name, [User_CNIC]=@User_CNIC, [User_Gender]=@User_Gender,
[Email]=@Email,
[Password]=@Password,
[User_Tel_No]=@User_Tel_No,
[User_Mob_No]=@User_Mob_No,
[User_Address]=@User_Address,
[User_Country]=@User_Country
Where
[User_Reg_ID]=@User_Reg_ID"
DeleteCommand="DELETE
from
[User_Registration]
Where
[User_Reg_ID]=@User_Reg_ID"--%>
56
<Items>
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Admin Dashboard"/>
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
</div>
<div class="maiiiii" style=" border: 2px solid white; width: 79.67%; margin-left: 10%;
background: white;">
<br />
<h1 style="margin-left: 12%;"><b>Admin Form</b></h1>
<div id="grid_add">
<div class="gridview">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
AutoGenerateDeleteButton="True" AutoGenerateEditButton="True"
DataKeyNames="Admin_ID" DataSourceID="SqlDataSource1" Height="31px"
Width="424px">
<Columns>
<asp:BoundField DataField="Admin_ID" HeaderText="Admin_ID"
InsertVisible="False" ReadOnly="True" SortExpression="Admin_ID" />
<asp:BoundField DataField="Admin_Name" HeaderText="Admin_Name"
SortExpression="Admin_Name" />
<asp:BoundField DataField="Password" HeaderText="Password"
SortExpression="Password" />
</Columns>
<%--UpdateCommand="UPDATE [Admin] Set [Admin_Name]=@Admin_Name,
[Password]=@Password Where [Admin_ID]=@Admin_ID" DeleteCommand="DELETE from
[Admin] Where [Admin_ID]=@Admin_ID"--%>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$
ConnectionStrings:OnlineVehicleShowroomDBConnectionString %>"
SelectCommand="SELECT * FROM [Admin]" UpdateCommand="UPDATE [Admin]
Set
[Admin_Name]=@Admin_Name,
[Password]=@Password
Where
[Admin_ID]=@Admin_ID"
DeleteCommand="DELETE
from
[Admin]
Where
[Admin_ID]=@Admin_ID"></asp:SqlDataSource>
</div>
<div id="Admin_add">
<div id="lblEmail"> <asp:Label ID="txtAdminName" runat="server" Text="Name
"></asp:Label></div>
<div id="txtemal"> <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
</div>
<br />
<div id="lblPass"> <asp:Label ID="Label2" runat="server" Text="Password
"></asp:Label> </div>
<div id="txtPass"><asp:TextBox ID="txtPassword" runat="server"></asp:TextBox>
</div>
<br /><br />
59
</form>
</body>
</html>
Admin Dashboard
<%@
Page
Language="C#"
CodeBehind="Admin_Dashboard.aspx.cs"
Inherits="OnlineVehicleShowroom.Admin.WebForm1" %>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
AutoEventWireup="true"
1.0
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Admin Dashboard</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
60
Transitional//EN"
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( Admin Dashboard )
</h1>
<div id="aa" style="margin-left: 80%; margin-top: -5%;"><h2>
<asp:Label ID="lblWelcome" runat="server" Text=""
Font-Bold="True" Font-Italic="True" ForeColor="White"></asp:Label>
</h2></div>
<br />
<a href="../Default.aspx" style="color:White; margin-left: 90%;"
id="A1"><b>Logout</b></a>
<%--<Items>
<asp:MenuItem NavigateUrl="~/Default.aspx" Text="Logout"/>
</Items>--%>
<div class="loginDisplay">
<div class="clear hideSkiplink">
</div>
<asp:Menu ID="NavigationMenuuu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Dashboard"/>
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
<%--main area starts--%>
<div class="all" style="border: 2px solid black; width: 79.7%;">
<h2><b>Welcome to Admin Dashboard of Online Vehicle Showroom!</b></h2>
<div id="move">
<div id="one">
<asp:Image ID="Image1" runat="server" Height="37px"
ImageUrl="~/Admin/img/admin.JPG" Width="42px" />
<a href="../Admin/Admin.aspx" id="AdminLink">Admin</a>
<br /><br />
<asp:Image ID="Image2" runat="server" Height="37px"
ImageUrl="~/Admin/img/user_reg.JPG" Width="42px" />
<a href="../Admin/User_Reg.aspx" id="UserRegLink">User Registration</a>
<br /><br />
<asp:Image ID="Image3" runat="server" Height="37px"
ImageUrl="~/Admin/img/products.JPG" Width="42px" />
<a href="../Admin/Products.aspx" id="ProductsLink">Products</a>
61
<div id="three">
62
</div>
</div>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
</div> <%--main area ends--%>
<%--footer starts--%>
<div class="footer">
<p><b> Developed by Inam ullah & Atta ur rehman .</b></p>
<div class="social">
<asp:HyperLink ID="HyperLink1" runat="server"
ImageUrl="~/Admin/img/facebook.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image17" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink2" runat="server"
ImageUrl="~/Admin/img/twitter.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image18" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink3" runat="server"
ImageUrl="~/Admin/img/li.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image19" runat="server" />
</asp:HyperLink>
</div>
</div>
</div>
</form>
</body>
</html>
Contact
63
1.0
Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Contacts</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( Admin Form )
</h1>
<div class="loginDisplay">
<div class="clear hideSkiplink">
</div>
<asp:Menu ID="NavigationMenuuu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Admin Dashboard"/>
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
</div>
<div class="all" style="border: 2px solid white; width: 79.7%;">
<br />
<div id="cntact_grid_h1">
<h1><b>Contact Details Form</b></h1>
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
AutoGenerateDeleteButton="True" AutoGenerateEditButton="True"
DataKeyNames="Contact_ID" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="Contact_ID" HeaderText="Contact_ID"
InsertVisible="False" ReadOnly="True" SortExpression="Contact_ID" />
<asp:BoundField DataField="Name" HeaderText="Name"
SortExpression="Name" />
<asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email"
/>
<asp:BoundField DataField="Contact_No" HeaderText="Contact_No"
SortExpression="Contact_No" />
<%--<asp:BoundField DataField="Message" HeaderText="Message"
SortExpression="Message" />--%>
</Columns>
</asp:GridView>
64
ConnectionString="<%$
ConnectionStrings:OnlineVehicleShowroomDBConnectionString %>"
SelectCommand="SELECT * FROM [Contact]" UpdateCommand="UPDATE
[Contact] Set [Name]=@Name, [Email]=@Email, [Contact_No]=@Contact_No Where
[Contact_ID]=@Contact_ID"
DeleteCommand="DELETE
from
[Contact]
Where
[Contact_ID]=@Contact_ID"></asp:SqlDataSource>
</div>
<br /><br />
<div id="add_contact">
<asp:Label ID="Label1" runat="server" Text="Name" FontBold="True"></asp:Label> <br />
<asp:TextBox ID="txtName" runat="server" Width="175px"></asp:TextBox>
<br />
<asp:Label ID="Label2" runat="server" Text="Email" FontBold="True"></asp:Label> <br />
<asp:TextBox ID="txtEmail" runat="server" Width="174px"></asp:TextBox>
<br />
<%-<asp:Label ID="Label3" runat="server" Text="Subject" FontBold="True"></asp:Label> <br />
<asp:TextBox ID="txtSubject" runat="server"></asp:TextBox>
<br />--%>
<asp:Label ID="Label4" runat="server" Text="Contact_No" FontBold="True"></asp:Label> <br />
<asp:TextBox ID="txtContact" runat="server" Width="174px"></asp:TextBox>
<br /><br />
<asp:Button ID="btnAdd" runat="server" Text="ADD" Font-Bold="True"
Height="31px" onclick="btnAdd_Click" Width="59px" />
</div>
65
</asp:HyperLink>
</div>
</div> <%--Ends footer--%>
</form>
</body>
</html>
Delivery
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Delivery.aspx.cs"
Inherits="OnlineVehicleShowroom.Admin.Delivery" %>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.0
Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Delivery Form</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( Delivery Form )
</h1>
<div class="loginDisplay">
<div class="clear hideSkiplink">
</div>
<asp:Menu ID="NavigationMenuuu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Admin Dashboard"/>
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
</div>
<div class="all" style="border: 2px solid white; width: 79.7%;">
<br />
<div id="Delivery_grid_h1">
<h1><b>Delivery Form</b></h1>
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
66
DataKeyNames="Delivery_ID,Pro_ID" DataSourceID="SqlDataSource1"
Height="114px">
<Columns>
<asp:BoundField DataField="Delivery_ID" HeaderText="Delivery_ID"
ReadOnly="True" SortExpression="Delivery_ID" />
<asp:BoundField DataField="User_CNIC" HeaderText="User_CNIC"
SortExpression="User_CNIC" />
<asp:BoundField DataField="Pro_ID" HeaderText="Pro_ID"
SortExpression="Pro_ID" ReadOnly="True" />
<asp:BoundField DataField="Pro_Name" HeaderText="Pro_Name"
SortExpression="Pro_Name" />
<%-- <asp:BoundField DataField="Delivery_City" HeaderText="Delivery_City"
SortExpression="Delivery_City" />
<asp:BoundField DataField="Delivery_Village" HeaderText="Delivery_Village"
SortExpression="Delivery_Village" />--%>
<asp:BoundField DataField="Delivery_Source" HeaderText="Delivery_Source"
SortExpression="Delivery_Source" />
<asp:BoundField DataField="Delivery_Address" HeaderText="Delivery_Address"
SortExpression="Delivery_Address" />
<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date"
/>
</Columns>
</asp:GridView>
<%--SelectCommand="SELECT * FROM [Delivery]" UpdateCommand="UPDATE
[Delivery]
Set
[Pro_ID]=@Pro_ID,
[User_Reg_ID]=@User_Reg_ID,
[Delivery_Address]=@Delivery_Address,
[Date]=@Date,
[Delivery_Source]=@Delivery_Source
Where
[Delivery_ID]=@Delivery_ID"
DeleteCommand="DELETE
from
[Delivery]
Where
[Delivery_ID]=@Delivery_ID"></asp:SqlDataSource>
--%>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$
ConnectionStrings:OnlineVehicleShowroomDBConnectionString %>"
SelectCommand="SELECT * FROM [Delivery_Details_View]"
DeleteCommand="DELETE
from
[Delivery]
Where
[Delivery_ID]=@Delivery_ID"></asp:SqlDataSource>
</div>
<%--<div id="delivery_Add">
<asp:Label ID="Label2" runat="server" Text="Product ID"></asp:Label><br />
<asp:TextBox ID="txtProID" runat="server"></asp:TextBox>
<br />
<asp:Label ID="Label1" runat="server" Text="User Registration
ID"></asp:Label><br />
<asp:TextBox ID="txtUserRegID" runat="server"></asp:TextBox>
<br />
<asp:Label ID="Label3" runat="server"
Address"></asp:Label><br />
<asp:TextBox ID="txtDelivAdrs" runat="server"></asp:TextBox>
<br />
<br />
<br />
<br />
67
Text="Delivery
<br />
<asp:Label ID="Label6" runat="server" Text="Date"></asp:Label><br />
<asp:TextBox ID="txtDate" runat="server"></asp:TextBox>
<br />
/>
</form>
</body>
</html>
Employee from
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Employee.aspx.cs"
Inherits="OnlineVehicleShowroom.Admin.Employee" %>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.0
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Employee</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
68
Transitional//EN"
<body>
<form id="form1" runat="server">
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( Employee Form )
</h1>
<div class="loginDisplay">
<div class="clear hideSkiplink">
</div>
<asp:Menu ID="NavigationMenuuu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Admin Dashboard"/>
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
</div>
<div class="all" style="border: 2px solid white; width: 79.7%;">
<br />
<div id="Emp_grid_h1">
<h1><b>Employee Details Form</b></h1>
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
AutoGenerateDeleteButton="True" AutoGenerateEditButton="True"
DataKeyNames="Emp_ID" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="Emp_ID" HeaderText="Emp_ID"
InsertVisible="False"
ReadOnly="True" SortExpression="Emp_ID" />
<asp:BoundField DataField="Emp_Name" HeaderText="Emp_Name"
SortExpression="Emp_Name" />
<asp:BoundField DataField="Emp_Gender" HeaderText="Emp_Gender"
SortExpression="Emp_Gender" />
<asp:BoundField DataField="Emp_CNIC" HeaderText="Emp_CNIC"
SortExpression="Emp_CNIC" />
<asp:BoundField DataField="Emp_Designation"
HeaderText="Emp_Designation"
SortExpression="Emp_Designation" />
<asp:BoundField DataField="Emp_Mob_No" HeaderText="Emp_Mob_No"
SortExpression="Emp_Mob_No" />
<asp:BoundField DataField="Emp_Address" HeaderText="Emp_Address"
SortExpression="Emp_Address" />
<asp:BoundField DataField="Emp_Salary" HeaderText="Emp_Salary"
SortExpression="Emp_Salary" />
</Columns>
</asp:GridView>
69
ConnectionString="<%$
ConnectionStrings:OnlineVehicleShowroomDBConnectionString %>"
SelectCommand="SELECT * FROM [Employee]" UpdateCommand="UPDATE
[Employee]
Set
[Emp_Name]=@Emp_Name,
[Emp_Gender]=@Emp_Gender,
[Emp_CNIC]=@Emp_CNIC,
[Emp_Designation]=@Emp_Designation,
[Emp_Mob_No]=@Emp_Mob_No,
[Emp_Address]=@Emp_Address,
[Emp_Salary]=@Emp_Salary Where [Emp_ID]=@Emp_ID" DeleteCommand="DELETE from
[Employee] Where [Emp_ID]=@Emp_ID"></asp:SqlDataSource>
</div>
<div id="Add_Emp">
<asp:Label ID="Label1" runat="server" Text="Name"></asp:Label> <br />
<asp:TextBox ID="txtEmpName" runat="server"></asp:TextBox>
<br />
<asp:Label ID="Label2" runat="server" Text="Gender"></asp:Label> <br />
<asp:TextBox ID="txtGender" runat="server"></asp:TextBox>
<br />
<asp:Label ID="Label3" runat="server" Text="CNIC"></asp:Label> <br />
<asp:TextBox ID="txtCNIC" runat="server"></asp:TextBox>
<br />
<asp:Label ID="Label4" runat="server" Text="Designation"></asp:Label> <br />
<asp:TextBox ID="txtDesignation" runat="server"></asp:TextBox>
<br />
<asp:Label ID="Label5" runat="server" Text="Mobile No"></asp:Label> <br />
<asp:TextBox ID="txtMobNo" runat="server"></asp:TextBox>
<br />
<asp:Label ID="Label6" runat="server" Text="Address"></asp:Label> <br />
<asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
<br />
<asp:Label ID="Label7" runat="server" Text="Salary"></asp:Label> <br />
<asp:TextBox ID="txtSalary" runat="server"></asp:TextBox>
<br /><br />
<asp:Button ID="btnAdd" runat="server" Text="ADD" Font-Bold="True"
Height="29px" onclick="btnAdd_Click" Width="54px" />
</div>
<br /><br /><br />
</div>
<%--footer starts--%>
<div class="footer">
<p><b> Developed by Inam ullah & Atta ur rehman .</b></p>
<div class="social">
<asp:HyperLink ID="HyperLink1" runat="server"
ImageUrl="~/Admin/img/facebook.JPG" NavigateUrl="#">HyperLink
70
FAQs
<%@ Page Language="C#" AutoEventWireup="true"
Inherits="OnlineVehicleShowroom.Admin.Faqs" %>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
CodeBehind="Faqs.aspx.cs"
1.0
Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Faqs</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( Faqs )
</h1>
<div class="loginDisplay">
<div class="clear hideSkiplink">
</div>
<asp:Menu ID="NavigationMenuuu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Admin Dashboard"/>
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
71
</div>
<div class="all" style="border: 2px solid white; width: 79.7%;">
<br />
<h1><b>Faqs Form</b></h1>
<br />
<%--UpdateCommand="UPDATE [Admin] Set [Email]=@Email,
[Password]=@Password Where [Admin_ID]=@Admin_ID" DeleteCommand="DELETE from
[Admin] Where [Admin_ID]=@Admin_ID"--%>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
AutoGenerateDeleteButton="True" AutoGenerateEditButton="True"
DataKeyNames="Faq_ID" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="Faq_ID" HeaderText="Faq_ID" ReadOnly="True"
SortExpression="Faq_ID" />
<asp:BoundField DataField="Faq_Question" HeaderText="Faq_Question"
SortExpression="Faq_Question" />
<asp:BoundField DataField="Faq_Answer" HeaderText="Faq_Answer"
SortExpression="Faq_Answer" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$
ConnectionStrings:OnlineVehicleShowroomDBConnectionString %>"
SelectCommand="SELECT * FROM [Faqs]" UpdateCommand="UPDATE [Faqs] Set
[Faq_Question]=@Faq_Question, [Faq_Answer]=@Faq_Answer Where [Faq_ID]=@Faq_ID"
DeleteCommand="DELETE from [Faqs] Where [Faq_ID]=@Faq_ID"></asp:SqlDataSource>
<br /><br />
<div id="add_faqs">
<div id="lbl_Ques"><asp:Label ID="Label1" runat="server" Text="Question"
Font-Bold="True"></asp:Label> </div>
<div id="txt_Ques"> <asp:TextBox id="txtQues" TextMode="multiline"
Columns="70"
Rows="3" runat="server" /> </div>
<br />
<div id="lbl_Ans"> <asp:Label ID="Label2" runat="server" Text="Answer"
Font-Bold="True"></asp:Label> </div>
<div id="txt_Ans"> <asp:TextBox id="txtAns" TextMode="multiline"
Columns="70"
Rows="3" runat="server" /> </div>
<br />
<div id="btnAdd_Faqs">
<asp:Button ID="btnAdd" runat="server" Text="ADD" Font-Bold="True"
Height="27px" onclick="btnAdd_Click1" Width="58px" />
</div>
</div>
<br /><br /><br />
</div>
72
<%--footer starts--%>
<div class="footer">
<p><b> Developed by Inam ullah&Atta ur rehman .</b></p>
<div class="social">
<asp:HyperLink ID="HyperLink1" runat="server"
ImageUrl="~/Admin/img/facebook.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image17" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink2" runat="server"
ImageUrl="~/Admin/img/twitter.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image18" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink3" runat="server"
ImageUrl="~/Admin/img/li.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image19" runat="server" />
</asp:HyperLink>
</div>
</div> <%--Ends footer--%>
</form>
</body>
</html>
Feed back
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Feedback.aspx.cs"
Inherits="OnlineVehicleShowroom.Admin.Feedback" %>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.0
Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Feedback</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( Feedback Form )
</h1>
<div class="loginDisplay">
<div class="clear hideSkiplink">
</div>
<asp:Menu ID="NavigationMenuuu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Admin Dashboard"/>
73
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
</div>
<div class="all" style="border: 2px solid white; width: 79.7%;">
<br />
<h1 style="margin-left:16%;"><b>Feedbacks Form</b></h1>
<br /><br />
<div id="feedback_grid">
</div>
74
</div>
<%--footer starts--%>
<div class="footer">
<p><b> Developed by Inam ullah & Atta ur rehman .</b></p>
<div class="social">
<asp:HyperLink ID="HyperLink1" runat="server"
ImageUrl="~/Admin/img/facebook.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image17" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink2" runat="server"
ImageUrl="~/Admin/img/twitter.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image18" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink3" runat="server"
ImageUrl="~/Admin/img/li.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image19" runat="server" />
</asp:HyperLink>
</div>
</div> <%--Ends footer--%>
</form>
</body>
</html>
1.0
Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Loss & Profit Form</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( Loss & Profit Form )
</h1>
<div class="loginDisplay">
<div class="clear hideSkiplink">
</div>
<asp:Menu ID="NavigationMenuuu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
75
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Admin Dashboard"/>
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
</div>
<div class="all" style="border: 2px solid white; width: 79.7%;">
<br />
<div id="LP_Grid_h1">
<h1><b>Loss & Profit Details Form</b></h1>
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
AutoGenerateDeleteButton="True" AutoGenerateEditButton="True"
DataKeyNames="LP_ID" DataSourceID="SqlDataSource1" Height="130px"
Width="337px">
<Columns>
<asp:BoundField DataField="LP_ID" HeaderText="LP_ID" InsertVisible="False"
ReadOnly="True" SortExpression="LP_ID" />
<asp:BoundField DataField="Pro_ID" HeaderText="Pro_ID"
SortExpression="Pro_ID" />
<asp:BoundField DataField="Loss_Amount" HeaderText="Loss_Amount"
SortExpression="Loss_Amount" />
<asp:BoundField DataField="Profit_Amount" HeaderText="Profit_Amount"
SortExpression="Profit_Amount" />
</Columns>
</asp:GridView>
<%--UpdateCommand="UPDATE [Delivery] Set [Pro_ID]=@Pro_ID,
[User_Reg_ID]=@User_Reg_ID,
[Delivery_Address]=@Delivery_Address,
[Delivery_City]=@Delivery_City, [Delivery_Village]=@Delivery_Village, [Date]=@Date,
[Delivery_Source]=@Delivery_Source
Where
[Delivery_ID]=@Delivery_ID"
DeleteCommand="DELETE from [Delivery] Where [Delivery_ID]=@Delivery_ID"--%>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$
ConnectionStrings:OnlineVehicleShowroomDBConnectionString %>"
SelectCommand="SELECT * FROM [Lost_Profit]" UpdateCommand="UPDATE
[Lost_Profit]
Set
[Pro_ID]=@Pro_ID,
[Loss_Amount]=@Loss_Amount,
[Profit_Amount]=@Profit_Amount Where [LP_ID]=@LP_ID" DeleteCommand="DELETE
from [Lost_Profit] Where [LP_ID]=@LP_ID"></asp:SqlDataSource>
</div>
<div id="LP_ADD">
<asp:Label ID="Label1" runat="server" Text="Product ID"></asp:Label><br />
<asp:TextBox ID="txtProID" runat="server" Height="24px"></asp:TextBox>
<br />
<asp:Label ID="Label2" runat="server" Text="Loss Amount"></asp:Label><br />
<asp:TextBox ID="txtLossAmount" runat="server" Height="24px"></asp:TextBox>
<br />
<asp:Label ID="Label3" runat="server" Text="Profit Amount"></asp:Label><br />
<asp:TextBox ID="txtProfitAmount" runat="server" Height="24px"></asp:TextBox>
<br /><br />
76
<div id="btnAdd_LP">
<asp:Button ID="btnAdd" runat="server" Text="ADD" Font-Bold="True"
onclick="btnAdd_Click" />
</div>
</div>
<br /><br /><br /><br />
</div>
<%--footer starts--%>
<div class="footer">
<p><b> Developed by Inam ullah & Atta ur rehman .</b></p>
<div class="social">
<asp:HyperLink ID="HyperLink1" runat="server"
ImageUrl="~/Admin/img/facebook.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image17" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink2" runat="server"
ImageUrl="~/Admin/img/twitter.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image18" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink3" runat="server"
ImageUrl="~/Admin/img/li.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image19" runat="server" />
</asp:HyperLink>
</div>
</div> <%--Ends footer--%>
</form>
</body>
</html>
Order from
<%@ Page Language="C#" AutoEventWireup="true"
Inherits="OnlineVehicleShowroom.Admin.Orders" %>
CodeBehind="Orders.aspx.cs"
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.0
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Orders</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="headrr">
<h1>
77
Transitional//EN"
/>
78
ConnectionString="<%$
ConnectionStrings:OnlineVehicleShowroomDBConnectionString %>"
SelectCommand="SELECT * FROM [order_details_view]"></asp:SqlDataSource>
Payment form
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Payments.aspx.cs"
Inherits="OnlineVehicleShowroom.Admin.Payments" %>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.0
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Payments</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
79
Transitional//EN"
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( Payments Form )
</h1>
<div class="loginDisplay">
<div class="clear hideSkiplink">
</div>
<asp:Menu ID="NavigationMenuuu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Admin Dashboard"/>
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
</div>
<div class="all" style="border: 2px solid white; width: 79.7%;">
<br />
<div id="">
<h1><b>Payments Details Form</b></h1>
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="Pay_ID,Pro_ID" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="Pay_ID" HeaderText="Pay_ID"
ReadOnly="True" SortExpression="Pay_ID" />
<asp:BoundField DataField="User_CNIC" HeaderText="User_CNIC"
SortExpression="User_CNIC" />
<asp:BoundField DataField="Pro_ID" HeaderText="Pro_ID"
SortExpression="Pro_ID" ReadOnly="True" />
<asp:BoundField DataField="Pro_Name" HeaderText="Pro_Name"
SortExpression="Pro_Name" />
<asp:BoundField DataField="Bank_Name" HeaderText="Bank_Name"
SortExpression="Bank_Name" />
<asp:BoundField DataField="Account_No" HeaderText="Account_No"
SortExpression="Account_No" />
<asp:BoundField DataField="Pay_Date" HeaderText="Pay_Date"
SortExpression="Pay_Date" />
</Columns>
</asp:GridView>
80
[Payments_Details_View]"></asp:SqlDataSource>
SelectCommand="SELECT
FROM
</div>
<br /><br /><br />
</div>
<%--footer starts--%>
<div class="footer">
<p><b> Developed by Inam ullah& Atta ur rehman .</b></p>
<div class="social">
<asp:HyperLink ID="HyperLink1" runat="server"
ImageUrl="~/Admin/img/facebook.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image17" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink2" runat="server"
ImageUrl="~/Admin/img/twitter.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image18" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink3" runat="server"
ImageUrl="~/Admin/img/li.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image19" runat="server" />
</asp:HyperLink>
</div>
</div> <%--Ends footer--%>
</form>
</body>
</html>
Product list
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Products.aspx.cs"
Inherits="OnlineVehicleShowroom.Admin.Products" %>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.0
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Products</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( Products List )
</h1>
81
Transitional//EN"
<div class="loginDisplay">
<div class="clear hideSkiplink">
</div>
<asp:Menu ID="NavigationMenuuu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Admin Dashboard"/>
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
</div>
<div class="all" style="border: 2px solid white; width: 79.7%;">
<br />
<h1><b>Products Form</b></h1>
<asp:Image ID="Image5" runat="server" Height="37px"
ImageUrl="~/Admin/img/Add.png" Width="42px" />
<a href="../Admin/Products_Add.aspx" id="A1">Add Products</a
<br />
/>
82
ConnectionString="<%$
ConnectionStrings:OnlineVehicleShowroomDBConnectionString %>"
SelectCommand="SELECT * FROM [Products]" UpdateCommand="UPDATE
[Products]
Set
[Pro_Name]=@Pro_Name,
[Cmp_Name]=@Cmp_Name,
[Pro_Price]=@Pro_Price, [Description]=@Description, [Size]=@Size, [Color]=@Color,
[Model]=@Model,
[FileName]=@FileName
Where
[Pro_ID]=@Pro_ID"
DeleteCommand="DELETE
from
[Products]
Where
[Pro_ID]=@Pro_ID"></asp:SqlDataSource>
<%--<br /><br /><br /><br />--%>
<%--<div id="Add_Products">
<asp:Label ID="Label1" runat="server" Text="Product Name"></asp:Label><br />
<asp:TextBox ID="txtProName" runat="server" Height="25px"
Width="250px"></asp:TextBox>
<br />
<asp:Label ID="Label2" runat="server" Text="Catagory ID"></asp:Label><br />
<asp:TextBox
ID="txtCatID"
runat="server" Height="25px"
Width="250px"></asp:TextBox>
<br />
<asp:Label ID="Label3" runat="server" Text="Company ID"></asp:Label><br />
<asp:TextBox ID="txtCmpID" runat="server" Height="25px"
Width="250px"></asp:TextBox>
<br />
<asp:Label ID="Label4" runat="server" Text="Product Price"></asp:Label><br />
<asp:TextBox ID="txtProPrice" runat="server" Height="25px"
Width="250px"></asp:TextBox>
<br />
<asp:Label ID="Label5" runat="server" Text="Description"></asp:Label><br />
<asp:TextBox ID="txtDescription" runat="server" Height="25px"
Width="250px"></asp:TextBox>
<br />
<asp:Label ID="Label6" runat="server" Text="Product Image"></asp:Label><br />
<asp:FileUpload ID="FileUpload1" runat="server" Height="25px"
Width="250px"/>
<br />
<asp:Label ID="Label7" runat="server" Text="Size"></asp:Label><br />
<asp:TextBox
ID="txtSize"
runat="server"
Height="25px"
Width="250px"></asp:TextBox>
<br />
<asp:Label ID="Label8" runat="server" Text="Color"></asp:Label><br />
<asp:TextBox
ID="txtColor"
runat="server"
Height="25px"
Width="250px"></asp:TextBox>
<br />
<asp:Label ID="Label9" runat="server" Text="Model"></asp:Label><br />
<asp:TextBox ID="txtModel" runat="server" Height="26px"
Width="250px"></asp:TextBox>
<br /><br />
<asp:Button ID="btnAdd" runat="server" Text="ADD" Font-Bold="True"
83
Add product
<%@
Page
Language="C#"
CodeBehind="Products_Add.aspx.cs"
Inherits="OnlineVehicleShowroom.Admin.Add_Products" %>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
AutoEventWireup="true"
1.0
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Add Products</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( Products Form )
</h1>
<div class="loginDisplay">
84
Transitional//EN"
<asp:TextBox
Width="250px"></asp:TextBox>
<br />
ID="txtCmpName"
runat="server"
Height="25px"
85
<asp:TextBox
Width="250px"></asp:TextBox>
<br />
ID="txtColor"
runat="server"
Height="25px"
</div>
<%--footer starts--%>
<div class="footer">
<p><b> Developed by Inam ullah& Atta er rehman .</b></p>
<div class="social">
<asp:HyperLink ID="HyperLink1" runat="server"
ImageUrl="~/Admin/img/facebook.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image17" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink2" runat="server"
ImageUrl="~/Admin/img/twitter.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image18" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink3" runat="server"
ImageUrl="~/Admin/img/li.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image19" runat="server" />
</asp:HyperLink>
</div>
</div> <%--Ends footer--%>
</div>
</form>
</body>
</html>
Stock
86
CodeBehind="Stock.aspx.cs"
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.0
Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Stock</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( Admin Form )
</h1>
<div class="loginDisplay">
<div class="clear hideSkiplink">
</div>
<asp:Menu ID="NavigationMenuuu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Admin Dashboard"/>
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
</div>
<div class="all" style="border: 2px solid white; width: 79.7%;">
<br />
<div id="stock_grid_h1">
<h1><b>Stock Details Form</b></h1>
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
AutoGenerateDeleteButton="True" AutoGenerateEditButton="True"
DataKeyNames="Stock_ID" DataSourceID="SqlDataSource1" Width="316px">
<Columns>
<asp:BoundField DataField="Stock_ID" HeaderText="Stock_ID"
InsertVisible="False" ReadOnly="True" SortExpression="Stock_ID" />
<asp:BoundField DataField="Pro_ID" HeaderText="Pro_ID"
SortExpression="Pro_ID" />
<asp:BoundField DataField="qty" HeaderText="qty" SortExpression="qty" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
87
ConnectionString="<%$
ConnectionStrings:OnlineVehicleShowroomDBConnectionString %>"
SelectCommand="SELECT * FROM [Stock]" UpdateCommand="UPDATE [Stock]
Set
[Pro_ID]=@Pro_ID,
[qty]=@qty
Where
[Stock_ID]=@Stock_ID"
DeleteCommand="DELETE
from
[Stock]
Where
[Stock_ID]=@Stock_ID"></asp:SqlDataSource>
</div>
<div id="Add_stock">
<asp:Label ID="Label1" runat="server" Text="Product ID"></asp:Label> <br />
<asp:TextBox ID="txtProID" runat="server" Width="184px"></asp:TextBox>
<br /><br />
<asp:Label ID="Label2" runat="server" Text="Quantity"></asp:Label> <br />
<asp:TextBox ID="txtQty" runat="server" Width="184px"></asp:TextBox>
<br /><br />
<asp:Button ID="btnAdd" runat="server" Text="ADD" Font-Bold="True"
Height="32px" onclick="btnAdd_Click" Width="62px" />
</div>
<br /><br /><br />
</div>
<%--footer starts--%>
<div class="footer">
<p><b> Developed by Inam ullah & Atta ur rehman .</b></p>
<div class="social">
<asp:HyperLink ID="HyperLink1" runat="server"
ImageUrl="~/Admin/img/facebook.JPG" NavigateUrl="#">HyperLink
<asp:Image ID="Image17" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink2" runat="server"
ImageUrl="~/Admin/img/twitter.JPG" NavigateUrl="#">HyperLink <asp:Image
ID="Image18" runat="server" />
</asp:HyperLink>
<asp:HyperLink ID="HyperLink3" runat="server"
ImageUrl="~/Admin/img/li.JPG" NavigateUrl="#">HyperLink <asp:Image
ID="Image19" runat="server" />
</asp:HyperLink>
</div>
</div> <%--Ends footer--%>
</form>
</body>
</html>
User registration
88
1.0
Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>User Registration</title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="headrr">
<h1>
Online Vehicle Showroom - ( User Registration Form )
</h1>
<div class="loginDisplay">
<div class="clear hideSkiplink">
</div>
<asp:Menu ID="NavigationMenuuu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Admin/Admin_Dashboard.aspx"
Text="Admin Dashboard"/>
</Items>
</asp:Menu>
</div> <!-- /loginDisplay -->
</div> <!-- /Headrr -->
</div>
<div class="all" style="border: 2px solid white; width: 79.7%;">
<br /><br /><br />
<div id="User_reg_grid">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
AutoGenerateEditButton="True"
DataKeyNames="User_Reg_ID" DataSourceID="SqlDataSource1" Width="97px"
AutoGenerateDeleteButton="True" Height="119px">
<Columns>
<asp:BoundField DataField="User_Reg_ID" HeaderText="User_Reg_ID"
InsertVisible="False" ReadOnly="True" SortExpression="User_Reg_ID" />
<asp:BoundField DataField="User_Name" HeaderText="User_Name"
SortExpression="User_Name" />
<asp:BoundField DataField="User_CNIC" HeaderText="User_CNIC"
SortExpression="User_CNIC" />
<asp:BoundField DataField="User_Gender" HeaderText="User_Gender"
SortExpression="User_Gender" />
<asp:BoundField DataField="Email" HeaderText="Email"
SortExpression="Email" />
<asp:BoundField DataField="Password" HeaderText="Password"
SortExpression="Password" />
89
Front end
Admin login
90
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/Site.Master"
AutoEventWireup="true"
CodeBehind="admin_login.aspx.cs"
Inherits="OnlineVehicleShowroom.admin_login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="row" style="border: 2px solid white; width: 40%; margin-left: 25%;">
<div class="col-md-8">
<div id="kk" style="margin-left: 40%;"><h3>Admin Login</h3></div>
Text="Login"
onclick="btnLogin_Click" />
</div>
</form>
<br />
<div style="margin-left: 20%; color:Red">
<asp:Label ID="lblError" runat="server" Font-Bold="True" Font-Italic="True"
Font-Size="Medium"></asp:Label>
</div>
</div>
</div>
</asp:Content>
91
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/Site.Master"
AutoEventWireup="true"
CodeBehind="checkout_delivery.aspx.cs"
Inherits="OnlineVehicleShowroom.confirm_order" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<!-- Page Content -->
<%-- Container Starts--%>
<div class="container">
<!-- Page Heading/Breadcrumbs -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Checkout Section
<small>Entere Delivery Address</small>
</h1>
<ol class="breadcrumb">
<li><a href="Default.aspx">Home</a>
</li>
<li class="active">Checkout</li>
</ol>
</div>
</div>
<!-- /.row -->
<!-- Content Row -->
<!-- /.row -->
<!-- Contact Form -->
<!-- In order to set the email address and subject line for the contact form go to the
bin/contact_me.php file. -->
<div class="row">
<div class="col-md-8">
<h2 style="color: blue">Delivery Address</h2>
<small style="color: green">Enter the Address where you want to recieve the
product</small>
<br><br>
<form name="sentMessage" id="contactForm" novalidate>
<%-- Height="33px" Width="321px"--%>
<%--<div class="control-group form-group">
<div class="controls">
<label>Product Name:</label> <br />
<asp:DropDownList ID="txtProName" runat="server"
DataSourceID="SqlDataSource1" DataTextField="Pro_Name"
DataValueField="Pro_Name" Height="33px" Width="321px">
</asp:DropDownList>
runat="server"
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
92
[Products]"></asp:SqlDataSource>
<p class="help-block"></p>
</div>
</div>--%>
<div class="control-group form-group">
<div class="controls">
<label>User CNIC:</label> <br />
<asp:TextBox ID="txtUsrCNIC" runat="server" Height="33px"
Width="321px"></asp:TextBox>
<p style="color: green;">*Like 1360344556786</p>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server"
ControlToValidate="txtUsrCNIC" ErrorMessage="Please enter your
CNIC No"></asp:RequiredFieldValidator>
</div>
<%--<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="YourTextBox" ValidationExpression="\d">
ErrorMessage="Numeric Only Please"
</asp:RegularExpressionValidator>
<asp:RegularExpressionValidator ID="regexpName" runat="server"
ErrorMessage="This expression does not validate."
ControlToValidate="txtName"
ValidationExpression="^[a-zA-Z'.\s]{1,40}$" />--%>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Delivey Source:</label> <br />
<asp:TextBox ID="txtDelivSource" runat="server" Height="33px"
Width="321px"></asp:TextBox>
<p style="color: green;">*Purchaser / Reciever</p>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server"
ControlToValidate="txtDelivSource" ErrorMessage="Please enter the
delivery source"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="regexpName" runat="server"
ErrorMessage="Please enter the valid expression."
ControlToValidate="txtDelivSource"
ValidationExpression="^[a-zA-Z''-'\s]{1,40}$" />
</div>
<p style="color: red;"><b>*Enter the source who will recieve the product
( Purchaser / Reciever )</b></p>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Delivey Address:</label> <br />
<asp:TextBox ID="txtAddress" runat="server" Width="43%"
Height="64px"
TextMode="multiline" Columns="70"
Rows="3"></asp:TextBox>
<p style="color: green;">*Your complete address as mentioned in NIC
card.</p>
93
runat="server"
<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
runat="server"
<hr />
<%--<a href="Default.aspx" class="btn btn-success" style="margin-left: 82.5%; color:
white;"><b>Succeed</b></--%>
</div>
<%--/Container--%>
</asp:Content>
94
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/Site.Master"
AutoEventWireup="true"
CodeBehind="checkout_payments.aspx.cs"
Inherits="OnlineVehicleShowroom.payments" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="container">
<!-- Page Heading/Breadcrumbs -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Checkout Section
<small>Entere Payment Details to complete the checkout section
successfully</small>
</h1>
<ol class="breadcrumb">
<li><a href="Default.aspx">Home</a>
</li>
<li class="active">Checkout</li>
</ol>
</div>
</div>
<!-- /.row -->
<%--payments--%>
<div class="row">
<div class="col-md-8">
<h2 style="color: blue"><b>Payment Details</b></h2>
<small style="color: brown">Enter the payment details to get the product
successfully</small>
<br /><br /><br />
<form name="payment" id="contactForm" novalidate>
<div class="control-group form-group">
<div class="controls">
<label>User CNIC:</label> <br />
<asp:TextBox ID="txtCNIC" runat="server" Height="33px"
Width="321px"></asp:TextBox>
<p style="color: green;">*Like 1360344556786</p>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server"
ControlToValidate="txtCNIC" ErrorMessage="Please enter your CNIC
No"></asp:RequiredFieldValidator>
</div>
</div>
<%--<div class="control-group form-group">
<div class="controls">
<label>Product Name:</label> <br />
<asp:DropDownList ID="txtProID" runat="server" Height="33px"
Width="321px"
DataSourceID="SqlDataSource1" DataTextField="Pro_Name"
DataValueField="Pro_Name">
</asp:DropDownList>
<p style="color: green;">*Please select Product</p>
95
96
<div id="success"></div>
<asp:Button ID="btnPaySubmit" class="btn btn-primary" runat="server"
Text="Proceed" onclick="btnPaySubmit_Click" />
</form>
</div>
</div>
<!-- /.row -->
</div>
</asp:Content>
Contac us
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/Site.Master"
AutoEventWireup="true"
CodeBehind="contact.aspx.cs"
Inherits="OnlineVehicleShowroom.contact" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<!-- Page Content -->
<div class="container">
<!-- Page Heading/Breadcrumbs -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Contact Us
</h1>
<ol class="breadcrumb">
<li><a href="Default.aspx">Home</a>
</li>
<li class="active">Contact</li>
</ol>
</div>
</div>
<!-- /.row -->
<!-- Content Row -->
<center>
<div class="row">
<!-- Contact Details Column -->
<div>
<h2><b>Contact Details</b></h2>
<p class="lead">Welcome to the Contact Us page of the Online Vehicle
Showroom.</p>
<%-- <asp:DataList runat="server" ID="one" DataKeyField="Contact_ID"
DataSourceID="SqlDataSource1">
97
<ItemTemplate>
%>' />
Contact_ID:
<asp:Label ID="Contact_IDLabel" runat="server"
Text='<%# Eval("Contact_ID") %>' />
<br />
Name:
<asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name")
<br />
Email:
<asp:Label ID="EmailLabel" runat="server" Text='<%# Eval("Email") %>' />
<br />
Contact_No:
<asp:Label ID="Contact_NoLabel" runat="server"
Text='<%# Eval("Contact_No") %>' />
<br />
<br />
</ItemTemplate>
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$
ConnectionStrings:OnlineVehicleShowroomDBConnectionString %>"
SelectCommand="SELECT [Contact_ID], [Name], [Email], [Contact_No] FROM
[Contact]">
</asp:SqlDataSource>
--%>
98
</asp:Content>
Site. Master
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master"
AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="OnlineVehicleShowroom._Default" %>
<asp:Content
ID="HeaderContent"
runat="server"
ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
99
<div class="panel-heading">
<h4><i class="fa fa-fw fa-check"></i> Services</h4>
</div>
<div class="panel-body">
<p>Online Vehicle Showroom is most efficient site.Our customers buy
vehicles from us so easily. We provide our best services and delightfull
atmosphere
More</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<h4> <i class="fa fa-fw fa-gift"></i> Free & Open Source </h4>
</div>
<div class="panel-body">
<p>We provide Free and open source friendly environment to our
respected customers.
They can use and watch our Online Vehicle Showroom with no risks.
Thats why Online Vehicle Showrrom is known to be the best client side
website.</p>
<a href="#" class="btn btn-default" style="color: White;">Learn
More</a>
</div>
</div>
</div>
<%--<asp:Calendar runat="server"></asp:Calendar>--%>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-compass"></i> Easy to Use</h4>
</div>
<div class="panel-body">
<p>Online Vehicle Showroom is such an exciting client side website that
ofers
shop from here
More</a>
so many ofers to avail and use in relax manner. Meanwhile you can either
or get any information by just one click on given options.</p>
<a href="#" class="btn btn-default" style="color: White;">Learn
</div>
</div>
</div>
</div>
<!-- /.row -->
100
Faqs
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/Site.Master"
AutoEventWireup="true"
CodeBehind="faq.aspx.cs"
Inherits="OnlineVehicleShowroom.faq" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
101
ID="DataList"
runat="server"
102
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/Site.Master"
AutoEventWireup="true"
CodeBehind="product_catagories.aspx.cs"
Inherits="OnlineVehicleShowroom.product_catagories" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<br />
<!-- /Catagories -->
<%--<div id="Cat_Heading" style="margin-left: 10%;">
<h1>Catagories</h1>
</div>--%>
<%--Catagories section--%>
<%--<div>
<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConnectionString="<%$
ConnectionStrings:OnlineVehicleShowroomDBConnectionString %>"
SelectCommand="SELECT * FROM [Catagory]">
</asp:SqlDataSource>
<div id="all_cats" style="margin-left: 10%;">
<section>
<div>
103
border="1" />
<td>
<a href="/products.aspx?Cat_ID=<%#Eval("Cat_ID") %>">
<image src="images/cat.gif" width="130" height="85"
</a>
</td>
</tr>
<tr>
<td>
<br />
<b> <%#Eval("Cat_Name")%> </b>
<br />
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</p>
</td>
</ItemTemplate>
<LayoutTemplate>
<table style="width:100%;">
<tbody>
<tr>
<td>
<table id="groupPlaceholderContainer" runat="server"
style="width:100%">
<tr id="groupPlaceholder"></tr>
</table>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr></tr>
</tbody>
</table>
</LayoutTemplate>
</asp:ListView>
</div>
</section>
</div>
</div>--%>
<br />
<!-- all Products -->
<div id="Pro_Heading" style="margin-left: 10%;">
<h1>Products</h1>
<small>Please select your favourite vehicle and shop it now.</small>
</div>
<br />
104
<br />
<div id="All_products" style="margin-left: 10%;">
<section>
<div>
<asp:ListView ID="productList" runat="server" DataKeyNames="Pro_ID"
GroupItemCount="4" DataSourceID="SqlDataSource2"
onselectedindexchanged="productList_SelectedIndexChanged">
<EmptyDataTemplate>
<table >
<tr>
<td>No data was returned.</td>
</tr>
</table>
</EmptyDataTemplate>
<EmptyItemTemplate>
<td/>
</EmptyItemTemplate>
<GroupTemplate>
<tr id="itemPlaceholderContainer" runat="server">
<td id="itemPlaceholder" runat="server"></td>
</tr>
</GroupTemplate>
<ItemTemplate>
<td id="Td1" runat="server">
<table>
<tr>
<td>
<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl='<
%# Eval("FilePath") %>'
PostBackUrl='<%# Eval("Pro_ID", "product_details.aspx?Pro_ID={0}")
%>' width="210" height="155"
border="1" BorderStyle="Inset" /><br />
</td>
</tr>
<tr>
<td>
<b>Name: </b> <%#Eval("Pro_Name")%>
<br />
<b>Price: </b> <%#Eval("Pro_Price")%>
</span>
<br />
<a href="/product_details.aspx?Pro_ID=<%#Eval("Pro_ID") %>">
<span class="ProductListItem">
<b>View Details<b>
</span>
</a>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</p>
</td>
</ItemTemplate>
105
<LayoutTemplate>
<table style="width:100%;">
<tbody>
<tr>
<td>
<table id="groupPlaceholderContainer" runat="server"
style="width:100%">
<tr id="groupPlaceholder"></tr>
</table>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr></tr>
</tbody>
</table>
</LayoutTemplate>
</asp:ListView>
</div>
</section>
</div>
<!-- /all Products -->
<br />
</asp:Content>
Product Details
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/Site.Master"
AutoEventWireup="true"
CodeBehind="product_details.aspx.cs"
Inherits="OnlineVehicleShowroom.product_details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="container">
<!-- Page Heading/Breadcrumbs -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Product Details
</h1>
<ol class="breadcrumb">
<li><a href="Default.aspx">Home</a>
106
</li>
<li class="active"><a href="product_catagories.aspx">Back</a></li>
</ol>
</div>
</div>
<!-- /.row -->
<%--Orignal Code by help from Wingtip Toys for getting Product Details--%>
<%--<div>
<asp:FormView ID="productDetail" runat="server" RenderOuterTable="False"
DataSourceID="SqlDataSource1">
<ItemTemplate>
<div>
<h2><%#Eval("Pro_Name") %></h2>
</div>
<br />
<table>
<tr>
<td>
<img src='<%# Eval("FilePath") %>' style="border:solid; height:300px"
alt="<<%#Eval("Pro_Name") %>"/>
</td>
<td> </td>
<td style="vertical-align: top; text-align:left;">
<b>Description:</b><br /><%#Eval("Description")%><br
/><span><b>Price:</b> <%#
Eval("Pro_Price",
"{0:##0.00}"
)
%></span><br />
<span><b>Product Number:</b> <%#Eval("Pro_ID")
%></span><br /></td>
</tr>
</table>
</ItemTemplate>
</asp:FormView>
<div>
ConnectionString="<%$
%>"
<%--Orignal Code by help from ShoppingCart Example for getting Product Details--%>
<div>
<div>
107
108
OnClick="cart"/>
</div>
<%--<script>
function cart() {
document.cookie = "aaa";
109
}
</script>--%>
Registration
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/Site.Master"
AutoEventWireup="true"
CodeBehind="registration.aspx.cs"
Inherits="OnlineVehicleShowroom.registration" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<!-- Page Content -->
<div class="container">
<!-- Page Heading/Breadcrumbs -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Registration
<small>User Registration</small>
</h1>
<ol class="breadcrumb">
<li><a href="Default.aspx">Home</a>
</li>
<li class="active">Registration</li>
</ol>
</div>
</div>
<!-- /.row -->
<!-- Content Row -->
<!-- /.row -->
<!-- Contact Form -->
<!-- In order to set the email address and subject line for the contact form go to the
bin/contact_me.php file. -->
<div class="row">
<div class="col-md-8">
<form name="sentMessage" id="contactForm" novalidate>
<div class="control-group form-group">
<div class="controls">
<label>Full Name:</label> <br />
<asp:TextBox ID="txtName" runat="server" style="width:
50%;"></asp:TextBox>
<p style="color: green;">*Enter your Full Name</p>
<asp:RegularExpressionValidator ID="regexpName" runat="server"
ErrorMessage="<b>Error ! Invalid format</b>"
ControlToValidate="txtName"
110
ValidationExpression="^[a-zA-Z''-'\s]{1,40}$" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtName" ErrorMessage="Please enter the Full
Name"></asp:RequiredFieldValidator>
<p class="help-block"></p>
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>CNIC:</label> <br />
<asp:TextBox ID="txtCNIC" runat="server" style="width:
50%;"></asp:TextBox>
<p style="color: green;">*Like 1360344556786</p>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server"
ControlToValidate="txtCNIC" ErrorMessage="Please enter the CNIC
No"></asp:RequiredFieldValidator>
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Gender:</label> <br />
<asp:TextBox ID="txtGender" runat="server" style="width:
50%;"></asp:TextBox>
<p style="color: green;">*Male / Female</p>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server"
ControlToValidate="txtGender" ErrorMessage="Please enter
Gender"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1"
runat="server" ErrorMessage="<b>Error ! Invalid format</b>"
ControlToValidate="txtGender"
ValidationExpression="^[a-zA-Z''-'\s]{1,40}$" />
<p class="help-block"></p>
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Email:</label> <br />
<asp:TextBox ID="txtEmail" runat="server" type="email" style="width:
50%;"></asp:TextBox>
<p style="color: green;">*Like abc@abc.com</p>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server"
ControlToValidate="txtEmail" ErrorMessage="Please enter
Email"></asp:RequiredFieldValidator>
<p class="help-block"></p>
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Password:</label> <br />
<asp:TextBox ID="txtPassword" type="password" runat="server"
style="width: 50%;"></asp:TextBox>
<p style="color: green;">*Your secret password with numbers, chars,
uper & lower case.</p>
111
runat="server"
<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
style="width:
112
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/Site.Master"
AutoEventWireup="true"
CodeBehind="shopping_cart.aspx.cs"
Inherits="OnlineVehicleShowroom.shopping_cart" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
113
SortExpression="Pro_ID" />
<asp:BoundField DataField="Pro_Name" HeaderText="Product Name"
SortExpression="Pro_Name" />
<asp:BoundField DataField="Pro_Price" HeaderText="Product Price"
SortExpression="Pro_Price" />
</Columns>
<EmptyDataTemplate>
<asp:Label ID="Label1" runat="server" Text="Label"><b>Your Cart is empty !
Please go back to shop now.</b></asp:Label>
</EmptyDataTemplate>
</asp:GridView>
<%--UpdateCommand="UPDATE
[Faqs]
Set
[Faq_Question]=@Faq_Question,
[Faq_Answer]=@Faq_Answer Where [Faq_ID]=@Faq_ID" DeleteCommand="DELETE from
[Faqs] Where [Faq_ID]=@Faq_ID"
--%>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$
ConnectionStrings:OnlineVehicleShowroomDBConnectionString %>"
SelectCommand="SELECT [Pro_ID], [Pro_Name], [Pro_Price] FROM [tempTable]">
</asp:SqlDataSource>
</div>
</asp:Content>
<div class="control-group form-group">
<div class="controls">
<label>Feedback Title:</label> <br />
<asp:TextBox ID="txtFbTitle" runat="server" Width="50%"
Height="28px" ></asp:TextBox>
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Description:</label> <br />
<asp:TextBox ID="txtDescription" runat="server" Width="50%"
Height="64px"
TextMode="multiline" Columns="70"
114
Rows="3"></asp:TextBox>
</div>
</div>
<div id="success"></div>
<asp:Button ID="btnSubmit" runat="server" Text="Submit"
onclick="btnSubmit_Click" BackColor="#999999" Font-Bold="True"
Height="29px" Width="70px" />
</form>
<br /><br />
</div>
</div>
<!-- /.row -->
</asp:Content>
REFERENCES
115
References
Ariffin A.M. and Norshuhada, S. (2008). Usable but not entertaining eLearning
materials. In Proceedings of World Conference on e-Learning in Corporate,
Government, Healthcare, and Higher Education (e-Learn), USA. AACE.
Skinner, Jon. "Sublime Text". Sublime HQ Pty Ltd. Retrieved 19 August 2011.
Skinner, Jon. "Sublime Blog". Sublime Blog. Sublime HQ Pty Ltd. Retrieved 19
August 2011.
116