0% found this document useful (0 votes)
173 views

Sample Project Report HEMANAY

This document summarizes a project report for developing a digital clock using Java. It was submitted by a student named Hemnay Setia in partial fulfillment of the requirements for a Master of Computer Applications degree. The project was carried out under the supervision of Dr. Rajan Gupta. The report includes chapters on introduction, system analysis, software requirements specification, system design and development, implementation and coding, system testing, and conclusion. The objective of the project was to create a digital clock using Java that provides the time in a user-friendly interface with fast access and less errors.

Uploaded by

Hemanay Setia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
173 views

Sample Project Report HEMANAY

This document summarizes a project report for developing a digital clock using Java. It was submitted by a student named Hemnay Setia in partial fulfillment of the requirements for a Master of Computer Applications degree. The project was carried out under the supervision of Dr. Rajan Gupta. The report includes chapters on introduction, system analysis, software requirements specification, system design and development, implementation and coding, system testing, and conclusion. The objective of the project was to create a digital clock using Java that provides the time in a user-friendly interface with fast access and less errors.

Uploaded by

Hemanay Setia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 102

PROJECT REPORT

ON

“Digital clock using java ”

Submitted in partial fulfilment of the


Requirement for the award of the degree of

Master of Computer Applications

Submitted To Submitted By
Dr. Rajan Gupta HEMANAY SETIA
Associate professor Enrol no:03717704423
VSIT, VIPS MCA-1C

(Batch: 2023-2025)

Vivekananda Institute of Professional Studies –


Technical Campus

(Affiliated to Guru Gobind Singh Indraprastha University)


DECLARATION

This is to certify RAVINDRA KUMAR (roll no: 13417704423) of MCA 1 st Semester from

Vivekananda Institute of Professional Studies, Delhi has presented this project work entitled

“Digital clock using Java” in partial fulfilment of the requirements for the award of the

degree of Master of Computer Application under our supervision and guidance.

Dr. Rajan Gupta Dr. Supriya Madan

(Project Coordinator) (Dean)


ACKNOWLEDGEMENT

It is our proud privilege to express our profound gratitude to the entire management of

Vivekananda Institute of Professional Studies and teachers of the institute for providing us

with the opportunity to avail the excellent facilities and infrastructure. The knowledge and

values inculcated have proved to be of immense help at the very start of my career. Special

thanks to Hon’ble Founder, Vivekananda Institute of Professional Studies, Delhi for having

provided us an excellent infrastructure at VSIT.

I am grateful to Dr. Supriya Madan (Dean, VSIT), and “project guide” for their astute

guidance, constant encouragement and sincere support for this project work.

Sincere thanks to all my family members, seniors and friends for their support and assistance

throughout the project.

Name : RAVINDRA KUMAR

Enroll No. - 13417704423


Table of Contents

Chapter – 1 INTRODUCTION...........................................................1

1.1 About Project...........................................................................2

1.2 Objective..................................................................................2

1.3 Proposed System......................................................................2

1.4 Scope.......................................................................................3-5

Chapter – 2 SYSTEM ANALYSIS................................................... 6

2.1 Identification of need....................................................................7

2.2 Preliminary Investigation........................................................7

2.3 Feasibility Study......................................................................8

2.3.1 Technical Feasibility....................................................8

2.3.2 Economical Feasibility.................................................8

2.3.3 Operational Feasibility.................................................8

Chapter - 3 SOFTWARE REQUIREMENT SPECIFICATION.........9

3.1 System Requirements...............................................................10

3.2 Features of the Software...........................................................11-12

3.3 PHP...........................................................................................12-14

3.4 MySQL......................................................................................15-18
Chapter - 4 SYSTEM DESIGN & DEVELOPMENT.............................19

4.1 System Design.....................................................................................20

4.2 Data Flow Diagrams...........................................................................20-25

4.3 ER Diagram........................................................................................26

Chapter - 5 IMPLEMENTATION AND CODING.................................27-70

Table Structure.........................................................................................71-79

Screenshots...............................................................................................81-88

Chapter - 6 SYSTEM TESTING.............................................................89

6.1. System testing...................................................................................90

6.1.1. Unit testing..............................................................................90

6.1.2. Integration testing.....................................................................90

6.1.3. Validation testing......................................................................91

6.2 System implementation........................................................................91

6.3 Post implementation review.................................................................92

Chapter - 7 CONCLUSION & SCOPE....................................................93

7.1 Future Scope...................................................................................94

7.2 Limitations......................................................................................94

7.3 Conclusion......................................................................................95

Chapter – 8.................................................................................................96

Bibliography............................................................................................97
CHAPTER1
INTRODUCTION

1
ABOUT PROJECT
The following subsections of Software Requirement Specifications Document should
facilitate in providing the entire overview of the Information system “Content Management
System” under development. This document aims at defining the overall software
requirements for user. Efforts have been made to define the requirements of the Information
system exhaustively and accurately.

OBJECTIVE

The main objective of Software Requirement Specifications Document is to describe in a


precise manner all the capabilities that will be provided by the Software Application “Content
Management System”. It also states the various constraints which the system will be abide to.
This document further leads to clear vision of the software requirements, specifications and
capabilities. These are to be exposed to the development, testing team and end users of the
software.

PROPOSED SYSTEM

Proposed system is an automated Content Management System. Through our software user
can add members, add item, view free item, view allot item, view return item in quick time.
Our proposed system has the following advantages.

 User friendly interface

 Fast access to database

 Less error

 More Storage Capacity

 Search facility

 Look and Feel Environment

 Quick transaction

2
All the manual difficulties in managing the Office have been rectified by implementing
computerization.

SCOPE

Many organizations who embark on updating or deploying a content management system for
their web site end up with an everything-and-the-kitchen-sink list of requirements. The
resulting system has to address a myriad of issues, each of which is likely important to
particular departments, or users within the organization. Someone has to have the hard job of
whittling down the requirements into a cohesive set of features that can be met within the
schedule and budget for the project. Ideally, this person is a key player within the client
organization, or at least has the backing of senior management, and can make these hard
decisions.

Definition- A content management system (CMS) is a computer application that


allows news, event and notification publishing, editing and modifying content, organizing,
deleting as well as maintenance from a central interface. Such systems of content
management provide procedures to manage workflow in a collaborative environment. These
procedures can be manual steps or an automated cascade. CMS's have been available since
the late 1990s.CMS's are often used to run websites containing blogs, news, and shopping.
Many corporate and marketing websites use CMS's. CMS's typically aim to avoid the need
for hand coding, but may support it for specific elements or entire pages.

3
Home
 Home Page
 Login Page
 Register User
 About Us
 Contact Us

Admin
 Add Employee
 Employee List
 Add User
 User List
 Notifications List
 Events List
 News List
 Change Password
 Logout

Employee

 Home
 My Account
 User List
 Events List
 News List
 Notifications List
 Change Password
 Logout

User
 My Account
 Add Event
 Events List
 Add Notification

4
 Notifications List
 Add News
 News List
 Change Password
 Logout

5
CHAPTER 2
SYSTEM ANALYSIS

6
SYSTEM ANALYSIS

2.1 PRELIMINARY INVESTIGATION

Things are expected to get even more critical since the company’s growing numbers
of clients and related requirements have been projected to demand a massive number
of employees in the coming future from the past and the today’s date. Such events and
projections have forced a strong need for modification in the current way of handling
activities. it is better to implement the latest of it rather than to go through the pain of
updating the system over and over again. Also the solution would be developed by in-
house developers. Their time have to be managed with their other client dependent
schedules.

2.2 FEASIBILITY STUDY


Depending on the results of the initial investigation, the survey is expanded to a more detailed
feasibility study. Feasibility study is a test of system proposal according to its workability,
impact on the organization, ability to meet user needs, and effective use of resources. The
objective of the feasibility study is not to solve the problem but to acquire a sense of
its scope . During the study, the problem definition is crystallized and aspects of the
problem to be included in the system are determined.

Consequently, costs and benefits are described with greater accuracy at this stage. It
consists of the following:

Statement of the problem: A carefully worded statement of the problem that led to
analysis.
1. Summary of finding and recommendations: A list of the major findings
and recommendations of the study. It is ideal for the user who requires
quick access to the results of the analysis of the system under study.
Conclusion are stated , followed by a list of the recommendation and a
justification for them.
2. Details of findings : An outline of the methods and procedures under-
taken by the existing system, followed by coverage of the objectives and

7
procedures of the candidate system. Included are also discussions of output
reports, file structures, and costs and benefits of the candidate system.
3. Recommendations and conclusions: Specific recommendations regarding the
candidate system, including personnel assignments, costs, project schedules,
and target dates.

