Professional Documents
Culture Documents
Topic Page No
General Market......................................................................................4
Share Listing.........................................................................................5
Objective...............................................................................................5
Identification Of Need...........................................................................5
Proposed System...................................................................................6
Feasibility Study.................................................................................8
Technical Feasibility:...........................................................................9
Operational Feasibility:......................................................................10
Economic Feasibility...........................................................................11
Business Modeling:.......................................................................12
Data Modeling:..............................................................................14
Process Modeling:.........................................................................15
Application Generation:.................................................................15
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
Customer Module.................................................................................21
Company Module.................................................................................22
Registration Module.............................................................................22
Feedback Module.................................................................................23
Customer..........................................................................................26
Share................................................................................................27
Company...........................................................................................28
Feedback..........................................................................................29
Error Messages.................................................................................30
Designing Of System............................................................................30
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
System Implementation.....................................................................280
Conclusion.........................................................................................282
Maintenance:.....................................................................................282
Breakdown Maintenance:-.................................................................282
Preventative Maintenance:................................................................282
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.
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.
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.
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. Registration
2. Login
3. Feedback
4. FAQ’s
2) Customer Module
o Buy Share
o Sell Shares
o Contact companies
o Give feedback.
3) Company Module
o Shares listing
Page 8 of 292
o Change share rates
o Feedback
4) Registration Module
6) Feedback Module
o Buy Shares
o Sell Shares
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.
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:
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.
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.
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
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:
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.
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.
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 Reusable Components
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 Summary data for online analytical processing. SQL Server also includes
tools for
o Visually designing databases and analyzing data using English-based
questions.
JDBC
Page 20 of 292
The JDBC API makes it possible to do three things:
User Interface
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.
1. Registration
2. Login
3. Feedback
Page 21 of 292
4. FAQ’s
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.
o Buy Share
o Sell Shares
o Contact companies
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.
o Shares Details
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.
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.
o Buy Shares
o Sell Shares
o Change requisition
Page 24 of 292
DATA FLOW DIAGRAMS
ShareBazar DB
2. Admin
1. User Login
Process
3. User
Page 25 of 292
MAIN SCREEN (HOME PAGE)
Main Screen /
Client Homepage
Select
Select
Login
Select Select
Registeration
Feedbac
USTOME
FAQ
k
Authenticate
C
Fetch &
Store Fetch
Seller Buyer
Page 26 of 292
CUSTOMER
Customer
CustomerMaster
Page 27 of 292
SHARE
Add
Add Share
ShareListing Sharee
Category
Store Sold
Save
&
Delete
Share_List
Page 28 of 292
COMPANY
Company
ShareList Company_Master
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
ShareList CatWiseShareDetails
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.
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:
Page 33 of 292
i) Identifying the relationship :
The relationships between
entities, within and outside the system were identified.
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.
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.
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
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
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
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
well as the Companies can move further or any new customer can make
Page 46 of 292
Login Screen for Customer
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
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
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
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
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
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
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
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
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
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
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
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
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
Page 65 of 292
Market news
provides various resources of the latest news and this is the one of the
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 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
Page 67 of 292
Share Details screen
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
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
Page 70 of 292
Delete Share Listing Screen
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
permanent.
Page 71 of 292
Contact Company Screen
select the name of the company from the combo box that show all the
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
Page 73 of 292
Membership ID Allocation Screen
This is the common screen for the customer as well as the companies.
will be generated by our system. Every user has his own unique
Page 74 of 292
DEVELOPMENT OF BACK-END
Scripts used to create Tables in MS SQL Databese
CompanyMaster
CustomerMaster
ShareMaster
Buyer
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
Seller
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">
Page 80 of 292
<td width="96%" height="9" bgcolor="#FFFFF0"
bordercolor="#FFFFCC" colspan="3" background="19.gif"> </td>
<td width="2%" height="178" rowspan="4" bgcolor="#FFFFF0"
bordercolor="#FFFFCC" background="19.gif"> </td>
</tr>
<tr>
<td width="13%" height="120" background="19.gif"
bordercolor="#FFFFFF"> <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"> 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. </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">
"<b>ANY
TIME ANY WHERE</b>"</font><font color="#FF6666">
feature</font><font color="#FF0000">.</font></span></td>
<td width="13%" height="114" background="19.gif"
bordercolor="#FFFFCC"> <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"> </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"> </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"> </td>
</tr>
</table>
<hr color=red>
</center>
<p align=center><font face="Arial" size="1"> |
<a class=copyright href="HomePage.jsp">Home</a> |
<a class=copyright href="mailto:info@sharebazar.com">Contact us</a>
|
Page 82 of 292
<a href="DosDonts.htm">DO's & Don'ts</a> |
<a href="terms.htm">Terms</a> |
<a href="works.htm">Help</a> | <br> ShareBazar.com - Your currency
for online trading & 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>
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"> </td>
</tr>
<tr>
<td width="25%" height="43" colspan="2"> </td>
<td width="13%" height="43"> </td>
<td width="12%" height="43">
<p align="left">
<font size="4" color="#FF0000"> Login Name :</font></td>
<td width="13%" height="43"> <input type=text
name=loginname value="" size="20" tabindex="1"></td>
<td width="12%" height="43"> </td>
<td width="25%" height="43" colspan="2"> </td>
</tr>
<tr>
<td width="4%" height="45" rowspan="2">
<p align="right"><font size="4"
color="#FF0000"> </font></td>
<td width="18%" height="22">
<a href="HomePage.jsp">Home</a></td>
<td width="11%" height="45" rowspan="2">
</td>
<td width="15%" height="45" rowspan="2">
<p align="left"><font color="#FF0000" size="4"> Membership
ID :</font></td>
<td width="24%" height="45" rowspan="2"> <input type=text
name=memid value="" size="20" tabindex="2"></td>
<td width="7%" height="45" rowspan="2"> </td>
<td width="18%" height="22">
<p align="left"><a href="marketNews.htm">Market News</a></td>
<td width="3%" height="45" rowspan="2"> </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"> </td>
<td width="18%" height="22"><a
href="terms.htm">Terms&Condition</a></td>
<td width="11%" height="44" rowspan="2">
</td>
<td width="15%" height="44" rowspan="2">
<p align="left">
<font size="4" color="#FF0000"> Password :</font></td>
<td width="24%" height="44" rowspan="2"> <input
type=password name=Pword value="" size="20" tabindex="3"></td>
<td width="7%" height="44" rowspan="2"> </td>
<td width="18%" height="22">
<p align="left"><a href="faq.htm">FAQ</a></td>
<td width="3%" height="44" rowspan="2"> </td>
</tr>
<tr>
<td width="18%" height="22"><a
href="DosDonts.htm">Dos&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"> </td>
</tr>
<tr>
<td width="100%" height="70" colspan="8"> </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>
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"> </td>
<td width="18%" height="19"><a
href="terms.htm">Terms&Condition</a></td>
<td width="10%" height="37" rowspan="2">
</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"> <input
type=password name=Pword value="" size="20" tabindex="3"></td>
<td width="8%" height="37" rowspan="2"> </td>
<td width="17%" height="19">
<p align="left"><a href="faq.htm">FAQ</a></td>
<td width="3%" height="37" rowspan="2"> </td>
</tr>
<tr>
<td width="18%" height="18"><a
href="DosDonts.htm">Dos&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"> </td>
</tr>
<tr>
<td width="100%" height="70" colspan="8"> </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">
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%"> </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%"> </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"> </td>
</tr>
<tr>
<td width="100%" height="1"> <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 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 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">
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%"> </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"> </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">
</html>
--------------------------------------------------------------------------------------------------------------------------
CUSTOMER MODULE
<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";
--------------------------------------------------------------------------------------------------------------------------
BUY SHARES
--------------------------------------------------------------------------------------------------------------------------
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">
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"> </td>
<td width="21%" height="55" background="19.gif" align="right">
--------------------------------------------------------------------------------------------------------------------------
SELL SHARES
--------------------------------------------------------------------------------------------------------------------------
<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">
--------------------------------------------------------------------------------------------------------------------------
CONTACT COMPANY
--------------------------------------------------------------------------------------------------------------------------
stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet
.CONCUR_READ_ONLY);
rs=stmt.executeQuery("select name from CompanyMaster");
while(rs.next())
{
num++;
}
<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">
--------------------------------------------------------------------------------------------------------------------------
COMPANY DETAILS
--------------------------------------------------------------------------------------------------------------------------
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">
</html>
--------------------------------------------------------------------------------------------------------------------------
EDIT CUSTOMER PROFILE
--------------------------------------------------------------------------------------------------------------------------
<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);
<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;
}
}
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;
}
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>
<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
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">
</body>
<script language="javascript">
document.forms[0].name.focus();
</script>
</html>
--------------------------------------------------------------------------------------------------------------------------
SHARES DETAILS
--------------------------------------------------------------------------------------------------------------------------
function func_sub(frmEnq)
{
frmEnq.action="index3.jsp"
frmEnq.method="post"
frmEnq.submit()
}
</script>
<body background="19a.gif">
-------------------------------------------------------------------------------------------------------
-------------------
<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">
</html>
--------------------------------------------------------------------------------------------------------------------------
SHARE HOLDER LIST
--------------------------------------------------------------------------------------------------------------------------
<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">
<%
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"> <%=name%></td>
<td width="13%" background="19.gif"> <%=qty%></td>
<td width="19%" background="19.gif"> <%=dt%></td>
<td width="30%" background="19.gif"> <%=email%></td>
<td width="16%" background="19.gif"> <%=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
--------------------------------------------------------------------------------------------------------------------------
<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");
<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">
<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
--------------------------------------------------------------------------------------------------------------------------
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)
<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">
</body>
<script language="javascript">
document.forms[0].deleteSH.focus();
setValue();
</script>
</html>
--------------------------------------------------------------------------------------------------------------------------
DELETE SHARES JSP
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
EDIT COMPANY PROFILE
--------------------------------------------------------------------------------------------------------------------------
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<%
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"> Name</font></td>
<td width="33%" height="31" colspan="3"> <input type=text
name=nameCom disabled value="" size=30 tabindex="1"><font
color="#000080"> *</font></td>
<td width="16%" height="31"><font
size="4"> Fax &nb
sp; </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"> <img
src="13.jpg" width="96%" height="103%" vspace="1"
border="0"></td>
</tr>
<tr>
<td width="13%" height="29"><font
size="4"> Address</font></td>
<td width="33%" height="29" colspan="3"> <input type=text
name=add1 value="" size=30 tabindex="2"><font color="#000080"> *
</font> </td>
<td width="16%" height="29"><font size="4"> E-
mail  
; </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"> </td>
<td width="33%" height="30" colspan="3"> <input type=text
name=add2 value="" size=30 tabindex="3"></td>
<td width="11%" height="29"><font size="4"> 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"> </td>
<td width="33%" height="10%" colspan="3"> <input type=text
name=add3 value="" size=30 tabindex="4"></td>
<td width="8%" height="29" align="left"><font
size="4"> 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"> City</font></td>
<td width="33%" height="10%" colspan="3" > <input
name=city value="" size=15 tabindex="5">
<font color="#000080">*</font>
</td>
<td width="7%" height="10%"> <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"> State</font></td>
<td width="22%" height="32" colspan="3"> <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">
</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"> Country</font></td>
<td width="22%" height="30" colspan="2"> <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">
Company's Background (Brief write-up)</font></td>
</tr>
<tr>
Page 188 of 292
<td width="13%" height="24"><font size="4"> Pin
code</font></td>
<td width="22%" height="24" colspan="2"> <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"> <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"> Phone &
nbsp; </font></td>
<td width="22%" height="35" colspan="2"> <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">
<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"> </td>
<td width="31%" height="1"> <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"> </p>
</body>
<script language="javascript">
setvalue();
</script>
</html>
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
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;
}
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 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">
<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;
}
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;
}
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;
}
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>
</html>
--------------------------------------------------------------------------------------------------------------------------
COMPANY VERIFICATION
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
COMPANY DETAILS
--------------------------------------------------------------------------------------------------------------------------
<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">
}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%"> <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%"> <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%"> <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%"> <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%"> <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%"> <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%"> <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%"> <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%"> <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%"> <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%"> <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
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
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");
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"> Payment</font></b></font></td>
</tr>
<tr align=middle valign=top>
<td colspan=2 width="694" height="19"> </td>
<tr>
--------------------------------------------------------------------------------------------------------------------------
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");
%>
}
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"> Payment</font></b></font></td>
</tr>
<tr align=middle valign=top>
<td colspan=2 width="694" height="19"> </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"> <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"> <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">
<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">
<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> &n
bsp; MM
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> |
<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 </p>
</body>
<script language="javascript">
document.form1.card_name.focus();
</script>
</html>
--------------------------------------------------------------------------------------------------------------------------
GENERATE MEMBERSHIP ID AND REGISTER CUSTOMER
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
UPDATE RATE
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
UPDATE BUYER
--------------------------------------------------------------------------------------------------------------------------
</body>
</html>
--------------------------------------------------------------------------------------------------------------------------
FEEDBACK
--------------------------------------------------------------------------------------------------------------------------
<%@ 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>
--------------------------------------------------------------------------------------------------------------------------
PRIVACY POLICY
--------------------------------------------------------------------------------------------------------------------------
<html>
<head>
--------------------------------------------------------------------------------------------------------------------------
DOs AND DONTs
--------------------------------------------------------------------------------------------------------------------------
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<body background="19a.gif">
</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>
--------------------------------------------------------------------------------------------------------------------------
HOW IT WORKS
--------------------------------------------------------------------------------------------------------------------------
<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">
</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">
<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> |
<a class=copyright href="mailto:info@sharebazar.com">Contact us</a>
|
<a class=copyright href="privacyPolicy.htm">Privacy Policy</a> |
<a class=copyright href="http://www.sebi.gov.in/">SEBI</a> |
<a class=copyright href="http://www.nse-india.com/">NSE</a> |
<br>
ShareBazar.com - Your currency for online trading & 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">
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
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:
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.
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.
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.
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.
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.
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 ) 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 .
C ost d r i v er R at i ng V al ue s
=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
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
P E ( 1) 0 CF (1)
2 1
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