0% found this document useful (0 votes)
347 views57 pages

Cloth Donation System

This document is a project report for a Cloth Donating System. It includes an introduction describing the existing system of donating clothes without a structured process and the benefits of the proposed Cloth Donating System. The system would allow an admin to create a website and update orphanage details. Users can login to the site and provide their old cloth donation details. Workers will then collect clothes from users and distribute them to orphanages. The system aims to efficiently donate old clothes to help orphanages while preventing waste.

Uploaded by

I No
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)
347 views57 pages

Cloth Donation System

This document is a project report for a Cloth Donating System. It includes an introduction describing the existing system of donating clothes without a structured process and the benefits of the proposed Cloth Donating System. The system would allow an admin to create a website and update orphanage details. Users can login to the site and provide their old cloth donation details. Workers will then collect clothes from users and distribute them to orphanages. The system aims to efficiently donate old clothes to help orphanages while preventing waste.

Uploaded by

I No
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/ 57

CLOTH DONATING SYSTEM

PROJECT REPORT

Submitted by

Guided by

in partial fulfillment for the award of the degree

of

BACHELOR OF COMPUTER APPLICATION


IN

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS

PERIYAR NAGAR, VALLAM-613 403, THANJAVUR.

APRIL,2021


DEPARTMENT OF COMPUTER SCIENCE
ANDAPPLICATIONS
Periyar Nagar, VallamThanjavur - 613 403, Tamil Nadu, India
Phone: +91 - 4362 - 264600Fax: +91- 4362 -264660
Email: [email protected] Web: www. pmu.edu

BONAFIDE CERTIFICATE
Certified that this Project report “CLOTH DONATING SYSTEM” is the bonafide
work of “Name (Reg.No)” who carried out the Project work under my supervision.

Signature :

Name :

Head oftheDepartment supervisor

Date :

Submitted for PeriyarManiammai Institute of Science & Technology In-plant Training


Viva-voce Examination held on …………………….

Signature :

Name :

ExternalExaminer InternalExaminer

Date :


ACKNOWLEDGEMENT

Iacknowledgementwithreverenceandofferathankfulnesswithprofoundgratitude to
the in valuable service rendered and kindness showed upon me by the way of guidance to
this dedicated luminaries whose service went all the way towards the completion of the
project.

My respectful thanks to Hon’ble Dr.K.VEERAMANI M.A.B.L.., Chancellor,


PeriyarManiammaiInstituteofScience&Technology,Vallamforthisencouragementand
support to complete our coursesuccessful.

I take immense pleasure at this moment of acknowledge with infinite thanks to


HonableProf.Dr.S.VELUSAMI, BE,ME,Ph.D., Vice chancellor, PeriyarManiyammai
InstituteofScience&Technology.Vallamforthesignificantcontributionbringmyproject
successful.

I take immense pleasure at this moment of acknowledge with infinite thanks to


Respected Prof. Dr. S.DevadossPro Vice Chancellor Ph.D., PeriyarManiyammai
Institute of Science & Technology. Vallam for the significant contribution bring my
project successful.

I take immense pleasure at this moment of acknowledge with infinite thanks to


RespectedDr.J.JEYACHIDRAM.C.A.,Ph.D.,HOD,Deani/c,FCSEfortimelyadvice
andakindco-operationincompletingmyprojectwork.Iextendedmyheartythankstomy internal
guide Ms. P.RANJANI MCA, Assistant Professor., Department of Computer
ScienceandApplications,forhisvaluablesuggestionandguidancetocompletemyproject
successful.

I wish to express my thanks to our all Faculty Member of Department of


Computer Science and Applications, PeriyarManiyammai Institute of Science &
Technology. Vallam, Thanjavur


INDEX

CHAPTERS PARTICULARS PAGE.NO

ABSTRACT

CHAPTER INTRODUCTION 1
1 Existing System
Proposed System

CHAPTER SYSTEM CONFIGURATION 3-5


2 2.1 System Architecture

CHAPTER DIAGRAMATIC REPRESENTATION 7-13


3 UML Diagrams
ER Diagram
Data Flow Diagram
Database Structure

CHAPTER MODULES 14
4 Admin
User

