Вы находитесь на странице: 1из 39

BANGALORE UNIVERSITY

A
PROJECT REPORT
ON
“online Banking management system”
Submitted in partial fulfillment of the requirement of Bangalore
University (2016-2020) for the award of degree
IN
BACHELOR OF COMPUTER APPLICATION (BCA)
Submitted By:
KARTHIK S (17DDSB7027)
Under the Guidance of
PROF.VEENA.K.N
CERTIFICATE
This is to certify that this project report entitled

Online BANKING MANAGEMENT SYSTEM


for
Govt First Grade College KR Puram , Bangalore
has been carried out by and student of BCA 6th SEM under my
supervision.
I have been supervising them throughout the activity and completed the
work to full my satisfaction , I wish them in their future endeavours.

Date:……...…………….
Place:………………….

H.O.D
PROF.RASHMI RAO K
(Dept. of Computer Application)
Examiners:
1.
2.

TO WHOM SO EVER IT MAY


Concern
This is to certify that this project report entitled
“ONLINE BANKING MANAGEMENT SYSTEM”
For
GOVERNMENT FIRST GRADE COLLEGE K.R.PURAM, BANGALOR,
KARTHIK S(17DDSB7027)
th
of BCA 6 SEM have completed their major work entitled
“ONLINE BANKING MANAGEMENT SYSTEM”
and their work was not submitted to any University/Institution for award
of any degree.

We wish all the very best in their future endeavours

MS.RASHMI RAO K
H.O.D
Dept .Of Computer Application
GFGC KRPRAM
BENGALORE

STUDENT DECLARATION
We, undersigned hereby declare that the project report, entitled
“ONLINE BANKING MANAGEMENT SYSTEM”
completed and submitted by us is an original work under the guidance of,
the
PROF.VEENA.K.N

Faculty of Bachelor Of Computer Application, Department of


Government First Grade College K.R.Puram, Bangalore for the partial
fulfilment of Requirements for the award of the
BACHELOR OF COMPUTER APPLICATION(BCA)
Under Bangalore University.

We , also wish to state this project is the result of our own efforts and has
not been submitted previously to any other university or institute for the
award of any Degree or Diploma course.
ACKNOWLEDGEMENT
We are highly grateful to our Principal
T.CHANDRA SHEKAR
for giving us opportunity to carry out our project, at one of the best
Government college in Bangalore.

We also would like to convey our sincere gratitude to


PROF.RASHMI RAO.K(H.O.D Department of Computer Application)
and
PROF.NALINI (Asst.professor in Department of Computer Application)
and
PROF.K.MANIKANDAN(Asst.Professor in Department of Computer
Application)
Department of Computer Science
for helping us throughout our project by rendering their humble advices.

We also like to thank all the


Government First Grade College
staff members for giving us such a friendly environment in which we have
put our best efforts.

Finally, we should like to thank our family members and to all my friends
who is involved directly or indirectly in the successful completion of the
project entitled
“ONLINE BANKING MANAGEMENT SYSTEM”.
ABSTRACT

The Pharmacy Management System is design based on computer science in order to


illuminate the problem of the current system which provided by the system involved all
the pharmaceutical employees of the pharmacy. This accessibility of the information will
be great advantage as it reduced further medical errors associated with physicians and
nurses.

The system handles all aspects of the inventory control function. It allows the pharmacist
to receive new batches of drugs, delete obsolete drugs and modify the current dosage and
identification of drugs in the database. Furthermore , the system eases the process of
stock replenishment.

On the other hand , PMS enables dispensation process. It stores all the physician’s
prescription of the patients. A summarized list of drugs dispensed to the patient can be
viewed for monitoring purposes.

The system will solve the problem of the current system by minimizing time wastage and
reduce resources which simply change manual based system to computerized system.

The proposed system, being web-based is very efficient and effective from the point of
view of work productivity and time. It is less tedious to manage operations in a medical
store or pharmacy with such a system. It has all the required modules and is developed
with the aim of managing staffs, schedule, inventories, and relevant things in the medical
store.

With this system, the entire operations in medical store is fully automated. Unlike the
traditional system where records are maintained manually, this system maintains
records in a database. Typical example of these records include purchases, counter sales,
recorder levels, staffs, suppliers, customers, monetary transactions, etc.
Pharmacy Management System

INTRODUCTION

CHAPTER 1 Pharmacy management system


1.1 Overview
The pharmacy management system provides functions to
identify medication usages instruction , minimize human
errors in medication safety facilitate accessibility of
drug’s information and information management among
employees, providing optimal drugs movement in
pharmacy unit, enable reports with in significantly short
period of time, despite simultaneous usage of database
for the purpose stated above.
The system will solve the problem of the current system
by minimizing time wastage and reduce resources which
simply change manual based system to computerized
system.
1.2 What is pharmacy Management System?
The pharmacy management system is design based on
computer science in order to illuminate the problem of
the current system which provided by the system
involved all the pharmaceutical employees of the
pharmacy. This accessibility of the information will be
great advantage as it reduced further medical errors
associated with physicians and nurses.
1.3 Objectives of proposed system

