0% found this document useful (0 votes)
202 views91 pages

Cheathen Cms FINAL-1

The document describes a project report submitted by Chethan SG for the partial fulfillment of the requirements for a BCA degree from Bangalore University. The project report details the development of a Client Management System under the guidance of Mr. Ratikanta Majhi at The Oxford College of Science, which is affiliated to Bangalore University. The system aims to automate client management and reduce errors from manual processes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
202 views91 pages

Cheathen Cms FINAL-1

The document describes a project report submitted by Chethan SG for the partial fulfillment of the requirements for a BCA degree from Bangalore University. The project report details the development of a Client Management System under the guidance of Mr. Ratikanta Majhi at The Oxford College of Science, which is affiliated to Bangalore University. The system aims to automate client management and reduce errors from manual processes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 91

THE OXFORD COLLEGE OF SCIENCE

Department of Computer Science and Applications

(AFFILIATED TO BANGALORE UNIVERSITY)


19 Main, 17th B Cross, Sector-IV, HSR Layout, Bangalore-560102
TH

PROJECT REPORT ON
“CLIENT MANAGAMENT SYSTEM”

CHETHAN SG
18RNSB7043

Under the guidance of:

MR. RATIKANTA MAJHI

Project Report submitted in partial fulfilment of the requirements of sixth


Semester BCA, Bangalore University
Department of Computer Science
THE OXFORD COLLEGE OF SCIENCE
Department of Computer Science and Applications

(AFFILIATED TO BANGALORE UNIVERSITY)


19TH Main, 17th B Cross, Sector-IV, HSR layout, Bangalore-560102

CERTIFICATE
This is to Certify that the Project Report titled “CLIENT MANAGEMENT
SYSTEM” is a Bonafede record of work done by Student Chethan SG
(18RNSB7043) of Bangalore University, Bangalore, in partial fulfillment of
the requirements of Sixth Semester BCA during the year 2021.

Head of the Department Project Guide


MR. RATIKANTA MAJHI

Valued-by:

1. Internal Guide Name: Chethan SG


Register number: 18RNSB7043

2. External Guide Examination Centre: TOCS


Date of Exam:
DECLARATION
I Chethan SG (18RNSB7043) hereby declare that this project work entitled
“CLIENT MANAGEMENT SYSTEM” are submitted in partial fulfilment
for the award of the degree of BACHELOR OF COMPUTER
APPLICATION of Bangalore University.

We further declare that we have not submitted this project report in part or in
full to any other university for the award of any degree.

Date: Student name: Chethan SG


(18RNSB7043)

Place:
ACKNOWLEDGEMENT

We are thankful to Dr. R. Kavya Shree principal of The Oxford College of


Science, who provided us all the required facilities to accomplish the project
on time.

We ensure our Humble and sincere gratitude to Dr. Susil Kumar Sahoo
(HOD) for his great encouragement and valuable support.

We offer our sincere to our guide MR. RATIKANTA MAJHI who has
always given us a constant source of inspiration and encouragement during
the course of our project.

We would also like to mention the gratefulness of our parent’s blessings of


which we are able to access and enjoy such opportunities.

Last but not least we thank our management and lab coordinator for
providing us the support to complete the project. We would like thank each
and everybody who supported us throughout the long and attention
consuming project.
ABSTRACT

Client Management System(CMS) is an established concept which is used to


manage client lifecycle through various technologies and process oriented tools.
This study identifies how web application can be utilized for improved client
management and to understand the potential of web application in the business
environment.

The present scenario offers manual data entry. A lot of time is wasted in creating
the reports as well as maintaining them. In case, if any query arises to get the
information about the client, the whole report is re-typed or xeroxed. This
seriously affects the authentication of the system. This Client Management
System is totally outdated and involves high risk of ambiguity and redundancy

The proposed Client Management System is to have everything completely


automated and computerized. The software is very easy to use and manage even
for a non technical person. The redundancy and ambiguity will be removed by
assigning every client a unique number (i.e Account Id).
TABLE OF CONTENTS

Sl no Index Description Page


no

Chapter 1 1 Introduction

1.1 Aim of Project 9

1.2 Purpose of Project 9

1.3 Scope of Project 9

1.4 Motivation of Project 10

1.5 Existing System 10

1.6 Proposed System 10

Chapter 2 2 System Requirement Specification

2.1 Overall Descriptions

2.1.1 Product Perspective 11

2.1.2 Product Function 11

2.1.3 Constraints 11

2.1.4 Assumptions and Dependencies 11

2.2 Specific Requirement

2.2.1 Functional Requirement 11

2.2.2 Performance Requirements 12

2.2.3 Supportability 12

2.2.4 Software Requirement 12

2.2.5 Hardware Requirement 12

III
2.2.6 Design Constraints 12

2.2.7 Interfaces 12

Chapter 3 3 Design Specification

3.1 Modular Design 13

3.1.1 Modular function diagram 14

3.1.2 Specific Function Modules 14

3.2 System Design

3.2.1 Data Flow Diagram 15

DFD-Level-1

DFD-Level-2

DFD-Level-3

3.2.2 ER Diagram 16

3.2.3 Use Case Diagram 17

3.2.4 Activity Diagram 17

3.2.5 Class Diagram 18

3.2.6 Sequence Diagram 18

Chapter 4 4 Implementation Details


4.1 Programming Languages Selection 19

4.2 Platform Selection 19

4.3 Codes 20

4.4 Screen Shots 78

Chapter 5 5 Software Testing

5.1 Testing Environment 87

IV
5.2 Unit Testing 87

5.3 Integration Testing 87

5.4 Functional Testing with GUI 88

Chapter 6 6 Conclusion
6.1 Limitation of the Project 89

6.2 Future Enhancement 89

6.3 Bibilography 90

V
Client Management System OXFORD COLLEGE OF SCIENCE,2021

CHAPTER 1
INTRODUCTION

Client Management System is software application which is used to manage a company's interaction
with current and potential clients. Client management system is an automatic system which delivers
data processing in very high speed in systematic manner.

In Client Management System we use PHP and MySQL Database. This project keeps the records of
clients. Client Management System has two module i.e. admin and client.

Admin Module

1. Dashboard: In this section, admin can briefly view the total services, total clients, total today's
sales, total yesterday's sales, total seven's sales and total sales. 2. Services: In this section, admin
can manage services (Add/Update).
3. Add Clients: In this section, admin can add new clients
4. Clients List: In this section, admin can update the client details and add services which are
provided by admin.
5. Invoices: In this section, admin can view invoices of the client and also take print of invoice.
6. Reports: In this section admin can view the clients details and check the sales reports (month
wise/year wise) in a particular period.
7. Search Invoice: In this section, admin can search clients invoice with the help of his/her invoice
number.
Admin can also update his profile, change the password and recover the password.

Client Module

1. Dashboard: It is a welcome page for a client.


2. Invoices: In this section, client can view invoices of the client and also take print of invoice.
3. Search Invoice: In this section, client can search his/her invoice with the help of invoice number.
Client can also update his/her profile, change the password and recover the password. -

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY -8


Client Management System OXFORD COLLEGE OF SCIENCE,2021

1.1 AIM OF PROJECT

Client Management System (CMS) is an established concept which is used to manage client
lifecycle through various technologies and process oriented tools. This study identifies how w eb
application can be utilized for improved client management and to understand the potential of web

application in the business environment.

Client Management System is software application which is used to manage a company's interaction
with current and potential clients. Client management system is an automatic system which delivers
data processing in very high speed in systematic manner.

In Client Management System we use PHP and MySQL Database. This project keeps the records of
clients. Client Management System has two module i.e. admin and client.

1.2 PURPOSE OF PROJECT

The main objective of the Client Management System project is to have a fully automated Client
Management System. This system will enable to draw the details of the client. This Client
Management System will definitely reduce the time, energy and money wasted in manually
searching the details of the clients. With the help of this software, all the services and clients can be
properly channelized.

1.3 SCOPE OF PROJECT

Client Management System is software application which is used to manage a company's interaction
with current and potential clients. Client management system is an automatic system which delivers
data processing in very high speed in systematic manner.

In Client Management System we use PHP and MySQL Database. This project keeps the records of
clients. Client Management System has two module i.e. admin and client.

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY -9


Client Management System OXFORD COLLEGE OF SCIENCE,2021

1.4 MOTIVATION OF PROJECT

In the flexibility of the uses the interface has been developed a graphics concept in mind, associated
through a browses interface. The GUI’S at the top level have been categorized as

1. Administrative user interface

2. The operational or generic user interface


