-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
313 changed files
with
311,428 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,285 @@ | ||
<?php | ||
|
||
$ed1=$_POST['var1']; | ||
$ed2=$_POST['var2']; | ||
$ed3=$_POST['var3']; | ||
$ed4=$_POST['var4']; | ||
$ed5=$_POST['var5']; | ||
$ed6=$_POST['var6']; | ||
$ed7=$_POST['var7']; | ||
$ed8=$_POST['var8']; | ||
$ed9=$_POST['var9']; | ||
$ed10=$_POST['var10']; | ||
|
||
|
||
|
||
if(($_POST[1])=="Yes") | ||
{ | ||
$ed1++; | ||
} | ||
if(($_POST[2])=="Yes") | ||
{ | ||
$ed1++; | ||
} | ||
if(($_POST[3])=="Yes") | ||
{ | ||
$ed1++; | ||
} | ||
if(($_POST[4])=="Yes") | ||
{ | ||
$ed2++; | ||
} | ||
if(($_POST[5])=="Yes") | ||
{ | ||
$ed2++; | ||
} | ||
if(($_POST[6])=="Yes") | ||
{ | ||
$ed3++; | ||
} | ||
|
||
$mainresult; | ||
if($ed1==0 && $ed2==0 && $ed3==0 && $ed4==0 &&$ed5==0 && $ed6==0 &&$ed7==0 && $ed8==0 &&$ed9==0 && $ed10==0) | ||
{ | ||
$mainresult=11; | ||
} | ||
else | ||
{ | ||
if($ed1==(max($ed1,$ed2,$ed3,$ed4,$ed5,$ed6,$ed7,$ed8,$ed9,$ed10))) | ||
{ | ||
$mainresult=56; | ||
} | ||
if($ed2==(max($ed1,$ed2,$ed3,$ed4,$ed5,$ed6,$ed7,$ed8,$ed9,$ed10))) | ||
{ | ||
$mainresult=57; | ||
} | ||
if($ed3==(max($ed1,$ed2,$ed3,$ed4,$ed5,$ed6,$ed7,$ed8,$ed9,$ed10))) | ||
{ | ||
$mainresult=58; | ||
} | ||
if($ed4==(max($ed1,$ed2,$ed3,$ed4,$ed5,$ed6,$ed7,$ed8,$ed9,$ed10))) | ||
{ | ||
$mainresult=59; | ||
} | ||
if($ed5==(max($ed1,$ed2,$ed3,$ed4,$ed5,$ed6,$ed7,$ed8,$ed9,$ed10))) | ||
{ | ||
$mainresult=60; | ||
} | ||
if($ed6==(max($ed1,$ed2,$ed3,$ed4,$ed5,$ed6,$ed7,$ed8,$ed9,$ed10))) | ||
{ | ||
$mainresult=61; | ||
} | ||
if($ed7==(max($ed1,$ed2,$ed3,$ed4,$ed5,$ed6,$ed7,$ed8,$ed9,$ed10))) | ||
{ | ||
$mainresult=62; | ||
} | ||
if($ed8==(max($ed1,$ed2,$ed3,$ed4,$ed5,$ed6,$ed7,$ed8,$ed9,$ed10))) | ||
{ | ||
$mainresult=63; | ||
} | ||
if($ed9==(max($ed1,$ed2,$ed3,$ed4,$ed5,$ed6,$ed7,$ed8,$ed9,$ed10))) | ||
{ | ||
$mainresult=64; | ||
} | ||
} | ||
|
||
|
||
|
||
header('Refresh: 3;url=result.php?mainresult='.$mainresult); | ||
|
||
|
||
?> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Disease Prediction System </title> | ||
|
||
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" > | ||
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen" > | ||
<link rel="stylesheet" type="text/css" href="js/DataTables/datatables.min.css"/> | ||
<link rel="stylesheet" href="css/main.css" media="screen" > | ||
<script src="js/modernizr/modernizr.min.js"></script> | ||
<style> | ||
|
||
body{ | ||
background-color:white; | ||
width:auto; | ||
height:auto; | ||
margin:30 auto; | ||
} | ||
.intro-page{ | ||
margin-left: 650px; | ||
margin-right: 203px; | ||
margin-top:200px; | ||
} | ||
.intro-page h2{ | ||
font-size: 32px; | ||
font-weight: 900; | ||
color: #12bac2; | ||
} | ||
.intro-page p | ||
{ | ||
color: #071c55; | ||
font-size: 19px; | ||
font-weight: 800; | ||
} | ||
|
||
.flex-p { | ||
display: flex; | ||
|
||
flex-wrap: wrap; | ||
|
||
align-items: center; | ||
padding-bottom: 38px; | ||
} | ||
|
||
.flex-p .image-p{ | ||
|
||
} | ||
.flex-p .content-p { | ||
flex-basis: 100%; | ||
max-width: 100%; | ||
padding: 21px; | ||
align-items:center; | ||
|
||
} | ||
.flex-p .content-p li{ | ||
|
||
|
||
} | ||
|
||
|
||
|
||
.intro-page a{ | ||
background-color: #25dfce; | ||
font-size: 60x; | ||
font-weight: 900; | ||
color: #131001; | ||
|
||
} | ||
|
||
|
||
.lds-facebook { | ||
display: inline-block; | ||
position: relative; | ||
width: 80px; | ||
height: 80px; | ||
} | ||
.lds-facebook div { | ||
display: inline-block; | ||
position: absolute; | ||
left: 8px; | ||
width: 16px; | ||
background: #04867d; | ||
animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite; | ||
} | ||
.lds-facebook div:nth-child(1) { | ||
left: 8px; | ||
animation-delay: -0.84s; | ||
} | ||
.lds-facebook div:nth-child(2) { | ||
left: 32px; | ||
animation-delay: -0.72s; | ||
} | ||
.lds-facebook div:nth-child(3) { | ||
left: 56px; | ||
animation-delay: -0.60s; | ||
} | ||
.lds-facebook div:nth-child(4) { | ||
left: 80px; | ||
animation-delay: -0.48s; | ||
} | ||
.lds-facebook div:nth-child(5) { | ||
left: 104px; | ||
animation-delay: -0.36s; | ||
} | ||
.lds-facebook div:nth-child(6) { | ||
left: 128px; | ||
animation-delay: -0.24s; | ||
} | ||
.lds-facebook div:nth-child(7) { | ||
left: 152px; | ||
animation-delay: -0.12s; | ||
} | ||
.lds-facebook div:nth-child(8) { | ||
left: 176px; | ||
animation-delay: 0; | ||
} | ||
@keyframes lds-facebook { | ||
0% { | ||
top: 8px; | ||
height: 64px; | ||
} | ||
50%, 100% { | ||
top: 24px; | ||
height: 32px; | ||
} | ||
} | ||
|
||
h1{ | ||
color:#04867d; | ||
font-weight:900; | ||
|
||
} | ||
|
||
|
||
</style> | ||
</head> | ||
<body > | ||
|
||
<div class="intro-page" > | ||
|
||
<div class="flex-p"> | ||
|
||
<div class="content-p"> | ||
|
||
|
||
<h1>Analyzing your Data...</h1><div class="lds-facebook"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div> | ||
|
||
|
||
|
||
|
||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
|
||
|
||
</div> | ||
|
||
|
||
|
||
|
||
<!-- /.main-wrapper --> | ||
<script src="js/jquery/jquery-2.2.4.min.js"></script> | ||
<script> | ||
$(function($) { | ||
|
||
$("#myCheck").on('click', function(){ | ||
$("#text").slideToggle(); | ||
}); | ||
}); | ||
</script> | ||
|
||
|
||
<script> | ||
function myFunction() { | ||
var checkBox = document.getElementById("myCheck"); | ||
var text = document.getElementById("text"); | ||
if (checkBox.checked == true){ | ||
text.style.display = "block"; | ||
} else { | ||
text.style.display = "none"; | ||
} | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
|
||
<?php | ||
include('link/config.php'); | ||
?> | ||
|
||
|
||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Disease Prediction System</title> | ||
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" > | ||
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen" > | ||
<link rel="stylesheet" type="text/css" href="js/DataTables/datatables.min.css"/> | ||
<link rel="stylesheet" href="css/main.css" media="screen" > | ||
<link rel="stylesheet" href="css/form-content.css" media="screen" > | ||
<script src="js/modernizr/modernizr.min.js"></script> | ||
</head> | ||
<body > | ||
|
||
|
||
<!-- ========== TOP NAVBAR ========== --> | ||
<?php include('link/user-topber.php'); ?> | ||
</div> | ||
|
||
<div class="intro-page" > | ||
|
||
<div class="flex-p"> | ||
<div class="content-p"> | ||
|
||
|
||
<form class="form-horizontal" action="abdomen-symptoms2.php" method="post"> | ||
<h2> Please check all the symptoms below that apply to you </h2> | ||
<p>Select one answer in each row. </p> | ||
|
||
<table id="example" cellspacing="3" width="100%"> | ||
|
||
|
||
<tbody> | ||
<?php $sql = "SELECT symptoms_tb.symptoms_id,symptoms_tb.symptoms_name from symptoms_tb where id IN (247,254,259,265,271,275)"; | ||
$query = $dbh->prepare($sql); | ||
$query->execute(); | ||
$results=$query->fetchAll(PDO::FETCH_OBJ); | ||
$cnt=1; | ||
if($query->rowCount() > 0) | ||
{ | ||
foreach($results as $result) | ||
{ ?> | ||
<tr> | ||
<!-- <?php echo htmlentities($cnt);?> --> | ||
|
||
<td class="result-color1">Do you have  "<?php echo htmlentities($result->symptoms_name);?>"?</td> | ||
<td class="result-color1"><input type="radio" name="<?php echo htmlentities($cnt);?>" value="Yes" required>Yes     <input type="radio" name="<?php echo htmlentities($cnt);?>" value="No" required>No </td> | ||
|
||
|
||
|
||
</tr> | ||
<?php $cnt=$cnt+1;}} ?> | ||
|
||
|
||
</tbody> | ||
</table> | ||
|
||
|
||
<div class="flex-p-inside"> | ||
|
||
<div class="flex-p-2"> | ||
<li><button type="submit" name="submit" >SUBMIT</button></li> | ||
|
||
</div> | ||
</div> | ||
|
||
</form> | ||
|
||
<div class="flex-p-inside"> | ||
<div class="flex-p-1"> | ||
<li><a href="teerms.php" ><button><<</button></li> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</div> | ||
|
||
|
||
<!-- /.main-wrapper --> | ||
<script src="js/jquery-2.2.4.min.js"></script> | ||
|
||
<script src="js/main.js"></script> | ||
<script> | ||
$(function($) { | ||
$(".js-states").select2(); | ||
$(".js-states-limit").select2({ | ||
maximumSelectionLength: 2 | ||
}); | ||
$(".js-states-hide").select2({ | ||
minimumResultsForSearch: Infinity | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.