-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.php
172 lines (148 loc) · 5.28 KB
/
data.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<title>Posyandu Tulip - Anak</title>
<meta charset="iso-8859-1">
<link rel="icon" type="image/png" href="family1.png">
<link rel="stylesheet" href="styles/layout.css" type="text/css">
<!--[if lt IE 9]><script src="scripts/html5shiv.js"></script><![endif]-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Sufee Admin - HTML5 Admin Template">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-icon.png">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="assets/css/normalize.css">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/themify-icons.css">
<link rel="stylesheet" href="assets/css/flag-icon.min.css">
<link rel="stylesheet" href="assets/css/cs-skin-elastic.css">
<link rel="stylesheet" href="assets/scss/style.css">
<link href="assets/css/lib/vector-map/jqvmap.min.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800' rel='stylesheet' type='text/css'>
<style>
.mainmenubtn {
background-color: red;
color: white;
border: none;
cursor: pointer;
padding:20px;
margin-top:20px;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-child {
display: none;
background-color: black;
min-width: 100px;
}
.dropdown-child a {
color: white;
padding: 10px;
text-decoration: none;
display: block;
}
.dropdown:hover .dropdown-child {
display: block;
}
</style>
</head>
<body>
<div class="wrapper row1">
<header id="header" class="clear">
<div id="hgroup">
<h1>Posyandu Tulip</h1>
<h2>Perumahan Alam Tirta Lestari jl. Kerinci blok E</h2>
</div>
<nav>
<ul>
<li><a href="home.php">Home</a></li>
<li><a href="kader.php">Kader</a></li>
<li><a href="anak.php">Anak</a></li>
<li><a href="penimbangan.php">Pemeriksaan</a></li>
<li><a href="jadwal_imunisasi.php">Jadwal Imunisasi</a></li>
<div class="dropdown">LAPORAN
<div class="dropdown-child">
<a href="laporan/dataanak.php">Lap.Anak</a>
<a href="laporanperanak.php">Lap.Data Perkembangan Anak</a>
<a href="laporanminggu.php">Lap. perminggu</a>
</div>
</div>
    
<li><a href="logout.php">Logout</a></li>
</ul>
</nav>
</header>
</div>
<!-- content -->
<div class="wrapper row2">
<div id="container" class="clear">
<!-- content body -->
<section id="slider"><a href="#"><img src="" alt=""></a></section>
<?php
include 'koneksi.php';
?>
   <a href="tambahdata.php" ><input type="submit" class="btn btn-primary btn-fw" value="tambah"></a>   <a href="penimbangan.php" ><input type="submit" class="btn btn-primary btn-fw" value="Lihat per anak"></a>
<br>
<br>
<div class="content mt-6">
<div class="animated fadeIn">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<strong class="card-title">Data Table</strong>
</div>
<br>
<form action="anak.php" method="get">
<label>Cari :</label>
<input type="text" name="cari">
<input type="submit" value="Cari">
</form>
<div class="card-body">
<table id="bootstrap-data-table" class="table table-striped table-bordered">
<thead>
<tr>
<th>No</th>
<th>Kode Anak</th>
<th>tanggal penimbangan</th>
<th>berat badan</th>
<th>tinggi badan</th>
</tr>
</thead>
<tbody>
<?php
$data = mysql_query("select * from penimbangan ");
$no = 1;
while($r = mysql_fetch_array($data)){
?>
<tr>
<td><?php echo $no++ ?></td>
<td><?php echo $r['id_anak']; ?></td>
<td><?php echo $r['tanggal_penimbangan']; ?></td>
<td><?php echo $r['berat_badan']; ?></td>
<td><?php echo $r['tinggi_badan']; ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div class="wrapper row3">
<footer id="footer" class="clear">
<p class="fl_left">Aplikasi Pendataan Posyandu © 2019 - Nabila Carolina - D3 Sistem Informasi Universitas Pakuan </p>
</footer>
</div>
</body>
</html>