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

1

SEMINAR ON INDUSTRIAL TRAINING


(June-July, 2013)




ACTI VE CI TY ADMI NI STRATI ON


Submitted by

Himanshu Agarwal
11000186






Under the Guidance of


Mr. Shwetank Kumar Gupta
(Training Coordinator, TCIL-IT, Chandigarh)




Discipline of CSE/IT



Lovely Professional University, Phagwara
June-July, 2013.



2
DECLARATION


I hereby declare that I have completed my six weeks summer training at TCIL-IT,
Chandigarh from 27
th
May 2013 to 11
th
July 2013 under the guidance of Mr. Shwetank
Kumar Gupta. I have worked with full dedication during these six weeks and my learning
outcomes fulfill the requirements of training.





Name of Student: Himanshu Agarwal
Registration Number: 11000186
Date: 5
th
August, 2013












3
ACKNOWLEDGEMENT


Apart from the efforts of me, the success of my project depends largely on the encouragement
and guidelines of many others. I take this opportunity to express my gratitude to the people
who have been instrumental in the successful completion of this project.
I would like to show my greatest appreciation to my project in-charge, Mr. Shwetank
Kumar Gupta. I cant say thank you enough for the tremendous support and help. I feel
motivated and encouraged every time I attend his classes. Without his encouragement and
guidance this project work would not have materialized.
Im highly grateful to Mr. Manoj Dhiman (Head of Placements and Training, TCIL-
IT,Chandigarh), also to my training coordinator, for his thorough guidance right from the
day one till the end of training. He actually laid the ground for conceptual understanding of
technologies used in project.












4






















5
INDEX


1. Organization Overview-----------------------------------------------------------------------[6]

2. Profile of the Problem-------------------------------------------------------------------------[8]

3. Existing System--------------------------------------------------------------------------------[9]

4. Problem Analysis-----------------------------------------------------------------------------[10]
a. Product definition
b. Feasibility Analysis

5. Software Requirement Analysis------------------------------------------------------------[12]

6. Design------------------------------------------------------------------------------------------[13]
a. Tables and their relationships
b. Flowcharts

7. Source Code-----------------------------------------------------------------------------------[16]

8. Screen Shots-----------------------------------------------------------------------------------[38]

9. Gantt chart-------------------------------------------------------------------------------------[41]

10. Project Legacy--------------------------------------------------------------------------------[42]
a. Technical and Managerial lessons learnt.

11. Bibliography-----------------------------------------------------------------------------------[43]










6

ORGANIZATIONAL OVERVIEW

Telecommunications consultants India Limited Information Technology popularly known
as TCILIT, managed by ICSIL (joint venture of Delhi State Industrial Infrastructure
Development Corporation, an undertaking of Delhi Govt. & TCIL, A Govt. of India
Enterprise under ministry of communications and information technology). In Chandigarh,
ICS is a license of TCIL-IT training division in 1999 with a vision to contribute to the IT
world by focusing on IT Education, Training and Development, entrepreneurship and
innovation. TCIL-IT Chandigarh brilliantly running its Industrial training programs from
more than a decade and has reputed name in northern region of the country, provide training
to students of almost every Technical University/Engineering College of Punjab HARYANA,
H.P., and Rajasthan etc. In the past decade TCIL IT, Chandigarh trained thousands of
engineering graduates successfully.
TCIL-IT, Chandigarh provides training in PHP, .Net, JAVA, ETHICAL HACKING,
EMBEDDED SYSTEM, NETWORKING ADMINISTRATION and TELECOM
TECHNOLOGY in the Tri-city i.e. Chandigarh, Mohali and Panchkula with their team of
experienced and trained faculties from their respective area of expertise. Where a gamut of
comprehensive training programs is being introduced in software, hardware and networking,
telecom, multimedia, interior designing and fashion technology through its countrywide
network.
Over the years TCIL- IT has been so able to build its reputation that its distinctive name is
being sought after by the biggest and best market majors-from Indian army to MNCs, for
Imparting IT Training in Software, Hardware, Telecom and Embedded systems.
The curriculum development team of TCIL-IT Chandigarh is updating its training curriculum
regularly to pace-up with the current needs and requirements of the IT Industry. The training
curriculum is designed giving utmost importance to:-
i. Live project based knowledge and practical skills, where the trainees are getting ample time
to work in labs.
ii. Various Interactive Sessions are integral part of our training curriculum.

