@@ -2,8 +2,8 @@ discard block |
||
2 | 2 | <?php |
3 | 3 | switch ($_GET[act]) { |
4 | 4 | |
5 | -default: |
|
6 | - ?> |
|
5 | + default: |
|
6 | + ?> |
|
7 | 7 | |
8 | 8 | <div class=""> |
9 | 9 | |
@@ -44,35 +44,35 @@ discard block |
||
44 | 44 | |
45 | 45 | <?php |
46 | 46 | |
47 | - $tampil = mysql_query('SELECT * FROM rujukan ORDER BY id_rujukan'); |
|
47 | + $tampil = mysql_query('SELECT * FROM rujukan ORDER BY id_rujukan'); |
|
48 | 48 | |
49 | - $no = 1; |
|
49 | + $no = 1; |
|
50 | 50 | |
51 | - while ($r = mysql_fetch_array($tampil)) { |
|
52 | - if ($r[tipe] == 'R') { |
|
53 | - $tipe = 'RS/Klinik'; |
|
54 | - } else { |
|
55 | - $tipe = 'Lab'; |
|
56 | - } |
|
51 | + while ($r = mysql_fetch_array($tampil)) { |
|
52 | + if ($r[tipe] == 'R') { |
|
53 | + $tipe = 'RS/Klinik'; |
|
54 | + } else { |
|
55 | + $tipe = 'Lab'; |
|
56 | + } |
|
57 | 57 | |
58 | - echo'<tr>'; |
|
59 | - echo"<td>$tipe</td>"; |
|
60 | - echo"<td>$r[rujukan]</td>"; |
|
61 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
62 | - echo" <td style='text-align:center;'>"; |
|
58 | + echo'<tr>'; |
|
59 | + echo"<td>$tipe</td>"; |
|
60 | + echo"<td>$r[rujukan]</td>"; |
|
61 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
62 | + echo" <td style='text-align:center;'>"; |
|
63 | 63 | |
64 | - if ($r_edit == 'Y') { |
|
65 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_rujukan=$r[id_rujukan]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
66 | - } |
|
64 | + if ($r_edit == 'Y') { |
|
65 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_rujukan=$r[id_rujukan]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
66 | + } |
|
67 | 67 | |
68 | - // if($r_delete == 'Y') { |
|
69 | - // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_rujukan]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
70 | - // } |
|
71 | - echo'</td>'; |
|
72 | - echo'</tr>'; |
|
73 | - $no++; |
|
74 | - } |
|
75 | - ?> |
|
68 | + // if($r_delete == 'Y') { |
|
69 | + // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_rujukan]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
70 | + // } |
|
71 | + echo'</td>'; |
|
72 | + echo'</tr>'; |
|
73 | + $no++; |
|
74 | + } |
|
75 | + ?> |
|
76 | 76 | </tbody> |
77 | 77 | </table> |
78 | 78 | </div> |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | switch ($_GET[act]) { |
3 | 3 | |
4 | -default: |
|
5 | - ?> |
|
4 | + default: |
|
5 | + ?> |
|
6 | 6 | |
7 | 7 | <div class=""> |
8 | 8 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | <?php |
48 | 48 | |
49 | - $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori |
|
49 | + $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori |
|
50 | 50 | ,e.rujukan as rujukan_rs |
51 | 51 | ,f.rujukan as rujukan_lab |
52 | 52 | FROM kunjungan_berobat a left join pasien b |
@@ -62,31 +62,31 @@ discard block |
||
62 | 62 | WHERE a.rujukan = 'Y' |
63 | 63 | ORDER BY a.tanggal,a.id_poli,a.no_urut ASC"); |
64 | 64 | |
65 | - $no = 1; |
|
65 | + $no = 1; |
|
66 | 66 | |
67 | - while ($r = mysql_fetch_array($tampil)) { |
|
68 | - $tgl = date('d/m/Y', strtotime($r[tanggal])); |
|
69 | - $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
|
67 | + while ($r = mysql_fetch_array($tampil)) { |
|
68 | + $tgl = date('d/m/Y', strtotime($r[tanggal])); |
|
69 | + $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
|
70 | 70 | |
71 | - echo'<tr>'; |
|
72 | - echo"<td>$tgl</td>"; |
|
73 | - echo"<td>$r[poli]</td>"; |
|
74 | - echo"<td>$r[no_urut]</td>"; |
|
75 | - echo"<td>$r[nama]</td>"; |
|
76 | - echo"<td>$r[kategori]</td>"; |
|
77 | - echo"<td>$r[rujukan_rs]</td>"; |
|
78 | - echo"<td>$r[rujukan_lab]</td>"; |
|
79 | - echo" <td style='text-align:center;'>"; |
|
71 | + echo'<tr>'; |
|
72 | + echo"<td>$tgl</td>"; |
|
73 | + echo"<td>$r[poli]</td>"; |
|
74 | + echo"<td>$r[no_urut]</td>"; |
|
75 | + echo"<td>$r[nama]</td>"; |
|
76 | + echo"<td>$r[kategori]</td>"; |
|
77 | + echo"<td>$r[rujukan_rs]</td>"; |
|
78 | + echo"<td>$r[rujukan_lab]</td>"; |
|
79 | + echo" <td style='text-align:center;'>"; |
|
80 | 80 | |
81 | - if ($r_edit == 'Y') { |
|
82 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
83 | - } |
|
81 | + if ($r_edit == 'Y') { |
|
82 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
83 | + } |
|
84 | 84 | |
85 | - echo'</td>'; |
|
86 | - echo'</tr>'; |
|
87 | - $no++; |
|
88 | - } |
|
89 | - ?> |
|
85 | + echo'</td>'; |
|
86 | + echo'</tr>'; |
|
87 | + $no++; |
|
88 | + } |
|
89 | + ?> |
|
90 | 90 | </tbody> |
91 | 91 | </table> |
92 | 92 | </div> |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | switch ($_GET[act]) { |
3 | 3 | |
4 | -default: |
|
5 | - ?> |
|
4 | + default: |
|
5 | + ?> |
|
6 | 6 | |
7 | 7 | <div class=""> |
8 | 8 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | <?php |
50 | 50 | |
51 | - $tampil = mysql_query('SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori |
|
51 | + $tampil = mysql_query('SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori |
|
52 | 52 | FROM kunjungan_berobat a left join pasien b |
53 | 53 | ON a.id_pasien = b.id_pasien |
54 | 54 | left join poli c |
@@ -57,33 +57,33 @@ discard block |
||
57 | 57 | ON b.id_kategori = d.id_kategori |
58 | 58 | ORDER BY a.tanggal,a.id_poli,a.no_urut ASC'); |
59 | 59 | |
60 | - $no = 1; |
|
60 | + $no = 1; |
|
61 | 61 | |
62 | - while ($r = mysql_fetch_array($tampil)) { |
|
63 | - $tgl = date('d/m/Y', strtotime($r[tanggal])); |
|
64 | - $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
|
62 | + while ($r = mysql_fetch_array($tampil)) { |
|
63 | + $tgl = date('d/m/Y', strtotime($r[tanggal])); |
|
64 | + $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
|
65 | 65 | |
66 | - echo'<tr>'; |
|
67 | - echo"<td>$tgl</td>"; |
|
68 | - echo"<td>$r[poli]</td>"; |
|
69 | - echo"<td>$r[no_urut]</td>"; |
|
70 | - echo"<td>$r[nama]</td>"; |
|
71 | - echo"<td>$r[kategori]</td>"; |
|
72 | - echo"<td>$r[keluhan]</td>"; |
|
73 | - echo"<td>$r[diagnosa]</td>"; |
|
74 | - echo"<td>$r[pemeriksaan]</td>"; |
|
75 | - echo"<td>$r[tindakan]</td>"; |
|
76 | - echo" <td style='text-align:center;'>"; |
|
66 | + echo'<tr>'; |
|
67 | + echo"<td>$tgl</td>"; |
|
68 | + echo"<td>$r[poli]</td>"; |
|
69 | + echo"<td>$r[no_urut]</td>"; |
|
70 | + echo"<td>$r[nama]</td>"; |
|
71 | + echo"<td>$r[kategori]</td>"; |
|
72 | + echo"<td>$r[keluhan]</td>"; |
|
73 | + echo"<td>$r[diagnosa]</td>"; |
|
74 | + echo"<td>$r[pemeriksaan]</td>"; |
|
75 | + echo"<td>$r[tindakan]</td>"; |
|
76 | + echo" <td style='text-align:center;'>"; |
|
77 | 77 | |
78 | - if ($r_edit == 'Y') { |
|
79 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
80 | - } |
|
78 | + if ($r_edit == 'Y') { |
|
79 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
80 | + } |
|
81 | 81 | |
82 | - echo'</td>'; |
|
83 | - echo'</tr>'; |
|
84 | - $no++; |
|
85 | - } |
|
86 | - ?> |
|
82 | + echo'</td>'; |
|
83 | + echo'</tr>'; |
|
84 | + $no++; |
|
85 | + } |
|
86 | + ?> |
|
87 | 87 | </tbody> |
88 | 88 | </table> |
89 | 89 | </div> |
@@ -2,8 +2,8 @@ discard block |
||
2 | 2 | <?php |
3 | 3 | switch ($_GET[act]) { |
4 | 4 | |
5 | -default: |
|
6 | - ?> |
|
5 | + default: |
|
6 | + ?> |
|
7 | 7 | |
8 | 8 | <div class=""> |
9 | 9 | |
@@ -51,36 +51,36 @@ discard block |
||
51 | 51 | <?php |
52 | 52 | |
53 | 53 | |
54 | - $tampil = mysql_query('SELECT a.*,b.agama,c.kategori |
|
54 | + $tampil = mysql_query('SELECT a.*,b.agama,c.kategori |
|
55 | 55 | FROM pasien a left join agama b |
56 | 56 | ON a.id_agama = b.id_agama |
57 | 57 | left join kategori c |
58 | 58 | ON a.id_kategori = c.id_kategori |
59 | 59 | ORDER BY a.nama '); |
60 | 60 | |
61 | - $no = 1; |
|
61 | + $no = 1; |
|
62 | 62 | |
63 | - while ($r = mysql_fetch_array($tampil)) { |
|
64 | - $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
|
63 | + while ($r = mysql_fetch_array($tampil)) { |
|
64 | + $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
|
65 | 65 | |
66 | - if ($r['gender'] == 'L') { |
|
67 | - $gender = 'Laki-laki'; |
|
68 | - } else { |
|
69 | - $gender = 'Perempuan'; |
|
70 | - } |
|
66 | + if ($r['gender'] == 'L') { |
|
67 | + $gender = 'Laki-laki'; |
|
68 | + } else { |
|
69 | + $gender = 'Perempuan'; |
|
70 | + } |
|
71 | 71 | |
72 | - echo'<tr>'; |
|
73 | - echo"<td>$r[nama]</td>"; |
|
74 | - echo"<td>$r[ktp]</td>"; |
|
75 | - echo"<td>$tgl_lahir</td>"; |
|
76 | - echo"<td>$gender</td>"; |
|
77 | - echo"<td>$r[agama]</td>"; |
|
78 | - echo"<td>$r[kategori]</td>"; |
|
79 | - echo"<td>$r[telp]</td>"; |
|
80 | - echo"<td>$r[alamat]</td>"; |
|
81 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
82 | - echo" <td style='text-align:center;'>"; ?> |
|
83 | - <a href='#' title='Cetak' onclick="window.open('./modul/mod_<?php echo $module; ?>/cetak_pasien.php?id_pasien=<?php echo $r[id_pasien]; ?>', '', 'height=500,width=600,resizable=1,scrollbars=1,addressbars=0,directories=no,location=no')"> |
|
72 | + echo'<tr>'; |
|
73 | + echo"<td>$r[nama]</td>"; |
|
74 | + echo"<td>$r[ktp]</td>"; |
|
75 | + echo"<td>$tgl_lahir</td>"; |
|
76 | + echo"<td>$gender</td>"; |
|
77 | + echo"<td>$r[agama]</td>"; |
|
78 | + echo"<td>$r[kategori]</td>"; |
|
79 | + echo"<td>$r[telp]</td>"; |
|
80 | + echo"<td>$r[alamat]</td>"; |
|
81 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
82 | + echo" <td style='text-align:center;'>"; ?> |
|
83 | + <a href='#' title='Cetak' onclick="window.open('./modul/mod_<?php echo $module; ?>/cetak_pasien.php?id_pasien=<?php echo $r[id_pasien]; ?>', '', 'height=500,width=600,resizable=1,scrollbars=1,addressbars=0,directories=no,location=no')"> |
|
84 | 84 | |
85 | 85 | <span class='icon'><i class='fa fa-print'></i></span> |
86 | 86 | |
@@ -88,18 +88,18 @@ discard block |
||
88 | 88 | |
89 | 89 | <?php |
90 | 90 | |
91 | - if ($r_edit == 'Y') { |
|
92 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_pasien=$r[id_pasien]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
93 | - } |
|
91 | + if ($r_edit == 'Y') { |
|
92 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_pasien=$r[id_pasien]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
93 | + } |
|
94 | 94 | |
95 | - // if($r_delete == 'Y') { |
|
96 | - // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_pasien]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
97 | - // } |
|
98 | - echo'</td>'; |
|
99 | - echo'</tr>'; |
|
100 | - $no++; |
|
101 | - } |
|
102 | - ?> |
|
95 | + // if($r_delete == 'Y') { |
|
96 | + // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_pasien]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
97 | + // } |
|
98 | + echo'</td>'; |
|
99 | + echo'</tr>'; |
|
100 | + $no++; |
|
101 | + } |
|
102 | + ?> |
|
103 | 103 | </tbody> |
104 | 104 | </table> |
105 | 105 | </div> |
@@ -2,8 +2,8 @@ discard block |
||
2 | 2 | <?php |
3 | 3 | switch ($_GET[act]) { |
4 | 4 | |
5 | -default: |
|
6 | - ?> |
|
5 | + default: |
|
6 | + ?> |
|
7 | 7 | |
8 | 8 | <div class=""> |
9 | 9 | |
@@ -45,35 +45,35 @@ discard block |
||
45 | 45 | |
46 | 46 | <?php |
47 | 47 | |
48 | - $tampil = mysql_query('SELECT a.*,b.satuan |
|
48 | + $tampil = mysql_query('SELECT a.*,b.satuan |
|
49 | 49 | FROM obat a left join satuan b |
50 | 50 | ON a.id_satuan = b.id_satuan |
51 | 51 | ORDER BY a.obat '); |
52 | 52 | |
53 | - $no = 1; |
|
53 | + $no = 1; |
|
54 | 54 | |
55 | - while ($r = mysql_fetch_array($tampil)) { |
|
56 | - $jumlah = number_format($r[jumlah], 0, '', '.'); |
|
55 | + while ($r = mysql_fetch_array($tampil)) { |
|
56 | + $jumlah = number_format($r[jumlah], 0, '', '.'); |
|
57 | 57 | |
58 | - echo'<tr>'; |
|
59 | - echo"<td>$r[obat]</td>"; |
|
60 | - echo"<td>$r[satuan]</td>"; |
|
61 | - echo"<td style='text-align:right;'>$jumlah</td>"; |
|
62 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
63 | - echo" <td style='text-align:center;'>"; |
|
58 | + echo'<tr>'; |
|
59 | + echo"<td>$r[obat]</td>"; |
|
60 | + echo"<td>$r[satuan]</td>"; |
|
61 | + echo"<td style='text-align:right;'>$jumlah</td>"; |
|
62 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
63 | + echo" <td style='text-align:center;'>"; |
|
64 | 64 | |
65 | - if ($r_edit == 'Y') { |
|
66 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_obat=$r[id_obat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
67 | - } |
|
65 | + if ($r_edit == 'Y') { |
|
66 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_obat=$r[id_obat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
67 | + } |
|
68 | 68 | |
69 | - // if($r_delete == 'Y') { |
|
70 | - // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_obat]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
71 | - // } |
|
72 | - echo'</td>'; |
|
73 | - echo'</tr>'; |
|
74 | - $no++; |
|
75 | - } |
|
76 | - ?> |
|
69 | + // if($r_delete == 'Y') { |
|
70 | + // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_obat]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
71 | + // } |
|
72 | + echo'</td>'; |
|
73 | + echo'</tr>'; |
|
74 | + $no++; |
|
75 | + } |
|
76 | + ?> |
|
77 | 77 | </tbody> |
78 | 78 | </table> |
79 | 79 | </div> |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | |
5 | 5 | switch ($_GET[act]) { |
6 | 6 | |
7 | -default: |
|
8 | - ?> |
|
7 | + default: |
|
8 | + ?> |
|
9 | 9 | |
10 | 10 | <div class=""> |
11 | 11 | |
@@ -52,59 +52,59 @@ discard block |
||
52 | 52 | <?php |
53 | 53 | |
54 | 54 | |
55 | - $tampil = mysql_query("SELECT a.*,b.groups FROM user a INNER JOIN groups b |
|
55 | + $tampil = mysql_query("SELECT a.*,b.groups FROM user a INNER JOIN groups b |
|
56 | 56 | ON a.id_groups=b.id_groups |
57 | 57 | WHERE a.role != 'SA' |
58 | 58 | ORDER BY a.id_user DESC "); |
59 | 59 | |
60 | - $no = 1; |
|
61 | - while ($r = mysql_fetch_array($tampil)) { |
|
62 | - if ($r[r_input] == 'Y') { |
|
63 | - $input = "<img src='images/cek.png' border=0> Input"; |
|
64 | - } else { |
|
65 | - $input = "<img src='images/del.gif' width='20' border=0> Input"; |
|
66 | - } |
|
60 | + $no = 1; |
|
61 | + while ($r = mysql_fetch_array($tampil)) { |
|
62 | + if ($r[r_input] == 'Y') { |
|
63 | + $input = "<img src='images/cek.png' border=0> Input"; |
|
64 | + } else { |
|
65 | + $input = "<img src='images/del.gif' width='20' border=0> Input"; |
|
66 | + } |
|
67 | 67 | |
68 | - if ($r[r_edit] == 'Y') { |
|
69 | - $edit = "<img src='images/cek.png' border=0> Edit"; |
|
70 | - } else { |
|
71 | - $edit = "<img src='images/del.gif' width='20' border=0> Edit"; |
|
72 | - } |
|
68 | + if ($r[r_edit] == 'Y') { |
|
69 | + $edit = "<img src='images/cek.png' border=0> Edit"; |
|
70 | + } else { |
|
71 | + $edit = "<img src='images/del.gif' width='20' border=0> Edit"; |
|
72 | + } |
|
73 | 73 | |
74 | - if ($r[r_delete] == 'Y') { |
|
75 | - $delete = "<img src='images/cek.png' border=0> Delete"; |
|
76 | - } else { |
|
77 | - $delete = "<img src='images/del.gif' width='20' border=0> Delete"; |
|
78 | - } |
|
74 | + if ($r[r_delete] == 'Y') { |
|
75 | + $delete = "<img src='images/cek.png' border=0> Delete"; |
|
76 | + } else { |
|
77 | + $delete = "<img src='images/del.gif' width='20' border=0> Delete"; |
|
78 | + } |
|
79 | 79 | |
80 | - if ($r[outlet] == '') { |
|
81 | - $outlet = 'Semua Outlet'; |
|
82 | - } else { |
|
83 | - $outlet = $r['outlet']; |
|
84 | - } |
|
80 | + if ($r[outlet] == '') { |
|
81 | + $outlet = 'Semua Outlet'; |
|
82 | + } else { |
|
83 | + $outlet = $r['outlet']; |
|
84 | + } |
|
85 | 85 | |
86 | - echo'<tr>'; |
|
87 | - echo"<td>$r[id_user]</td>"; |
|
88 | - echo"<td>$r[username]</td>"; |
|
89 | - echo"<td>$r[nik]</td>"; |
|
90 | - echo"<td>$r[groups]</td>"; |
|
91 | - echo"<td>$r[r_input]</td>"; |
|
92 | - echo"<td>$r[r_edit]</td>"; |
|
93 | - echo"<td>$r[r_delete]</td>"; |
|
94 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
95 | - echo" <td style='text-align:center;'>"; |
|
96 | - if ($r_edit == 'Y') { |
|
97 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_user=$r[id_user]&id_module=$id&width=720&height=580&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
98 | - } |
|
86 | + echo'<tr>'; |
|
87 | + echo"<td>$r[id_user]</td>"; |
|
88 | + echo"<td>$r[username]</td>"; |
|
89 | + echo"<td>$r[nik]</td>"; |
|
90 | + echo"<td>$r[groups]</td>"; |
|
91 | + echo"<td>$r[r_input]</td>"; |
|
92 | + echo"<td>$r[r_edit]</td>"; |
|
93 | + echo"<td>$r[r_delete]</td>"; |
|
94 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
95 | + echo" <td style='text-align:center;'>"; |
|
96 | + if ($r_edit == 'Y') { |
|
97 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_user=$r[id_user]&id_module=$id&width=720&height=580&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
98 | + } |
|
99 | 99 | |
100 | - // if($r_delete == 'Y') { |
|
101 | - // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_user]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
102 | - // } |
|
103 | - echo'</td>'; |
|
104 | - echo'</tr>'; |
|
105 | - $no++; |
|
106 | - } |
|
107 | - ?> |
|
100 | + // if($r_delete == 'Y') { |
|
101 | + // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_user]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
102 | + // } |
|
103 | + echo'</td>'; |
|
104 | + echo'</tr>'; |
|
105 | + $no++; |
|
106 | + } |
|
107 | + ?> |
|
108 | 108 | </tbody> |
109 | 109 | </table> |
110 | 110 | </div> |
@@ -2,8 +2,8 @@ discard block |
||
2 | 2 | <?php |
3 | 3 | switch ($_GET[act]) { |
4 | 4 | |
5 | -default: |
|
6 | - ?> |
|
5 | + default: |
|
6 | + ?> |
|
7 | 7 | |
8 | 8 | <div class=""> |
9 | 9 | |
@@ -43,32 +43,32 @@ discard block |
||
43 | 43 | <tbody> |
44 | 44 | <?php |
45 | 45 | |
46 | - $tampil = mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b |
|
46 | + $tampil = mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b |
|
47 | 47 | ON a.id_groups = b.id_groups |
48 | 48 | INNER JOIN modul c |
49 | 49 | ON a.id_modul = c.id_modul |
50 | 50 | WHERE c.status_menu = 'M' |
51 | 51 | ORDER BY a.id_groups,a.id_modul"); |
52 | 52 | |
53 | - $no = 1; |
|
54 | - while ($r = mysql_fetch_array($tampil)) { |
|
55 | - echo'<tr>'; |
|
56 | - echo"<td><b>$r[groups]</b></td>"; |
|
57 | - echo"<td><b>$r[nama_modul]</b></td>"; |
|
58 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
59 | - echo" <td style='text-align:center;'>"; |
|
60 | - if ($r_edit == 'Y') { |
|
61 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groupmodul=$r[id_groupmodul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
62 | - } |
|
53 | + $no = 1; |
|
54 | + while ($r = mysql_fetch_array($tampil)) { |
|
55 | + echo'<tr>'; |
|
56 | + echo"<td><b>$r[groups]</b></td>"; |
|
57 | + echo"<td><b>$r[nama_modul]</b></td>"; |
|
58 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
59 | + echo" <td style='text-align:center;'>"; |
|
60 | + if ($r_edit == 'Y') { |
|
61 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groupmodul=$r[id_groupmodul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
62 | + } |
|
63 | 63 | |
64 | - if ($r_delete == 'Y') { |
|
65 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groupmodul]&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
66 | - } |
|
64 | + if ($r_delete == 'Y') { |
|
65 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groupmodul]&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
66 | + } |
|
67 | 67 | |
68 | - echo'</td>'; |
|
69 | - echo'</tr>'; |
|
68 | + echo'</td>'; |
|
69 | + echo'</tr>'; |
|
70 | 70 | |
71 | - $dtampil = mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b |
|
71 | + $dtampil = mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b |
|
72 | 72 | ON a.id_groups = b.id_groups |
73 | 73 | INNER JOIN modul c |
74 | 74 | ON a.id_modul = c.id_modul |
@@ -77,24 +77,24 @@ discard block |
||
77 | 77 | AND a.id_groups = '$r[id_groups]' |
78 | 78 | ORDER BY a.id_groupmodul"); |
79 | 79 | |
80 | - while ($d = mysql_fetch_array($dtampil)) { |
|
81 | - echo'<tr>'; |
|
82 | - echo'<td></td>'; |
|
83 | - echo"<td>$d[nama_modul]</td>"; |
|
80 | + while ($d = mysql_fetch_array($dtampil)) { |
|
81 | + echo'<tr>'; |
|
82 | + echo'<td></td>'; |
|
83 | + echo"<td>$d[nama_modul]</td>"; |
|
84 | 84 | |
85 | - echo"<td style='text-align:center;'>$d[aktif]</td>"; |
|
86 | - echo"<td style='text-align:right;'>"; |
|
87 | - if ($r_delete == 'Y') { |
|
88 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_groupmodul]&id_module=$id' onClick=\"return confirm('Delete this record ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
85 | + echo"<td style='text-align:center;'>$d[aktif]</td>"; |
|
86 | + echo"<td style='text-align:right;'>"; |
|
87 | + if ($r_delete == 'Y') { |
|
88 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_groupmodul]&id_module=$id' onClick=\"return confirm('Delete this record ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
89 | + } |
|
90 | + echo'</td>'; |
|
91 | + |
|
92 | + echo'</tr>'; |
|
89 | 93 | } |
90 | - echo'</td>'; |
|
91 | 94 | |
92 | - echo'</tr>'; |
|
95 | + $no++; |
|
93 | 96 | } |
94 | - |
|
95 | - $no++; |
|
96 | - } |
|
97 | - ?> |
|
97 | + ?> |
|
98 | 98 | </tbody> |
99 | 99 | </table> |
100 | 100 | </div> |
@@ -2,8 +2,8 @@ discard block |
||
2 | 2 | <?php |
3 | 3 | switch ($_GET[act]) { |
4 | 4 | |
5 | -default: |
|
6 | - ?> |
|
5 | + default: |
|
6 | + ?> |
|
7 | 7 | |
8 | 8 | <div class=""> |
9 | 9 | |
@@ -44,56 +44,56 @@ discard block |
||
44 | 44 | |
45 | 45 | <?php |
46 | 46 | |
47 | - $tampil = mysql_query("SELECT * FROM modul WHERE status_menu = 'M' ORDER BY urutan ASC"); |
|
47 | + $tampil = mysql_query("SELECT * FROM modul WHERE status_menu = 'M' ORDER BY urutan ASC"); |
|
48 | 48 | |
49 | - $no = 1; |
|
50 | - while ($r = mysql_fetch_array($tampil)) { |
|
51 | - echo'<tr>'; |
|
52 | - echo"<td><b>$r[nama_modul]</b></td>"; |
|
53 | - echo"<td>$r[link]</td>"; |
|
49 | + $no = 1; |
|
50 | + while ($r = mysql_fetch_array($tampil)) { |
|
51 | + echo'<tr>'; |
|
52 | + echo"<td><b>$r[nama_modul]</b></td>"; |
|
53 | + echo"<td>$r[link]</td>"; |
|
54 | 54 | |
55 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
56 | - echo"<td style='text-align:center;'>"; |
|
57 | - if ($r_input == 'Y') { |
|
58 | - echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?parentid=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Sub $nmmodule Baru'><span class='icon'><i class='fa fa-pencil-square-o'></i></span></a>"; |
|
59 | - } |
|
55 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
56 | + echo"<td style='text-align:center;'>"; |
|
57 | + if ($r_input == 'Y') { |
|
58 | + echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?parentid=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Sub $nmmodule Baru'><span class='icon'><i class='fa fa-pencil-square-o'></i></span></a>"; |
|
59 | + } |
|
60 | 60 | |
61 | - if ($r_edit == 'Y') { |
|
62 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_modul=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule '><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
63 | - } |
|
61 | + if ($r_edit == 'Y') { |
|
62 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_modul=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule '><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
63 | + } |
|
64 | 64 | |
65 | - if ($r_delete == 'Y') { |
|
66 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapusmod&id=$r[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
67 | - } |
|
68 | - echo'</td>'; |
|
65 | + if ($r_delete == 'Y') { |
|
66 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapusmod&id=$r[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
67 | + } |
|
68 | + echo'</td>'; |
|
69 | 69 | |
70 | - echo'</tr>'; |
|
70 | + echo'</tr>'; |
|
71 | 71 | |
72 | - $dtampil = mysql_query("SELECT * FROM modul |
|
72 | + $dtampil = mysql_query("SELECT * FROM modul |
|
73 | 73 | WHERE status_menu = 'c' |
74 | 74 | AND parentid = '$r[id_modul]' and aktif = 'Y' ORDER BY urutan ASC"); |
75 | 75 | |
76 | - while ($d = mysql_fetch_array($dtampil)) { |
|
77 | - echo'<tr>'; |
|
78 | - echo"<td style='padding-left:15px;'>$d[nama_modul]</td>"; |
|
79 | - echo"<td style='text-transform:lowercase;'>$d[link]</td>"; |
|
76 | + while ($d = mysql_fetch_array($dtampil)) { |
|
77 | + echo'<tr>'; |
|
78 | + echo"<td style='padding-left:15px;'>$d[nama_modul]</td>"; |
|
79 | + echo"<td style='text-transform:lowercase;'>$d[link]</td>"; |
|
80 | 80 | |
81 | - echo"<td style='text-align:center;'>$d[aktif]</td>"; |
|
82 | - echo" <td style='text-align:right;'>"; |
|
83 | - if ($r_edit == 'Y') { |
|
84 | - echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?id_modul=$d[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update Sub $imodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
85 | - } |
|
81 | + echo"<td style='text-align:center;'>$d[aktif]</td>"; |
|
82 | + echo" <td style='text-align:right;'>"; |
|
83 | + if ($r_edit == 'Y') { |
|
84 | + echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?id_modul=$d[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update Sub $imodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
85 | + } |
|
86 | 86 | |
87 | - if ($r_delete == 'Y') { |
|
88 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
87 | + if ($r_delete == 'Y') { |
|
88 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
89 | + } |
|
90 | + echo'</td>'; |
|
91 | + echo'</tr>'; |
|
89 | 92 | } |
90 | - echo'</td>'; |
|
91 | - echo'</tr>'; |
|
92 | - } |
|
93 | 93 | |
94 | - $no++; |
|
95 | - } |
|
96 | - ?> |
|
94 | + $no++; |
|
95 | + } |
|
96 | + ?> |
|
97 | 97 | </tbody> |
98 | 98 | </table> |
99 | 99 | </div> |
@@ -2,8 +2,8 @@ discard block |
||
2 | 2 | <?php |
3 | 3 | switch ($_GET[act]) { |
4 | 4 | |
5 | -default: |
|
6 | - ?> |
|
5 | + default: |
|
6 | + ?> |
|
7 | 7 | |
8 | 8 | <div class=""> |
9 | 9 | |
@@ -45,31 +45,31 @@ discard block |
||
45 | 45 | |
46 | 46 | <?php |
47 | 47 | |
48 | - $tampil = mysql_query('SELECT * FROM groups a |
|
48 | + $tampil = mysql_query('SELECT * FROM groups a |
|
49 | 49 | ORDER BY id_groups'); |
50 | 50 | |
51 | - $no = 1; |
|
51 | + $no = 1; |
|
52 | 52 | |
53 | - while ($r = mysql_fetch_array($tampil)) { |
|
54 | - echo'<tr>'; |
|
55 | - echo"<td>$r[groups]</td>"; |
|
56 | - // echo"<td>$r[main_page]</td>"; |
|
57 | - // echo"<td>$r[tipe_sales]</td>"; |
|
58 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
59 | - echo" <td style='text-align:center;'>"; |
|
53 | + while ($r = mysql_fetch_array($tampil)) { |
|
54 | + echo'<tr>'; |
|
55 | + echo"<td>$r[groups]</td>"; |
|
56 | + // echo"<td>$r[main_page]</td>"; |
|
57 | + // echo"<td>$r[tipe_sales]</td>"; |
|
58 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
59 | + echo" <td style='text-align:center;'>"; |
|
60 | 60 | |
61 | - if ($r_edit == 'Y') { |
|
62 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groups=$r[id_groups]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
63 | - } |
|
61 | + if ($r_edit == 'Y') { |
|
62 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groups=$r[id_groups]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
63 | + } |
|
64 | 64 | |
65 | - if ($r_delete == 'Y') { |
|
66 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groups]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
65 | + if ($r_delete == 'Y') { |
|
66 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groups]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
67 | + } |
|
68 | + echo'</td>'; |
|
69 | + echo'</tr>'; |
|
70 | + $no++; |
|
67 | 71 | } |
68 | - echo'</td>'; |
|
69 | - echo'</tr>'; |
|
70 | - $no++; |
|
71 | - } |
|
72 | - ?> |
|
72 | + ?> |
|
73 | 73 | </tbody> |
74 | 74 | </table> |
75 | 75 | </div> |