• The administrative user interface concentrates on the consistent information that is
practically, part of the organizational activities and which needs proper authentication for
the data collection. The interfaces help the administrations with all the transactional states
like Data insertion, Data deletion and Date updation along with the extensive data search
capabilities.
• The operational or generic user interface helps the users upon the system in transactions
through the existing data and required services.
• The operational user interface also helps the ordinary users in managing their own
information helps the ordinary users in managing their own information in a customized
manner as per the assisted flexibilities.

1.5 EXISTING SYSTEM


The present scenario offers manual data entry. A lot of time is wasted in creating the reports as well
as maintaining them. In case, if any query arises to get the information about the client, the whole
report is re-typed or xeroxed. This seriously affects the authentication o f the system. This Client
Management System is totally outdated and involves high risk of ambiguity and redundancy.

1.6 PROPOSED SYSTEM


The proposed Client Management System is to have everything completely automated and
computerized. The software is very easy to use and manage even for a non technical person. The
redundancy and ambiguity will be removed by assigning every client a unique number (i.e Account
Id).

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 10 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

CHAPTER 2
SYSTEM REQUIREMENTS

A software requirement definition is an abstract description of the services which the system should
provide, and the constraints under which the system must operate. It should only specify the external
behavior of the system. The requirements are specified as below:

2.1.1 PRODUCT PERSPECTIVE


Client Management System project is to have a fully automated Client Management System. This
system will enable to draw the details of the client. This Client Management System will definitely
reduce the time, energy and money wasted in manually searching the details of the clients. With the
help of this software, all the services and clients can be properly channelized.

2.1.2 PRODUCT FUNCTION


The administrative user interface concentrates on the consistent information that is practically, part
of the organizational activities and which needs proper authentication for the data collection. The
interfaces help the administrations with all the transactional states like Data insertion, Data deletion
and Date updation along with the extensive data search capabilities.
The operational or generic user interface helps the users upon the system in transactions through the
existing data and required services.
The operational user interface also helps the ordinary users in managing their own information helps
the ordinary users in managing their own information in a customized manner as per the assisted
flexibilities.

2.2.1 Functional requirements


❖ Each user shall be able to view information in the database on their class.
❖ The administrator shall be able to view all the information in the database.

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 11 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

2.2.4 HARDWARE REQUIREMENT:

• Operating system: Windows 7 or Above


• Processor: PIV 2.8GHz Processor and Above
• Memory: RAM 512MB and above,HHD 20GB Hard Disk and above
• Screen Resolution:1280*1024 or larger • Application Window
Size:1024*680 or larger • Internet Connection: Not Required

2.2.5 SOFTWARE REQUIREMENTS:

• Client: WINDOWS OS (XP/2000/200 server/2003 Server)


• Web Server:XAMPP(Apache Tomcat)
• Database Server: MYSQL Server
• Language: HTML ,CSS,JQuery,MYSQL,PHP

2.2.7 INTERFACE
The administrative user interface concentrates on the consistent information that is practically, part
of the organizational activities and which needs proper authentication for the data collection. The
interfaces help the administrations with all the transactional states like Data insertion, Data deletion
and Date updation along with the extensive data search capabilities.

The operational user interface also helps the ordinary users in managing their own information helps
the ordinary users in managing their own information in a customized manner as per the assisted
flexibilities.
The operational or generic user interface helps the users upon the system in transactions through the
existing data and required services.

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 12 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

CHAPTER 3
DESIGN SPECIFICATION
The data in the system has to be stored and retrieved from database. Designing the database is part
of system design. Data elements and data structures to be stored have been identified at analysis
stage. They are structured and put together to design the data storage and retrieval system.

 ADMIN TABLE
 PAGE TABLE
 CLIENT TABLE
 INVOICE TABLE
 SERVICE TABLE

The table details are as follows:

Table 3.1- ADMIN TABLE

COLUMN DTATYPE & CONSTRAINTS DESCRIPTION


NAME SIZE
ID Int(10) PRIMARY KEY Auto_increment
AdminName Varchar(120) NULL Name of the admin
UserName Varchar(120) NULL Name of the user
MobileNumber BIGINT(10) NULL Phone number of the admin
Email Varchar(200) NULL Email of admin
PASSWORD Varchar(120) NULL Password of admin
AdminRegDate timestamp Cuttent_timestamp

Table 3.2- PAGE TABLE

COLUMN NAME DTATYPE & CONSTRAINTS DESCRIPTION


SIZE
ID Int(10) PRIMARY KEY AUTO_INCREMENT
PageType Varchar(120) NULL
PageTitle Varchar(120) NULL
PageDescription Varchar(200) NULL
Email Varchar(120) NULL
MobileNumber Bigint(10) NULL
UpdationDate timestamp Current_timestamp()

Table 3.3- CLIENT TABLE

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 13 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

COLUMN DTATYPE & CONSTRAINTS DESCRIPTION


NAME SIZE
ID Int(10) PRIMARY KEY Auto_increment
AccountID Int(10) NULL
AccountType Varchar(50) NULL
ContactName Varchar(120) NULL
CompanyName Varchar(120) NULL
Address Varchar(120) NULL
City Varchar(200) NULL
State Varchar(120) NULL
ZipCode Int(10) NULL
Workphnumber Bigint(10) NULL
Cellphnumber Bigint(10) NULL
Otherphnumber Bigint(10) NULL
Email Varchar(200) NULL
WebsiteAddress Varchar(200) NULL
Notes mediumtext
Password Varchar(200) None
CreationDate timestamp Current_timestamp()

Table 3.4 –INVOICE TABLE

COLUMN DTATYPE & CONSTRAINTS DESCRIPTION


NAME SIZE
ID Int(10) PRIMARY KEY AUTO_INCREMENT
Userid Varchar(120) NULL
Serviceid Varchar(120) NULL
Billingid Varchar(120) NULL
PostingDate timestamp Current_timestamp()

Table 3.5- SERVICE TABLE

COLUMN NAME DTATYPE & CONSTRAINTS DESCRIPTION


SIZE
ID Int(10) PRIMARY KEY AUTO_INCREMENT
ServiceName Varchar(200) NULL
ServicePrice Varchar(200) NULL
CreationDate timestamp Current_timestamp()

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 14 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

3.2.1 SYSTEM DESIGN

Design is the first step in the development phase for any techniques and principles for the purpose
of defining a device, a process or system in sufficient detail to permit its physical realization. Once
the software requirements have been analyzed and specified the software design involves three
technical activities - design, coding, implementation and testing that are required to build and verify
the software.
The design activities are of main importance in this phase, because in this activity, decisions
ultimately affecting the success of the software implementation and its ease of maintenance are
made. These decisions have the final bearing upon reliability and maintainability of the system.
Design is the only way to accurately translate the customer’s requirements into finished software or
a system.
Design is the place where quality is fostered in development. Software design is a process through
which requirements are translated into a representation of software. Software design is conducted in

two steps. Preliminary design is concerned with the transformation of requirements into data

3.2.2 ER DIAGRAM

Definition
The Entity-Relationship (ER) model was originally proposed by Peter in 1976 [Chen76] as a way
to unify the network and relational database views. Simply stated the ER model is a conceptual data
model that views the real world as entities and relationships. A basic component of the model is the
Entity-Relationship diagram which is used to visually represent data objects. Since Chen wrote his
paper the model has been extended and today it is commonly used for database design for the
database designer, the utility of the ER model is:
• It maps well to the relational model. The constructs used in the ER model can easily be
transformed into relational tables.

• It is simple and easy to understand with a minimum of training. Therefore, the model can be
used by the database designer to communicate the design to the end user.

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 15 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

Figure 4.1- ER Diagram for Client Management System

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 16 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

3.2.3 SCHEMA DIAGRAM

Definition
The database schema of a database is its structure described in a formal language supported by the
database management system (DBMS). The term "schema” refers to the organization of data as a
blueprint of how the database is constructed (divided into database tables in the case of relational
databases).

Figure 4.2-Schema diagram for Client Management system

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 17 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

3.2.4 NORMAL FORM

3.2.5 FIRST NORMAL FORM(1NF)


Definition
The first normal form states that:

• Every column in the table must be unique


• Separate tables must be created for each set of related data
• Each table must be identified with a unique column or concatenated columns called the
primary key
• No rows may be duplicated
• No columns may be duplicated
• No row/column intersections contain a null value
• No row/column intersections contain multivalued fields

3.2.6 SECOND NORMAL FORM(2NF)


Definition
Second normal form (2nf) is the second step in normalizing a database. 2nf builds on the first normal
form (1nf).

Normalization is the process of organizing data in a database so that it meets two basic requirements:

• There is no redundancy of data (all data is stored in only one place).


• Data dependencies are logical (all related data items are stored together).

A 1nf table is in 2nf form if and only if all of its non-prime attributes are functionally dependent on
the whole of every candidate key.

4.3.3 THIRD NORMAL FORM(3NF)


Definition
The third normal form — or 3NF — is part of a set of concepts for database normalization that also
includes first normal form (1NF) and second normal form (2NF).
All the tables in Client Management system satisfy all the three normal forms.

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 18 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

CHAPTER 4
IMPLEMENTATION
4.1 INTRODUCTION TO SOFTWARE USED

4.1 VISUAL STUDIO CODE

Description
Visual Studio Code is a free source-code editor made by Microsoft for Windows, Linux and macOS.
Features include support for debugging, syntax highlighting, intelligent code completion, snippets,
code refactoring, and embedded Git.

Developer: Microsoft Corporation


Software genre: Source-code editor

4.2 MySQL

Description
MySQL is free and open-source software under the terms of the GNU General Public License, and
is also available under a variety of proprietary licenses. MySQL was owned and sponsored by the
Swedish company MySQL AB, which was bought by Sun Microsystems (now Oracle Corporation).
In 2010, when Oracle acquired Sun, Widenius forked the open-source MySQL project to create
MariaDB.

4.2 XAMPP

Description
XAMPP is a free and open-source cross-platform web server solution stack package developed by
Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters
for scripts written in the PHP and Perl programming languages.

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 19 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

4.3 SOURCE CODE


ADMIN(index.html)
<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php')
; if(isset($_POST['login']))
{
$username=$_POST['username'];
$password=md5($_POST['password']);
$sql ="SELECT ID FROM tbladmin WHERE UserName=:username and Password=:password";
$query=$dbh->prepare($sql);
$query-> bindParam(':username', $username, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ); if($query->rowCount()
> 0)
{
foreach ($results as $result) {
$_SESSION['clientmsaid']=$result->ID;
}
$_SESSION['login']=$_POST['username'];
echo "<script type='text/javascript'> document.location ='dashboard.php'; </script>";
} else{ echo "<script>alert('Invalid
Details');</script>";
}
}
?>
<!DOCTYPE HTML>
<html>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 20 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<head>
<title>Client Management System||Login Page</title>
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
<script src="js/jquery-1.10.2.min.js"></script>
<!--clock init-->
</head>
<body>
<div class="error_page">
<div class="error-top">
<h2 class="inner-tittle page" style="left: 36%">ADMIN</h2>
<div class="login">
<div class="buttons login">
<h3 class="inner-tittle t-inner" style="color: #257de6">Sign In</h3>
</div>
<form id="login" method="post" name="login">
<input type="text" class="text" value="User Name" onfocus="this.value = '';" onblur="if (this.value
== '') {this.value = 'E-mail address';}" name="username" required="true">

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 21 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<input type="password" value="Password" onfocus="this.value = '';" onblur="if (this.value == '')


{this.value = 'Password';}" name="password" required="true">
<div class="submit"><input type="submit" onclick="myFunction()" value="Login" name="login"
></div>
<div class="clearfix"></div>
<div class="new"><p><a href="forgot-password.php">Forgot Password?</a></p>
<p><a href="../index.php">Back Home!!</a></p>
<div class="clearfix"></div>
</div>
</form>
</div>
< /div>
<!--//login-top-->
</div>
<!--//login-->
<!--footer section start-->
<div class="footer">
<?php include_once('includes/footer.php');?>
</div>
<!--footer section end-->
<!--/404-->
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 22 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