CHAPTER DESIGN AND DEVELOPMENT 15-20


5 5.1 Data base Structure

CHAPTER IMPLEMENTATION AND TESTING 21-22


6

CHAPTER APPENDIX 23-80


7 Sample Code
Screen Shot

CHAPTER CONCLUSION AND FUTURE WORK 81-82


8 Conclusion
Future Work


22-12-2020

Acceptance Letter for Project

To

Name

Reg.No –

BCA

PMIST, Vallam.

Dear R.K.Manisha,

On behalf of the Scion Research and Development, we would like to notify you of this opportunity for a
project. On your acceptance of this offer, you can continue a project (CLOTH DONATING SYSTEM,
FrontEnd - PHP, Back End – MySQL) with the company from January 2021 to April 2021.

We assure you that the details of your particulars we have collected during your program
should be saved in our covert privately.

We appreciate your interest in our company.

Warm regards,

[K.SHANMUGARAJAM.Tech., MBA, MSY, (Ph.D)]

Director

NO.17/595, SAREFOJI NAGAR 2ND CROSS, OPP.RAMNATH HOTEL, NEAR NEW


BUS STAND, THANJAVUR-5. CONTACT – 9597754496, Email-
[email protected]


ABSTRACT

The project main role is donate cloth to orphanage. The software application manages collect of
old dress from user and donate cloth to orphanage. Firstly admin login this system and updating list of
orphanage. And then user login this website and updating their old dress. Using this concept easily get
more dress to orphanage people. Using website to implement this technique by developer. It is helped to
this people. This system helped to orphanage people and also smooth handling technique in donate
cloth. Cloth donating system very used for poor people. Lot of people waste their cloth. And some other
people boil the dress and also throw the material. It is the good technique for orphanage people. Any
other schemes did not come to help this people. So, cloth donating system overcome this problem. In
rich people have in more number of old dress. On the other hand, some other people won’t have in
dress. So, if have in more number dress, login cloth donating website and helps the orphanage people.
INTRODUCTION
Donating cloth system is very helpful to orphanage people. Admin created one website for
donating cloth system and also added location and number peoples are also added. And then wanted list
updating within admin site. User login this website and updating their cloth donation details. Finally
worker collect the dress from user and handover orphanage people. It is one of the most technology to
secure orphanage people. In village side, some people have in efficient cloth and some other people
have not in efficient cloth. But they are sharing their cloth one to another person. And some people are
sharing their cloth to neighbours. In city side, mostly people wasted their cloth. Generally most people
have in more number of cloth to using for office, work, daily, function and other purpose. They have in
more number of cloth. But they are not distributing others. They wasted their old clothes and boiling it.
Cloth donating system is provides old dress for orphanage people. This technique aim don’t waste their
cloth, helped the orphanage people. The worker collected the old cloth and provides the orphanage
people. Only people updates their address and the worker came to this place and collect it using cloth
donating technique.
SYSTEM ANALYSIS

Existing System
In previously, people provides their cloth to orphanage people using no technique. Other then some other
people should go to orphanage location for provides their cloth. Nevertheless, some people did not give their
dress to orphanage people. Because they do not have sacrificed characters. In this people, only wasted or boiled
dress. Mostly urban people wasted lot of clothes and also throw it. In village people provides their cloth for
neighbors and relatives.
Disadvantage
 Time consuming.

 Lot of people wasted their cloth

Proposed System
Cloth donating system is help for orphanage people. Admin create website and login it. And also
admin updating people need status. The user login website and update their cloth details. The admin
viewed this webpage and collect the information. Worker interact and the collect the cloth. User
updating their address also in this website and the worker collect the cloth and handover the cloth
needed orphanage location. The admin check the website and visit the transaction also. The cloth
donating technique, very useful for orphanage people.
Advantage

 It helped poverty people


 Through this technique helped orphanage people

4
SYSTEM REQUIREMENTS

Hardware Requirement

 Processor : Intel processor 3.0 GHz


 RAM : 2GB
 Hard disk : 500 GB
 Compact Disk : 650 Mb
 Keyboard : Standard keyboard
 Mouse : Logitech mouse
 Monitor : 15 inch color monitor