TCIL-IT is managed by ICSIL (Intelligent Communication Systems India Ltd.), a Joint
Venture of TCIL (Telecommunication Consultants India Ltd), a Govt. of India Enterprise and
DSIIDC (Delhi State Industrial Infrastructure Development Corporation Ltd), a Govt. of
Delhi Undertaking. TCIL-IT has tie-up with many government agencies to impart computer
education for career advancement.

7

In Information Technology TCIL has established its IT Training Centre TCIL- IT which is
running various courses duly approved by Department of Electronics, Govt. of India for
career advancement. Keeping in view the rising need for quality computer professionals,
TCIL has introduced a gamut of comprehensive computer courses in Software, Hardware,
Multimedia, Telecom, Interior Designing and Fashion Technology through its countrywide
network. Over the years TCIL has built up a solid reputation for offering world class training
in software, hardware and multimedia courses. From Indian Army, Banks to Multinational
majorsTCIL -IT is being sought after by the biggest and the best for imparting IT Training.
The curriculum development team of TCIL is in regular touch with todays industry and
updates the course curriculum regularly to meet its demands. As the course curriculum is
designed giving equal importance to theoretical knowledge and practical skills, the students
will get ample time to work in computers.
The placement cell of TCIL ensures suitable jobs for the meritorious students.
The business of TCIL is characterized by advanced technologies both in the field of Telecom
and IT. Technology is advancing very fast and with a view to keep updated with the latest
technology TCIL undertakes training activities either through its own resources or through
external agencies. TCIL is having strategic tie-up to provide telecom training with the
following prestigious institutes of Govt. of India:

Advanced Level Telecom Centre (ALTTC), Ghaziabad

Centre for Excellence in Telecom Technology and Management, Mumbai

TCIL has also organized a number of training programs catering to specific requirements of
Telecom PTTs from various countries viz. Ethiopia, Nigeria, Kuwait, Maldives, Republic of
Yemen.








8
PROFILE OF THE PROBLEM

Project Title: Active City Administration
Project Duration: 2 Weeks
Project Category: Website Development


This project is the development of a website using PHP, CSS, JavaScript and HTML. The
IDE Adobe Dreamweaver CS5.5 have been used to develop it along with the WAMP server
for server side scripting. This project is developed in partial fulfillment of requirements for
the degree of B.Tech-CSE from LOVELY PROFESSIONAL UNIVERSITY (LPU).

ABOUT THE PROJECT

Profile of the problem
This application mainly help those people who are not able to go to police station for
some reasons and for those whose complaints are not listening. Now these ways every
person knows about the functioning of every political or criminal dept. that how
efficiently and honestly they serve their duties.
With the help of this application the problems like corruption will also be removed.
Display all fairness working and innovation in that particular area.
This application is very useful for all people who want to make the country corruption
free and developed.
With the help of this application young guys also take interest in all over development
because it is an interesting, fair and trendy way of all solutions of problems.

9
EXISTING SYSTEM

The primary concern of every system client is validity of the purchased software product in
the near future. In order to cope with this problem, programmers often provide their clients
with regular system updates so that in case there have been any change include in working
criteria of institution/organization, it can be absorbed within existing automated system.
I have compiled this project keeping this point in full regards that it can be easily upgraded if
need arises. From time to time, new modules can be added to it or existing ones can be
modified. The development tools we have used i.e. PHP, My SQL on windows server are
flexibility allowing tools and hence changes to existing system can be made very easily in
order to make it serve a long way.

