Sei sulla pagina 1di 292

Table of Content

Topic Page No
General Market......................................................................................4

Registration Of New Customer...............................................................4

Selling Share On-Line............................................................................4

Buying Share On-Line............................................................................4

Share Listing.........................................................................................5

Objective...............................................................................................5

Identification Of Need...........................................................................5

Draw Back In Existing System...............................................................5

Proposed System...................................................................................6
Feasibility Study.................................................................................8
Technical Feasibility:...........................................................................9
Operational Feasibility:......................................................................10
Economic Feasibility...........................................................................11

Software Engineering Paradigm..........................................................12

Business Modeling:.......................................................................12

Data Modeling:..............................................................................14

Process Modeling:.........................................................................15

Application Generation:.................................................................15

Testing And Turnover:...................................................................16

Software And Hardware Requirement Specification.............................17

Software Requirements.................................................................17

Hardware Requirements................................................................17
Why Java Server Pages (Jsp)...............Error: Reference source not found17
Features Of Javaserver Pages..............Error: Reference source not found18

Page 2 of 292
Features Of Sql Server 2000................Error: Reference source not found19

Jdbc.....................................................................................................19

User Interface.....................................................................................20

Home Page Screen...............................................................................20

Customer Module.................................................................................21

Company Module.................................................................................22

Registration Module.............................................................................22

Share Listing Module...........................................................................23

Feedback Module.................................................................................23

Buy & Sell Module................................................................................23

Data Flow Diagrams.............................................................................24

Main Screen (Home Page).................................................................25

Customer..........................................................................................26

Share................................................................................................27

Company...........................................................................................28

Feedback..........................................................................................29

Error Messages.................................................................................30

Designing Of System............................................................................30

Entity Relationship Diagram..............................................................37

Data Design......................................................................................40

Development Of Software.................................................................43
Development Of Front-End.................................................................45
Development Of Back-End..................................................................74
Developing Law’s Of Software.............................................................77

Performance Requirements.................................................................77

Page 3 of 292
Complete Coding Of The System..........................................................79

Code Efficiency:..............................................................................273

Code Optimization:..........................................................................273

Testing Technique And Testing Strategies.........................................275

System Implementation.....................................................................280

Scope Of Future Enhancement...........................................................281

Conclusion.........................................................................................282

Maintenance:.....................................................................................282

Breakdown Maintenance:-.................................................................282

Preventative Maintenance:................................................................282

Cost Estimation Of The Project...........................................................283

Pert Chart, Gantt Chart:.....................................................................285

Bibliography......................................................................................288

Glossary............................................................................................289

GENERAL MARKET

Page 4 of 292
This is a portal designed to facilitate companies and customers who deals in
direct equity market to come online and do transactions.

Main motto of the clinic is to provide the buyers and sellers of equity a common
platform where they can transact fast and securely using latest web technologies
all that with “any time any where” feature.

System perform following function


o Registration of New Customer
o Selling Share On-Line
o Buying Share On-Line
o Share Listing

Registration of New Customer


This part covers up the registration of new customer into our
website and providing other details to customers. It also provides
different links to get information about ShareBazar.

Selling Share On-Line


This part covers up online trading i.e selling of share to a
specified customer at a listed price which is given in ShareListing.

Buying Share On-Line


This part covers up online trading i.e buying of share from a
specified customer at a listed price which is given in ShareListing.

Share Listing
This part covers up the detailed listing of shares like type of
share,name of the company,their respective price and availability of
shares for trading.

OBJECTIVE
Page 5 of 292
I am developing this portal for companies who want to sell shares and for the
customers who want to buy these shares. This portal helps in financial dealing

So, we can say that it will help the companies as well as customers to buy share
and sel share with the spead of light. It will also help in stock monitoring
according to predefine format

This portal will help in getting the current sale and purchase status of shares of
to a particular company.

Customers will have this advantage buying share at “CURRENT RATE” and
exactly when they want to but because we all know how swifty market rate
changes.

We proposing a centralized system with one server maintaining high level of


security.

IDENTIFICATION OF NEED
DRAW BACK IN EXISTING SYSTEM
1. Existing system was slow and man driven , was also involving to much of
paper work.
2. As a broker I can always handle transactions of 4 ot 5 companies but once it
goes beyond that and that too with large number of buyers and sellers I
would certailnt need a some technological help. And that is precisely this
system is being dsigned.
3. Security of transaction over the telephone was again a major issue.
4. Searching the detail of any customers was very difficult, as the user has to
go through all the books thoroughly.
5. Manual entries have made jobs person dependent, no one can help the user
except that person who is handling that portion of job.
6. Person dependent jobs lead to delay in transaction and increase the
processing time to a great amount.
7. Existing system has sorting and filtering features since all records are
chronologically entered date wise on the day they happened.

Page 6 of 292
8. Communication with customers was really difficult as searching address and
pone numbers was really a cumbersome task.
9. Customers enquiries takes longer time since searching records has a high
response time.
10. Stock inventor management dose not seems to be solving any purpose, since
there were no ready comparison available when management wants them.

PROPOSED SYSTEM
The basic aim in the new proposed system was to provide improvised
functionality and flavor of the existing system minus all the drawbacks or short
coming analyzed.

With the front end like JAVA SERVER PAGES and back end MS SQL Server
2000 major bottlenecks of conventional file system, would be removed without
major efforts .The advantage that accrue from having centralized control of data
are as follows:
• Data Redundancy would be removed.
• Simultaneous data access would be possible in multi-user
enviournment
• Standards can be enforced.
• Security restrictions could be applied.
• Backup can be maintained.
• Integrity can be maintained.
• Conflicting requirement could be balanced.

The proposed system allow easy handling and management thru


menu driven applications in GUI enviournment.

The proposed system can be summarized as

Page 7 of 292
Since every information is available at click of a button there is no
need to maintain lethargic paper reports.
System has separate modules named as:

1) Home Page screen

1. Registration

2. Login

3. Feedback

4. FAQ’s

2) Customer Module

o Buy Share

o Sell Shares

o Edit your details

o Check listing of shares

o Contact companies

o Give payments online

o Give feedback.

3) Company Module

o Shares listing

o Change login details

o En-list Share holders

o Delete old share listings

o Change his profile

Page 8 of 292
o Change share rates

o Feedback

4) Registration Module

5) Share listing Module

6) Feedback Module

7) Buy and Sell Module

o Buy Shares

o Sell Shares

o See buying history

o See selling history

o Change requisition

FEASIBILITY STUDY
Feasibility is the determination of whether or not a project is worth doing the
process followed making this determination is called feasibility study. This of
determines if a project can and should be taken. Once it has been determined
that a project is feasible, the analyst can go ahead and prepare the project
specification which finalizes project requirements. Generally, feasibility studies
are undertaken within right time constraints and normally culminate in a written
and oral feasibility report. The contents and recommendations of such a study
will be used as a sound basis for deciding whether to proceed, postpone or
cancel the project. Thus, since the feasibility study may lead to the commitment
of large resources, it becomes necessary that it should be conducted
competently and that no fundamental errors of judgment are made.
There are following types of inter-related feasibility. The are:

Page 9 of 292
i) Technical feasibility
ii) Operational feasibility
iii) Economic feasibility

Technical feasibility:
This is concerned with specifying equipment and software and hardware that will
successfully satisfy the user requirement. The technical needs off the system
may vary considerably, but might include:
• The facility to produce output in a given time.
• Response time under certain conditions.
• Ability to process a certain volume of transaction at a
particular speed.
• Facility to communicate data to distant location.

In examining technical feasibility, configuration of the system is given more


importance than the actual make of hardware. The configuration should give
the complete picture about the system requirements. What speeds of input and
output should be achieved at particular quality of printing.

According to the definition of technical feasibility the compatibility between


front-end and back-end is very important. In our project the compatibility of
both is very good. The degree of compatibility of JSP and SQL Sever 2000 is
very good. The speed of out put is very good when we enter the data and click
button then the response time is very fast and give result very quickset. I
never find difficulty when we use complex query or heavy transaction. The
speed of transaction is always smooth and constant. This software provides
facility to communicate data to distant location.

We use Java Server Pages and Java Script. The designing of front-end of any
project is very important so we select Java Server Pages,Java Script as front-
end due to following reason:
• Easy implementation of code.

Page 10 of 292
• Well define interface with database.
• Well define hand shaking of SQL Server 2000.
• Easy debugging.

At present scenario the no of backend are available but I have selected SQL
Server 2000 because of the following number of reasons.
• Able to handle large data.
• Security.
• Robust RDBMS.
• Backup & recovery.

With the help of above support we remove defect of existing software. In future
we can easily switch over any plate form. To ensure that system does not halt
in case of undesired situation or events. Problem effected of any module does
not effect any module of the system. A change of hardware does not produce
problem.

Operational Feasibility:
It is mainly related to human organizational and political aspects. The points to
be considered are:

• What changes will be brought with the system?


• What organization structures are disturbed?
• What new skills will be required? Do the existing staff
members have these skills? If not, can they be trained in
due course of time?

At present stage all the work is done manually. So, throughput and response
time is too much. Major problem is lack of security check that should have been
applied. Finding out the detail regarding customer’s transaction was very
difficult, because data store was in different books and different places. In case
of any problem, no one can solve the problem until the person responsible is not
present.

Page 11 of 292
Current communication is entirely on telephonic conversation or personal
meetings. Post computerization staff can interact using internet.

Now, we will explain the last point of operational feasibility i.e.


handling and keeping of software , at every point of designing I will
take care that menu options are not too complex and can be easily
learned and required least amount of technical skills as operators
are going to be from non computers back ground.

Economic feasibility
Economic analysis is the most frequently used
technique for evaluating the effectiveness of a proposed system.
More commonly known as cost/benefit analysis: the procedure is to
determine the benefits and saving that are expected from a
proposed system and compare them with cost. if benefits outweighs
cost ,a decision is taken to design and implement the system.
Otherwise, further justification or alternative in the proposed
system will have to be made if it is to have a chance of being
approved. This is an ongoing effort that improves in accuracy at
each phase of the system life cycle.
At present Company has ten systems with following configuration:
o Ram 32 MB or above for fast execution and reliability
P- III 100MHz or above
o MOTHER Board 810
o Color Monitor 14” and 17”
o Hard Disk 10 / 40 GB
Hence the economical feasibility is very good.

SOFTWARE ENGINEERING PARADIGM


In our project I have used RAD model. Rapid application
development (RAD) is an incremental software development process

Page 12 of 292
model; that emphasizes an extremely short development cycle. The
RAD model is a “high-speed” adaptive of the linear sequential model
in which rapid development is achieved by using components-based
construction. Under RAD model, a software is developed considering
time constraint. If requirements are well understood and project
scope is constraint, the RAD process enables a development team to
create a “fully functional system “ with in very short time periods.
The RAD approach encompasses the following phase:
• Business modeling
• Data modeling
• Process modeling
• Application modeling
• Testing and turnover

Business modeling:
Business modeling solves the following question in our project.
o What information drives the business process?
o What information is generated?
o Where does the information go?
o Who process it?
The goal of business process engineering is to define architectures that will
enable a business to use information effectively.
In our project I have determined three different architecture of
business objective and goals:
• data architecture
• application architecture
• technology architecture

Data architecture
The data architecture provides framework for our project, to develop
a business function. The individual building blocks of the
architecture are the data objects that are used by the business.

Page 13 of 292
Data objects contain a set of attributes that define some aspect,
quality, characteristics, or descriptor of the data that are being
described.
Once a set of data objects is defined, their relationships are
identified. A RELATIONSHIP indicates how objects are connected to
one another.
Example:
Now I am describing only one example of relationship among
all the relationship, consider the

Objects: COMPANY and CUSTOMER.


The relationship is TRANSACTION; The company provide many
operations like buying and selling of sharess that creates
relationship between them called transaction. The object flows
between business functions, and organized within a database and
transformed to provide information that serves the needs of the
business.

Application architecture:
In this concept we determine those element that transform objects
within the data architecture for some business purpose. We consider
the relationship architecture to be the system of program that
performs this transaction.

Technology infrastructure:
The Technology infrastructures provide the foundation for the data
and application architectures. This includes computers, operating
systems, network, and links storage.

Page 14 of 292
In our project we use Windows NT as operating system, SQL
Server for data storage, and security. For GUI we use Java Server
Pages and Java Script. We connect node with the property of LAN.

DATA MODELING:
The information flow defined as part of the business
modeling phase is refined into a set of data objects that are needed
to support the business .the characteristics (called attributes) of
each object are identified and the relationship’s between these
objects defined.
In our project first we concentrate to establish the following
points
i) data objects
ii) attributes
iii) relationship

Data object:
In this project the data object is a representation of any
composite information that must be understand by software. By
COMPOSITE INFORMATION, we mean something that has a number
of different properties or attributes.
Data object can be external or internal (i.e., anything that
produce or consumes information) data object encapsulates data
only there is no reference within a data object to operations that act
on the data. Therefore the data object can be represent as a table
as below. The table reflects attributes of the object .In this case, a
item is defined in term of ShareId, ShareCategory,
mktval,CompanyName .

Page 15 of 292
Attributes:
Attributes define the properties of a data object.
Attribute names, describe its characteristics, and in some cases,
make reference to another object.

Relationships:
Relationships indicate the manner in which data
object are “connected” to one another.
Now we will explain the relation with the help of our project
component, for example we consider two data object , Company and
customer. These objects can be represented using the simple
notation as below:

Company List Share Customer

PROCESS MODELING:
After defining the data in data modeling phase. I have transformed
the data to achieve the necessary information for implementing a
business function. Processing descriptions are created for adding,
modifying, deleting, or retrieving a data object.

Application generation:
RAD assumes the use of fourth generations. Rather than creating
software using conventional third generation programming language
the RAD process works to reuse existing program components or
create reusable component. In all cases automated tools are used to
facilitate construction of the software.

Testing and turnover:

Page 16 of 292
In the project process emphasizes reuse, many of the program
components must be tested and all interfaces must be fully
exercised.

Business
Modeling

Business Data
Modeling Modeling
Process
Modeling
Data
Modeling Application
Generation
Testing &
Turnover
Process
Modeling

Application
Generation

Testing
&
Turnover
Near about 180 days

Page 17 of 292
SOFTWARE AND HARDWARE REQUIREMENT
SPECIFICATION
Hardware Requirements
1) MICROPROCESSOR: PENTIUM - 100 MHz or above.
2) HARD DISK SPACE: Minimum 50 MB for installation and
running.
3) RAM: 32 MB RAM or above for fast execution and reliability.

Software Requirements
Server – Apache Tomcat 5.0/websphare (any web server which
support JSP)
PLATFORM: Windows 9x,Windows NT, Windows XP,linux,solaris.
Driver: ODBC Driver
Database Server: Microsoft SQL Server2000.

Why Java Server Pages (JSP)

The choice of JSP was based mainly because enables rapid


development of Web-based applications that are platform
independent. JSP technology separates the user interface from
content generation, enabling designers to change the overall page
layout without altering the underlying dynamic content.

Some highlights
• Portability across platforms and servers
• Robust exception management and memory management
• Access to the wide range of Java APIs (JDBC, JavaMail, etc.)
• Portable, reusable logic components
• High performance for multiple concurrent requests
• Easy deployment and maintenance

Page 18 of 292
Features of JavaServer Pages

o Rapid Web Development, Deployment, and Maintenance

JavaServer Pages and Java Servlet technologies simplify and speed


the development process for developers and page authors alike.
Once developed, JSP pages are easy to maintain because the
application logic is separated from the page design and content.

o Reusable Components

Most JSP pages rely on reusable, cross- platform components -


JavaBeans or Enterprise JavaBeans components - to perform the
more complex processing required for an application. Developers can
share and exchange components that perform common operations,
and make them available to larger user or customer communities.

o Platform Independence and Widespread Support

JSP and Java Servlet technologies deliver "Write Once, Run


Anywhere" capability, offering unprecedented reuse on any platform,
any server. Many Web and application servers currently deliver or
are about to deliver products that support both JSP and Java Servlet
technologies.

o Industry Support for JavaServer Pages and Java Servlet Is


Broad and Growing

JavaServer Pages and Java Servlet technologies provide a powerful


platform for creating content-rich, dynamic Web pages. And it's
because of this that both technologies have generated strong
industry support. Here are just a few of the companies that are
currently developing JSP and Java Servlet technology-enabled
products.

Features of SQL Server 2000


Page 19 of 292
o The SQL Server 2000 database engine includes integrated XML support. It
also has the scalability, availability, and security features required to
operate as the data storage component of the largest Web sites.

o User-friendly queries and powerful search capabilities

o Scalability and Availability.

o The same database engine can be used across platforms ranging from
laptop computers running Microsoft Windows® 98 through large,
multiprocessor servers running Microsoft Windows 2000

o Supports features such as federated servers, indexed views, and large


memory support that allow it to scale to the performance levels required
by the largest Data base

o SQL Server 2000 allow distributed queries that means it is Passable to


refer data from multiple sources

o Easy of installation, deployment, and use.

o Data warehousing. Supports that includes tools for extracting and


analyzing

o Summary data for online analytical processing. SQL Server also includes
tools for
o Visually designing databases and analyzing data using English-based
questions.

JDBC

Using JDBC it is easy to send SQL statements to virtually any


relational database. In other words, with the JDBC API, it isn’t
necessary to write one program in to access a Sybase database,
another program to access an Oracle database, another program to
access an Informix database, and so on. One can write a single
program using the JDBC API, and the program will be able to send
SQL statements to the appropriate database.

Page 20 of 292
The JDBC API makes it possible to do three things:

1) Establish a connection with a database or access any tabular data source.

2) Send SQL statements.

3) Process the results.

User Interface

System has separate User Interface modules namely:

1) Home Page screen

This page is the first page of the web site allows you to select your path to
the different section of the web site.

As a customer/Company you can directly logon to the site from here and do
further operations.

It allows first level of log on only for doing transaction you need to further
logon using your company/customer ID’s.

It provide some important links along with other like…

1. Registration

Allows customer to give their details and create accounts.

2. Login

Allows first level of of login validation to site.

3. Feedback

Customers and company’s can give feedback to site etc.

Page 21 of 292
4. FAQ’s

List commonly asked questions and their solutions to, and


also allow customers and client to ask new queries.

2) Customer Module
Once you login on to the site as customer you can browse site’s
different sections and also perform transactions like buying and
selling of shares, securities and bonds.

But to be able to perform transactions you need to further logon using your
customer Id and password.

As a customer you can do the following

o Buy Share

o Sell Shares

o Edit your details

o Check listing of shares

o Contact companies

o Give payments online

o Give feedback.

Page 22 of 292
3)Company Module
Once you logon as a company you can do transactions on the site. You can
enlist new sharer delete old once and allow and reject share applications.

As similar to customer you need to re logon by giving you secret company id


and password to perform all the above operations.

Company module allows company to logon for transaction and do the


following

o Shares Details

o Change login details

o En-list Share Holder

o Delete old share listings

o Change his profile

o Change share rates

o Feedback

4) Registration Module
This screen allows you create new login ids for the site. Both customers and
company’s can give their personal and professional details to become the
member of the site.

You also need to enter you payment details by which you’ll pay your
registration fees.

Most importantly it generate your secret ID which allows you to logon to the
site to perform transaction.

Page 23 of 292
5) Share listing Module
Here both company and Customer to see the current situation of the market
and latest share prizes.

Here company’s can update share prizes and see what it need to do to cope
up with the current marker scenario.

Customers can come here and compare share of different companies , go and
buy or sell their shares.

6) Feedback Module
A small but very important module whish is the only interaction between
customer and client and site owners.

It allows customers and company’s to give feedback about different portions


of the site and what owners may improve.

7) Buy and Sell Module


Mostly used by customers to buy and sell their shares.

Customers can give requisition to buy and sell shares to companies and to
brokers.

They can further go down and check their buying and sell history.

Customers can do following here.

o Buy Shares

o Sell Shares

o See buying history

o See selling history

o Change requisition

Page 24 of 292
DATA FLOW DIAGRAMS

INPUT DATA DISLPAY


PROCESS RESULTS
DATA

ShareBazar DB

Level 0 Data Flow Diagram for ShareBazar.com

2. Admin

1. User Login
Process
3. User

Level 1 Data Flow Diagram for ShareBazar.com

Page 25 of 292
MAIN SCREEN (HOME PAGE)

Main Screen /
Client Homepage

Select
Select
Login
Select Select
Registeration
Feedbac
USTOME

FAQ
k

Authenticate
C

Customer Retrieve &


Check
Client ClientMaster
Share
Sell Listing
Shares Buy Shares

Fetch &
Store Fetch

Seller Buyer

Level 2 Data Flow Diagram for ShareBazar.com

Page 26 of 292
CUSTOMER

Customer

Add Customer Edit


Customer
Store Edit & Save

CustomerMaster

Level 2 Data Flow Diagram for ShareBazar.com

Page 27 of 292
SHARE

Add
Add Share
ShareListing Sharee
Category
Store Sold

Delete Share Shares


Bought Edit &
Store Category
Delete Save
Edit & Edit Share
Save Issue Shares
Share_List Category
ShareTransactio
Buyer & Seller Table
n Rate

Save
&
Delete

Share_List

Level 2 Data Flow Diagram for ShareBazar.com

Page 28 of 292
COMPANY

Company

Add share list


Records Add new
Edit share Comany
list Edit
Records company
Store profile
Edit & Save Store
Edit & Save

ShareList Company_Master

Level 2 Data Flow Diagram for ShareBazar.com

Page 29 of 292
FEEDBACK

Customer’s
Feedback DayEnd
Fetch records Feedback ShareList
Feedback Fetch records
ShareList

Buying Details
Selling Details
Fetch records Fetch records

Seller Buyer

CategoryWise
Share Summary
Share Details

Fetch records Fetch records

ShareList CatWiseShareDetails

Level 2 Data Flow Diagram for ShareBazar.com

Page 30 of 292
ERROR MESSAGES
At the minimum, following error messages are to be given.

• when any field is blank then gives error message, the field
is blank
• When we input character in numeric field then give error
message.
• When the data is less than or grater than range then gives
error message.
• When unauthorized person access the data or any matter
then gives error message.
• At searching when code is not matching then error the code
is present.

DESIGNING OF SYSTEM
The design of the information system produce the detail that
state how a system will meet the requirement identified during
system analysis often refer to this stage as logical design, in
contrast to the process of developing program software, which
is referred to as physical design.

System analysts being the process by identifying


reports, the requirement and output need by the system. Then
the specific data on each are pinpointed. Usually, designers
sketch the form or displays they expect from the system. This
can also be done on a paper or on the computer display with
the help of automated system tools available.
The system design also describes the date to be
input, calculated, or stored. Individual date items and
calculation procedures are written in detail. The procedures tell
how to process the data and produce the output.

Page 31 of 292
Designers are responsible for providing programmers
with complete and clearly outlined software specification. As
programming starts, designers are able to answer questions,
clarify fuzzy areas, and handle problems that confront the
programmers when using the design specifications.
As the software is to be designed in JAVA SERVER
PAGES and JAVA SCRIPT and back-end SQL Server2000, the
concept of database is must for quantity designing. It will be
designed of the database, designing of forms, designing of
reports.
Unlikely the existing system, separate table have
been created for specific details. In order to make the response
time negligible; all the tables have been created in the memory
file system (MFS). Moreover, indexes have been created on the
tables in which the number of records is very large. Therefore,
in the proposed system, search for a value has been made
direct. This is contrast to the sequential search being done in
the existing system have been taken care of in the system.

Design objectives:
The following goals were kept in mind while
designing the new system:
i) To reduce the manual works required to be done in the
existing system.
ii) To avoid errors inherent in the manual works and hence
make the output consistent and correct.
iii) To improve the management of permanent information of
the company by keeping it is properly structured tables

Page 32 of 292
and to provide facilities to update this information as
efficient as possible.
iv) To make the system complete menu-driven and hence
user-friendly. This is necessary so that even non-
programmers could use the system effectively and system
could act as catalyst in achieving objective.
v) To make the systems compatibility i.e. it should “fit in” in
the total, integrated system.
vi) To design the system in such a way that reduces feature
maintenance and enhancement times and efforts.
vii) To make the system reliable, understandable and cost
effective.

Design overview:
The design stage takes the final specification of the system
from analysis and finds the best way of fulfilling them, give the
technical environment and previous decision on required level
of automation.
The system design is carried out in two phase:

i) Architectural design (high level design).

ii) Detailed design (low level design).

High Level Design:


The high-level design maps the business system

described in the program requirement specification to logical

data structure. It involves:

Identifying the entities:


All the entities related to the module were
identified, checked and consolidated.

Page 33 of 292
i) Identifying the relationship :
The relationships between
entities, within and outside the system were identified.

ii) Attribute definatation:


The pertaining to the entities was
identified and their field characteristics were specified.

iii) Normalization:
The entities were normalized. After first
and second normalization go to bcnf was achieved for all the
entities of systems.

i v ) I n t e r fa c e :
Interfacing with other system was done and
attributes related to external entities were identified.
Once the entities and their attributes were defined, entity
relationship diagrams.

Low Level Design:

The low-level design maps the logical model of the


system to a physical database design:

Default database design:


This utility create column and constraint
definitions form the entity model and the table / entity mapping
entered in CASE* dictionary. This database design can be
refined according to your application regarding using can be
refined according to your application regarding using the
tables, columns sand key constraint definition screen to make
amendments.
The step involved here were:
i) Generation of table.

Page 34 of 292
ii) Check constraint.
iii) Primary key.
iv) Unique key.
v) Foreign key.

Module design:
This screen is used to enter module information
during the design stage of business system development. The
application systems, function, tables and columns must already
exist in CASE* dictionary before being referenced.

User preferences:
Based on user preference like form name,
validation of primary key, layout of forms, layout of fields.
Creating title for forms, mandatory input field prompts etc. was
incorporated here.

Generate the program:


The program was generated based on the
relationship specified and according to the user preferences.

Program specification:
The program specifications were written
for the master, transaction, report, and queries. The logic for
each fields, from were so that anyone who does not know
system will be able to code the logic. Field validations and
user-friendly error message were written as a part of the
program specification.
This is done mainly for two reasons:
1) Saving the development time
As the procedures will be common to many
programs, the development time be saved substantially by
keeping.
2) Testing become easier

Page 35 of 292
As the procedures become an independent
entity, it can be easily tested.

DESIGN DECISION:
The system has been decided to develop on
Java Server Pages and Java Script and back-end SQL Server
2000.
SQL Server 2000 has been chosen since the system has
the following requirement and it categorized all:
1. Large database and space management control
Java Server Pages and
Java Script and back-end SQL Server 2000 supports the large
amount of database. It stores the data in the form of tables
making optimal use of the available storage. To make efficient
use of expensive hardware devices, it fulls control of space
usage.
2. Many concurrent database users
Front-end Java Server Pages and
Java Script and back-end SQL Server 2000 support large
number of concurrent users existing a variety of database
application operating on the same data.
3. High transaction processing performance
Java Server Pages and
Java Script with back-end SQL Server 2000 maintains the
preceding features with a high degree of overall system
performance. Database user does not suffer slow processing
performance.
4. Controlled availability
SQL SERVER 2000 can
selectively control the availability of data, at the database level

Page 36 of 292
and sub-database level. For example, an administrator can
disallow use of a specific application so that applicant’s data
can be related, without affecting other application

Page 37 of 292
ENTITY RELATIONSHIP DIAGRAM
Na

Name m Address

Phone_R
e
CustomerMaster

Income

Cid Lognam
e

CanBe

Seller
Cid
Type_Share
Company_Nam
e No_Of_Sha
res

Can

Be

Cid
Buyer
Company_Nam
e

Rate_Per_Shar
No_Of_Share e

Page 38 of 292
has

CBalance
Card_Hol
Cid der_Nam
e

Mod_of_Paym
Cheque_N
o

Give
s

Feedback

Name Comment

Email

Page 39 of 292
Profile

Cid CompanyMaster

Compan
y_Name
Launc
h

Check
ssssss
ss

Share_Category
Share_List

Share_
Mkt_Va
Id
l
C_ID Face_Val
Company _
Name

o The underlined attributes are the KEY ATTRIBUTES


o The signifies more attributes

Page 40 of 292
DATA DESIGN
In order to make the Data Design,the data is first analyzed
through ER (Entity Relationship) modeling technique. This technique
emphasizes that a database system for an application is made of
entities.An entity is any comprehensive real world objectthat can be
identified. According to its entities hava relationship with each other
an entity relationship diagram can represent various entities of any
system. What follows next is an ER diagram of the ShareBazar.com.
From this we form the data design,which is explained next,where
the data on which the code will work will have the following
structure.

CustomerMaster

Initial varchar (4) NOT NULL ,


Name varchar (15) NOT NULL ,
add char (50) NOT NULL ,
City varchar (10) NOT NULL ,
State varchar (10) NOT NULL ,
Country varchar (15) NOT NULL ,
Pincode varchar (7) NOT NULL ,
Email varchar (20) NOT NULL ,
Dob datetime NULL ,
Occupation varchar (10) NOT NULL ,
Incomegroup varchar (15) NOT NULL ,
Phoneoff varchar (10) NOT NULL ,
Mobile varchar (10) NOT NULL ,
Logname varchar (10) NOT NULL ,
Password varchar (10) NOT NULL ,
memID varchar (10) NOT NULL

CompanyMaster
Name varchar (20) NOT NULL ,
Address varchar (50) NOT NULL ,
City varchar (10) NOT NULL ,
State varchar (10) NOT NULL ,
Country VarChat(10) NOT NULL

Page 41 of 292
Pincode varchar (7) NOT NULL ,
Phone varchar (10) NOT NULL ,
Fax Varchar(10) NOT NULL
Email varchar (25) NOT NULL ,
Personcon varchar (15) NOT NULL ,
Logname varchar (10) NOT NULL ,
Pwd Varchar(10) NOT NULL ,
Combackground IVarchar(100) NOT NULL,
memID VarChar(10) NOT NULL ,
sno Int NOT NULL

SELLER
Cid varchar (10) NOT NULL ,
CompanyName varchar (20) NOT NULL ,
No_of_Share Int NOT NULL ,
Type_Share varchar (20) NULL ,
Party_Name varchar (20) NULL ,
Date datetime NULL ,
Fax varchar (12) NULL ,
ContactPerson varchar (50) NULL ,
Mobile varchar (20) NULL ,
Email varchar (50) NULL

Buyer
Cid varchar (10) NOT NULL ,
Company_Name varchar (20) NOT NULL ,
No_of_Share Int NOT NULL ,
Type_Share varchar (20) NULL ,
Party_Name varchar (20) NULL ,
Rate_per_Share Int NOT NULL ,
Date datetime NULL

Feedback
Name varchar (10) NOT NULL ,
Email varchar (100) NOT NULL ,
Comment varchar (100) NOT NULL ,
Date Date NOT NULL

Page 42 of 292
ShareMaster
memID char (10) NOT NULL ,
comName varchar (15) NOT NULL
Qty Int NOT NULL
Rate float NOT NULL ,
Type char (1) NOT NULL ,
issueDate Date NOT NULL ,
balance Int NOT NULL ,
Sno Int NOT NULL

Contact
comName varchar (15) NOT NULL ,
Email varchar (25) NOT NULL ,
Phone Varchar(10) NOT NULL
Reason varchar (100) NOT NULL ,
Date Date NOT NULL ,

Page 43 of 292
DEVELOPMENT OF SOFTWARE
Software developers may install (or modify and then
install) purchased software or they may write new, custom-designed
programs. The choice depends on the cost of each option, the time
available to write software, and the available to write software, ands
the availability of programmers. Typically, in large organizations
computer programmers (or combination of system analyst’s
programmers) are part of the permanent professional staff.
In smaller firms, without programmers, outside
programming service may be retained on a contractual basis.
Programmers are also responsible for documenting the
program, providing an explanation of how and why certain
procedures are coded in specific ways. Documentation is essential to
test the program and carry on maintenance once the application has
been installed.
The standards enforced were in conformance with development
statement manual of ShareBazar.com. Before starting any coding of
any subsystem we were required to carefully study the information
and requirements regarding that application. Once the problem was
well though off, ands ideas were shared/ discussed among other
team members about, how exactly the user interface should be and
what is the best way to deduce the logic of the application, we are
required to write down the flow of logic and other parameters being
used or getting affected on a document of SharBazar called program
specifications document (P S D). This P S D has to get approved
from, our manager and users to get further suggestions; also this P
S D’s are used to prepare the documentation of the final system at
later stages and help to keep trace of the changes subsequently
made in logic.

Page 44 of 292
The whole application is maintained in the menu from so that it
remains user friendly and easy to use and less complex.
The system security is maintained by means of the starting
form, which takes the required user name and the password.
The first simply has the function of showing the banner of the
material management system. A timer is set which on time loads the
login form.

Page 45 of 292
DEVELOPMENT OF FRONT-END

The following form are used


Home Page

This is the Home Page of the ShareBazar.com. From Here Costomer as

well as the Companies can move further or any new customer can make

themselves register with the System.

Page 46 of 292
Login Screen for Customer

This page is used by any user(customer) of the ShareBazar.com viz. End-

User, Supervisor. Any user wanting the access the system resources must

have first to validate himself through this page. This page forms a part of

security measures.

Page 47 of 292
Login Screen for Company

This page is used by any user(companies) of the ShareBazar.com viz. End-

User. Any user wanting the access the system resources must have first

to validate himself through this page. This page forms a part of security

measures.

Page 48 of 292
Registration Screen

This page is designed for the user to get themselves register with the

ShareBazar.com. Here, they can choose the category under which they

want to get register with it.

Page 49 of 292
Company Module

This is the Company module. Here, the companies can see the detail of

the shares they have offered, they can see list of there share holders,

they can change rate of the shares, they can delete shares they have

offered, they can contact there shares holders, edit there profile and can

give the feedback about the ShareBazar.com

Page 50 of 292
Customer Module

This the Customer Module.From there customer can Buy the shares of any

company that is already register with the ShareBazar.com and has offered

there shares, he can sell his share, he can contact with the companies,

can edit his profile, and can also give the feedback about the

ShareBazar.com.

Page 51 of 292
Customer registration screen

This is the Customer registeration screen.Customer will fill this form

before registering himself. He need to fill this form completely otherwise a

message will be prompted to him.

Page 52 of 292
Edit Customer Profile Screen

This is the customer edit screen. This form will facilitate the customer to

edit his profile. Customer can edit various details entered by him at the

time of registeration except some fields like name, date of birth,

Membership ID.

Page 53 of 292
Company Registration Screen

This is the company registeration form. Any company who wish to get

register with ShareBazar.com need to fill this form. All fields are

necessary on this form except the fax number.

Page 54 of 292
Edit Company login and other Details Screen

This form is for editing the company’s profile. If any company want to

make any change in the profile then this form must be filled by the

company to make the changes permanently. Name and the membership

ID can not be changed.

Page 55 of 292
Frequently Asked Questions(FAQ)

This is very important form for the uers of the ShareBazar.com. There are

some queries or questions of the users whose answer are there. This is

the static page. It will not accept any uer input or it will not produce any

dynamic output for the users.

Page 56 of 292
How it Works Screen

This is the another static page which will not produce any dynamic output

for the users of the ShareBazar.com instead it will help the customers to

know the ShareBazar.com and it will provide all the necessary information

to go through the site.

Page 57 of 292
Buy shares screen(Placing requisition )

This screen will facilitate the customer to buy the shares. First of all

customer will select the name of the company whose share he want to

buy then the number, type and rate per share will be produce to the

customer for the selected company. Customer can buy available share

buy giving his membership ID and the transaction password.

Page 58 of 292
Sell share screen

This screen will facilitate the customer to sell the shares. First of all

customer will select the name of the company whose share he want to

sell then the number of share will be produce to the customer for the

selected company. Customer can sell available share buy giving his the

transaction password.

Page 59 of 292
View Shares Detail

This screen will show the detail of the shares of the selected company. If a

company want to see various details associated with its shares then this

screen is provided. Although this is the dynamic page it will produce

outout for the customer but it will not accept any input from the

customer.

Page 60 of 292
Company Detail screen

This page is for the customers who are interested in to the details of any

particular company. Just by selecting the name of the company the

customer will be provided the details of the seleceted company that will

be the static page. Customer is not allowed to make any change in the

company’s details.

Page 61 of 292
Terms and condition screen