2.3.1 TECHNICAL FEASIBILITY

This involves financial considerations to accommodate technical enhancements. If the


budget is a serious constraint, then the project is judged not feasible.

2.3.2 ECONOMICAL FEASIBILITY

With the help of banking application, it will lead to decrease in cost of opening and
maintaining offices which will be more than the cost of developing and maintaining the
Application.

2.3.3 OPERATIONAL FEASIBILITY

This Application is very easy to operate as it is made user friendly. Main consideration is
user’s easy access to all the functionality of the Application.

8
CHAPTER 3
SOFTWARE
REQUIREMENT
SPECIFICATION

9
SOFTWARE REQUIREMENT SPECIFICATION

In systems engineering and software engineering, requirements analysis encompasses those


tasks that go into determining the needs or conditions to meet for a new or altered product,
taking account of the possibly conflicting requirements of the various stakeholders, such as
beneficiaries or users. Systematic requirements analysis is also known as requirements
engineering. It is sometimes referred to loosely by names such as requirements gathering,
requirements capture, or requirements specification. The term requirements analysis can also
be applied specifically to the analysis proper (as opposed to elicitation or documentation of
the requirements, for instance). Requirements analysis is critical to the success of a
development project. Requirements must be actionable, measurable, testable, related to
identified business needs or opportunities, and defined to a level of detail sufficient for
system design.

Requirement analysis is done in order to understand the problem the software system is to
solve. The problem could be automating an existing manual process, developing a new
automated system, or a combination of the two. The emphasis in requirements analysis is on
identifying what is needed from the system, not how the system will achieve its goals. There
are at least two parties involved in the software development-a client and a developer. The
developer has to develop the system to satisfy the client’s needs. The developer does not
understand the client’s problem domain, and the client does not understand the issues
involved in the software systems. This causes a communication gap, which has to be
adequately bridged during requirements analysis.

10
3.1 SYSTEM REQUIREMENTS

3.1.1 HARDWARE SPECIFICATION

VIRTUAL MEMEORY
PROCESSOR : 32 BIT, Pentium – IV
RAM : 512 MB
HARD DISK : 80 GB
MONITOR : SVGA Monitor (800 * 600RESOLUTIONS)
CLOCK SPEED : 266 MHz
FLOPPYDRIVE : 1.44 MB

3.1.2 SOFTWARE SPECIFICATION

OPERATING SYSTEM : Windows 2000/XP.


FRONT END : PHP
MIDDLEWARE : Apache Tomcat
BACK END : PhpMyAdmin
SERVER : Wamp Server

3.2 FEATURES OF SOFTWARE

3.2.1 Windows XP/2000 Advantages


The computing world was presented with the first release of the totally new and revolutionary
operating system. Microsoft windows performance and features that previously has been
accessible only on $20,000 annotations became instantly available to anyone with a high-end
personal computer. Windows is now Microsoft Corporation’s premier operating system.
Designed around a powerful and well thought software architecture, the primary features that
allow Windows to use the full power of today’s processors are

11
Scalability
The ability to run on a single pc chip with a single user up to a multi-user, microprocessor
and network installation.
The Windows GUI
The familiar graphical user interfaces it presents to the world.

ABOUT Php:-

PHP: Hypertext Preprocessor 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. As a general-purpose
programming language, PHP code is processed by an interpreter application in command-
line mode performing desired operating system operations and producing program output on
its standard output channel. It may also function as a graphical application. PHP is available
as a processor for most modern web servers and as a standalone interpreter on most operating
systems and computing platforms.

PHP was originally created by Rasmus Lerdorf in (1995) and has been in continuous
development ever since. The main implementation of PHP is now produced by the PHP
Group and serves as the de facto standard for PHP as there is no formal specification. PHP is
free software released under the PHP License.

PHP is a general-purpose scripting language that is especially suited to server-side web


development where PHP generally runs on a web server. Any PHP code in a requested file
is executed by the PHP runtime, usually to create dynamic web page content. It can also be
used for command-line scripting and client-side GUI applications. PHP can be deployed
on most web servers, many operating systems and platforms, and can be used with many
relational database management systems. It is available free of charge, and the PHP Group
provides the complete source code for users to build, customize and extend for their own use.

PHP primarily acts as a filter, taking input from a file or stream containing text and/or PHP
instructions and outputs another stream of data; most commonly the output will be HTML.

12
Since PHP 4, the PHP parser compiles input to produce byte code for processing by the Zend
Engine, giving improved performance over its interpreter predecessor.

Originally designed to create dynamic web pages, PHP now focuses mainly on server-side
scripting, and it is similar to other server-side scripting languages that provide dynamic
content from a web server to a client.

The LAMP architecture has become popular in the web industry as a way of deploying web
applications. PHP is commonly used as the P in this bundle alongside Linux, Apache and My
SQL.. WAMP packages (Windows/ Apache/ MySQL / PHP) and MAMP packages
(Macintosh / Apache / MySQL / PHP) are also available.

As of April 2007, over 20 million Internet domains had web services hosted on servers with
PHP installed and mod_php was recorded as the most popular Apache HTTP Server module.

Significant website are written in PHP including the user-facing portion of Facebook.

ADVANTAGES TO PHP:-
 Open Source, readily available (you can be using it today) and dual-
licensed - if you are doing non-profit work or not licensing, there is no cost.
 Very Easy to understand Syntax, some really cool features (arrays
are something else!)
 Interfaces very easily with Apache/MySQL
 Server side .
 Lots of good source code out there to use and/or learn from, as well
as many useful libraries for working with PDFs, graphics, etc.
 Lots of good books and on-line help (php.net is great)
 Platform agnostic, can run on Windows Linux or Mac servers. Also
very scalable.
 Lots of hosting services have it ready to use, no special
configuration (except if you have special security needs)
 Pretty easy to access other web-based tools through PHP (i.e. google
maps, etc

13
HOW PHP WORKS.

2) Profile of problem:-
Problems with conventional system
1. Lack of immediate retrievals: -The information is very difficult to retrieve
and to find particular information like- E.g. - To find out about the patient’s
history, the user has to go through various registers. This results in inconvenience
and wastage of time.
2. Lack of immediate information storage: - The information generated
by various transactions takes time and efforts to be stored at right place.
3. Lack of prompt updating: - Various changes to information like patient
details or immunization details of child are difficult to make as paper work is
involved.
4. Error prone manual calculation: - Manual calculations are error prone and
take a lot of time this may result in incorrect information. For example

14
calculation of patient’s bill based on various treatments.
5. Preparation of accurate and prompt reports: - This becomes a difficult
task as information is difficult to collect from various registers.

3.4 MySQL

STRUCTURE QUERY LANGUAGE(SQL)


A query language for RDBMS based on. Non –procedure approach to retrieve record
from RDBMS.
SQL was proposed by IBM and got its standardization by ANSI and adopted by different
corporation with bit modification.
SQL can be divided into three categories as given below:
 DML – Data Manipulation Language.
 DCL - Data Control language.
 DDL – Data Definition language
DML :- Primarily used to retrieve the records from RDBMS
SELECT [*|ALL] FROM <TABLE> [WHERE <CONDITION”] <ORDER BY
[<FIELD>]
[HAVING<CONDITION>]
INSERT INTO <TABLE> ( FIELD1, FIELD2, FIELD3 ) VALUES(VALUES1,
VALUES2,VALUES3);
DDL:- Primary used to create tables/indexes etc.
Create table <table name> (
field name1 type1,
field name2 type2,
field name3 type3
);
Drop table < table name >;
DCL:- Primarily used for administrative /option operation like creating if user/assignment
of password updating of record/deletion of user/creation of roles/assignment of access
right.
Create user<user name>
Identified by <password>
Grant select, insert on EMP to demo;

15
Revoke select on EMP from Demo;
In a summarized way it could be concluded that SQL becomes the query engine that resides
over the database engine having been designed on the client-server Approach and provided
retrieval of data as well as operation on RDBMS. By the Application package and web pages.

Project Category

RDBMS [Relational Database Management System]

A Relational Data Model was invented by Dr. E. F. Codd and is based on the simple concept
i.e., Table.
A RDBMS is a computer program for managing table. It has three major parts:
 Data that is presented as Tables.
 Operators for manipulating tables.
 Integrity rules on tables.

Introduction To MySQL

Modern relational database management systems can perform a wide range of tasks. It has
got the following advantages-

 Define a database
 Query the database
 Add, edit and delete data.
 Modify the structure of the database
 Secure data from public access.
 Communicate within networks
 Export and import data