This project will provide information to all common man power that how the development is
going on likes as:
Corruption free
Easy to complaint
Easy to get solutions
Innovative ideas and multiple solutions
No harassment
Fair and open system
Lead to progress of country
Bribe free system
Youth participation

10
PROBLEM ANALYSIS

PRODUCT DEFINITION AND FEASIBILITY ANALYSIS
Active City Administration
This project is aimed at developing an application which can streamline to all about manual
complains and its solutions for the public. It involves both administrative and police
departments to handle all type issues. This project is to develop and deploy a web based
application so that the different aspects of complain system will be improved and easy to
handle.


Users can visit our site and can get knowledge about the laws and get to know about
the current issues and news but users will have to register first to put their complaints,
they can chat with our officers online to have help about any topic. So that every work
should be clearly done without harassment and corruption its easiest and helpful to
every user. They have a proper FIR form available here and proper instruction
regarding this. Users can get knowledge about how to keep themselves save from the
safety tips page. Students can know about the laws and rules of our constitution. Users
can also directly connect with our organization in case of having any query.

News
Laws
FIR FORM Download
Frequently Asked Questions
Important Links
Complaint Box with Category
Contact page with message to admin



11
News: ACA have provided the news page for user/people, which provide the information
related to-
Crime News:- latest news about the crime
Achievements:-Achievements of our organization.
Activities: - Activities i.e. the cases recently running.


Laws: It provides the information about legal rules of Indian laws and helps them to
understand the legal working of the organization.


Complaint Box: These all comes after user login into their accounts. Here users can
register their complaints online.

Send messages: User can send the message to admin. But it should be related to legal
environment. They can send messages directly to higher authorities (DM/CM) in case there
complaints have not paid attention.(By Contact us page)

.
Download FIR form: Users can also download fir form from our application and can
send by post or submit their form manually by visiting our office.

.






12
Software Requirement Analysis

Adobe Dreamweaver CS5.5
Web Browser
Wamp server


Hardware Requirement

1GHz Pentium 4 processor or equivalent
512 MB of RAM
1GB of disk space*
Monitor that supports 1024x768 resolution














13
Design

Table and their relationships

Since the project has been developed using the PHP MySQL windows sever, it contains a
relational approach. This website contains two tables in the aca database
1.) TABLE 1 (CONTACTUS)

This table contains 5 attributes
Name
Email
Phone
Address
Message
Name- This attribute is varchar type and is holding the Name of the user.
Email-This attribute is also varchar type and is holding the email address of the user.
Phone- This attribute is varchar type and is holding the phone number of the user.
Address-This attribute is varchar type and is holding the address of the users.
Message- This attribute is varchar type and is holding the message that is sent by the user to
admin.



14



2.) TABLE 2 (COMPLAINTUS)
This table contains six attributes
Full_name
Email
Phone_no
Complaint_title
Complaint_type
Complaint_details

Full_name-This attribute is varchar type and is holding the fullname of the user.
Email- This attribute is varchar type and is holding the email address of the user.
Phone_no- This attribute is int type and is holding the phone number of the user.
Complaint_title- This attribute is varchar type and is holding the complaint title of the user.
Complaint_type- This attribute is varchar type and is holding the complaint type of the user.
Complaint_detail- This attribute is varchar type and is holding the complete details of the
user.



15

Flowchart














16

SOURCE CODE
I ndex file
<!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>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="css/indexstyle.css" />
</head>

<body background="images/bg.png">
<div style="margin-top:20px">
</div>
<div align="center" >


<?
include("master_header.php")
?>



<table width="90%" border=0px cellpadding="10px" cellspacing="20px">
<tr>

