forked from faizakmal/Sistem-Pakar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhasildiagnosa.php
195 lines (190 loc) · 8.63 KB
/
hasildiagnosa.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<?php
include('koneksi.php');
if(isset($_SESSION['login_user'])){
header("location: about.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sistem Pakar</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
</ul>
<ul class="nav navbar-nav navbar-right">
</ul>
</div>
</div>
</nav>
<div class="container-fluid text-center">
<div class="row content">
<div class="col-sm-2 sidenav">
<p><a href="index.php"><button type="button" class="btn btn-primary btn-block">BERANDA</button></a></p>
<p><a href="diagnosa.php"><button type="button" class="btn btn-primary btn-block active">DIAGNOSA PENYAKIT</button></a></p>
<p><a href="daftarpenyakit.php"><button type="button" class="btn btn-primary btn-block">DAFTAR PENYAKIT</button></a></p>
<p><a href="about.php"><button type="button" class="btn btn-primary btn-block">ABOUT</button></a></p>
<br><br><br><br><br><br><br><br><br><br>
<p><button type="button" class="btn btn-primary btn-block" id="myBtn">LOGIN</button></p>
</div>
<div class="col-sm-8 text-left">
<h2 class="text-center">DETAIL DIAGNOSA</h2>
<div class="form-group" method="POST">
<br><label class="control-label col-sm-2">ID :</label>
<div class="col-sm-10">
<?php
$tampil = "SELECT * FROM penyakit where idpenyakit='".$_GET['id']."'";
$sql = mysqli_query ($konek_db,$tampil);
while($data = mysqli_fetch_array ($sql))
{
echo "<input type='text' class='form-control' id='idpenyakit' readonly value='".$data['idpenyakit']."'><br>";
}
?>
</div>
</div>
<div class="form-group" method="POST">
<br><label class="control-label col-sm-2">NAMA :</label>
<div class="col-sm-10">
<?php
$tampil = "SELECT * FROM penyakit where idpenyakit='".$_GET['id']."'";
$sql = mysqli_query ($konek_db,$tampil);
while($data = mysqli_fetch_array ($sql))
{
echo "<input type='text' class='form-control' id='namapenyakit' readonly value='".$data['namapenyakit']."'><br>";
}
?>
</div>
</div>
<div class="form-group" method="POST">
<br><label class="control-label col-sm-2">JENIS :</label>
<div class="col-sm-10">
<?php
$tampil = "SELECT * FROM penyakit where idpenyakit='".$_GET['id']."'";
$sql = mysqli_query ($konek_db,$tampil);
while($data = mysqli_fetch_array ($sql))
{
echo "<input type='text' class='form-control' id='jenistanaman' readonly value='".$data['jenistanaman']."'><br>";
}
?>
</div>
</div>
<div class="form-group" method="POST">
<br><label class="control-label col-sm-2">GEJALA :</label>
<div class="col-sm-10">
<?php
$tampil = "SELECT * FROM penyakit p, basispengetahuan b where p.idpenyakit='".$_GET['id']."' and p.namapenyakit=b.namapenyakit";
$sql = mysqli_query ($konek_db,$tampil);
while($data = mysqli_fetch_array ($sql))
{
echo "<input type='text' class='form-control' id='jenistanaman' readonly value='".$data['gejala']."'><br>";
}
?>
</div>
</div>
<div class="form-group" method="POST">
<br><label class="control-label col-sm-2">KULTUR TEKNIS :</label><br>
<div class="col-sm-10">
<?php
$tampil = "SELECT * FROM penyakit where idpenyakit='".$_GET['id']."'";
$sql = mysqli_query ($konek_db,$tampil);
while($data = mysqli_fetch_array ($sql))
{
echo "<textarea rows='8' class='form-control' id='penanganan' readonly>".$data['kulturteknis']."</textarea><br>";
}
?>
</div>
</div>
<div class="form-group" method="POST">
<br><label class="control-label col-sm-2">FISIK MEKANIS :</label><br>
<div class="col-sm-10">
<?php
$tampil = "SELECT * FROM penyakit where idpenyakit='".$_GET['id']."'";
$sql = mysqli_query ($konek_db,$tampil);
while($data = mysqli_fetch_array ($sql))
{
echo "<textarea rows='8' class='form-control' id='penanganan' readonly>".$data['fisikmekanis']."</textarea><br>";
}
?>
</div>
</div>
<div class="form-group" method="POST">
<br><label class="control-label col-sm-2">KIMIAWI :</label><br>
<div class="col-sm-10">
<?php
$tampil = "SELECT * FROM penyakit where idpenyakit='".$_GET['id']."'";
$sql = mysqli_query ($konek_db,$tampil);
while($data = mysqli_fetch_array ($sql))
{
echo "<textarea rows='8' class='form-control' id='penanganan' readonly>".$data['kimiawi']."</textarea><br>";
}
?>
</div>
</div>
<div class="form-group" method="POST">
<br><label class="control-label col-sm-2">HAYATI :</label><br>
<div class="col-sm-10">
<?php
$tampil = "SELECT * FROM penyakit where idpenyakit='".$_GET['id']."'";
$sql = mysqli_query ($konek_db,$tampil);
while($data = mysqli_fetch_array ($sql))
{
echo "<textarea rows='8' class='form-control' id='penanganan' readonly>".$data['hayati']."</textarea><br>";
}
?>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header" style="padding:35px 50px;">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4><span class="glyphicon glyphicon-lock"></span> Login</h4>
</div>
<div class="modal-body" style="padding:40px 50px;">
<form role="form" method="post" action="ceklogin.php">
<div class="form-group" method="post">
<label for="username"><span class="glyphicon glyphicon-user"></span> Username</label>
<input type="text" class="form-control" name="username" id="password" placeholder="Enter username">
</div>
<div class="form-group" method="post">
<label for="password"><span class="glyphicon glyphicon-eye-open"></span> Password</label>
<input type="password" class="form-control" name="password" id="password" placeholder="Enter password">
</div>
<button type="submit" id="submit" nama="submit" class="btn btn-primary btn-block" method="post"><span class="glyphicon glyphicon-off"></span> Login</button>
</form>
</div>
</div>
</div>
</div>
<footer class="container-fluid text-center">
<p>S1-Sistem Informasi 2013</p>
</footer>
<script>
$(document).ready(function(){
$("#myBtn").click(function(){
$("#myModal").modal();
});
});
</script>
</body>
</html>