This is the static page that will show the terms and condition of the

ShareBazar.com

Page 62 of 292
Page 63 of 292
Listing Shares Holder screen

This is the static page in the company’s module. It will facilitate the

companies to see the details of the buyer of the shares of their company.

Page 64 of 292
Privacy policy screen

This is the another static page which will not produce any dynamic output

for the users of the ShareBazar.com instead it will present the various

policies of the ShareBazar.com to the customers.

Page 65 of 292
Market news

This is the one of the most important page in the ShareBazar.com it

provides various resources of the latest news and this is the one of the

objective of the ShareBazar.com to provide its customer up to date news.

Page 66 of 292
Make Payment

To get register himself with the ShareBazar.com it is the necessary for the

customer or for the companies to pay Rs. 1000 as the registration fee and

the payment can be done by the customer or by the companies through

the credit card and this page will facilitate to the customer or to the

companies to provide their Name, Card Number, type of the card and the

expiry date of the card.

Page 67 of 292
Share Details screen

Whenever a company get register with the ShareBazar.com,the company

provides various details associated with the shares such as the number of

shares issued, type of the shares, and the rate of the shares in to this

screen.

Page 68 of 292
Feedback Screen

This screen is common for the customer as well as companies. This page

is used by the user of the ShareBazar.com to give their valuable comment

and important suggestion about the ShareBazar.com to make it more

atteractive.

Page 69 of 292
Dos and Don’ts about online share dealing

This is the static page which shows to the user of the ShareBazar.com

that what he can do and what he can not. By looking on this page the

user can understand his limits within the system .

Page 70 of 292
Delete Share Listing Screen

At any stage, any company who is already registered with the

ShareBazr.com and has offered its shares to the public can delete some

or all of the remaining shares for that company need to provide number of

share to delete and the transaction password to make the changes

permanent.

Page 71 of 292
Contact Company Screen

If any customer want to contact any registered company then he needs to

select the name of the company from the combo box that show all the

registered company, and need to provide E-mail ID Phone Number and a

strong reason to contact the company .

Page 72 of 292
Change Share Rate Screen

As we know that the rate of the shares changes frequently. So, to change

the rate of the shares, companies must be able to change the rate of the

shares as and when needed. This page allowes to the companies to

change the rate of its shares by giving the transaction password.

Page 73 of 292
Membership ID Allocation Screen

This is the common screen for the customer as well as the companies.

Whenever a new customer or a new ompany get register with the

ShareBazar.com he will be provided with the unique Membership ID which

will be generated by our system. Every user has his own unique

membership ID which will be used by the user in the future.

Page 74 of 292
DEVELOPMENT OF BACK-END
Scripts used to create Tables in MS SQL Databese

CompanyMaster

create table CompanyMaster


(
name Varchar(15) NOT NULL,
address Varchar(50) NOT NULL,
city Varchar(10) NOT NULL,
state Varchar(10) NOT NULL,
country Varchar(10) NOT NULL,
pincode Varchar(7) NOT NULL,
phone Varchar(10) NOT NULL,
fax Varchar(10) NOT NULL,
email Varchar(25) NOT NULL,
personcon Varchar(15) NOT NULL,
logname Varchar(10) NOT NULL,
pwd Varchar(10) NOT NULL,
combackground Varchar(100) NOT NULL,
memID Varchar(10) NOT NULL,
sno int NOT NULL,
)

CustomerMaster

create table CustomerMaster


(
initial char(4) NOT NULL,
name Varchar(15) NOT NULL,
add Varchar(50) NOT NULL,
city Varchar(10) NOT NULL,
state Varchar(10) NOT NULL,
country Varchar(10) NOT NULL,
pincode Varchar(7) NOT NULL,
phoneoff Varchar(10) NOT NULL,
dob Date NOT NULL,
email Varchar(25) NOT NULL,
Page 75 of 292
occupation Varchar(15) NOT NULL,
incomegroup Varchar(15) NOT NULL,
mobile char(10) NOT NULL,
logname Varchar(10) NOT NULL,
password Varchar(10) NOT NULL,
memID char(10) NOT NULL,
)

ShareMaster

create table ShareMaster


(
memID char[10] NOT NULL,
comName Varchar(105 NOT NULL,
qty Varchar(10) NOT NULL,
rate Varchar(5) NOT NULL,
type char(1) NOT NULL,
issueDate Date NOT NULL,
balance Varchar(10) NOT NULL,
sho int NOT NULL,
)

Buyer

create table buyers


(
memID char[10] NOT NULL,
comName Varchar(15) NOT NULL,
qty Varchar(10) NOT NULL,
type char(1) NOT NULL,
rate Varchar(5) NOT NULL,
date Date NOT NULL,
comID char(10) NOT NULL,
)

Contact

Page 76 of 292
create table Contact
(
comName Varchar[15] NOT NULL,
email Varchar(25) NOT NULL,
phone Varchar(10) NOT NULL,
reason Varchar(75) NOT NULL,
date Date NOT NULL,
)

Feedback

create table feedback


(
name Varchar[15] NOT NULL,
email Varchar(25) NOT NULL,
comment Varchar(100) NOT NULL,
date Date NOT NULL,
)

Seller

create table seller


(
memID char[10] NOT NULL,
comName Varchar(15) NOT NULL,
No_of_share Varchar(10) NOT NULL,
Type_share char(1) NOT NULL,
Party_Name Varchar(15) NOT NULL,
date Date NOT NULL,
fax Varchar(10) NOT NULL,
contactPerson Varchar(15) NOT NULL,
mobile char(10) NOT NULL,
email Varchar(25) NOT NULL,
)

Page 77 of 292
developing law’s of software
There are following point must be considering at the
development phase:
• performance requirement
• exceptional handling
• acceptance criteria
• design hints and guidelines

PERFORMANCE REQUIREMENTS
The following performance characteristics were taken care of in
developing the systems:

User Friendliness :
The system is easy to learn and understand. A native
user can also use the system effectively, without any difficulty.
User satisfaction: The system is such that it stands unto the user’s
expectation.

Response time:
The response time of all the operations is very low.
This has been made possible by careful programming.

Error handling :
Response to user errors and undesired situations
has been taken care of to ensure that the system operations without
halting in case of such situation and proper are given to user.

Safety:
The program is able to avoid catastrophic behavior.

Robustness:
The system recovers from undesired events without
human intervention.

Security:

Page 78 of 292
This system provides protection of information through the
mechanism of password which is incorporated in it. Therefore only
authorized people can access the databases.

To validations:
This results in a thorough testing of the details, and the
system is such that likely to changes and modifications can be easily
incorporated in it.

PORTABILITY:
The system can move to a new hardware/ operating
system after making minor modifications to it.

EXCEPTION HANDLING:
To ensured that the system
does not halt in case of undesired situation or events exception
conditions are taken care of providing the corresponding exception
responses while developing the system

Page 79 of 292
Complete Coding of the System

--------------------------------------------------------------------------------------------------------------------------
HOME PAGE
--------------------------------------------------------------------------------------------------------------------------

<html>

<head>
<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>ShareBazar</title>
</head>

<body background="19a.gif">

<table border="2" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="red" width="100%" id="AutoNumber1"
height="109" bgcolor="#FFECFF">
<tr>
<td width="15%" height="109">
<img src="sblogo1.JPG" width="100%" height="100%"></td>
<td width="71%" height="109" bgcolor="#FFFFFF" valign="bottom"
background="19.gif">
<p align="center"><b><u><i><font size="7"
color="#FF0000">ShareBazar.com</font></i></u></b></p>
<center>
<p><font size="5" color="#FF0000">A portal for complete equity
trading</font></p>
</center>
</td>
<td width="15%" height="109">
<img src="sblogo1.JPG" width="100%" height="100%"></td>
</tr>
</table>
<hr color=red>
<table border="2" cellspacing="1" bordercolor="#FF0000"
width="100%" id="AutoNumber2" height="183">
<tr>
<td width="2%" height="178" rowspan="4" bgcolor="#FFFFF0"
bordercolor="#FFFFCC" background="19.gif">&nbsp;</td>

Page 80 of 292
<td width="96%" height="9" bgcolor="#FFFFF0"
bordercolor="#FFFFCC" colspan="3" background="19.gif">&nbsp;</td>
<td width="2%" height="178" rowspan="4" bgcolor="#FFFFF0"
bordercolor="#FFFFCC" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="13%" height="120" background="19.gif"
bordercolor="#FFFFFF">&nbsp;<img src="6.jpg" width="97%"
height="100%"></td>
<td width="83%" height="120" background="19.gif"
bordercolor="#FFFFFF" valign="top" colspan="2">
<p align="justify"><u><b><i>
<font size="5"
color="#FF0000">ShareBazar.com</font></i></b></u><font
color="#FF6666"><span style="font-size: 14pt">
</span></font><span style="font-size:14.0pt"><font
color="#FF6666">&nbsp;is a portal
designed to facilitate companies and customers who deals in direct
equity
market to come online and do transactions. It offers services like online
share purchase,
and sell,
Making on line payment. &nbsp;</font></span><font
color="#FF6666"><span style="font-size:14.0pt">As
we know that buying and selling in share markets needs to be very
quick and
accurate.</span></font><font face="Times New Roman" size="4"
color="#FF6666">
</font><span style="font-size:14.0pt"><font color="#FF6666">The
main
objective of this application is to provide buyers and sellers a very fast
medium to trade shares online and from anywhere</font><font
color="#FF0000">.</font></span></td>
</tr>
<tr>
<td width="83%" height="114" background="19.gif"
bordercolor="#FFFFCC" colspan="2" valign="top">
<p align="justify"><font face="Times New Roman" size="4"
color="#FF6666">You
can buy and sell in real time, which means that you know the exact
price at
which you are dealing. </font>
<span style="font-size:14.0pt">
<font color="#FF6666">
ShareBazar.com is also aims at providing up to date information about
Page 81 of 292
current prizes of shares and there position in the market. Main motto of
the
clinic is to provide the buyers and sellers of equity a common platform
where they can transact fast and securely using latest web
technologies all
that with </font>
<font color="#FF0000">
&quot;<b>ANY
TIME ANY WHERE</b>&quot;</font><font color="#FF6666">
feature</font><font color="#FF0000">.</font></span></td>
<td width="13%" height="114" background="19.gif"
bordercolor="#FFFFCC">&nbsp;<img src="7.jpg" width="97%"
height="100%"></td>
</tr>
<tr>
<td width="96%" height="1" bgcolor="#FFFFF0"
bordercolor="#FFFFCC" colspan="3" background="19.gif">&nbsp;</td>
</tr>
</table>
<hr color=red>
<center>
<table border="2" cellspacing="0" width="100%" id="AutoNumber3"
bordercolor="#FF0000" style="border-collapse: collapse"
cellpadding="0">
<tr>
<td width="23%" background="19.gif"
bordercolor="#FFFFF0">&nbsp;</td>
<td width="16%" background="19.gif" bordercolor="#FFFFF0">
<p align="center"><b><font size="5" color="#FF0000"><a
href="index2b.jsp">CUSTOMER</a></font></b></td>
<td width="16%" background="19.gif" bordercolor="#FFFFF0">
<p align="center"><b><font size="5" color="#FF0000"><a
href="index2a.jsp">COMPANY</a></font></b></td>
<td width="16%" background="19.gif" bordercolor="#FFFFF0">
<p align="center"><b><font size="5" color="#FF0000"><a
href="index5.jsp">REGISTER</a></font></b></td>
<td width="23%" background="19.gif">&nbsp;</td>
</tr>
</table>
<hr color=red>
</center>
<p align=center><font face="Arial" size="1"> |
<a class=copyright href="HomePage.jsp">Home</a>&nbsp;|
<a class=copyright href="mailto:info@sharebazar.com">Contact us</a>
&nbsp;|
Page 82 of 292
<a href="DosDonts.htm">DO's & Don'ts</a> &nbsp;|
<a href="terms.htm">Terms</a> &nbsp;|
<a href="works.htm">Help</a> | <br> ShareBazar.com - Your currency
for online trading &amp; e-broking in India </font></p>
</body>

</html>

---------------------------------------------------------------------------------------------
COMPANY LOGIN
---------------------------------------------------------------------------------------------
<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>ShareBazar</title>
</head>
<SCRIPT language=JavaScript>
<!--The function checkall() checks if the login name and password text
boxes are left blank in the registration form and displays an alert
message.-->
function checkall()
{
var loginname = document.forms[0].loginname.value;
var memid = document.forms[0].memid.value;
var pwd = document.forms[0].Pword.value;
if(loginname==null || loginname=="")
{
alert("Please type your login name.");
<!--Bringing the focus into the login text field.-->
document.forms[0].loginname.focus();
return false;
}
else if(memid == null || memid== "")
{
alert("Please type your Membership ID.");
document.forms[0].memid.focus();
return false;
}
else if(pwd == null || pwd =="")

Page 83 of 292
{
alert("Please type your password.");
document.forms[0].Pword.focus();
return false;
}
else
{
return true;
}
}
</SCRIPT>

<FORM action="verificationcomp.jsp" method=post onsubmit="return


checkall()">
<body bgcolor=lightyellow background="19.gif" bgproperties="fixed">
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFE0">
ShareBazar.com</font><font size="7" color="#000080">
</font></i></td>
</tr>
</table>
<hr size=1 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFE0">Gone are
the days................ to successful online share
investing</font></b></td>
</tr>
</table>
<hr size=1 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3" height="281" background="19.gif"
bgcolor="#FFECFF">
<tr>
<td width="100%" height="27" colspan="8" bgcolor="#FF0000">

Page 84 of 292
<p align="center"><b><font size="5" color="#FFFFE0">Login as
Company</font></b></td>
</tr>
<tr>
<td width="100%" height="48" colspan="8">
<p align="center"><font size="5" color="#FF0000">Register now to
sell and
buy on the internet at the speed of thought</font></td>
</tr>
<tr>
<td width="100%" height="1" colspan="8">&nbsp;</td>
</tr>
<tr>
<td width="25%" height="43" colspan="2">&nbsp;</td>
<td width="13%" height="43">&nbsp;</td>
<td width="12%" height="43">
<p align="left">
<font size="4" color="#FF0000">&nbsp; Login Name :</font></td>
<td width="13%" height="43">&nbsp;<input type=text
name=loginname value="" size="20" tabindex="1"></td>
<td width="12%" height="43">&nbsp;</td>
<td width="25%" height="43" colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="4%" height="45" rowspan="2">
<p align="right"><font size="4"
color="#FF0000">&nbsp;</font></td>
<td width="18%" height="22">
<a href="HomePage.jsp">Home</a></td>
<td width="11%" height="45" rowspan="2">
&nbsp;</td>
<td width="15%" height="45" rowspan="2">
<p align="left"><font color="#FF0000" size="4">&nbsp; Membership
ID :</font></td>
<td width="24%" height="45" rowspan="2">&nbsp;<input type=text
name=memid value="" size="20" tabindex="2"></td>
<td width="7%" height="45" rowspan="2">&nbsp;</td>
<td width="18%" height="22">
<p align="left"><a href="marketNews.htm">Market News</a></td>
<td width="3%" height="45" rowspan="2">&nbsp;</td>
</tr>
<tr>
<td width="18%" height="23"><a href="works.htm">How It
Works</a></td>
<td width="18%" height="23">
Page 85 of 292
<p align="left"><a href="privacyPolicy.htm">Privacy
Policy</a></td>
</tr>
<tr>
<td width="4%" height="44" rowspan="2">
<p align="right">&nbsp;</td>
<td width="18%" height="22"><a
href="terms.htm">Terms&amp;Condition</a></td>
<td width="11%" height="44" rowspan="2">
&nbsp;</td>
<td width="15%" height="44" rowspan="2">
<p align="left">
<font size="4" color="#FF0000">&nbsp; Password :</font></td>
<td width="24%" height="44" rowspan="2">&nbsp;<input
type=password name=Pword value="" size="20" tabindex="3"></td>
<td width="7%" height="44" rowspan="2">&nbsp;</td>
<td width="18%" height="22">
<p align="left"><a href="faq.htm">FAQ</a></td>
<td width="3%" height="44" rowspan="2">&nbsp;</td>
</tr>
<tr>
<td width="18%" height="22"><a
href="DosDonts.htm">Dos&amp;Don'ts</a></td>
<td width="18%" height="22">
<p align="left"><a href="index121.jsp">Feedback</a></td>
</tr>
<tr>
<td width="94%" height="43" colspan="8">
<p align="center">
<input type=submit name=butSubmit value="Submit"
tabindex="4">&nbsp;</td>
</tr>
<tr>
<td width="100%" height="70" colspan="8">&nbsp;</td>
</tr>
</table>
<hr color=red size=2>
<center ><u><font color=red>ShareBazar.com - Your currency for
OnLine Trading</font></u></center>
<hr color=red size=2>
</body>
<script language="JavaScript">
document.forms[0].loginname.focus();
</script>
</html>
Page 86 of 292
--------------------------------------------------------------------------------------------------------------------------
CUSTOMER LOGIN
--------------------------------------------------------------------------------------------------------------------------

<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>ShareBazar</title>
</head>
<script language="javascript">
<!--The function checkall() checks if the login name and password text
boxes are left blank in the registration form and displays an alert
message.-->
function checkall()
{
var loginname = document.forms[0].loginname.value;
var memid = document.forms[0].memid.value;
var pwd = document.forms[0].Pword.value;
if(loginname==null || loginname=="")
{
alert("Please type your login name.");
<!--Bringing the focus into the login text field.-->
document.forms[0].loginname.focus();
return false;
}
else if(memid == null || memid =="")
{
alert("Please type your Membership ID.");
document.forms[0].memid.focus();
return false;
}
else if(pwd == null || pwd =="")
{
alert("Please type your password.");
document.forms[0].Pword.focus();

Page 87 of 292
return false;
}
else
{
return true;
}
}

function fillAll()
{
if(checkall())
{
frmCust.action="verificationcust.jsp"
frmCust.method="post"
frmCust.submit()
}
}
</script>

<body bgcolor=lightyellow background="19.gif" bgproperties="fixed">


<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFE0">
ShareBazar.com</font><font size="7" color="#000080">
</font></i></td>
</tr>
</table>
<hr size=1 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFE0">Gone are
the days................ to successful online share
investing</font></b></td>
</tr>
</table>
<hr size=1 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
Page 88 of 292
id="AutoNumber3" height="273" background="19.gif"
bgcolor="#FFECFF">
<form name="frmCust">
<tr>
<td width="100%" height="27" colspan="8" bgcolor="#FF0000">
<p align="center"><b><font size="5" color="#FFFFE0">Login as
Customer</font></b></td>
</tr>
<tr>
<td width="100%" height="48" colspan="8">
<p align="center"><font size="5" color="#FF0000">Register now to
sell and
buy on the internet at the speed of thought</font></td>
</tr>
<tr>
<td width="100%" height="1" colspan="8">&nbsp;</td>
</tr>
<tr>
<td width="53%" height="37" colspan="3">&nbsp;</td>
<td width="18%" height="37">
<font size="4" color="#FF0000">Login Name :</font></td>
<td width="17%" height="37">&nbsp;<input type=text
name=loginname value="" size="20" tabindex="1"></td>
<td width="12%" height="37" colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="4%" height="37" rowspan="2">
<p align="right"><font size="4"
color="#FF0000">&nbsp;</font></td>
<td width="18%" height="19"><a
href="HomePage.jsp">Home</a></td>
<td width="10%" height="37" rowspan="2">
&nbsp;</td>
<td width="15%" height="37" rowspan="2">
<p align="left">
<font color="#FF0000" size="4">Membership ID :</font></td>
<td width="25%" height="37" rowspan="2">&nbsp;<input type=text
name=memid value="" size="20" tabindex="2"></td>
<td width="8%" height="37" rowspan="2">&nbsp;</td>
<td width="17%" height="19">
<p align="left"><a href="marketNews.htm">Market News</a></td>
<td width="3%" height="37" rowspan="2">&nbsp;</td>
</tr>
<tr>

Page 89 of 292
<td width="18%" height="18"><a href="works.htm">How It
Works</a></td>
<td width="17%" height="18">
<p align="left"><a href="privacyPolicy.htm">Privacy
Policy</a></td>
</tr>
<tr>
<td width="4%" height="37" rowspan="2">
<p align="right">&nbsp;</td>
<td width="18%" height="19"><a
href="terms.htm">Terms&amp;Condition</a></td>
<td width="10%" height="37" rowspan="2">
&nbsp;</td>
<td width="15%" height="37" rowspan="2">
<p align="left">
<font size="4" color="#FF0000">Password :</font></td>
<td width="25%" height="37" rowspan="2">&nbsp;<input
type=password name=Pword value="" size="20" tabindex="3"></td>
<td width="8%" height="37" rowspan="2">&nbsp;</td>
<td width="17%" height="19">
<p align="left"><a href="faq.htm">FAQ</a></td>
<td width="3%" height="37" rowspan="2">&nbsp;</td>
</tr>
<tr>
<td width="18%" height="18"><a
href="DosDonts.htm">Dos&amp;Don'ts</a></td>
<td width="17%" height="18">
<p align="left"><a href="index121.jsp">Feedback</a></td>
</tr>
<tr>
<td width="94%" height="38" colspan="8">
<p align="center">
<input type="button" name=butSubmit value="Submit"
onClick="fillAll()" tabindex="4">&nbsp;</td>
</tr>
<tr>
<td width="100%" height="70" colspan="8">&nbsp;</td>
</tr>
</form>
</table>
<hr color=red size=2>
<center ><u><font color=red>ShareBazar.com - Your currency for
OnLine Trading</font></u></center>
<hr color=red size=2>
</body>
Page 90 of 292
<script language="Javascript">
document.forms[0].loginname.focus();
</script>
</html>

--------------------------------------------------------------------------------------------------------------------------
REGISTER YOURSELF
--------------------------------------------------------------------------------------------------------------------------

<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>ShareBazar</title>
</head>

<body background="19.gif">

<table border="0" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFCC">
ShareBazar.com</font></i></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFCC">Gone are the

Page 91 of 292
days................to successful online share investing</font></b></td>
</tr>
</table>
<hr size=2 color=red><br><br><br>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3" bgcolor="#FFF0F0" background="19.gif">
<tr>
<td width="100%">
<p align="center"><font color="#FF3300" size="7">Get Register
Yourself</font></td>
</tr>
<tr>
<td width="100%">&nbsp;</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFF0F0" background="19.gif">
<p align="center"><a href="index7.jsp"><i><u><b><font size="5"
color="#FF3300">Sign up as Company</font></b></u></i></a></td>
</tr>
<tr>
<td width="100%">&nbsp;</td>
</tr>
<tr>
<td width="100%">
<p align="center"><a href="index6.jsp"><u><i><b><font size="5"
color="#FF3300">Sign up as
Customer</font></b></i></u></a></td>
</tr>
</table><br>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber4" height="48" bgcolor="#FFF0F0"
background="19.gif">
<tr>
<td width="100%" height="118">&nbsp;</td>
</tr>
<tr>
<td width="100%" height="1">&nbsp;<font size=2>
<center>
| <a href="HomePage.jsp"> Home </a> |
| <a href="mailto:info@sharebazar.com">Contact us </a> |
| <a href="privacyPolicy.htm">Privacy Policy</a> |
| <a href="http://www.sebi.gov.in/">SEBI</a> |
| <a href="http://www.nse-india.com/">NSE</a> |
Page 92 of 292
</center>
</font><br>
</td>
</tr>
</table>
</body>
<hr size=2 color=red>
<br><center><font color="red" size="2" >** ShareBazae.com - Your
curreny for online share broking **</font></center>
</html>

--------------------------------------------------------------------------------------------------------------------------
CUSTOMER REGISTRATION
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String
initial,name,add,city,state,country,pin,email,occupation,incomegroup,pho
neoff,mobile,logname,pword,memid ;
String y,m,d;
Connection conn;
PreparedStatement pstmt;
%>
<%
y=request.getParameter("year");
m=request.getParameter("bmonth");
d=request.getParameter("bday");
initial=request.getParameter("initial");
name=request.getParameter("name");
add=(request.getParameter("add1")+";"+request.getParameter("add2")
+";"+request.getParameter("add3"));
city=request.getParameter("city");
state=request.getParameter("state");
country=request.getParameter("country");
pin=request.getParameter("pincode");
email=request.getParameter("email");
occupation=request.getParameter("occupation");
incomegroup=request.getParameter("incomegroup");
phoneoff=request.getParameter("offphone");
mobile=request.getParameter("Mphone");
logname=request.getParameter("loginname");
pword=request.getParameter("password");

Page 93 of 292
Date dt=new Date(Integer.parseInt(y)-1900,Integer.parseInt(m)-
1,Integer.parseInt(d));
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
pstmt=conn.prepareStatement("insert into
customermaster(initial,name,add,city,state,country,pincode,email,dob,occ
upation,incomegroup,phoneoff,mobile,logname,password,memID)
values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
pstmt.setString(1,initial);
pstmt.setString(2,name);
pstmt.setString(3,add);
pstmt.setString(4,city);
pstmt.setString(5,state);
pstmt.setString(6,country);
pstmt.setString(7,pin);
pstmt.setString(8,email);
pstmt.setString(9,dt.toString());
pstmt.setString(10,occupation);
pstmt.setString(11,incomegroup);
pstmt.setString(12,phoneoff);
pstmt.setString(13,mobile);
pstmt.setString(14,logname);
pstmt.setString(15,pword);
pstmt.setString(16,memid);
pstmt.execute();
conn.close();
%>

--------------------------------------------------------------------------------------------------------------------------
COMPANY REGISTRATION
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String
name,add,city,state,country,pin,email,phone,fax,perCon,backG,logname,p
word,memid ;
Connection conn;
PreparedStatement pstmt;
%>
<%
name=request.getParameter("nameCom");
add=(request.getParameter("add1")+";"+request.getParameter("add2")
+";"+request.getParameter("add3"));
city=request.getParameter("city");
state=request.getParameter("state");
country=request.getParameter("country");

Page 94 of 292
pin=request.getParameter("pincode");
phone=request.getParameter("phone");
fax=request.getParameter("fax");
email=request.getParameter("email");
perCon=request.getParameter("contactperson");
logname=request.getParameter("loginname");
pword=request.getParameter("password");
backG=request.getParameter("comDescription");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
Statement
stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet
.CONCUR_READ_ONLY);
ResultSet rs=stmt.executeQuery("select memID from CompanyMaster");
if(!rs.first())
{
memid="SB20000009";
}
else
{
if(!rs.next())
{
memid="SB20000019";
}
else
{
rs.last();
String temp1=rs.getString(1);
rs.previous();
String temp2=rs.getString(1);
int a=0,b=0;
b=Integer.parseInt(temp1.substring(2,temp1.length()));
a=Integer.parseInt(temp2.substring(2,temp2.length()));
memid="SB"+(2*b-a+1);
}
}
conn.close();
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
pstmt=conn.prepareStatement("insert into CompanyMaster
(name,address,city,state,country,pincode,phone,fax,email,personcon,logn
ame,pwd,combackground,memID)
values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
pstmt.setString(1,name);
pstmt.setString(2,add);
pstmt.setString(3,city);
Page 95 of 292
pstmt.setString(4,state);
pstmt.setString(5,country);
pstmt.setString(6,pin);
pstmt.setString(7,phone);
pstmt.setString(8,fax);
pstmt.setString(9,email);
pstmt.setString(10,perCon);
pstmt.setString(11,logname);
pstmt.setString(12,pword);
pstmt.setString(13,backG);
pstmt.setString(14,memid);
pstmt.execute();
conn.close();
%>
<jsp:forward page="membership.jsp">
<jsp:param name="memid" value="<%=memid%>" />
</jsp:forward>

--------------------------------------------------------------------------------------------------------------------------
MEMBERSHIP
--------------------------------------------------------------------------------------------------------------------------

<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>New Page 1</title>
</head>

<body background="19a.gif">

<table border="1" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" width="100%" id="AutoNumber1" bgcolor="#FF0000"
bordercolor="#000000">
<tr>
<td width="100%"><font size="7"
color="#FFFFCC">ShareBazar.com</font></td>
</tr>
</table>
<hr color=red>

Page 96 of 292
<table border="1" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2" bgcolor="#FF0000">
<tr>
<td width="100%">&nbsp;</td>
</tr>
</table>
<hr color=red>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="75%"
id="AutoNumber3" height="207">
<tr>
<td width="100%" height="60">
<p align="center"><font size="7"
color="#FF0000">Congratulations</font></td>
</tr>
<tr>
<td width="100%" height="147">
<p align="center"><font color="#FF0000" size="5">Now, You have
become a
valid user of the ShareBazar.com.</font></p>
<p align="center"><font size="5" color="#FF0000">You
Membership ID is -<font color=black><b><u><
%=request.getParameter("memid")%></u></b></font>
</font></p>
<p align="center"><font size="5" color="#FF0000">In Future, To
interact
with us, You must know your Login Name</font></p>
<p align="center"><font size="5" color="#FF0000">Your Password
and Your
Membership ID.</font></p>
<p align="center"><font size="5" color="#FF0000">Thanks to
you</font></p>
<p align="center"><font size="5" color="#FF0000">For taking
interest in
ShareBazar.com.</font></p>
<p align="center">&nbsp;</td>
</tr>
</table>
</center>
<hr color=red>
</div>
Page 97 of 292
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPolicy.htm">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>

</body>

</html>

--------------------------------------------------------------------------------------------------------------------------
COMPANY MODULE
--------------------------------------------------------------------------------------------------------------------------

<%!
String memid,password,loginname;
%>
<%
loginname=request.getParameter("loginname");
memid=request.getParameter("memid");
password=request.getParameter("password");
System.out.println(loginname+" "+memid+" "+password);
%>

<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>ShareBazar</title>
</head>
<script language="javascript">
function checkOption()
{
if(document.forms[0].option[0].checked)
{
frmOption.action="shareEnq.jsp";

Page 98 of 292
}
else if(document.forms[0].option[1].checked)
{
frmOption.action="ShareHolderList.jsp";
}
else if(document.forms[0].option[2].checked)
{
frmOption.action="ChangeRate.jsp";
}
else if(document.forms[0].option[3].checked)
{
frmOption.action="deleteShares.jsp";
}
else if(document.forms[0].option[4].checked)
{
frmOption.action="index9.jsp";
}
else if(document.forms[0].option[5].checked)
{
frmOption.action="index7a.jsp";
}
else if(document.forms[0].option[6].checked)
{
frmOption.action="index121.jsp";
}
else
{
alert("Please select any option to Proceed.");
return;
}
frmOption.method="post";
frmOption.submit();
}
</script>

<body background="19a.gif">

<table border="0" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFCC">
ShareBazar.com</font></i></td>
</tr>
Page 99 of 292
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFCC">Gone
are the days...............to successful online share
investing</font></b></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="4" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3" height="75%">
<form name="frmOption">
<input type=hidden name=loginname value="<%=loginname%>">
<input type=hidden name=memid value="<%=memid%>">
<input type=hidden name=password value="<%=password%>">
<tr>
<td width="22%" height="412" bgcolor="#FF0000"
rowspan="8"><img src="sblogo.jpeg" width="100%"
height="100%"></td>
<td width="42" height="61" bgcolor="#FF0000"
background="19.gif">
<p align="center">&nbsp;</td>
<td width="467" height="61" bgcolor="#FF0000"
background="19.gif" colspan="2">
<b><i><u>
<font size="6" color="#FF3300">Company
Module</font></u></i></b></td>
<td width="22%" height="412" bgcolor="#FFFFCC"
background="19.gif" rowspan="8"><img src="7.jpg" width="100%"
height="100%"></td>
</tr>
<tr>
<td width="42" height="50" bgcolor="#FFFFCC"
background="19.gif">
</td>
<td width="27" height="50" bgcolor="#FFFFCC"
background="19.gif">
&nbsp;<input type=radio name=option ></td>
<td width="432" height="50" bgcolor="#FFFFCC"
background="19.gif">
Page 100 of 292
<b><font size="4" color="#FF3300">Share Details</font></b></td>
</tr>
<tr>
<td width="42" height="50" bgcolor="#FFFFCC"
background="19.gif">
&nbsp;</td>
<td width="27" height="50" bgcolor="#FFFFCC"
background="19.gif">
&nbsp;<input type=radio name=option value="1" ></td>
<td width="432" height="50" bgcolor="#FFFFCC"
background="19.gif">
<font size="4" color="#FF3300"><b>List Share
Holder</b></font></td>
</tr>
<tr>
<td width="42" height="50" bgcolor="#FFFFCC"
background="19.gif">&nbsp;</td>
<td width="27" height="50" bgcolor="#FFFFCC"
background="19.gif">&nbsp;<input type=radio name=option></td>
<td width="432" height="50" bgcolor="#FFFFCC"
background="19.gif"><b>
<font size="4" color="#FF3300">Change Share
Rates</font></b></td>
</tr>
<tr>
<td width="42" height="50" bgcolor="#FFFFCC"
background="19.gif">&nbsp;</td>
<td width="27" height="50" bgcolor="#FFFFCC"
background="19.gif">&nbsp;<input type=radio name=option></td>
<td width="432" height="50" bgcolor="#FFFFCC"
background="19.gif">
<font size="4" color="#FF3300"><b>Delete Old
Shares</b></font></td>
</tr>
<tr>
<td width="42" height="50" bgcolor="#FFFFCC"
background="19.gif">&nbsp;</td>
<td width="27" height="50" bgcolor="#FFFFCC"
background="19.gif">&nbsp;<input type=radio name=option></td>
<td width="432" height="50" bgcolor="#FFFFCC"
background="19.gif">
<font size="4" color="#FF3300"><b>Contact Share
Holder</b></font></td>
</tr>
<tr>
Page 101 of 292
<td width="42" height="50" bgcolor="#FFFFCC"
background="19.gif">&nbsp;</td>
<td width="27" height="50" bgcolor="#FFFFCC"
background="19.gif">&nbsp;<input type=radio name=option></td>
<td width="432" height="50" bgcolor="#FFFFCC"
background="19.gif">
<font size="4" color="#FF3300"><b>Edit Profile</b></font></td>
</tr>
<tr>
<td width="42" height="51" bgcolor="#FFFFCC"
background="19.gif">&nbsp;</td>
<td width="27" height="51" bgcolor="#FFFFCC"
background="19.gif">&nbsp;<input type=radio name=option></td>
<td width="432" height="51" bgcolor="#FFFFCC"
background="19.gif">
<font size="4" color="#FF3300"><b>Feedback</b></font></td>
</tr>
</form>
</table><hr size=2 color=red>
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="99%"
id="AutoNumber4" background="19.gif">
<tr>
<td width="100%" background="19.gif">
<p align="center"><input type="button" name=submit
value="Submit" onClick="checkOption()"></td>
</tr>
</table>
</center>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPolicy.htm">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>
</body>

</html>

--------------------------------------------------------------------------------------------------------------------------
CUSTOMER MODULE

Page 102 of 292


--------------------------------------------------------------------------------------------------------------------------

<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>ShareBazar</title>
</head>
<script language="javascript">
function checkOption()
{
if(document.forms[0].option[0].checked)
{
frmOption.action="index88.jsp";
}
else if(document.forms[0].option[1].checked)
{
frmOption.action="index81.jsp";
}
else if(document.forms[0].option[2].checked)
{
frmOption.action="index14.jsp";
}
else if(document.forms[0].option[3].checked)
{
frmOption.action="index9.jsp";
}
else if(document.forms[0].option[4].checked)
{
frmOption.action="index6a.jsp";
}
else if(document.forms[0].option[5].checked)
{
frmOption.action="index121.jsp";
}
else
{
alert("Please select any option to go forward.");
return;
}
frmOption.method="post";

Page 103 of 292


frmOption.submit();
}
</script>
<body background="19a.gif">
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFCC">
ShareBazar.com</font></i></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFCC">Gone
are the days...............to successful online share
investing</font></b></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="4" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3">
<form name="frmOption">
<input type=hidden name=login value="<
%=request.getParameter("login")%>">
<input type=hidden name=memid value="<
%=request.getParameter("memid")%>">
<input type=hidden name=pwd value="<
%=request.getParameter("password")%>">
<tr>
<td width="22%" height="80%" bgcolor="#FF0000" rowspan="7"
background="19.gif"><img src="sblogo.jpeg" width="100%"
height="100%"></td>
<td width="18" height="61" bgcolor="#FFFFCC"
background="19.gif">
<p align="center">&nbsp;</td>
<td width="419" height="61" bgcolor="#FFFFCC"
background="19.gif" colspan="2">

Page 104 of 292


<b><u><font size="6" color="#FF3300"><i>Customer Module
</i></font></u></b></td>
<td width="22%" height="80%" bgcolor="#FF0000"
background="19.gif" rowspan="7">
<img src="7.jpg" width="100%" height="100%"></td>
</tr>
<tr>
<td width="18" height="54" bgcolor="#FFFFCC"
background="19.gif">&nbsp;</td>
<td width="26" height="54" bgcolor="#FFFFCC"
background="19.gif">
<input type=radio name="option" value="op1"></td>
<td width="385" height="54" bgcolor="#FFFFCC"
background="19.gif">
<font size="4" color="#FF3300"><b>Buy Shares</b></font></td>
</tr>
<tr>
<td width="18" height="54" bgcolor="#FFFFCC"
background="19.gif">&nbsp;</td>
<td width="26" height="54" bgcolor="#FFFFCC"
background="19.gif">
<input type=radio name="option" value="op2"></td>
<td width="385" height="54" bgcolor="#FFFFCC"
background="19.gif"><b>
<font size="4" color="#FF3300">Sell Shares</font></b></td>
</tr>
<tr>
<td width="18" height="53" bgcolor="#FFFFCC"
background="19.gif">&nbsp;</td>
<td width="26" height="53" bgcolor="#FFFFCC"
background="19.gif">
<input type=radio name="option" value="op3"></td>
<td width="385" height="53" bgcolor="#FFFFCC"
background="19.gif"><b>
<font size="4" color="#FF3300">Contact
Companies</font></b></td>
</tr>
<tr>
<td width="18" height="54" bgcolor="#FFFFCC"
background="19.gif">&nbsp;</td>
<td width="26" height="54" bgcolor="#FFFFCC"
background="19.gif">
<input type=radio name="option" value="op4"></td>
<td width="385" height="54" bgcolor="#FFFFCC"
background="19.gif"><b>
Page 105 of 292
<font size="4" color="#FF3300">Check Company
Details</font></b></td>
</tr>
<tr>
<td width="18" height="55" bgcolor="#FFFFCC"
background="19.gif">&nbsp;</td>
<td width="26" height="55" bgcolor="#FFFFCC"
background="19.gif">
<input type=radio name="option" value="op7"></td>
<td width="385" height="55" bgcolor="#FFFFCC"
background="19.gif">
<font size="4" color="#FF3300"><b>Edit Profile</b></font></td>
</tr>
<tr>
<td width="18" height="55" bgcolor="#FFFFCC"
background="19.gif">&nbsp;&nbsp;</td>
<td width="26" height="55" bgcolor="#FFFFCC"
background="19.gif">
<input type=radio name="option" value="op8"></td>
<td width="385" height="55" bgcolor="#FFFFCC"
background="19.gif">
<font size="4" color="#FF3300"><b>Feedback</b></font></td>
</tr>
</form>
</table><hr color=red>
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber4" background="19.gif">
<tr>
<td width="100%" background="19.gif">
<p align="center"><input type="button" name=submit
value="Submit" onClick="checkOption()"></td>
</tr>
</table>
</center>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPolicy.htm">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>
</body>
Page 106 of 292
</html>

--------------------------------------------------------------------------------------------------------------------------
BUY SHARES
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String comp[];
int num=0,i=0,temp=0;
Connection conn=null;
Statement stmt=null;
ResultSet rs=null;
%>
<%
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");

stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet
.CONCUR_READ_ONLY);
rs=stmt.executeQuery("select comName from ShareMaster");
while(rs.next())
{
num++;
}
rs.beforeFirst();
comp=new String[num];
while(rs.next())
{
comp[i]=rs.getString(1);
i++;
}
}catch(Exception e)
{
System.out.println("The Exception is ---->"+e);
}
%>
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">