17
<td width="80%" valign="top" align="justify" bgcolor="#F4F4F4">
<table border="0px" cellpadding="20px">
<tr>
<td>
<div id="text">
<p>
<big><b>Active City Administration</b></big> is a user-friendly online interface for
citizens to communicate with administrative body and, reduce the distance and time barrier
between citizens and administration.
</p>
<p>
By using active city administration services we able to know real time, quantitative and basic
approach of the government services for the people living in the particular area. Due to
provided services their might be possibility of increase in communication among the
municipal authorities and the local people New media and information and communication
technologies are influencing our live more and more.
</p>
<p>
Citizens are getting increasingly used to e-technologies and the deployment of new media.
Used to global information, e-commerce and quick responses from the internet e-citizens are
demanding also from public administration higher efficiency, more transparency and better
services.
</p>


<table border="0" cellspacing="10px">
<tr>
<td valign="top">
<img src="images/logo.png" height="100px" width="100px" />
</td>

18
<td><big><b>Objectives:</b></big>

To create a user-friendly online interface for citizens to communicate with administrative
body and, reduce the distance and time barrier between citizens and administration

To create a online platform where people can share ideas, invoke discussions, issue
complaints, create suggestion/petitions for improvement of city administration.

To encourage the citizens to actively participate in city administration to bring transparency
and flexibility in system.
</td>
</tr>
</table>
</td>
</tr>
</table>

</td>
</div>
<td valign="top" align="justify" width=22% >

<table height=70%% border=0 cellpadding="1" cellspacing="0">
<tr>
<td width="100%" height=100% valign="top" align="justify" bgcolor="#F4F4F4">
<div align="center">
<hr />
<h3>
Announcements:

19
</h3>
<hr />
<h5>
Important Nos.
</h5>
<marquee behavior="alternate" direction="up" loop="infinite" scrollamount="3">

<table border="0" cellpadding="1" cellspacing="3" width="100%" height="100%">
<tr>
<td rowspan="2"><img src="images/police.gif" /></td><td>Nearest Police Station</td></tr>
<tr><td>100</td></tr>

<td rowspan="2"><img src="images/fire.gif" /></td><td>Fire</td></tr>
<tr><td>101</td></tr>

<td rowspan="2"><img src="images/ambulance.gif" /></td><td>Ambulance</td></tr>
<tr><td>102</td></tr>

<td rowspan="2"><img src="images/emergency.gif" /></td><td>Emergency</td></tr>
<tr><td>911</td></tr>

<td rowspan="2"><img src="images/railway.gif" /></td><td>Railway</td></tr>
<tr><td>139</td></tr>
</table>
</marquee>

</div>

20
<br />
</td>
</tr>
</table>

</td>
</tr>
</table>

<?
include("master_footer.php");
?>

</div>

</body>
</html>

Header file
<!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>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="css/indexstyle.css" />

21
</head>

<body>
<div style="margin-top:20px">
</div>
<div align="center" >
<table border="0px" width="80%" cellspacing=0 cellpadding="0">

<tr>
<td align="right">&nbsp;

</td>
</tr>

<tr>
<td>
<img src="images/panelactivecity.png" width=100% height=50% />
</td>
</tr>
<tr>
<td>
<div id='cssmenu' >
<ul>
<li class='active'><a href='index.php'><span>Home</span></a></li>
<li class='has-sub'><a href='#'><span>News</span></a>
<ul>
<li class='active'><a href='crime.php'><span>Crime</span></a></li>

22
<li class='active'><a href='achievements.php'><span>Achievements</span></a></li>
<li class='active last'><a href='activities.php'><span>Activities</span></a></li>
</ul>
</li>
<li class='active'><a href='laws.php'><span>Laws</span></a></li>
<li class='has-sub'><a href='#'><span>FIR</span></a>
<ul>
<li class='active'><a href='http://ncrb.gov.in/IIF.pdf' target='_blank'><span>Form
Download (.pdf)</span></a></li>
<li class='active'><a href='https://online.stockholding.com/demat/correction.pdf'
target='_blank'><span>How To Fill (.pdf)</span></a></li>
<li class='active last'><a href='where_to_send.php'><span>Where To
Send</span></a></li>
</ul>
</li>
<li class='active'><a href='faq.php'><span>FAQ</span></a></li>
<li class='active'><a href='important_links.php'><span>Important Links</span></a></li>
<li class='active'><a href='complaint_us.php'><span>Complaint Us</span></a></li>
<li class='active last'><a href='contactus.php'><span>Contact Us</span></a></li>
</ul>
</div>
</td>
</tr>
</table>