This work plan to develop a database management


system for the pharmacies. Pharmacies have a large
number of different medicines which makes it difficult
for the chemist/seller system which help the pharmacists
by digitalizing all the manual work such as creating
invoice, storing records etc. it will also help the
pharmaceutical store the history of purchases of a person
as it may be needed in the future.
1.4 Advantages of proposed system
Very
simple
and easy
to
GFGC K.R.PURAM Page 1
Pharmacy Management System

i discretion control over the entire


m system Reduces the damages of
p machine
l Mi
e ni
m mi
e zes
n ma
t nu
al
S dat
e a
c ent
u ry
r Gr
i eat
t er
y effi
cie
o nc
f y
U
d se
a
r
t
fri
a
Ensure en
data dl
accuracy y
A
an
d
d
m
int
i
n er
i ac
s tiv
t e
r Le
a ss
t
ti
o
m
r
e

GFGC K.R.PURAM Page 2


Pharmacy Management System

c
o
n
s
u
m
i
n
g

GFGC K.R.PURAM Page 3


CHAPTER 2

SYSTEM REQUIREMENTS

2.1 Hardware requirements: Processor:


Intel Core Duo 2.0 GHz or more RAM: 1GB or
more
Hard disk : 80GB or more Monitor :
15” CRT, or LCD monitor Keyboard:
normal or multimedia Mouse :
Compatible mouse

2.2 Software requirements:

Front End : PHP


Back End : My Sql
Tool Used : Xampp
Operation System: Windows family
CHAPTER 3

USER CHARACTERISTICS
Every user:
Should be comfortable with basic working of the computer Must
carry a login ID and password used for authentication

3.1 Constraints

Login ID and password is used for identification of users.


There is no facility for a guest login.

3.2 Design and analysis

System design is essential to develop a model of system before writing any software
that is used to control the system or to interact with it during the design process we try
to develop system models at different levels of abstraction. Design process involves
data structures including library function used in the programs. The project is
developed using the below objects:-

3.3 Project description

Planned approach toward working : The working in the organization will be well
planned and organized. The Data will be stored efficiency with optimal disk space
consumption in data stores which will help in retrieval of information as well as its
storage under resource constraints.

Accuracy: The level of accuracy in the proposed system will be higher. All operations
would conform to integrity constraints and correctness and it will be ensured that
whatever information is received at or Sent from the center is accurate.

Reliability: The reliability of the proposed system will be high due to the above
mentioned reasons. This comes from the fact that only the data which conforms
accuracy clause would be allowed to commit back to the disk. Other properties like
transaction management and roll back during system or power failure etc. Get
automatically taken care of by the SQL systems, which is undoubtedly an excellent
choice of the DBMS System. Properties of atomicity ,consistency
,isolation and data security are intrinsically maintained.
No redundancy: In the proposed system it will be ensured that no repetition of
information occurs ; neither on a physical storage nor on a logical implementation
level. This economizes on resource utilization in terms of storage space. Also even in
case of concurrent access no anomalies occur and consistency is maintained. In
addition to all this, principles of normalization have been endeavoured to be followed.
Immediate retrieval of information: The main objective of the proposed system is to
provide a quick and efficient platform for retrieval of information. Among the queries
allowed for use by the user ,the query results are made available immediately, without
time lapse, irrespective of the complexity of the query.

Ease of operation: The system should be simplistic in design and use. It is such that it
can be easily developed within a short period of time and can confirm to the financial
and resource-related constraints of the organization.
CHAPTER 4

SYSTEM DEVELOPMENT PHASES

Systems Development Life Cycle(SDLC) adheres to important phases that are


essential for developers, such as planning, analysis, design, and implementation, and
are explained in the section below. There are several systems development life cycle
models in existence. The oldest model, that was originally regarded as “the systems
development life cycle” is the waterfall model: a sequence of stages generally follow
the same basic steps but many different waterfall methodologies give the steps
different names and the number of steps seems to vary between 4 and 7. There is no
definitively correct systems development life cycle model, but the steps can be
characterised and divided in several steps.

4.1 Initial Phase

The initiation phase begins when a business sponsor identifies a need or an


opportunity. The purpose of the initiation phase is to:

 Identify and validate an opportunity to improve business


accomplishments of the organization or a deficiency related to a business
need.
 Identify significant assumptions and constraints on solutions to that need.
 Recommend the exploration of alternative concepts and methods to
