Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
php
session_start();
else {
//Home
if ($_GET[module]=='home') {
<center>
</center>";
else if ($_GET[module]=='dokter'){
echo"
<table class='hiasan'>
<th class='hiasan'>No</th>
<th class='hiasan'>Spesialis</th>
<th class='hiasan'>Alamat</th>
<th class='hiasan'>Telepon</th>
<th class='hiasan'>Poliklinik</th>
<th class='hiasan'>Tarif</th>
</tr>";
$no=1;
while ($r=mysql_fetch_array($tampil)) {
echo"<tr class='hiasan'>
<td class='hiasan'>$no</td>
<td class='hiasan'>$r[namadkt]</td>
<td class='hiasan'>$r[spesialis]</td>
<td class='hiasan'>$r[alamatdkt]</td>
<td class='hiasan'>$r[telepondkt]</td>";
$t=mysql_fetch_array($plk);
</tr>";
$no++;
echo"</table>";
elseif ($_GET[module]=='pasien') {
<table class='hiasan'>
<tr align='left' class='hiasan'>
<th class='hiasan'>Alamat</th>
<th class='hiasan'>Gender</th>
<th class='hiasan'>Umur</th>
</tr>";
$no=1;
while ($a=mysql_fetch_array($tampil)) {
<td class='hiasan'>$no</td>
<td class='hiasan'>$a[namapsn]</td>
<td class='hiasan'>$a[alamatpsn]</td>
<td class='hiasan'>$a[genderpsn]</td>
<td class='hiasan'>$a[teleponpsn]</td>
</tr>";
$no++;
echo"</table>";
elseif ($_GET[module]=='poliklinik') {
echo "<a onclick='self.history.back()'>« Kembali</a>
<table class='hiasan'>
</tr>";
$no=1;
while ($a=mysql_fetch_array($tampil)) {
<td class='hiasan'>$no</td>
<td class='hiasan'>$a[namaplk]</td>
</tr>";
$no++;
echo"</table>";
else if ($_GET[module]=='pendaftaran'){
<ul>
<li><a href='?module=mendaftar'>Mendaftar</a></li>
</ul>
";
else if ($_GET[module]=='daftar'){
<table class='hiasan'>
<th class='hiasan'>No</th>
<th class='hiasan'>Dokter</th>
<th class='hiasan'>Pasien</th>
<th class='hiasan'>Poliklinik</th>
<th class='hiasan'>Biaya</th>
<th class='hiasan'>Keterangan</th>
</tr>";
$no=1;
while ($r=mysql_fetch_array($tampil)) {
echo"<tr class='hiasan'>
<td class='hiasan'>$no</td>
<td class='hiasan'>$r[tanggalpendf]</td>";
$a=mysql_fetch_array($dkt);
echo"
<td class='hiasan'>$a[namadkt]</td>";
echo"
<td class='hiasan'>$b[namapsn]</td>";
$c=mysql_fetch_array($plk);
echo"
<td class='hiasan'>$c[namaplk]</td>
<td class='hiasan'>$r[ket]</td>
</tr>";
$no++;
echo"</table>";
elseif($_GET[module]=='mendaftar'){
echo"
<table>
<tr>
<td>Tanggal</td>
</tr>
<tr>
<td>Dokter</td>
<td><select name='dkt'>";
$dkt=mysql_query("select*from dokter");
while($d=mysql_fetch_array($dkt)){
echo"<option value='$d[kodedkt]'>$d[namadkt]</option>"; }
echo"
</select></td>
</tr>
<tr>
<td>Pasien</td>
<td><select name='psn'>";
$psn=mysql_query("select*from pasien");
while($p=mysql_fetch_array($psn)){
echo"<option value='$p[kodepsn]'>$p[namapsn]</option>"; }
echo"
</select></td>
</tr>
<tr>
<td>Poliklinik</td>
<td><select name='plk'>";
$plk=mysql_query("select*from poliklinik");
while($l=mysql_fetch_array($plk)){
echo"<option value='$l[kodeplk]'>$l[namaplk]</option>"; }
echo"
</select></td>
</tr>
<tr>
<td>Biaya</td>
</tr>
<tr>
<td>Keterangan</td>
</tr>
<tr>
</td>
</tr>
</table></form>";
elseif($_GET[module]=='pilihan'){
";
elseif ($_GET[module]=='obat') {
<table class='hiasan'>
<th class='hiasan'>Kategori</th>
</tr>";
$no=1;
while ($a=mysql_fetch_array($tampil)) {
<td class='hiasan'>$no</td>
<td class='hiasan'>$a[namaobat]</td>
<td class='hiasan'>$a[jenisobat]</td>
<td class='hiasan'>$a[kategori]</td>
<td class='hiasan'>$a[hargaobat]</td>
<td class='hiasan'>$a[jumlahobat]</td>";
$b=mysql_fetch_array($beli);
</tr>";
$no++;
}
echo"</table>";
elseif($_GET[module]=='beli'){
echo"
<table>
<tr>
<td>Pasien</td>
<td><select name='psn'>";
$psn=mysql_query("select*from pasien");
while($p=mysql_fetch_array($psn)){
echo"<option value='$p[kodepsn]'>$p[namapsn]</option>"; }
echo"
</select></td>
</tr>
<tr>
<td>Tanggal</td>
</tr>
<tr>
<td>Jumlah</td>
</tr>
<tr>
</td>
</tr>
</table></form>";
?>