<div style="padding-top:20px">
</div>


23


</div>

</body>
</html>

Footer

<!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>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="css/indexstyle.css" />
</head>

<body>
<div align="center" style="position:relative; top:40px">


<table width=100% background="images/menubg.png">


<tr>

24

<td align=center>
<br /><br /><div style="color:#FFF"> Follow us on:&nbsp; <a
href="http://www.twitter.com" target="_blank"><img src="images/twitter.png" height=50
width=50></a> <a href="http://www.google.com" target="_blank"><img
src="images/google.png" height=50 width=50></a> <a href="https://www.youtube.com"
target="_blank"><img src="images/youtube.png" height=50 width=50></a> <a
href="https://www.linkedin.com" target="_blank"><img src="images/linkedin.png"
height=50 width=50></a> <a href="http://www.facebook.com" target="_blank"><img
src="images/fb.png" height=50 width=50></a></div>
</td>



</tr>




<tr>
<td>&nbsp;</td>
</tr>

<tr>

<td align=center><div style="color:#FFF"> Copyright &copy; 2013 | Himanshu Agarwal .
All rights reserved. </div></td>

</tr>


25

<tr>

<td align=center><a style="color:#FFF;text-decoration:none" href=""> Privacy Policy</a>
<a style="color:#FFF;text-decoration:none" href="">Terms of Service</a> <a
style="color:#FFF;text-decoration:none" href="">Copyright/IP Policy </a></td>
</tr>


</table>

</div>

</body>
</html>

Complaintus_data

<!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>Untitled Document</title>
</head>


26
<body>

<?
mysql_connect("localhost","root","");
mysql_select_db("aca");
?>

<?
if(isset($_POST['n7']))
{
$name=$_POST['n1'];
$email=$_POST['n2'];
$phone=$_POST['n3'];
$title=$_POST['n4'];
$type=$_POST['n5'];
$details=$_POST['n6'];
$que="insert into complaints
values('$name','$email','$phone','$title','$type','$details')";
mysql_query($que);

}
?>


<script>
alert("data submitted");
</script>

27


<?
header("location:complaint_us.php");

?>

<script>
alert("data successfully submitted");
</script>

</body>
</html>

Contact_data

<!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>Untitled Document</title>

</head>
<body>


28
<?
mysql_connect("localhost","root","");
mysql_select_db("aca");
?>

