Professional Documents
Culture Documents
Abstract
The project “Web Based Petition Acquisition in Public Sector” provides the proper
procedure for applying complaints and petition information to the users who have applied based
on their demands. The users are provided with proper response for the petitions applied by them
and the status of the petitions that has been processed by the administrator and the officials. The
status of the complaint details will be intimated to the users with which the concerned user can
gather the knowledge of the corresponding complaints and petition applied by them to the
administrator. Since it is an decentralized process the efficiency of the process has been
increased. By doing the so the user has been allotted with reduced latency work process and the
complaint information will be processed in an enormous way which increases performance
evaluation of the system. The users are provided with proper response for the petitions applied
by them and the status of the petitions that has been processed by the administrator and the
officials. The status of the complaint details will be intimated to the users with which the
concerned user can gather the knowledge of the corresponding complaints and petition applied
by them to the administrator. Since it is an decentralized process the efficiency of the process has
been increased. By doing the so the user has been allotted with reduced latency work process and
the complaint information will be processed in an enormous way which increases performance
evaluation of the system.
INTRODUCTION
This project title is “Web Based Petition Acquisition in Public Sector”. It describes the
process of applying various petitions through online. This system developed to manage the
various petitions processing through website. This system is any member can apply using Name,
Address details through website. And, also in this project used to help the public and given the
greater profitability through direct communication to government sector via online. This service
is used to enhance the system for public to optimize their requests. The petitions that have been
requested by the user or people will be provided efficiently using this system. The applicants can
track their application status by using their ID and password that has been provided by the
administrator. This process completely provides the status of the certificates and the petitions
that has been admitted by the user .So the admin can efficiently access the system that has been
initiated and their requests will be processed in an timely manner. It describes the process of
applying various petitions through online. This system developed to manage the various petitions
processing through website. This system is any member can apply using Name, Address, and
Aadhaar details through website. And, also in this project used to help the public and given the
greater profitability through direct communication to government sector via online. This service
is used to enhance the system for public to optimize their requests. The petitions that have been
requested by the user or people will be provided efficiently using this system. The applicants can
track their application status by using their ID and password that has been provided by the
administrator. This process completely provides the status of the certificates and the petitions
that has been admitted by the user .So the admin can efficiently access the system that has been
initiated and their requests will be processed in an timely manner.
Problem Description
The major problem in the current scenario is the user is unable to apply and receive
proper approval for the petitions that has been applied to the public sector management. Since it
is totally a manual process the report maintenance and the customer requests will not be
processed properly. At the same time in the admin side there exists vast user data which is a
complex process for the admin to gather and process the user request. The user was unable to
view or receive proper intimation of the status of the petitions that has been applied. It increases
the latency of the system and improper in maintaining the reports and data. At the same time the
entire procedure decreases the robustness and performance evaluation on the user side. Moreover
the administrator was unable satisfy the conditions and the requirements of the user in an
efficient manner. The major problem in the current scenario is the user is unable to apply and
receive proper approval for the petitions that has been applied to the public sector management.
Since it is totally a manual process the report maintenance and the customer requests will not be
processed properly. At the same time in the admin side there exists vast user data which is a
complex process for the admin to gather and process the user request. The user was unable to
view or receive proper intimation of the status of the petitions that has been applied. It increases
the latency of the system and improper in maintaining the reports and data. At the same time the
entire procedure decreases the robustness and performance evaluation on the user side. Moreover
the administrator was unable satisfy the conditions and the requirements of the user in an
efficient manner.
Objectives:
In the existing procedure the records of the public are maintained are maintained in an
usual paper format, which is a more latent process and it ensures lack of data assurance. The
existing system does not provide better knowledge about the details and information about the
steps and assumption for attaining the certificates in various public sector. Each sector have
some separate rules and protocols to perform their operations for the public. More paper work is
needed and lots and lots of work load has been generated. There may be a chance of scam
occurrence in the payment process in the existing procedure, which is a more intolerable activity.
The main disadvantage is, the public has to present in the authorized administrator office for the
sake of his request. In the existing procedure the records of the public are maintained are
maintained in a usual paper format, which is a more latent process and it ensures lack of data
assurance. The existing system does not provide better knowledge about the details and
information about the steps and assumption for attaining the certificates in various public sector.
Each sector has some separate rules and protocols to perform their operations for the public.
More paper work is needed and lots and lots of work load has been generated. There may be a
chance of scam occurrence in the payment process in the existing procedure, which is a more
intolerable activity. The main disadvantage is, the public has to present in the authorized
administrator office for the sake of his request.
Disadvantages
The proposed system exceeds the entire process that has been maintained in the existing
system. The public can apply their needed certificates, property requirements, petition process
through online from which the latency has been reduced to its core. The payment for the
application, certificates, can be payed through online which reduces the financial scam. The user
can apply for the certificates from any location through online. The time redundancy has been
very much reduced in this process. The status of every use will be provided to them through
message or through mail which enhances the system. The proposed system exceeds the entire
process that has been maintained in the existing system. The public can apply their needed
certificates, property requirements, petition process through online from which the latency has
been reduced to its core. The payment for the application, certificates, can be payed through
online which reduces the financial scam. The user can apply for the certificates from any location
through online. The time redundancy has been very much reduced in this process. The status of
every use will be provided to them through message or through mail which enhances the system.
Advantages
Login
Road Records
Admin
Road Complaints
Employee
Water Complaints
Electricity Complaints
Queries
Feedbacks
Apply Petition
View Status
Petition Status
Intimate Status
Class Diagram
Administrator Public Sector
Login Register
Road Records Login
Water Records Road Records
Electricity Records Electricity Records
Road Complainits Water Tank Records
Water Complaints Road Complaints
Electricity Complaints Electricity Complaints
Queries Water Complaints
Petitions Petitions
Feedbacks Feedbacks
Employees
Login
Road Records
Water Records
Electricity Records
Road Complaints
Water Complaints
Electricity Complaints
Queries Database Server
Petitions Store
Feedbacks Retrieve
Admin
Petition Consultant Officer
Applicant Registration
Information Subsystem
Applicant Subsystem
User Subsystem
Report
Feedback
Admin
Admin is the head for the entire system that controls the whole process
under his guidance. The applicants, officials, workers who are all involved in the
entire system will com e under the guidance of the admin.
The petitions that are applied by the applicants are passed on to the
consultant who has been the official for the concerned department and the related
documents are moved on to him for further procedures. The documents are moved
on to the concerned departments through online, which avoids corruption and
increases the efficiency and speed of the process.
Applicant Registration
The applicants have to register the required information that has been
denoted by the admin side. It helps to access their needs and requests for applying
certificates in many public sectors. It requires the name, address, mobile and mail
ID and so on.
Applicant Login
After the registration process the applicants are provided with unique ID and
password to access their separate account details and at the same time they can
apply for the certificates of different categories through online.
Information Subsystem
It holds the information of the user requests from which the officials of the
concerned department can access and get a clear view about the request that has
been done by the user which helps to provide necessary requirements. The info
mentioned above can be accessible by both the admin and as well as the official
sides.
Applicant Subsystem
Here the applicants can submit their requests according to the department
wise. Each department has an separate age so that the user can get a clear structure
about the process and submit their request to the concerned department without an
hesitation.
Report
The report provides the detailed description about the entire system like the
applicant details, their requests, the operation done to the request that has been
requested to the admin by the user. It helps the admin side for reference and at the
same time for future evaluations to improve the entire system. Based on this the
verification and cross checking can also be done by the admin for his clearance.
Feedback
The user can admit their queries and feedback to the admin through this
module, from which the admin can enhance the system with better efficiency. Here
the user can also submit their complaints on the officials as well as the demerits in
the system.
Software Requirements:
Front End : PHP
Back End : MYSQL
Operating System : Windows OS
System type : 32-bit or 64-bit Operating System
IDE : Dreamweaver
DLL : Depends upon the title
Logical Development
Data Flow Diagram:
Symbol Description
A data flow.
Level 0
City Management
ADMIN Database
Level 1
Register
Database
User
Login
Level 2
Login
Applicant Details
Message Intimation
Level 3
Register & Login
Request Demands
Message Intimation
Architecture Diagram
WEB BASED PETITION ACQUISITION IN PUBLIC SECTOR
User Admin
Login
Register & Login
View & Response
Request Demands to Applicants
Status Verification
Acquire
Petition/Certificate
s
Reports & Feedback
Message Intimation
ER Diagram
An entity–relationship model is the result of using a systematic process to describe and
define a subject area of business data. It does not define business process; only visualize business
data. The data is represented as components (entities) that are linked with each other by
relationships that express the dependencies and requirements between them, such as: one
building may be divided into zero or more apartments, but one apartment can only be located in
one building. The three schema approach to software engineering uses three levels of ER models
that may be developed.
ER Diagram Symbol:
Di
agram
S.NO. Types
1. Entity types
2. Relationship Types
Response to Queries
Response Verification
Password
Mobile number
Message Intimation Username
Status Verification
ID Admin
View
Officials
Control
User
User Name
User ID
Apply Petition
Status
Feedback
Mobile Number
Database Design
Unit testing involves the design of test cases that validate the internal program
logic is functioning properly, and that program input produces valid outputs. All decision
branches and internal code flow should be validated. It is the testing of individual unit
before integration. This is a structural testing, that relies on knowledge of its construction
and is invasive. Unit test perform basic tests at component level and test a specific
business process, application, and/or system configuration. Unit tests ensure that each
unique path of a business process performs accurately to the documented specifications
and contains clearly defined inputs and expected results. In the lines of this strategy all,
the individual functions and modules were put to the independently. By following this
strategy all, the errors in coding were identified and corrected.
Unit testing is a procedure used to validate the individual units of source code is
working properly. The goal of unit testing is to isolate each part of the program and show
that the individual parts are correct. A unit test provides a strict, written contract that the
piece of code must satisfy. As a result, it affords server benefits.
Unit testing is typically done by software developers to ensure that the code they
have written meets software requirements and behaves as the developer intended. Each
unit of the system implemented in the source code is checked for correctness. All error-
handling paths are tested. User authentication form and other each individual modules
form are taken as independently. Here login and organization form are taken as smallest
unit
.
TC.ID Test Condition Test Input Expected Result Actual Result Result
VT-1.1 Check whether Empty field It displays the error It displays the error Success
the username is message as please message as please
empty in the login enter username enter username
process
VT-1.2 Check whether Empty field It displays the error It displays the error Success
the password is message as please message as please
empty in the login enter password. enter password .
process
VT-1.3 Check whether Incorrect It displays the error It displays the error Success
the username and username and message as enter message as enter
password is password valid username and valid username and
incorrect password password
VT-1.4 Check whether Incorrect It displays the error It displays the error Success
username and username and message as Please message as Please
password is password register first. register first.
matched
7.3. INTEGRATION TESTING
Testing is done for each module. After testing all the modules, the modules are
integrated and testing of the final system is done with the test data, specially designed to show
that the system will operate successfully in all its aspects conditions. Thus the system testing is a
confirmation that all is correct and an opportunity to show the user that the system works.
7.4 DEBUGGING
The program displays a string "We are debugging" to the user. Suppose when we run the
application, for some reason, the string is not displayed. To identify the problem we need to add
a breakpoint. We can add a breakpoint to the code line which displays the string. This breakpoint
will pause the execution of the program. At this point, the programmer can see what is possibly
going wrong.
8. ACCEPTANCE TESTING
Acceptance testing can be defined in many ways, but a simple definition is the succeeds
when the software functions in a manner that can be reasonable expected by the customer. After
the acceptance test has been conducted, one of the two possible conditions exists. This is to fine
whether the inputs are accepted by the database or other validations. For example accept only
numbers in the numeric field, date format data in the date field. Also the null check for the not
null fields. If any error occurs then show the error messages. The function of performance
characteristics to specification and is accepted. A deviation from specification is uncovered and a
deficiency list is created.
White box testing, sometimes called "Glass-box testing”. Using white box testing methods, the
following tests were made on the system,
All independent paths with in a module have been exercised at least once.
All logical decisions were checked for the true and false side of the values.
All loops were executed to check their boundary values.
Internal data-structure was tested for their validity.
Black box testing focuses on the functional requirements of the software. That is black
box testing enables the software engineer to drive a set of input conditions that will fully exercise
the requirements for a program. Black box testing is not an alternative for white box testing
techniques. Rather, it is a complementary approach that is likely to uncover different class of
errors. Black box testing attempts to find errors in the following categories:
Interface errors.
Performances in data structures or external database access.
Performance errors.
Initialization and termination errors.
Incorrect or missing functions.
CONCLUSIONS AND FUTURE ENHACEMENT
Cloud Computing is gaining popularity and advancement day-by-day. But still the
security threat hinders the success of Cloud Computing. In this paper, some of the privacy threats
are addressed and the techniques to overcome them are surveyed. While some approaches
utilized traditional methods to achieve privacy, some other approaches kept them away and
focused on alternate methodologies in achieving privacy. Also, approaches to preserve privacy at
the time of public auditing are also discussed. Thus, to conclude it is necessary that every cloud
user must be guaranteed that his data is stored, processed, accessed and audited in a secured
manner at any time. Data freshness is essential to protect against misconfiguration errors or
rollbacks caused intentionally. We can develop an authenticated file system that supports the
migration of an enterprise-class distributed file system into the cloud efficiently, transparently
and in a scalable manner. It’s authenticated in the sense that enables an enterprise tenant to verify
the freshness of retrieved data while performing the file system operations. The user must be
given complete access control over the published data. Also, powerful security mechanisms must
always supplement every cloud application. Attaining all these would end up in achieving the
long dreamt vision of secured petition processing in the nearest future. In future, this proposed
model could be used to get the secure petition processing environment which would be a great
enhancement in the petition processing and certificate application through cloud..
SCREENSHOT
LOGIN
OFFICER
ADMIN
USER INFORMATION
STATUS
FEEDBACK
REGISTER
PETITION
\
VIEW FEEDBACK
SURVEY
CODING
ADMIN
<?php
include("include/protect.php");
include("include/dbconnect.php");
extract($_POST);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<tr>
</tr>
<tr>
</tr>
<tr>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>
<?php
$q1=mysql_query("select * from apply where status<2 order by id desc");
$n1=mysql_num_rows($q1);
if($n1>0)
?>
</p>
<tr>
</tr>
<?php
$i=0;
while($r1=mysql_fetch_array($q1))
$i++;
?>
<tr>
</tr>
<?php
?>
</table>
<?php
?>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
ADD FEEDBACK
<?php
include("include/protect.php");
include("include/dbconnect.php");
extract($_REQUEST);
$uname=$_SESSION['uname'];
$row=mysql_fetch_array($qry);
if(isset($btn))
$max_row = mysql_fetch_array($max_qry);
$id=$max_row['maxid']+1;
$rdate=date("d-m-Y");
$q2=mysql_query($q1);
if($q2)
?>
<script language="javascript">
window.location.href="add_feed.php";
</script>
<?php
}
else
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript">
function adStatus(adid,uname)
window.open("ad_status.php?
adid="+adid+"&uname="+uname+"","Send","width=400,height=500,menubar=0,status=0,toolb
ar=0,scrollbars=1,resizable");
</script>
</head>
<body class="body2">
<tr>
</tr>
<tr>
</tr>
<tr>
<p> </p>
<p class="txt3">Feedback</p>
<p class="txt3"> </p>
<p align="center"> </p>
<tr class="border">
<td width="288"><label>
</label></td>
</tr>
<tr>
</tr>
</table></td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
INDEX-ADMIN
<?php
session_start();
include("include/dbconnect.php");
extract($_POST);
$msg="";
if(isset($login))
$exe=mysql_query($qry);
$num=mysql_num_rows($exe);
if($num==1)
{
$_SESSION['uname']=$uname;
header("location:admin.php");
else
$msg="Login Incorrect!";
?>
<html>
<head>
<style type="text/css">
<!--
-->
</style>
</head>
<body class="body2">
<tr>
</tr>
<tr>
</tr>
<tr>
<p> </p>
<p align="center"> </p>
<tr>
</tr>
<tr>
</tr>
<tr>
<td class="txt1">Username</td>
</tr>
<tr>
<tr>
<td class="txt1">Password</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
<p> </p></td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
INDEX-EMPLOYEE
<?php
session_start();
include("include/dbconnect.php");
extract($_POST);
$msg="";
if(isset($btn1))
$n4=mysql_num_rows($q4);
if($n4>0)
$otp=rand(1000,9999);
$message="OTP: $otp";
else
if(isset($login))
{
$qq1="select * from admin where mobile='$mobile' && otp='$pwd'";
$qq2=mysql_query($qq1);
$num=mysql_num_rows($qq2);
if($num==1)
$rr2=mysql_fetch_array($qq2);
$uname=$rr2['uname'];
$_SESSION['uname']=$uname;
header("location:off_home.php");
else
$msg="Login Incorrect";
?>
<html>
<head>
<style type="text/css">
<!--
.style3 {color: #FFFFFF}
-->
</style>
<script language="javascript">
function validate()
if(document.form1.mobile.value=="")
document.form1.mobile.focus();
return false;
if(isNaN(document.form1.mobile.value))
document.form1.mobile.select();
return false;
if(document.form1.mobile.value.length!=10)
document.form1.mobile.select();
return false;
return true;
}
</script>
</head>
<body class="body2">
<tr>
</tr>
<tr>
</tr>
<tr>
<p> </p>
<p align="center"> </p>
<tr>
</tr>
<tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<?php
if($mobile)
?>
<tr>
<td class="txt1">OTP</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<?php
?>
<tr>
</tr>
</table>
<p> </p></td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
CHART
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<script>
window.onload = function() {
var chart = new CanvasJS.Chart("chartContainer", {
animationEnabled: true,
title: {
},
data: [{
type: "pie",
startAngle: 240,
yValueFormatString: "##0.00'%'",
dataPoints: [
}]
});
chart.render();
</script>
</head>
<body>
<div id="chartContainer" style="height: 370px; max-width: 920px; margin: 0px auto;"></div>
<script src="js/canvasjs.min.js"></script>
</body>
</html>
LOGOUT
<?php
session_start();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<?php
include("include/dbconnect.php");
$uname=$_GET['uname'];
$chatid=$_GET['chatid'];
$un=$_SESSION['uname'];
session_destroy();
//unset($_SESSION['uname']);
header("Location:index.php");
?>
</body>
</html>
CHECK-OTP
<?php
include("include/protect.php");
include("include/dbconnect.php");
extract($_REQUEST);
$uname=$_SESSION['uname'];
$row=mysql_fetch_array($qry);
$otp=$row['otp'];
if(isset($btn))
if($otp==$key)
?>
<script language="javascript">
window.location.href="view_det.php?id=<?php echo $id; ?>";
</script>
<?php
else
?>
<script language="javascript">
alert("OTP is wrong!");
</script>
<?php
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript">
function adStatus(adid,uname)
window.open("ad_status.php?
adid="+adid+"&uname="+uname+"","Send","width=400,height=500,menubar=0,status=0,toolb
ar=0,scrollbars=1,resizable");
</script>
</head>
<body class="body2">
<tr>
</tr>
<tr>
</tr>
<tr>
<p> </p>
<p> </p>
<tr>
<th width="202" align="left" scope="col">Enter the OTP </th>
</tr>
<tr>
</tr>
</table>
<p> </p> </td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
STATUS
<?php
include("include/protect.php");
include("include/dbconnect.php");
extract($_REQUEST);
$uname=$_SESSION['uname'];
if($act=="ok")
$mobile=$row['contact'];
$otp=rand(1000,9999);
$message="OTP: $otp";
?>
<script>
setTimeout(function () {
}, 2000);
</script>
<?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>
<script language="javascript">
function adStatus(adid,uname)
window.open("ad_status.php?
adid="+adid+"&uname="+uname+"","Send","width=400,height=500,menubar=0,status=0,toolb
ar=0,scrollbars=1,resizable");
</script>
</head>
<body class="body2">
<tr>
</tr>
<tr>
<tr>
<p> </p>
<p class="txt3">Status</p>
<p align="center"> </p>
<?php
$n1=mysql_num_rows($q1);
if($n1>0)
?>
<tr>
</tr>
<?php
$i=0;
while($r1=mysql_fetch_array($q1))
$i++;
?>
<tr>
<td>
<?php
if($r1['status']=="2")
}
else if($r1['status']=="1")
else
?>
</tr>
<?php
?>
</table>
<?php
?>
<p> </p></td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
INDEX
<?php
session_start();
include("include/dbconnect.php");
extract($_POST);
$msg="";
if(isset($btn1))
$n4=mysql_num_rows($q4);
if($n4>0)
$otp=rand(1000,9999);
$message="OTP: $otp";
}
else
if(isset($login))
$qq2=mysql_query($qq1);
$num=mysql_num_rows($qq2);
if($num==1)
$rr2=mysql_fetch_array($qq2);
$uname=$rr2['uname'];
$_SESSION['uname']=$uname;
header("location:user_page.php");
else
$msg="Login Incorrect";
}
?>
<html>
<head>
<style type="text/css">
<!--
-->
</style>
<script language="javascript">
function validate()
if(document.form1.mobile.value=="")
document.form1.mobile.focus();
return false;
if(isNaN(document.form1.mobile.value))
document.form1.mobile.select();
return false;
}
if(document.form1.mobile.value.length!=10)
document.form1.mobile.select();
return false;
return true;
</script>
</head>
<body class="body2">
<tr>
</tr>
<tr>
</tr>
<tr>
<p> </p>
<table width="435" height="160" border="0" cellpadding="5" cellspacing="0">
<tr>
</tr>
<tr>
<td align="center"> </td>
<td align="center"> </td>
</tr>
</table>
<p align="center"> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<?php
if($mobile)
?>
<tr>
<td class="txt1">OTP</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<?php
}
?>
<tr>
</tr>
</table></td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
APPLY
<?php
include("include/protect.php");
include("include/dbconnect.php");
extract($_REQUEST);
$uname=$_SESSION['uname'];
if($dept=="")
$dept="Road";
}
$row=mysql_fetch_array($qry);
if(isset($btn))
$max_row = mysql_fetch_array($max_qry);
$id=$max_row['maxid']+1;
$rdate=date("d-m-Y");
$email1=$email."@gmail.com";
$q1="insert into
apply(id,gender,dob,address,uname,name,area,taluk,state,district,pincode,contact,aadhar,email,d
ept,complaint,ptype,status,rdate)
values($id,'$gender','$dob','$address','$uname','$name','$area','$taluk','$state','$district','$pincode'
,'$contact','$aadhar','$email1','$dept','$complaint','$ptype','0','$rdate')";
$q2=mysql_query($q1);
if($q2)
?>
<script language="javascript">
alert("Applied Successfully");
window.location.href="status.php";
</script>
<?php
else
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="date_picker/jquery-1.12.4.js"></script>
<script src="date_picker/jquery-ui.js"></script>
<script>
$( function() {
$( "#dob" ).datepicker();
} );
</script>
<script language="javascript">
function validate()
if(document.form1.name.value=="")
document.form1.name.focus();
return false;
if(document.form1.gender[0].checked==false &&
document.form1.gender[1].checked==false)
return false;
if(document.form1.dob.value=="")
return false;
if(document.form1.address.value=="")
document.form1.address.focus();
return false;
if(document.form1.area.selectedIndex==0)
document.form1.area.focus();
return false;
if(document.form1.taluk.value=="")
document.form1.taluk.focus();
return false;
if(document.form1.district.selectedIndex==0)
document.form1.district.focus();
return false;
if(document.form1.state.selectedIndex==0)
document.form1.state.focus();
return false;
if(document.form1.pincode.value=="")
document.form1.pincode.focus();
return false;
if(document.form1.contact.value=="")
document.form1.contact.focus();
return false;
if(isNaN(document.form1.contact.value))
document.form1.contact.select();
return false;
}
if(document.form1.contact.value.length!=10)
document.form1.contact.select();
return false;
if(document.form1.aa1.value.length!=4 || document.form1.aa2.value.length!=4 ||
document.form1.aa3.value.length!=4)
document.form1.aa1.focus();
return false;
if(document.form1.email.value=="")
document.form1.email.focus();
return false;
if(document.form1.complaint.value=="")
document.form1.complaint.focus();
return false;
}
return true;
function checkPin()
if(isNaN(document.form1.pincode.value))
document.form1.pincode.value="";
function checkPin2()
if(isNaN(document.form1.pincode.value))
document.form1.pincode.value="";
function checkCon()
if(isNaN(document.form1.contact.value))
document.form1.contact.value="";
}
}
function checkCon2()
if(isNaN(document.form1.contact.value))
document.form1.contact.value="";
</script>
</head>
<body class="body2">
<tr>
</tr>
<tr>
</tr>
<tr>
<p> </p>
<p class="txt3"> Apply Petition </p>
<p class="txt3"> </p>
<p><a href="apply.php?dept=Road">Road</a>
<a href="apply.php?dept=Water">Water</a>
<a href="apply.php?dept=Electricity">Electricity</a>
<a href="apply.php?dept=Health-Care">Health-Care</a></p>
<p> </p>
<p align="center"> </p>
<tr class="border">
<td width="288"><label>
</label></td>
</tr>
<tr class="border">
Male
Female</td>
</tr>
<tr class="border">
<th align="left" scope="row">Date of Birth </th>
</tr>
<tr class="border">
</tr>
<tr class="border">
<td><label>
<select name="area">
<option value="">-Panchayat-</option>
</select>
</label></td>
</tr>
<tr class="border">
<td><select name="taluk">
<option value="">-Taluk-</option>
</select></td>
</tr>
<tr class="border">
<td><select name="district">
<option value="">-District-</option>
</select></td>
</tr>
<tr class="border">
<td><select name="state">
<option value="">-State-</option>
</select> </td>
</tr>
<tr class="border">
</tr>
<tr class="border">
<td><label>
</label></td>
</tr>
<tr class="border">
</tr>
<tr class="border">
<td><label>
@gmail.com</label></td>
</tr>
<tr class="border">
<option>New Petition</option>
<option>Repeated Petition</option>
</select>
</td>
</tr>
<tr class="border">
</tr>
<tr>
</tr>
</table>
<p> </p></td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
APPROVED
<?php
include("include/protect.php");
include("include/dbconnect.php");
extract($_POST);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<tr>
</tr>
<tr>
<td height="25" class="subhead"><?php include("include/link_admin.php"); ?></td>
</tr>
<tr>
<p> </p>
<p> </p>
<p> </p>
<h3>Petition</h3>
<p> </p>
<p>
<?php
$n1=mysql_num_rows($q1);
if($n1>0)
?>
</p>
<tr>
</tr>
<?php
$i=0;
while($r1=mysql_fetch_array($q1))
$i++;
?>
<tr>
<td><?php
if($r1['status']=="2")
else if($r1['status']=="1")
else
?></td>
</tr>
<?php
?>
</table>
<?php
?>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
OFF-HOME
<?php
session_start();
include("include/dbconnect.php");
extract($_POST);
$msg="";
?>
<html>
<head>
<style type="text/css">
<!--
-->
</style>
</head>
<body class="body2">
<tr>
</tr>
<tr>
</tr>
<tr>
<p> </p>
<p align="center"> </p>
<h2>Welcome Officer</h2>
<p> </p>
<p> </p>
<p>
<?php
$n1=mysql_num_rows($q1);
if($n1>0)
?>
</p>
<tr>
</tr>
<?php
$i=0;
while($r1=mysql_fetch_array($q1))
{
$i++;
?>
<tr>
</tr>
<p> </p>
<p> </p></td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
REGISTER
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="date_picker/jquery-1.12.4.js"></script>
<script src="date_picker/jquery-ui.js"></script>
<script>
$( function() {
$( "#dob" ).datepicker();
} );
</script>
<script language="javascript">
function validate()
if(document.form1.name.value=="")
{
document.form1.name.focus();
return false;
if(document.form1.gender[0].checked==false &&
document.form1.gender[1].checked==false)
return false;
if(document.form1.dob.value=="")
document.form1.dob.focus();
return false;
if(document.form1.address.value=="")
document.form1.address.focus();
return false;
if(document.form1.area.selectedIndex==0)
{
alert("Enter the Panchayat");
document.form1.area.focus();
return false;
if(document.form1.taluk.value=="")
document.form1.taluk.focus();
return false;
if(document.form1.district.selectedIndex==0)
document.form1.district.focus();
return false;
if(document.form1.state.selectedIndex==0)
document.form1.state.focus();
return false;
if(document.form1.pincode.value=="")
return false;
if(document.form1.contact.value=="")
document.form1.contact.focus();
return false;
if(isNaN(document.form1.contact.value))
document.form1.contact.select();
return false;
if(document.form1.contact.value.length!=10)
document.form1.contact.select();
return false;
if(document.form1.aa1.value.length!=4 || document.form1.aa2.value.length!=4 ||
document.form1.aa3.value.length!=4)
return false;
if(document.form1.email.value=="")
document.form1.email.focus();
return false;
return true;
function checkPin()
if(isNaN(document.form1.pincode.value))
document.form1.pincode.value="";
function checkPin2()
if(isNaN(document.form1.pincode.value))
{
document.form1.pincode.value="";
function checkCon()
if(isNaN(document.form1.contact.value))
document.form1.contact.value="";
function checkCon2()
if(isNaN(document.form1.contact.value))
document.form1.contact.value="";
</script>
<style type="text/css">
<!--
-->
</style>
</head>
<body onload="datePic()" class="body2">
<?php
include ("include/dbconnect.php");
extract($_POST);
$max_row = mysql_fetch_array($max_qry);
$id=$max_row['maxid']+1;
$uname="U".$id;
if(isset($reg))
$rdate=date("d-m-Y");
$email1=$email."@gmail.com";
$q1="insert into
register(id,name,gender,dob,address,area,taluk,state,district,pincode,contact,aadhar,email,uname)
values($id,'$name','$gender','$dob','$address','$area','$taluk','$state','$district','$pincode','$contact'
,'$aadhar','$email1','$uname')";
$q2=mysql_query($q1);
if($q2)
{
//header("location:message.php");
?>
<script language="javascript">
alert("Registered Successfully");
window.location.href="index.php";
</script>
<?php
else
?>
<tr>
</tr>
<tr>
</tr>
<tr>
<td><p> </p>
<p> </p>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td width="261"><label>
</label></td>
</tr>
<tr>
Male
<input name="gender" type="radio" value="Female" />
Female</td>
</tr>
<tr>
</tr>
<tr>
<td><textarea name="address"></textarea></td>
</tr>
<tr>
<td><label>
<select name="area">
<option value="">-Panchayat-</option>
<option>Tiruverumbur</option>
</select>
</label></td>
</tr>
<tr>
<td><select name="taluk">
<option value="">-Taluk-</option>
<option>Ariyamangalam</option>
</select></td>
</tr>
<tr>
<td><select name="district">
<option value="">-District-</option>
<option>Trichy</option>
<option>Tanjore</option>
<option>Chennai</option>
<option>Coimbatore</option>
<option>Madurai</option>
<option>Salem</option>
<option>Namakkal</option>
<option>Karur</option>
<option>Erode</option>
</select></td>
</tr>
<tr>
<td><select name="state">
<option value="">-State-</option>
<option>Tamilnadu</option>
</select> </td>
</tr>
<tr>
<th align="left" scope="row">Pincode</th>
</tr>
<tr>
<td><label>
</label></td>
</tr>
<tr>
</tr>
<tr>
<td><label>
@gmail.com</label></td>
</tr>
<tr>
</label></th>
</tr>
</table>
<p> </p>
<p> </p></td>
</tr>
</table>
<p> </p>
</form>
</body>
</html>