16
MySQL is one such RDBMS. It provides a set of functional programs that we use a tool
to build structure and performs tasks, in MySQL data is stored and displayed in tables. A
table is a data structure that holds data in a relational database. A table comprises of rows
and columns. Table can also show relationship between entities. The formal name of table
is relation, hence the name Relational Database Management System.

Access of data in mysql

SQL is a structured query language that we use to communicate with mysql. It consists of
a set of English words like Select, Create etc. The standard set of SQL command fall into
the following category-

 Queries using select clause


 Data definition language (DLL) commands which are for creating and altering the
structure of database.
Salient Features of MySql

 Open Source
 Efficient multi-user support and consistency
 Powerful security feature
 Fault tolerance
 Ease of administration
 Application development tools
 Networking
 SQL compatibility
About SQL
SQL is a structured query language that we use to communicate with oracle. It consists
of a set of English words like Select, Create etc. The standard set of SQL command fall
into the following category-

 Queries using select clause


 Data definition language (DLL) commands which are for creating and altering the
structure of database.

17
Platform used: -
Operating System: - Windows 2000 Professional OR Windows XP 2000.
Front End Tool: -
PHP, Ajax, Java script, Ajax, CSS, HTML
Back End Tool: -
RDBMS: - MySQL

Windows XP Professional
This operating system is presented by Microsoft Corp. It supports all the GUI’s facilities and
is very much user friendly.
Purposes programming and other are Supporting Language for Internal Programming.
MySQL
It is an Object- oriented Relational Database management System. It offers capabilities of both
relational and object-oriented database management system.

18
CHAPTER 4
SYSTEM DESIGN
AND DEVELOPMENT

19
SYSTEM DESIGN AND DEVELOPMENT

4.1 SYSTEM DESIGN

Software design is a process through which requirements are translated in to a representation


of software. Initially the representation depicts a holistic view of software. Subsequent
refinement leads to a design representation that is very close to source code.

Since, we are following an Object oriented Design technique, the next step towards the
development is to identify the classes and their relationships. A class is a description of an
object type. Instances of classes are known as Objects. UML also provides tools for
designing the system. Class diagrams enable us to establish relationship among various
classes of the system. Before proceeding on to develop class diagrams, the next step is to
identify the potential classes in the system.some of the basic tips in identifying the classes
are:

 Analyzing the requirement statement.


 Use Cases.
 Application experts.
 Studying the system.

By following these simple rules during the initial process of analyzing, several classes get
formulated. These classes are referred to as candidate classes and they represent the possible
classes in a given system. It is not essential to incorporate all the identified candidate classes;
some of them may also be dropped and are called Unfit candidate classes.

A class icon is a rectangle with three sections in it. Horizontal lines across the rectangle
divide the sections. The first section is where the class name is mentioned. In the second
section the attributes or data members of the class and in the third section the methods or
functions of the class are mentioned. A class diagram thus takes the form

In DFD the cardinality or multiplicity can be expressed at the ends of the association at the
class where it is applicable. Whenever there is no mention of the cardinality then one is
considered.

20
With the help of DFD, we designed the class diagram of our system, which looks like the
following. The cardinality among the relationship is also mentioned.

4.2 DATAFLOW DIAGRAMS

The Data flow diagram can be explained as the separate levels indicating the individual
complexity in the each level of the system and gives a detailed explanation in the further
levels that are following them.

LEVEL 0

Initially in the first level of the Data flow the level 0 explains the basic outline of the system.
The end-user sends the packets to the system to determine the source and destination address.
The diagram marked as the 0 represents the complete Packet watching system which simply
represents the basic operation that is being performed by it in the initial level.

LEVEL 1

The level 1 of the Data flow diagram given explains in detail about the Packet watching
system which was marked as 0 in the previous level. In this level the end-user who passes the
request for the system enters into the first process, the capturing process and then to the
processing module. After processing the packets it was send for storing.

LEVEL 2

The level 2 provides the clear explanation about the whole system. In this level first we have
to select the packet and perform test over that selected packets. Then identify the end address
of the packet and send that packet for processing. After processing the packet it was send to
the identity content. Then send the processed packet for storing and display the source and
destination addresses.

21
DATA FLOW DIAGARAMS

1. Use Case

22
2. DFD-DATA FLOW DIAGRAMS

Context Level DFD

23
1 LEVEL DFD

24
2 LEVEL DFD

25
4.3 ER Diagram

In the ER-Diagram :

26
CHAPTER 5
IMPLEMENTATION
AND
CODING

27
Index.php
<?php
include './dbconfig.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Welcome to Content&nbsp;Writer&nbsp;Authentication&nbsp;Checker</title>
<meta name="keywords" content="" />
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/colorbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.js"></script>
<script type="text/javascript" src="js/reaction.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.colorbox.js"></script>
<script type="text/javascript">
$(document).ready(function() {
//Examples of how to assign the ColorBox event to elements
$(".example6").colorbox({iframe: true, innerWidth: 450, innerHeight: 480});
//Example of preserving a JavaScript event for inline calls.
$("#click").click(function() {
$('#click').css({"background-color": "#f00", "color": "#fff", "cursor":
"inherit"}).text("Open this window again and this message will still be here.");
return false;
});
});
</script>
</head>
<body>
<!-- start header -->
<div id="header">
<?php include 'header.php'; ?>

</div>
<!-- end header -->
<div id="wrapper">
<!-- start page -->
<div id="page">
<div id="sidebar1" class="sidebar">
<?php
if (empty($user_id)) {
?>
<ul>
<li style="background: #f2f2f2;">
<h2>Login</h2><br/>

28
<form id="login-form" action="source/login.php" method="post"
onsubmit="return validate();">
<fieldset class="userdata">
<table>
<?php
if ($_SESSION['MSG'] != '') {
?>
<tr><td align="left" style="font-size:14x;color: blue;padding-
bottom: 5px;"><?php echo $_SESSION['MSG'] ?></td></tr>
<?php
$_SESSION['MSG'] = "";
}
?>
<tr><td>Email ID</td></tr>
<tr>
<td>
<input type="text" name="txtuname" id="txtuname"/>
</td>
</tr>
<tr><td>Password</td></tr>
<tr>
<td>
<input type="password" name="txtpwd" id="txtpwd"/>
</td>
</tr>

<tr>
<td>
<input type="submit" name="btnlogin" id="bottom"
class="button" style="margin-left: 45px;" value="Log in"/>
</td>
</tr>
</table>
</fieldset>
</form>
</li>
</ul>
<?php
} else {
include './leftmenu.php';
}
?>
</div>
<!-- start content -->
<div id="content" style="width: 740px;">
<div class="flower">
<img src="images/management-society.jpg" alt="" width="740" height="250"
/>
</div>
<div class="post">

29
<h1 class="title"><a href="#">Welcome you to MRIU News
Agency</a></h1>
<div class="entry">
<p>
MRIU is a Content Management System (CMS), Is a Computer
Application that allows news, events and notification publishing, editing and modifying
Content, organizing, deleting as well as maintenance from a central interface.
</p>
<ul>
<li>Such systems of Content Management provides procedures to
manage workflows in a collaborative environment.</li>
<li>These procedures can be manual steps or an automated cascade </li>
<li>Content development and design services and training</li>
<li>Browsing through MRIU New Agency to see the current news and
latest event happening around us along with publishing date. </li>
<li>Providing organized and cripsed format and content for users tp post
and read the content</li>
<li>Content development and design services and Trainig</li>
</ul>
</div>
</div>

</div>

<!-- end sidebars -->


<div style="clear: both;">&nbsp;</div>
</div>
<!-- end page -->
</div>
<?php include 'footer.php'; ?>
</body>
</html>