satisfy the need including questioning the need for technology, i.e, will a
change in the business process offer a solution?
 Assure executive business and executive technical sponsorship.

4.2 System Concept Development Phase

The system concept development phase begins after a business nedd or opportunity is
validated by the agency.organtization program leadership and the agency/organization
cio. The purpose of the system concept development phase is to:

1. Determine the feasibility and appropriateness of the alternatives.


2. Identify system interfaces
3. Identify basic functional and data requirements to satisfy the business
need.
4. Establish system boundaries; identify goals, objectives, critical success
factors, and performance measures.
5. Evaluate costs and benefits of alternative approaches to satisfy the basic
functional requirements
6. Assess project risks
7. Identify and initiate risk mitigation actions and
8. Develop high-level technical architecture, process models, data models,
and a concept of operations.

4.3 Feasibility Study


A feasibility study is a test of a system proposal according to its workability impact on
organization, ability to meet user needs and effective use of resources. The objective of a feasibility
study is not to solve a problem but to acquire a sense of its scope. During the study, the problem
definition is crystallized and the aspects of the problem to be included in the system are determined.
After the initial investigation of the system that helped to have in- depth study of the existing
system, understanding its strength and weaknesses and the requirements for the new proposed
system.

Feasibility study was done in phases documented below.

4.3.1 Behavioral feasibility:

People are inherently resistant to change and computers have been


known to facilitate change. There is always some reluctance among the users against the introduction
of new system but they were told that this system would eliminate the unnecessary overhead of
database migration and conversion, which presently had to be carried out on daily basis to
facilitate transactions between the different departments. The objective this feasibility phase is to take
the operational staff into confidence

4.3.2 Schedule feasibility:

Time evaluation is the most important consideration in the development of project. The time schedule
required for the development of the project is very important of other systems.

A reliable Online Mobile Shopping can be developed in a considerably appropriate amount of


time.
4.3.4 Economic feasibility:

Economic feasibility is the most frequently used method for evaluating the effectiveness of the
candidate system. More commonly known as cost\benefit analysis, the procedure is to determine the
benefits and savings that are expected from a candidate system and compare them with the costs. If
benefits outweigh the costs, then the decision is made to design and implement the system. A
cost\benefit analysis was done for the proposed system to evaluate whether it would be
economically viable or not.

4.3.5 Technical feasibility:

Technical feasibility centers on the existing computer system.(Hardware/software) and to what


extent it can support the proposed addition also the organization already has sufficient high-end
machines to serve the processing requirements of the proposed system. So there is no need to
purchase new software as the organization has necessary software i.e.Apache, SQL Server or
hardware to support the proposed system

ANALYSIS PHASE
Existing System Details and Problems

Lack of immediate retrievals: In the conventional system, information is distributed across


several files. This might also lead to data redundancy with repetition of the same information in
various files. In the event of a complex or nested query, the search has to scan several files, thus
making procurement of requested query results very cumbersome.

Maintenance of Accuracy and Reliability issues: With redundancy comes consistency issues as
the update of information in a single record should be echoed in all records containing the same
information. Also atomicity issues ie, completion of a transaction in totality or nothing at all; has to
be maintained. This is difficult in a multi-file system.

Lack of prompt update: Updates associated with a record in a file is to be reflected in all records
wherein the particular record is present. This concurrent update poses the problem of time lag. Errors
in commit operation to some particular files cause the grave issue of data inconsistency.
Error prone manual calculation: Manual calculations are error prone and relatively immensely
time consuming, in spite of which they may result in generation of incorrect information.
Verification is another overhead, which can be saved through efficient design and implementation.

User Requirements
Since end users are the ones who are finally going to use the system, their requirements need to
be identified. This involves questioning the end users what their expectations were. The main
requirement of the end user is that the system should be easy to use and take less time. In addition to
these another important factor was to eliminate the need for database conversion and migration that
had to be carried out presently. After conducting interviews with the users a document called the
software requirement specification was created. This is the most important document that forms the
basis for system development. It should be consistent, complete, unambiguous, traceable and inter-
related.

Functional Requirements:
The functional requirements specify relationship between the inputs and outputs. All the
operations to be performed on the input data to obtain output are to be specified. This includes
specifying the validity checks on the input and output data, parameters
affected by the operations and the other operations, which must be used to transform the inputs into
outputs. Functional requirements specify the behavior of the system for valid input and outputs.

Performance Requirements:
This section includes performance of the product that are set by user interaction and studying the
existing system of the organization. These are stated in complete measurable terms, so that they can
be verified during system evaluation phase.
CHAPTER 5

Technology Used
5.1 PHP

PHP is a widely used, general-purpose scripting language that was originally designed for web
development to produce dynamic web pages. For this purpose, PHP code is embedded into the
HTML source document and interpreted by a web server with a PHP processor module, which
generates the web page document.