Software Requirement

 Front End : PHP


 Back End : MYSQL
 Server : WAMP
 Operating System : Windows OS
 System type : 32-bit or 64-bit Operating System
 IDE : DREAMWEAVER
 DLL : Depends upon the title

5
CHAPTER 2
SYSTEMCONFIGURATION
2.1 System Architecture
CHAPTER 3
DIAGRAMATICREPRESENTATION
UML Diagrams

Use Case Design


Class Diagram

8
Sequence Diagram

9
Activity diagram

10
ER Diagram

11
Data Flow Diagram
Level 0

Level 1

12
Level 2

13
Database Structure
Table structure for table admin
Field Type Null Default
usernam varchar(30 Yes NULL
e )
password varchar(30 Yes NULL
)
Table structure for table donate
Field Type Null Default
id int(11) Yes NULL
uname varchar(20) Yes NULL
donate_for varchar(30) Yes NULL
amount int(11) Yes NULL
given_to varchar(50) Yes NULL
details varchar(100 Yes NULL
)
rdate varchar(15) Yes NULL

Field Type Null Default


id int(11) Yes NULL
ptype varchar(20) Yes NULL
name varchar(20) Yes NULL
gender varchar(10) Yes NULL
dob varchar(15) Yes NULL
age int(11) Yes NULL
addres varchar(50) Yes NULL
s
district varchar(30) Yes NULL
rdate varchar(15) Yes NULL
Table structure for table reg_user
Field Type Null Default
id int(11) Yes NULL
name varchar(30) Yes NULL
addres varchar(50) Yes NULL
s
contact varchar(20) Yes NULL
email varchar(50) Yes NULL
uname varchar(30) Yes NULL
pass varchar(30) Yes NULL
regdate varchar(15) Yes NULL
Table structure for table request
Field Type Null Default
id int(11) Yes NULL
name varchar(20) Yes NULL
addres varchar(50) Yes NULL
s
district varchar(20) Yes NULL
contact varchar(30) Yes NULL
trust varchar(30) Yes NULL
details text Yes NULL
rdate varchar(15) Yes NULL

13
Table structure for table schemes
Field Type Null Default
id int(11) Yes NULL
scheme varchar(50) Yes NULL
details varchar(100 Yes NULL
)
rdate varchar(15) Yes NULL

13
CHAPTER

4 MODULES
Modules List
User
 Login
 Register
 Update old cloth details
Admin
 Login
 Register
 Collect old cloth
 Provide old cloth to orphanage people
MODULES DESCRIPTION
User login
User login is in cloth donating system. User login means user create own user name and
password in cloth donating system and access it.
User register
User can register and then access the cloth donating system. User add name, address, phone no,
old cloth details.
Update old cloth details
The user updated about old cloth details in cloth donating system. More number clothes wasted,
so distribute orphanage people.
Admin login
Admin is the head for the entire system that controls the whole process under his
guidance.
The admin login the cloth donating system and also added orphanage people details.
Admin register
Admin is register the cloth donating website. update all orphanage people details.
Collect old cloth
The user added more number of old cloth for orphanage people. The admin collect this dress
from user by worker. The collected dress will be provide orphanage people.
Provide old cloth to orphanage people
The old cloth provides to orphanage people. The user updated in cloth donating
website and the admin collect all cloth from user by worker. This system is very helpful for
orphanage people.
CHAPTER 5
DESIGN AND DEVELOPMENT
SYSTEM TESTING

The purpose of testing is to discover errors. Testing is the process of trying to


discovereveryconceivablefaultorweaknessinaworkproduct.Itprovidesawaytocheck the
functionality of components, sub assemblies, assemblies and/or a finished product It is the
process of exercising software with the intent of ensuring that the Software system meets its
requirements and user expectations and does not fail in an unacceptable manner. There are
various types of test. Each test type addresses a specific testingrequirement.

Type of Testing

Testing is the process of trying to discover every conceivable fault or weakness in a


work product. The different type of testing is given below:

Unit Testing:

Unit testing involves the design of test cases that validate that the internal program logic
is functioning properly, and that program inputs produce valid outputs. All decision
branchesandinternalcodeflowshouldbevalidated.Itisthetestingofindividualsoftware units of the
application .it is done after the completion of an individual unit before integration.

Thisisastructuraltesting,thatreliesonknowledgeofitsconstructionandisinvasive.Unit
testsperformbasictestsatcomponentlevelandtestaspecificbusinessprocess,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
expectedresults.

Integration Testing:

Integration tests are designed to test integrated software components to determine


iftheyactuallyrunasoneprogram.Testingiseventdrivenandismoreconcernedwiththe basic
outcome of screens or fields. Integration tests demonstrate that althoughthecomponents were
individually satisfaction, as shown by successfully unit testing, the combination of
components is correct and consistent. Integration testing is specifically aimed at exposing the
problems that arise from the combination of components.

19
Functional Test:

Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user
manuals.

Functional testing is centered on the following items:

Valid Input : identified classes of valid input must be accepted.

Invalid Input : identified classes of invalid input must be rejected.

Functions : identified functions must be exercised.

Output : identified classes of application outputs must be


exercised.

Systems/ Procedures: interfacing systems or procedures must be invoked.

Organization and preparation of functional tests is focused on requirements, key


functions, or special test cases. In addition, systematic coverage pertaining to identify
Business process flows; data fields, predefined processes, and successive processes must be
considered for testing. Before functional testing is complete, additional tests are identified and
the effective value of current tests is determined.
Performance Testing:

Systemtestingensuresthattheentireintegratedsoftwaresystemmeetsrequirements.It
testsaconfigurationtoensureknownandpredictableresults.Anexampleofsystemtesting is the
configuration oriented system integration test. System testing is basedon process descriptions
and flows, emphasizing pre-driven process links and integration points.

White Box Testing:

WhiteBoxTestingisatestinginwhichinwhichthesoftwaretesterhasknowledgeof the inner


workings, structure and language of the software, or at least its purpose. It is purpose. It is
used to test areas that cannot be reached from a black boxlevel.

Black Box Testing:


20
Black Box Testing is testing the software without any knowledge of the inner workings,
structure or language of the module being tested. Black box tests, as most other kinds of tests,
must be written from a definitive source document, such as specification or requirements
document, such as specification or requirements document. It is a testing in which the software
under test is treated, as a black box .you cannot “see” into it. The test provides inputs and
responds to outputs without considering how the software works.

Acceptance Testing:

User Acceptance Testing is a critical phase of any project and requires significant
participation by the end user. It also ensures that the system meets the functional requirements.

Test Results: All the test cases mentioned above passed successfully. No defects
encountered

Validation Testing

Validation testing is the process of ensuring if the tested and developed software
satisfiestheclient/userneeds.Thebusinessrequirementlogicorscenarioshavetobetested in detail.
All the critical functionalities of an application must be testedhere.

Asatester,itisalwaysimportanttoknowhowtoverifythebusinesslogicorscenariosthat are
given to you. One such method that helps in detail evaluation of the functionalities is the
ValidationProcess.

Whenever you are asked to perform a validation test, it takes a great responsibility as you
needtotestallthecriticalbusinessrequirementsbasedontheuserneeds.Thereshouldnot be even a
single miss on the requirements asked by the user. Hence a keen knowledge on validation
testing is much important.

Asatester,youneedtoevaluateifthetestexecutionresultscomplywiththatmentionedin the
requirements document. Any deviation should be reported immediately and that deviation is
thus called abug.
From a company perspective, the validation test in simple is carried out by the
following steps:

21
 You gather the business requirements for validation testing from the enduser.
 Prepare the business plan and send it for the approval to the
onsite/stakeholders involved.
 On approval of the plan, you begin to write the necessary test cases and sendthem
forapproval.
 Once approved you begin to complete testing with the requiredsoftware,
environment and send the deliverables as requested by theclient.
 Upon approval of the deliverables, UAT testing is done by theclient.
 After that, the software goes forproduction.

Fields Testing

Thistestingisdoneinthelastphasewhentheregressionisdonefortheapplication
andtheapplicationiscalledstablebythe‘Team’beforetherelease.Theremayormaynot be a
requirement given for this from the customer. The type of testing mainly include the functional
and usability of the application. This is strictly done on Mobile Networks.QA's need to step
out and test while walking around or at home or driving. Testing is done only on realdevices.