30
Add_event.php
<?php
include './dbconfig.php';
if (!empty($user_id)) {

if (isset($_POST['btnsubmit'])) {

$event_name = $_POST['event_name'];
$description = $_POST['description'];
$start_date = $_POST['start_date'];
$end_date = $_POST['end_date'];

$query = "insert into


events(employee_id,event_name,created,description,start_date,end_date) values('$user_id','"
. $event_name . "',now(),'" . $description . "','" . $start_date . "','" . $end_date . "')";
$r = mysql_query($query);
$num = (int) $r;
if ($num > 0) {
$_SESSION['MSG'] = "Event has been successfully added.!!";
} else {
$_SESSION['MSG'] = "Event has not been added.!!";
}
header("location:add_event.php");
}
?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Add Event - MRIU Content Writer Authentication Checker</title>
<meta name="keywords" content="" />

31
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
function checkform() {

var event_name = document.getElementById("event_name");

if (event_name.value.trim() == "") {
alert('Please enter event name.');
description.focus();
return false;
}

var description =
document.getElementById("description");
if (description.value.trim() == "")
{ alert('Please enter event description.');
description.focus();
return false;
}
}

</script>
</head>
<body>
<!-- start header -->
<div id="header">
<?php
include 'header.php';
?>
</div>
<!-- end header -->

32
<div id="wrapper">
<!-- start page -->
<div id="page">
<div id="sidebar1" class="sidebar">
<?php include 'leftmenu.php'; ?>
</div>
<!-- start content -->
<div id="content">
<div class="post" style="width: 760px;border-left: dotted 1px #232323;">
<h1 class="title" style="border-bottom: dotted 1px #232323;">Add
Event</h1>

<div style="height: 550px;border-style: none;width: 760px;" >


<form action="" method="post">
<table width="100%" border="0" cellspacing="5" cellpadding="5">
<?php
if (isset($_SESSION['MSG'])) {
echo '<div class="indv_fields ind"><label for="name"
style="color:red">' . $_SESSION['MSG'] . '</label></div>';
//$_SESSION['MSG'] = "";
}
?>
<div class="indv_fields ind">
Event&nbsp;Name<br/>
<input type="text" name="event_name"id="event_name"
maxlength="200"/
>
</div>
<div class="indv_fields ind">
<label for="phone">Description</label> <br/>
<textarea
rows="4" cols="50" name="description" id="description" >Enter
event description. </textarea>

33
</div>
<div class="indv_fields ind">
<label for="phone">Start&nbsp;Date</label> <br/>
<input type="text" name="start_date"id="start_date"
maxlength="100"/
>
</div>
<div class="indv_fields ind">
<label for="phone">End Date</label> <br/>
<input type="text" name="end_date"id="end_date"

maxlength="100"/
> </div>
<div class="ind">
<input type="submit" name="btnsubmit" id="btnsubmit"
value="Submit" onclick="return checkform();" class="button" />
</div>
</table>
</form>
</div>
</div>
</div>
<!-- end content -->
<!-- end sidebars -->
<div style="clear: both;">&nbsp;</div>
</div>
<!-- end page -->
</div>
<?php include 'footer.php'; ?>
</body>
</html>
<?php
} else {

34
header("location:index.php?msg=login");
ob_flush();
}
mysql_close();
?>

Add_news.php
<?php
include './dbconfig.php';
if (!empty($user_id)) {

if (isset($_POST['btnsubmit'])) {

$news = $_POST['news'];

//if image upload


$path = "uploads";
$time = date("fYhis"); //get time
$imgname = "";

//upload profile image


$profile_image = $_FILES['fileimg']['name'];
if (!empty($profile_image)) {
$extension = substr(strrchr($profile_image, '.'), 1); //filethumgimg
$imgname = $time . "." . $extension;
$comImagePath = $path . "/" . $imgname;
$action = copy($_FILES['fileimg']['tmp_name'], $comImagePath);
} else {

35
$imgname = "";
}

$query = "insert into news(employee_id,news,created,img_path) values('$user_id','" .


$news . "',now(),'".$imgname."')";
$r = mysql_query($query);
$num = (int) $r;
if ($num > 0) {
$_SESSION['MSG'] = "News has been successfully added.!!";
} else {
$_SESSION['MSG'] = "News has not been added.!!";
}
header("location:add_news.php");
}
?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Add News - Content Writer Authentication Checker</title>
<meta name="keywords" content="" />
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
function checkform() {

var sugesstion = document.getElementById("sugesstion");


if (sugesstion.value.trim() == "") {
alert('Please enter sugesstion.');
sugesstion.focus();
return false;
}

36
}

</script>
</head>
<body>
<!-- start header -->
<div id="header">
<?php
include 'header.php';
?>
</div>
<!-- end header -->
<div id="wrapper">
<!-- start page -->
<div id="page">
<div id="sidebar1" class="sidebar">
<?php include 'leftmenu.php'; ?>
</div>
<!-- start content -->
<div id="content">
<div class="post" style="width: 760px;border-left: dotted 1px #232323;">
<h1 class="title" style="border-bottom: dotted 1px #232323;">Add
News</h1>

<div style="height: 550px;border-style: none;width: 760px;" >


<table border="0" width="100%">
<tr>
<td valign="top">
<form action="" method="post" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="5"
cellpadding="5">
<?php

37
if (isset($_SESSION['MSG'])) {
echo '<div class="indv_fields ind"><label for="name"
style="color:red">' . $_SESSION['MSG'] . '</label></div>';
//$_SESSION['MSG'] = "";
}
?>
<div class="indv_fields ind">
<label for="phone">News<span
class="red">*</span></label>
<input type="text" name="news"id="news" />
</div>
<div class="indv_fields ind">
<label>Image</label> <br/>
<input type="file" name="fileimg" id="fileimg"
maxlength="100"/>
</div>
<div class="ind">
<input type="submit" name="btnsubmit" id="btnsubmit"
class="button" value="Submit" onclick="return checkform();" />
</div>
</table>
</form>
</td>
</tr>
</table>
</div>
</div>
</div>
<!-- end content -->
<!-- end sidebars -->
<div style="clear: both;">&nbsp;</div>
</div>

38
<!-- end page -->
</div>
<?php include 'footer.php'; ?>
</body>
</html>
<?php
} else {
header("location:index.php?msg=login");
ob_flush();
}
mysql_close();
?>

Add_notification.php
<?php
include './dbconfig.php';
if (!empty($user_id)) {

if (isset($_POST['btnsubmit'])) {

$notification = $_POST['notification'];

$query = "insert into notifications(employee_id,notifications,created)


values('$user_id','" . $notification . "',now())";
$r = mysql_query($query);
$num = (int) $r;
if ($num > 0) {
$_SESSION['MSG'] = "Notification has been successfully added.!!";
} else {
$_SESSION['MSG'] = "Notification has not been added.!!";

39
}
header("location:add_notification.php");
}
?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Add Notification - Content Writer Authentication Checker</title>
<meta name="keywords" content="" />
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
function checkform() {

var notification = document.getElementById("notification");


if (notification.value.trim() == "") {
alert('Please enter notification.');
notification.focus();
return false;
}
}

</script>
</head>
<body>
<!-- start header -->
<div id="header">
<?php
include 'header.php';
?>

40
</div>
<!-- end header -->
<div id="wrapper">
<!-- start page -->
<div id="page">
<div id="sidebar1" class="sidebar">
<?php include 'leftmenu.php'; ?>
</div>
<!-- start content -->
<div id="content">
<div class="post" style="width: 760px;border-left: dotted 1px #232323;">
<h1 class="title" style="border-bottom: dotted 1px #232323;">Add
Notification</h1>
<div style="height: 550px;border-style: none;width: 760px;" >
<table border="0" width="100%">
<tr>
<td valign="top">
<form action="" method="post">
<table width="100%" border="0" cellspacing="5"
cellpadding="5">

<?php
if (isset($_SESSION['MSG'])) {
echo '<div class="indv_fields ind"><label for="name"
style="color:red">' . $_SESSION['MSG'] . '</label></div>';
//$_SESSION['MSG'] = "";
}
?>
<div class="indv_fields ind">
<label for="phone">Notification<span
class="red">*</span></label>
<input type="text" name="notification"id="notification"
/>

41
</div>
<div class="ind">
<input type="submit" name="btnsubmit" id="btnsubmit"
value="Submit" class="button" onclick="return checkform();" />
</div>
</table>
</form>
</td>
</tr>
</table>
</div>
</div>
</div>
<!-- end content -->
<!-- end sidebars -->
<div style="clear: both;">&nbsp;</div>
</div>
<!-- end page -->
</div>
<?php include 'footer.php'; ?>
</body>
</html>
<?php
} else {
header("location:index.php?msg=login");
ob_flush();
}
mysql_close();
?>

42
Add_employee.php

<?php
include './dbconfig.php';
if (!empty($user_id)) {

if (isset($_POST['btnsubmit'])) {

$registeras = $_POST['rdoemployee'];
$name = $_POST['txtname'];
$gender = $_POST['cmbgender'];
$phone = $_POST['txtcontact'];
$email = $_POST['txtemail'];
$password = $_POST['txtnewpwd'];
$society = $_POST['txtsociety'];
$city = $_POST['txtcity'];

//if image upload


$path = "uploads";
$time = date("fYhis"); //get time
$imgname = "";

//upload profile image


$profile_image = $_FILES['fileimg']['name'];
if (!empty($profile_image)) {
$extension = substr(strrchr($profile_image, '.'), 1); //filethumgimg
$imgname = $time . "." . $extension;
$comImagePath = $path . "/" . $imgname;
$action = copy($_FILES['fileimg']['tmp_name'], $comImagePath);
} else {

43
$imgname = "";
}
$query = "insert into
register(name,gender,contact,email,city,password,reg_date,status,utype,imgpath)
values('$name','$gender','$phone','$email','$city','$password',now(),1,'$registeras','$imgname'
)";
$r = mysql_query($query);
$num = (int) $r;
if ($num > 0) {
$_SESSION['MSG'] = "Your information has been successfully submited.!!";
} else {
$_SESSION['MSG'] = "Your information has not been submited.!!";
}
header("location:addemployee.php");
}
?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Add Employee - Content Writer Authentication Checker</title>
<meta name="keywords" content="" />
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
function checkform() {

var name = document.getElementById("txtname");


if (name.value.trim() == "") {
alert('Please enter your name.');
name.focus();

44
return false;
}

var gender = document.getElementById("cmbgender");


if (gender.value.trim() == "na")
{
alert('Please select a gender.');
gender.focus();
return false;
}
var email = document.getElementById("txtemail");
if (email.value.trim().search(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-
Z]{2,4}$/) == -1) {
alert('Please enter Your email id.');
email.focus();
return false;
}
var phone = document.getElementById("txtcontact");
if (phone.value.trim() == "") {
alert('Please enter your contact number.');
phone.focus();
return false;
}
var len = phone.value.length;
if (len <= 9) {
alert('Contact no should be ten digits.');
phone.focus();
return false;
}

45
var pwd = document.getElementById('txtnewpwd');
if (pwd.value.trim() == "") {
alert('Please enter your password.');
pwd.focus();
return false;
}

var conpwd = document.getElementById('txtcpwd');


if (conpwd.value.trim() == "") {
alert('Pleasse enter a confirm password.');
conpwd.focus();
return false;
}

if (pwd.value.trim() != conpwd.value.trim()) {
alert('Confirm password does not matched.');
conpwd.focus();
return false;
}

//check for Integer


function checkInteger(i)
{
if (i.value.length > 0)
{
i.value = i.value.replace(/[^\d]+/g, '');
}
}

46
</script>
</head>
<body>
<!-- start header -->
<div id="header">
<?php
include 'header.php';
?>
</div>
<!-- end header -->
<div id="wrapper">
<!-- start page -->
<div id="page">
<div id="sidebar1" class="sidebar">
<?php include 'leftmenu.php'; ?>
</div>
<!-- start content -->
<div id="content">
<div class="post" style="width: 760px;border-left: dotted 1px #232323;">
<h1 class="title" style="border-bottom: dotted 1px #232323;">Add
User</h1>

<div style="height: 550px;border-style: none;width: 760px;" >


<form action="addemployee.php" method="post"
enctype="multipart/form-data">

<?php
if (isset($_SESSION['MSG'])) {
echo '<div class="indv_fields ind"><label for="name"
style="color:red">' . $_SESSION['MSG'] . '</label></div>';
//$_SESSION['MSG'] = "";
}

47
?>
<div class="indv_fields">
<label for="name">Name<span class="red">*</span></label><br/>
<input type="hidden" name="rdoemployee" id="rdostudent"
value="user"/>
<input type="text" name="txtname" id="txtname" value="" />
</div>
<div class="indv_fields">
<label for="gender">Gender<span class="red">*</span></label>
<br/>
<select name="cmbgender" id="cmbgender" class="select">
<option value="na" selected> - - - - Select-------</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</div>
<div class="indv_fields">
<label for="phone">Email ID</label> <br/>
<input type="text" name="txtemail"id="txtemail" />
</div>
<div class="indv_fields">
<label for="Contact No.">Contact No.</label><br/>
<input type="text" name="txtcontact"id="txtcontact" value=""
maxlength="10"/
>
</div>
<div class="indv_fields">
<label for="City">City</label> <br/>
<input type="text" name="txtcity"id="txtcity" value=""/>
</div>
<div class="indv_fields ">
<label for="password">Password</label> <br/>

48
<input type="password" name="txtnewpwd" id="txtnewpwd"
value="" placeholder="Your password" maxlength="25"/>
</div>
<div class="indv_fields ind"><br/>
<label for="confirm">Confirm Password</label>
<input type="password" name="txtcpwd" id="txtcpwd" value=""
placeholder="Your confirm password" maxlength="25"/>
</div>
<div class="ind">
<input type="submit" name="btnsubmit" id="btnsubmit"
class="button" value="Submit" onclick="return checkform();" />
</div>

</form>
</div>
</div>
</div>
<!-- end content -->
<!-- end sidebars -->
<div style="clear: both;">&nbsp;</div>
</div>
<!-- end page -->
</div>
<?php include 'footer.php'; ?>
</body>
</html>
<?php
} else {
header("location:index.php?msg=login");
ob_flush();
}

49
mysql_close();
?>

contact.php
<?php
include './dbconfig.php';
if (isset($_POST['btnsubmit'])) {
$error = "";
extract($_POST);
if (empty($name)) {
$error = "Please enter name.";
}
if (empty($email)) {
$error = "Please enter email.";
}
if (empty($phone_no)) {
$error = "Please enter phone_no.";
}
if (empty($subject)) {
$error = "Please enter subject.";
}
if (empty($message)) {
$error = "Please enter your message.";
}
if (empty($error)) {
$sql_query = "INSERT INTO
contact(name,email,phone_no,subject,message,adding_date)"
. "VALUES('" . $name . "','" . $email . "','" . $phone_no . "','" . $subject . "','" .
$message . "','" . date('Y-m-d h:i:s') . "')";
$result = mysql_query($sql_query);
if ($result) {

50
header("location:contact.php?reg=success");
} else {
$error = "Data has not been saved.";
}
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Contact - Content Writer Authentication Checker</title>
<meta name="keywords" content="" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />

</head>
<body>
<!-- start header -->
<div id="header">
<?php include 'header.php'; ?>
</div>
<!-- end header -->
<div id="wrapper">
<!-- start page -->
<div id="page">
<div id="sidebar1" class="sidebar">
<ul>
<li style="background: #f2f2f2;">
<h2>Login</h2><br/>

51
<form id="login-form" action="source/login.php" method="post"
onsubmit="return validate();">
<fieldset class="userdata">
<table>
<?php
if ($_SESSION['MSG'] != '') {
?>
<tr><td align="left" style="font-size:14x;color: maroon;padding-
bottom: 5px;"><?php echo $_SESSION['MSG'] ?></td></tr>
<?php
$_SESSION['MSG'] = "";
}
?>
<tr><td>Email ID</td></tr>
<tr>
<td>
<input type="text" name="txtuname" id="txtuname"/>
</td>
</tr>
<tr><td>Password</td></tr>
<tr>
<td>
<input type="password" name="txtpwd" id="txtpwd"/>
</td>
</tr>
<tr>
<td>
<input type="submit" name="btnlogin" id="bottom"
class="button" style="margin-left: 0px;" value="Log in"/>
</td>
</tr>

52
</table>
</fieldset>
</form>
</li>

</ul>
</div>
<!-- start content -->
<div id="content" style="width: 740px;">
<div class="flower">
<img src="images/management-society.jpg" alt="" width="740" height="250"
/>
</div>
<div class="post" style="width: 760px;border-left: dotted 1px #232323;">
<h1 class="title" style="border-bottom: dotted 1px #232323;">Contact
To</h1>
<div style="height: 550px;border-style: none;width: 760px;" >
<table border="0" width="100%">
<tr>
<td valign="top">
Name: SACHI WADHAWAN<br/>
Contact No: 9555423888<br/>
Email Id: [email protected]<br/>
</td>
</tr>
</table>
</div>
</div>

</div>
<!-- end sidebars -->

53
<div style="clear: both;">&nbsp;</div>
</div>
<!-- end page -->
</div>
<?php include 'footer.php'; ?>
</body>
</html>

leftmenu.php
<ul style="border-right: dotted 1px #232323;">
<li>
<h2>Objects</h2>
<ul>
<li>
<?php
if (!empty($user_image)) {
echo '<img src="' . $user_image . '" height=150 width=200>';
} else {
echo '<img src="uploads/default.jpg" height="150" width="200"/>';
}
?>
</li>
<?php
if ($user_type == "user") {
?>
<li><a href="profile.php">My Account</a></li>
<li><a href="add_event.php">Add Event</a></li>
<li><a href="event_list.php">Events List</a></li>
<li><a href="add_notification.php">Add Notification</a></li>
<li><a href="notification_list.php">Notifications List</a></li>

54
<li><a href="add_news.php">Add News</a></li>
<li><a href="news_list.php">News List</a></li>
<?php
} else if ($user_type == "admin") {
?>
<li><a href="userhome.php">Home</a></li>
<li><a href="add_director.php">Add Employee</a></li>
<li><a href="userlist.php?type=employee">Employee List</a></li>
<li><a href="addemployee.php">Add User</a></li>
<li><a href="userlist.php?type=user">User List</a></li>
<li><a href="notification_list.php">Notifications List</a></li>
<li><a href="event_list.php">Events List</a></li>
<li><a href="news_list.php">News List</a></li>
<?php
} else if ($user_type == "employee") {
?>
<li><a href="userhome.php">Home</a></li>
<li><a href="profile.php">My Account</a></li>
<li><a href="userlist.php?type=user">User List</a></li>
<li><a href="event_list.php">Events List</a></li>
<li><a href="news_list.php">News List</a></li>
<li><a href="notification_list.php">Notifications List</a></li>
<?php
}
?>
<li><a href="changepwd.php">Change Password</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</li>
</ul>

55
logout.php
<?php

ob_start();
session_start();
header("Pragma: no-cache");
header("Cache: no-cahce");
$_SESSION['UTYPE'] = "";
$_SESSION['USERID'] = "";
$_SESSION['NAME'] = "";
$_SESSION['MSG'] = "";
$_SESSION['IMGPATH'] = "";
unset($_SESSION['UTYPE']);
unset($_SESSION['USERID']);
unset($_SESSION['NAME']);
unset($_SESSION['IMGPATH']);
unset($_SESSION['MSG']);
session_destroy();
ob_start();
session_start();
$_SESSION['MSG'] = "You are successfully logout.";
header("location:index.php");
?>

56
profile.php
<?php
include './dbconfig.php';
if (isset($_POST['btnupdate'])) {
$name = $_POST['txtname'];
$gender = $_POST['cmbgender'];
$phone = $_POST['txtcontact'];
$email = $_POST['txtemail'];
$qual = $_POST['txtqual'];
$city = $_POST['txtcity'];

$profile_image = $_FILES['fileimg']['name'];
$path = "uploads";
$time = date("fYhis"); //get time
if (!empty($profile_image)) {
$extension = substr(strrchr($profile_image, '.'), 1); //filethumgimg
$imgname = $time . "." . $extension;
$comImagePath = $path . "/" . $imgname;
$action = copy($_FILES['fileimg']['tmp_name'], $comImagePath);
if ($action) {
$query_img = "update register set imgpath='" . $comImagePath . "' where usrid =
'$user_id' ";
mysql_query($query_img);
$_SESSION['IMGPATH'] = $comImagePath;
}
}
$query = "update register set
name='$name',gender='$gender',contact='$phone',email='$email',society='$qual',city='$city'
where usrid = '$user_id' ";
$r = mysql_query($query);
$num = (int) $r;

57
if ($num > 0) {
$_SESSION['MSG'] = "Your profile has been successfully updated.!!";
} else {
$_SESSION['MSG'] = "Your profile has not been updated.!!";
}
header("location:profile.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Profile - Content Writer Authentication Checker</title>
<meta name="keywords" content="" />
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
function checkform() {

var name = document.getElementById("txtname");


if (name.value.trim() == "") {
alert('Please enter your name.');
name.focus();
return false;
}

var gender = document.getElementById("cmbgender");


if (gender.value.trim() == "na")
{
alert('Please select a gender.');
gender.focus();

58
return false;
}

var email = document.getElementById("txtemail");


if (email.value.trim() == "") {
alert('Please enter Your email id.');
email.focus();
return false;
}
var phone = document.getElementById("txtcontact");
if (phone.value.trim() == "") {
alert('Please enter your contact number.');
phone.focus();
return false;
}
var qual = document.getElementById("txtqual");
if (qual.value.trim() == "") {
alert('Please enter your qualification.');
qual.focus();
return false;
}

//check for Integer


function checkInteger(i)
{
if (i.value.length > 0)
{

59
i.value = i.value.replace(/[^\d]+/g, '');

}
</script>
</head>
<body>
<!-- start header -->
<div id="header">
<?php
include 'header.php';
?>
</div>
<!-- end header -->
<div id="wrapper">
<!-- start page -->
<div id="page">
<div id="sidebar1" class="sidebar">
<?php include 'leftmenu.php'; ?>
</div>
<!-- start content -->
<div id="content">
<div class="post" style="width: 740px;border-left: dotted 1px #232323;">
<h1 class="title" style="border-bottom: dotted 1px #232323;">My
Profile</h1>

<div class="entry" style="height: 500px;">


<form action="" method="post" enctype="multipart/form-data">
<table cellpadding="5" cellspacing="5" width="100%">

60
<?php
if (!empty($_SESSION['MSG'])) {
echo '<tr><td colspan="4" align="center"><font
color="red" style="font-size:13px;">' . $_SESSION['MSG'] . ' </font></td></tr>';
unset($_SESSION['MSG']);
}

// fetch query from registration for updation student profile


$sqlquery = "select * from register where usrid = '$user_id'";
$result = mysql_query($sqlquery);
while ($row = mysql_fetch_array($result)) {
?>
<tr>
<td width="20%">
Name:
</td>
<td>
<input type="text" name="txtname" id="txtname"
value="<?php echo $row ['name'] ?>" size="30"/>
</td>
<td width="20%">
Gender:
</td>
<td>
<select style="width: 200px;" name="cmbgender"
id="cmbgender">

<option value="na"> - - - - Select-------</option>


<option value="Male"> Male </option>
<option value="Female"> Female </option>
<option value="<?php echo $row ['gender'] ?>" selected>
<?php echo $row ['gender'] ?> </option>
</select>

61
</td>
</tr>
<tr>
<td>
Email ID:
</td>
<td>
<input type="text" name="txtemail" id="txtemail"
value="<?php echo $row ['email'] ?>" size="30"/>
</td>
<td>
Contact No.:
</td>
<td>
<input type="text" name="txtcontact" id="txtcontact"
value="<?php echo $row ['contact'] ?>" size="30" onkeyup="checkInteger(this)"/>
</td>
</tr>

<tr>
<td>
City:
</td>
<td>
<input type="text" name="txtcity" id="txtcity" value="<?php
echo $row ['city'] ?>" size="30"/>
</td>
<td>
Profile Pic:
</td>
<td>

62
<input type="file" name="fileimg" id="fileimg" />
</td>
</tr>

<?php } ?>
<tr>
<td colspan="4" align="right">
<input type="submit" name="btnupdate" id="btnupdate"
value="Update" onclick="return checkform();" class="button"/>
</td>
</tr>
</table>

</form>
</div>
</div>

</div>
<!-- end content -->

<!-- end sidebars -->


<div style="clear: both;">&nbsp;</div>
</div>
<!-- end page -->
</div>
<?php include 'footer.php'; ?>
</body>
</html>

63
register.php
<?php
include './dbconfig.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Content Writer Authentication Checker - Registration</title>
<meta name="keywords" content="" />
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
function checkform(){

var name = document.getElementById("txtname");


if(name.value.trim() == ""){
alert('Please enter your name.');
name.focus();
return false;
}

var gender = document.getElementById("cmbgender");


if(gender.value.trim()=="na")
{
alert('Please select a gender.');
gender.focus();
return false;
}
var email = document.getElementById("txtemail");

64
if(email.value.trim().search(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/)
==-1){
alert('Please enter Your email id.');
email.focus();
return false;
}
var phone = document.getElementById("txtcontact");
if(phone.value.trim() == ""){
alert('Please enter your contact number.');
phone.focus();
return false;
}
var len = phone.value.length;
if(len <= 9){
alert('Contact no should be ten digits.');
phone.focus();
return false;
}

var society = document.getElementById("txtsociety");


if(society.value.trim() == ""){
alert('Please enter your society.');
society.focus();
return false;
}
var house = document.getElementById("txthouseno");
if(house.value.trim() == ""){
alert('Please enter your house no.');
house.focus();
return false;
}

65
var pwd = document.getElementById('txtnewpwd');
if(pwd.value.trim() == ""){
alert('Please enter your password.');
pwd.focus();
return false;
}

var conpwd = document.getElementById('txtcpwd');


if(conpwd.value.trim() == ""){
alert('Pleasse enter a confirm password.');
conpwd.focus();
return false;
}

if(pwd.value.trim() != conpwd.value.trim()){
alert('Confirm password does not matched.');
conpwd.focus();
return false;
}

//check for Integer


function checkInteger(i)
{
if(i.value.length>0)
{
i.value = i.value.replace(/[^\d]+/g, '');
}

66
}
</script>
</head>
<body style="background: #f2f2f2;">
<form action="source/register.php" method="post" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="5" cellpadding="5">
<tr>
<td height="30" colspan="4" style="border-bottom: dotted 1px #232323;color:
maroon;"><h1>Registration Form</h1></td>
</tr>

<?php
if ($_SESSION['MSG'] != '') {
echo '<tr><td colspan="4" valign="middle" align="center"><font color="red"
style="font-size:13px;">' . $_SESSION['MSG'] . ' </font></td></tr>';
$_SESSION['MSG'] = "";
}
?>

<tr>
<td width="30">&nbsp;</td>
<td height="30"><span style="color:#232323;">Name</span> <span
class="red"> *</span> : </td>
<td>
<input type="hidden" name="rdoregister" id="rdostudent" value="user"/>
<input type="text" name="txtname" id="txtname" size="30"/>
</td>
<td width="30">&nbsp;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>

67
<td height="30"><span style="color:#232323;">Gender</span> <span
class="red"> *</span> : </td>
<td>
<select style="width: 200px;" name="cmbgender" id="cmbgender">
<option value="na" selected> - - - - Select-------</option>
<option value="Male"> Male </option>
<option value="Female"> Female </option>
</select>
</td>
<td width="30">&nbsp;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td height="30"><span style="color:#232323;">Email ID</span> <span
class="red"> *</span> : </td>
<td>
<input type="text" name="txtemail" id="txtemail" size="30"/>
</td>
<td width="30">&nbsp;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td height="30"><span style="color:#232323;">Contact No.</span> <span
class="red"> *</span> : </td>
<td>
<input type="text" name="txtcontact" id="txtcontact" size="30"
onkeyup="checkInteger(this)"/>
</td>
<td width="30">&nbsp;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>

68
<td height="30"><span style="color:#232323;">City</span> : </td>
<td>
<input type="text" name="txtcity" id="txtcity" size="30"/>
</td>
<td width="30">&nbsp;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td height="30"><span style="color:#232323;">Password</span> <span
class="red"> *</span> : </td>
<td>
<input type="password" name="txtnewpwd" id="txtnewpwd" size="30"/>
</td>
<td width="30">&nbsp;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td height="30"><span
style="color:#232323;">Confirm&nbsp;Password</span>&nbsp;<span
class="red">&nbsp;*</span>&nbsp;: </td>
<td>
<input type="password" name="txtcpwd" id="txtcpwd" size="30"/>
</td>
<td width="30">&nbsp;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td height="30"><span style="color:#232323;">Upload Image</span>&nbsp;:
</td>
<td>
<input type="file" name="fileimg" id="fileimg" size="20"/>
</td>

69
<td width="30">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td width="120" align="right">
<input type="submit" name="" id="" value="Submit" class="button"
onclick="return checkform();"/>
<input type="reset" name="" id="" value="Reset" class="button"/>
</td>
<td align="left"></td>
</tr>
</table>
</form>
</body>
</html>

header.php

<div id="logo">
<h1><a href="index.php"><span>MRIU News Agency
</span>Content&nbsp;Writer&nbsp;Authentication&nbsp;Checker</a></h1>
</div>
<div id="menu">
<?php
if (!empty($user_id)) {
?>
<!-- <ul id="main">
<li><a href="index.php">Home</a></li>
<li><a href="user_event.php">Events</a></li>

70
<li><a href="news.php">News</a></li>
<li><a href="user_notificaitons.php">Notification</a></li>
</ul>-->
<a href="" style="cursor:default;background: none;padding-right:
0px;;">Welcome&nbsp;to,&nbsp;&nbsp;</a>
<a href="#" style="background: none;padding-left: 0px;"><?php echo $user_name
?>&nbsp;
<div style="padding-top: 15px;float: right;margin-right: 30px;"></div>
</a>
<?php } else {
?>
<ul id="main">
<li><a href="index.php">Home</a></li>
<li><a href="user_event.php">Events</a></li>
<li><a href="news.php">News</a></li>
<li><a href="user_notificaitons.php">Notification</a></li>
<li><a href="contact.php">Contact Us</a></li>
</ul>
<?php } ?>
</div>

71
footer.php
<div id="footer" style="margin-top: -30px;">
<p class="copyright" style="text-align: center;width: 100%;"> Design and Developed By
<a href="#">Content Writer Authentication Checker @Team</a>.</p>
</div>

Table Structure:
/*
SQLyog Community Edition- MySQL GUI v5.22a
Host - 5.0.19-nt : Database - cms
********************************************************
*************
Server version : 5.0.19-nt
*/

/*!40101 SET NAMES utf8 */;

/*!40101 SET SQL_MODE=''*/;

create database if not exists `cms`;

USE `cms`;

72
/*!40014 SET
@OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECK
S, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE,
SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;

/*Table structure for table `contact` */

DROP TABLE IF EXISTS `contact`;

CREATE TABLE `contact` (


`id` bigint(10) NOT NULL auto_increment,
`name` varchar(50) NOT NULL,
`email` varchar(100) NOT NULL,
`phone_no` varchar(16) NOT NULL,
`subject` varchar(255) default NULL,
`message` varchar(255) NOT NULL,
`adding_date` datetime default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*Data for the table `contact` */

73
insert into
`contact`(`id`,`name`,`email`,`phone_no`,`subject`,`message`,`adding
_date`) values (1,'gautam','[email protected]','7820866619','text','i am
a student','2015-01-25 09:41:32'),
(2,'gautam','[email protected]','7820866619','ram','compleat e
project','2015-01-26 11:07:02'),
(10,'gautam','[email protected]','7820866619','php','ghansm
addfvdf','2015-02-02 08:51:03'),
(11,'gautam','[email protected]','7820866619','i have successfully
registred','i have successfully registred','2015-02-02 08:57:07'),
(12,'hsj','[email protected]','dshjkhjkjn','uh','
jkdkfsbf','2015-04-19 06:45:53'),
(13,'newone','[email protected]','9897456495','problem no 2','i have
problem in all the subjects.. please help','2015-04-19 07:22:21');

/*Table structure for table `events` */

DROP TABLE IF EXISTS `events`;

CREATE TABLE `events` (


`id` bigint(20) NOT NULL auto_increment,
`employee_id` bigint(20) default NULL,
`event_name` varchar(200) default NULL,
`description` varchar(800) default NULL,
`start_date` varchar(200) default NULL,
`end_date` varchar(200) default NULL,

74
`created` datetime default NULL,
`event_status` char(1) default '2' COMMENT '0=>Disapprove, 1=>
Approve',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*Data for the table `events` */

insert into
`events`(`id`,`employee_id`,`event_name`,`description`,`start_date`,`e
nd_date`,`created`,`event_status`) values (3,17,'testing','testing
events','10 march 2015','15 march 2015','2016-03-18 18:41:52','2'),
(4,17,'testing','testing events','10 march 2015','15 march
2015','2016-03-18 18:42:08','2'),(6,14,'tommoro pakistan vs
india','Match','10 march 2015','12 march 2015','2016-03-18
21:02:27','1'),(7,14,'tsting emventsflskaflklk','lasflasfl afsjdlkfa
lfajl','2016-03-24 00:00:01','2016-03-28 23:59:59','2016-03-19
19:06:36','1'),(8,14,'flksadflalfdkl','faslkdflkalfd','2016-03-24
00:00:01','2016-03-28 23:59:59','2016-03-19
19:14:05','0'),(9,14,'testing 1111111111','Vivo','2016-03-22
00:00:01','2016-03-26 23:59:59','2016-03-19
19:24:36','0'),(10,14,'dsf','dfgsdfgsdfg','89797','dsfgdsfg','2016-05-21
16:32:15','1');

/*Table structure for table `news` */

DROP TABLE IF EXISTS `news`;

75
CREATE TABLE `news` (
`id` bigint(20) NOT NULL auto_increment,
`employee_id` bigint(20) default NULL,
`news` varchar(800) default NULL,
`img_path` varchar(255) default NULL,
`nstatus` char(1) default '2',
`created` datetime default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*Data for the table `news` */

insert into
`news`(`id`,`employee_id`,`news`,`img_path`,`nstatus`,`created`)
values (6,14,'Choosing a suitable Kotak Mahindra Bank Savings
Account can be a frugal ... the Savings Account eligibility form
available online with required personal
data.','f2016125112.jpg','2','2016-03-19 00:51:12'),(7,14,'Choosing a
suitable Kotak Mahindra Bank Savings Account can be a frugal ... the
Savings Account eligibility form available online with required
personal data.','f2016125126.gif','2','2016-03-19 00:51:26'),
(8,14,'Choosing a suitable Kotak Mahindra Bank Savings Account
can be a frugal ... the Savings Account eligibility form available
online with required personal data.','f2016125223.jpg','1','2016-03-19
00:52:23');

76
/*Table structure for table `notifications` */

DROP TABLE IF EXISTS `notifications`;

CREATE TABLE `notifications` (


`id` bigint(20) NOT NULL auto_increment,
`employee_id` bigint(20) default NULL,
`notifications` varchar(800) default NULL,
`nstatus` char(1) default '2',
`created` datetime default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*Data for the table `notifications` */

insert into
`notifications`(`id`,`employee_id`,`notifications`,`nstatus`,`created`)
values (1,17,'event is start at 6 march.','2','2016-03-09 00:17:06');

/*Table structure for table `register` */

DROP TABLE IF EXISTS `register`;

77
CREATE TABLE `register` (
`usrid` bigint(20) NOT NULL auto_increment,
`name` varchar(100) NOT NULL,
`gender` varchar(50) default NULL,
`contact` varchar(25) default NULL,
`email` varchar(100) NOT NULL,
`city` varchar(100) default NULL,
`password` varchar(100) NOT NULL,
`utype` enum('admin','teacher','director','user') NOT NULL,
`reg_date` datetime default NULL,
`status` smallint(6) default '1',
`imgpath` varchar(200) default NULL,
`login_status` char(1) default NULL,
PRIMARY KEY (`usrid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*Data for the table `register` */

insert into
`register`(`usrid`,`name`,`gender`,`contact`,`email`,`city`,`password`,`
utype`,`reg_date`,`status`,`imgpath`,`login_status`) values
(2,'Administrator','Male','9555821757','admin','Delhi','admin','admin','
2012-09-19 00:28:26',1,NULL,'1'),(13,'Prity
78
Kumari','Female','98888988989','[email protected]','Delhi','prity','dire
ctor','2013-04-08
00:24:39',1,'uploads/f2016113302.jpg','0'),(14,'Ghanshyam
Kumar','Male','98989898980','[email protected]','New
Delhi','testing','teacher','2016-03-04 11:21:09',1,'','0'),(15,'Priyanka
Gupta','Female','8989898787','[email protected]','India','testing','d
irector','2016-03-04 11:27:52',1,'','0'),(17,'Hemant
Kumar','Male','9898989898','[email protected]','New
Delhi','testing','teacher','2016-03-05
00:29:54',1,'uploads/f2016024515.jpg','0'),(18,'Pawan
Kumar','Male','9898989898','[email protected]','New
Delhi','pawan','director','2016-03-05 00:33:02',1,'','0');

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;


/*!40014 SET
FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;

79
SCREEN SHOTS
Home Page

List of Events

80
List of News

List of Notifications

81
Contact Us

82
Administrator Page

Add Employee

83
Employee List

Add User

84
User List

Notification List

85
Events List

News List

86
Change Password

87
CHAPTER 6
SYSTEM TESTING

88
SYSTEM TESTING AND IMPLEMENTATION

The testing and implementation they are important and final phases. All the process that has
been done is just a trail or by assumption. All the required hardware & software is prepared
for the testing so that some errors or some modifications may be required for further
proceeding.

6.1 SYSTEM TESTING

Testing is vital to the success of the system. System testing makes a logical assumption that if
all parts of the system are correct. The goal will be successfully achieved. There are four
steps with in, they are,

 Unit Testing
 Integration Testing
 Validation testing
 Output Testing

6.1.1 UNIT TESTING

In this testing, the smaller part of the project is tested first that is modules and the sub
functions present in the project. It seems to be working satisfactorily with out the errors and
that shows the unit testing is successful.

6.1.2 INTEGRATION TESTING

The integration testing is a part that the software makes all functions behaviors and process
required. The errors which are uncovered are integrated testing, are corrected during this
phase. The collection of the functions are tested and found with errors are rectified .So that
the result can be easily obtained in a successful manner.

89
6.1.3 VALIDATION TESTING

The validation part is very much essential for each every application projects so that each data can
be validated in a good manner. In some cases the records are created according to the key of the
corresponding table to which it has been referenced for data constraint for good secured database.
While testing the system by using test data errors are again uncovered and corrected by using
above testing steps and corrections are also noted for future use. If there is any error then it is
allowed for testing from the beginning.

6.1.4 OUTPUT TESTING

The output is major required part of the development of the project. The output is tested for
required format, if it does not acquire such format then the testing is done or any screen
modification is alone for the further operations. The output testing is mainly for the two things they
are,

 On screen format
 Print format

The screen is found to be correct as the format designed according to the user needs for the
hard copy also; the output comes out as specified by the user. Hence output testing doesn’t
result in any correction in the system.

6.2 SYSTEM IMPLEMENTATION

Training the operating staff


Installing hardware
Installing terminals
Installing telecommunication network before system is up and running.

In the implementation phase, the project reached its fruition. After the development phase of
the SDLC is complete, the system is implemented. The software, which was designed in
design and programmed in development phase of the SDLC, was installed on all the PCs that
require it. The persona’s using the program was trained during this phase of the SDLC.

90
Moreover, both the hardware and software are tested. Although we found and fixed many

91
problems, almost invariably, the user’s helped us to uncover problems that we were unable
to simulate.

These were the main activities performed by us in the course of the project, which lead to its
proper completion.

6.3 POST IMPLEMENTATON REVEIW

When computer based systems are built therefore we must develop mechanism for evaluating
controlling and making modifications, maintenance issued to improve the case with which
the changes can be accommodated and reduce the amount of expended on its maintenance
activity occurs because it is unreasonable to assume that software testing will uncover all
latest errors in a large software system. The final event in the post implementation flow is
review that revalidates all elements of the system configuration and ensures correctness, after
the software maintenance, software reviews is being conducted for future maintenance effort
and provides feedback, which is important to effectively management of software
organization.

92
CHAPTER 7
SCOPE & CONCLUSION

93
SCOPE & CONCLUSION

7.1 FUTURE SCOPE

 For user desiring on-the-publish his/her news, notification and event experience prior
to publish, but it has required for admin permission for publish on home page.

 Organization automation system is very helpful in collecting the record of an


organization efficiently and in less time.

 It requires less man power to keep the record and to update it time to time quickly.

 Less skilled labour is needed to maintain the database in comparison to the traditional
office management.

 Insertion and deletion of a particular field or any name in the any position except the
last one is very typical in traditional office management but very easy in this case.

 Useful for collecting the record worldwide through the net and hence useful for
multinational companies or agencies.

7.2 LIMITATION

 Due to unavailability of templates it is impossible to generate different types of


framework ,here we need to develop them by our own.

 Since Microsoft and Java the testing becomes cumbersome.

94
7.3 CONCLUSION

There was a lot of fun in making this project. This project was very useful to us as it provided
us the inside view of the planning and implementation of the data base. In this project we had
to think about the various options which we can provide to user. The implementation was not
easy as we had to look into the minute details in order to achieve my goals. We have tried to
make this project user friendly and also interactive by providing many features.

We are satisfied by achieving the goals for which we had planned. A lot of experimental
work can be done with this project. Looking forward for any advice which can help us to
improve the project.

95
CHAPTER 8
BIBLIOGRAPHY

96
Various sites referred to during making of the project are as follows:

 www.en.wikipedia.org

 www.google.com

 www.howstuffworks.com

 www.roseindia.net

 www.w3cschools.com

Various books referred to for Java, HTML, XML & DHTML clarification and documentation
are as follows:

 Advanced Java 2 Platform by Harvey. M. Dietal.


 Core Java 2, Volume II-Advanced Features by Cay Horetmann Gary Cornelll.
 Head First Servlets and Jsp by by Oreilly.
 Head First HTML with CSS by Chris Schalk(Author), Ed Burns (Author),
James Holmes.
 HML and XHTML by Chuck Musciano and Bill Kennedy.
 Java Handbook by Patrick Naughton.
 Professional Java Programming by Brett Spell.
 Programming with Java by E. Balaguruswamy.
 The Best-Practice Guide to XHTML by Patrick Griffiths.

97

You might also like