PHP source code is compiled on-the-fly to an internal format that can be executed by the PHP
engine. In order to speed up execution time and not have to compile the PHP source code every time
the webpage is accessed, PHP scripts can also be deployed in executable format using a PHP
compiler.

PHP is one of the most popular server side scripting languages running today. It is used for
creating dynamic webpages that interact with the user offering customized information. PHP offers
many advantages; it is fast, stable, secure, easy to use and open source (free).

PHP code is inserted directly into the HTML that makes up a website. When a visitor comes to
the website, the code is executed. Because PHP is a server side technology, the user does not need
any special browser or plug-ins to see the PHP in action.

Another key advantage of PHP is its connective abilities. PHP uses a modular system of
extensions to interface with a variety of libraries such as graphics, XML, encryption, etc. In
addition, programmers can extend PHP by writing their own extensions and compiling them into the
executable or they can create their own executable and load it using PHP's dynamic loading
mechanism. A huge advantage that PHP offers is its community. Since PHP is an A huge advantage
that PHP offers is its community. Since PHP is an open source project, the PHP community is
willing to share. If you're looking for a particular script, chances are another user has already
created something similar. Check within the PHP community for availability. Likewise, if you have
created a function that others might enjoy, be sure to post the code for others.

A PHP scripting block always starts with <? php and ends with ?>. A PHP scripting block can be
placed anywhere in the document.
On servers with shorthand support enabled you can start a scripting block with <? and end with ?>.
For maximum compatibility, we recommend that you use the standard form (<?php) rather than the
shorthand form.

MY SQL
MySQL is an relational database management system(RDBMS).Its name is a combination of "My",
the name of co-founder Michael Widenius's daughter and "SQL", the abbreviation for Structured
Query Language. The MySQL development project has made its source code available under the
terms of the GNU General Public License, as well as under a variety of proprietary agreements.
MySQL was owned and sponsored by a single for-profit firm, the Swedish company MySQL AB,
now owned by Oracle Corporation. For proprietary use, several paid editions are available, and offer
additional functionality.

MySQL was created by a Swedish company, MySQL AB, founded by David Axmark, Allan
Larsson and Michael "Monty" Widenius. Original development of MySQL by Widenius and

Axmark began in 1994.[27] The first version of MySQL appeared on 23 May 1995. It was initially
created for personal usage from mSQL based on the low-level language ISAM, which the creators
considered too slow and inflexible. They created a new SQL interface, while keeping the same
API as mSQL

MySQL is written in C and C++. Its SQL parser is written in yacc, but it uses a home- brewed
lexical analyzer.

Mysql dump is a logical backup tool included with both community and enterprise editions of
MySQL. It supports backing up from all storage engines. MySQL Enterprise Backup is a hot
backup utility included as part of the MySQL Enterprise subscription from Oracle, offering native
InnoDB hot backup, as well as backup for other storage engines.

Xtra Backup is an open-source MySQL hot backup software program. Features include hot, non-
locking backups for InnoDB storage, incremental backups, streaming, parallel- compressed
backups, throttling based on the number of I/O operations per second, etc.

MySQL Fabric is an integrated system for managing a collection of MySQL servers, and a
framework on top of which high availability and database sharding is built. MySQL Fabric is open-
source, and supports procedure execution in the presence of failure, providing an execution model
usually called resilient execution. MySQL client libraries are extended so they are hiding the
complexities of handling failover in the event of a server failure, as well as correctly dispatching
transactions to the shards.
Chapter 7
IMPLEMENTATION

This phase is initiated after the system has been tested and accepted by the user. In this phase,
the system is installed to support the intended business functions. System performance is
compare to performance objectives established during the planning phase. Implementation
includes user notification, user training, installation of hardware, installation of software onto
production computers, and integration of the system into daily work processes.This phase
continues until the system is operating in production in accordance with the defined user
requirements.

7.1 SQL COMMANDS