22
CHAPTER

7 APPENDIX
APPENDIX
Sample Code

USER LOGIN CODE


<?php
session_start();
include("dbcon.php");
extract($_POST);

if(isset($btn))
{

$qry=mysql_query("select * from reg_user where uname='$uname' && pass='$pass'");


$num=mysql_num_rows($qry);
if($num==1)
{
$_SESSION['uname']=$uname;
header("location:userhome.php");
}
else
{
$msg="Invalid User!";
}

?>

REGISTER CODE

<?php
session_start();
include("dbcon.php");
24
extract($_POST);
if(isset($btn))
{
$mq=mysql_query("select max(id) from reg_user");
$mr=mysql_fetch_array($mq);
$id=$mr['max(id)']+1;
$rdate=date("d-m-Y");
$ins=mysql_query("insert into reg_user(id,name,address,contact,email,uname,pass,regdate)
values($id,'$name','$address','$contact','$email','$uname','$pass','$rdate')");
if($ins)
{
header("location:index.php");
}
else
{
$msg="Already Exists!";
}

}
?>

LOGIN CODE

<?php
session_start();
include("dbcon.php");
extract($_POST);
if(isset($btn))
{
$qry=mysql_query("select * from admin where username='$uname' && password='$pass'");
$num=mysql_num_rows($qry);
if($num==1)
{
25
$_SESSION['uname']=$uname;
header("location:admin.php");
}
else
{
$msg="Invalid User!";
}
}
?>

VIEW POOR PEOPLE

<?php
session_start();
include("dbcon.php");
extract($_POST);
$uname=$_SESSION['uname'];
?>
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th class="heading" scope="row"><?php include("title.php"); ?></th>
</tr>
<tr>
<th class="subhead" scope="row"><?php include("links_user.php"); ?></th>
</tr>
<tr>
<th scope="row"><p>&nbsp;</p>
<h3 align="center">Poor People</h3>
<p align="center">
<select name="ptype">
<option value="">-Select People-</option>
26
<option value="1">People below poverty</option>
<option value="2">Tribal</option>
<option value="3">Orphanage</option>
</select>
<input type="submit" name="Submit" value="Submit" />
</p>
<table width="774" border="1" align="center">
<tr>
<th width="38" scope="row">Sno</th>
<th width="170">Name</th>
<th width="138">Gender</th>
<th width="138">Age</th>
<th width="138">Address</th>
<th width="112">District</th>
</tr>
<?php
$i=0;
$qry=mysql_query("select * from reg_people where ptype='$ptype'");
while($row=mysql_fetch_array($qry))
{
$i++;
?>
<tr>
<th scope="row"><?php echo $i; ?></th>
<td><?php echo $row['name']; ?></td>
<td><?php echo $row['gender']; ?></td>
<td><?php echo $row['age']; ?></td>
<td><?php echo $row['address']; ?></td>
<td><?php echo $row['district']; ?></td>
</tr>
<?php
}
?>
27
</table>
<p></p> <p>&nbsp;</p></th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
</tr>
</table>

SEND REQUEST

<?php
session_start();
include("dbcon.php");
extract($_POST);
if(isset($btn))
{
$mq=mysql_query("select max(id) from request");
$mr=mysql_fetch_array($mq);
$id=$mr['max(id)']+1;
$rdate=date("d-m-Y");
$ins=mysql_query("insert into request(id,name,address,district,contact,trust,details,rdate)
values($id,'$name','$address','$district','$contact','$trust','$details','$rdate')");
if($ins)
{
?>
<script language="javascript">
alert("Your Request has been sent...");
window.location.href="index.php";
</script>
<?php
}
else
{
28
$msg="Already Exists!";
}

}
?>

SEND REQUEST

<?php
session_start();
include("dbcon.php");
extract($_POST);
if(isset($btn))
{
$mq=mysql_query("select max(id) from request");
$mr=mysql_fetch_array($mq);
$id=$mr['max(id)']+1;
$rdate=date("d-m-Y");
$ins=mysql_query("insert into request(id,name,address,district,contact,trust,details,rdate)
values($id,'$name','$address','$district','$contact','$trust','$details','$rdate')");
if($ins)
{
?>
<script language="javascript">
alert("Your Request has been sent...");
window.location.href="index.php";
</script>
29
<?php
}
else
{
$msg="Already Exists!";
}

}
?>

VIEW DONATION

<?php
session_start();
include("dbcon.php");
extract($_REQUEST);
$uname=$_SESSION['uname'];

if($act=="del")
{
mysql_query("delete from schemes where id=$did");
?>
<script language="javascript">
window.location.href="view_scheme.php";
</script>
<?php
}
?>
<?php
$i=0;
$qry=mysql_query("select * from donate order by id desc");
30
while($row=mysql_fetch_array($qry))
{
$i++;
?>
<tr>
<th scope="row"><?php echo $i; ?></th>
<td><?php echo $row['uname']; ?></td>
<td><?php echo $row['donate_for'];
if($row['amount']>0) { echo "<br>(Fund Amount: Rs.".$row['amount'].")"; }
?></td>
<td><?php echo $row['given_to']; ?></td>
<td><?php echo $row['details']; ?></td>
<td><?php echo $row['rdate']; ?></td>
</tr>
<?php
}
?>
</table>
<p>
</p>
<p>&nbsp;</p></th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
</tr>
</table>

VIEW SCHEME

<?php
session_start();
include("dbcon.php");
extract($_REQUEST);
31
$uname=$_SESSION['uname'];

if(isset($btn))
{
$mq=mysql_query("select max(id) from schemes");
$mr=mysql_fetch_array($mq);
$id=$mr['max(id)']+1;
$rdate=date("d-m-Y");
$ins=mysql_query("insert into schemes(id,scheme,details,rdate)
values($id,'$scheme','$details','$rdate')");
if($ins)
{
?>
<script language="javascript">
alert("Added....");
window.location.href="view_scheme.php";
</script>
<?php
}
}

if($act=="del")
{
mysql_query("delete from schemes where id=$did");
?>
<script language="javascript">
window.location.href="view_scheme.php";
</script>
<?php
}
?>
<?php
$i=0;
32
$qry=mysql_query("select * from schemes order by id desc");
while($row=mysql_fetch_array($qry))
{
$i++;
?>
<tr>
<th scope="row"><?php echo $i; ?></th>
<td><?php echo $row['scheme']; ?></td>
<td><?php echo $row['details']; ?></td>
<td><?php echo $row['rdate']; ?></td>
</tr>
<?php
}
?>

VIEW DONATIONS

<?php
session_start();
include("dbcon.php");
extract($_REQUEST);
$uname=$_SESSION['uname'];

if($act=="del")
{
mysql_query("delete from schemes where id=$did");
?>
<script language="javascript">
window.location.href="view_scheme.php";
</script>
<?php
33
}
?>
<?php
$i=0;
$qry=mysql_query("select * from donate order by id desc");
while($row=mysql_fetch_array($qry))
{
$i++;
?>
<tr>
<th scope="row"><?php echo $i; ?></th>
<td><?php echo $row['uname']; ?></td>
<td><?php echo $row['donate_for'];
if($row['amount']>0) { echo "<br>(Fund Amount: Rs.".$row['amount'].")"; }

?></td>
<td><?php echo $row['given_to']; ?></td>
<td><?php echo $row['details']; ?></td>
<td><?php echo $row['rdate']; ?></td>
</tr>
<?php
}
?>

VIEW REQUIREMNTS

<?php
session_start();
include("dbcon.php");
extract($_POST);
$uname=$_SESSION['uname'];

if($act=="del")
34
{
mysql_query("delete from request where id=$did");
?>
<script language="javascript">
window.location.href="requires.php";
</script>
<?php
}

?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th class="heading" scope="row"><?php include("title.php"); ?></th>
</tr>
<tr>
<th class="subhead" scope="row"><?php include("links_user.php"); ?></th>
</tr>
<tr>
<th scope="row"><p>&nbsp;</p>
<h3 align="center">Requires</h3>
<table width="774" border="1" align="center">
<tr>
<th width="38" scope="row">Sno</th>
<th width="170">Name</th>
<th width="138">Trust/Other</th>
<th width="138">Contact</th>
<th width="138">Address</th>
<th width="112">Requires</th>
<th width="112">Date</th>
</tr>
<?php
$i=0;
$qry=mysql_query("select * from request order by id desc");
35
while($row=mysql_fetch_array($qry))
{
$i++;
?>
<tr>
<th scope="row"><?php echo $i; ?></th>
<td><?php echo $row['name']; ?></td>
<td><?php echo $row['trust']; ?></td>
<td><?php echo $row['contact']; ?></td>
<td><?php echo $row['address'].", ".$row['district']; ?></td>
<td><?php echo $row['details']; ?></td>
<td><?php echo $row['rdate']; ?></td>
</tr>
<?php
}
?>
</table>

ADD PEOPLE

<?php
session_start();
include("dbcon.php");
extract($_POST);
$uname=$_SESSION['uname'];

if(isset($btn))
{
$mq=mysql_query("select max(id) from reg_people");
$mr=mysql_fetch_array($mq);
$id=$mr['max(id)']+1;
$rdate=date("d-m-Y");

36
$yr=date("Y");
$ag=explode("-",$dob);
$age=$yr-$ag[2];

$ins=mysql_query("insert into reg_people(id,ptype,name,gender,dob,age,address,district,rdate)


values($id,'$ptype','$name','$gender','$dob',$age,'$address','$district','$rdate')");
if($ins)
{
header("location:view_people.php");
}
else
{
$msg="Already Exists!";
}

?>
<table width="455" height="366" border="0" align="center" cellpadding="5" class="bg1">
<tr>
<th colspan="2" align="left" scope="row"><span class="msg"><?php echo $msg; ?></span></th>
</tr>
<tr>
<th align="left" scope="row">Type</th>
<td align="left"><select name="ptype" class="inp">
<option value="1">People below poverty</option>
<option value="2">Tribal</option>
<option value="3">Orphanage</option>
</select>
</td>
</tr>
<tr>
<th width="154" align="left" scope="row">Name</th>
37
<td width="153" align="left"><input name="name" type="text" class="inp" /></td>
</tr>
<tr>
<th align="left" scope="row">Gender</th>
<td align="left"><input name="gender" type="radio" value="Male" />
Male
<input name="gender" type="radio" value="Female" />
Female</td>
</tr>
<tr>
<th align="left" scope="row">Data of Birth </th>
<td align="left"><input name="dob" type="text" class="inp" /></td>
</tr>
<tr>
<th align="left" scope="row">Address</th>
<td align="left"><textarea name="address" class="inp"></textarea></td>
</tr>
<tr>
<th align="left" scope="row">District</th>
<td align="left"><input name="district" type="text" class="inp" /></td>
</tr>
<tr>
<th align="left" scope="row">&nbsp;</th>
<td align="left"><input name="btn" type="submit" class="inp" onclick="return validate()"
value="Submit" /></td>
</tr>
<tr>
<th align="left" scope="row">&nbsp;</th>
<td align="left"></td>
</tr>
</table>
<p></p> <p>&nbsp;</p></th>
</tr>
38
<tr>
<th scope="row">&nbsp;</th>
</tr>
</table>

REQUIREMENTS

<?php
session_start();
include("dbcon.php");
extract($_POST);
$uname=$_SESSION['uname'];

if($act=="del")
{
mysql_query("delete from request where id=$did");
?>
<script language="javascript">
window.location.href="requires.php";
</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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php include("title.php"); ?></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

39
<body>
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th class="heading" scope="row"><?php include("title.php"); ?></th>
</tr>
<tr>
<th class="subhead" scope="row"><?php include("links_admin.php"); ?></th>
</tr>
<tr>
<th scope="row"><p>&nbsp;</p>
<h3 align="center">Requires</h3>
<table width="774" border="1" align="center">
<tr>
<th width="38" scope="row">Sno</th>
<th width="170">Name</th>
<th width="138">Trust/Other</th>
<th width="138">Contact</th>
<th width="138">Address</th>
<th width="112">Requires</th>
<th width="112">Date</th>
<th width="112">Action</th>
</tr>
<?php
$i=0;
$qry=mysql_query("select * from request order by id desc");
while($row=mysql_fetch_array($qry))
{
$i++;
?>
<tr>
<th scope="row"><?php echo $i; ?></th>
<td><?php echo $row['name']; ?></td>
40
<td><?php echo $row['trust']; ?></td>
<td><?php echo $row['contact']; ?></td>
<td><?php echo $row['address'].", ".$row['district']; ?></td>
<td><?php echo $row['details']; ?></td>
<td><?php echo $row['rdate']; ?></td>
<td><?php echo '<a href="requires.php?act=del&did='.$row['id'].'">Delete</a>'; ?></td>
</tr>
<?php
}
?>
</table>
<p></p> <p>&nbsp;</p></th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
</tr>
</table>
<h3 align="center">&nbsp;</h3>
<h3 align="center">&nbsp;</h3>
<p>&nbsp;</p>
</form>
</body>
</html>

SCHEME DETAILS

<?php
session_start();
include("dbcon.php");
extract($_REQUEST);
$uname=$_SESSION['uname'];

if(isset($btn))
41
{
$mq=mysql_query("select max(id) from schemes");
$mr=mysql_fetch_array($mq);
$id=$mr['max(id)']+1;
$rdate=date("d-m-Y");
$ins=mysql_query("insert into schemes(id,scheme,details,rdate)
values($id,'$scheme','$details','$rdate')");
if($ins)
{
?>

if($act=="del")
{
mysql_query("delete from schemes where id=$did");
?>
<script language="javascript">
window.location.href="view_scheme.php";
</script>
<?php
}
?>
<?php
$i=0;
$qry=mysql_query("select * from schemes order by id desc");
while($row=mysql_fetch_array($qry))
{
$i++;
?>
<tr>
<th scope="row"><?php echo $i; ?></th>
<td><?php echo $row['scheme']; ?></td>
<td><?php echo $row['details']; ?></td>
<td><?php echo $row['rdate']; ?></td>
42
<td><?php echo '<a href="view_scheme.php?act=del&did='.$row['id'].'">Delete</a>'; ?></td>
</tr>
<?php
}
?>

VIEW DONATERS
<?php
session_start();
include("dbcon.php");
extract($_REQUEST);
$uname=$_SESSION['uname'];

if($act=="del")
{
mysql_query("delete from donate where id=$did");
?>
<script language="javascript">
window.location.href="view_donate.php";
</script>
<?php
}
?>
<?php
$i=0;
$qry=mysql_query("select * from donate order by id desc");
while($row=mysql_fetch_array($qry))
{
$i++;
?>
<tr>
<th scope="row"><?php echo $i; ?></th>
43
<td><?php echo $row['uname']; ?></td>
<td><?php echo $row['donate_for'];
if($row['amount']>0) { echo "<br>(Fund Amount: Rs.".$row['amount'].")"; }
?></td>
<td><?php echo $row['given_to']; ?></td>
<td><?php echo $row['details']; ?></td>
<td><?php echo $row['rdate']; ?></td>
<td><?php echo '<a href="view_donate.php?act=del&did='.$row['id'].'">Delete</a>'; ?></td>
</tr>
<?php
}
?>

Screen Shots
Home

44
New User

Admin Login

45
Schemes

Donation
46
Users

Poor People
47
People

Add Scheme
48
Send Request

49
CONCLUSION AND FUTURE WORK

Conclusion

Cloth donating technique is very useful for orphanage people. In traditional methods, not useful
for poverty people. Collection of data stored in website, and admin passes the information to workers.
Then worker collect old clothes and provides orphanage people using cloth donating technique. This
website used to orphanage people. This technique most helpful for poverty people. This system is quiet
simple to maintain the old cloth and also provide the easy way for orphanage people. People can easily
check the availability costumes.

Future Work
In future the cloth donating System can be maintained through a cloud storage or through a
mobile application which enable the customer, admin, workers, and orphanage member to maintain and
communicate among them in emergency situations in an efficient and enhanced way.

50
51

You might also like