Академический Документы
Профессиональный Документы
Культура Документы
<?php
session_start();
$tmp=$_SESSION['tmp'];
?>
<html>
<head>
<style>
ul{
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: crimson;
li
float: left;
li a{
display: block;
color: white;
text-align: center;
text-decoration: none;
font-size: 25;
}
li a:hover
background-color: lavender;
.card {
max-width: 300px;
margin: auto;
text-align: center;
font-family: arial;
.title {
color: grey;
font-size: 18px;
button {
border: none;
outline: 0;
display: inline-block;
padding: 8px;
color: white;
background-color: #000;
text-align: center;
cursor: pointer;
width: 100%;
font-size: 18px;
a{
text-decoration: none;
font-size: 22px;
color: black;
.b{
text-decoration:underline;
font-size: 18px;
color: blue;
font-family:inherit;
button:hover, a:hover {
opacity: 0.7;
</style>
</head>
<body>
<center>
</div>
</font>
</b>
</div>
</div></center>
<br>
<ul>
<li><a href="donorprofile.php">Donor</a></li>
<li><a href="finddonor.php">Acceptor</a></li>
<li><a href="hosp.php">Hospitals</a></li>
<li><a href="camp.php">Camp</a></li>
</ul>
<center>
<br>
<?php
$names=$_SESSION['name2'];
$dob=$_SESSION['dob2'];
$bg=$_SESSION['bg2'];
$cn=$_SESSION['cn2'];
$state=$_SESSION['state2'];
$dist=$_SESSION['dist2'];
$city=$_SESSION['city2'];
$add=$_SESSION['add2'];
$gender=$_SESSION['gender2'];
$weight=$_SESSION['weight2'];
$email=$_SESSION['email2'];
$lbd=$_SESSION['lbd2'];
$status=$_SESSION['dstatus'];
?>
<label> NAME
&nbs
p; </label><input type="text" name="name" value="<?php echo $names ?>" > <br><br>
<label> DOB
</label> &nb
sp; <input type="date" name="date" value="<?php echo $dob ?>"><br><br>
<option value="A1+">A1+
<option value="A1-">A1-
<option value="A2+">A2+
<option value="A2-">A2-
<option value="B+">B+
<option value="B-">B-
<option value="A1B+">A1B+
<option value="A1B-">A1B-
<option value="A2B+">A2B+
<option value="A2B-">A2B-
<option value="AB+">AB+
<option value="AB-">AB-
<option value="O+">O+
<option value="O-">O-
<option value="A+">A+
<option value="A-">A-
</option>
</select><br><br>
<label> STATE</label>
<select
style="width: 130px" name="state">
<option value="Kerala">Kerala
<option value="Tamilnadu">Tamilnadu
<option value="Uttaranchal">Uttaranchal
</option>
</select> <br><br>
</option>
</select> <br><br>
<label> CITY
</label> &nb
sp; <select style="width: 130px" name="city">
</option>
</select> <br><br>
<?php
if($gender=='female')
elseif($gender=='male')
?>
<label>WEIGHT</label> &n
bsp; <input
type="text" name="weight" value="<?php echo $weight?>"> kgs <br><br>
<label>E-
MAIL</label>  
; <input type="text" name="email" value="<?php echo $email?>"> <br><br>
if(isset($_POST['req']))
if($status=="available")
else
?>
</form>
</center>
</body>
</html>
<?php
session_start();
$con=mysqli_connect("localhost","root","","blood bank");
while($row=$result->fetch_assoc())
$username=$row['username'];
$lbd=$row['lbd'];
$lbd=date_create($lbd);
$lbd= date_format($lbd,"y-m-d");
$sd=date("y-m-d");
if($lbd<$sd)
$bd="available";
else
$bd="unavailable";
while($row=$result->fetch_assoc())
$eo=$row['eoc'];
$eoc=date_create($eo);
$eoc= date_format($eoc,"y-m-d");
$sd=date("y-m-d");
if($eoc<$sd)
$_SESSION['tmp']=0;
$_SESSION['lt']="";
#mail("dct.vignesh@gmail.com","dds","sfsdf");
?>
<html>
<head>
<style>
.a{
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: crimson;
li
float: left;
li a{
display: block;
color: white;
text-align: center;
text-decoration: none;
font-size: 25;
}
li a:hover
background-color: f;
.d
font-size: 12px;
color: blue;
.abc{
border: 2px;
background-color: azure;
</style>
</head>
<body >
<center>
</font>
</b>
</div>
</div></center>
<br> <br>
<ul class="a">
<li><a href="donorprofile.php">Donor</a></li>
<li><a href="finddonor.php">Acceptor</a></li>
<li><a href="hosp.php">Hospitals</a></li>
<li><a href="camp.php">Camp</a></li>
<li><a href="organprofile.php">Organ</a></li>
</ul>
<br>
<body align="right">
<font size="3">
</font>
</body>
<form action="index.php" method="POST" >
<table>
<tr>
<td>
<div>
<marquee direction="up">
<font size="4">
* Anyone above 18 years weighing more than 50kgs(110 Ibs)can donate blood.<br><br>
* The donor should not have donated blood in the last 3 months.<br><br>
* The donor should not have undergone any major surgery within 3 months.<br><br>
* The donor has not had alcohol 48 hours before the donation.<br><br>
* The donor should avoid smoking on the day of donation and 3hours after donation.<br><br>
* The donor should not have has any tooth extraction in the past 2 weeks.<br><br>
* The donor should not have had any immunization at least one month before.
</font>
</marquee>
</div>
</form>
</td>
<td >
<body bgcolor="transparant">
<div id="slider-holder"><ul>
</ul>
</div>
</div>
</body>
</form>
</td>
<td rowspan="2">
</font>
</b>
<font size="4"><br><br>
<?php
$temp=0;
$con=mysqli_connect("localhost","root","","blood bank");
if(isset($_POST['Donorsignin']))
$name=$_POST['username'];
$password=$_POST['pwd'];
while($row=$result->fetch_assoc())
$_SESSION['tmp']="1";
$temp=1;
$names=$row['name'];
$dob=$row['dob'];
$bg=$row['bloodgroup'];
$cn=$row['contactno'];
$state=$row['state'];
$dist=$row['dist'];
$city=$row['city'];
$add=$row['address'];
$gender=$row['gender'];
$weight=$row['weight'];
$email=$row['email'];
$lbd=$row['lbd'];
if($temp!=1)
echo'<script>window.alert("login failed")</script>';
else
$_SESSION['name']=$name;
$_SESSION['names']=$names;
$_SESSION['dob']=$dob;
$_SESSION['bg']=$bg;
$_SESSION['cn']=$cn;
$_SESSION['state']=$state;
$_SESSION['dist']=$dist;
$_SESSION['city']=$city;
$_SESSION['add']=$add;
$_SESSION['gender']=$gender;
$_SESSION['weight']=$weight;
$_SESSION['email']=$email;
$_SESSION['lbd']=$lbd;
$_SESSION['lt']="donorlogin";
echo'<script>window.alert("login success")</script>';
echo'<meta http-equiv="refresh" content="1; URL=indes.php"/>';
#header('location:donorlogin.php');
# exit;
#if(isset($_POST['forgetpassword']))
#{
#}
if(isset($_POST['Usersignin']))
$name=$_POST['username'];
$password=$_POST['pwd'];
while($row=$result->fetch_assoc())
$_SESSION['tmp']="1";
$temp=1;
if($temp!=1)
echo'<script>window.alert("login failed")</script>';
}
else
$_SESSION['lt']="userlogin";
echo'<script>window.alert("login success")</script>';
?>
</form>
<form>
</form>
</td>
</tr>
</table>
</form>
</body>
</html>
<?php
session_start();
$tmp=$_SESSION['tmp'];
$lt=$_SESSION['lt'];
//if($tmp=="1")
//{
// if($lt=="donorlogin")
// {
//$name=$_SESSION['name'];
// }
?>
<html>
<head>
<style>
ul{
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: crimson;
li
float: left;
}
li a{
display: block;
color: white;
text-align: center;
text-decoration: none;
font-size: 25;
li a:hover
background-color: lavender;
.card {
max-width: 300px;
margin: auto;
text-align: center;
font-family: arial;
.title {
color: grey;
font-size: 18px;
}
button {
border: none;
outline: 0;
display: inline-block;
padding: 8px;
color: white;
background-color: #000;
text-align: center;
cursor: pointer;
width: 100%;
font-size: 18px;
a{
text-decoration: none;
font-size: 22px;
color: black;
button:hover, a:hover {
opacity: 0.7;
.ba{
text-decoration:underline;
font-size: 18px;
color: blue;
font-family:inherit;
}
</style>
</head>
<body>
<center>
</div>
</font>
</b>
</div>
</div></center>
<br>
<ul>
<li><a href="donorprofile.php">Donor</a></li>
<li><a href="finddonor.php">Acceptor</a></li>
<li><a href="hosp.php">Hospitals</a></li>
<li><a href="organprofile.php">Organ</a></li>
</ul>
<body align="right"><font size="3">
<?php
$t=0;
$names="";
$bg="";
$state="";
$con=mysqli_connect("localhost","root","","blood bank");
while($row=$result->fetch_assoc())
$names=$row['uname'];
$bg=$row['organ'];
$state=$row['hname'];
$cn=$row['cno'];
$username=$row['mailid'];
$t=$t+1;
if($t==1)
echo '<tr>';
echo '<td>';
echo'<p><button name="b">Detail</button></p>';
echo' </div>';
else if($t==2)
echo '<td>';
echo'<div class="card">';
echo'<p><button name="b">Detail</button></p>';
}
else if($t==3)
echo'<div class="card">';
echo'<p><button name="b">Detail</button></p>';
$t=0;
</table>
</form>
</center>
</body>
</html>