Page 107 of 292


<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-
1252">
<title>ShareBazar</title>
</head>
<script language="javascript">
var availQTY
function findShare()
{
var i=0
bal=new Array()
rate=new Array()
type=new Array()
a=document.forms[0].comName.selectedIndex
if(a==0)
{
document.forms[0].qtyavail.value=""
document.forms[0].type.value=""
document.forms[0].rate.value=""
return
}
<%
try
{
stmt=conn.createStatement();
rs=stmt.executeQuery("select balance,rate,type from
ShareMaster");
while(rs.next())
{
%>
bal[i] = "<%=rs.getString(1)%>"
rate[i] = "<%=rs.getString(2)%>"
type[i] = "<%=rs.getString(3)%>"
i++
<%
}
}catch(Exception e)
{
System.out.println("Exception is -----> "+e);
}
%>
document.forms[0].qtyavail.value=bal[i-a]
document.forms[0].rate.value=rate[i-a]
availQTY=bal[i-a]
if(type[i-a]=="O")
Page 108 of 292
sh="Ordinary"
else if(type[i-a]=="E")
sh="Equity"
else if(type[i-a]=="P")
sh="Preferential"
document.forms[0].type.value=sh+" Shares"
a=0
i=0
}

function isEmpty(str)
{
if(str=="" || str==null || str==" ")
return true
else
return false
}

function ValidEntery(word1,word2)
{
var i;
if(word1.length!=word2.length)
return false;
for(i=0 ; i < word1.length ; i++)
{
if(word1.charAt(i)!=word2.charAt(i))
return false;
}
return true;
}

function validQty(qty)
{
if(qty.length > availQTY.length)
alert("Number out of Range. Please Re-enter.")
else if(isNaN(qty) || qty <= 0)
{
alert("Invalid no. of Shares. Please Re-enter.")
return false
}
else
{
for(i=0;i<qty.length;i++)
{
Page 109 of 292
if(qty.charAt(i)==".")
{
alert("Invalid no. of Shares. Please Re-enter.")
return false
}
}
if(Integer.parseInt(qty) > Integer.parseInt(availQTY))
{
alert("Required no. of Shares cann't be greater than the
available no. of Shares")
return false
}
else
return true
}
}

function checkAll()
{
shareQty=document.forms[0].qty.value
memid=document.forms[0].memNo.value
password=document.forms[0].Tpassword.value
company=document.forms[0].comName.value
custmemid= "<%=request.getParameter("memid")%>"
custpwd= "<%=request.getParameter("pwd")%>"
if(company=="0")
{
alert("Please select company name for buying shares.")
document.forms[0].comName.focus()
return false
}
else if(isEmpty(shareQty))
{
alert("Please enter no. of shares to buy.")
document.forms[0].qty.focus()
return false
}
else if(!validQty(shareQty))
{
document.forms[0].qty.value=""
document.forms[0].qty.focus()
return false
}
else if(isEmpty(memid))
{
Page 110 of 292
alert("Please enter your Membership Number.")
document.forms[0].memNo.focus()
return false
}
else if(!ValidEntery(memid,custmemid))
{
alert("Membership ID does not match. Please Re-enter.");
document.forms[0].memNo.value="";
document.forms[0].memNo.focus();
return false;
}
else if(isEmpty(password))
{
alert("Please enter your Password.")
document.forms[0].Tpassword.focus()
return false
}
else if(!ValidEntery(password,custpwd))
{
alert("Password does not match. Please Re-enter.");
document.forms[0].Tpassword.value="";
document.forms[0].Tpassword.focus();
return false;
}
else
{
return true
}
}

function fillAll()
{
if(checkAll())
{
if(confirm("Are you sure about the company,number and price
of Shares ?"))
return true
else
return false
}
return false
}
</script>

<body background="19a.gif">
Page 111 of 292
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFCC">
ShareBazar.com</font></i></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFCC">Gone
are the days................to successful online investing</font></b></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center"><b><font size="5" color="#FFFFCC">Buy Shares
(Requisition)</font></b></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber4" height="365">
<form action="http://localhost:8080/examples/jsp/updateBuyer.jsp"
method="post">
<input type=hidden name=login value="<
%=request.getParameter("login")%>">
<input type=hidden name=memid value="<
%=request.getParameter("memid")%>">
<input type=hidden name=pwd value="<
%=request.getParameter("pwd")%>">
<tr>
<td width="25%" height="55" rowspan="7">&nbsp;</td>
<td width="21%" height="55" background="19.gif" align="right">

Page 112 of 292


<font size="4" color="#FF0000">Select Company Name
:</font></td>
<td width="6%" height="55" background="19.gif" colspan="2">
&nbsp;</td>
<td width="27%" height="55" background="19.gif">
&nbsp;<select name=comName size=1 tabindex="1"
onChange="findShare()">
<option selected value=0>( Select One )</option>
<% for(int i=0;i<num;i++)
{
%>
<option value="<%=comp[i]%>"><%=comp[i]
%></option>
<%
}
num=0;
i=0;
%>
</select>
<font color="#000080">*</font></td>
<td width="25%" height="365" rowspan="7">&nbsp;</td>
</tr>
<tr>
<td width="21%" height="55" background="19.gif" align="right">
<p><font size="4" color="#FF0000">No. of Shares Available
:</font></td>
<td width="6%" height="55" background="19.gif"
colspan="2">&nbsp;</td>
<td width="27%" height="55" background="19.gif">
&nbsp;<input type=text name=qtyavail disabled value="" size=11>
<input type=text name=type disabled value="" size=16></td>
</tr>
<tr>
<td width="21%" height="55" background="19.gif" align="right">
<p><font size="4" color="#FF0000">Rate per Shares&nbsp;
:</font></td>
<td width="6%" height="55" background="19.gif"
colspan="2">&nbsp;</td>
<td width="27%" height="55" background="19.gif">
&nbsp;<input type=text name=rate disabled value="" size=10></td>
</tr>
<tr>
<td width="21%" height="55" background="19.gif" align="right">
<p>

Page 113 of 292


<font size="4" color="#FF0000">No. of Shares :</font><font
color="#008000">
</font>
<font size="2" color="#000080">(For Buying)</font></td>
<td width="6%" height="55" background="19.gif"
colspan="2">&nbsp;</td>
<td width="27%" height="55" background="19.gif">&nbsp;<input
type=text name=qty value="" size=6 tabindex="4"><font
color="#0000FF">&nbsp;</font><font color="#000080">* (<font
size="1">be sure of no.'s</font> <font size="2">Enter
Carefully</font>)</font><font color="#0000FF">
</font></td>
</tr>
<tr>
<td width="21%" height="55" background="19.gif" align="right">
<p><font size="4" color="#FF0000">Enter Membership no.
:</font></td>
<td width="6%" height="55" background="19.gif"
colspan="2">&nbsp;</td>
<td width="27%" height="55" background="19.gif">&nbsp;<input
type=text name=memNo value="" size=15 tabindex="5">
<font color="#000080">* </font><font color="#000080"
size="2">(Enter
Carefully)</font></td>
</tr>
<tr>
<td width="21%" height="56" background="19.gif" align="right">
<p><font size="4" color="#FF0000">Transaction Password
:</font></td>
<td width="6%" height="56" background="19.gif"
colspan="2">&nbsp;</td>
<td width="27%" height="56" background="19.gif">&nbsp;<input
type=password name=Tpassword value="" size=15 tabindex="6">
<font color="#000080">*</font><font color="#008000">
</font></td>
</tr>
<tr>
<td width="17%" height="60" background="19.gif" colspan="2">
<p align="center"><font size="1"
color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp; </font>
<font size="1" color="#000080">(Fields marked with * are
mandatory)</font></td>
<td width="35%" height="60" background="19.gif" colspan="2">

Page 114 of 292


<input type="submit" name=submit value="Submit" onClick="return
fillAll()" tabindex="7">
<input type=reset name=reset value="Reset" tabindex="8">
</td>
</tr>
</form>
</table>
<hr size=2 color=red>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPolicy.htm">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>
</body>
<script language="javascript">
document.forms[0].qty.value=""
document.forms[0].memNo.value=""
document.forms[0].Tpassword.value=""
document.forms[0].comName.focus()
</script>
</html>

--------------------------------------------------------------------------------------------------------------------------
SELL SHARES
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String comp[],memid,password;
int num=0,i=0,temp=0;
Connection conn=null;
Statement stmt=null;
ResultSet rs=null;
%>
<%
memid=request.getParameter("memid");
password=request.getParameter("password");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");

Page 115 of 292


stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet
.CONCUR_READ_ONLY);
rs=stmt.executeQuery("select nameCom from buyer where
memID='"+memid+"' group by nameCom");
while(rs.next())
{
num++;
}
rs.beforeFirst();
comp=new String[num];
while(rs.next())
{
comp[i]=rs.getString(1);
i++;
}
}catch(Exception e)
{
System.out.println("The Exception is ---->"+e);
}
%>
<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>ShareBazar</title>
</head>
<script language="javascript">
function findShare()
{
var i=0;
qty=new Array();
a=document.forms[0].comName.selectedIndex;
<%
try
{
rs=stmt.executeQuery("select sum(qty) from buyer where
memID='"+memid+"' group by comid");
while(rs.next())
{
%>
qty[i++]=<%=rs.getString(1)%>;
Page 116 of 292
<%
}
}catch(Exception e)
{
System.out.println("Exception is 2 : "+e);
}
%>
document.forms[0].qtyavail.value=qty[a-1];
a=0;
i=0;
}
</script>
<body background="19a.gif">

<table border="0" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFCC">
ShareBazar.com</font></i></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFCC">Gone
are the days................to successful online investing</font></b></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center"><b><font size="5" color="#FFFFCC">Sell Shares
</font></b></td>
</tr>
</table>

Page 117 of 292


<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber4" height="365">
<form name="SS">
<input type=hidden name=login value="<
%=request.getParameter("login")%>">
<input type=hidden name=memid value="<
%=request.getParameter("memid")%>">
<input type=hidden name=password value="<
%=request.getParameter("password")%>">
<tr>
<td width="20%" height="365" rowspan="6">&nbsp;</td>
<td width="21%" height="55" background="19.gif" align="left">
<p><font size="4" color="#FF0000">&nbsp;Select Company Name
:</font></td>
<td width="6%" height="55" background="19.gif" colspan="2">
&nbsp;</td>
<td width="32%" height="55" background="19.gif">
&nbsp;<select name=comName size=1 tabindex="1"
onChange="findShare()">
<option selected value=0>( Select One )</option>
<% for(int i=0;i<num;i++)
{
%>
<option value=i+1><%=comp[i]%></option>
<%
}
num=0;
i=0;
%>
</select>
<font color="#000080">*</font></td>
<td width="20%" height="365" rowspan="6">&nbsp;</td>
</tr>
<tr>
<td width="21%" height="55" background="19.gif" align="left">
<p><font size="4" color="#FF0000">&nbsp;No. of Shares
Available :</font></td>
<td width="6%" height="55" background="19.gif"
colspan="2">&nbsp;</td>
<td width="32%" height="55" background="19.gif">
&nbsp;<input type=text name=qtyavail disabled value=""
size=8></td>
</tr>
<tr>
Page 118 of 292
<td width="21%" height="55" background="19.gif" align="left">
<p>
<font size="4" color="#FF0000">&nbsp;No. of Shares :</font><font
color="#008000">
</font>
<font size="1" color="#000080">(For Selling)</font></td>
<td width="6%" height="55" background="19.gif"
colspan="2">&nbsp;</td>
<td width="32%" height="55" background="19.gif">&nbsp;<input
type=text name=qty value="" size=8 tabindex="2"><font
color="#0000FF">&nbsp;</font><font color="#000080">* (<font
size="1">be sure of no.'s</font> <font size="2">Enter
Carefully</font>)</font><font color="#0000FF">
</font></td>
</tr>
<tr>
<td width="21%" height="55" background="19.gif" align="left">
<p><font size="4" color="#FF0000">&nbsp;Membership no.
:</font></td>
<td width="6%" height="55" background="19.gif"
colspan="2">&nbsp;</td>
<td width="32%" height="55" background="19.gif">&nbsp;<input
type=text name=memNo disabled value="<%=memid%>" size=15>
<font color="#000080">* </font></td>
</tr>
<tr>
<td width="21%" height="56" background="19.gif" align="left">
<p><font size="4" color="#FF0000">&nbsp;Transaction Password
:</font></td>
<td width="6%" height="56" background="19.gif"
colspan="2">&nbsp;</td>
<td width="32%" height="56" background="19.gif">&nbsp;<input
type=password name=Tpassword value="" size=15 tabindex="3">
<font color="#000080">*</font><font color="#008000">
</font></td>
</tr>
<tr>
<td width="17%" height="60" background="19.gif" colspan="2">
<p align="center"><font size="1"
color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp; </font>
<font size="1" color="#000080">(Fields marked with * are
mandatory)</font></td>
<td width="40%" height="60" background="19.gif" colspan="2">
<input type=button name=submit value="Submit" tabindex="4">
Page 119 of 292
<input type=reset name=reset value="Reset" tabindex="5">
</td>
</tr>
</form>
</table>
<hr size=2 color=red>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="form1.html">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>
</body>
<script language="javascript">
document.forms[0].comName.focus();
</script>
</html>

--------------------------------------------------------------------------------------------------------------------------
CONTACT COMPANY
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String comp[];
int num=0,i=0,temp=0;
Connection conn=null;
Statement stmt=null;
ResultSet rs=null;
%>
<%
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");

stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet
.CONCUR_READ_ONLY);
rs=stmt.executeQuery("select name from CompanyMaster");
while(rs.next())
{
num++;
}

Page 120 of 292


rs.beforeFirst();
comp=new String[num];
while(rs.next())
{
comp[i]=rs.getString(1);
i++;
}
}catch(Exception e)
{
System.out.println("The Exception is ---->"+e);
}
%>
<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">
</head>
<script language="javascript">
function isEmpty(str)
{
if(str==null || str==" ")
return true;
else
return false;
}

function isNumeric(num)
{
var flag;
for(i=0;i<num.length;i++)
{
if( (num.charAt(i) >= "0") && (num.charAt(i) <= "9") )
{
flag=1;
}
else
{
flag=0;
break;
}
}
Page 121 of 292
if(flag)
return true;
else
return false;
}
function validateAll()
{
name=document.forms[0].comName.selectedIndex;
email=document.forms[0].email.value;
ph=document.forms[0].phone.value;
comment=document.forms[0].reason.value;
var reg = new RegExp("^[A-Za-z0-9_]{1,}[.]?[A-Za-z0-9_]{1,}@{1}
([A-Za-z0-9_]+[.]{1})+[A-Za-z0-9_]{1,}$");
if(name==0)
{
alert("Please select the name of the Company.");
document.forms[0].comName.focus();
return false;
}
else if(isEmpty(email))
{
alert("Please enter your E-mail address.");
document.forms[0].email.focus();
return false;
}
else if(!reg.test(email))
{
alert("Invalid email address. Please re-enter.");
document.forms[0].email.focus();
return false;
}
else if(isEmpty(ph))
{
alert("Please enter your Phone Number.");
document.forms[0].phone.focus();
return false;
}
else if(!isNumeric(ph))
{
alert("Invalid Character in Phone Number.Please Re-enter.");
document.forms[0].phone.focus();
return false;
}
else if(isEmpty(comment))
{
Page 122 of 292
alert("Please enter your Comments about the Company.");
document.forms[0].reason.focus();
return false;
}
else
return true;
}

function comment()
{
if(validateAll())
{
frmContact.action="contact.jsp";
frmContact.method="post";
frmContact.submit();
}
}
</script>
<body background="19a.gif">

<table border="1" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFCC">
ShareBazar.com</font></i></td>
</tr>
</table>
<hr size=2 color=red>
<table border="1" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFCC">Gone
are the days ................ to successful online
investing</font></b></td>
</tr>
</table>
<hr size=2 color=red>
<table border="1" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3">
<tr>
Page 123 of 292
<td width="100%" bgcolor="#FF0000">
<p align="center"><b><font size="5" color="#FFFFCC">Contact
Company </font></b></td>
</tr>
</table><br>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber4" height="289">
<form name="frmContact">
<tr>
<td width="20%" height="38">&nbsp;</td>
<td width="23%" height="38" align="center" background="19.gif">
<font size="4" color="#FF0000">Select Company Name</font></td>
<td width="28%" height="38" background="19.gif"
colspan="3">&nbsp;<select name=comName size=1 tabindex="1">
<option selected value=0>( Select One )</option>
<% for(int i=0;i<num;i++)
{
%>
<option value="<%=comp[i]%>"><%=comp[i]
%></option>
<%
}
num=0;
i=0;
%>
</select></td>
<td width="29%" height="38">&nbsp;</td>
</tr>
<tr>
<td width="20%" height="33">&nbsp;</td>
<td width="23%" height="33" align="center"
background="19.gif"><font size="4" color="#FF0000">
Your E-Mail ID</font></td>
<td width="28%" height="33" background="19.gif"
colspan="3">&nbsp;<input type=text size=25 name="email"
tabindex="2"></td>
<td width="29%" height="33">&nbsp;</td>
</tr>
<tr>
<td width="20%" height="38">&nbsp;</td>
<td width="23%" height="38" align="center"
background="19.gif"><font size="4" color="#FF0000">
Phone Number</font></td>

Page 124 of 292


<td width="28%" height="38" background="19.gif"
colspan="3">&nbsp;<input type=text size=20 name="phone"
tabindex="3"></td>
<td width="29%" height="38">&nbsp;</td>
</tr>
<tr>
<td width="20%" height="100%">&nbsp;</td>
<td width="23%" height="139" background="19.gif">
<p align="center"><font size="4" color="#FF0000">Why do you want
to contact
company ? Explain.</font></td>
<td width="28%" height="139" background="19.gif" colspan="3">
&nbsp;<!--webbot bot="Validation" b-value-required="TRUE" i-
minimum-length="25" i-maximum-length="100" s-validation-
constraint="Less than or equal to" s-validation-value="100" --><textarea
rows="5" cols="30" name="reason" tabindex="4">
</textarea></td>
<td width="20%" height="100%">&nbsp;</td>
</tr>
<tr>
<td width="20%" height="37">&nbsp;</td>
<td width="17%" height="37" background="19.gif">
<p align="center">&nbsp;</td>
<td width="11%" height="37" background="19.gif">
<p align="center">
<input type="button" name=subBut value=Submit tabindex="5"
style="float: left" onClick="comment()"></td>
<td width="11%" height="37" background="19.gif">
<p align="center">
<input type="button" name=cancelBut value=Cancel tabindex="6"
style="float: left"></td>
<td width="12%" height="37" background="19.gif">&nbsp;</td>
<td width="29%" height="37">&nbsp;</td>
</tr>
</form>
</table><br>
<hr size=2 color=red>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPoloicy.htm">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>
Page 125 of 292
</body>
</html>

--------------------------------------------------------------------------------------------------------------------------
COMPANY DETAILS
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String comp[];
int num=0,i=0;
Connection conn=null;
Statement stmt=null;
ResultSet rs=null;
%>
<%
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");

stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet
.CONCUR_READ_ONLY);
rs=stmt.executeQuery("select name from CompanyMaster");
while(rs.next())
{
num++;
}
rs.beforeFirst();
comp=new String[num];
while(rs.next())
{
comp[i]=rs.getString(1);
i++;
}
}catch(Exception e)
{
System.out.println("The Exception is ---->"+e);
}
%>
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">

Page 126 of 292


<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-
1252">
<title>New Page 1</title>
</head>
<script language="javascript">
function call(frmlist)
{
if(document.forms[0].comName[0].selected)
{
alert("Please select company name to see its details.");
return;
}
else
{
frmlist.action="try.jsp";
frmlist.method="post";
frmlist.submit();
}
}
</script>
<body background="19a.gif">

<table border="0" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFCC">
ShareBazar.com</font></i></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFCC">Gone
are the days................to successful online share
investing</font></b></td>
</tr>
</table>
<hr size=2 color=red>

Page 127 of 292


<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center"><b><font size="5" color="#FFFFCC">Share
Listing Company
wise</font></b></td>
</tr>
</table>
&nbsp;<p>
<br>
</p>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber4">
<form name="frmListing">
<tr>
<td width="19%">&nbsp;</td>
<td width="34%">
<p align="right"><b><font color="#FF0000">&nbsp;Select Company
name to see its details &nbsp; :</font></b></td>
<td
width="22%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;
<select name=comName size=1>
<option selected value=0>( Select One )</option>
<% for(int i=0;i<num;i++)
{
%>
<option value="<%=comp[i]%>"><%=comp[i]%></option>
<%
}
num=0;
i=0;
%>
</select>
</td>
<td width="16%">&nbsp;</td>
</tr>
<tr>
<td width="100%" colspan="4">&nbsp;</td>
</tr>
<tr>
<td width="100%" colspan="4">
Page 128 of 292
<p align="center">&nbsp;<input type=button name=sub
value="Submit" onClick="call(this.form)"></td>
</tr>
</form>
</table>
<br>
<hr size=2 color=red>
<p align=center><font face="Arial" size=1>|<a
href="form1.html">Home</a>
|<a href="mailto:info@investmentz.com">Contact us</a>
|<a href="form1.html">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>
</body>

</html>

--------------------------------------------------------------------------------------------------------------------------
EDIT CUSTOMER PROFILE
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*,java.util.StringTokenizer" %>


<%! String
initial,name,add,city,state,country,pin,email,occupation,incomegroup,pho
neoff,mobile,logname,pword,memid,temp,address[];
Date dt;
Connection conn;
PreparedStatement stmt;
%>
<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>ShareBazar</title>
</head>
<%
try{
temp=request.getParameter("memid");
System.out.println(memid);

Page 129 of 292


Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.prepareStatement("select * from CustomerMaster where
memID=?");
stmt.setString(1,temp);
ResultSet rs=stmt.executeQuery();
rs.next();
initial=rs.getString(1);
name=rs.getString(2);
add=rs.getString(3);
city=rs.getString(4);
state=rs.getString(5);
country=rs.getString(6);
pin=rs.getString(7);
email=rs.getString(8);
dt=rs.getDate(9);
occupation=rs.getString(10);
incomegroup=rs.getString(11);
phoneoff=rs.getString(12);
mobile=rs.getString(13);
logname=rs.getString(14);
pword=rs.getString(15);
memid=rs.getString(16);
int d=dt.getDate();
int m=dt.getMonth()+1;
int y=dt.getYear();
StringTokenizer addr=new StringTokenizer(add,";");
address = new String[3];
address[0]=addr.nextToken();
if(addr.hasMoreTokens())
address[1]=addr.nextToken();
else
address[1]="";
if(addr.hasMoreTokens())
address[2]=addr.nextToken();
else
address[2]="";
}catch(Exception e)
{
System.out.println("Exception when Editing -----> "+e);
}
%>

<script language="JavaScript">
function ttt()
Page 130 of 292
{
document.forms[0].initial.value="<%=initial%>";
document.forms[0].name.value="<%=name%>";
document.forms[0].add1.value="<%=address[0]%>";
document.forms[0].add2.value="<%=address[1]%>";
document.forms[0].add3.value="<%=address[2]%>";
document.forms[0].city.value="<%=city%>";
document.forms[0].state.value="<%=state%>";
document.forms[0].country.value="<%=country%>";
document.forms[0].pincode.value="<%=pin%>";
document.forms[0].email.value="<%=email%>";
document.forms[0].bday.value="<%=d%>";
document.forms[0].bmonth.value="<%=m%>";
document.forms[0].year.value="<%=y%>";
document.forms[0].occupation.value="<%=occupation%>";
document.forms[0].incomegroup.value="<%=incomegroup%>";
document.forms[0].offphone.value="<%=phoneoff%>";
document.forms[0].Mphone.value="<%=mobile%>";
document.forms[0].loginname.value="<%=logname%>";
document.forms[0].password.value="<%=pword%>";
document.forms[0].memID.value="<%=memid%>";
}

function isEmpty(str)
{
if(str=="")
{
return true;
}
else
return false;
}

function isAlpha(str1)
{
var flag=0;
len=str1.length;
for(i=0; i<len; i++)
{
if( ((str1.charAt(i) >='a')&& (str1.charAt(i) <='z')) ||
((str1.charAt(i) >='A')&& (str1.charAt(i) <='Z')) || (str1.charAt(i) == " "))
{
flag=1;
}
else
Page 131 of 292
{
flag=0;
break;
}
}
if(flag)
return true;
else
return false;
}

function isAlphaNumeric(str1)
{
len=str1.length;
for(i=0; i<len; i++)
{
if( ((str1.charAt(i) >='a') && (str1.charAt(i) <='z')) ||
((str1.charAt(i) >='A') && (str1.charAt(i) <='Z')) || ((str1.charAt(i) >=0)
&& (str1.charAt(i) <=9)) )
{
return true;
}
else
{
return false;
break;
}
}
}

function isPosInteger(num)
{
if(!(isNaN(num)))
{
if(num>0)
return true;
else
return false;
}
else
{
return false;
}
}

Page 132 of 292


function isValidLogin(str)
{
var name = str.toString();
var n=name.length;
var i;
for(i=0; i<n; i++)
{
var ch = name.charAt(i);
if((!isAlphaNumeric(ch) && (ch != "_")) )
{
return false;
}
}
return true;
}

function validateAll()
{
var name=document.forms[0].name.value;
var add1=document.forms[0].add1.value;
var city=document.forms[0].city.value;
var state=document.forms[0].state.value;
var country=document.forms[0].country.value;
var pincode=document.forms[0].pincode.value;
var day=document.forms[0].bday.value;
var month=document.forms[0].bmonth.value;
var year=document.forms[0].year.value;
var email=document.forms[0].email.value;
var phoneoff=document.forms[0].offphone.value;
var mobile=document.forms[0].Mphone.value;
var occupation=document.forms[0].occupation.value;
var incomegroup=document.forms[0].incomegroup.value;
var logname=document.forms[0].loginname.value;
var pword=document.forms[0].password.value;
var reg = new RegExp("^[A-Za-z0-9_]{1,}[.]?[A-Za-z0-9_]{1,}@{1}
([A-Za-z0-9_]+[.]{1})+[A-Za-z0-9_]{1,}$");
if(isEmpty(add1))
{
alert("The address is compulsory.");
document.forms[0].add1.focus();
return false;
}

else if(isEmpty(city))
{
Page 133 of 292
alert("Please type the name of the city.");
document.forms[0].city.focus();
return false;
}
else if(!isAlpha(city))
{
alert("City name contains invalid characters. Please re-
enter.");
document.forms[0].city.focus();
return false;
}

else if(isEmpty(state))
{
alert("Please type the name of the state.");
document.forms[0].state.focus();
return false;
}
else if(!isAlpha(state))
{
alert("State name contains invalid characters. Please re-
enter.");
document.forms[0].state.focus();
return false;
}

else if(isEmpty(country))
{
alert("Please type the name of the country.");
document.forms[0].country.focus();
return false;
}
else if(!isAlpha(country))
{
alert("Country name contains invalid characters. Please re-
enter.");
document.forms[0].country.focus();
return false;
}

else if(isEmpty(pincode))
{
alert("Please type the pin code.");
document.forms[0].pincode.focus();
return false;
Page 134 of 292
}
else if(!isPosInteger(pincode))
{
alert("Please type a valid 6 digit pin code.");
document.forms[0].pincode.value=" ";
document.forms[0].pincode.focus();
return false;
}
else if(occupation == "none")
{
alert("Please select the Occupation");
document.forms[0].occupation.focus();
return false;
}

else if(incomegroup == "-1")


{
alert("Please select the income group.");
document.forms[0].incomegroup.focus();
return false;
}

else if(isEmpty(phoneoff) && isEmpty(mobile) )


{
alert("Please enter at least one of your contact numbers.");
document.forms[0].offphone.focus();
return false;
}
else if(!isEmpty(phoneoff) && !isPosInteger(phoneoff))
{
alert("Invalid Phone number. Please re-enter.");
document.forms[0].offphone.focus();
return false;
}
else if(!isEmpty(mobile) && !isPosInteger(mobile))
{
alert("Invalid Mobile number. Please re-enter.");
document.forms[0].Mphone.focus();
return false;
}
else if(isEmpty(email))
{
alert("Please type your e-mail address.");
document.forms[0].email.focus();
return false;
Page 135 of 292
}
else if(!reg.test(email))
{
alert("Invalid email address. Please re-enter.");
document.forms[0].email.focus();
return false;
}
else if(isEmpty(logname))
{
alert("Please type your Login Name.");
document.forms[0].loginname.focus();
return false;
}
else if(isEmpty(pword))
{
alert("Please type your password.");
document.forms[0].password.focus();
return false;
}
else if(!isValidLogin(logname))
{
alert("Invalid login name. Login name can contain letters,
numbers and underscore (_) only.");
document.forms[0].loginname.value="";
document.forms[0].loginname.focus();
return false;
}else
return true;
}

function func_sub()
{
if(validateAll())
{
if(confirm("Are you sure to make changes permanently ?"))
{
frmEdit.action="customerEdit.jsp";
frmEdit.method="Post";
frmEdit.submit();
}
else
{
frmEdit.action="index4.jsp";
frmEdit.method="Post";
frmEdit.submit();
Page 136 of 292
}
}

}
</script>

<body bgcolor=lightyellow background="19a.gif">


<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="lightyellow">
<span style="background-color:
#FF0000">ShareBazar.com</span></font></i></td>
</tr>
</table><hr color=red size=2>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber4">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font color="#FFFFE0"
size="2">Gone are the days.....................to successful online share
trading</font>
</b>
</td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center"><b><font size="5" color="lightyellow"> Customer
Edit
Profile </font></b></td>
</tr>
</table>
<hr color=red >
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3" height="320" background="19.gif">
<form name="frmEdit"><!-- action="customerRegistration.jsp"
method="post">-->
Page 137 of 292
<input type=hidden name=memid value="<%=memid%>">
<tr>
<td width="20%" rowspan="11" height="100%">&nbsp;<img
src="6.jpg" width="96%" height="100%" vspace="1" border="0"></td>
<td width="13%" height="31"><font size="4">Name</font></td>
<td width="4%" height="31">&nbsp;<input type=text name=initial
disabled value=" " size=4 tabindex="12"></td>
<td width="35%" colspan="5"
height="31">&nbsp;&nbsp;&nbsp;&nbsp;<input type=text name=name
disabled value=" " size=24 tabindex="2" ><font
color=#000080><sup>*</sup></font><font><font
color=#008000></font><font color=red>&nbsp;&nbsp;</font></td>
<td width="8%" height="31" colspan="2">&nbsp;</td>
<td width="50%" colspan="7" height="31" valign="bottom"><font
color=#008000 size=2>&nbsp;&nbsp;&nbsp; (Please enter at least one
of the Phone number.)</font></td>
</tr>
<tr>
<td width="13%" height="31"><font size="4">Address</font></td>
<td width="32%" colspan="6" height="31">&nbsp;<input type=text
name=add1 value=" " size=35 tabindex="3"><font
color=#000080><sup>*</sup></td>
<td width="8%" height="31" colspan="2">&nbsp;</td>
<td width="9%" height="31" colspan="2"
valign="bottom"><b>Phone</b></td>
<td width="12%" height="31" colspan="2">
<p align="left"><b>Office</b></td>
<td width="12%" height="31" colspan="2"
valign="bottom">&nbsp;&nbsp;&nbsp;
<input type=text name=offphone value=" " size=11
tabindex="15"></td>
</tr>
<tr>
<td width="13%" height="33">&nbsp;</td>
<td width="32%" colspan="6" height="33">&nbsp;<input type=text
name=add2 value=" " size=35 tabindex="4"></td>
<td width="8%" height="33" colspan="2">&nbsp;</td>
<td width="8%" height="33">&nbsp;</td>
<td width="16%" height="33" colspan="4">
<p
align="center"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp; Mobile</b></td>
<td width="8%" height="33">
<input type=text name=Mphone value=" " size=11
tabindex="16"></td>
Page 138 of 292
</tr>
<tr>
<td width="13%" height="34">&nbsp;</td>
<td width="32%" colspan="6" height="34">&nbsp;<input type=text
name=add3 value=" " size=35 tabindex="5"></td>
<td width="8%" height="34" colspan="2">&nbsp;</td>
<td width="24%" height="34" colspan="5"><font size="4">E-
mail&nbsp;&nbsp;&nbsp;&nbsp; </font></td>
<td width="8%" height="34">
<input type=text name=email value=" " size=20
tabindex="17"><font color=#000080><sup>*</sup></td>
</tr>
<tr>
<td width="13%" height="34"><font size="4">City</font></td>
<td width="8%" height="34" colspan="2">&nbsp;<input type=text
name=city value=" " size=10 tabindex="6"><font
color=#000080><sup>*</sup></td>
<td width="3%" height="34"><font size="4">State</font></td>
<td width="21%" height="34" colspan="3">&nbsp;&nbsp;
<input type=text name=state value=" " size=10 tabindex="7"><font
color=#000080><sup>*</sup></td>
<td width="8%" height="34" colspan="2">&nbsp;</td>
<td width="33%" height="34" colspan="5"><font size="4"> Login
name</font></td>
<td width="8%" height="34" align="left">
<input type=text name=loginname value=" " size=20
tabindex="18"><font color=#000080><sup>*</sup></td>
</tr>
<tr>
<td width="13%" height="34"><font size="4">Country</font></td>
<td width="8%" height="34" colspan="2">&nbsp;<input type=text
name=country value=" " size=10 tabindex="8"><font
color=#000080><sup>*</sup></td>
<td width="4%" colspan="2" height="34"><b>Pin code</b></td>
<td width="11%" height="34">
<input name=pincode size=7 tabindex="9" value=" "><font
color=#000080><sup>*</sup></td>
<td width="9%" height="34">&nbsp;</td>
<td width="8%" height="34" colspan="2">&nbsp;</td>
<td width="33%" height="34" colspan="5"><font
size="4">Password</font></td>
<td width="8%" height="34" align="right">
<p align="left">
<input type=password name=password value="" size=20
tabindex="19"><font color=#000080><sup>*</sup></td>
Page 139 of 292
</tr>
<tr>
<td width="13%" height="34"><font size="4">DOB</font></td>
<td width="23%" colspan="5" height="34">&nbsp;<input type=text
name=bday disabled value=" " size=3 tabindex="10">
&nbsp;<input type=text name=bmonth disabled value=" " size=3
tabindex="11">
&nbsp;<input type=text name=year disabled value=" " size=4
tabindex="12"><font color=#000080><sup>*</sup></td>
<td width="9%" height="34">&nbsp;</td>
<td width="8%" height="34" colspan="2">&nbsp;</td>
<td width="33%" height="34" colspan="5"><b>Membership
ID</b></td>
<td width="8%" height="34">
<input name=memID disabled value=" " size=20
tabindex="20"><font color=#000080><sup>*</sup></td>
</tr>
<tr>
<td width="13%" height="31"><font
size="4">Occupation</font></td>
<td width="23%" height="31" colspan="5">&nbsp;<select
name=occupation size=1 tabindex="13">
<option selected value="none">(Select Occupation)</option>
<option value="Self Employed">Self Employed</option>
<option value="Govt. Employee">Govt. Employee</option>
<option value="CEO/MD/Director">CEO/ MD/ Director</option>
<option value="GM/Middle Management">GM/ Middle
Management</option>
<option value="Lower management/trainee"> Lower management/
trainee</option>
<option value="Clerk">Clerk</option>
<option value="Private Sector Employment">Private Sector
Employment</option>
<option value="Retired">Retired</option>
<option value="Housewife">Housewife </option>
<option value="Student">Student</option>
</select><font color=#000080><sup>*</sup></td>
<td width="9%" height="31">&nbsp;</td>
<td width="8%" height="31" colspan="2">&nbsp;</td>
<td width="33%" height="31" colspan="5">&nbsp;</td>
<td width="8%" height="31">&nbsp;</td>
</tr>
<tr>
<td width="13%" height="31"><b>Income Group</b></td>

Page 140 of 292


<td width="23%" height="31" colspan="5">&nbsp;<select
name=incomegroup tabindex="14">
<option selected value="-1">(Select One)</option>
<option value="< 1,00,000">&lt; 1,00,000</option>
<option value="1,00,001 - 3,00,000">1,00,001 -
3,00,000</option>
<option value="3,00,001 - 5,00,000">3,00,001 -
5,00,000</option>
<option value="5,00,001 - 10,00,000">5,00,001 -
10,00,000</option>
<option value="> 10,00,000">&gt; 10,00,000</option>
</select><font color=#000080><sup>*</sup></td>
<td width="9%" height="31">&nbsp;</td>
<td width="8%" height="31" colspan="2">&nbsp;</td>
<td width="36%" height="31" colspan="6" valign="bottom">
<font color=#008000 size=2>(Fields marked with </font>
<font color=#000080 size=2>*</font><font color=#008000 size=2>
are
mandatory)</font></td>
</tr>
<tr>
<td width="13%" height="32">&nbsp;</td>
<td width="23%" height="32" colspan="5">&nbsp;</td>
<td width="9%" height="32">&nbsp;</td>
<td width="8%" height="32" colspan="2">&nbsp;</td>
<td width="39%" height="32" colspan="3" valign="bottom">
<input type="button" name="sub" value="Submit" tabindex="21"
onClick="func_sub()">&nbsp;</td>
<td width="1%" height="32" colspan="3" valign="bottom">
<input type=reset name=resub value="Reset" tabindex="22"></td>
</tr>
<tr>
<td width="94%" height="22" colspan="15">&nbsp;</td>
</tr>
</form>
</table>
<hr color=red >
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tbody>
<tr>
<td align=left valign=center height=35>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPolicy.htm">Privacy Policy</a>
Page 141 of 292
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p></td>
</body>
<script language="javascript">
ttt();
</script>
</html>
---------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String
add,city,state,country,pin,occupation,income,phoneoff,mobile,email,logna
me,pword,memid;
Connection conn;
PreparedStatement pstmt;
%>
<%
try{
add=(request.getParameter("add1")+";"+request.getParameter("add2")
+";"+request.getParameter("add3"));
city=request.getParameter("city");
state=request.getParameter("state");
country=request.getParameter("country");
pin=request.getParameter("pincode");
occupation=request.getParameter("occupation");
income=request.getParameter("incomegroup");
phoneoff=request.getParameter("offphone");
mobile=request.getParameter("Mphone");
email=request.getParameter("email");
logname=request.getParameter("loginname");
pword=request.getParameter("password");
memid=request.getParameter("memid");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
pstmt=conn.prepareStatement("update CustomerMaster set
add=?,city=?,state=?,country=?,pincode=?,email=?,occupation=?,incom
egroup=?,phoneoff=?,mobile=?,logname=?,password=? where memID=?
");
pstmt.setString(1,add);
pstmt.setString(2,city);
pstmt.setString(3,state);
pstmt.setString(4,country);
pstmt.setString(5,pin);
Page 142 of 292
pstmt.setString(6,email);
pstmt.setString(7,occupation);
pstmt.setString(8,income);
pstmt.setString(9,phoneoff);
pstmt.setString(10,mobile);
pstmt.setString(11,logname);
pstmt.setString(12,pword);
pstmt.setString(13,memid);
pstmt.executeUpdate();
conn.close();
}catch(Exception e)
{
System.out.println(e);
}
%>
<jsp:forward page="index4.jsp" />

Page 143 of 292


--------------------------------------------------------------------------------------------------------------------------
FEEDBACK BY CUSTOMER AS WELL AS BY COMPANY
--------------------------------------------------------------------------------------------------------------------------

<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>ShareBazar</title>
</head>
<script language="javascript">
function isEmpty(str)
{
if(str=="")
{
return true;
}
else
return false;
}

function isAlpha(str1)
{
var flag=0;
len=str1.length;
for(i=0; i<len; i++)
{
if( ((str1.charAt(i) >='a')&& (str1.charAt(i) <='z')) ||
((str1.charAt(i) >='A')&& (str1.charAt(i) <='Z')) || (str1.charAt(i) == " "))
{
flag=1;
}
else
{
flag=0;
break;
}
}
if(flag)
return true;
else

Page 144 of 292


return false;
}

function allRight()
{
var name=document.forms[0].name.value;
var email=document.forms[0].email.value;
var comment=document.forms[0].comments.value;
var reg = new RegExp("^[A-Za-z0-9_]{1,}[.]?[A-Za-z0-9_]{1,}@{1}
([A-Za-z0-9_]+[.]{1})+[A-Za-z0-9_]{1,}$");
if(isEmpty(name))
{
alert("Please Enter your Name.");
document.forms[0].name.focus();
return false;
}
else if(!isAlpha(name))
{
alert("Name has invalid character. Please Re-Enter.");
document.forms[0].name.focus();
return false;
}
else if(isEmpty(email))
{
alert("Please Enter your Email address.");
document.forms[0].email.focus();
return false;
}
else if(!reg.test(email))
{
alert("Invalid email address. Please re-enter.");
document.forms[0].email.focus();
return false;
}
else if(isEmpty(comment))
{
alert("Please Type your Feedback.");
document.forms[0].comments.focus();
return false;
}
else
return true;
}

function verify()
Page 145 of 292
{
if(allRight())
{
frmfeedback.action="feedback.jsp";
frmfeedback.method="post";
frmfeedback.submit();
}
}
</script>

<body background="19a.gif">

<table border="0" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFCC">
ShareBazar.com</font></i></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFCC">Gone
are the days ................ to successful online
investing</font></b></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center"><b><font size="5" color="#FFFFCC">Your
Feedback </font></b></td>
</tr>
</table>
<table border="0" cellspacing="0" width="100%" id="AutoNumber4"
height="243" style="border-collapse: collapse" bordercolor="#111111"
cellpadding="0">
Page 146 of 292
<form name="frmfeedback">
<tr>
<td width="25%" height="43" background="19.gif">&nbsp;</td>
<td width="15%" height="43" background="19.gif">
<p align="left">
<font color="#FF0000" size="4">Name :</font></td>
<td width="35%" height="43" colspan="2" background="19.gif">
<input type=text name=name size=25 tabindex="1"></td>
<td width="25%" height="43" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="25%" height="43" background="19.gif">&nbsp;</td>
<td width="15%" height="43" background="19.gif">
<p align="left">
<font color="#FF0000" size="4">E-Mail :</font></td>
<td width="35%" height="43" colspan="2" background="19.gif">
<input type=text name=email size=25 tabindex="2"></td>
<td width="25%" height="43" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="25%" height="43" background="19.gif">&nbsp;</td>
<td width="15%" height="87" rowspan="2" background="19.gif">
<p align="left">
<font size="4" color="#FF0000">Comments :</font></td>
<td width="35%" height="87" rowspan="2" colspan="2"
background="19.gif">
<!--webbot bot="Validation" b-value-required="TRUE" i-minimum-
length="25" i-maximum-length="100" s-validation-constraint="Less than
or equal to" s-validation-value="100" --><textarea rows="5" cols="35"
name="comments" tabindex="3">Here you can give your comments
about ShareBazar.com </textarea></td>
<td width="25%" height="43" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="25%" height="44" background="19.gif">&nbsp;</td>
<td width="25%" height="44" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="25%" height="26" background="19.gif">&nbsp;</td>
<td width="15%" height="26" background="19.gif">&nbsp;</td>
<td width="35%" height="26" colspan="2"
background="19.gif">&nbsp;</td>
<td width="25%" height="26" background="19.gif">&nbsp;</td>
</tr>
<tr>
Page 147 of 292
<td width="25%" height="44" background="19.gif">&nbsp;</td>
<td width="25%" height="44" colspan="2" background="19.gif">
<p align="center">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=button name=subBut value=Submit onClick="verify()"
tabindex="4" ></td>
<td width="25%" height="44" background="19.gif">&nbsp;&nbsp;
<input type=reset name=resetBut value=Reset tabindex="5"></td>
<td width="25%" height="44" background="19.gif">&nbsp;</td>
</tr>
</form>
</table>
<hr size=2 color=red>
<p align=center><font face="Arial" size=1>|<a
href="form1.html">Home</a>
|<a href="mailto:info@investmentz.com">Contact us</a>
|<a href="form1.html">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>

</body>
<script language="javascript">
document.forms[0].name.focus();
</script>

</html>

--------------------------------------------------------------------------------------------------------------------------
SHARES DETAILS
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String memid,name,qty,rate,type,balance,pwd;
Date dt;
int d,m,y;
Connection conn;
PreparedStatement stmt;
%>
<html>

Page 148 of 292


<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>ShareBazar</title>
</head>
<%
try
{
memid=request.getParameter("memid");
pwd=request.getParameter("password");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.prepareStatement("select * from ShareMaster where
memID=?");
stmt.setString(1,memid);
ResultSet rs=stmt.executeQuery();
rs.next();
memid=rs.getString(1);
name=rs.getString(2);
qty=rs.getString(3);
rate=rs.getString(4);
type=rs.getString(5);
dt=rs.getDate(6);
balance=rs.getString(7);
d=dt.getDate();
m=dt.getMonth()+1;
y=dt.getYear()+1900;
rs=null;
}catch(Exception e)
{
System.out.println("Exception while showing ----> "+e);
}
%>
<script language="JavaScript">
function setValue()
{
document.forms[0].comName.value="<%=name%>";
document.forms[0].memId.value="<%=memid%>";
document.forms[0].qty.value="<%=qty%>";
document.forms[0].rate.value="<%=rate%>";
document.forms[0].type_share.value="<%=type%>";
document.forms[0].day.value="<%=d%>";
Page 149 of 292
document.forms[0].month.value="<%=m%>";
document.forms[0].year.value="<%=y%>";
document.forms[0].balance.value="<%=balance%>";
}

function func_sub(frmEnq)
{
frmEnq.action="index3.jsp"
frmEnq.method="post"
frmEnq.submit()
}
</script>
<body background="19a.gif">

<table border="0" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFE1">
ShareBazar.com</font></i></td>
</tr>
</table>
<hr color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font size="2"
color="#FFFFE1">Gone
are the days................to successful online share
investing</font></b></td>
</tr>
</table>
<hr color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3" height="291" background="19.gif">
<form name="frmEnq">
<input type="hidden" name="login" value="<%=name%>">
<input type="hidden" name="memid" value="<%=memid%>">
<input type="hidden" name="password" value="<%=pwd%>">
<tr>
<td width="100%" colspan="4" bgcolor="#FF0000" height="28">

Page 150 of 292


<p align="center"><u><b><font size="5" color="#FFFFE1">Share's
Details</font></b></u></td>
</tr>
<tr>
<td width="29%" height="33">&nbsp;</td>
<td width="22%" height="33" align="left"><font
size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Company
Name</font></td>
<td width="24%" height="33">&nbsp;<input type=text
name=comName disabled value="" size="20"> </td>
<td width="25%" height="33">&nbsp;</td>
</tr>
<tr>
<td width="29%" height="33">&nbsp;</td>
<td width="22%" height="33" align="left"><font
size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Membership
ID</font></td>
<td width="24%" height="33">&nbsp;<input type=text name=memId
disabled value="" size="20"> </td>
<td width="25%" height="33">&nbsp;</td>
</tr>
<tr>
<td width="29%" height="33">&nbsp;</td>
<td width="22%" height="33" align="left"><font
size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; No. of Shares </font>
<font color="#800080" size="2">(Issued)</font></td>
<td width="24%" height="33">&nbsp;<input type=text name=qty
disabled value="" size="12"> </td>
<td width="25%" height="33">&nbsp;</td>
</tr>
<tr>
<td width="29%" height="34">&nbsp;</td>
<td width="22%" height="34" align="left"><font
size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rate </font>
<font size="2" color="#800080">(per share)</font></td>
<td width="24%" height="34">&nbsp;<input type=text name=rate
disabled value="" size="12"> </td>
<td width="25%" height="34">&nbsp;</td>
</tr>
<tr>
<td width="29%" height="34">&nbsp;</td>
<td width="22%" height="34" align="left"><font
size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type</font></td>
<td width="24%" height="34">&nbsp;<input type=text
name=type_share disabled value="" size="15"> </td>
Page 151 of 292
<td width="25%" height="34">&nbsp;</td>
</tr>
<tr>
<td width="29%" height="34">&nbsp;</td>
<td width="22%" height="34" align="left"><font
size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date of Issue</font></td>
<td width="24%" height="34">&nbsp;<input type=text name=day
disabled size=3>
&nbsp;<input type=text name=month disabled size=3>
&nbsp;<input type=text name=year disabled size=4></td>
<td width="25%" height="34">&nbsp;</td>
</tr>
<tr>
<td width="29%" height="34">&nbsp;</td>
<td width="22%" height="34" align="left"><font
size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Remaining
Shares</font></td>
<td width="24%" height="34">&nbsp;<input type=text
name=balance disabled value="" size="12"> </td>
<td width="25%" height="34">&nbsp;</td>
</tr>
<tr>
<td width="29%" height="27">&nbsp;</td>
<td width="46%" height="34" colspan="2">
<p align="center">
<input type="button" name="sub" value="Back" tabindex="1"
onClick="func_sub(frmEnq)" style="float: center"></p>
</td>
<td width="25%" height="27">&nbsp;</td>
</tr>
</form>
</table>
<hr color=red>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPolicy.htm">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>
</body>
<script language="javascript">
setValue();
</script>
Page 152 of 292
</html>

-------------------------------------------------------------------------------------------------------
-------------------

<%@ page import="java.util.*" %>


<%!String
name,add,city,state,country,pin,email,fax,phone,contactPerson,backgrou
nd,logname,pword;
int d,m,y;
%>
<%
name=request.getParameter("nameCom");
add=(request.getParameter("add1")+";"+request.getParameter("add2")
+";"+request.getParameter("add3"));
city=request.getParameter("city");
state=request.getParameter("state");
country=request.getParameter("country");
pin=request.getParameter("pincode");
phone=request.getParameter("phone");
fax=request.getParameter("fax");
email=request.getParameter("email");
contactPerson=request.getParameter("contactperson");
background=request.getParameter("comDescription");
logname=request.getParameter("loginname");
pword=request.getParameter("password");
Calendar rightNow = Calendar.getInstance();
d=rightNow.get(Calendar.DAY_OF_MONTH)-1;
m=rightNow.get(Calendar.MONTH)+1;
y=rightNow.get(Calendar.YEAR);
%>
<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>ShareBazar</title>
</head>
<script language="javascript">
function isEmpty(str)
{
Page 153 of 292
if(str=="" || str==" ")
{
return true;
}
else
return false;
}

function validQty(qty)
{
if(isNaN(qty) || qty <= 0)
{
return false
}
else
{
for(i=0;i<qty.length;i++)
{
if(qty.charAt(i)==".")
{
return false
}
}
return true
}
}

function validRate(rate)
{
if(isNaN(rate) || rate <= 0)
return false
else
return true
}

function validateAll()
{
var qty=document.forms[0].qty.value
var rate=document.forms[0].rate.value
if(isEmpty(qty))
{
alert("Please enter no. of shares issued.");
document.forms[0].qty.focus()
return false
}
Page 154 of 292
else if(isEmpty(rate))
{
alert("Please enter rate/share issued.");
document.forms[0].rate.focus()
return false
}
else if(!validQty(qty))
{
alert("Invalid no. of Shares. Please Re-enter.")
document.forms[0].qty.value=""
document.forms[0].qty.focus()
return false
}
else if(!validRate(rate))
{
alert("Invalid Rate/Share. Please Re-enter.")
document.forms[0].rate.value=""
document.forms[0].rate.focus()
return false
}
else
return true
}

function func_sub(frmShare)
{
if(validateAll())
{
frmShare.action="paymentCom.jsp";
frmShare.method="post"
frmShare.submit()
}
}
</script>
<body background="19a.gif">

<table border="0" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFE1">
ShareBazar.com</font></i></td>
</tr>
</table>
Page 155 of 292
<hr color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font size="2"
color="#FFFFE1">Gone
are the days................to successful online share
investing</font></b></td>
</tr>
</table>
<hr color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3" height="291" background="19.gif">
<form name="frmShare">
<input type=hidden name=name value="<%=name %>" >
<input type=hidden name=add value="<%=add %>" >
<input type=hidden name=city value="<%=city %>" >
<input type=hidden name=state value="<%=state %>" >
<input type=hidden name=country value="<%=country %>" >
<input type=hidden name=pincode value="<%=pin %>" >
<input type=hidden name=phone value="<%=phone %>" >
<input type=hidden name=fax value="<%=fax %>" >
<input type=hidden name=email value="<%=email %>" >
<input type=hidden name=contactPerson value="<%=contactPerson
%>" >
<input type=hidden name=background "value=<%=background%>" >
<input type=hidden name=loginname value="<%=logname %>" >
<input type=hidden name=password value="<%=pword %>" >
<input type=hidden name=day value="<%=d %>" >
<input type=hidden name=month value="<%=m %>" >
<input type=hidden name=year value="<%=y %>" >
<tr>
<td width="100%" colspan="4" bgcolor="#FF0000" height="28">
<p align="center"><u><b><font size="5" color="#FFFFE1">Share's
Details</font></b></u></td>
</tr>
<tr>
<td width="29%" height="33">&nbsp;</td>
<td width="22%" height="33" align="left"><font
size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Company
Name</font></td>
<td width="24%" height="33">&nbsp;<input type=text
name=comName disabled value="<%=name %>" size="20">
Page 156 of 292
<font color="#000080">*</font></td>
<td width="25%" height="33">&nbsp;</td>
</tr>
<tr>
<td width="29%" height="33">&nbsp;</td>
<td width="22%" height="33" align="left"><font
size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; No. of Shares </font>
<font color="#800080" size="2">(Issued)</font></td>
<td width="24%" height="33">&nbsp;<input type=text name=qty
value="" size="12" tabindex="1">
<font color="#000080">*</font></td>
<td width="25%" height="33">&nbsp;</td>
</tr>
<tr>
<td width="29%" height="34">&nbsp;</td>
<td width="22%" height="34" align="left"><font
size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rate </font>
<font size="2" color="#800080">(per share)</font></td>
<td width="24%" height="34">&nbsp;<input type=text name=rate
value="" size="12" tabindex="2">
<font color="#000080">*</font></td>
<td width="25%" height="34">&nbsp;</td>
</tr>
<tr>
<td width="29%" height="34">&nbsp;</td>
<td width="22%" height="34" align="left"><font
size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type</font></td>
<td width="24%" height="34">&nbsp;<select name="type_share"
tabindex="3">
<option value="O">ORDINARY</option>
<option value="E">EQUITY</option>
<option value="P">PREFERENTIAL </option>
</select> </td>
<td width="25%" height="34">&nbsp;</td>
</tr>
<tr>
<td width="29%" height="34">&nbsp;</td>
<td width="22%" height="34" align="left"><font
size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date of Issue</font></td>
<td width="24%" height="34">&nbsp;<input type=text name=day
disabled value="<%=d%>" size=3 tabindex="10">
&nbsp;<input type=text name=month disabled value="<%=m%>"
size=3 tabindex="11">
&nbsp;<input type=text name=year disabled value="<%=y%>"
size=5 tabindex="12"><font color=#000080><sup>*</sup></td>
Page 157 of 292
<td width="25%" height="34">&nbsp;</td>
</tr>
<tr>
<td width="29%" height="27" rowspan="2">&nbsp;</td>
<td width="46%" height="1" colspan="2">
<p align="center">
<font color=#008000 size=2>(Fields marked with </font>
<font color=#000080 size=2>*</font><font color=#008000 size=2>
are
mandatory)</font></td>
<td width="25%" height="27" rowspan="2">&nbsp;</td>
</tr>
<tr>
<td width="22%" height="33">
<input type="button" name="sub" value="Submit" tabindex="4"
onClick="func_sub(frmShare)" style="float: right"></td>
<td width="24%" height="33">&nbsp;&nbsp;&nbsp;
<input type=button name=cancel value="Cancel"
tabindex="5"></td>
</tr>
</form>
</table>
<hr color=red>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPolicy.htm">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>
</body>
<script language="javascript">
document.forms[0].qty.focus()
</script>

</html>

--------------------------------------------------------------------------------------------------------------------------
SHARE HOLDER LIST
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String memid,name,qty,email,contact,dt;
Page 158 of 292
int d,m,y;
Connection conn;
PreparedStatement stmt;
ResultSet rs=null;
%>
<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>ShareBazar</title>
</head>
<script language="javascript">
function func(frmList)
{
frmList.action="index3.jsp"
frmList.method="post"
frmList.submit();
}
</script>
<%
try
{
memid=request.getParameter("memid");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.prepareStatement("select
CustomerMaster.name,buyer.qty,buyer.date,CustomerMaster.email,Custo
merMaster.mobile from buyer,CustomerMaster where buyer.comID=? and
buyer.memID=CustomerMaster.memID");
stmt.setString(1,memid);
rs=stmt.executeQuery();
System.out.println("Amit");
rs.next();
if(rs==null)
{System.out.println("Arora");
%>
<jsp:forward page="ErrorPage.jsp" />
<%
}
System.out.println("Ji");
}catch(Exception e)
Page 159 of 292
{
System.out.println("Error in Listing----> "+e);
}
%>
<body background="19a.gif">

<table border="0" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFE1">
ShareBazar.com</font></i></td>
</tr>
</table>
<hr color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font size="2"
color="#FFFFE1">Gone
are the days................to successful online share
investing</font></b></td>
</tr>
</table>
<hr color=red>
<table border="1" cellspacing="1" width="100%" id="AutoNumber3"
bgcolor="#FF0000">
<tr>
<td width="22%">
<p align="center"><font size="4" color="#FFFFE1">Shareholder's
Name</font></td>
<td width="13%">
<p align="center"><font size="4" color="#FFFFE1">No. of
Shares</font></td>
<td width="19%">
<p align="center"><font size="4" color="#FFFFE1">Date of
Purchasing</font></td>
<td width="30%">
<p align="center"><font size="4" color="#FFFFE1">E-
mail</font></td>
<td width="16%">
<p align="center"><font size="4" color="#FFFFE1">Contact
No.</font></td>
Page 160 of 292
</tr>
</table>
<table border="1" cellspacing="1" width="100%" id="AutoNumber4">
<form name="frmList">
<input type=hidden name=login value="<
%=request.getParameter("login")%>">
<input type=hidden name=memid value="<
%=request.getParameter("memid")%>">
<input type=hidden name=password value="<
%=request.getParameter("password")%>">

<%
try
{
while(true)
{
name=rs.getString(1);
qty=rs.getString(2);
dt=rs.getDate(3).toString();
email=rs.getString(4);
contact=rs.getString(5);
rs.next();
if(rs==null)
break;
%>
<tr>
<td width="22%" background="19.gif">&nbsp;<%=name%></td>
<td width="13%" background="19.gif">&nbsp;<%=qty%></td>
<td width="19%" background="19.gif">&nbsp;<%=dt%></td>
<td width="30%" background="19.gif">&nbsp;<%=email%></td>
<td width="16%" background="19.gif">&nbsp;<%=contact%></td>
</tr>
<%
}
}catch(Exception e)
{
System.out.println("The State is Invalid ----> "+e);
}
%>
<tr>
<td colspan="5" background="19.gif">
<p align="center"><input type=button name=back value=Back
onClick="func(this.form)" >
</td>
</tr>
Page 161 of 292
</form>
</table>
<br>
<hr color=red>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPolicy.htm">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>

</body>

</html>

--------------------------------------------------------------------------------------------------------------------------
CHANGE SHARES RATES
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String memid,name,qtyIssu,qtyBal,Orate,Nrate,pwd;
Connection conn=null;
PreparedStatement stmt=null;
ResultSet rs=null;
%>
<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>ShareBazar</title>
</head>

<%
memid=request.getParameter("memid");
pwd=request.getParameter("password");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

Page 162 of 292


conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.prepareStatement("select comName,qty,balance,rate from
ShareMaster where memID=?");
stmt.setString(1,memid);
rs=stmt.executeQuery();
rs.next();
name=rs.getString(1);
qtyIssu=rs.getString(2);
qtyBal=rs.getString(3);
Orate=rs.getString(4);
}catch(Exception e)
{
System.out.println("Error in Changing Rate----> "+e);
}
%>

<script language="javascript">
function setValue()
{
document.forms[0].comName.value="<%=name%>";
document.forms[0].qtyIss.value="<%=qtyIssu%>";
document.forms[0].balance.value="<%=qtyBal%>";
document.forms[0].oldRate.value="<%=Orate%>";
}

function isEmpty(str)
{
if(str=="" || str==" " || str==null)
{
return true;
}
else
return false;
}

function validRate(rate)
{
if(isNaN(rate) || rate <= 0)
return false
else
return true
}

function ValidPassword(pword1,pword2)
{
Page 163 of 292
var i;
if(pword1.length!=pword2.length)
return false;
for(i=0 ; i < pword1.length ; i++)
{
if(pword1.charAt(i)!=pword2.charAt(i))
return false;
}
return true;
}

function allFill()
{
nRate=document.forms[0].newRate.value;
pswd=document.forms[0].pass.value;
pwod="<%=pwd%>";
if(isEmpty(nRate))
{
alert("Please enter New Rate per Share Issued.");
document.forms[0].newRate.focus()
return false
}
else if(!validRate(nRate))
{
alert("Invalid Rate per Share. Please Re-enter.")
document.forms[0].newRate.value=""
document.forms[0].newRate.focus()
return false
}
else if(isEmpty(pswd))
{
alert("Please enter your Transaction Password.");
document.forms[0].pass.value="";
document.forms[0].pass.focus()
return false
}
else if(!ValidPassword(pswd,pwod))
{
alert("Password does not match. Please Re-enter.");
document.forms[0].pass.value="";
document.forms[0].pass.focus();
return false;
}
else
Page 164 of 292
return true

function func()
{
if(allFill())
{
if(confirm("Are you sure you want to make the changes
permanent ?"))
return true
else
return false
}
return false
}
</script>
<body background="19a.gif">

<table border="0" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFCC">
ShareBazar.com</font></i></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFCC">Gone
are the days...............to successful online share
investing</font></b></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellspacing="0" width="100%" id="AutoNumber3"
style="border-collapse: collapse" bordercolor="#111111"
cellpadding="0" height="277">
<form action="http://localhost:8080/examples/jsp/updateRate.jsp"
method="post">
Page 165 of 292
<input type=hidden name=login value="<
%=request.getParameter("login")%>">
<input type=hidden name=memid value="<
%=request.getParameter("memid")%>">
<input type=hidden name=password value="<
%=request.getParameter("password")%>">
<tr>
<td width="31%" bgcolor="#FF0000" height="26">&nbsp;</td>
<td width="44%" colspan="2" bgcolor="#FF0000" height="26">
<p align="center"><b><font size="5" color="#FFFFE1">Change
Rate/Share</font></b></td>
<td width="25%" bgcolor="#FF0000" height="26">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="19">&nbsp;</td>
<td width="23%" height="19">&nbsp;</td>
<td width="21%" height="19">&nbsp;</td>
<td width="25%" height="19">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="29">&nbsp;</td>
<td width="23%" height="29"><font size="4">Company
Name</font></td>
<td width="21%" height="29">&nbsp;<input type=text
name=comName disabled value="" size="20"></td>
<td width="25%" height="29">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="29">&nbsp;</td>
<td width="23%" height="29"><font size="4">No. of Shares
Issued</font></td>
<td width="21%" height="29">&nbsp;<input type=text name=qtyIss
disabled value="" size="10"></td>
<td width="25%" height="29">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="29">&nbsp;</td>
<td width="23%" height="29"><font size="4">Balance
Shares</font></td>
<td width="21%" height="29">&nbsp;<input type=text
name=balance disabled value="" size="10"></td>
<td width="25%" height="29">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="29">&nbsp;</td>
Page 166 of 292
<td width="23%" height="29"><font size="4">Old
Rate/Share</font></td>
<td width="21%" height="29">&nbsp;<input type=text
name=oldRate disabled value="" size="10"></td>
<td width="25%" height="29">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="29">&nbsp;</td>
<td width="23%" height="29"><font size="4">New
Rate/Share</font></td>
<td width="21%" height="29">&nbsp;<input type=text
name=newRate value="" size="10" tabindex="1"></td>
<td width="25%" height="29">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="29">&nbsp;</td>
<td width="23%" height="29"><font size="4">Transaction
Password</font></td>
<td width="21%" height="29">&nbsp;<input type=password
name=pass value="" size="15" tabindex="2"></td>
<td width="25%" height="29">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="19">&nbsp;</td>
<td width="23%" height="19">&nbsp;</td>
<td width="21%" height="19">&nbsp;</td>
<td width="25%" height="19">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="34">&nbsp;</td>
<td width="44%" height="34" colspan="2">
<p align="center"><input type="submit" name=submit value=Submit
tabindex="3" onClick="return func()" >&nbsp;</td>
<td width="25%" height="34">&nbsp;</td>
</tr>
</form>
</table>

<hr color=red>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPolicy.htm">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
Page 167 of 292
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>

</body>
<script language="javascript">
setValue();
document.forms[0].newRate.focus();
</script>

</html>

--------------------------------------------------------------------------------------------------------------------------
DELETE SHARES
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String
memiid,password1,loginname,comName,qty,rate,type,balance;
int num=0;
Connection conn=null;
Statement stmt=null;
ResultSet rs=null;
%>
<%
loginname=request.getParameter("loginname");
memiid=request.getParameter("memid");
password1=request.getParameter("password");
System.out.println(loginname);
System.out.println(memiid);
System.out.println(password1);
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");

stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet
.CONCUR_READ_ONLY);
rs=stmt.executeQuery("select comName,qty,balance,rate,type from
ShareMaster where memID='"+memiid+"'");
while(rs.next())
{
num++;
}
if(num >= 1)

Page 168 of 292


{
rs.beforeFirst();
rs.next();
comName=rs.getString(1);
qty=rs.getString(2);
balance=rs.getString(3);
rate=rs.getString(4);
type=rs.getString(5);
}
else
{
%>
<jsp:forward page="ErrorPage.jsp" />
<%
}
}catch(Exception e)
{
System.out.println("The Exception is ----> HERE dear "+e);
}
%>
<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>ShareBazar</title>
</head>
<script language="javascript">
function setValue()
{
document.forms[0].companyName.value = "<%=comName%>"
document.forms[0].memid.value = "<%=memiid%>"
document.forms[0].issuedSH.value = "<%=qty%>"
document.forms[0].remainSH.value = "<%=balance%>"
document.forms[0].rateSH.value = "<%=rate%>"
document.forms[0].typeSH.value = "<%=type%>"
}

function isEmpty(str)
{
if(str=="" || str==null || str==" ")
return true
Page 169 of 292
else
return false
}

function validPassword(word1,word2)
{
var i;
if(word1.length!=word2.length)
return false;
for(i=0 ; i < word1.length ; i++)
{
if(word1.charAt(i)!=word2.charAt(i))
return false;
}
return true;
}

function possibleQty(qty,availQTY)
{
if(isNaN(qty) || qty <= 0 || qty.charAt(0)=="0")
{
alert("Invalid Numbers. Please Re-enter.")
return false
}
else if(qty.length > availQTY.length)
{
alert("You can'nt delete more than remaining Shares. Please
Re-enter.");
return false
}
else
{
for(i=0;i<qty.length;i++)
{
if(qty.charAt(i)==".")
{
alert("Invalid no. of Shares. Please Re-enter.")
return false
}
}
if((qty > availQTY) && (qty.length >= availQTY.length))
{
alert("You can'nt delete more than remaining Shares.
Please Re-enter.");
return false
Page 170 of 292
}
else
return true
}
}

function allRight()
{
balQty=document.forms[0].remainSH.value
delQty=document.forms[0].deleteSH.value
passWord=document.forms[0].password.value
Pword = "<%=password1%>"
if(isEmpty(delQty))
{
alert("Please enter No. of Shares to Delete.");
document.forms[0].deleteSH.focus();
return false;
}
else if(!possibleQty(delQty,balQty))
{
document.forms[0].deleteSH.value="";
document.forms[0].deleteSH.focus();
return false;
}
else if(isEmpty(passWord))
{
alert("Please enter your Transaction Password.");
document.forms[0].password.focus();
return false;
}
else if(!validPassword(passWord,Pword))
{
alert("Invalid Password. Please Re-enter.")
document.forms[0].password.value="";
document.forms[0].password.focus();
return false;
}
else
return true
}

function check()
{
if(allRight())
Page 171 of 292
{
if(confirm("Are you sure about the deletion of the Shares."))
{
return true;
}
else
return false;
}
}
</script>
<body background="19a.gif">

<table border="0" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFCC">
ShareBazar.com</font></i></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFCC">Gone
are the days................to successful online investing</font></b></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3" height="310">
<form action="http://localhost:8080/examples/jsp/DelShare.jsp"
method="post">
<input type="hidden" name="loginname" value="<
%="loginname"%>">
<input type="hidden" name="memid" value="<%=memiid%>">
<input type="hidden" name="password" value="<
%=password1%>">
<tr>
<td width="100%" colspan="4" bgcolor="#FF0000" height="26">

Page 172 of 292


<p align="center"><b><font size="5" color="#FFFFCC">Delete Old
Shares</font></b></td>
</tr>
<tr>
<td width="31%" height="37" background="19.gif">&nbsp;</td>
<td width="21%" align="left" height="37" background="19.gif"><font
size="4">
Company Name :</font></td>
<td width="20%" height="37" background="19.gif">&nbsp;<input
type=text name=companyName disabled value="" size="20"></td>
<td width="28%" height="37" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="37" background="19.gif">&nbsp;</td>
<td width="21%" align="left" height="37" background="19.gif"><font
size="4">
Membership ID :</font></td>
<td width="20%" height="37" background="19.gif">&nbsp;<input
type=text name=memid disabled value="" size="20"></td>
<td width="28%" height="37" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="38" background="19.gif">&nbsp;</td>
<td width="21%" align="left" height="38" background="19.gif"><font
size="4">
No. of Shares Issued :</font></td>
<td width="20%" height="38" background="19.gif">&nbsp;<input
type=text name=issuedSH disabled value="" size="10"></td>
<td width="28%" height="38" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="38" background="19.gif">&nbsp;</td>
<td width="21%" align="left" height="38" background="19.gif"><font
size="4">
Type of Shares</font></td>
<td width="20%" height="38" background="19.gif">&nbsp;<input
type=text name=typeSH disabled value="" size="10"></td>
<td width="28%" height="38" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="38" background="19.gif">&nbsp;</td>
<td width="21%" align="left" height="38" background="19.gif"><font
size="4">
Remaining Shares :</font></td>

Page 173 of 292


<td width="20%" height="38" background="19.gif">&nbsp;<input
type=text name=remainSH disabled value="" size="10"></td>
<td width="28%" height="38" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="38" background="19.gif">&nbsp;</td>
<td width="21%" align="left" height="38" background="19.gif"><font
size="4">
Current Rate/Share :</font></td>
<td width="20%" height="38" background="19.gif">&nbsp;<input
type=text name=rateSH disabled value="" size="10"></td>
<td width="28%" height="38" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="38" background="19.gif">&nbsp;</td>
<td width="21%" align="left" height="38" background="19.gif"><font
size="4">
No. of Shares to Delete :</font></td>
<td width="20%" height="38" background="19.gif">&nbsp;<input
type=text name=deleteSH value="" size="10" tabindex="1"></td>
<td width="28%" height="38" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="38" background="19.gif">&nbsp;</td>
<td width="21%" align="left" height="38" background="19.gif"><font
size="4">
Transaction Password :</font></td>
<td width="20%" height="38" background="19.gif">&nbsp;<input
type=password name=password value="" size="15"
tabindex="2"></td>
<td width="28%" height="38" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="18" background="19.gif">&nbsp;</td>
<td width="21%" height="18" background="19.gif">&nbsp;</td>
<td width="20%" height="18" background="19.gif">&nbsp;</td>
<td width="28%" height="18" background="19.gif">&nbsp;</td>
</tr>
<tr>
<td width="31%" height="38" background="19.gif">&nbsp;</td>
<td width="21%" height="38"
background="19.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

Page 174 of 292


<input type=submit name=submit value="Submit" onClick="return
check()" tabindex="3"></td>
<td width="20%" height="38" background="19.gif">&nbsp;&nbsp;
<input type=reset name=reset value="Reset" tabindex="4"></td>
<td width="28%" height="38" background="19.gif">&nbsp;</td>
</tr>
</form>
</table>

<hr size=2 color=red>


<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="form1.html">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>

</body>
<script language="javascript">
document.forms[0].deleteSH.focus();
setValue();
</script>
</html>

--------------------------------------------------------------------------------------------------------------------------
DELETE SHARES JSP
--------------------------------------------------------------------------------------------------------------------------

<%@ page errorPage = "ErrorPage.jsp" language="java"


import="java.sql.*" %>
<%
Connection conn=null;
PreparedStatement stmt;
String loginname,memid,password,qty,remainshare,deleteshare;
int i=0;
try
{
loginname=request.getParameter("loginname");
memid=request.getParameter("memid");
password=request.getParameter("password");
qty=request.getParameter("issuedSH");
remainshare=request.getParameter("remainSH");

Page 175 of 292


deleteshare=request.getParameter("deleteSH");
%>
<form name="ff" action="index3.jsp" method="post">
<input type="hidden" name="loginname" value="<%=loginname
%>">
<input type="hidden" name="memid" value="<%=memid%>">
<input type="hidden" name="password" value="<%=password
%>">
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.prepareStatement("update ShareMaster set qty=?,balance=?
where memID=?");
stmt.setString(1,String.valueOf(Integer.parseInt(qty)-
Integer.parseInt(deleteshare)) );
stmt.setString(2,String.valueOf(Integer.parseInt(remainshare)-
Integer.parseInt(deleteshare)) );
stmt.setString(3,memid);
stmt.executeQuery();
}catch(Exception e)
{
System.out.println("Unable to delete ----> "+e);
}
%>
<script language="javascript">
document.forms[0].submit();
</script>

--------------------------------------------------------------------------------------------------------------------------
EDIT COMPANY PROFILE
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*,java.util.StringTokenizer" %>


<%! String
name,add,city,state,country,pin,phone,fax,email,conperson,logname,pwor
d,memid,combackground,temp,address[];
Connection conn;
PreparedStatement stmt;
%>
<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">

Page 176 of 292


<meta http-equiv="Content-Type" content="text/html; charset=windows-
1252">
<title>ShareBazar</title>
</head>

<%
try{
temp=request.getParameter("memid");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.prepareStatement("select * from CompanyMaster where
memID=?");
stmt.setString(1,temp);
ResultSet rs=stmt.executeQuery();
rs.next();
name=rs.getString(1);
add=rs.getString(2);
city=rs.getString(3);
state=rs.getString(4);
country=rs.getString(5);
pin=rs.getString(6);
phone=rs.getString(7);
fax=rs.getString(8);
email=rs.getString(9);
conperson=rs.getString(10);
logname=rs.getString(11);
pword=rs.getString(12);
combackground=rs.getString(13);
memid=rs.getString(14);
StringTokenizer addr=new StringTokenizer(add,";");
address = new String[3];
address[0]=addr.nextToken();
if(addr.hasMoreTokens())
address[1]=addr.nextToken();
else
address[1]="";
if(addr.hasMoreTokens())
address[2]=addr.nextToken();
else
address[2]="";
}catch(Exception e)
{
System.out.println("Exception when Editing -----> "+e);
}
%>
Page 177 of 292
<script language="JavaScript">
function setvalue()
{
document.forms[0].nameCom.value="<%=name%>";
document.forms[0].add1.value="<%=address[0]%>";
document.forms[0].add2.value="<%=address[1]%>";
document.forms[0].add3.value="<%=address[2]%>";
document.forms[0].city.value="<%=city%>";
document.forms[0].state.value="<%=state%>";
document.forms[0].country.value="<%=country%>";
document.forms[0].pincode.value="<%=pin%>";
document.forms[0].phone.value="<%=phone%>";
document.forms[0].fax.value="<%=fax%>";
document.forms[0].email.value="<%=email%>";
document.forms[0].contactperson.value="<%=conperson%>";
document.forms[0].loginname.value="<%=logname%>";
document.forms[0].Password.value="<%=pword%>";
document.forms[0].memId.value="<%=memid%>";
document.forms[0].comDescription.value="<%=combackground%>";
}

function isEmpty(str)
{
if(str=="" || str==" ")
{
return true;
}
else
return false;
}

function isAlpha(str)
{
var flag=0;
for(i=0; i<str.length; i++)
{
if( ((str.charAt(i) >='a')&& (str.charAt(i) <='z')) ||
((str.charAt(i) >='A')&& (str.charAt(i) <='Z')) || (str.charAt(i) == " "))
{
flag=1;
}
else
{
Page 178 of 292
flag=0;
break;
}
}
if(flag)
return true;
else
return false;
}

function isValidName(str)
{
var flag=0;
for(i=0; i<str.length; i++)
{
if( ((str.charAt(i) >='a')&& (str.charAt(i) <='z')) ||
((str.charAt(i) >='A')&& (str.charAt(i) <='Z')) || (str.charAt(i) == " " ||
str.charAt(i) == "&" || str.charAt(i) == "."))
{
flag=1;
}
else
{
flag=0;
break;
}
}
if(flag)
return true;
else
return false;
}

function isAlphaNumeric(str1)
{
len=str1.length;
for(i=0; i<len; i++)
{
if( ((str1.charAt(i) >='a') && (str1.charAt(i) <='z')) ||
((str1.charAt(i) >='A') && (str1.charAt(i) <='Z')) || ((str1.charAt(i) >=0)
&& (str1.charAt(i) <=9)) )
{
return true;
}
Page 179 of 292
else
{
return false;
break;
}
}
}

function isPosInteger(num)
{
if(!(isNaN(num)))
{
if(num>0)
return true;
else
return false;
}
else
{
return false;
}
}

function isValidLogin(str)
{
var name = str.toString();
var n=name.length;
var i;
for(i=0; i<n; i++)
{
var ch = name.charAt(i);
if((!isAlphaNumeric(ch) && (ch != "&") && (ch != ".")) )
{
return false;
}
}
return true;
}

function validPin(pin)
{
len=pin.length
if(len==6)
return true
else
Page 180 of 292
return false
}

function validPhone(phone)
{
len=phone.length
if(len==7 || len==8)
return true
else
return false
}

function validFax(fax)
{
len=fax.length
if(len==10)
return true
else
return false
}

function validateAll()
{
var name=document.forms[0].nameCom.value;
var add=document.forms[0].add1.value;
var city=document.forms[0].city.value;
var state=document.forms[0].state.value;
var country=document.forms[0].country.value;
var pincode=document.forms[0].pincode.value;
var phoneoff=document.forms[0].phone.value;
var fax=document.forms[0].fax.value;
var email=document.forms[0].email.value;
var conPerson=document.forms[0].contactperson.value;
var logname=document.forms[0].loginname.value;
var pword=document.forms[0].password.value;
var reg = new RegExp("^[A-Za-z0-9_]{1,}[.]?[A-Za-z0-9_]{1,}@{1}
([A-Za-z0-9_]+[.]{1})+[A-Za-z0-9_]{1,}$");

if(isEmpty(name))
{
alert("Please type Company's name");
document.forms[0].nameCom.focus();
return false;
}
else if(!isValidName(name))
Page 181 of 292
{
alert("Company Name contains invalid characters. Please re-
enter.");
document.forms[0].nameCom.focus();
return false;
}

else if(isEmpty(add))
{
alert("The address is compulsory.");
document.forms[0].add1.focus();
return false;
}

else if(isEmpty(city))
{
alert("Please type the name of the city.");
document.forms[0].city.focus();
return false;
}
else if(!isAlpha(city))
{
alert("City name contains invalid characters. Please re-
enter.");
document.forms[0].city.focus();
return false;
}

else if(isEmpty(state))
{
alert("Please type the name of the state.");
document.forms[0].state.focus();
return false;
}
else if(!isAlpha(state))
{
alert("State name contains invalid characters. Please re-
enter.");
document.forms[0].state.focus();
return false;
}

else if(isEmpty(country))
{
alert("Please type the name of the country.");
Page 182 of 292
document.forms[0].country.focus();
return false;
}
else if(!isAlpha(country))
{
alert("Country name contains invalid characters. Please re-
enter.");
document.forms[0].country.focus();
return false;
}

else if(isEmpty(pincode))
{
alert("Please type the Pincode.");
document.forms[0].pincode.focus();
return false;
}
else if(!isPosInteger(pincode))
{
alert("Invalid Pincode.Please type a valid Pincode.");
document.forms[0].pincode.value="";
document.forms[0].pincode.focus();
return false;
}
else if(!validPin(pincode))
{
alert("Please type a valid 6 digit pin code.");
document.forms[0].pincode.value="";
document.forms[0].pincode.focus();
return false;
}
else if(isEmpty(phoneoff))
{
alert("Please enter your contact numbers.");
document.forms[0].phone.value="";
document.forms[0].phone.focus();
return false;
}
else if(!isPosInteger(phoneoff))
{
alert("Invalid Phone number. Please re-enter.");
document.forms[0].phone.value="";
document.forms[0].phone.focus();
return false;
}
Page 183 of 292
else if(!validPhone(phoneoff))
{
alert("Invalid Phone number.Please enter 7-8 digit number.");
document.forms[0].phone.value="";
document.forms[0].phone.focus();
return false;
}
else if(!isEmpty(fax) && !isPosInteger(fax))
{
alert("Invalid fax number. Please re-enter.");
document.forms[0].fax.value=""
document.forms[0].fax.focus();
return false;
}
else if(!isEmpty(fax) && !validFax(fax))
{
alert("Invalid Fax number.Please enter 10 digit valid number")
document.forms[0].fax.value=""
document.forms[0].fax.focus()
return false
}
else if(isEmpty(email))
{
alert("Please type your e-mail address.");
document.forms[0].email.focus();
return false;
}
else if(!reg.test(email))
{
alert("Invalid email address. Please re-enter.");
document.forms[0].email.focus();
return false;
}
else if(isEmpty(conPerson))
{
alert("Please enter Name of the authorized Person.");
document.forms[0].contactperson.value=""
document.forms[0].contactperson.focus();
return false;
}
else if(!isAlpha(conPerson))
{
alert("Invalid Name. Please re-enter.");
document.forms[0].contactperson.value=""
document.forms[0].contactperson.focus();
Page 184 of 292
return false;
}
else if(isEmpty(logname))
{
alert("Please type your Login Name.");
document.forms[0].loginname.focus();
return false;
}
else if(isEmpty(pword))
{
alert("Please type your password.");
document.forms[0].password.focus();
return false;
}
else if(!isValidLogin(logname))
{
alert("Invalid login name. Login name can contain letters,
numbers and underscore (_) only.");
document.forms[0].loginname.value=" ";
document.forms[0].loginname.focus();
return false;
}else
return true;
}

function func_sub(frmEdit)
{
if(validateAll())
{
if(confirm("Are you sure to make changes permanently ?"))
{
frmEdit.action="companyEdit.jsp";
frmEdit.method="Post";
frmEdit.submit();
}
else
{
frmEdit.action="index3.jsp";
frmEdit.method="Post";
frmEdit.submit();
}
}
}
</script>
<body bgcolor=lightyellow background="19.gif">
Page 185 of 292
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><font size="7"
color="#FFFFE0">
<span style="background-color: #FF0000; font-
style:italic">ShareBazar.com</span></font></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber4">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font color="#FFFFE0"
size="2">Gone are the days.....................to successful online share
trading</font>
</b>
</td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center"><b><font size="5" color="#FFFFE0">Company
Edit Profile</font></b></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000">
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="2" style="border-collapse: collapse"
bordercolor="#111111" width="100%" id="AutoNumber3"
height="65%">
<form name="frmRegCom">
Page 186 of 292
<input type="hidden" name="login" value="<
%=request.getParameter("login")%>">
<input type="hidden" name="memid" value="<
%=request.getParameter("memid")%>">
<input type="hidden" name="password" value="<
%=request.getParameter("password")%>">
<tr>
<td width="13%" height="10%"><font
size="4">&nbsp;Name</font></td>
<td width="33%" height="31" colspan="3">&nbsp;<input type=text
name=nameCom disabled value="" size=30 tabindex="1"><font
color="#000080"> *</font></td>
<td width="16%" height="31"><font
size="4">&nbsp;Fax&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></td>
<td width="3%" height="31" ><input name=fax size=15 style="float:
left" tabindex="10"></td>
<td width="39%" height="65%" rowspan="11">&nbsp;<img
src="13.jpg" width="96%" height="103%" vspace="1"
border="0"></td>
</tr>
<tr>
<td width="13%" height="29"><font
size="4">&nbsp;Address</font></td>
<td width="33%" height="29" colspan="3">&nbsp;<input type=text
name=add1 value="" size=30 tabindex="2"><font color="#000080"> *
</font> </td>
<td width="16%" height="29"><font size="4">&nbsp;E-
mail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp; </font></td>
<td width="7%" height="29" align="right"><input name=email
size=15 tabindex="11" style="float: left"><font
color="#000080">*</font></td>
</tr>
<tr>
<td width="13%" height="30">&nbsp;</td>
<td width="33%" height="30" colspan="3">&nbsp;<input type=text
name=add2 value="" size=30 tabindex="3"></td>
<td width="11%" height="29"><font size="4">&nbsp;Contact
Person</font></td>
<td width="4%" height="29" align="center"><input
name=contactperson size=15 style="float: left" tabindex="12"><font
color="#000080">*</font></td>
</tr>
<tr>
Page 187 of 292
<td width="13%" height="29">&nbsp;</td>
<td width="33%" height="10%" colspan="3">&nbsp;<input type=text
name=add3 value="" size=30 tabindex="4"></td>
<td width="8%" height="29" align="left"><font
size="4">&nbsp;Login Name</font></td>
<td width="23%" height="29" align="left">
<input type=text name=loginname value="" size=15
tabindex="13"><font color="#000080"> *</font></td>
</tr>
<tr>
<td width="13%" height="10%"><font
size="4">&nbsp;City</font></td>
<td width="33%" height="10%" colspan="3" >&nbsp;<input
name=city value="" size=15 tabindex="5">
<font color="#000080">*</font>&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;</td>
<td width="7%" height="10%">&nbsp;<font
size="4">Password</font></td>
<td width="20%" height="10%">
<input type=password name=Password value="" size=15
tabindex="14"><font color="#000080"> *</font></td>
</tr>
<tr>
<td width="13%" height="32"><font
size="4">&nbsp;State</font></td>
<td width="22%" height="32" colspan="3">&nbsp;<input
name=state value="" size=15 tabindex="6">
<font color="#000080">*</font></td>
<td width="14%" height="29" align="left"><font size="2"
color="#008000">
&nbsp; </font><b>Membership ID</b></td>
<td width="13%" height="29" align="left">
<input type=text name=memId disabled value="" size=15></td>
</tr>
<tr>
<td width="13%" height="30"><font
size="4">&nbsp;Country</font></td>
<td width="22%" height="30" colspan="2">&nbsp;<input type=text
name=country value="" size=15 tabindex="7"><font color="#000080">
*</font></td>
<td width="39%" height="10" colspan="3" valign="bottom"><font
size="2" color="#008000">&nbsp;&nbsp;&nbsp;&nbsp;
Company's&nbsp; Background (Brief write-up)</font></td>
</tr>
<tr>
Page 188 of 292
<td width="13%" height="24"><font size="4">&nbsp;Pin
code</font></td>
<td width="22%" height="24" colspan="2">&nbsp;<input type=text
name=pincode value="" size=15 tabindex="8"><font
color="#000080"> *</font></td>
<td width="39%" height="49" colspan="3" rowspan=3
valign="bottom">&nbsp;&nbsp;&nbsp; <textarea rows="5" cols="35"
name="comDescription" disabled tabindex="16">Here you can give a
brief description of your company </textarea></td>
</tr>
<tr>
<td width="13%" height="35"><font
size="4">&nbsp;Phone&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></td>
<td width="22%" height="35" colspan="2">&nbsp;<input
name=phone size=15 tabindex="9">
<font color="#000080">*</font></td>
</tr>
<tr>
<td width="35%" height="1" colspan="3" valign="bottom"
align="center">
<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font size="2" color="#008000">(Fields marked with </font>
<font size="2" color="#000080">*</font><font size="2"
color="#008000"> are
mandatory)</font></td>
</tr>
<tr>
<td width="4%" height="1" colspan="2" align="center">
<input type="button" name="subButton" value="Submit" style="float:
right" onClick="func_sub(frmRegCom)" tabindex="17">&nbsp;</td>
<td width="31%" height="1">&nbsp;<input type=reset
name=resetButton value=Reset tabindex="18"></td>
<td width="27%" height="29" align="left" colspan="3"></td>
</tr>
</table>
<hr color=red>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tbody>
<tr>
<td align=left valign=center height=35>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPolicy.htm">Privacy Policy</a>
Page 189 of 292
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>
</form>
</table>
<p align="center">&nbsp;</p>
</body>
<script language="javascript">
setvalue();
</script>
</html>

--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String
add,city,state,country,pin,phoneoff,fax,email,conPerson,logname,pword,m
emid;
Connection conn;
PreparedStatement pstmt;
%>
<%
try{
add=(request.getParameter("add1")+";"+request.getParameter("add2")
+";"+request.getParameter("add3"));
city=request.getParameter("city");
state=request.getParameter("state");
country=request.getParameter("country");
pin=request.getParameter("pincode");
phoneoff=request.getParameter("phone");
fax=request.getParameter("fax");
email=request.getParameter("email");
conPerson=request.getParameter("contactperson");
logname=request.getParameter("loginname");
pword=request.getParameter("password");
memid=request.getParameter("memid");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
pstmt=conn.prepareStatement("update CompanyMaster set
address=?,city=?,state=?,country=?,pincode=?,phone=?,fax=?,email=?,
personcon=?,logname=?,pwd=? where memID=? ");
pstmt.setString(1,add);
pstmt.setString(2,city);

Page 190 of 292


pstmt.setString(3,state);
pstmt.setString(4,country);
pstmt.setString(5,pin);
pstmt.setString(6,phoneoff);
pstmt.setString(7,fax);
pstmt.setString(8,email);
pstmt.setString(9,conPerson);
pstmt.setString(10,logname);
pstmt.setString(11,pword);
pstmt.setString(12,memid);
pstmt.executeUpdate();
conn.close();
}catch(Exception e)
{
System.out.println(e);
}
%>
<jsp:forward page="index3.jsp" />

--------------------------------------------------------------------------------------------------------------------------
COMPANY REGISTRATION FORM
--------------------------------------------------------------------------------------------------------------------------

<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>ShareBazar</title>
</head>
<script language="JavaScript">

function isEmpty(str)
{
if(str=="" || str==" ")
{
return true;
}
else
return false;
}

Page 191 of 292


function isAlpha(str)
{
var flag=0;
for(i=0; i<str.length; i++)
{
if( ((str.charAt(i) >='a')&& (str.charAt(i) <='z')) ||
((str.charAt(i) >='A')&& (str.charAt(i) <='Z')) || (str.charAt(i) == " "))
{
flag=1;
}
else
{
flag=0;
break;
}
}
if(flag)
return true;
else
return false;
}

function isValidName(str)
{
var flag=0;
for(i=0; i<str.length; i++)
{
if( ((str.charAt(i) >='a')&& (str.charAt(i) <='z')) ||
((str.charAt(i) >='A')&& (str.charAt(i) <='Z')) || (str.charAt(i) == " " ||
str.charAt(i) == "&" || str.charAt(i) == "."))
{
flag=1;
}
else
{
flag=0;
break;
}
}
if(flag)
return true;
else
return false;
}

Page 192 of 292


function isAlphaNumeric(str1)
{
len=str1.length;
for(i=0; i<len; i++)
{
if( ((str1.charAt(i) >='a') && (str1.charAt(i) <='z')) ||
((str1.charAt(i) >='A') && (str1.charAt(i) <='Z')) || ((str1.charAt(i) >=0)
&& (str1.charAt(i) <=9)) )
{
return true;
}
else
{
return false;
break;
}
}
}

function isPosInteger(num)
{
if(!(isNaN(num)))
{
if(num>0)
return true;
else
return false;
}
else
{
return false;
}
}

function isValidLogin(str)
{
var name = str.toString();
var n=name.length;
var i;
for(i=0; i<n; i++)
{
var ch = name.charAt(i);
if((!isAlphaNumeric(ch) && (ch != "&") && (ch != ".")) )
{
Page 193 of 292
return false;
}
}
return true;
}

function validPin(pin)
{
len=pin.length
if(len==6)
return true
else
return false
}

function validPhone(phone)
{
len=phone.length
if(len==7 || len==8)
return true
else
return false
}

function validFax(fax)
{
len=fax.length
if(len==10)
return true
else
return false
}

function isValidPassword(pword,repword)
{
var i;
var len1=0;
var len2=0
var check=0;
len1=pword.length;
len2=repword.length;
if(len1>len2)
check=len1;
else
check=len2;
Page 194 of 292
for(i=0 ; i<check ; i++)
{
if(pword.charAt(i)!=repword.charAt(i))
return false;
}
return true;
}

function validateAll()
{
var name=document.forms[0].nameCom.value;
var add=document.forms[0].add1.value;
var city=document.forms[0].city.value;
var state=document.forms[0].state.value;
var country=document.forms[0].country.value;
var pincode=document.forms[0].pincode.value;
var phoneoff=document.forms[0].phone.value;
var fax=document.forms[0].fax.value;
var email=document.forms[0].email.value;
var conPerson=document.forms[0].contactperson.value;
var logname=document.forms[0].loginname.value;
var pword=document.forms[0].password.value;
var repword=document.forms[0].retypepassword.value;
var reg = new RegExp("^[A-Za-z0-9_]{1,}[.]?[A-Za-z0-9_]{1,}@{1}
([A-Za-z0-9_]+[.]{1})+[A-Za-z0-9_]{1,}$");

if(isEmpty(name))
{
alert("Please type Company's name");
document.forms[0].nameCom.focus();
return false;
}
else if(!isValidName(name))
{
alert("Company Name contains invalid characters. Please re-
enter.");
document.forms[0].nameCom.focus();
return false;
}

else if(isEmpty(add))
{
alert("The address is compulsory.");
document.forms[0].add1.focus();
return false;
Page 195 of 292
}

else if(isEmpty(city))
{
alert("Please type the name of the city.");
document.forms[0].city.focus();
return false;
}
else if(!isAlpha(city))
{
alert("City name contains invalid characters. Please re-
enter.");
document.forms[0].city.focus();
return false;
}

else if(isEmpty(state))
{
alert("Please type the name of the state.");
document.forms[0].state.focus();
return false;
}
else if(!isAlpha(state))
{
alert("State name contains invalid characters. Please re-
enter.");
document.forms[0].state.focus();
return false;
}

else if(isEmpty(country))
{
alert("Please type the name of the country.");
document.forms[0].country.focus();
return false;
}
else if(!isAlpha(country))
{
alert("Country name contains invalid characters. Please re-
enter.");
document.forms[0].country.focus();
return false;
}

else if(isEmpty(pincode))
Page 196 of 292
{
alert("Please type the Pincode.");
document.forms[0].pincode.focus();
return false;
}
else if(!isPosInteger(pincode))
{
alert("Invalid Pincode.Please type a valid Pincode.");
document.forms[0].pincode.value="";
document.forms[0].pincode.focus();
return false;
}
else if(!validPin(pincode))
{
alert("Please type a valid 6 digit pin code.");
document.forms[0].pincode.value="";
document.forms[0].pincode.focus();
return false;
}
else if(isEmpty(phoneoff))
{
alert("Please enter your contact numbers.");
document.forms[0].phone.value="";
document.forms[0].phone.focus();
return false;
}
else if(!isPosInteger(phoneoff))
{
alert("Invalid Phone number. Please re-enter.");
document.forms[0].phone.value="";
document.forms[0].phone.focus();
return false;
}
else if(!validPhone(phoneoff))
{
alert("Invalid Phone number.Please enter 7-8 digit number.");
document.forms[0].phone.value="";
document.forms[0].phone.focus();
return false;
}
else if(!isEmpty(fax) && !isPosInteger(fax))
{
alert("Invalid fax number. Please re-enter.");
document.forms[0].fax.value=""
document.forms[0].fax.focus();
Page 197 of 292
return false;
}
else if(!isEmpty(fax) && !validFax(fax))
{
alert("Invalid Fax number.Please enter 10 digit valid number")
document.forms[0].fax.value=""
document.forms[0].fax.focus()
return false
}
else if(isEmpty(email))
{
alert("Please type your e-mail address.");
document.forms[0].email.focus();
return false;
}
else if(!reg.test(email))
{
alert("Invalid email address. Please re-enter.");
document.forms[0].email.focus();
return false;
}
else if(isEmpty(conPerson))
{
alert("Please enter Name of the authorized Person.");
document.forms[0].contactperson.value=""
document.forms[0].contactperson.focus();
return false;
}
else if(!isAlpha(conPerson))
{
alert("Invalid Name. Please re-enter.");
document.forms[0].contactperson.value=""
document.forms[0].contactperson.focus();
return false;
}
else if(isEmpty(logname))
{
alert("Please type your Login Name.");
document.forms[0].loginname.focus();
return false;
}
else if(isEmpty(pword))
{
alert("Please type your password.");
document.forms[0].password.focus();
Page 198 of 292
return false;
}
else if(isEmpty(repword))
{
alert("Please Re-type your password.");
document.forms[0].retypepassword.focus();
return false;
}
else if(!isValidLogin(logname))
{
alert("Invalid login name. Login name can contain letters,
numbers and underscore (_) only.");
document.forms[0].loginname.value=" ";
document.forms[0].loginname.focus();
return false;
}
else if(!isValidPassword(pword,repword))
{
alert("Password does not match");
document.forms[0].retypepassword.value="";
document.forms[0].retypepassword.focus();
return false;
}else
return true;
}

function func_sub(frm)
{
if(validateAll())
{
frm.action="shareDetail.jsp";
frm.method="post";
frm.submit();
}
}
</script>
<body bgcolor=lightyellow background="19.gif">

<table border="0" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><font size="7"
color="#FFFFE0">

Page 199 of 292


<span style="background-color: #FF0000; font-
style:italic">ShareBazar.com</span></font></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber4">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font color="#FFFFE0"
size="2">Gone are the days.....................to successful online share
trading</font>
</b>
</td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center"><b><font size="5" color="#FFFFE0">Company
Registration</font></b></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000">
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="2" style="border-collapse: collapse"
bordercolor="#111111" width="100%" id="AutoNumber3" height="1">
<form name="frmRegCom">
<tr>
<td width="13%" height="10%"><font
size="4">&nbsp;Name</font></td>
<td width="33%" height="31" colspan="3">&nbsp;<input type=text
name=nameCom value="" size=30 tabindex="1"><font
color="#000080"> *</font></td>

Page 200 of 292


<td width="16%" height="31"><font
size="4">&nbsp;Fax&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></td>
<td width="3%" height="31" ><input name=fax size=15 style="float:
left" tabindex="10"></td>
<td width="39%" height="65%" rowspan="11">&nbsp;<img
src="13.jpg" width="96%" height="103%" vspace="1"
border="0"></td>
</tr>
<tr>
<td width="13%" height="29"><font
size="4">&nbsp;Address</font></td>
<td width="33%" height="29" colspan="3">&nbsp;<input type=text
name=add1 value="" size=30 tabindex="2"><font color="#000080"> *
</font> </td>
<td width="16%" height="29"><font size="4">&nbsp;E-
mail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp; </font></td>
<td width="7%" height="29" align="right"><input name=email
size=15 tabindex="11" style="float: left"><font
color="#000080">*</font></td>
</tr>
<tr>
<td width="13%" height="30">&nbsp;</td>
<td width="33%" height="30" colspan="3">&nbsp;<input type=text
name=add2 value="" size=30 tabindex="3"></td>
<td width="11%" height="29"><font size="4">&nbsp;Contact
Person</font></td>
<td width="4%" height="29" align="center"><input
name=contactperson size=15 style="float: left" tabindex="12"><font
color="#000080">*</font></td>
</tr>
<tr>
<td width="13%" height="29">&nbsp;</td>
<td width="33%" height="10%" colspan="3">&nbsp;<input type=text
name=add3 value="" size=30 tabindex="4"></td>
<td width="8%" height="29" align="left"><font
size="4">&nbsp;Login Name</font></td>
<td width="23%" height="29" align="left">
<input type=text name=loginname value="" size=15
tabindex="13"><font color="#000080"> *</font></td>
</tr>
<tr>
<td width="13%" height="10%"><font
size="4">&nbsp;City</font></td>
Page 201 of 292
<td width="33%" height="10%" colspan="3" >&nbsp;<input
name=city value="" size=15 tabindex="5">
<font color="#000080">*</font>&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;</td>
<td width="7%" height="10%">&nbsp;<font
size="4">Password</font></td>
<td width="20%" height="10%">
<input type=password name=password value="" size=15
tabindex="14"><font color="#000080"> *</font></td>
</tr>
<tr>
<td width="13%" height="32"><font
size="4">&nbsp;State</font></td>
<td width="22%" height="32" colspan="3">&nbsp;<input
name=state value="" size=15 tabindex="6">
<font color="#000080">*</font></td>
<td width="5%" height="29" align="left"><font size="4">&nbsp;Re-
type Password</font></td>
<td width="22%" height="29" align="left">
<input type=password name=retypepassword value="" size=15
tabindex="15"><font color="#000080"> *</font></td>
</tr>
<tr>
<td width="13%" height="30"><font
size="4">&nbsp;Country</font></td>
<td width="22%" height="30" colspan="2">&nbsp;<input type=text
name=country value="" size=15 tabindex="7"><font color="#000080">
*</font></td>
<td width="39%" height="30" colspan="3" valign="bottom"><font
size="2" color="#008000">&nbsp;&nbsp;&nbsp;&nbsp;
Company's&nbsp; Background
(Brief write-up)</font></td>
</tr>
<tr>
<td width="13%" height="24"><font size="4">&nbsp;Pin
code</font></td>
<td width="22%" height="24" colspan="2">&nbsp;<input type=text
name=pincode value="" size=15 tabindex="8"><font
color="#000080"> *</font></td>
<td width="39%" height="109" colspan="3" rowspan="4"
valign="top">&nbsp;&nbsp;&nbsp;<textarea rows="5" cols="35"
name="comDescription" tabindex="16">Here you can give a brief
description of your company </textarea></td>
</tr>
<tr>
Page 202 of 292
<td width="13%" height="35"><font
size="4">&nbsp;Phone&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></td>
<td width="22%" height="35" colspan="2">&nbsp;<input
name=phone size=15 tabindex="9">
<font color="#000080">*</font></td>
</tr>
<tr>
<td width="35%" height="1" colspan="3" valign="bottom"
align="center">
<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font size="2" color="#008000">(Fields marked with </font>
<font size="2" color="#000080">*</font><font size="2"
color="#008000"> are
mandatory)</font></td>
</tr>
<tr>
<td width="4%" height="1" colspan="2" align="center">
<input type="button" name="subButton" value="Submit" style="float:
right" onClick="func_sub(frmRegCom)" tabindex="17">&nbsp;</td>
<td width="31%" height="1">&nbsp;<input type=reset
name=resetButton value=Reset tabindex="18"></td>
</tr>
</table>
<hr color=red>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tbody>
<tr>
<td align=left valign=center height=35>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPolicy.htm">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>
</form>
</table>
<p align="center">&nbsp;</p>
</body>
<script language="JavaScript">
document.forms[0].nameCom.focus();
</script>
</html>
Page 203 of 292
--------------------------------------------------------------------------------------------------------------------------
CUSTOMER REGISTRATION FORM
--------------------------------------------------------------------------------------------------------------------------

<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>ShareBazar</title>
</head>
<script language="JavaScript">
function init()
{
document.forms[0].initial.focus();
}

function isEmpty(str)
{
if(str=="" || str==null || str==" ")
{
return true;
}
else
return false;
}

function isAlpha(str1)
{
var flag=0;
len=str1.length;
for(i=0; i<len; i++)
{
if( ((str1.charAt(i) >='a')&& (str1.charAt(i) <='z')) ||
((str1.charAt(i) >='A')&& (str1.charAt(i) <='Z')) || (str1.charAt(i) == " "))
{
flag=1;
}

Page 204 of 292


else
{
flag=0;
break;
}
}
if(flag)
return true;
else
return false;
}

function isAlphaNumeric(str1)
{
len=str1.length;
for(i=0; i<len; i++)
{
if( ((str1.charAt(i) >='a') && (str1.charAt(i) <='z')) ||
((str1.charAt(i) >='A') && (str1.charAt(i) <='Z')) || ((str1.charAt(i) >=0)
&& (str1.charAt(i) <=9)) )
{
return true;
}
else
{
return false;
break;
}
}
}

function isPosInteger(num)
{
if(!(isNaN(num)))
{
if(num>0)
return true;
else
return false;
}
else
{
return false;
}
}
Page 205 of 292
function isValidLogin(str)
{
var name = str.toString();
var n=name.length;
var i;
for(i=0; i<n; i++)
{
var ch = name.charAt(i);
if((!isAlphaNumeric(ch) && (ch != "_")) )
{
return false;
}
}
return true;
}

function isValidPassword(pword,repword)
{
var i;
var len1=0;
var len2=0
var check=0;
len1=pword.length;
len2=repword.length;
if(len1>len2)
check=len1;
else
check=len2;
for(i=0 ; i < check ; i++)
{
if(pword.charAt(i)!=repword.charAt(i))
return false;
}
return true;
}

function possibleDOB(a,b,c)
{
d=parseInt(a)
m=parseInt(b)
y=parseInt(c)
currentYr = new Date().getFullYear()
if( ((d >= 1) && (d <=31)) && ((m >= 1) && (m <= 12)) && ((y >=
1900) && (y <= currentYr)) )
Page 206 of 292
return true
else
return false;
}

function validateAll()
{
var name=document.forms[0].name.value;
var add1=document.forms[0].add1.value;
var add2=document.forms[0].add2.value;
var add3=document.forms[0].add3.value;
var city=document.forms[0].city.value;
var state=document.forms[0].state.value;
var country=document.forms[0].country.value;
var pincode=document.forms[0].pincode.value;
var email=document.forms[0].email.value;
var phoneoff=document.forms[0].offphone.value;
var mobile=document.forms[0].Mphone.value;
var bday=document.forms[0].bday.value;
var bmonth=document.forms[0].bmonth.value;
var byear=document.forms[0].year.value;
var occupation=document.forms[0].occupation.value;
var incomegroup=document.forms[0].incomegroup.value;
var logname=document.forms[0].loginname.value;
var pword=document.forms[0].password.value;
var repword=document.forms[0].retypepassword.value;
var reg = new RegExp("^[A-Za-z0-9_]{1,}[.]?[A-Za-z0-9_]{1,}@{1}
([A-Za-z0-9_]+[.]{1})+[A-Za-z0-9_]{1,}$");

if(isEmpty(name))
{
alert("Please type your name");
document.forms[0].name.focus();
}
else if(!isAlpha(name))
{
alert("Name contains invalid characters. Please re-enter.");

document.forms[0].name.focus();
}

else if(isEmpty(add1))
{
alert("The address is compulsory.");
document.forms[0].add1.focus();
Page 207 of 292
return false;
}

else if(isEmpty(city))
{
alert("Please type the name of the city.");
document.forms[0].city.focus();
return false;
}
else if(!isAlpha(city))
{
alert("City name contains invalid characters. Please re-
enter.");
document.forms[0].city.focus();
return false;
}

else if(isEmpty(state))
{
alert("Please type the name of the state.");
document.forms[0].state.focus();
return false;
}
else if(!isAlpha(state))
{
alert("State name contains invalid characters. Please re-
enter.");
document.forms[0].state.focus();
return false;
}

else if(isEmpty(country))
{
alert("Please type the name of the country.");
document.forms[0].country.focus();
return false;
}
else if(!isAlpha(country))
{
alert("Country name contains invalid characters. Please re-
enter.");
document.forms[0].country.focus();
return false;
}

Page 208 of 292


else if(isEmpty(pincode))
{
alert("Please type the pin code.");
document.forms[0].pincode.focus();
return false;
}
else if(!isPosInteger(pincode))
{
alert("Please type a valid 6 digit pin code.");
document.forms[0].pincode.value=" ";
document.forms[0].pincode.focus();
return false;
}
else if(isEmpty(bday))
{
alert("Please enter Date of your birth");
document.forms[0].bday.focus();
return false;
}

else if(isEmpty(bmonth))
{
alert("Please enter Month of your birth");
document.forms[0].bmonth.focus();
return false;
}
else if(isEmpty(byear))
{
alert("Please enter Year of your birth");
document.forms[0].year.focus();
return false;
}
else if(!isEmpty(bday) && !isPosInteger(bday))
{
alert("Invalid characters in Date. Please re-enter.");
document.forms[0].bday.value=" ";
document.forms[0].bday.focus();
return false;
}
else if(!isEmpty(bmonth) && !isPosInteger(bmonth))
{
alert("Invalid characters in Month. Please re-enter.");
document.forms[0].bmonth.value=" ";
document.forms[0].bmonth.focus();
return false;
Page 209 of 292
}
else if(!isEmpty(byear) && !isPosInteger(byear))
{
alert("Invalid characters in Year. Please re-enter.");
document.forms[0].year.value=" ";
document.forms[0].year.focus();
return false;
}
else if(!possibleDOB(bday,bmonth,byear))
{
alert("Invalid Date of Birth. Please re-enter.");
document.forms[0].bday.value=" ";
document.forms[0].bmonth.value=" ";
document.forms[0].year.value=" ";
document.forms[0].bday.focus();
return false;
}
else if(occupation == "none")
{
alert("Please select the Occupation");
document.forms[0].occupation.focus();
return false;
}

else if(incomegroup == "-1")


{
alert("Please select the income group.");
document.forms[0].incomegroup.focus();
return false;
}

else if(isEmpty(phoneoff) && isEmpty(mobile) )


{
alert("Please enter at least one of your contact numbers.");
document.forms[0].offphone.focus();
return false;
}
else if(!isEmpty(phoneoff) && !isPosInteger(phoneoff))
{
alert("Invalid Phone number. Please re-enter.");
document.forms[0].offphone.focus();
return false;
}
else if(!isEmpty(mobile) && !isPosInteger(mobile))
{
Page 210 of 292
alert("Invalid Mobile number. Please re-enter.");
document.forms[0].Mphone.focus();
return false;
}
else if(isEmpty(email))
{
alert("Please type your e-mail address.");
document.forms[0].email.focus();
return false;
}
else if(!reg.test(email))
{
alert("Invalid email address. Please re-enter.");
document.forms[0].email.focus();
return false;
}
else if(isEmpty(logname))
{
alert("Please type your Login Name.");
document.forms[0].loginname.focus();
return false;
}
else if(isEmpty(pword))
{
alert("Please type your password.");
document.forms[0].password.focus();
return false;
}
else if(isEmpty(repword))
{
alert("Please Re-type your password.");
document.forms[0].retypepassword.focus();
return false;
}
else if(!isValidLogin(logname))
{
alert("Invalid login name. Login name can contain letters,
numbers and underscore (_) only.");
document.forms[0].loginname.value=" ";
document.forms[0].loginname.focus();
return false;
}
else if(!isValidPassword(pword,repword))
{
alert("Password does not match");
Page 211 of 292
document.forms[0].retypepassword.value="";
document.forms[0].retypepassword.focus();
return false;
}else
return true;
}

function func_sub(frmReg)
{
if(validateAll())
{
frmReg.action="payment.jsp";
frmReg.method="Post";
frmReg.submit();
}

</script>
<body bgcolor=lightyellow background="19a.gif">
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFC1">
<span style="background-color:
#FF0000">ShareBazar.com</span></font></i></td>
</tr>
</table><hr color=red size=2>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber4">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font color="#FFFFC1"
size="2">Gone are the days................to successful online share
trading</font><font color="#FFFFC1">
</font>
</b>
</td>
</tr>
</table>
<hr size=2 color=red>

Page 212 of 292


<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center"><b><font size="5" color="#FFFFC1"> Customer
Registration </font></b></td>
</tr>
</table>
<hr color=red >
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3" height="320" background="19.gif">
<form name="frmReg"><!-- action="customerRegistration.jsp"
method="post">-->
<tr>
<td width="20%" rowspan="11" height="286">&nbsp;<img
src="6.jpg" width="96%" height="100%" vspace="1" border="0"></td>
<td width="13%" height="31"><font size="4">Name</font></td>
<td width="8%" height="31">&nbsp;<select name=initial size=1
tabindex="1">
<option selected value=Mr.>Mr.</option>
<option value=Miss>Miss</option>
<option value=Mrs.>Mrs.</option>
</select>
</td>
<td width="35%" colspan="5" height="31">&nbsp;<input type=text
name=name value="" size=19 tabindex="2"><font
color=#000080><sup>*</sup></font><font><font color=#008000>
</font><font color=red>&nbsp;
&nbsp;</font></td>
<td width="30%" colspan="7" height="31" valign="bottom">
<font color=#008000 size=2>&nbsp;&nbsp;&nbsp; (Please enter at
least one of the
Phone number.)</font></td>
</tr>
<tr>
<td width="13%" height="31"><font size="4">Address</font></td>
<td width="32%" colspan="5" height="31">&nbsp;<input type=text
name=add1 value="" size=35 tabindex="3"><font
color=#000080><sup>*</sup></td>
<td width="8%" height="31" colspan="2">&nbsp;</td>
<td width="9%" height="31" colspan="2" valign="bottom">
<b>Phone</b></td>
<td width="14%" height="31" colspan="2" valign="bottom">
Page 213 of 292
<b>Office</b></td>
<td width="12%" height="31" colspan="2" valign="bottom">
&nbsp;<input type=text name=offphone value="" size=11
tabindex="15"></td>
</tr>
<tr>
<td width="13%" height="33">&nbsp;</td>
<td width="32%" colspan="5" height="33">&nbsp;<input type=text
name=add2 value="" size=35 tabindex="4"></td>
<td width="8%" height="33" colspan="2">&nbsp;</td>
<td width="8%" height="33">&nbsp;</td>
<td width="16%" height="33" colspan="4"><b>&nbsp;&nbsp;
Mobile</b></td>
<td width="8%" height="33">
<input type=text name=Mphone value="" size=11
tabindex="16"></td>
</tr>
<tr>
<td width="13%" height="34">&nbsp;</td>
<td width="32%" colspan="5" height="34">&nbsp;<input type=text
name=add3 value="" size=35 tabindex="5"></td>
<td width="8%" height="34" colspan="2">&nbsp;</td>
<td width="24%" height="34" colspan="5"><font size="4">E-
mail&nbsp;&nbsp;&nbsp;&nbsp; </font></td>
<td width="8%" height="34">
<input type=text name=email value="" size=20 tabindex="17"><font
color=#000080><sup>*</sup></td>
</tr>
<tr>
<td width="13%" height="34"><font size="4">City</font></td>
<td width="8%" height="34">&nbsp;<input type=text name=city
value="" size=10 tabindex="6"><font
color=#000080><sup>*</sup></td>
<td width="3%" height="34"><font size="4">State</font></td>
<td width="21%" height="34" colspan="3">&nbsp;&nbsp;&nbsp;
&nbsp;
<input type=text name=state value="" size=10 tabindex="7"><font
color=#000080><sup>*</sup></td>
<td width="8%" height="34" colspan="2">&nbsp;</td>
<td width="33%" height="34" colspan="5"><font size="4"> Login
name</font></td>
<td width="8%" height="34" align="left">
<input type=text name=loginname value="" size=20
tabindex="18"><font color=#000080><sup>*</sup></td>
</tr>
Page 214 of 292
<tr>
<td width="13%" height="34"><font size="4">Country</font></td>
<td width="8%" height="34">&nbsp;<input type=text name=country
value="" size=10 tabindex="8"><font
color=#000080><sup>*</sup></td>
<td width="2%" colspan="2" height="34"><b>Pin code</b></td>
<td width="11%" height="34"><input name=pincode size=7
tabindex="9"><font color=#000080><sup>*</sup></td>
<td width="9%" height="34">&nbsp;</td>
<td width="8%" height="34" colspan="2">&nbsp;</td>
<td width="33%" height="34" colspan="5"><font
size="4">Password</font></td>
<td width="8%" height="34" align="right">
<p align="left">
<input type=password name=password value="" size=20
tabindex="19"><font color=#000080><sup>*</sup></td>
</tr>
<tr>
<td width="13%" height="34"><font size="4">DOB</font></td>
<td width="23%" colspan="4" height="34">&nbsp;<input type=text
name=bday value="DD -" size=3 tabindex="10">
&nbsp;<input type=text name=bmonth value="MM -" size=3
tabindex="11">
&nbsp;<input type=text name=year value="YYYY" size=4
tabindex="12"><font color=#000080><sup>*</sup></td>
<td width="9%" height="34">&nbsp;</td>
<td width="8%" height="34" colspan="2">&nbsp;</td>
<td width="33%" height="34" colspan="5"><b>Re-type
Password</b></td>
<td width="8%" height="34">
<input type=password name=retypepassword value="" size=20
tabindex="20"><font color=#000080><sup>*</sup></td>
</tr>
<tr>
<td width="13%" height="31"><font
size="4">Occupation</font></td>
<td width="23%" height="31" colspan="4">&nbsp;<select
name=occupation size=1 tabindex="13">
<option selected value="none">(Select Occupation)</option>
<option value="Self Employed">Self Employed</option>
<option value="Govt. Employee">Govt. Employee</option>
<option value="CEO/MD/Director">CEO/ MD/ Director</option>
<option value="GM/Middle Management">GM/ Middle
Management</option>

Page 215 of 292


<option value="Lower management/trainee"> Lower management/
trainee</option>
<option value="Clerk">Clerk</option>
<option value="Private Sector Employment">Private Sector
Employment</option>
<option value="Retired">Retired</option>
<option value="Housewife">Housewife </option>
<option value="Student">Student</option>
</select><font color=#000080><sup>*</sup></td>
<td width="9%" height="31">&nbsp;</td>
<td width="8%" height="31" colspan="2">&nbsp;</td>
<td width="33%" height="31" colspan="5">&nbsp;</td>
<td width="8%" height="31">&nbsp;</td>
</tr>
<tr>
<td width="13%" height="31"><b>Income Group</b></td>
<td width="23%" height="31" colspan="4">&nbsp;<select
name=incomegroup tabindex="14">
<option selected value="-1">(Select One)</option>
<option value="1">&lt; 1,00,000</option>
<option value="2">1,00,001 - 3,00,000</option>
<option value="4">3,00,001 - 5,00,000</option>
<option value="5">5,00,001 - 10,00,000</option>
<option value="6">&gt; 10,00,000</option>
</select><font color=#000080><sup>*</sup></td>
<td width="9%" height="31">&nbsp;</td>
<td width="8%" height="31" colspan="2">&nbsp;</td>
<td width="36%" height="31" colspan="6" valign="bottom">
<font color=#008000 size=2>(Fields marked with </font>
<font color=#000080 size=2>*</font><font color=#008000 size=2>
are
mandatory)</font></td>
</tr>
<tr>
<td width="13%" height="32">&nbsp;</td>
<td width="23%" height="32" colspan="4">&nbsp;</td>
<td width="9%" height="32">&nbsp;</td>
<td width="8%" height="32" colspan="2">&nbsp;</td>
<td width="39%" height="32" colspan="3" valign="bottom">
<input type="button" name="sub" value="Submit" tabindex="21"
onClick="func_sub(frmReg)">&nbsp;</td>
<td width="1%" height="32" colspan="3" valign="bottom">
<input type=reset name=resub value="Reset" tabindex="22"></td>
</tr>
<tr>
Page 216 of 292
<td width="94%" height="22" colspan="14">&nbsp;</td>
</tr>
</form>
</table>
<hr color=red >
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tbody>
<tr>
<td align=left valign=center height=35>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="privacyPolicy.htm">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p></td>
</body>
<script language="javascript">
document.forms[0].initial.focus();
</script>
</table>

</html>

--------------------------------------------------------------------------------------------------------------------------
COMPANY VERIFICATION
--------------------------------------------------------------------------------------------------------------------------

<%@ page errorPage = "ErrorPage.jsp" language="java"


import="java.sql.*" %>
<%
/*Verifying the first level login entered by the customer with the
CompanyMaster table of the sharebazar database. */
Connection conn=null;
PreparedStatement stmt;
ResultSet rs=null;
int i=0;
try
{
String loginname="", memid="", password="";
loginname=request.getParameter("loginname");
memid=request.getParameter("memid");
password=request.getParameter("Pword");

Page 217 of 292


%>
<form name="ff" action="index3.jsp" method="post">
<input type="hidden" name="loginname" value="<%=loginname
%>">
<input type="hidden" name="memid" value="<%=memid%>">
<input type="hidden" name="password" value="<%=password
%>">
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.prepareStatement("select * from CompanyMaster where
logname=? and memID=? and pwd=?");
stmt.setString(1,loginname);
stmt.setString(2,memid);
stmt.setString(3,password);
rs=stmt.executeQuery();
while(rs.next())
{
i++;
}
if(i>0)
{
%>
<script language="javascript">
document.ff.submit();
</script>
<%
}
else
{
%>
<script language="javascript">
alert("Invalid Login name/password. Please Re-enter");
location.href="index2a.jsp"
</script>
<%
}
conn.close();
}
catch(SQLException ee)
{
out.println(ee);
}
%>

Page 218 of 292


--------------------------------------------------------------------------------------------------------------------------
CUSTOMER VERIFICATION
--------------------------------------------------------------------------------------------------------------------------

<%@ page errorPage = "ErrorPage.jsp" language="java"


import="java.sql.*" %>
<%
/*Verifying the first level login entered by the customer with the
CustomerMaster table of the ShareBazar database. */
Connection conn=null;
PreparedStatement stmt;
ResultSet rs=null;
int i=0;
try
{
String logn="", memid="", pswd="";
logn=request.getParameter("loginname");
memid=request.getParameter("memid");
pswd=request.getParameter("Pword");
%>
<form name="ff" action="index4.jsp" method="post">
<input type="hidden" name="login" value="<%=logn%>">
<input type="hidden" name="memid" value="<%=memid%>">
<input type="hidden" name="password" value="<%=pswd%>">
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.prepareStatement("select * from CustomerMaster where
logname=? and memID=? and password=?");
stmt.setString(1,logn);
stmt.setString(2,memid);
stmt.setString(3,pswd);
rs=stmt.executeQuery();
while(rs.next())
{
i++;
}
if(i>0)
{
%>
<script language="javascript">
document.ff.submit();
</script>
<%
}

Page 219 of 292


else
{
%>
<script language="javascript">
alert("Invalid Login name/password. Please Re-enter ");
location.href="index2b.jsp"
</script>
<%
}
conn.close();
}
catch(SQLException ee)
{
out.println(ee);
}
%>

--------------------------------------------------------------------------------------------------------------------------
COMPANY DETAILS
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%!
String comp[];
String address,pincode,phone,fax,email,personcon,background;
int num=0,i=0;
Connection conn=null;
Statement stmt=null;
ResultSet rs=null;
%>
<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>New Page 1</title>
</head>

<body background="19a.gif">

Page 220 of 292


<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1" height="53">
<tr>
<td width="100%" bgcolor="#FF0000" height="53">
<font size="7" color="#FFFFCC">ShareBazar.com</font></td>
</tr>
</table>
<hr color=red>
<table border="0" cellspacing="1" width="100%" id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font size="2"
color="#FFFFCC">Gone
are the days.................to online share trading</font></b></td>
</tr>
</table>
<hr color=red>
<table border="1" cellspacing="1" bordercolor="#C0C0C0"
width="100%" id="AutoNumber3" background="19.gif" height="75%">
<%
String namecom=request.getParameter("comName");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.createStatement();
rs=stmt.executeQuery("select
address,city,state,country,pincode,phone,fax,email,personcon,combackgr
ound from CompanyMaster where name='"+namecom+"'");
rs.next();
address=rs.getString(1)+", "+rs.getString(2)+",
"+rs.getString(3)+", "+rs.getString(4);
pincode=rs.getString(5);
phone=rs.getString(6);
fax=rs.getString(7);
email=rs.getString(8);
personcon=rs.getString(9);
background=rs.getString(10);

}catch(Exception e)
{
System.out.println("The Exception is ---->"+e);
}
%>
<tr>
Page 221 of 292
<td width="22%" height="9%" align="center"><b>Name :</b></td>
<td width="78%" height="9%">&nbsp;<font color=red size=3><b><
%=namecom%></b></font></td>
</tr>
<tr>
<td width="22%" height="9%" align="center"><b>Address
:</b></td>
<td width="78%" height="9%">&nbsp;<font color=red size=3><b><
%=address%></b></font></td>
</tr>
<tr>
<td width="22%" height="9%" align="center"><b>Pin code
:</b></td>
<td width="78%" height="9%">&nbsp;<font color=red size=3><b><
%=pincode%></b></font></td>
</tr>
<tr>
<td width="22%" height="9%" align="center"><b>Phone Number
:</b></td>
<td width="78%" height="9%">&nbsp;<font color=red size=3><b><
%=phone%></b></font></td>
</tr>
<tr>
<td width="22%" height="9%" align="center"><b>Fax Number
:</b></td>
<td width="78%" height="9%">&nbsp;<font color=red size=3><b><
%=fax%></b></font></td>
</tr>
<tr>
<td width="22%" height="9%" align="center"><b>E-mail :</b></td>
<td width="78%" height="9%">&nbsp;<font color=red size=3><b><
%=email%></b></font></td>
</tr>
<tr>
<td width="22%" height="9%" align="center"><b>Contact Person
:</b></td>
<td width="78%" height="9%">&nbsp;<font color=red size=3><b><
%=personcon%></b></font></td>
</tr>
<tr>
<td width="22%" height="9%" align="center"><b>Shares Type
:</b></td>
<td width="78%" height="9%">&nbsp;<font color=red size=3><b><
%=personcon%></b></font></td>
</tr>
Page 222 of 292
<tr>
<td width="22%" height="9%" align="center"><b>Total Shares
:</b></td>
<td width="78%" height="9%">&nbsp;<font color=red size=3><b><
%=personcon%></b></font></td>
</tr>
<tr>
<td width="22%" height="9%" align="center"><b>Remaining
Shares :</b></td>
<td width="78%" height="9%">&nbsp;<font color=red size=3><b><
%=personcon%></b></font></td>
</tr>
<tr>
<td width="22%" height="9%" align="center"><b>Company's
Description :</b></td>
<td width="78%" height="9%">&nbsp;<font color=red size=3><b><
%=background%></b></font></td>
</tr>
</table>
<hr color=red>
<p align=center><font face="Arial" size=1>|<a
href="HomePage.jsp">Home</a>
|<a href="mailto:info@sharebazar.com">Contact us</a>
|<a href="form1.html">Privacy Policy</a>
|<a href="http://www.sebi.gov.in/">SEBI</a>
|<a href="http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading : e-broking in
India</font></p>
</body>

</html>

--------------------------------------------------------------------------------------------------------------------------
CONTACT COMPANY FORM
--------------------------------------------------------------------------------------------------------------------------

<%@ page errorPage = "ErrorPage.jsp" language="java"


import="java.sql.*,java.util.Calendar" %>
<%
String name="", email="", phone="",reason="";
Connection conn=null;
PreparedStatement stmt;
int rr=0,dd,mm,yy;
//Retrieving the values of Feedback form in variables.

Page 223 of 292


name=request.getParameter("comName");
email=request.getParameter("email");
phone=request.getParameter("phone");
reason=request.getParameter("reason");
System.out.println(name+" "+email+" "+phone+" "+reason);
//Storing the values of the variables in the Feedback table of the
savv.mdb database.
try
{
Calendar cc=Calendar.getInstance();
dd=cc.get(Calendar.DATE)-1;
mm=cc.get(Calendar.MONTH);
yy=cc.get(Calendar.YEAR);
System.out.println(dd+" "+mm+" "+yy);
Date dt=new Date(yy-1900,mm,dd);
System.out.println(dt);
System.out.println(dt.toString());
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.prepareStatement("insert into contact values(?,?,?,?,?)");
stmt.setString(1,name);
stmt.setString(2,email);
stmt.setString(3,phone);
stmt.setString(4,reason);
stmt.setString(5,dt.toString());
stmt.execute();
conn.close();
}
catch(Exception e){System.out.println("EXCEPTION :-- "+e);}
%>
<jsp:forward page="HomePage.jsp" />

--------------------------------------------------------------------------------------------------------------------------
PAYMENT DETAILS OF CUSTOMER
--------------------------------------------------------------------------------------------------------------------------

<%!String
y,m,d,initial,name,add1,city,state,country,pin,email,occupation,incomegro
up,phoneoff,mobile,logname,pword; %>
<%
y=request.getParameter("year");
m=request.getParameter("bmonth");
d=request.getParameter("bday");

Page 224 of 292


initial=request.getParameter("initial");
name=request.getParameter("name");
add1=(request.getParameter("add1")+";"+request.getParameter("add2")
+";"+request.getParameter("add3"));
city=request.getParameter("city");
state=request.getParameter("state");
country=request.getParameter("country");
pin=request.getParameter("pincode");
email=request.getParameter("email");
occupation=request.getParameter("occupation");
incomegroup=request.getParameter("incomegroup");
phoneoff=request.getParameter("offphone");
mobile=request.getParameter("Mphone");
logname=request.getParameter("loginname");
pword=request.getParameter("password");
%>
<html>
<HEAD>
</head>
<script language="javascript">
function isEmpty(str)
{
if(str=="" || str==null)
return true;
else
return false;
}
function isAlpha(str)
{
var i,flag;
for(i=0;i<str.length;i++)
{
if( ((str.charAt(i) >= 'a') && (str.charAt(i) <= 'z')) ||
((str.charAt(i) >= 'A') || (str.charAt(i) <= 'Z')) )
flag=1;
else
{
flag=0;
break;
}
}
if(flag)
return true;
else
return false;
Page 225 of 292
}
function isValid(num)
{
if(num.length < 16)
return false;
else
{
if(isNaN(num))
{
return false;
}
else
return true;
}
}

function allRight()
{
var ctype;
cname=document.form1.card_name.value;
cnumber=document.form1.card_number.value;
exMonth=document.form1.sl_month.value;
exYear=document.form1.sl_year.value;
var currentYr = new Date().getFullYear();
var currentMn = new Date().getMonth()+1;
if(isEmpty(cname))
{
alert("Please enter the name mentioned on you card.");
document.form1.card_name.focus();
return false;
}
else if(!isAlpha(cname))
{
alert("Invalid character in name.Please enter the name
mentioned on you card.");
document.form1.card_name.focus();
return false;
}
else if(isEmpty(cnumber))
{
alert("Please enter the number mentioned on you card.");
document.form1.card_number.focus();
return false;
}
else if(!isValid(cnumber))
Page 226 of 292
{
alert("Invalid number.Please enter the number mentioned on
your card.");
document.form1.card_number.focus();
return false;
}
else if(document.form1.card_type[0].checked)
{
ctype="visa";
}
else if(document.form1.card_type[1].checked)
{
ctype="master";
}
else if(document.form1.card_type[2].checked)
{
ctype="amex";
}
else if(document.form1.card_type[3].checked)
{
ctype="diners";
}
else
{
alert("Please select the type of the card.");
return false;
}
if( (currentYr > exYear) && (currentMn > exMonth) )
{
alert("Sorry,Your card has already been expired.");
return false;
}
else if( (currentMn == exMonth) && (currentYr == exYear) )
{
alert("Sorry,Your card will be expired in this month.You can't
do this transaction.");
return false;
}
else
return true;

}
function validation()
{
if(allRight())
Page 227 of 292
{
form1.action="Register.jsp";
form1.method="post";
form1.submit();
}
}
</script>
<body bgcolor="#ffffff" marginwidth="0" marginheight="0"
background="19a.gif">
<table border=0 cellpadding=0 cellspacing=0 width="100%"
style="border-collapse: collapse" bordercolor="#111111">
<tr bgcolor=#FFFFFF align="left">
<td height=30 valign=top colspan="2" bgcolor="#FF0000">
<font size="7" color="#FFFFCC">ShareBazar.com</font>
</td>
</tr>
</table>
<hr color=red>
<!-- Top hyperlink row ends. -->
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse:collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFCC">Gone are the days...............to successful online share
investing</font></b></td>
</tr>
</table>
<hr size=2 color=red>
<br>
<!--Designing the layout for the Payment Method form. -->

<center>
<table border=0 width="76%" background="19.gif" style="border-
collapse: collapse" bordercolor="#111111" cellpadding="0"
cellspacing="0">
<tr align=middle bgcolor="#FFFFFF">
<td colspan=2 height=2 background="19.gif">
<p align="left">
<b><font face="Arial, Helvetica, sans-serif" color="#FF0000">Dear
Customer,</font></b>
</td>
</tr>
<tr>
<td colspan=2 height=2></td>
Page 228 of 292
</tr>
<tr align=middle bgcolor="#FFFFFF">
<td colspan=2 height=2 background="19.gif">
<p align="left">
<b><font face="Arial, Helvetica, sans-serif" color="#FF0000">In order
to become an active member of our application and gain access to the
services provided, you need to pay an amount of Rs
1000/-.</font></b></div>
</td>
</tr>
</table>
</center>
<br>
<center>
<table border=0 width="76%" style="border-collapse:collapse"
bordercolor="#111111" cellpadding="0" cellspacing="0">
<form name="form1">
<input type=hidden name=year value="<%=y %>" >
<input type=hidden name=bmonth value="<%=m %>" >
<input type=hidden name=bday value="<%=d %>" >
<input type=hidden name=initial value="<%=initial %>" >
<input type=hidden name=name value="<%=name %>" >
<input type=hidden name=add1 value="<%=add1 %>" >
<input type=hidden name=city value="<%=city %>" >
<input type=hidden name=state value="<%=state %>" >
<input type=hidden name=country value="<%=country %>" >
<input type=hidden name=pincode value="<%=pin %>" >
<input type=hidden name=email value="<%=email %>" >
<input type=hidden name=incomegroup value="<%=incomegroup %>"
>
<input type=hidden name=occupation value="<%=occupation %>" >
<input type=hidden name=offphone value="<%=phoneoff %>" >
<input type=hidden name=Mphone value="<%=mobile %>" >
<input type=hidden name=loginname value="<%=logname %>" >
<input type=hidden name=password value="<%=pword %>" >
<tr align=middle bgcolor="#c0003b">
<td colspan=2 height="50%" bgcolor="#FF0000" width="50%"><font
face="Arial, Helvetica, sans-serif" size="2"><b>
<font color="#FFFFCC">&nbsp;Payment</font></b></font></td>
</tr>
<tr align=middle valign=top>
<td colspan=2 width="694" height="19">&nbsp;</td>
<tr>

Page 229 of 292


<td align=right height=33 background="19.gif" width="250"><b><font
face="Arial, Helvetica, sans-serif" size=2> Cardholders Name
</font></b></td>
<td height=33 background="19.gif"
width="440">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
type="text" name="card_name" size=18><font face=verdana size=1>
<font color="#C0003B">(As it appears on the card)</font></font></td>
</tr>
<tr>
<td align=right height=33 background="19.gif" width="250"
style="border-bottom-style: none; border-bottom-width: medium">
<b> <font face="Arial, Helvetica, sans-serif" size=2>
Card Number</font></b></td>
<td height=33 background="19.gif"
width="440">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
type="text" maxlength=16 name="card_number" size=18>
</td>
</tr>
<tr>
<td align=right height=33 background="19.gif" width="250"
style="border-style: none; border-width: medium">
<b> <font face="Arial, Helvetica, sans-serif" size=2>
Card Type</font></b></td>
<td height=33 background="19.gif" width="440" style="border-left-
style: none; border-left-width: medium">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="card_type" type=radio value=VISA> <b>
<font face="Arial, Verdana" size=2>Visa </font>
<input name=card_type type=radio value=MC> </b>
<font face="Arial, Verdana" size=2><b>Master
<input name=card_type type=radio value=Amex>Amex
<input name=card_type type=radio
value=Diners>Diners</b></font></td>
</tr>
<tr>
<td align=right height=34 background="19.gif" width="250"
style="border-top-style: none; border-top-width: medium">
<b><font face="Arial, Helvetica, sans-serif" size=2>
Expiry Date </font></b></td>
<td height=34 valign=bottom background="19.gif" width="440"><font
face= "Arial, Helvetica, sans-serif" size="2">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<select name="sl_month">
<option selected value=1>1</option>
<option value=2>2</option>
Page 230 of 292
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
<option value=6>6</option>
<option value=7>7</option>
<option value=8>8</option>
<option value=9>9</option>
<option value=10>10</option>
<option value=11>11</option>
<option value=12>12</option>
</select>
<select name="sl_year">
<option selected value=2006>2006</option>
<option value=2007>2007</option>
<option value=2008>2008</option>
<option value=2009>2009</option>
<option value=2010>2010</option>
<option value=2011>2011</option>
<option value=2012>2012</option>
<option value=2013>2013</option>
<option value=2014>2014</option>
<option value=2015>2015</option>
<option value=2016>2016</option>
<option value=2017>2017</option>
</select>
<br>
<font color="#C0003B"
size="1"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp; MM &nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;YYYY</b></font></font></td>
</tr>
</table>
<br>
<table width="702" style="border-collapse: collapse"
bordercolor="#111111" cellpadding="0" cellspacing="0">
<tr>
<td align=right background="19.gif" width="50%">
<input type="button" name="cmdSubmit" value="Submit Order"
onClick="return validation()" class=bu style="float: right"></td>
<td align=right height=1 background="19.gif" width="7%"></td>
<td align=right height=1 background="19.gif" width="43%">
<input type=reset value=Reset name="reset" class=bu style="float:
left"></td>
</tr>
</form>
Page 231 of 292
</table>
</center>
<hr size=2 color=red>
<p align=center><font face="Arial" size="1"> | <a
href="HomePage.jsp">HOME</a>&nbsp;|
<a href="mailto:info@sharebazar.com">Contact us</a> &nbsp;|
<a href="privacyPolicy.htm">Privacy Policy</a> &nbsp;|
<a href="http://www.sebi.gov.in/">SEBI</a> &nbsp;|
<a href="http://www.nse-india.com/">NSE</a> |
<br>sharebazar.com - Your currency for online trading &amp; e-broking
in India </p>
</body>
<script language="javascript">
document.form1.card_name.focus();
</script>
</html>

--------------------------------------------------------------------------------------------------------------------------
PAYMENT DETAILS OF COMPANY
--------------------------------------------------------------------------------------------------------------------------

<%!String
y,m,d,initial,name,add1,city,state,country,pin,email,occupation,incomegro
up,phoneoff,mobile,logname,pword; %>
<%
y=request.getParameter("year");
m=request.getParameter("bmonth");
d=request.getParameter("bday");
initial=request.getParameter("initial");
name=request.getParameter("name");
add1=(request.getParameter("add1")+";"+request.getParameter("add2")
+";"+request.getParameter("add3"));
city=request.getParameter("city");
state=request.getParameter("state");
country=request.getParameter("country");
pin=request.getParameter("pincode");
email=request.getParameter("email");
occupation=request.getParameter("occupation");
incomegroup=request.getParameter("incomegroup");
phoneoff=request.getParameter("offphone");
mobile=request.getParameter("Mphone");
logname=request.getParameter("loginname");
pword=request.getParameter("password");
%>

Page 232 of 292


<html>
<HEAD>
</head>
<script language="javascript">
function isEmpty(str)
{
if(str=="" || str==null)
return true;
else
return false;
}
function isAlpha(str)
{
var i,flag;
for(i=0;i<str.length;i++)
{
if( ((str.charAt(i) >= 'a') && (str.charAt(i) <= 'z')) ||
((str.charAt(i) >= 'A') || (str.charAt(i) <= 'Z')) )
flag=1;
else
{
flag=0;
break;
}
}
if(flag)
return true;
else
return false;
}
function isValid(num)
{
if(num.length < 16)
return false;
else
{
if(isNaN(num))
{
return false;
}
else
return true;
}
}

Page 233 of 292


function allRight()
{
var ctype;
cname=document.form1.card_name.value;
cnumber=document.form1.card_number.value;
exMonth=document.form1.sl_month.value;
exYear=document.form1.sl_year.value;
var currentYr = new Date().getFullYear();
var currentMn = new Date().getMonth()+1;
if(isEmpty(cname))
{
alert("Please enter the name mentioned on you card.");
document.form1.card_name.focus();
return false;
}
else if(!isAlpha(cname))
{
alert("Invalid character in name.Please enter the name
mentioned on you card.");
document.form1.card_name.focus();
return false;
}
else if(isEmpty(cnumber))
{
alert("Please enter the number mentioned on you card.");
document.form1.card_number.focus();
return false;
}
else if(!isValid(cnumber))
{
alert("Invalid number.Please enter the number mentioned on
your card.");
document.form1.card_number.focus();
return false;
}
else if(document.form1.card_type[0].checked)
{
ctype="visa";
}
else if(document.form1.card_type[1].checked)
{
ctype="master";
}
else if(document.form1.card_type[2].checked)
{
Page 234 of 292
ctype="amex";
}
else if(document.form1.card_type[3].checked)
{
ctype="diners";
}
else
{
alert("Please select the type of the card.");
return false;
}
if( (currentYr > exYear) && (currentMn > exMonth) )
{
alert("Sorry,Your card has already been expired.");
return false;
}
else if( (currentMn == exMonth) && (currentYr == exYear) )
{
alert("Sorry,Your card will be expired in this month.You can't
do this transaction.");
return false;
}
else
return true;

}
function validation()
{
if(allRight())
{
form1.action="Register.jsp";
form1.method="post";
form1.submit();
}
}
</script>
<body bgcolor="#ffffff" marginwidth="0" marginheight="0"
background="19a.gif">
<table border=0 cellpadding=0 cellspacing=0 width="100%"
style="border-collapse: collapse" bordercolor="#111111">
<tr bgcolor=#FFFFFF align="left">
<td height=30 valign=top colspan="2" bgcolor="#FF0000">
<font size="7" color="#FFFFCC">ShareBazar.com</font>
</td>
</tr>
Page 235 of 292
</table>
<hr color=red>
<!-- Top hyperlink row ends. -->
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse:collapse" bordercolor="#111111" width="100%"
id="AutoNumber2">
<tr>
<td width="100%" bgcolor="#FF0000"><b><font
color="#FFFFCC">Gone are the days...............to successful online share
investing</font></b></td>
</tr>
</table>
<hr size=2 color=red>
<br>
<!--Designing the layout for the Payment Method form. -->

<center>
<table border=0 width="76%" background="19.gif" style="border-
collapse: collapse" bordercolor="#111111" cellpadding="0"
cellspacing="0">
<tr align=middle bgcolor="#FFFFFF">
<td colspan=2 height=2 background="19.gif">
<p align="left">
<b><font face="Arial, Helvetica, sans-serif" color="#FF0000">Dear
Customer,</font></b>
</td>
</tr>
<tr>
<td colspan=2 height=2></td>
</tr>
<tr align=middle bgcolor="#FFFFFF">
<td colspan=2 height=2 background="19.gif">
<p align="left">
<b><font face="Arial, Helvetica, sans-serif" color="#FF0000">In order
to become an active member of our application and gain access to the
services provided, you need to pay an amount of Rs
1000/-.</font></b></div>
</td>
</tr>
</table>
</center>
<br>
<center>
<table border=0 width="76%" style="border-collapse:collapse"
bordercolor="#111111" cellpadding="0" cellspacing="0">
Page 236 of 292
<form name="form1">
<input type=hidden name=year value="<%=y %>" >
<input type=hidden name=bmonth value="<%=m %>" >
<input type=hidden name=bday value="<%=d %>" >
<input type=hidden name=initial value="<%=initial %>" >
<input type=hidden name=name value="<%=name %>" >
<input type=hidden name=add1 value="<%=add1 %>" >
<input type=hidden name=city value="<%=city %>" >
<input type=hidden name=state value="<%=state %>" >
<input type=hidden name=country value="<%=country %>" >
<input type=hidden name=pincode value="<%=pin %>" >
<input type=hidden name=email value="<%=email %>" >
<input type=hidden name=incomegroup value="<%=incomegroup %>"
>
<input type=hidden name=occupation value="<%=occupation %>" >
<input type=hidden name=offphone value="<%=phoneoff %>" >
<input type=hidden name=Mphone value="<%=mobile %>" >
<input type=hidden name=loginname value="<%=logname %>" >
<input type=hidden name=password value="<%=pword %>" >
<tr align=middle bgcolor="#c0003b">
<td colspan=2 height="50%" bgcolor="#FF0000" width="50%"><font
face="Arial, Helvetica, sans-serif" size="2"><b>
<font color="#FFFFCC">&nbsp;Payment</font></b></font></td>
</tr>
<tr align=middle valign=top>
<td colspan=2 width="694" height="19">&nbsp;</td>
<tr>
<td align=right height=33 background="19.gif" width="250"><b><font
face="Arial, Helvetica, sans-serif" size=2> Cardholders Name
</font></b></td>
<td height=33 background="19.gif"
width="440">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
type="text" name="card_name" size=18><font face=verdana size=1>
<font color="#C0003B">(As it appears on the card)</font></font></td>
</tr>
<tr>
<td align=right height=33 background="19.gif" width="250"
style="border-bottom-style: none; border-bottom-width: medium">
<b> <font face="Arial, Helvetica, sans-serif" size=2>
Card Number</font></b></td>
<td height=33 background="19.gif"
width="440">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
type="text" maxlength=16 name="card_number" size=18>
</td>
</tr>
Page 237 of 292
<tr>
<td align=right height=33 background="19.gif" width="250"
style="border-style: none; border-width: medium">
<b> <font face="Arial, Helvetica, sans-serif" size=2>
Card Type</font></b></td>
<td height=33 background="19.gif" width="440" style="border-left-
style: none; border-left-width: medium">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="card_type" type=radio value=VISA> <b>
<font face="Arial, Verdana" size=2>Visa </font>
<input name=card_type type=radio value=MC> </b>
<font face="Arial, Verdana" size=2><b>Master
<input name=card_type type=radio value=Amex>Amex
<input name=card_type type=radio
value=Diners>Diners</b></font></td>
</tr>
<tr>
<td align=right height=34 background="19.gif" width="250"
style="border-top-style: none; border-top-width: medium">
<b><font face="Arial, Helvetica, sans-serif" size=2>
Expiry Date </font></b></td>
<td height=34 valign=bottom background="19.gif" width="440"><font
face= "Arial, Helvetica, sans-serif" size="2">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<select name="sl_month">
<option selected value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
<option value=6>6</option>
<option value=7>7</option>
<option value=8>8</option>
<option value=9>9</option>
<option value=10>10</option>
<option value=11>11</option>
<option value=12>12</option>
</select>
<select name="sl_year">
<option selected value=2006>2006</option>
<option value=2007>2007</option>
<option value=2008>2008</option>
<option value=2009>2009</option>
<option value=2010>2010</option>
<option value=2011>2011</option>
Page 238 of 292
<option value=2012>2012</option>
<option value=2013>2013</option>
<option value=2014>2014</option>
<option value=2015>2015</option>
<option value=2016>2016</option>
<option value=2017>2017</option>
</select>
<br>
<font color="#C0003B"
size="1"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp; MM &nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;YYYY</b></font></font></td>
</tr>
</table>
<br>
<table width="702" style="border-collapse: collapse"
bordercolor="#111111" cellpadding="0" cellspacing="0">
<tr>
<td align=right background="19.gif" width="50%">
<input type="button" name="cmdSubmit" value="Submit Order"
onClick="return validation()" class=bu style="float: right"></td>
<td align=right height=1 background="19.gif" width="7%"></td>
<td align=right height=1 background="19.gif" width="43%">
<input type=reset value=Reset name="reset" class=bu style="float:
left"></td>
</tr>
</form>
</table>
</center>
<hr size=2 color=red>
<p align=center><font face="Arial" size="1"> | <a
href="HomePage.jsp">HOME</a>&nbsp;|
<a href="mailto:info@sharebazar.com">Contact us</a> &nbsp;|
<a href="privacyPolicy.htm">Privacy Policy</a> &nbsp;|
<a href="http://www.sebi.gov.in/">SEBI</a> &nbsp;|
<a href="http://www.nse-india.com/">NSE</a> |
<br>sharebazar.com - Your currency for online trading &amp; e-broking
in India </p>
</body>
<script language="javascript">
document.form1.card_name.focus();
</script>
</html>

Page 239 of 292


--------------------------------------------------------------------------------------------------------------------------
GENERATE MEMBERSHIP ID AND REGISTER COMPANY
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%!
int sno;
String memid;
String
name,add,city,state,country,pin,email,fax,phone,contactPerson,backgrou
nd,logname,pword,qty,rate,type,d,m,y;
Connection conn;
PreparedStatement pstmt,ps;
%>
<%Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
Statement
stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet
.CONCUR_READ_ONLY);
ResultSet rs=stmt.executeQuery("select memID,sno from
CompanyMaster");
if(!rs.first())
{
memid="SB10000009";
sno=1;
}
else
{
if(!rs.next())
{
memid="SB10000019";
sno=2;
}
else
{
rs.last();
String temp1=rs.getString(1);
sno=rs.getInt(2)+1;
rs.previous();
String temp2=rs.getString(1);
int a=0,b=0;
b=Integer.parseInt(temp1.substring(2,temp1.length()));
a=Integer.parseInt(temp2.substring(2,temp2.length()));
memid="SB"+(2*b-a+1);
}

Page 240 of 292


}
conn.close();
%>
<form name=ff action="membership.jsp" method="post">
<input type=hidden name="memid" value="<%=memid%>">
<%
name=request.getParameter("name");
add=request.getParameter("add");
city=request.getParameter("city");
state=request.getParameter("state");
country=request.getParameter("country");
pin=request.getParameter("pincode");
phone=request.getParameter("phone");
fax=request.getParameter("fax");
email=request.getParameter("email");
contactPerson=request.getParameter("contactPerson");
background=request.getParameter("background");
logname=request.getParameter("loginname");
pword=request.getParameter("password");
qty=request.getParameter("qty");
rate=request.getParameter("rate");
type=request.getParameter("type");
d=request.getParameter("day");
m=request.getParameter("month");
y=request.getParameter("year");
try
{
Date dt=new Date(Integer.parseInt(y)-1900,Integer.parseInt(m)-
1,Integer.parseInt(d));
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
conn.setAutoCommit(false);
pstmt=conn.prepareStatement("insert into
CompanyMaster(name,address,city,state,country,pincode,phone,fax,email
,personcon,logname,pwd,combackground,memID,sno)
values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
pstmt.setString(1,name);
pstmt.setString(2,add);
pstmt.setString(3,city);
pstmt.setString(4,state);
pstmt.setString(5,country);
pstmt.setString(6,pin);
pstmt.setString(7,phone);
pstmt.setString(8,fax);
pstmt.setString(9,email);
pstmt.setString(10,contactPerson);
Page 241 of 292
pstmt.setString(11,logname);
pstmt.setString(12,pword);
pstmt.setString(13,background);
pstmt.setString(14,memid);
pstmt.setInt(15,sno);
pstmt.execute();
ps=conn.prepareStatement("insert into
ShareMaster(memID,comName,qty,rate,type,issueDate,balance)
values(?,?,?,?,?,?,?)");
ps.setString(1,memid);
ps.setString(2,name);
ps.setString(3,qty);
ps.setString(4,rate);
ps.setString(5,type);
ps.setString(6,dt.toString());
ps.setString(7,qty);
ps.execute();
conn.commit();
conn.close();
}catch(Exception e)
{
System.out.println("Error on transferring ----> "+e);
}
%>
<script language="javascript">
document.ff.submit();
</script>

--------------------------------------------------------------------------------------------------------------------------
GENERATE MEMBERSHIP ID AND REGISTER CUSTOMER
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%!
String cname,cnum,ctype,exdate,memid;
String
y,m,d,initial,name,add,city,state,country,pin,email,occupation,incomegrou
p,phoneoff,mobile,logname,pword;
Connection conn;
PreparedStatement pstmt;
%>
<%Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");

Page 242 of 292


Statement
stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet
.CONCUR_READ_ONLY);
ResultSet rs=stmt.executeQuery("select memID from CustomerMaster");
if(!rs.first())
{
memid="SB10000019";
}
else
{
if(!rs.next())
{
memid="SB10000039";
}
else
{
rs.last();
String temp1=rs.getString(1);
rs.previous();
String temp2=rs.getString(1);
int a=0,b=0;
b=Integer.parseInt(temp1.substring(2,temp1.length()));
a=Integer.parseInt(temp2.substring(2,temp2.length()));
memid="SB"+(2*b-a+1);
}
}
conn.close();
%>
<form name=ff action="membership.jsp" method="post">
<input type=hidden name="memid" value="<%=memid%>">
<%
y=request.getParameter("year");
m=request.getParameter("bmonth");
d=request.getParameter("bday");
initial=request.getParameter("initial");
name=request.getParameter("name");
add=request.getParameter("add1");
city=request.getParameter("city");
state=request.getParameter("state");
country=request.getParameter("country");
pin=request.getParameter("pincode");
email=request.getParameter("email");
occupation=request.getParameter("occupation");
incomegroup=request.getParameter("incomegroup");
phoneoff=request.getParameter("offphone");
Page 243 of 292
mobile=request.getParameter("Mphone");
logname=request.getParameter("loginname");
pword=request.getParameter("password");
cname=request.getParameter("card_name");
cnum=request.getParameter("card_number");
ctype=request.getParameter("card_type");
Date dt=new Date(Integer.parseInt(y)-1900,Integer.parseInt(m)-
1,Integer.parseInt(d));
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
pstmt=conn.prepareStatement("insert into
customermaster(initial,name,add,city,state,country,pincode,email,dob,occ
upation,incomegroup,phoneoff,mobile,logname,password,memID)
values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
pstmt.setString(1,initial);
pstmt.setString(2,name);
pstmt.setString(3,add);
pstmt.setString(4,city);
pstmt.setString(5,state);
pstmt.setString(6,country);
pstmt.setString(7,pin);
pstmt.setString(8,email);
pstmt.setString(9,dt.toString());
pstmt.setString(10,occupation);
pstmt.setString(11,incomegroup);
pstmt.setString(12,phoneoff);
pstmt.setString(13,mobile);
pstmt.setString(14,logname);
pstmt.setString(15,pword);
pstmt.setString(16,memid);
pstmt.execute();
conn.close();
//exdate=request.getParameter("");
%>
<script language="javascript">
document.ff.submit();
</script>

--------------------------------------------------------------------------------------------------------------------------
UPDATE RATE
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String memid,login,password,Nrate;
Connection conn=null;

Page 244 of 292


PreparedStatement stmt=null;
ResultSet rs=null;
%>
<%
memid=request.getParameter("memid");
password=request.getParameter("password");
login=request.getParameter("login");
Nrate=request.getParameter("newRate");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.prepareStatement("update ShareMaster set rate=?
where memID=? ");
stmt.setString(1,Nrate);
stmt.setString(2,memid);
stmt.execute();
}catch(Exception e)
{
System.out.println("Exception in updating ShareMaster ----> "+e);
}
%>
<html>
<head>
<title>UpdateRate</title>
</head>
<body>
<form name="form1"
action="http://localhost:8080/examples/jsp/index3.jsp" method="post">
<input type=hidden name=login value="<%=login%>">
<input type=hidden name=memid value="<%=memid%>">
<input type=hidden name=password value="<%=password%>">
<script language="javascript">
document.form1.submit()
</script>
</body>
</html>

--------------------------------------------------------------------------------------------------------------------------
UPDATE BUYER
--------------------------------------------------------------------------------------------------------------------------

<%@ page import="java.sql.*" %>


<%! String memid,companyName,qty,qtyAvail,typeSH,rate,comID;
Connection conn=null;

Page 245 of 292


PreparedStatement stmt=null,stmt1=null;
ResultSet rs=null;
%>
<%
memid=request.getParameter("memid");
companyName=request.getParameter("comName");
qty=request.getParameter("qty");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.prepareStatement("select memID,qty,rate,type from
ShareMaster where comName=?");
conn.setAutoCommit(false);
stmt.setString(1,companyName);
rs=stmt.executeQuery();
rs.next();
comID=rs.getString(1);
qtyAvail=rs.getString(2);
rate=rs.getString(3);
typeSH=rs.getString(4);
stmt=conn.prepareStatement("insert into
buyer(memID,nameCom,qty,type,rate,comid) values(?,?,?,?,?,?)");
stmt.setString(1,memid);
stmt.setString(2,companyName);
stmt.setString(3,qty);
stmt.setString(4,typeSH);
stmt.setString(5,rate);
stmt.setString(6,comID);
stmt.execute();
stmt1=conn.prepareStatement("update ShareMaster set balance=?
where memID=?");
stmt1.setString(1,String.valueOf(Integer.parseInt(qtyAvail)-
Integer.parseInt(qty)));
stmt1.setString(2,comID);
stmt1.execute();
conn.commit();
conn.close();
}catch(Exception e)
{
System.out.println("Error in Updating Buyer ----> "+e);
}
%>
<html>

Page 246 of 292


<head>
<title>Update Buyer</title>
</head>
<body>
<form name="updateBuy"
action="http://localhost:8080/examples/jsp/index4.jsp" method="post">
<input type=hidden name=login value="<
%=request.getParameter("login")%>">
<input type=hidden name=memid value="<
%=request.getParameter("memid")%>">
<input type=hidden name=password value="<
%=request.getParameter("pwd")%>">
<script language="javascript">
document.updateBuy.submit()
</script>

</body>

</html>

--------------------------------------------------------------------------------------------------------------------------
FEEDBACK
--------------------------------------------------------------------------------------------------------------------------

<%@ page errorPage = "ErrorPage.jsp" language="java"


import="java.sql.*,java.util.Calendar" %>
<%
String name="", email="", comments="";
Connection conn=null;
PreparedStatement stmt;
int rr=0,dd,mm,yy;
//Retrieving the values of Feedback form in variables.
name=request.getParameter("name");
email=request.getParameter("email");
comments=request.getParameter("comments");
//Storing the values of the variables in the Feedback table of the
savv.mdb database.
try
{
Calendar cc=Calendar.getInstance();
dd=cc.get(Calendar.DATE)-1;
mm=cc.get(Calendar.MONTH);
yy=cc.get(Calendar.YEAR);
System.out.println(dd+" "+mm+" "+yy);

Page 247 of 292


Date dt=new Date(yy-1900,mm,dd);
System.out.println(dt);
System.out.println(dt.toString());
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:ShareBazar");
stmt=conn.prepareStatement("insert into feedback values(?,?,?,?)");
stmt.setString(1,name);
stmt.setString(2,email);
stmt.setString(3,comments);
stmt.setString(4,dt.toString());
stmt.execute();
conn.close();
}
catch(Exception e){System.out.println("EXCEPTION :-- "+e);}
%>
<jsp:forward page="HomePage.jsp" />
--------------------------------------------------------------------------------------------------------------------------
ERROR PAGE
--------------------------------------------------------------------------------------------------------------------------

<%@ page isErrorPage= "true" info = "This is the error page of the
application" contentType = "text/html" %>

<html>
<body>
<h1>OOP's An error has occurred </h1>
<p> The server could not process the request<p>

<b> Type of Exception :</b> <%= exception.getClass()


%></br>
<b> Message :</b> <%= exception.getMessage() %> </br>

<p> Please retry.....</p>


</body>
</html>

--------------------------------------------------------------------------------------------------------------------------
PRIVACY POLICY
--------------------------------------------------------------------------------------------------------------------------

<html>
<head>

Page 248 of 292


<title>ShareBazar.com - Your currency for online trading and e-broking in
India</title>
<!-Applying styles for the page. -->
</head>
<body bgcolor="#FFFFFF" marginwidth="0" marginheight="0"
background="19a.gif">
<div align="center">
<center>
<table border=0 cellpadding=0 cellspacing=0 width="100%"
style="border-collapse: collapse" bordercolor="#111111">
<tbody>
<tr bgcolor=#FFFFFF align="left">
<td height=30 valign=top colspan="2" bgcolor="#FF0000">
<div align="left"><font size="7"
color="#FFFFC1">ShareBazar.com</font><font color="#FFFFC1">
</font> </div>
</td>
</tr>
</tbody>
</table>
</center>
</div>
<hr color=red>
<div align="center">
<center>
<table border=0 cellpadding=0 cellspacing=0 width="100%"
dwcopytype="CopyTableRow" style="border-collapse: collapse"
bordercolor="#111111">
<tr>
<td colspan=2 bgcolor="#FF0000">
<div align="center"><font color="#FFFFC1"
size="4">Policy</font></div>
</td>
<td width="13%" bgcolor="#FF0000">
<p align="center"><b><font color="#FFFFFF">
<a href="HomePage.jsp"
class=btn><font
color="#FFFFC1">HOME</font></a></font></b></td>
<td width="17%" bgcolor= "#FF0000">
<p align="center"> <b><font color="#FFFFFF">&nbsp;<a
href="javascript:history.back()" class=btn><font
color="#FFFFC1">PREVIOUS</font></a></font></b><font
color="#FFFFC1">
</font>
</td>
Page 249 of 292
<td width="14%" bgcolor="#FF0000">
<p align="center"> <b><font color="#FFFFFF">&nbsp;<a
href="javascript:history.forward()" class=btn><font
color="#FFFFC1">NEXT</font></a></font></b><font
color="#FFFFC1">
</font>
</td>
</tr>
<tbody> <!-- Top hyperlink row ends --> </tbody>
</table>
</center>
</div>
<div align="center">
<hr color=red>
<table border="0" cellspacing="1" style="border-collapse: collapse"
bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center"><font face="Arial, Helvetica, sans-serif" size="4">
<b><font color=#FFFFC1>Privacy statement of
ShareBazar.com</font></b><font color="#FFFFC1">
</font> </font></td>
</tr>
</table><br>
<table width="90%" border="1" cellspacing="0" cellpadding="0"
style="border-collapse: collapse">
<tr>
<td background="19.gif">
<ul>
<li><font face="Arial, Helvetica, sans-serif" size="2">In order to use
ShareBazar.com, the company reserves the right to use, sell or deal with
aggregated used information and compile the general information
regarding the
customers of the company <font color="#DD0000">
<br></font><br></font>
<li><font face="Arial, Helvetica, sans-serif" size="2">The company
reserves the right to disclose or report personal information in limited
circumstances where we believe in good faith that disclosure is required
under law, to cooperate with regulators or law enforcement authorities to
perform necessary credit checks or collect report debts owed to
us, to protect our rights or property.<br><br></font>
<li><font face="Arial, Helvetica, sans-serif" size="2">The company will
share aggregated demographic information with our partners and
advertisers. This is not linked to any personal information that can identify
any individual customer. The company joint ventures with another
Page 250 of 292
company thereby offering specific services to the customers. When the
customer signs up for these services, the company will share names or
other contact information that is necessary for the third party to provide
these services. These parties are not allowed to use personally
identifiable information except for the purpose of providing these
services. <br> <br></font>
<li><font face="Arial, Helvetica, sans-serif" size="2">Information
relating to the specific transactions being entered by customers of the
company shall be kept strictly confidential by the company. However,
customers are advised to read the Terms and Conditions and the Business
Rules, with particular reference to the safekeeping of CustomerID's and
passwords. It is reiterated that the company shall not be liable for any
misuse of such CustomerID's and passwords caused due to the customer.
The company reserves the right to use, sell or deal with aggregated used
information and compile the general information regarding the
transactions conducted by the customers of the Site. You may choose
from time to time to display certain information on areas of the Site,
which are accessible to other customers. The company shall not be
responsible or liable for any misuse of such voluntarily disclosed
information. <br><br></font>
<li><font face="Arial, Helvetica, sans-serif" size="2">The Site contains
links to other sites. Please be aware that the company is not responsible
for the privacy practices of such other applications. The company
encourages our customers to be aware when they leave the application
and to read the privacy statements of each and every web application
that collects personally identifiable information. This privacy statement
applies solely to information collected by this company.<br>
<br></font>
<li><font face="Arial, Helvetica, sans-serif" size="2">The company also
sends to the customer the application and service announcement
updates. The customers cannot un-subscribe from service
announcements, which contain important information about the service.
<br><br> </font>
<li><font face="Arial, Helvetica, sans-serif" size="2">A cookie is simply
an HTTP header that consists of a text-only string that gets entered into
the memory of a browser. This string contains the domain, path, lifetime
and value of a variable that an application sets. If the lifetime of this
variable is longer than the time the customer spends at that application,
then this string is saved to file for future reference. Usage of a cookie is in
no way linked to any personally identifiable information on the
application. Cookies enhance the performance of
ShareBazar.com in several important ways: they provide a secure way for
customers to verify customer's identity during your online trading session,
personalize your experience on the application and make your
visit to the application more convenient for you. <br><br></font>
Page 251 of 292
<li><font face="Arial, Helvetica, sans-serif" size="2">The company shall
advise you of any changes to the privacy policy via e-mail and
such changes will be binded on you thereafter.<br><br></font>
<li><font face="Arial, Helvetica, sans-serif" size="2">To enable the
company to serve you better, it is necessary that your personal
information available is updated and accurate. For updating the same
please go to our application and update your information under account
services, maintenance, user profile section. </font></li></ul>
</td>
</tr>
</table>
<hr color=red size=2>
<table border=0 cellpadding=0 cellspacing=0 width="100%">
<tbody>
<tr>
<td align=left valign=center height="35">
<p align=center><font face="Arial" size="1"> |
<a class=copyright
href="HomePage.jsp">HOME</a> &nbsp;|
<a class=copyright href="mailto:info@sharebazar.com">Contact us</a>
&nbsp;|
<a href="terms.htm">Terms &amp; Condition</a>&nbsp;|
<a class=copyright href= "http://www.sebi.gov.in/">SEBI</a>&nbsp;|
<a class=copyright href= "http://www.nse-india.com/">NSE</a>|<br>
ShareBazar.com - Your currency for online trading &amp; e-broking in
India </font></p>
</td>
</tr>
</tbody>
</table>
</div>
<ul>
</ul>
</body>
</html>

--------------------------------------------------------------------------------------------------------------------------
DOs AND DONTs
--------------------------------------------------------------------------------------------------------------------------

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">

Page 252 of 292


<meta http-equiv="Content-Type" content="text/html; charset=windows-
1252">
<title>ShareBazar</title>
</head>

<body background="19a.gif">

<table border="0" cellspacing="1" style="border-collapse: collapse"


bordercolor="#111111" width="100%" id="AutoNumber1"
bgcolor="#FF0000">
<tr>
<td width="100%"><font size="7"
color="#FFFFCC">ShareBazar.com</font></td>
</tr>
</table>
<hr color=red>
<table border="0" cellspacing="1" style="border-collapse: collapse"
bordercolor="#111111" width="100%" id="AutoNumber2"
bgcolor="#FF0000">
<tr>
<td width="50%">
<p align="center"><b><font size="4" color="#FFFFCC">DOs &amp;
Don'ts</font></b></td>
<td width="17%">
<p align="center"><b><font color="#FFFFFF">
<a href="HomePage.jsp"
class=btn><font
color="#FFFFB7">HOME</font></a></font></b></td>
<td width="17%">
<p align="center"> <b><font color="#FFFFFF">
<a href="javascript:history.back()" class=btn> <font
color="#FFFFB7">PREVIOUS</font></a></font></b> </td>
<td width="16%">
<p align="center"> <b><font color="#FFFFFF">
<a href="javascript:history.forward()" class=btn> <font
color="#FFFFB7">NEXT</font></a></font></b><font
color="#FFFFB7">
</font>
</td>
</tr>
</table>
<hr color=red>
<table border="0" cellspacing="1" style="border-collapse: collapse"
bordercolor="#111111" width="100%" id="AutoNumber3"
background="19.gif">
Page 253 of 292
<tr>
<td width="100%">
<div class=storytitle><b><font size="4" face="Arial, Helvetica, sans-
serif">Online share dealing: The dos and don'ts</font></b></div>
<p><font size="2" face="Arial, Helvetica, sans-serif">We offer some
advice for those taking the plunge and deciding to deal online. Many of
these tips apply to share dealing in general. </font></p>
<p> <p></p> <p></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><b>&#8226;</b>
Do shop around to get the best online stockbroker. The amount of
commission they charge varies enormously. </font></p> <p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><b>&#8226;</b>
Don't be tempted to rush into a transaction. People say trading online can
feel unreal, so don't hurry into spending hard-earned cash.
</font></p>
<p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><b>&#8226;</b>
Do be careful when offered the chance, by brokers, to borrow money to
buy shares. You could end up losing money you do not have.
</font></p>
<p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><b>&#8226;</b>
Don't spend a pound more than you can afford to lose. Decide on an
amount you're prepared to invest and stick to it. If you've made good
money, take out half as profit. </font></p>
<p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><b>&#8226;</b>
Do plenty of research and read the city news on This is Money to get
good-quality and up-to-date information. </font></p>
<p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><b>&#8226;</b>
Don't check your share prices every ten minutes. If you give in to the
temptation to do this, your phone bill will be larger than any profits you
make on the markets. Check your portfolio at the end of each day.
Remember you are investing for the long term. </font></p>
<p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><b>&#8226;</b>
Do watch out for false information posted on internet bulletin boards. In
the past, unscrupulous investors have given out misinformation to push
up shares they own, only to dump their holdings once private investors
have bought in. </font></p>
<p>&nbsp;</p>
</td>
</tr>
</table>
Page 254 of 292
<hr color=red>
<table border="0" cellspacing="1" style="border-collapse: collapse"
bordercolor="#111111" width="100%" id="AutoNumber4"
background="19.gif">
<tr>
<td width="100%">
<p align=center><font face="Arial" size="1"> |
<a class=copyright href="HomePage.jsp">HOME</a> &nbsp;|
<a class=copyright href="mailto:info@sharebazar.com">Contact us</a>
&nbsp;|
<a class=copyright href="privacyPolicy.htm">Privacy Policy</a> &nbsp;|
<a class=copyright href="http://www.sebi.gov.in/">SEBI</a> &nbsp;|
<a class=copyright href="http://www.nse-india.com/">NSE</a> |
<br>
ShareBazar.com - Your currency for online trading &amp; e-broking in
India </font></p>
</tr>
</table>
</body>

</html>
--------------------------------------------------------------------------------------------------------------------------
TERMS & CONDITIONS
--------------------------------------------------------------------------------------------------------------------------

<html>
<head>
<title>ShareBazar.com - Your currency for online trading and e-broking in
India</title>
<!--Applying styles for the page. -->

</head>
<body bgcolor="#FFFFFF" marginwidth="0" marginheight="0"
background="19a.gif">
<table border=0 cellpadding=0 cellspacing=0 width="100%"
style="border-collapse: collapse" bordercolor="#111111">
<tr bgcolor=#FFFFFF align="left">
<td height=30 valign=top colspan="2" bgcolor="#FF0000">
<font size="7" color="#FFFFCC"><span style="background-color:
#FF0000">ShareBazar.com</span></font>
</td>
</tr>
</table>
<hr color=red>

Page 255 of 292


<table border=0 cellpadding=0 cellspacing=0 width="100%"
style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td colspan=2 bgcolor="#FF0000">
</td>
<td width="13%" bgcolor="#FF0000">
<b><font color="#FFFFFF">
<a href="HomePage.jsp"
class=btn><font
color="#FFFFB7">HOME</font></a></font></b><font
color="#FFFFCC">
</font>
</td>
<td width="17%" bgcolor="#FF0000">
<b><font color="#FFFFFF">
<a href="javascript:history.back()" class=btn> <font
color="#FFFFB7">PREVIOUS</font></a></font></b>
</td>
<td width="14%" bgcolor="#FF0000">
<b><font color="#FFFFFF">
<a href="javascript:history.forward()" class=btn> <font
color="#FFFFB7">NEXT</font></a></font></b><font
color="#FFFFB7">
</font>
</td>
</tr>
</table>
<hr color=red>

<table width="100%" border="0" cellspacing="0" cellpadding="0"


height="30%" style="border-collapse: collapse" bordercolor="#111111"
background="19.gif">
<tr>
<td height="7" bgcolor="#FF0000" valign="bottom" colspan="3"
width="909">
<font face="Arial, Helvetica, sans-serif" size="4"
color="#FFFFCC"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Terms and conditions</b></font><font size="4">
</font>
</td>
</tr>
<tr>
<td height="153" background="../19.gif" width="41"
bordercolor="#FFFFFF">
Page 256 of 292
&nbsp;</td>
<td height="153" background="../19.gif" width="828"
bordercolor="#FFFFFF">
<font face="Arial, Helvetica, sans-serif">In order to become an
active member of ShareBazar.com and gain access to the services
provided, you need to pay an amount of Rs. 1000. On successful
registration, you are provided a
Custom rid. <br><p>
<a>The encryption - electronic scrambling is used to convert your
personal account
details into secret code which is then sent over the Internet.</a> <br>
<a>The worst security gap online is you. Many customers still use
passwords that are obvious or easily guessable. Your date of birth, name
or partner's name just will not do. If an application asks you to create a
password choose a combination of letters and numbers, which is difficult
to guess. </a></font>
</td>
<td height="153" background="19.gif" width="42"
bordercolor="#FFFFFF"></td>
</tr>
</table>
<br>
<hr color=red size=2>
<table border=0 cellpadding=0 cellspacing=0 width="100%">
<tr>
<td align=left height="35" background="../19.gif">
<p align=center><font face="Arial" size="1"> | <a class=copyright
href="HomePage.jsp">HOME</a> &nbsp;|
<a class=copyright href="mailto:info@sharebazar.com">Contact us</a>
&nbsp;|
<a class=copyright href="privacyPolicy.htm">Privacy Policy</a> &nbsp;|
<a class=copyright href="http://www.sebi.gov.in/">SEBI</a> &nbsp;|
<a class=copyright href="http://www.nse-india.com/">NSE</a> | <br>
ShareBazar.com - Your currency for online trading &amp; e-broking in
India </font></p>
</td>
</tr>
</table>
</body>
</html>

--------------------------------------------------------------------------------------------------------------------------
HOW IT WORKS
--------------------------------------------------------------------------------------------------------------------------

Page 257 of 292


<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>New Page 1</title>
</head>

<body background="19a.gif">

<table border="0" cellpadding="0" cellspacing="0" style="border-


collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><i><font size="7"
color="#FFFFCC">
ShareBazar.com</font></i></td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3">
<tr>
<td width="50%" bgcolor="#FF0000">
<p align="center"><b><font size="4"
color="#FFFFCC">HELP</font></b></td>
<td width="17%" bgcolor="#FF0000">
<p align="center"><b><font color="#FFFFFF">
<a href="HomePage.jsp"
class=btn><font
color="#FFFFB7">HOME</font></a></font></b></td>
<td width="17%" bgcolor="#FF0000">
<p align="center"> <b><font color="#FFFFFF">
<a href="javascript:history.back()" class=btn> <font
color="#FFFFB7">PREVIOUS</font></a></font></b> </td>
<td width="16%" bgcolor="#FF0000">
<p align="center"> <b><font color="#FFFFFF">
<a href="javascript:history.forward()" class=btn> <font
color="#FFFFB7">NEXT</font></a></font></b><font
color="#FFFFB7">
</font>
Page 258 of 292
</td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellspacing="1" style="border-collapse: collapse"
bordercolor="#111111" width="100%" id="AutoNumber4"
background="19.gif">
<tr>
<td width="100%"> <b><font size="4" face="Arial, Helvetica, sans-
serif">Online share dealing: How it works</font></b>
<p><font size="2" face="Arial, Helvetica, sans-serif">Online share
dealing means that thousands of investors can have the information
about the stock market from their computer.
</font></p><p></p><p><p></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">This has two main
advantages: </font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><b>&#8226;</b>
You can buy and sell in real time, which means that you know the exact
price at which you are dealing. You want to buy or sell at the given price.
</font></p>
<p>
<b>&#8226;</b><font size="2" face="Arial, Helvetica, sans-serif"> You
may be able to deal on the same terms as the giant investment <font
color=#000000> institutions</font>* - and so get a better price. The
brokers can bundle together trades from many small investors to deal at
the best rate available. Internet share dealing is just beginning to take off
in India, but it looks as though it will start to follow American trends. The
growth in web trade has also prompted the birth of the first 'born on the
net' broker E*Trade. Unlike its Internet competitors, it has no telephone
broking arm - all its customers use the Internet. </font>
</p>
<p><font size="2" face="Arial, Helvetica, sans-serif">Online dealing is
execution only. This means the broker acts only on your instructions.
There is no financial advice about what to buy and sell. </font></p>
<p></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><b>How it
works</b> </font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">Online brokers
require you to set up an account with them.On some sites your password
will also allow you to access broker information supplied to clients. For
example, you can access market information and share tips. </font></p>
<p>
<font size="2" face="Arial, Helvetica, sans-serif">You ask for online
dealing prices for the shares you want to buy…… The money to pay for
the shares will either be taken from your account or charged to your
Page 259 of 292
debit/credit card as appropriate. Once settlement occurs, the share
certificates are sent by post.<i> </i> </font>
</p>
<p>&nbsp;</td>
</tr>
</table>
<hr size=2 color=red>
<table border="0" cellspacing="1" style="border-collapse: collapse"
bordercolor="#111111" width="100%" id="AutoNumber5"
background="19.GIF">
<tr>
<td width="100%">
<p align=center><font face="Arial" size="1"> |
<a class=copyright href="../HomePage.jsp">HOME</a>&nbsp;|
<a class=copyright href="mailto:info@sharebazar.com">Contact us</a>
&nbsp;|
<a class=copyright href="privacyPolicy.htm">Privacy Policy</a> &nbsp;|
<a class=copyright href="http://www.sebi.gov.in/">SEBI</a> &nbsp;|
<a class=copyright
href="http://www.nse-india.com/">NSE</a> | <br> ShareBazar.com -
Your currency for online trading &amp; e-broking in India
</font></p>
</tr>
</table>
</body>

</html>

--------------------------------------------------------------------------------------------------------------------------
MARKET NEWS
--------------------------------------------------------------------------------------------------------------------------

<html>

<head>
<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>NEWS</title>
</head>

<body background="19a.gif">

Page 260 of 292


<table border="0" cellspacing="0" width="100%" id="AutoNumber4"
style="border-collapse: collapse" bordercolor="#111111"
cellpadding="0">
<tr>
<td width="100%" bgcolor="#FF0000"><font size="7"
color="#FFFFB7">
ShareBazar.com</font></td>
</tr>
</table>
<hr color=red>
<table border="0" cellspacing="0" width="100%" id="AutoNumber2"
style="border-collapse: collapse" bordercolor="#111111"
cellpadding="0">
<tr>
<td width="50%" bgcolor="#FF0000">
<p align="center"><b><font color="#FFFFB7"
size="5">NEWS</font></b></td>
<td width="17%" bgcolor="#FF0000">
<p align="center"><b><font color="#FFFFFF">
<a href="HomePage.jsp"
class=btn><font color="#FFFFB7">HOME</font></a></font></b>
</td>
<td width="17%" bgcolor="#FF0000">
<p align="center"> <b><font color="#FFFFFF">
<a href="javascript:history.back()" class=btn> <font
color="#FFFFB7">PREVIOUS</font></a></font></b> </td>
<td width="16%" bgcolor="#FF0000">
<p align="center"> <b><font color="#FFFFFF">
<a href="javascript:history.forward()" class=btn> <font
color="#FFFFB7">NEXT</font></a></font></b></td>
</tr>
</table>
<hr color=red>
<table border="0" cellspacing="0" width="100%" id="AutoNumber1"
height="213" style="border-collapse: collapse" bordercolor="#111111"
cellpadding="0">
<tr>
<td width="100%" height="19" bgcolor="#FF0000">
<p align="center"><b><nobr>
<font color="#FFFFB7" size="4" face="arial,helvetica">News
Resources</font></nobr></b><font color="#FFFFB7" size="4">
</font>
</td>
</tr>
Page 261 of 292
<tr>
<td width="100%" height="10" background="19.gif">
<ul>
<li><a href="http://www.accessindia.com/"> Accessindia.com</a> -
provides daily updates on National Stock Exchange (NSE), and commodity
prices over the counter exchange news.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" height="38" background="19.gif">
<ul>
<li><a
href="http://www.economictimes.com/today/pageguid.htm">Economic
Times</a> - provides coverage of Indian stock markets, portfolios, news
&amp; analysis.&nbsp;
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" height="38" background="19.gif">
<ul>
<li><a
href="http://www.equitymaster.com/">Equitymaster.com</a> - offers
corporate information along with daily stock quotes and graphs.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" height="38" background="19.gif">
<ul>
<li><a href="http://www.financialexpress.com/">Financial
Express</a> - covering news on finance, such as stock market and the
global economy.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" height="17" background="19.gif">
<ul>

Page 262 of 292


<li><a href="http://www.indiafn.com/">IndiaFN</a> - India's
financial news network and personal finance website.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" height="10" background="19.gif">
<ul>
<li><a href="http://www.indiainformer.com/">Indian Informer</a> -
An application for all business information
in India including news, corporate information, economic and other
niche business databases.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" height="19" background="19.gif">
<ul>
<li><a href="http://www.nic.in/iic">Indian Investment Centre</a> -
hosting
information about the investment policies of the Government and
special
incentives offered to NRIs
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" height="19" background="19.gif">
<ul>
<li><a href="http://www.finance.indiamart.com/">Indian Market
Watch</a> - latest stock quotes from the BSE.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" height="10" background="19.gif">
<ul>
<li><a href="http://www.indian-sources.com/">Indian Sources</a> -
sections include business directory, news, investment column and links.
</li>
</ul>
Page 263 of 292
</td>
</tr>
<tr>
<td width="100%" height="9" background="19.gif">
<ul>
<li><a href="http://www.indiaserver.com/bline/bline.html">Business
Line</a>
</li>
</ul>
</td>
</tr>
</table>

<table border="0" cellspacing="0" width="100%" id="AutoNumber5"


style="border-collapse: collapse" bordercolor="#111111"
cellpadding="0">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center"><b><nobr>
<font size="4" color="#FFFFB7" face="Arial,Helvetica">Investment
Services</font></nobr></b><font color="#FFFFB7" size="4">
</font></td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.acumenindia.com/">Acumen Securities
Limited</a> - securities company offering online share trading
information.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://alfalah.com/invest/">Al-Falah Investments
Ltd.</a> - services in stock broking, merchant and investment banking
and corporate finance.</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
Page 264 of 292
<li><a href="http://www.bajajcapital.com/">Bajaj Capital Ltd</a> -
investment consultants.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.amigo.ects.co.in/bnk/Index.html">BNK
Capital Markets Group</a> - investment company specializing in stock
and share brokerage, investment and security trading.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.cholamandalam.com/">Cholamandalam
Investment &amp; Finance Company Limited</a>
- deals in FDs, mutual funds, vehicle, corporate finance, stock broking
and risk consultancy</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.credence.net/">Credence</a> - focusing on
fixed income securities markets and Indian mutual funds.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.easternfinanciers.com/">Eastern Financiers
Ltd.</a> - investment consultants.</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
Page 265 of 292
<ul>
<li><a href="http://www.icici.com/">ICICI Limited</a> - financial
institution assisting industrial development and investment in India.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.matasec.com/">Mata Securities India</a> -
debt broking house dealing in bonds, government securities,
treasury bills, certificate of deposits and debentures.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.angelfire.com/mt/montblanc">Mont Blanc
Financial Services Ltd</a> - for portfolio management services,
investment in shares and discount brokerage.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.nsdl.co.in/">National Securities Depository
LTD. (NSDL)</a>
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.indiamart.com/alankit">NDA Securities
Ltd.</a> - stock brokers, merchants bankers and investment advisors.
</li>
</ul>
</td>
</tr>
Page 266 of 292
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.pruiciciamc.com/">Prudential ICICI Asset
Management</a>
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.sbimf.com/">SBI Mutual Fund</a> - a bank-
sponsored mutual fund.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.skindia.com/finance/index.htm">Skindia
Finance Pvt. Ltd.</a> - brokerage firm focusing on equities, debt, money
markets and GDR arbitrage, and is the creator of the Skindia GDR Index.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.utisel.com/">UTI Securities Exchange
Limited</a> -
investment banking, corporate broking &amp; a, advisory, equity and
debt syndication.
</li>
</ul>
</td>
</tr>
</table>
<table border="0" cellspacing="0" width="100%" id="AutoNumber6"
style="border-collapse: collapse" bordercolor="#111111"
cellpadding="0">
<tr>
<td width="100%" bgcolor="#FF0000">
Page 267 of 292
<p align="center"><b><font color="#FFFFB7" size="4"
face="Arial,">Stock Market Resources</font></b><font
color="#FFFFB7" size="4">
</font></td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li>&nbsp;<a
href="http://www.webindia.com/quantum/">Quantum Stock Market
Yearbook</a> - comprehensive book providing information on 200
companies in India. &nbsp;
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.sebi.com/">Securities and Exchange Board
of India</a> - protects the interests of investors in securities and
regulates the market.
</li>
</ul>
</td>
</tr>
</table>
<table border="0" cellspacing="0" width="100%" id="AutoNumber7"
style="border-collapse: collapse" bordercolor="#111111"
cellpadding="0">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center"><b><font size="4" color="#FFFFB7"
face="Arial,Helvetica">Stock Exchanges </font></b>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://206.252.12.4/bgse/">Bangalore Stock Exchange
Limited</a>
</li>
</ul>
</td>
</tr>
Page 268 of 292
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.bseindia.com/">Bombay Stock
Exchange</a> - contains stock quotes, member information and links.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.iseindia.com/">Inter-Connected Stock
Exchange</a> - national level exchange implementing inter-connectivity
among India's regional stock exchanges.
</li>
</ul>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.nse-india.com/">National Stock
Exchange of India</a>
</li>
</ul>
</td>
</tr>
</table>
<table border="0" cellspacing="0" width="100%" id="AutoNumber8"
style="border-collapse: collapse" bordercolor="#111111"
cellpadding="0">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center">
<b><font size="4" color="#FFFFB7" face="Arial,Helvetica">Bonds
</font></b>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://www.matasec.com/">Mata Securities India</a> -
debt broking house dealing in bonds, government securities, treasury
bills, commercial paper, certificate of deposits and debentures.
Page 269 of 292
</li>
</ul>
</td>
</tr>
</table>
<table border="0" cellspacing="0" width="100%" id="AutoNumber9"
style="border-collapse: collapse" bordercolor="#111111"
cellpadding="0">
<tr>
<td width="100%" bgcolor="#FF0000">
<p align="center">
<b><nobr><font size=4 face="Arial," color="#FFFFB7">Brokerages
</font></nobr></b>
</td>
</tr>
<tr>
<td width="100%" background="19.gif">
<ul>
<li><a href="http://quantumsecurities.com/">Quantum
Securities</a> - specializing in securities trading and investment
management in the Indian markets.
</li>
</ul>
</td>
</tr>
</table>

<hr color=red>
<table border="0" cellspacing="1" style="border-collapse: collapse"
bordercolor="#111111" width="100%" id="AutoNumber10"
background="19.gif">
<tr>
<td width="100%">
<p align=center><font face="Arial" size="1"> |
<a class=copyright href="HomePage.jsp">HOME</a> &nbsp;|
<a class=copyright href="mailto:info@sharebazar.com">Contact us</a>
&nbsp;|
<a class=copyright href="privacyPolicy.htm">Privacy Policy</a> &nbsp;|
<a class=copyright href="http://www.sebi.gov.in/">SEBI</a> &nbsp;|
<a class=copyright href="http://www.nse-india.com/">NSE</a> |
<br>
ShareBazar.com - Your currency for online trading &amp; e-broking in
India </font></p>
</tr>
</table>
Page 270 of 292
</body>

</html>

--------------------------------------------------------------------------------------------------------------------------
FAQ
--------------------------------------------------------------------------------------------------------------------------

<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>ShareBazar</title>
</head>

<body background="19a.gif">

<table border="0" cellspacing="1" style="border-collapse: collapse"


bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="100%" bgcolor="#FF0000"><font size="7"
color="#FFFFCC">
ShareBazar.com</font></td>
</tr>
</table>
<hr color=red>
<table border="0" cellspacing="1" style="border-collapse: collapse"
bordercolor="#111111" width="100%" id="AutoNumber2"
bgcolor="#FF0000">
<tr>
<td width="50%">
<p align="center"><b><font size="4"
color="#FFFFCC">FAQ</font></b></td>
<td width="17%">
<p align="center"><b><font color="#FFFFFF">
<a href="HomePage.jsp"
class=btn><font
color="#FFFFB7">HOME</font></a></font></b></td>
<td width="17%">
<p align="center"> <b><font color="#FFFFFF">

Page 271 of 292


<a href="javascript:history.back()" class=btn> <font
color="#FFFFB7">PREVIOUS</font></a></font></b> </td>
<td width="16%">
<p align="center"> <b><font color="#FFFFFF">
<a href="javascript:history.forward()" class=btn> <font
color="#FFFFB7">NEXT</font></a></font></b><font
color="#FFFFB7">
</font>
</td>
</tr>
</table>
<hr color=red>
<table border="0" cellspacing="1" style="border-collapse: collapse"
bordercolor="#111111" width="100%" id="AutoNumber3"
background="19.gif">
<tr>
<td width="100%">&nbsp;<p align=justify><font color=#ed921c
face=" Arial, Helvetica, sans-serif" size=3><b><font
color=#000000>Why Online Share Trading?</font></b></font></p>
<p align=justify><font color=#294587 face=" Arial, Helvetica, sans-
serif"><font size=2>
<a href="#a1" style="TEXT-DECORATION: none"><b>Is trading through
the Internet safe? </b></a><b><br><br>
<a href="#a2" style="TEXT-DECORATION: none">What about security of
my money, demat shares and my transaction documents? </a><br>
<br> <a href="#a3" style="TEXT-DECORATION: none">Isn't trading
through the Internet a difficult and cumbersome process? </a><br>
<br>
<a href="#a4" style="TEXT-DECORATION: none">But I am not
comfortable with Internet, or with finance, how can online trading be easy
for me?</a> <br> <br>
<a href="#a5" style="TEXT-DECORATION: none">Isn't trading through
the Internet a costly affair?</a> <br> <br>
<a href="#a6" style="TEXT-DECORATION: none">I am pretty satisfied
with my present broker who serves me offline. Why should I choose to go
online to trade shares? </a><br> <br>
<a href="#a7" style="TEXT-DECORATION: none">How frequently are the
prices updated on at all these online trading sites? <br></a><br>
<a href="#a8" style="TEXT-DECORATION: none">How can I be sure that
I shall be trading at a price I want to or at a price appearing on the
application?</a> <br><br>
<a href="#a9" style="TEXT-DECORATION: none">What other services
can I get by trading shares online? </a></b></font><br>
&nbsp;
</font></p>
Page 272 of 292
<p align=justify>&nbsp;</p>
<p align=justify>&nbsp;</p>
<p align=justify><font color=#294587 face=" Arial, Helvetica, sans-
serif"><b><br> </b><font size=2 font><b><font color=#000000><a
name=a1>Is trading through the Internet safe?</a> </font></b><font
color=#000000><br>
The safety of transactions on the Internet depends on the encryption
system used. The better this encryption system, the more difficult it is for
any person to hack the application. </font></font></font></p><p>
<font color=#000000 face=" Arial, Helvetica, sans-serif"
size=2>Internationally, the best system available today, is the 128-bit
encryption.
ShareBazar.com is one of the few online share-trading sites in the country
equipped with this 128-bit encryption. <br><br>
Secondly, you too can ensure the safety of the transactions online. You
normally get a secured user id and password, the secrecy of which is to
be maintained entirely by you. <br><br>
Thirdly, if the transaction system requires no manual intervention, you
further improve the safety in the transactions. This eliminates the
possibility of any manual intervention. It means that orders are directly
sent to the exchange ensuring that you get the best and right price. <br>
<br><b><a href="#top" style="TEXT-DECORATION: none">Top
</a></b><br>
<b><a name=a2></a></b><br>
<b>What about security of my money, demat shares and my transaction
documents?</b>
<br>In systems where the broking, banking and demat accounts are
completely integrated, your money remains in your own bank account
and does not get transferred to the broker's pool account.<br><br>
<b><a href="#top" style="TEXT-DECORATION: none">Top
</a></b><br>
<a name=a3></a><br>
<b>Is trading through the Internet a difficult and cumbersome process?
</b><br>The experience of trading through Internet depends a great
deal on the type of product offered by the application. For example, the
paperwork involved after every trade in writing cheque or TIFDs.
<br><br>
You would then seek a system that eliminates these processes.
<br><br>
In online trading, the greater the back-end integration of the system and
the amount of work the sites do for you, the greater is the convenience
available to you. <br><br>
<b><a href="#top" style="TEXT-DECORATION: none">Top
</a></b><br>
<b><a name=a4></a></b><br>
Page 273 of 292
<b>I am not comfortable with Internet or with finance, how can online
trading be easy for me?</b><br>
Contrary to common perceptions, trading through Internet does not
require either any expertise in working on the computer or any special
financial skills. <br><br>
You can try the demonstration of the online trading sites to find out why
others like you, with little or no knowledge about the Internet or finance,
have switched to online trading. You can attend the demonstrations held
by websites in your city. <br><br>
<b><a href="#top" style="TEXT-DECORATION: none">Top </a></b>
<a href="http://content.icicidirect.com/whyonline.asp#top"><br></a>
<a name=a5></a><br><b>Is trading through the Internet a costly
affair? </b><br>
The convenience provided by online trading is worth than the costs
involved. <br><br>
The online trading sites are not too costly. For example, a trader can
trade shares on margin at rates as low as 0.10%* and if one wishes to
trade in cash, then the rates applicable are as low as 0.4%*. <br><br>
However, it is important to compare various online trading sites on
brokerage rates, inclusive of all sub-charges. <br><br>
<b><a href="#top" style="TEXT-DECORATION: none">Top
</a></b><br>
<a name=a6></a><br>
<b>I am pretty satisfied with my present broker who serves me offline.
Why should I choose to go online to trade shares? </b><br>
Many of those customers who have chosen to trade shares online today,
please compare all such websites and then make a decision. <br><br>
<b><a href="#top" style="TEXT-DECORATION: none">Top
</a></b><br>
<a name=a7></a><br>
<b>How frequently are the prices updated at all these online trading
sites? </b><br>
The tickers available at online trading sites provide instantaneous
updates.
Some websites also offer to transact in shares instantaneously and with
convenience. <br><br>
<b><a href="#top" style="TEXT-DECORATION: none">Top
</a></b><br>
<a name=a8></a><br>
<b>How can I be sure that I shall be trading at a price I want to or at a
price appearing in the application? </b><br>The solution to your
problem could be provided in different ways by different online share
trading sites. At

Page 274 of 292


ShareBazar.com, for any trade order, the customer is asked to click
"Proceed" after he has the opportunity to completely check the order
verification form. </font></p>
<p><font color=#000000 face=" Arial, Helvetica, sans-serif" size=2>
Moreover, you have the option of modifying or cancelling the transaction
till the moment the transaction is executed at the exchange.</font> </p>
<p><font color=#000000 face=" Arial, Helvetica, sans-serif"
size=2>Finally, online trade confirmations reaches our customers within
minutes, while contract notes are dispatched at the end of the day and
reach within 24-36 hours.</font></p>
<p><font color=#000000 face=" Arial, Helvetica, sans-serif"
size=2>With
ShareBazar.com, you decide what you want to buy and buy the share at
the price you want and therefore you are in total control of your
trades.<br><br>
<b><a href="#top" style="TEXT-DECORATION: none">Top
</a></b><br>
<a name=a9></a><br>
<b>What other services can I get by trading shares online? </b><br>
Internet has brought to the retail investors what was until sometime ago
the sole prerogative of large brokerage houses and high net worth
individuals. Reliable research with an enviable record of accomplishment
is available free of cost. </font></p>
<p><font color=#000000 face=" Arial, Helvetica, sans-serif" size=2>An
investor can now access and do the technical analysis of the information
retrieved, such as current rate of shares. You can know about other
leading brokers. You can also access live news from international news
agencies, such as Reuters and CNBC, read about what the leading CEOs
think about the state of the economy and the capital market.
</font></p>
<p>&nbsp;</td></tr>
</table>
<hr color=red size=2>
<p align=center><font face="Arial" size="1"> |
<a class=copyright href="HomePage.jsp">HOME</a> &nbsp;|
<a class=copyright href="mailto:info@sharebazar.com">Contact us</a>
&nbsp;|
<a class=copyright href="privacyPolicy.htm">Privacy Policy</a> &nbsp;|
<a class=copyright href="http://www.sebi.gov.in/">SEBI</a> &nbsp;|
<a class=copyright href="http://www.nse-india.com/">NSE</a> | <br>
ShareBazar.com - Your currency for online trading &amp; e-broking in
India </font></p>
</body>
</html>
--------------------------------------------------------------------------------------------------------------------------

Page 275 of 292


Thie Is the End of the Code
------------------------------------------------------------------------------------------

CODE EFFICIENCY:
Due to modular concept of Java Server Pages and
Java Script this software also inherits this concept in the coding.
Most of codes are efficient enough to perform quick, accurate
retrieval of data, validation and showing outputs. In this software,
most of codes are used which were designed and tested by famous
vendors, such as, Sun Microsystems, Crystal Corporation etc. We
have used advanced technology which help user and vendor to
design a software which provides better, accurate design and
reusability code, such as, Data Mining technology.

CODE OPTIMIZATION:
Most of codes are reused to reduce repeated coding
and the result set are reused where needed due to its modular
concept, it is possible to reduce coding. The are following points
represent the code optimization.
• use of modules
• fixed type variable
• short and meaning full name
• disconcerted record
• connection established once
• in built function
• different scope of variable for different purpose
• maximum use of independent procedure
• use of function
• function

Use of Module

Page 276 of 292


With the help of module we avoid the repetition of code
for example: we use module to provide separation of the different
forms so that in case any problem encounter in future then it’s easy
to detect code responsible for it and avoid repetition of same code
because we use multiple input forms .

Fixed Type Variable


I am using fixed type variable not a variant
for example: when we want input date I have used date in numeric
value, use integer or float, for character use string.

Short and Meaning Full Name


I have use short and meaning full name
for example name for name add for address etc.

Disconnect Record
The disconnection of result set close with in its
scope because it may produce some error.

In Built Function
I have used in built function of Java. I.e.
showMessageDialog etc.

Procedure
I have used procedure i.e. fetch the record, clear the text
or caption etc.

VALIDATION CHECKS:
I have use following type of checks/ data validations:
i) data type
ii) length
iii) constraints
iv) blank field
v) format

Data type:

Page 277 of 292


I have use String type for character, int for numeric, and
Date for date type. No numeric field insert in date. Character never
inputted in numeric field as phone no never accept character if any
person input wrongly give message. When this problem is removed
then user perform further operation

Length:
When we define a max length. Then it never accepts
more data .for example if I define numeric length is 5 then it store
either equal to length or less than length. If user gives more
character than required then display message and stop processing.

Constraints:
In this I am defining range of data if data is less than then
display error with message. For example code of password is four
character . The field of date must be 8 character.

Blank field:
When users add data and some field is blank then it
display message with out halt, But stop processing.

Format:
The pre define format is used not change daily to daily
for example format of date DDMMYYYY: 01012002 is used in all date
type field. If user inserts an other format then display message.

TESTING TECHNIQUE AND TESTING


STRATEGIES
There are following rules that can serve well as testing objectives:
i) Testing is a process of executing a program with the
intent of finding an error.
ii) A good test case is one that has a high probability of
finding an as-yet-undiscovered error.

Page 278 of 292


iii) A successful test is one that uncovers as-yet-
undiscovered error.
There are two types of testing techniques:

i) White box testing.


ii) Black box testing.

White box testing:


White box test focus on the program control
structure. Test cases are derived to ensure that all statement
in the program has been executed at least once during testing
and that all logical condition has been exercised. Basic path
testing, a white box testing, makes use of program graph to
derive the set of linearly independent test that will ensure
coverage.

Condition Testing:
Condition testing is tests case design method that exercise the
logical conditions contain in a program module. a simple
condition is a Boolean variable or a relational expression.
Branch Testing:
I have used Branch testing is probably the for compound
condition, the true and false (in project i.e. null values) for
each branch.
Data Flow Testing:
I have used data flow testing due to check the path of program
according to the locations of definitions and uses of variables in
the program.

Loop Testing:
In our project I have use only simple loop. And I have use m
pass through the loop where m<n.

Page 279 of 292


BLACK BOX TESTING:
Black box testing focuses on the functional requirements of the
software. That is, black-box testing enable the software
engineer to derive set of input conditions that will fully
exercise all functional requirements for a program.

Graph-Based Testing Method:


I have used graph-based testing method for removing errors
associated with relationships. The first step in this testing is to
understand the objects that are modeled in software and the
relationship that connect these objects.
Equivalence Partitioning:
This testing is used for the following reason:
1. specific numeric values
2. range of values
3. set of related values
4. Boolean condition
For example
Check in phone number, code generation, share type, payment
type, password etc.

Boundary Value Analysis:


Boundary value analysis is a test case design technique that
complements equivalence partitioning. Rather than selecting
any element of equivalence class the selection of test cases at
the edges of the class. Rather than focusing solely on the input
condition,
The point of equivalence partitioning as;

Page 280 of 292


1) An input condition specifies a range boundary by values a
and b, test cases should be design with values a and b and
just above and just below a and b.
2) An input condition specific a number of values, test cases
should be developed that exercise the minimum and
maximum number.

TESTING STRATEGIES
System Testing
During system testing the system is used experimentally to
ensure that the software does not fail i.e. it will run according
to its specifications and in the way users expect. Special test
data are input for the processing and the results examine. A
limited number of users try to use it in unforeseen ways. It is
preferable to discover any surprise before the organization
implements the system and depend upon it.

In many organizations persons other than those who wrote the


original programs to ensure more complete and unbiased
testing and more reliable testing perform testing.
The norms that were followed during the phase were that after
the developer of the software has satisfied regarding every
aspect of the software under consideration he is required to
release the program source code. A setup name release is used
to copy the name file from the developers’ user area to a
project area in the directory named with developer user name.
Here all the final testing used to be done by persons other than
the developer himself .if some changes were desired in the
program the developer were required to use another setup.
Retrieve, which copied back the latest version of the program to
developer areas.

Page 281 of 292


As in this system data is entered at different levels I considered
providing various types of checks like range check, validity check,
completeness check etc. in different data entry screens according to
the requirements.
Since the user are not familiar to the new system the data screens
were designed in such a way that were-.
• consistent
• easy to use
• has a fast response time
The following convention were used while designing the various
screen:

Unit Testing :
In unit testing I have testing a single program module in an isolated
environment. Testing of the processing procedures is the main
focus.

Integration Testing :
Because of interfaces among the system modules, we use
integration testing. In other word’s it ensures that the data moving
between the modules is handled as intended.
System Testing :
System testing is the testing of the system against its initial
objective. It is done either in a simulated environment or in live
environment.

Test Review :
Test review is the process that ensures that testing is carried out as
planned. Test review decides whether or not the program is ready to
be shipper out for implementation

Security Testing :
Security testing attempt to verify that protection mechanism built
into a system will, in fact, protect it form penetration mechanisms.

Page 282 of 292


SYSTEM IMPLEMENTAT ION
Implementation is the process of having system personnel
check out and put new equipment into use train users install
the new application and construct any files of data needed to
use it.
Depending on the size of the organization that will be involved
in using the application and the risk associated with its use
developers may choose
To pilot the operation in only one area of the firm say in one
department or with only one or two persons. Sometimes they
will run the old and new systems together to compare the
results. In still other situations developers will stop using the
old system one-day and begin to use the new one the next day.
Anyway each implementation strategy has its merits
Depending on the Clinic situation in which it is considered.
Regardless of the implementation strategy used developers
strive to ensure that the systems initially used is trouble free.
Once installed applications are often used for many years.
However both the organization and the user will change and the
environment will be different over weeks and months. Therefore
the application will be different over weeks and months.
Therefore the application will undoubtedly have to be
maintained. Modifications and changes will be made to
software, files or procedures to meet emerging user
requirements. Since organization systems and the ShareBazar
environment undergo continual change, the information systems
should keep pace. In this sense implementations an ongoing
process.

Page 283 of 292


DATA LOADING
1-The whole database created earlier for development purpose
was dropped and then using case tools the entire database was
freshly created.
2-Required data files executables scripts were released into
client server from the developer machine.

USER TRAINING
Users of the proposed system had already the feel of the
system during the development stages. They were given user
documentation, which gave them the exact steps to be
performed for getting their job done starting from getting the
terminals on. Most of the users were quick to get their job done
in a right way after the very first training class. They were
given the explicit advantages of the new system and also the
areas it was having shortcomings.
After this was the stabilizing the system as the users started to
give in new suggestions and requirements. For us the
maintenance phase had begun.

Scope of future enhancement


It is unreasonable to consider
a computer based information system complete or finished; the
system continues to evolve throughout its life cycle, even if it’s
successful. Due to the creative nature of the design, there
remain some lapses inaccurate communications between the
users and the developers. So, certain aspects of the system
must be modified as operational experience is gained with it.
As users work with the system, they develop ideas for change
and enhancements.

Page 284 of 292


Conclusion
The ShareBazar.com is looking forward to a more
efficient and streamlined processing system and better
coordination between customers and the finance leading to
desired results in terms of quality, service, profits, market,
share and competitive ness.

MAINTENANCE:
Maintenance of the project is very easy due to its
modular design and concept any modification can be done very
easily. All the data are stored in the software as per user need & if
user wants to change he has to change that particular data, as it
will be reflected in the software every where. Some of the
maintenance applied is: -

(1) BREAKDOWN MAINTENANCE :-


The maintenance is applied when an error
occurs & system halts and further processing can not be done .At
this time user can view documentation or consult us for rectification
& we will analyze and change the code if needed. Example: - If user
gets a error “report width is larger than paper size” while printing
report & reports can not be generated then by viewing the help
documentation & changing the paper size to ‘A4’ size of default
printer will rectify the problem.”
(2) PREVENTATIVE MAINTENANCE : -
User does this maintenance at regular intervals for
smooth functioning (operation) of software as per procedure and
steps mentioned in the manual.
Some reasons for maintenance are: -

Page 285 of 292


(a) Error Correction: - Errors, which were not caught during
testing, after the system has, been implemented. Rectification
of such errors is called corrective maintenance.
(b) New or changed requirements:- When Clinic requirements
changes due to changing opportunities.
(c) Improved performance or maintenance requirements: -Changes
that is made to improve system performance or to make it
easier to maintain in the future are called preventive
maintenance.Advances in technology (Adaptive maintenance):
- Adaptive maintenance includes all the changes made to a
system in order to introduce a new technology.

COST ESTIMATION OF THE PROJECT


I am using the COCOMO model for estimating the cost of the system
.It is regarded as an semidetached system. Since this project is
somewhat small, COCOMO estimate might be inaccurate. COCOMO is
designed for use on system larger than 2 KDL.
This model estimates the total effort in term of person-month of
technical project staff. It does not include the cost of the secretarial
staff that might be needed. The basic steps in this model are:

1 ) O b t a i n a n in i t i a l e s t i m a t e o f t h e d e v e lo p m e n t e f f o r t f r o m th e
estimate of thousands of delivered lines of source code (KDL).
2 ) D e te r m i n e a s e t o f m u l t i p l y i n g f a c t o r f r o m d i f f e r e n t a t t r i b u t e o f
the project.
3) Adjust the effort estimate by multiplying the initial estimate
with all the multiplying factor.

T h e i n i t i a l e s t i m a t e i s d e te r m i n e d b y a n e q u a t i o n o f t h e f o r m u se d
i n t h e s t a t i c , s i n g l e - v a r i a b le m o d e s , u s in g K D L a s m e a s u r e o f s i z e .

Page 286 of 292


T o d e te r m i n e t h e i n i t i a l e f f o r t E i i n p e r s o n - m o n t h s t h e e q u a t i o n
used is of the type
b
Ei = a*(KDL)
T h e r e a r e 1 5 d if f e r e n t a t t r i b u t e , c a l l e d c o s t d r i v e r a t t r i b u t e s t h a t
d e te r m i n e the multiplying factors. These factors depend on
product, computer, personal, and technology.

All 15 factor are multiplied together to get the effort


adjusment factor(EAF). The final cost estimate ,E, is obtained by
multiplying the initial estimate by the EAF.
E = EAF * Ei
Cost estimation
T h e s i z e e s t i m a t e s f o r th e s e i n l i n e s o f c o d e a r e .
6803=6.803 KDL
Category of project is semidetached so constraint of a & b a
follows
A=3.0 & b =1.12
So, Ei= 3.0(6.803)1.12
= 3.0(8.563)
= 25.689
Rating of multiplier for different cost drivers.

C ost d r i v er R at i ng V al ue s

S o ftwa re rel i ab i l i ty v ery h i g h 1. 40


Data base size high 1.08
Product complexity high 1.15
Computer turn around time very high 1.15
Analyst capability high 0.86
Application experience nominal 1.00
Programmer capability high 0.86

Page 287 of 292


Programming language exp. High 0.95
Morden prog. Practice high 0.95
Use of software tools low 1.10
Development schedule nominal 1.00

The effort adjustment factor(EAF) is


E AF =
1. 4*1. 08*1. 15 *1. 15*. 86 *1*. 86 *. 95*. 95* 1. 1*1

=1. 46
th e i n i ti al effo rt o f th e p ro jec t i s

E = E i *E AF

= 1. 46*20. 789
=30. 52 PM

PERT CHART, GANTT CHART:


P E R T , G A N T c h a r t p r o v id e q u a n t i t a t i v e t o o l s t h a t a l l o w
t h e s o f t w a r e p l a n n e r t o d e te r m i n e t h e c r i t i c a l p a t h - t h e c h a i n o f
tasks that determines the duration of the project; establish “most
l i k e l y ” t i m e e s t i m a t e s f o r in d i v i d u a l t a s k b y a p p l y i n g s t a t i c a l l y
m o d e l s ; c a l c u l a t e “ b o u n d a r y t i m e s ” t h a t d e f in e a t i m e “ w i n d o w ”
for a particular task
B o u n d a r y t i m e c a l c u l a t i o n s c a n b e v e r y u se f u l i n s o f t w a r e
project scheduling.

Page 288 of 292


T he sc he d ul i ng of my p r oje ct i s as f ol l ow s:

WORK TASKS (week) ESTIMATED TIME

P r o b l e m E v a l u a t i o n ( P E) 1
Calculating Fact (CF) 1
A n a l y s i s ( A) 3
Identify Need & benefits (INB) 1
Feasibility (F) 1
Design Layout (DL) 1
Detail Design (DD) 2
Testing of Design (TD) 2
Coding (C) 4
Testing of Code (TC) 5
C o d e O p ti m i z a t i o n ( C O ) 1
Implementation (I) 2

Page 289 of 292


Now the PERT chart of the above data is as follows:

P E ( 1) 0 CF (1)

2 1

IND (1) F (1) A (3)

4 3
5

DL (1)

DD (2)

7
TD (2) C (4)

9 8
DUMMY
---- TC (5)

10
CRITICAL PATH 11 C O ( 1)

I (2)

12

Page 290 of 292


BIBLIOGRAPHY

BOOK NAME AUTHOR


NAME

1. Pure Java Server Pages James


Goodwill
2. JavaScript Application Jerry
Cookbook (Paperback) Bradenbaugh

3. Java Server Pages OReilly

4. Java Server Pages SAMS

5. Java Script SAMS

6. JavaScript Unleashed R. Allen Wyke


(4th Edition)

7. An Introduction To Data Bipin C. Desai


Base System

Page 291 of 292


GLOSSARY
E.R.D. Entity-Relationship Diagram

D.F.D. Data Flow Diagram

DATA DICITIONARY : All definitions of elements in the


system- data flows,processes,and data stores-are described in detail
in a data dictionary.

COUPLING : Coupling is a measure of interconnection among


modules in a software structure.

COHESION : Cohesion is a natural extension of the information


hiding concept.

PRIMARY KEY : The column should be able to uniquely


identified each row. Such a column is candidate for a primary key.

FOREIGN KEY : The Foreign key is a set of attribute of one


relvar R2, whose values are required to match values of some
candidate key of some relvar R1 .

COMPOSITE KEY : T he composite key is a combination of two


or more than two columns which are identified as primary key.

SCHEMA : The term Schema is used to mean & overall chart of


all the data item types and record –types stored in database.

Page 292 of 292


ENTITY & ATTRIBUTE : All such item about which relevant
information is stored in the database are called Entities. The
qualities of the entity which we store as information are called
Attributes.

SHARING DATA : A database allows the sharing of data under


its control by any numberof application program or users.

DATA INTEGRITY : Data integrity means that the data


contained in the databaseis both accurate & consistent.

DATA SECURITY : Data is a vital importance to an


organization and may be confidential. Such confidential data must
not be accessed by unauthorised persons. Different level of security
could be implemented for various types of data and operations .

Page 293 of 292

Potrebbero piacerti anche