CREATE TABLE IF NOT EXISTS `collection` (


`transaction_id` int(11) NOT NULL AUTO_INCREMENT,
`date` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`invoice` varchar(100) NOT NULL,
`amount` varchar(100) NOT NULL,
`remarks` varchar(100) NOT NULL,
`balance` int(11) NOT NULL,
PRIMARY KEY (`transaction_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=18 ;

CREATE TABLE IF NOT EXISTS `customer` (


`customer_id` int(11) NOT NULL AUTO_INCREMENT,
`customer_name` varchar(100) NOT NULL,
`address` varchar(100) NOT NULL,
`contact` varchar(100) NOT NULL,
`membership_number` varchar(100) NOT NULL,
`prod_name` varchar(550) NOT NULL,
`expected_date` varchar(500) NOT NULL,
`note` varchar(500) NOT NULL,
PRIMARY KEY (`customer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;

CREATE TABLE IF NOT EXISTS `products` (


`product_id` int(11) NOT NULL AUTO_INCREMENT,
`product_code` varchar(200) NOT NULL,
`gen_name` varchar(200) NOT NULL,
`product_name` varchar(200) NOT NULL,
`cost` varchar(100) NOT NULL,
`o_price` varchar(100) NOT NULL,
`price` varchar(100) NOT NULL,
`profit` varchar(100) NOT NULL,

`supplier` varchar(100) NOT NULL,


`onhand_qty` int(10) NOT NULL,
`qty` int(10) NOT NULL,

`qty_sold` int(10) NOT NULL,


`expiry_date` varchar(500) NOT NULL,

`date_arrival` varchar(500) NOT NULL,


PRIMARY KEY (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=58 ;

CREATE TABLE IF NOT EXISTS `purchases` (


`transaction_id` int(11) NOT NULL AUTO_INCREMENT,
`invoice_number` varchar(100) NOT NULL,
`date` varchar(100) NOT NULL,

`suplier` varchar(100) NOT NULL,


`remarks` varchar(100) NOT NULL,
PRIMARY KEY (`transaction_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;

CREATE TABLE IF NOT EXISTS `purchases_item` (


`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,

`qty` int(11) NOT NULL,


`cost` varchar(100) NOT NULL,
`invoice` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

CREATE TABLE IF NOT EXISTS `sales` (


`transaction_id` int(11) NOT NULL AUTO_INCREMENT,
`invoice_number` varchar(100) NOT NULL,
`cashier` varchar(100) NOT NULL,
`date`varchar(100) NOT NULL,
`type` varchar(100) NOT NULL,
`amount` varchar(100) NOT NULL,
`profit` varchar(100) NOT NULL,

`due_date` varchar(100) NOT NULL,


`name`varchar(100) NOT NULL,
`balance`varchar(100) NOT NULL,
PRIMARY KEY(`transaction_id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=142 ;

CREATE TABLE IF NOT EXISTS `sales_order` (


`transaction_id` int(11) NOT NULL AUTO_INCREMENT,

`invoice` varchar(100) NOT NULL,


`product` varchar(100) NOT NULL,
`qty` varchar(100) NOT NULL,
`amount` varchar(100) NOT NULL,
`profit` varchar(100) NOT NULL,
`product_code` varchar(150) NOT NULL,
`gen_name` varchar(200) NOT NULL,
`name` varchar(200) NOT NULL,
`price` varchar(100) NOT NULL,
`discount` varchar(100) NOT NULL,
`date` varchar(500) NOT NULL,
PRIMARY KEY (`transaction_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=315 ;

CREATE TABLE IF NOT EXISTS `supliers` (


`suplier_id` int(11) NOT NULL AUTO_INCREMENT,
`suplier_name` varchar(100) NOT NULL,
`suplier_address` varchar(100) NOT NULL,
`suplier_contact` varchar(100) NOT NULL,
`contact_person` varchar(100) NOT NULL,
`note` varchar(500) NOT NULL, PRIMARY
KEY (`suplier_id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

CREATE TABLE IF NOT EXISTS `user` (


`id` int(11) NOT NULL AUTO_INCREMENT,

`username`varchar(100) NOT NULL,


`password` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`position` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
7.2 PHP CODE:

<?php

/* Database config */
$db_host = 'localhost';
$db_user = 'root';

$db_pass = '';
$db_database = 'sales';

/* End config */

$db = new PDO('mysql:host='.$db_host.';dbname='.$db_database, $db_user,


$db_pass);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION)
?>

7.2.1 Retrieving from database

<?php
//Start session session_start();
//Unsetthevariablesstoredinsession
unset($_SESSION['SESS_MEMBER_ID']);

unset($_SESSION['SESS_FIRST_NAME']);
unset($_SESSION['SESS_LAST_NAME']);
?>
<html>

<head>
<title>
POS
</title>
<link rel="shortcut icon" href="main/images/pos.jpg">
<link href="main/css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" type="text/css"
href="main/css/DT_bootstrap.css">
<link rel="stylesheet" href="main/css/font-awesome.min.css">
<style type="text/css"> body
{
padding-top: 60px;

padding-bottom: 40px; }
.sidebar-nav {

padding: 9px 0;}


</style>
<link href="main/css/bootstrap-responsive.css" rel="stylesheet">
<link href="style.css" media="screen" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="container-fluid">

<div class="row-fluid">
<div class="span4">

</div>
</div>
<div id="login">
<?php
if( isset($_SESSION['ERRMSG_ARR']) &&
is_array($_SESSION['ERRMSG_ARR']) &&
count($_SESSION['ERRMSG_ARR']) >0 ) {

foreach($_SESSION['ERRMSG_ARR'] as $msg) { echo '<div

style="color: red; text-align:


center;">',$msg,'</div><br>';
}
unset($_SESSION['ERRMSG_ARR'])

}
?>
<form action="login.php" method="post">

<font style=" font:bold 44px 'Aleo'; text-shadow:1px 1px 15px #000; color:#fff;"><center>EREC`s
Pharmacy</center></font>

<br>
<div class="input-prepend">
<span style="height:30px; width:25px;" class="add-on"><i class="icon-user
icon-2x"></i></span><inputstyle="height:40px;" type="text" name="username"
Placeholder="Username" required/><br>

</div>
<div class="input-prepend">
<span style="height:30px; width:25px;" class="add-on"><i class="icon-
lock icon-2x"></i></span><input type="password" style="height:40px;"
name="password" Placeholder="Password" required/><br></div>

<div class="qwe">
<button class="btn btn-large btn-primary btn-block pull- right"
href="dashboard.html" type="submit"><i class="icon-signin icon- large"></i>
Login</button>
</div>
</form>
</div></div>
</div></div>
</body>
</html>
<?php
function createRandomPassword() {
$chars = "003232303232023232023456789";
srand((double)microtime()*1000000);
$i = 0;
$pass = '' ;

while ($i <= 7) {


$num = rand() % 33;
$tmp = substr($chars, $num, 1);
$pass = $pass . $tmp;
$i++;
}
return $pass;
}
$finalcode='IN-'.createRandomPassword();
?>
<link href="../style.css" media="screen" rel="stylesheet" type="text/css"
/>
<form action="saveledger.php" method="post">
<input type="hidden" name="name" value="<?php echo
$_GET['invoice']; ?>" />
<input type="hidden" name="invoice" value="<?php echo $finalcode;
?>" />
<input type="hidden" name="tot" value="<?php echo $_GET['amount'];
?>" />
<div id="ac">
<span>Amount : </span><input type="text" style="width:265px; height:30px;"
name="amount" /><br>
<span>Remarks :</span><input type="text" style="width:265px; height:30px;"
name="remarks" /><br>

<span>&nbsp;</span><input id="btn" type="submit" value="save" />

</div>
</form>
?php
//Start session
session_start();

//Array to store validation errors


$errmsg_arr = array();

//Validation error flag


$errflag = false;

//Connect to mysql server


$link = mysql_connect('localhost','root',"");
if(!$link) {
die('Failed to connect to server: ' . mysql_error());
}

//Select database
$db = mysql_select_db('sales', $link);
if(!$db) {
die("Unable to select database");
}

//Function to sanitize values received from the form. Prevents SQL injection
function clean($str) {
$str = @trim($str);
if(get_magic_quotes_gpc()) {
$str = stripslashes($str);
}
return mysql_real_escape_string($str);
}

//Sanitize the POST values


$login = clean($_POST['username']);
$password = clean($_POST['password']);

//Input Validations
if($login == '') {
$errmsg_arr[] = 'Username missing';
$errflag = true;
}
if($password == '') {
$errmsg_arr[] = 'Password missing';
$errflag = true;
}

//If there are input validations, redirect back to the login form
if($errflag) {
$_SESSION['ERRMSG_ARR'] = $errmsg_arr;
session_write_close();
header("location: index.php");
exit();
}

//Create query
$qry="SELECT * FROM user WHERE username='$login' AND password='$password'";
$result=mysql_query($qry);

//Check whether the query was successful or not


if($result) {
if(mysql_num_rows($result) > 0) {
//Login Successful
session_regenerate_id();
$member = mysql_fetch_assoc($result);
$_SESSION['SESS_MEMBER_ID'] = $member['id'];
$_SESSION['SESS_FIRST_NAME'] = $member['name'];
$_SESSION['SESS_LAST_NAME'] = $member['position'];
//$_SESSION['SESS_PRO_PIC'] = $member['profImage'];
session_write_close();
header("location: main/index.php");
exit();
}else {
//Login failed
header("location: index.php");
exit();
}
}else {
die("Query failed");
}
?>

Accountrecivable:

<html>
<head>
<?php
require_once('auth.php');
?>
<title>
POS
</title>
<link href="css/bootstrap.css" rel="stylesheet">

<link rel="stylesheet" type="text/css" href="css/DT_bootstrap.css">

<link rel="stylesheet" href="css/font-awesome.min.css">


<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
</style>
<link href="css/bootstrap-responsive.css" rel="stylesheet">

<link href="../style.css" media="screen" rel="stylesheet" type="text/css" />


<link rel="stylesheet" type="text/css" href="tcal.css" />
<script type="text/javascript" src="tcal.js"></script>
<script language="javascript">
function Clickheretoprint()
{
var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,";
disp_setting+="scrollbars=yes,width=700, height=400, left=100, top=25";
var content_vlue = document.getElementById("content").innerHTML;

var docprint=window.open("","",disp_setting);
docprint.document.open();
docprint.document.write('</head><body onLoad="self.print()" style="width: 700px; font-size:11px;
font-family:arial; font-weight:normal;">');
docprint.document.write(content_vlue);
docprint.document.close();
docprint.focus();
}
</script>
</head>
<body>
<?php
include('navfixed.php');
?>

<div class="container-fluid">
<div class="row-fluid">
<div class="span2">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li><a href="#"><i class="icon-dashboard icon-2x"></i> Dashboard </a></li>
<li><a href="salesreport.php?d1=0&d2=0"><i class="icon-bar-chart icon-
2x"></i> Sales Report</a> </li>
<li><a href="collection.php?d1=0&d2=0"><i class="icon-bar-chart icon-
2x"></i> Collection Report</a> </li>
<li class="active"><a href="accountreceivables.php?d1=0&d2=0"><i
class="icon-bar-chart icon-2x"></i> Accounts Receivable Report</a> </li>
<li><a rel="facebox" href="select_customer.php"><i class="icon-user
icon-2x"></i> Customer Ledger</a> </li>
<li><a href="products.php"><i class="icon-table icon-2x"></i>
Products</a> </li>
<li><a href="customer.php"><i class="icon-group icon-2x"></i>
Customers</a> </li>
<li><a href="supplier.php"><i class="icon-group icon-2x"></i>
Suppliers</a> </li>
<li><a href="purchaseslist.php"><i class="icon-inbox icon-2x"></i>
Purchases</a></li>
</ul>
</div><!--/.well -->
</div><!--/span-->
<div class="span10">
<div class="contentheader">
<i class="icon-bar-chart"></i> Account Receivables Report
</div>
<ul class="breadcrumb">
<li><a href="index.php">Dashboard</a></li> /
<li class="active">Account Receivables Report</li>
</ul>

<div id="maintable">
<div style="margin-top: -19px; margin-bottom: 21px;">
<a href="index.php"><button class="btn btn-default btn-large" style="float: none;"><i class="icon
icon-circle-arrow-left icon-large"></i> Back</button></a>
</div>
<form action="accountreceivables.php" method="get">
From : <input type="text" name="d1" style="width: 223px; padding:14px;" class="tcal" value="" /> To:
<input type="text" style="width: 223px; padding:14px;" name="d2" class="tcal" value="" />
<button class="btn btn-info" style="width: 123px; height:35px; margin-top:-8px;" type="submit"><i
class="icon icon-search icon-large"></i> Search</button>
<button style="width: 123px; height:35px; margin-top:-2px; float:right;" class="btn btn-success btn-
large"><a href="javascript:Clickheretoprint()"><i class="icon icon-print icon-large"></i>
Print</a></button>

</form>
<div class="content" id="content">
<div style="font-weight:bold; text-align:center;font-size:14px;margin-bottom: 15px;">
Accounts Receivables Report from&nbsp;<?php echo $_GET['d1'] ?>&nbsp;to&nbsp;<?php echo
$_GET['d2'] ?>
</div>
<table class="table table-bordered" id="resultTable" data-responsive="table" style="text-align: left;">
<thead>
<tr>
<th width="15%"> Transaction ID </th>
<th width="12%"> Date </th>
<th width="25%"> Customer Name </th>
<th width="15%"> Invoice Number </th>
<th width="15%"> Ballance </th>
<th width="15%"> Due Date </th>
</tr>
</thead>
<tbody>

<?php
include('../connect.php');
$d1=$_GET['d1'];..…
$d2=$_GET['d2'];
$c='credit';
$d='paid';
$result = $db->prepare("SELECT * FROM sales WHERE type=:c AND
due_date!= :d AND date BETWEEN :a AND :b");
$result->bindParam(':a', $d1);
$result->bindParam(':b', $d2);
$result->bindParam(':c', $c);
$result->bindParam(':d', $d);
$result->execute();
for($i=0; $row = $result->fetch(); $i++){
?>
<tr class="record">
<td>STI-000<?php echo $row['transaction_id']; ?></td>
<td><?php echo $row['date']; ?></td>
<td><?php echo $row['name']; ?></td>
<td><?php echo $row['invoice_number']; ?></td>
<td><?php
$dsdsd=$row['amount'];
echo formatMoney($dsdsd, true);
?></td>
<td><?php echo $row['due_date']; ?></td>
</tr>
<?php
}
?>

</tbody>
<thead>
<tr>
<th colspan="4" style="border-top:1px solid #999999"> Total : </th>
<th colspan="2" style="border-top:1px solid #999999">
<?php
function formatMoney($number, $fractional=false) {
if ($fractional) {
$number = sprintf('%.2f', $number);
}
while (true) {
$replaced = preg_replace('/(-?\d+)(\d\d\d)/', '$1,$2',
$number);
if ($replaced != $number) {
$number = $replaced;
} else {
break;
}
}
return $number;
}
$d1=$_GET['d1'];
$d2=$_GET['d2'];
$c='credit';
$results = $db->prepare("SELECT sum(amount) FROM sales WHERE
type=:c AND date BETWEEN :a AND :b");
$results->bindParam(':a', $d1);
$results->bindParam(':b', $d2);
$results->bindParam(':c', $c);
$results->execute();
for($i=0; $rows = $results->fetch(); $i++){
$dsdsd=$rows['sum(amount)'];
echo formatMoney($dsdsd, true);
}
?>
</th>
</tr>
</thead>
</table>
</div>
<div class="clearfix"></div>
</div>
</body>
<?php include('footer.php');?>

</html>
Chapter 8
SOFTWARE TESTING

Testing is the process of executing then programs with the intention of finding out errors. During
the process, the project is executed with set of test and the output of the website is evaluated to
determine if the project is performing as expected. Testing makes a logical assumption that if all the
parts of the module are correct then goal will be successfully achieved. Testing includes after the
completion of the coding phase. The project was tested from the very beginning and also at each
step by entering different type of data. In the testing phase some mistakes were found ,which did not
come to knowledge at the time of coding the project. Then changes were made in the project coding
so that it may take all the relevant data and gives the required result. All the forms were tested one
by one and made all the required changes.
Testing is vital to the success of the system. Testing makes a logical assumption that if all the parts
of the system are correct, the goal will be successfully achieved. A small system error can
conceivably explode into a much larger problem. Effective testing early in the process translates
directly into long-term cost savings from a reduced number of errors. For the verification and
validation of data various-nesting task are performed. Testing is itself capable of finding the
syntactical mistakes in the system but user need to test the system for logical checking.

8.1 Levels of Testing

The aim of the testing process is to identify all the defects in the website. It is not practical to test
the website with respect to each value that the input request data may assume. Testing provides a
practical way of reducing defects in the website and increasing the user’s confidence in a developed
system. Testing consists of subjecting the website to a set of test inputs and observing if the
program behaves as expected. If the program fails to Testing behave as expected then conditions
under which failure occurs are noted for later debugging and correction. The following things are
associated with testing:

Failure is a manifestation of an error. But the mere presence of an error may not necessarily lead to
a failure. A test case is the triplet [I, S, O] where I am data input to the system. S is the state of the
state of the system at which the data is input, O is the expected output of the system A test suite is
the set of all test cases with which a given software product is to be tested.
8.2 Functional Testing

Here the system is a black box whose behavior is determined by studying its inputs and related
outputs. The key problem is to select the inputs that have a huge probability of being members of
a set in may case; the selection of these test cases is based on the previous studies.

8.3 Structural Testing

A great deal can be learnt about the strength and the limitation of the application by examinee the
manner in which the system breaks. This type of testing has two limitations. It tests failure behavior
of the system circumstances may arise through an unexpected combination of events where the node
placed on the system exceeds the maximum anticipated load. The structure of the each module was
checked at every step.

8.4 Unit Testing


In unit testing the entire individual functions and modules were tested independently. By
following this strategy all the error in coding were identified and corrected. This method was
applied in combination with the white and black box testing techniques to find the errors in each
module.
Unit testing is normally considered an adjunct to the coding step. Unit test case design was started
after source level code had been developed, reviewed, and verified for correct syntax. A review of
design information provides guidance for establishing test cases that were likely to uncover errors in
each of the categories discussed above. Each test case was coupled with a set of expected results.
Pharmacy management system

CHAPTER 9
SNAP SHOTS

LOGIN PAGE
DASHBOARD

SUPPLIERS

RECEIPT GENERATED
CHAPTER 10
CONCLUSION

This pharmacy management system can be effectively used by any medical store to
automate the process of data management and maintenance of records related to
stock, liquid, flows, staffs, customers, and suppliers. New features, modules, and other
components can be incorporated into the system as per user requirements in future.

It also helps to maintain the drugs in their disposal by keeping track of their expiry
date and it also notifies the staff if the medicines are out of stock.

An application has been developed using MySQL and PHP database programming
connectivity via Xampp Server so as to meet the requirements of an organization,
there by ensuring quality performance.

The data can be accessed, manipulated and retrieved very easily. To conclude this
software has proved to be a user friendly interface.
BIBILOGRAPHY

[1] www.apache.net

[2] www.wikipedia.com

[3] www.w3schools.com

[4] www.php.com

[5] www.databasemysql.com

[6] www.meipolytechnic.com

Вам также может понравиться