<?
if(isset($_POST['sbt']))
{
$name=$_POST['n1'];
$email=$_POST['n2'];
$phone=$_POST['n3'];
$address=$_POST['n4'];
$message=$_POST['n5'];
$que="insert into contactus values('$name','$email','$phone','$address','$message')";
mysql_query($que);



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




</body>
</html>

29

Complaint_us

<!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>


<script type="text/javascript" language="javascript">

// JavaScript Document


//===============form validation======================//
function validation()
{
var full_name=document.getElementById("n1");

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

var telephone= document.getElementById("n3");

var title= document.getElementById("n4");

var type= document.getElementById('n5');

30

var detail= document.getElementById("n6");



if(full_name.value=="")
{
alert("Please Enter Name");
first_name.focus();
return false;
}

if( email.value=="" )
{
alert("Please Enter Email");
email.focus();

return false;
}

if(emailValidator() !=true)
{
email.focus();

return false;
}


31


if( telephone.value=="" )
{
telephone.focus();
alert("Please Enter Phone No.");
return false;
}

if(isNumeric()!=true)
{
telephone.focus();
return false;
}

if(title.value=="")
{
alert("Please Enter Complaint Title");
title.focus();
return false;
}

if(type.value=="")
{
alert("Please select complaint type");
type.focus();
return false;

32
}

if(detail.value=="")
{
alert("Please Enter Complaint Detail");
detail.focus();
return false;
}

return true;
}


//======================================email validation
=====================//
function emailValidator()
{
var email= document.getElementById("n2");
var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
if(email.value.match(emailExp))
{
return true;
}
else
{
alert("Please enter valid email id");


33
return false;
}
}

//=============contact no validation===============================//
function isNumeric()
{
var mn= document.getElementById("n3");
var numericExpression = /^[0-9]+$/;
if(mn.value.match(numericExpression))
{
return true;
}
else
{
alert("Please enter valid contact no.");
return false;
}
}


</script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>


34
<body background="images/bg.png">
<div align="center">
<?
include("master_header.php")
?>
<hr />
<br />
<br />
<div align="center" style="font-family:'Palatino Linotype', 'Book Antiqua', Palatino, serif;
font-size:36px; color:#CCCCCC;">
File Cyber Crime Private Complaint
</div>
<br /><br /><br />
<form action="complaintus_data.php" method="post">

<table border="0px" cellspacing="20" width="60%">

<tr>
<td align="right"><font color="#FFFFFF">Full Name: </font></td>
<td>
<input type="text" name="n1" id="n1" size="50" />
</td>
</tr>

<tr>
<td align="right"><font color="#FFFFFF">
Email:

35
</font>
</td>
<td>
<input type="text" name="n2" id="n2" size="50" />
</td>
</tr>
<tr>
<td align="right"><font color="#FFFFFF">
Telephone No.:
</font>
</td>
<td>
<input type="text" name="n3" id="n3" size="50" />
</td>
</tr>
<tr>
<td align="right"><font color="#FFFFFF">
Complaint Title:
</font>
</td>
<td>
<input type="text" name="n4" id="n4" size="50"/>
</td>
</tr>
<tr>
<td align="right"><font color="#FFFFFF">
Complaint Type:

36
</font>
</td>
<td>
<select name="n5" id="n5">
<option value="" selected="selected">- Select -</option>
<option value="Abusive Chat "> Abusive Chat</option>
<option value="Abusive Email "> Abusive Email</option>
<option value="Banking Fraud "> Banking Fraud</option>
<option value="Copyright Infringement "> Copyright Infringement</option>
<option value="Credit Card Fraud "> Credit Card Fraud</option>
<option value="Cyber Stalking "> Cyber Stalking</option>
<option value="Domain Hacking "> Domain Hacking</option>
<option value="E-commerce frauds "> E-commerce frauds</option>
<option value="Email Hacking "> Email Hacking</option>
<option value="Email Threat "> Email Threat</option>
<option value="Net Extortion "> Net Extortion</option>
<option value="Obscene Email "> Obscene Email</option>
<option value="Online Defamation "> Online Defamation</option>
<option value="Phishing "> Phishing</option>
<option value="Pornography "> Pornography</option>
<option value="Social Profile Hacking "> Social Profile Hacking</option>
<option value="Software Piracy "> Software Piracy</option>
<option value="Spoofing "> Spoofing</option>
<option value="Trademark Abuse "> Trademark Abuse</option>
<option value="Virus or Trojan attack "> Virus or Trojan attack</option>
<option value="Website Hacking "> Website Hacking</option>
<option value="Others "> Others</option>

37
</select>
</td>
</tr>
<tr>
<td align="right" valign="top"><font color="#FFFFFF">
Complaint Details:
</font>
</td>
<td>
<textarea rows="10" cols="60" name="n6" id="n6">
</textarea>
</td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" name="n7" onclick="return validation();" />
</td>
</tr>
</table>
<hr />
<?
include("master_footer.php");
?>

</div>
</body></html>

38
Contact us
<!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>
<script type="text/javascript" language="javascript">

//===============form validation======================//
function validation()
{
var first_name=document.getElementById("n1");

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

var telephone= document.getElementById("n3");

if(first_name.value=="")
{
alert("Please Enter Name");
first_name.focus();
return false;
}

if( email.value=="" || emailValidator() !=true)
{
alert("Please Enter Email");
email.focus();

39

return false;
}
if( telephone.value=="" || isNumeric()!=true)
{
telephone.focus();
alert("Please Enter Phone No.");
return false;
}
return true;
}
//======================================email validation
=====================//
function emailValidator(){
var email= document.getElementById("n2");
var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
if(email.value.match(emailExp)){
return true;
}else{
alert("Please enter valid email id");

return false;
}
}

//=============contact no validation===============================//
function isNumeric()

40
{
var mn= document.getElementById("n3");
var numericExpression = /^[0-9]+$/;
if(mn.value.match(numericExpression))
{
return true;
}
else
{
alert("Please enter valid contact no.");
return false;
}
}

</script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="background-image:url(images/bg.png);">
<div align="center">
<?
include("master_header.php")
?>
<hr />

41
<p align="right" style="color:#CCCCCC; font-size:16px; font-family:'Comic Sans MS',
cursive;">
email at on: <u>contact@aca.gov.in</u>
<br />
<br />
Headquater Address: <u>Plot No 5-B, C<br />GO Complex,Lodhi Road, <br />New Delhi-
110003</u>
</p>
<div >
<p align="center" > <p style="color:#999999; font-size:40px; font-family:'MS Serif', 'New
York', serif; font-style:italic;"> Please enter your query... </p>
<br><br><br>
<form action="contact_data.php" method="post">
<table border=0 width=60% cellspacing="15" >
<tr>
<td align=right><font color="#FFFFFF"> Name</font> </td>
<td><input type=text name=n1 id=n1 ></td>
</tr>
<tr>
<td align=right><font color="#FFFFFF"> Email id </font></td>
<td><input type=text name=n2 id=n2></td>
</tr>
<tr>
<td align=right><font color="#FFFFFF"> Phone no. </font></td>
<td><input type=text name=n3 id=n3 maxlength=10></td>
</tr>
<tr>
<td align=right valign="top"><font color="#FFFFFF">Address </font></td>

42
<td> <textarea rows=5 cols=40 id=n4 name="n4">
</textarea>
</td>
</tr>
<tr>
<td align=right valign="top"><font color="#FFFFFF">Message </font></td>
<td> <textarea rows=5 cols=40 id="n5" name="n5">
</textarea></td>
</tr>
<tr>
<td align=right><input type=reset name=clr value=Clear></td>
<td align=left><input type=submit onclick="return validation();" name=sbt
value=Submit></td>
</tr>
</table>
</form>
</p>
</div>
<hr />

<?
include("master_footer.php");
?>
</div>
</body>
</html>


43
SCREEN SHOTS:
Home Page

News


44
LAWS


I mportant Links



45
Complaint Box


Message to Admin



46
Gantt Chart

Task Length

A. Introduction 5 days
B. CSS and PHP overview 1 week
C. Project analysis 1 week
D. Database Connection 1 week
E. Form validation 4 days
F. Doubt clearing and
project
2 weeks
G. Project evaluation 4 days







47

PROJECT LEGACY


Technical and managerial lessons learnt
Lean or Agile sessions are held every three to four days throughout the project. This results in
three key outcomes:
It is much easier to remember what went well and what needed improvement. It is also
much easier to make changes over a short time period than a long one.
The sessions are held mid-project so the team that identified the items can act upon them
in the context in which they have relevance.
Because another session will be held in a couple of weeks, the team is able to inspect the
results of the actions they took to rectify a problem and adopt a new solution if the last
one didn't fix the problem.













48
BIBLIOGRAPHY

As per the need of my project of PHP, I required information regarding various concepts and
logics used in developing a website. Therefore I have gone through several books for more
information. My project co-coordinator has suggested me to go through some books whose
list is as follows:

Book Reference
Php reference by Shwetankkumargupta
Beginner to intermediate php5
Complete ref by php 5


Website Reference
W3school.com
Shwetankeducation.com
Phpf1.com
Php.net
Tizag.net

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