ABOUT US
<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php'); if
(strlen($_SESSION['clientmsaid']==0)) {
header('location:logout.php');
} else{ if(isset($_POST['submit']))
{
$clientmsaid=$_SESSION['clientmsaid'];
$pagetitle=$_POST['pagetitle'];
$pagedes=$_POST['pagedes'];
$sql="update tblpage set PageTitle=:pagetitle,PageDescription=:pagedes where
PageType='aboutus'";
$query=$dbh->prepare($sql);
$query->bindParam(':pagetitle',$pagetitle,PDO::PARAM_STR);
$query->bindParam(':pagedes',$pagedes,PDO::PARAM_STR);
$query->execute();
echo '<script>alert("About us has been updated")</script>';
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Client Management Sysytem|| Update About Us</title>

<script type="application/x-javascript"> addEventListener("load", function() {


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 23 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<!-- Custom CSS -->


<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
<script src="js/jquery-1.10.2.min.js"></script>
<!--clock init-->
<script src="js/css3clock.js"></script>
<!--Easy Pie Chart-->
<!--skycons-icons-->
<script src="js/skycons.js"></script>
<!--//skycons-icons-->
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
<script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>
</head>
<body>
<div class="page-container">
<!--/content-inner-->
<div class="left-content">
<div class="inner-content">
<?php include_once('includes/header.php');?>
<!--//outer-wp-->
<div class="outter-wp">
<!--/sub-heard-part-->

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 24 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<div class="sub-heard-part">
<ol class="breadcrumb m-b-0">
<li><a href="dashboard.php">Home</a></li>
<li class="active">Update About Us</li>
</ol>
</div>
<!--/sub-heard-part-->
<!--/forms-->
<div class="forms-main">
<h2 class="inner-tittle">Update About Us </h2>
<div class="graph-form">
<div class="form-body">
<form method="post">
<?php
$sql="SELECT * from tblpage where PageType='aboutus'";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1; if($query->rowCount()
> 0) {

foreach($results as $row)
{ ?>
<div class="form-group"> <label for="exampleInputEmail1">Page Title</label> <input
type="text" name="pagetitle" value="<?php echo $row->PageTitle;?>" class="form-control"
required='true'> </div>
<div class="form-group"> <label for="exampleInputEmail1">Page Description</label> <textarea
type="text" name="pagedes" id="pagedes" required="true"class="form-control"><?php echo
$row->PageDescription;?></textarea> </div>

<?php $cnt=$cnt+1;}} ?>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 25 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<button type="submit" class="btn btn-default" name="submit" id="submit">Update</button>


</form>
</div>
</div>
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>
<?php include_once('includes/sidebar.php');?>
<div class="clearfix"></div>
</div> <script>

var toggle = true;


$(".sidebar-icon").click(function() { if
(toggle)
{
$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");
$("#menu span").css({"position":"absolute"});
} else
{
$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
setTimeout(function() {
$("#menu span").css({"position":"relative"});
}, 400);
}
toggle = !toggle;
});
</script>
<!--js -->
<script src="js/jquery.nicescroll.js"></script>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 26 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<script src="js/scripts.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php } ?>

ADD CLIENT

<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php');
if
(strlen($_SESSION['clientmsaid']==0
)) { header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$clientmsaid=$_SESSION['clientmsaid'];
$acctid=mt_rand(100000000, 999999999);
$accttype=$_POST['accounttype'];
$password=md5($_POST['password']);
$cname=$_POST['cname'];
$comname=$_POST['comname'];
$address=$_POST['address'];
$city=$_POST['city'];
$state=$_POST['state'];
$zcode=$_POST['zcode'];
$wphnumber=$_POST['wphnumber'];
$cellphnumber=$_POST['cellphnumber'];

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 27 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

$ophnumber=$_POST['ophnumber'];
$email=$_POST['email'];
$websiteadd=$_POST['websiteadd'];
$notes=$_POST['notes'];
$sql="insert into
tblclient(AccountID,AccountType,ContactName,CompanyName,Address,City,State,ZipCode,Wor
kphnumber,Cellphnumber,Otherphnumber,Email,WebsiteAddress,Notes,Password)values(:acctid,
:accttype,:cname,:comname,:address,:city,:state,:zcode,:wphnumber,:cellphnumber,:ophnumber,:e
mail,:websiteadd,:notes,:password)";
$query=$dbh->prepare($sql);
$query->bindParam(':acctid',$acctid,PDO::PARAM_STR); $query-
>bindParam(':accttype',$accttype,PDO::PARAM_STR);
$query->bindParam(':cname',$cname,PDO::PARAM_STR);
$query->bindParam(':comname',$comname,PDO::PARAM_STR);
$query->bindParam(':address',$address,PDO::PARAM_STR);
$query->bindParam(':city',$city,PDO::PARAM_STR);
$query->bindParam(':state',$state,PDO::PARAM_STR);
$query->bindParam(':zcode',$zcode,PDO::PARAM_STR);
$query->bindParam(':wphnumber',$wphnumber,PDO::PARAM_STR);
$query->bindParam(':cellphnumber',$cellphnumber,PDO::PARAM_STR);
$query->bindParam(':ophnumber',$ophnumber,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':websiteadd',$websiteadd,PDO::PARAM_STR);
$query->bindParam(':notes',$notes,PDO::PARAM_STR);
$query->bindParam(':password',$password,PDO::PARAM_STR);
$query->execute();
$LastInsertId=$dbh->lastInsertId(); if
($LastInsertId>0) {
echo '<script>alert("Client has been added.")</script>'; echo
"<script>window.location.href ='add-client.php'</script>";

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 28 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

} else { echo '<script>alert("Something Went Wrong. Please try


again")</script>';
}
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Client Management Sysytem|| Add Clients</title>

<script type="application/x-javascript"> addEventListener("load", function() {


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
<script src="js/jquery-1.10.2.min.js"></script>
<!--clock init-->
<script src="js/css3clock.js"></script>
<!--Easy Pie Chart-->
<!--skycons-icons-->
<script src="js/skycons.js"></script>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 29 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<!--//skycons-icons-->
</head>
<body>
<div class="page-container">
<!--/content-inner-->
<div class="left-content">
<div class="inner-content">

<?php include_once('includes/header.php');?>
<!--//outer-wp-->
<div class="outter-wp">
<!--/sub-heard-part-->
<div class="sub-heard-part">
<ol class="breadcrumb m-b-0">
<li><a href="dashboard.php">Home</a></li>
<li class="active">Add Clients</li>
</ol>
</div>
<!--/sub-heard-part-->
<!--/forms-->
<div class="forms-main">
<h2 class="inner-tittle">Add Clients </h2>
<div class="graph-form">
<div class="form-body">
<form method="post">

<div class="form-group"> <label for="exampleInputEmail1">Account Type</label>


<select name="accounttype" class="form-control select2" required='true'>
<option value="">Choose Account Type</option>
<option value="Active Account">Active Account</option>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 30 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<option value="Inactive Account">Inactive Account</option>


<option value="Contact/Lead">Contact/Lead</option>
<option value="Unknown">Unknown</option>
</select> </div>
<div class="form-group"> <label for="exampleInputEmail1">Contact Name</label> <input
type="text" name="cname" placeholder="Contact Name" value="" class="form -control"
required='true'> </div>
<div class="form-group"> <label for="exampleInputEmail1">Company Name</label> <input
type="text" name="comname" placeholder="Company Name" value="" class="form-control"
required='true'> </div>

<div class="form-group"> <label for="exampleInputEmail1">Address</label> <textarea


type="text" name="address" placeholder="Address" value="" class="form-control" required='true'

rows="4" cols="3"></textarea> </div>


<div class="form-group"> <label for="exampleInputEmail1">City</label> <input type="text"
name="city" placeholder="City" value="" class="form-control" required='true'> </div>
<div class="form-group"> <label for="exampleInputEmail1">State</label> <input type="text"
name="state" placeholder="State" value="" class="form-control" required='true'> </div>
<div class="form-group"> <label for="exampleInputEmail1">Zip Code</label> <input
type="text" name="zcode" placeholder="Zip Code" value="" class="form -control"
required='true'> </div>
<div class="form-group"> <label for="exampleInputEmail1">Work Phone
Number</label><input type="text" name="wphnumber" value="" placeholder="Work Phone
Number" class="form-control" maxlength='10' required='true' pattern="[0-9]+"> </div>
<div class="form-group"> <label for="exampleInputEmail1">Cell Phone Number</label><input
type="text" name="cellphnumber" value="" placeholder="Cell Phone Number"
class="formcontrol" maxlength='10' pattern="[0-9]+"> </div>
<div class="form-group"> <label for="exampleInputEmail1">Other Phone
Number</label><input type="text" name="ophnumber" value="" placeholder="Work Phone
Number" class="form-control" maxlength='10' pattern="[0-9]+"> </div>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 31 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<div class="form-group"> <label for="exampleInputEmail1">Email Address</label> <input


type="email" name="email" value="" placeholder="Email address" class="form-control"
required='true'> </div>

<div class="form-group"> <label for="exampleInputEmail1">Password</label>


<input placeholder="password" type="password" name="password" required="true" id="password"
class="form-control">
</div>
<div class="form-group"> <label for="exampleInputPassword1">Website Address</label> <input
type="text" name="websiteadd" value="" placeholder="Website Address" require d='true'
class="form-control"> </div>
<div class="form-group"> <label for="exampleInputEmail1">Notes</label> <textarea type="text"
name="notes" placeholder="Notes" value="" class="form-control" required='true' rows="4"

cols="3"></textarea> </div>
<button type="submit" class="btn btn-default" name="submit" id="submit">Save</button>
</form>
</div>
</div>
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>
<?php include_once('includes/sidebar.php');?>
<div class="clearfix"></div>
</div> <script>
var toggle = true;
$(".sidebar-icon").click(function() { if
(toggle)
{
$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 32 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

$("#menu span").css({"position":"absolute"});
} else
{
$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
setTimeout(function() {
$("#menu span").css({"position":"relative"});
}, 400);
}
toggle = !toggle;
});
</script>
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php } ?>

ADD SERVICE

<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php
'); if
(strlen($_SESSION['clientmsaid']=
=0)) {
header('location:logout.php');
} else{ if(isset($_POST['submit']))

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 33 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

$sname=$_POST['sname'];
$price=$_POST['price'];

$sql="insert into tblservices(ServiceName,ServicePrice)values(:sname,:price)";


$query=$dbh->prepare($sql);
$query->bindParam(':sname',$sname,PDO::PARAM_STR);
$query->bindParam(':price',$price,PDO::PARAM_STR);
$query->execute();

$LastInsertId=$dbh->lastInsertId(); if
($LastInsertId>0) {
echo '<script>alert("Service has been added.")</script>'; echo
"<script>window.location.href ='add-services.php'</script>";
} else

{
echo '<script>alert("Something Went Wrong. Please try again")</script>';
}
}

?>
<!DOCTYPE HTML>
<html>
<head>
<title>Client Management Sysytem|| Add Services</title>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 34 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<script type="application/x-javascript"> addEventListener("load", function() {


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
<script src="js/jquery-1.10.2.min.js"></script>
<!--clock init-->
<script src="js/css3clock.js"></script>
<!--Easy Pie Chart-->
<!--skycons-icons-->
<script src="js/skycons.js"></script>
<!--//skycons-icons-->
</head>
<body>
<div class="page-container">
<!--/content-inner-->
<div class="left-content">
<div class="inner-content">

<?php include_once('includes/header.php');?>
<!--//outer-wp-->

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 35 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<div class="outter-wp">
<!--/sub-heard-part-->
<div class="sub-heard-part">
<ol class="breadcrumb m-b-0">
<li><a href="dashboard.php">Home</a></li>
<li class="active">Add Services</li>
</ol>
</div>
<!--/sub-heard-part-->
<!--/forms-->
<div class="forms-main">
<h2 class="inner-tittle">Add Services </h2>
<div class="graph-form">
<div class="form-body">
<form method="post">
<div class="form-group"> <label for="exampleInputEmail1">Service Name</label> <input
type="text" name="sname" placeholder="Service Name" value="" class="form -control"
required='true'> </div>

<div class="form-group"> <label for="exampleInputEmail1">Price of Service</label> <input


type="text" name="price" placeholder="Price of Service" value="" class="form -control"
required='true'> </div>
<button type="submit" class="btn btn-default" name="submit" id="submit">Save</button>
</form>
</div>
</div>
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 36 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<?php include_once('includes/sidebar.php');?>
<div class="clearfix"></div>
</div> <script>

var toggle = true;

$(".sidebar-icon").click(function() { if
(toggle)
{
$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");
$("#menu span").css({"position":"absolute"});
} else
{
$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
setTimeout(function() {
$("#menu span").css({"position":"relative"});
}, 400);
}

toggle = !toggle;
});
</script>
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->


<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php } ?>
DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 37 -
Client Management System OXFORD COLLEGE OF SCIENCE,2021

ADMIN PROFILE

<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php'); if
(strlen($_SESSION['clientmsaid']==0)) {
header('location:logout.php');
} else{ if(isset($_POST['submit']))
{
$adminid=$_SESSION['clientmsaid'];
$AName=$_POST['adminname']; $mobno=$_POST['mobilenumber'];
$email=$_POST['email'];
$sql="update tbladmin set
AdminName=:adminname,MobileNumber=:mobilenumber,Email=:email where ID=:aid";
$query = $dbh->prepare($sql);
$query->bindParam(':adminname',$AName,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':mobilenumber',$mobno,PDO::PARAM_STR);
$query->bindParam(':aid',$adminid,PDO::PARAM_STR);
$query->execute();

echo '<script>alert("Your profile has been updated")</script>'; echo


"<script>window.location.href ='admin-profile.php'</script>";

}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Client Management Sysytem|| Admin Profile</title>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 38 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<script type="application/x-javascript"> addEventListener("load", function() {


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
<script src="js/jquery-1.10.2.min.js"></script>
<!--clock init-->
<script src="js/css3clock.js"></script>
<!--Easy Pie Chart-->
<!--skycons-icons-->
<script src="js/skycons.js"></script>
<!--//skycons-icons-->
</head>
<body>
<div class="page-container">
<!--/content-inner-->
<div class="left-content">
<div class="inner-content">

<?php include_once('includes/header.php');?>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 39 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<!--//outer-wp-->
<div class="outter-wp">
<!--/sub-heard-part-->
<div class="sub-heard-part">
<ol class="breadcrumb m-b-0">
<li><a href="dashboard.php">Home</a></li>
<li class="active">Profile</li>
</ol>
</div>
<!--/sub-heard-part-->
<!--/forms-->
<div class="forms-main">
<h2 class="inner-tittle">Admin Profile </h2>
<div class="graph-form">
<div class="form-body">
<form method="post">
<?php

$sql="SELECT * from tbladmin";


$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1; if($query->rowCount()
> 0)
{
foreach($results as $row)
{ ?>
<div class="form-group"> <label for="exampleInputEmail1">Admin Name</label> <input
type="text" name="adminname" value="<?php echo $row->AdminName;?>" class="formcontrol"

required='true'> </div>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 40 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<div class="form-group"> <label for="exampleInputEmail1">User Name</label> <input


type="text" name="username" value="<?php echo $row->UserName;?>" class="form-control"
readonly=""> </div>
<div class="form-group"> <label for="exampleInputEmail1">Contact Number</label><input
type="text" name="mobilenumber" value="<?php echo $row->MobileNumber;?>"
class="formcontrol" maxlength='10' required='true' pattern="[0-9]+"> </div>

<div class="form-group"> <label for="exampleInputEmail1">Email address</label> <input


type="email" name="email" value="<?php echo $row->Email;?>" class="form-control"
required='true'> </div>
<div class="form-group"> <label for="exampleInputPassword1">Admin Registration
Date</label> <input type="text" name="" value="<?php echo $row->AdminRegdate;?>"
readonly="" class="form-control"> </div><?php $cnt=$cnt+1;}} ?>
<button type="submit" class="btn btn-default" name="submit" id="submit">Update</button>
</form>
</div>
</div>
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>
<?php include_once('includes/sidebar.php');?>
<div class="clearfix"></div>
</div> <script>
var toggle = true;

$(".sidebar-icon").click(function() { if
(toggle)
{
$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 41 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

$("#menu span").css({"position":"absolute"});
} else
{
$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
setTimeout(function() {
$("#menu span").css({"position":"relative"});
}, 400);
}

toggle = !toggle;
});
</script>
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->


<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php } ?>

REPORT DETAILS

<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php'); if
(strlen($_SESSION['clientmsaid']==0)) {
header('location:logout.php');
} else{

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 42 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

?>

<!DOCTYPE HTML>
<html>
<head>
<title>Client Management Sysytem || Between dates reports </title>
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' /> <!--
/js -->
<script src="js/jquery-1.10.2.min.js"></script>
<!-- //js-->
</head>
<body>
<div class="page-container">
<!--/content-inner-->
<div class="left-content">
<div class="inner-content">
<!-- header-starts -->
<?php include_once('includes/header.php');?>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 43 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<!-- //header-ends -->


<!--outter-wp-->
<div class="outter-wp">
<!--sub-heard-part-->
<div class="sub-heard-part">
<ol class="breadcrumb m-b-0">
<li><a href="dashboard.php">Home</a></li>
<li class="active">Between dates reports</li>
</ol>
</div>
<!--//sub-heard-part-->
<div class="graph-visual tables-main">
<h3 class="inner-tittle two">Between dates reports </h3>
<div class="graph">
<div class="tables">
<?php
$fdate=$_POST['fromdate'];
$tdate=$_POST['todate'];
?>
<h5 align="center" style="color:blue">Report from <?php echo $fdate?> to <?php echo
$tdate?></h5>
<table class="table" border="1"> <thead> <tr> <th>#</th>
<th>Invoice Id</th>
<th>Company Name</th>
<th>Contact Name</th>
<th>Invoice Date</th>
<th>Action</th>
</tr>
</thead>
<tbody>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 44 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<?php
$sql="select distinct
tblclient.ContactName,tblclient.CompanyName,tblinvoice.BillingId,tblinvoice.PostingDate from
tblclient join tblinvoice on tblclient.ID=tblinvoice.Userid where date(tblinvoice.PostingDate)
between '$fdate' and '$tdate'";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1; if($query->rowCount()
> 0)
{ foreach($results as
$row)
{ ?>
<tr class="active">
<th scope="row"><?php echo htmlentities($cnt);?></th>
<td><?php echo htmlentities($row->BillingId);?></td>
<td><?php echo htmlentities($row->CompanyName);?></td>
<td><?php echo htmlentities($row->ContactName);?></td>
<td><?php echo htmlentities($row->PostingDate);?></td>

<td><a href="view-invoice.php?invoiceid=<?php echo $row->BillingId;?>">View</a></td> </tr>


<?php $cnt=$cnt+1;}} ?>
</tbody> </table>
</div>

</div>

</div>
<!--//graph-visual-->

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 45 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

</div>
<!--//outer-wp-->
<?php include_once('includes/footer.php');?>
</div>
</div>
<!--//content-inner-->
<!--/sidebar-menu-->
<?php include_once('includes/sidebar.php');?>
<div class="clearfix"></div>
</div> <script>
var toggle = true;

$(".sidebar-icon").click(function() { if
(toggle)
{
$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");
$("#menu span").css({"position":"absolute"});
} else
{
$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
setTimeout(function() {
$("#menu span").css({"position":"relative"});
}, 400);
}

toggle = !toggle;
});
</script>
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 46 -
Client Management System OXFORD COLLEGE OF SCIENCE,2021

<script src="js/scripts.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php } ?>

CHANGE PASSWORD

<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php');
error_reporting(0); if
(strlen($_SESSION['clientmsaid']==0)) {

header('location:logout.php');
} else{ if(isset($_POST['submit']))
{
$adminid=$_SESSION['clientmsaid'];
$cpassword=md5($_POST['currentpassword']); $newpassword=md5($_POST['newpassword']);
$sql ="SELECT ID FROM tbladmin WHERE ID=:adminid and Password=:cpassword";
$query= $dbh -> prepare($sql);
$query-> bindParam(':adminid', $adminid, PDO::PARAM_STR);
$query-> bindParam(':cpassword', $cpassword, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);

if($query -> rowCount() > 0)


{
$con="update tbladmin set Password=:newpassword where ID=:adminid";
$chngpwd1 = $dbh->prepare($con);

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 47 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

$chngpwd1-> bindParam(':adminid', $adminid, PDO::PARAM_STR);


$chngpwd1-> bindParam(':newpassword', $newpassword, PDO::PARAM_STR);
$chngpwd1->execute();

echo '<script>alert("Your password successully changed")</script>'; echo


"<script>window.location.href ='change-password.php'</script>";
} else {
echo '<script>alert("Your current password is wrong")</script>';

}
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Client Management System|| Change Password</title>

<script type="application/x-javascript"> addEventListener("load", function() {


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 48 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<!-- //lined-icons -->


<script src="js/jquery-1.10.2.min.js"></script>
<!--clock init-->
<script src="js/css3clock.js"></script>
<!--Easy Pie Chart-->
<!--skycons-icons-->
<script src="js/skycons.js"></script>
<!--//skycons-icons--> <script
type="text/javascript">
function checkpass()
{
if(document.changepassword.newpassword.value!=document.changepassword.confirmpassword.v
alue) { alert('New Password and Confirm Password field does not match');
document.changepassword.confirmpassword.focus(); return false;
} return
true;
}
</script>
</head>
<body>
<div class="page-container">
<!--/content-inner-->
<div class="left-content">
<div class="inner-content">

<?php include_once('includes/header.php');?>
<!--//outer-wp-->
<div class="outter-wp">
<!--/sub-heard-part-->
<div class="sub-heard-part">
DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 49 -
Client Management System OXFORD COLLEGE OF SCIENCE,2021

<ol class="breadcrumb m-b-0">


<li><a href="dashboard.php">Home</a></li>
<li class="active">Change Password</li>
</ol>
</div>
<!--/sub-heard-part-->
<!--/forms-->
<div class="forms-main">
<h2 class="inner-tittle">Change Password </h2>
<div class="graph-form">
<div class="form-body">
<form name="changepassword" method="post" onsubmit="return checkpass();" action=""> <div
class="form-group"> <label for="exampleInputEmail1">Current Password</label> <input
type="password" name="currentpassword" id="currentpassword" class="form -control"
required="true"> </div>
<div class="form-group"> <label for="exampleInputEmail1">New Password</label> <input
type="password" name="newpassword" class="form-control" required="true"> </div>
<div class="form-group"> <label for="exampleInputEmail1">Confirm Password</label><input
type="password" name="confirmpassword" id="confirmpassword" value=""
class="formcontrol" required="true"> </div>

<button type="submit" class="btn btn-default" name="submit" id="submit">Change</button>


</form>
</div>
</div>
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 50 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<?php include_once('includes/sidebar.php');?>
<div class="clearfix"></div>
</div> <script>

var toggle = true;

$(".sidebar-icon").click(function() { if
(toggle)
{
$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");
$("#menu span").css({"position":"absolute"});
} else
{
$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
setTimeout(function() {
$("#menu span").css({"position":"relative"});
}, 400);
}

toggle = !toggle;
});
</script>
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->


<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php } ?>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 51 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

CONTACT US

<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php'); if
(strlen($_SESSION['clientmsaid']==0)) {
header('location:logout.php');

} else{ if(isset($_POST['submit']))
{

$clientmsaid=$_SESSION['clientmsaid'];
$pagetitle=$_POST['pagetitle'];
$pagedes=$_POST['pagedes'];
$mobnum=$_POST['mobnum'];
$email=$_POST['email'];
$sql="update tblpage set
PageTitle=:pagetitle,PageDescription=:pagedes,Email=:email,MobileNumber=:mobnum where
PageType='contactus'";
$query=$dbh->prepare($sql);
$query->bindParam(':pagetitle',$pagetitle,PDO::PARAM_STR);
$query->bindParam(':pagedes',$pagedes,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':mobnum',$mobnum,PDO::PARAM_STR);
$query->execute();
echo '<script>alert("Contact us has been updated")</script>';
}
?>
<!DOCTYPE HTML>
<html>
<head>
DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 52 -
Client Management System OXFORD COLLEGE OF SCIENCE,2021

<title>Client Management Sysytem|| Update Contact Us</title>

<script type="application/x-javascript"> addEventListener("load", function() {


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
<script src="js/jquery-1.10.2.min.js"></script>
<!--clock init-->
<script src="js/css3clock.js"></script>
<!--Easy Pie Chart-->
<!--skycons-icons-->
<script src="js/skycons.js"></script>
<!--//skycons-icons-->
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
<script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>
</head>
<body>
<div class="page-container">
<!--/content-inner-->

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 53 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<div class="left-content">
<div class="inner-content">

<?php include_once('includes/header.php');?>
<!--//outer-wp-->
<div class="outter-wp">
<!--/sub-heard-part-->
<div class="sub-heard-part">
<ol class="breadcrumb m-b-0">
<li><a href="dashboard.php">Home</a></li>
<li class="active">Update Contact Us</li>
</ol>
</div>
<!--/sub-heard-part-->
<!--/forms-->
<div class="forms-main">
<h2 class="inner-tittle">Update Contact Us </h2>
<div class="graph-form">
<div class="form-body">
<form method="post">
<?php

$sql="SELECT * from tblpage where PageType='contactus'";


$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1; if($query->rowCount()
> 0)
{
foreach($results as $row)

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 54 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

{ ?>
<div class="form-group"> <label for="exampleInputEmail1">Page Title</label> <input type="text"
name="pagetitle" id="pagetitle" required="true" value="<?php echo $row-
>PageTitle;?>" class="form-control"> </div>
<div class="form-group"> <label for="exampleInputEmail1">Email</label> <input type="text"
name="email" id="email" required="true" value="<?php echo $row->Email;?>"
class="formcontrol"> </div>
<div class="form-group"> <label for="exampleInputEmail1">Mobile Number</label> <input
type="text" name="mobnum" id="mobnum" required="true" value="<?php echo $row-
>MobileNumber;?>" class="form-control"> </div>
<div class="form-group"> <label for="exampleInputEmail1">Page Description</label> <textarea
type="text" name="pagedes" id="pagedes" required="true"class="form-control"><?php echo
$row->PageDescription;?></textarea> </div>

<?php $cnt=$cnt+1;}} ?>


<button type="submit" class="btn btn-default" name="submit" id="submit">Update</button>
</form>
</div>
</div>
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>
<?php include_once('includes/sidebar.php');?>
<div class="clearfix"></div>
</div> <script>
var toggle = true;
$(".sidebar-
icon").click(func

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 55 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

tion() { if
(toggle)
{
$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");
$("#menu span").css({"position":"absolute"});
} else
{
$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
setTimeout(function() {
$("#menu span").css({"position":"relative"});
}, 400);
}

toggle = !toggle;
});
</script>
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->


<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php } ?>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 56 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

DASHBOARD

<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php'); if
(strlen($_SESSION['clientmsaid']==0)) {

header('location:logout.php');
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Client Management System||Dashboard</title>

<script type="application/x-javascript"> addEventListener("load", function() {


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/amcharts.js"></script>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 57 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<script src="js/serial.js"></script>
<script src="js/light.js"></script>
<script src="js/radar.js"></script>
<link href="css/barChart.css" rel='stylesheet' type='text/css' />
<link href="css/fabochart.css" rel='stylesheet' type='text/css' />
<!--clock init-->
<script src="js/css3clock.js"></script>
<!--Easy Pie Chart-->
<!--skycons-icons-->
<script src="js/skycons.js"></script>

<script src="js/jquery.easydropdown.js"></script>

<!--//skycons-icons-->
</head>
<body>
<div class="page-container">
<!--/content-inner-->
<div class="left-content">
<div class="inner-content">

<?php include_once('includes/header.php');?>

<div class="outter-wp">
<!--custom-widgets-->
<div class="custom-widgets">
<div class="row-one">
<div class="col-md-4 widget">
<div class="stats-left ">
<?php

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 58 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

$sql ="SELECT ID from tblclient ";


$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$tclients=$query->rowCount();
?>
<h5>Total</h5>
<h4> Clients</h4>
</div>
<div class="stats-right">
<label><?php echo htmlentities($tclients);?></label>
</div>
<div class="clearfix"> </div>
</div>
<div class="col-md-4 widget states-mdl">
<div class="stats-left">
<?php
$sql1 ="SELECT ID from tblservices ";
$query1 = $dbh -> prepare($sql1);
$query1->execute();
$results1=$query1->fetchAll(PDO::FETCH_OBJ);
$tser=$query1->rowCount();
?>
<h5>Total</h5>
<h4>Services</h4>
</div>
<div class="stats-right">
<label> <?php echo htmlentities($tser);?></label> </div>
<div class="clearfix"> </div>
</div>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 59 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<div class="col-md-4 widget">


<div class="stats-left">
<?php
$sql6="select sum(tblservices.ServicePrice) as todaysale from
tblinvoice
join tblservices on tblservices.ID=tblinvoice.ServiceId where date(PostingDate)=CURDATE()";

$query6 = $dbh -> prepare($sql6);


$query6->execute();
$results6=$query6->fetchAll(PDO::FETCH_OBJ); foreach($results6
as $row6)
{

$todays_sale=$row6->todaysale;
}

?>
<h5>Today</h5>
<h4>Sales($)</h4>
</div>
<div class="stats-right">
<label><?php echo $todays_sale;?></label>
</div>
<div class="clearfix"> </div>
</div>
<div class="clearfix"> </div>
</div>
</div>
DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 60 -
Client Management System OXFORD COLLEGE OF SCIENCE,2021

</div>
<div class="outter-wp">
<!--custom-widgets-->
<div class="custom-widgets">
<div class="row-one">

<div class="col-md-4 widget states-mdl">


<div class="stats-left">
<?php
$sql7="select sum(tblservices.ServicePrice) as totalcost from tblinvoice join tblservices on
tblservices.ID=tblinvoice.ServiceId where date(PostingDate)=CURDATE()1;";

$query7 = $dbh -> prepare($sql7);


$query7->execute();
$results7=$query7->fetchAll(PDO::FETCH_OBJ); foreach($results7
as $row7)
{
$yest_sale=$row7->totalcost;
}
?>
<h5>Yesterday</h5>
<h4>Sales($)</h4>
</div>
<div class="stats-right">
<label> <?php echo $yest_sale;?></label>
</div>
<div class="clearfix"> </div>
</div>
<div class="col-md-4 widget states-thrd">
<div class="stats-left">

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 61 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<?php
$sql8="select sum(tblservices.ServicePrice) as totalcost from
tblinvoice join tblservices on
tblservices.ID=tblinvoice.ServiceId where
date(PostingDate)>=(DATE(NOW()) - INTERVAL 7 DAY);";

$query8 = $dbh -> prepare($sql8);


$query8->execute();
$results8=$query8->fetchAll(PDO::FETCH_OBJ); foreach($results8
as $row8)
{

$sevendays_sale=$row8->totalcost;
}
?>

<h5>Last Sevendays</h5>
<h4>Sale($)</h4>
</div>
<div class="stats-right">
<label><?php echo $sevendays_sale;?></label>
</div>
<div class="clearfix"> </div>
</div>
<div class="col-md-4 widget states-last">
<div class="stats-left">
<?php
$sql9="select sum(tblservices.ServicePrice) as totalcost
from tblinvoice join tblservices on
tblservices.ID=tblinvoice.ServiceId";

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 62 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

$query9 = $dbh -> prepare($sql9);


$query9->execute();
$results9=$query9->fetchAll(PDO::FETCH_OBJ); foreach($results9
as $row9)
{
$total_sale=$row9->totalcost;
}
?>
<h5>Total</h5>
<h4>Sales($)</h4>
</div>
<div class="stats-right">
<label><?php echo $total_sale;?></label>
</div>
<div class="clearfix"> </div>
</div>
<div class="clearfix"> </div>
</div>
</div>
</div>

<?php include_once('includes/footer.php');?>

</div>
</div>
<!--//content-inner-->

<?php include_once('includes/sidebar.php');?>
<div class="clearfix"></div>
DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 63 -
Client Management System OXFORD COLLEGE OF SCIENCE,2021

</div> <script>
var toggle = true;
$(".sidebar-icon").click(function() { if
(toggle)
{
$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");
$("#menu span").css({"position":"absolute"});
}
toggle = !toggle;
});
</script>
<!--js -->
<link rel="stylesheet" href="css/vroom.css">
<script type="text/javascript" src="js/vroom.js"></script>
<script type="text/javascript" src="js/TweenLite.min.js"></script>
<script type="text/javascript" src="js/CSSPlugin.min.js"></script>
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->


<script src="js/bootstrap.min.js"></script>
</body>
</html>

FORGET PASSWORD

<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php');
if(isset($_POST['submit']))

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 64 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

{
$email=$_POST['email'];
$mobile=$_POST['mobile'];
$newpassword=md5($_POST['newpassword']);
$sql ="SELECT Email FROM tbladmin WHERE Email=:email and MobileNumber=:mobile";
$query= $dbh -> prepare($sql);
$query-> bindParam(':email', $email, PDO::PARAM_STR);
$query-> bindParam(':mobile', $mobile, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ); if($query -
> rowCount() > 0)
{
$con="update tbladmin set Password=:newpassword where Email=:email and
MobileNumber=:mobile";
$chngpwd1 = $dbh->prepare($con);
$chngpwd1-> bindParam(':email', $email, PDO::PARAM_STR);
$chngpwd1-> bindParam(':mobile', $mobile, PDO::PARAM_STR);
$chngpwd1-> bindParam(':newpassword', $newpassword, PDO::PARAM_STR);
$chngpwd1->execute();
echo "<script>alert('Your Password succesfully changed');</script>";
} else
{
echo "<script>alert('Email id or Mobile no is invalid');</script>";
}
}

?>
<!DOCTYPE HTML>
<html>
<head>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 65 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<title>Client Management System||Forgot Password Page</title>

<script type="application/x-javascript"> addEventListener("load", function() {


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
<script src="js/jquery-1.10.2.min.js"></script>
<!--clock init-->
<script type="text/javascript"> function
valid()
{
if(document.chngpwd.newpassword.value!= document.chngpwd.confirmpassword.value)
{
alert("New Password and Confirm Password Field do not match !!");

document.chngpwd.confirmpassword.focus(); return false;


}
return true; }
</script>
</head>
<body>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 66 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<div class="error_page">

<div class="error-top">
<h2 class="inner-tittle page">CMS</h2>
<div class="login">

<div class="buttons login">


<h3 class="inner-tittle t-inner" style="color: lightblue">Forgot Password</h3> </div>
<form id="login" method="post" name="chngpwd" onSubmit="return valid();">

<input type="text" class="text" placeholder="E-mail Address" name="email" required="true">


<input type="text" class="text" placeholder="Mobile Number" required="true" name="mobile"
maxlength="10" pattern="[0-9]+">
<input type="password" placeholder="New Password" name="newpassword" required="true">
<input type="password" placeholder="Confirm Password" name="confirmpassword"
required="true">
<div class="submit"><input type="submit" onclick="myFunction()" value="Reset" name="submit"
></div>
<div class="clearfix"></div>

<div class="new">
<p><a href="index.php">Already have an account</a></p>
<div class="clearfix"></div>
</div>
</form>
</div>

</div>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 67 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<!--//login-top-->
</div>

<!--//login-->
<!--footer section start-->
<div class="footer">

<?php include_once('includes/footer.php');?>
</div>
<!--footer section end-->
<!--/404-->
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>

INVOICES

<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php'); if
(strlen($_SESSION['clientmsaid']==0)) {

header('location:logout.php');
} else{
?>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 68 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<!DOCTYPE HTML>
<html>
<head>
<title>Client Management Sysytem || Invoice </title>
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' /> <!--
/js -->
<script src="js/jquery-1.10.2.min.js"></script>
<!-- //js-->
</head>
<body>
<div class="page-container">
<!--/content-inner-->
<div class="left-content">
<div class="inner-content">
<!-- header-starts -->
<?php include_once('includes/header.php');?>
<!-- //header-ends -->
<!--outter-wp-->

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 69 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<div class="outter-wp">
<!--sub-heard-part-->
<div class="sub-heard-part">
<ol class="breadcrumb m-b-0">
<li><a href="dashboard.php">Home</a></li>
<li class="active">Invoice</li>
</ol>
</div>
<!--//sub-heard-part-->
<div class="graph-visual tables-main">

<h3 class="inner-tittle two">Invoice </h3>


<div class="graph">
<div class="tables">
<table class="table" border="1"> <thead> <tr> <th>#</th>
<th>Invoice Id</th>
<th>Company Name</th>
<th>Contact Name</th>
<th>Invoice Date</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$sql="select distinct
tblclient.ContactName,tblclient.CompanyName,tblinvoice.BillingId,tblinvoice.PostingDate from
tblclient join tblinvoice on tblclient.ID=tblinvoice.Userid order by tblinvoice.ID desc";
$query = $dbh -> prepare($sql);
$query->execute();

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 70 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;
if($query->rowCount() > 0)
{ foreach($results as
$row)
{ ?>
<tr class="active">
<th scope="row"><?php echo htmlentities($cnt);?></th>
<td><?php echo htmlentities($row->BillingId);?></td>
<td><?php echo htmlentities($row->CompanyName);?></td>
<td><?php echo htmlentities($row->ContactName);?></td>
<td><?php echo htmlentities($row->PostingDate);?></td>
<td><a href="view-invoice.php?invoiceid=<?php echo $row->BillingId;?>">View</a></td> </tr>
<?php $cnt=$cnt+1;}} ?>
</tbody> </table>
</div>
</div>
</div>
<!--//graph-visual-->
</div>
<!--//outer-wp-->
<?php include_once('includes/footer.php');?>
</div>
</div>
<!--//content-inner-->
<!--/sidebar-menu-->
<?php include_once('includes/sidebar.php');?>
<div class="clearfix"></div>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 71 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

</div> <script>
var toggle = true;
$(".sidebar-icon").click(function() { if
(toggle)
{
$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");
$("#menu span").css({"position":"absolute"});
} else
{
$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
setTimeout(function() {
$("#menu span").css({"position":"relative"});
}, 400); }
toggle = !toggle;
});
</script>
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php } ?>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 72 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

CLIENT(index.html)
<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php')
; if(isset($_POST['login']))
{
$email=$_POST['email'];
$password=md5($_POST['password']);
$sql ="SELECT ID FROM tblclient WHERE Email=:email and Password=:password";
$query=$dbh->prepare($sql);
$query-> bindParam(':email', $email, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ); if($query->rowCount()
> 0)
{ foreach ($results as $result)
{
$_SESSION['clientmsuid']=$result->ID;
}
$_SESSION['login']=$_POST['username'];
echo "<script type='text/javascript'> document.location ='dashboard.php'; </script>";
} else{ echo "<script>alert('Invalid
Details');</script>";
}
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Client Management System||Login Page</title>
DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 73 -
Client Management System OXFORD COLLEGE OF SCIENCE,2021

<script type="application/x-javascript"> addEventListener("load", function() {


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
<script src="js/jquery-1.10.2.min.js"></script>
<!--clock init-->
</head>
<body>
<div class="error_page">
<div class="error-top">
<h2 class="inner-tittle page" style="left: 36%">CLIENT </h2>
<div class="login">
<div class="buttons login">
<h3 class="inner-tittle t-inner" style="color: #253ce6">Sign In</h3>
</div>
<form id="login" method="post" name="login">
<input type="text" class="text" value="Email" onfocus="this.value = '';" onblur="if (this.value == '')
{this.value = 'E-mail address';}" name="email" required="true">
<input type="password" value="Password" onfocus="this.value = '';" onblur="if (this.value == '')
{this.value = 'Password';}" name="password" required="true">

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 74 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

<div class="submit"><input type="submit" onclick="myFunction()" value="Login" name="login"


></div>
<div class="clearfix"></div>
<div class="new">
<p><a href="forgot-password.php">Forgot Password?</a></p>
<p><a href="../index.php">Back Home!!</a></p>
<div class="clearfix"></div>
</div>
</form>
</div>
</div>
<!--//login-top-->
</div>
<!--//login-->
<!--footer section start-->
<div class="footer">
<?php include_once('includes/footer.php');?>
</div>
<!--footer section end-->
<!--/404-->
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 75 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

SQL STORED PROCEDURE

DELIMITER $$

CREATE DEFINER=`root`@`localhost` PROCEDURE `PRUTHVI`()


BEGIN
CREATE TABLE `tblservices` (
`ID` int(10) NOT NULL AUTO_INCREMENT,
`ServiceName` varchar(200) DEFAULT NULL,
`ServicePrice` varchar(200) DEFAULT NULL,
`CreationDate` timestamp NULL DEFAULT current_timestamp(),
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
END$$

DELIMITER ;

Call PRUTHVI( );

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 76 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

SQL TRIGGER

1.TRIGGER TO ADD GST TO SERVICES

DELIMITER $$
CREATE TRIGGER `ADD_GST` BEFORE INSERT ON `tblservices`
FOR EACH ROW BEGIN SET new.ServicePrice = new.ServicePrice + new.ServicePrice * 0.18;
END
$$
DELIMITER ;

2.TRIGGER TO CONVERT COMPANY NAME TO UPPERCASE

DELIMITER $$
$$
CREATE TRIGGER `tr_ins_pmp` BEFORE INSERT ON `tblclient`
FOR EACH ROW SET NEW.CompanyName = UPPER(NEW.CompanyName)
$$
DELIMITER ;

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 77 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

4.4 SCREEN SHOTS

Figure 6.1 HOME PAGE

Figure 6.2 ADMIN LOGIN

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 78 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

Figure 6.3 ADMIN DASHBOARD

Figure 6.4 ADD SERVICES

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 79 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

Figure 6.5 MANAGE SERVICES

Figure 6.6 ADD CLIENT

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 80 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

Figure 6.7 MANAGE CLIENT

Figure 6.8 INVOICE

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 81 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

Figure 6.9 REPORT BETWEEN DATES

Figure 6.10 SALES REPORT

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 82 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

Figure 6.11 SEARCH INVOICE

Figure 6.12 ADMIN PROFILE

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 83 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

Figure 6.13 CHANGE PASSWORD

Figure 6.14 CLIENT LOGIN

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 84 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

Figure 6.15 CLIENT DASHBOARD

Figure 6.16 CLIENT DETAILS

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 85 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

Figure 6.17 CHANGE CLIENT PASSWORD

Figure 6.18 INVOICE

Chapter 5

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 86 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

CHAPTER 5

SOFTWARE TESTING

5.1 TESTING ENVIRONMENT


The completion of a system will be achieved only after it has been thoroughly tested. Though
this gives a feel the project is completed, there cannot be any project without going through this
stage. Hence in this stage it is decided whether the project can undergo the real time environment
execution without any break downs, therefore a package can be rejected even at this stage.

5.2 UNIT TESTING

Unit testing is a software development process in which the smallest testable parts of an application,
called units, are individually and independently scrutinized for proper operation. This testing
methodology is done during the development process by the software developers and sometimes QA
staff. The main objective of unit testing is to isolate written code to test and determine if it works as
intended.
Unit testing is an important step in the development process, because if done correctly, it can help
detect early flaws in code which may be more difficult to find in later testing stages.
Unit testing is a component of TDD, a pragmatic methodology that takes a meticulous approach to
building a product by means of continual testing and revision. This testing method is also the first
level of software testing, which is performed before other testing methods such as integration testing.
Unit tests are typically isolated to ensure a unit does not rely on any external code or functions.
Testing can be done manually but is often automated.

5.3 INTEGRATION TESTING


Integration testing is the second level of the software testing process comes after unit testing. In this
testing, units or individual components of the software are tested in a group. The focus of the
integration testing level is to expose defects at the time of interaction between integrated components
or units.

Unit testing uses modules for testing purpose, and these modules are combined and tested in
integration testing. The Software is developed with a number of software modules that are coded by
different coders or programmers. The goal of integration testing is to check the correctness of
communication among all the modules.

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 87 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

5.4 FUNCTIONAL TESTING WITH GUI


To generate a set of test cases, test designers attempt to cover all the functionality of the system and
fully exercise the GUI itself. The difficulty in accomplishing this task is twofold: to deal with domain
size and sequences. In addition, the tester faces more difficulty when they have to do regression
testing.

Unlike a CLI (command-line interface) system, a GUI may have additional operations that need to
be tested. A relatively small program such as Microsoft WordPad has 325 possible GUI
operations.[1] In a large program, the number of operations can easily be an order of magnitude larger.

The second problem is the sequencing problem. Some functionality of the system may only be
accomplished with a sequence of GUI events. For example, to open a file a user may first have to
click on the File Menu, then select the Open operation, use a dialog box to specify the file name, and
focus the application on the newly opened window. Increasing the number of possible operations
increases the sequencing problem exponentially. This can become a serious issue when the tester is
creating test cases manually.

Regression testing is often a challenge with GUIs as well. A GUI may change significantly, even
though the underlying application does not. A test designed to follow a certain path through the GUI
may then fail since a button, menu item, or dialog may have changed location or appearance.
These issues have driven the GUI testing problem domain towards automation. Many diffe rent
techniques have been proposed to automatically generate test suites that are complete and that
simulate user behavior.

Most of the testing techniques attempt to build on those previously used to test CLI programs, but
these can have scaling problems when applied to GUIs. For example, Finite State Machine-based
modeling[2][3] — where a system is modeled as a finite state machine and a program is used to
generate test cases that exercise all states — can work well on a system that has a limited number of
states but may become overly complex and unwieldy for a GUI (see also model-based testing).

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 88 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

CHAPTER 6

CONCLUSION
6.1 LIMITATIONS OF PROJECT

It has been a great pleasure for me to work on this exciting and challenging project. This project
proved good for me as it provided practical knowledge of not only programming in PHP and MySQL
web based application. It also provides knowledge about the latest technology used in developing
web enabled application and client server technology that will be great demand in future.
This will provide better opportunities and guidance in future in developing projects independent

6.2 FUTURE ENHANCEMENT

it provides a friendly graphical user interface which proves to be better when compared to the

existing system.

it gives appropriate access to the authorized users depending on their permissions

it effectively overcomes the delay in communications.

updating of information becomes so easier.

system security, data security and reliability are the striking features.

the system has adequate scope for modification in future if it is necessary

automation of the entire system improves the efficiency

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 89 -


Client Management System OXFORD COLLEGE OF SCIENCE,2021

6.3 BIBLOGRAPHY

[1] CSS and HTML and JAVASCRIPT – https://www.w3schools.com

[2] Homepage – https://stackoverflow.com/

[3] Login Page - https://www.free-css.com/

[4] Dashboard - https://www.youtube.com/

[5] MySQL - https://www.mysqltutorial.org/

[6] PHP - https://www.tutorialspoint.com/php/index.html

DEPARTME NT OF COMPUTER SCIENCE,BANGALORE UNIVERSITY - 90 -

You might also like