@@ -50,11 +50,11 @@ discard block |
||
50 | 50 | |
51 | 51 | while ($r=mysql_fetch_array($tampil)){ |
52 | 52 | |
53 | - if ($r[tipe] == 'R') { |
|
53 | + if ($r[tipe] == 'R') { |
|
54 | 54 | $tipe = 'RS/Klinik'; |
55 | - } else { |
|
55 | + } else { |
|
56 | 56 | $tipe = 'Lab'; |
57 | - } |
|
57 | + } |
|
58 | 58 | |
59 | 59 | echo"<tr>"; |
60 | 60 | echo"<td>$tipe</td>"; |
@@ -63,13 +63,13 @@ discard block |
||
63 | 63 | echo" <td style='text-align:center;'>"; |
64 | 64 | |
65 | 65 | if($r_edit == 'Y') { |
66 | - 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>"; |
|
67 | - } |
|
66 | + 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>"; |
|
67 | + } |
|
68 | 68 | |
69 | 69 | |
70 | - // if($r_delete == 'Y') { |
|
71 | - // 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>"; |
|
72 | - // } |
|
70 | + // if($r_delete == 'Y') { |
|
71 | + // 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>"; |
|
72 | + // } |
|
73 | 73 | echo"</td>"; |
74 | 74 | echo"</tr>"; |
75 | 75 | $no++; |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <? |
2 | 2 | session_start(); |
3 | 3 | if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else{ |
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | ?> |
@@ -41,27 +41,27 @@ discard block |
||
41 | 41 | |
42 | 42 | $id_module = $_GET['id_module']; |
43 | 43 | |
44 | - $id = isset($_GET['id_rujukan']) ? intval($_GET['id_rujukan']) : false; |
|
44 | + $id = isset($_GET['id_rujukan']) ? intval($_GET['id_rujukan']) : false; |
|
45 | 45 | |
46 | - if($id){ |
|
47 | - $query = mysql_query('SELECT * FROM rujukan WHERE id_rujukan = "'.$id.'"'); |
|
48 | - if($query && mysql_num_rows($query) == 1){ |
|
46 | + if($id){ |
|
47 | + $query = mysql_query('SELECT * FROM rujukan WHERE id_rujukan = "'.$id.'"'); |
|
48 | + if($query && mysql_num_rows($query) == 1){ |
|
49 | 49 | $data = mysql_fetch_object($query); |
50 | - }else |
|
50 | + }else |
|
51 | 51 | die('Data modul tidak ditemukan'); |
52 | - } |
|
52 | + } |
|
53 | 53 | |
54 | 54 | if ($_GET['igroup']) { |
55 | - $group = $_GET['igroup']; |
|
55 | + $group = $_GET['igroup']; |
|
56 | 56 | } else { |
57 | - $group = $data->id_rujukan; |
|
57 | + $group = $data->id_rujukan; |
|
58 | 58 | |
59 | 59 | } |
60 | 60 | |
61 | 61 | if ($_GET['imenu']) { |
62 | - $imenu = $_GET['imenu']; |
|
62 | + $imenu = $_GET['imenu']; |
|
63 | 63 | } else { |
64 | - $imenu = $data->id_modul; |
|
64 | + $imenu = $data->id_modul; |
|
65 | 65 | |
66 | 66 | } |
67 | 67 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <? |
2 | 2 | session_start(); |
3 | 3 | if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else{ |
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | ?> |
@@ -41,27 +41,27 @@ discard block |
||
41 | 41 | |
42 | 42 | $id_module = $_GET['id_module']; |
43 | 43 | |
44 | - $id = isset($_GET['id_satuan']) ? intval($_GET['id_satuan']) : false; |
|
44 | + $id = isset($_GET['id_satuan']) ? intval($_GET['id_satuan']) : false; |
|
45 | 45 | |
46 | - if($id){ |
|
47 | - $query = mysql_query('SELECT * FROM satuan WHERE id_satuan = "'.$id.'"'); |
|
48 | - if($query && mysql_num_rows($query) == 1){ |
|
46 | + if($id){ |
|
47 | + $query = mysql_query('SELECT * FROM satuan WHERE id_satuan = "'.$id.'"'); |
|
48 | + if($query && mysql_num_rows($query) == 1){ |
|
49 | 49 | $data = mysql_fetch_object($query); |
50 | - }else |
|
50 | + }else |
|
51 | 51 | die('Data modul tidak ditemukan'); |
52 | - } |
|
52 | + } |
|
53 | 53 | |
54 | 54 | if ($_GET['igroup']) { |
55 | - $group = $_GET['igroup']; |
|
55 | + $group = $_GET['igroup']; |
|
56 | 56 | } else { |
57 | - $group = $data->id_satuan; |
|
57 | + $group = $data->id_satuan; |
|
58 | 58 | |
59 | 59 | } |
60 | 60 | |
61 | 61 | if ($_GET['imenu']) { |
62 | - $imenu = $_GET['imenu']; |
|
62 | + $imenu = $_GET['imenu']; |
|
63 | 63 | } else { |
64 | - $imenu = $data->id_modul; |
|
64 | + $imenu = $data->id_modul; |
|
65 | 65 | |
66 | 66 | } |
67 | 67 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | session_start(); |
3 | 3 | if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else{ |
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | include "./../../config/fungsi_thumb.php"; |
@@ -18,14 +18,14 @@ discard block |
||
18 | 18 | |
19 | 19 | // Hapus modul |
20 | 20 | if ($module=='satuan' AND $act=='hapus'){ |
21 | - $id = $_GET['id']; |
|
22 | - $id_module = $_GET['id_module']; |
|
21 | + $id = $_GET['id']; |
|
22 | + $id_module = $_GET['id_module']; |
|
23 | 23 | |
24 | - mysql_query("DELETE FROM ".$module." WHERE id_".$module." = $id"); |
|
24 | + mysql_query("DELETE FROM ".$module." WHERE id_".$module." = $id"); |
|
25 | 25 | |
26 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module); |
|
26 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module); |
|
27 | 27 | |
28 | - ?> |
|
28 | + ?> |
|
29 | 29 | |
30 | 30 | <script language="javascript"> |
31 | 31 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>"; |
@@ -34,16 +34,16 @@ discard block |
||
34 | 34 | |
35 | 35 | <?php |
36 | 36 | |
37 | - } |
|
37 | + } |
|
38 | 38 | |
39 | - // Input group |
|
39 | + // Input group |
|
40 | 40 | elseif ($module=='satuan' AND $act=='input'){ |
41 | 41 | |
42 | - $id_module = $_POST['id_module']; |
|
42 | + $id_module = $_POST['id_module']; |
|
43 | 43 | |
44 | 44 | |
45 | - if($_POST['ID']){ |
|
46 | - mysql_query("UPDATE satuan SET satuan = '$_POST[satuan]' |
|
45 | + if($_POST['ID']){ |
|
46 | + mysql_query("UPDATE satuan SET satuan = '$_POST[satuan]' |
|
47 | 47 | ,upddt = '$datetime' |
48 | 48 | ,updby = '$userid' |
49 | 49 | ,aktif = '$_POST[aktif]' |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | |
53 | 53 | |
54 | 54 | |
55 | - } else { |
|
56 | - mysql_query("INSERT INTO satuan(satuan |
|
55 | + } else { |
|
56 | + mysql_query("INSERT INTO satuan(satuan |
|
57 | 57 | ,crtdt |
58 | 58 | ,crtby |
59 | 59 | ,upddt |
@@ -67,12 +67,12 @@ discard block |
||
67 | 67 | ,'$_POST[aktif]')"); |
68 | 68 | |
69 | 69 | |
70 | - } |
|
70 | + } |
|
71 | 71 | |
72 | 72 | |
73 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module); |
|
73 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module); |
|
74 | 74 | |
75 | - ?> |
|
75 | + ?> |
|
76 | 76 | |
77 | 77 | <script language="javascript"> |
78 | 78 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>"; |
@@ -55,13 +55,13 @@ |
||
55 | 55 | echo" <td style='text-align:center;'>"; |
56 | 56 | |
57 | 57 | if($r_edit == 'Y') { |
58 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_satuan=$r[id_satuan]&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>"; |
|
59 | - } |
|
58 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_satuan=$r[id_satuan]&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>"; |
|
59 | + } |
|
60 | 60 | |
61 | 61 | |
62 | - // if($r_delete == 'Y') { |
|
63 | - // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_satuan]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
64 | - // } |
|
62 | + // if($r_delete == 'Y') { |
|
63 | + // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_satuan]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
64 | + // } |
|
65 | 65 | echo"</td>"; |
66 | 66 | echo"</tr>"; |
67 | 67 | $no++; |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <? |
2 | 2 | session_start(); |
3 | 3 | if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else{ |
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | ?> |
@@ -41,27 +41,27 @@ discard block |
||
41 | 41 | |
42 | 42 | $id_module = $_GET['id_module']; |
43 | 43 | |
44 | - $id = isset($_GET['id_obat']) ? intval($_GET['id_obat']) : false; |
|
44 | + $id = isset($_GET['id_obat']) ? intval($_GET['id_obat']) : false; |
|
45 | 45 | |
46 | - if($id){ |
|
47 | - $query = mysql_query('SELECT * FROM obat WHERE id_obat = "'.$id.'"'); |
|
48 | - if($query && mysql_num_rows($query) == 1){ |
|
46 | + if($id){ |
|
47 | + $query = mysql_query('SELECT * FROM obat WHERE id_obat = "'.$id.'"'); |
|
48 | + if($query && mysql_num_rows($query) == 1){ |
|
49 | 49 | $data = mysql_fetch_object($query); |
50 | - }else |
|
50 | + }else |
|
51 | 51 | die('Data modul tidak ditemukan'); |
52 | - } |
|
52 | + } |
|
53 | 53 | |
54 | 54 | if ($_GET['igroup']) { |
55 | - $group = $_GET['igroup']; |
|
55 | + $group = $_GET['igroup']; |
|
56 | 56 | } else { |
57 | - $group = $data->id_obat; |
|
57 | + $group = $data->id_obat; |
|
58 | 58 | |
59 | 59 | } |
60 | 60 | |
61 | 61 | if ($_GET['imenu']) { |
62 | - $imenu = $_GET['imenu']; |
|
62 | + $imenu = $_GET['imenu']; |
|
63 | 63 | } else { |
64 | - $imenu = $data->id_modul; |
|
64 | + $imenu = $data->id_modul; |
|
65 | 65 | |
66 | 66 | } |
67 | 67 | |
@@ -89,14 +89,14 @@ discard block |
||
89 | 89 | <div class="col-md-6 col-sm-6 col-xs-12" > |
90 | 90 | <select name="satuan" class="form-control"> |
91 | 91 | <? |
92 | - $query = mysql_query('SELECT * FROM satuan ORDER BY satuan'); |
|
93 | - if($query && mysql_num_rows($query) > 0){ |
|
94 | - while($row = mysql_fetch_object($query)){ |
|
95 | - echo '<option value="'.$row->id_satuan.'"'; |
|
96 | - if($row->id_satuan == @$data->id_satuan) echo ' selected'; |
|
97 | - echo '>'.$row->satuan.'</option>'; |
|
98 | - } |
|
99 | - } |
|
92 | + $query = mysql_query('SELECT * FROM satuan ORDER BY satuan'); |
|
93 | + if($query && mysql_num_rows($query) > 0){ |
|
94 | + while($row = mysql_fetch_object($query)){ |
|
95 | + echo '<option value="'.$row->id_satuan.'"'; |
|
96 | + if($row->id_satuan == @$data->id_satuan) echo ' selected'; |
|
97 | + echo '>'.$row->satuan.'</option>'; |
|
98 | + } |
|
99 | + } |
|
100 | 100 | ?> |
101 | 101 | </select> |
102 | 102 | </div> |
@@ -64,13 +64,13 @@ |
||
64 | 64 | echo" <td style='text-align:center;'>"; |
65 | 65 | |
66 | 66 | if($r_edit == 'Y') { |
67 | - 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>"; |
|
68 | - } |
|
67 | + 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>"; |
|
68 | + } |
|
69 | 69 | |
70 | 70 | |
71 | - // if($r_delete == 'Y') { |
|
72 | - // 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>"; |
|
73 | - // } |
|
71 | + // if($r_delete == 'Y') { |
|
72 | + // 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>"; |
|
73 | + // } |
|
74 | 74 | echo"</td>"; |
75 | 75 | echo"</tr>"; |
76 | 76 | $no++; |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | session_start(); |
3 | 3 | if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else{ |
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | include "./../../config/fungsi_thumb.php"; |
@@ -18,14 +18,14 @@ discard block |
||
18 | 18 | |
19 | 19 | // Hapus modul |
20 | 20 | if ($module=='obat' AND $act=='hapus'){ |
21 | - $id = $_GET['id']; |
|
22 | - $id_module = $_GET['id_module']; |
|
21 | + $id = $_GET['id']; |
|
22 | + $id_module = $_GET['id_module']; |
|
23 | 23 | |
24 | - mysql_query("DELETE FROM ".$module." WHERE id_".$module." = $id"); |
|
24 | + mysql_query("DELETE FROM ".$module." WHERE id_".$module." = $id"); |
|
25 | 25 | |
26 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module); |
|
26 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module); |
|
27 | 27 | |
28 | - ?> |
|
28 | + ?> |
|
29 | 29 | |
30 | 30 | <script language="javascript"> |
31 | 31 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>"; |
@@ -34,16 +34,16 @@ discard block |
||
34 | 34 | |
35 | 35 | <?php |
36 | 36 | |
37 | - } |
|
37 | + } |
|
38 | 38 | |
39 | - // Input group |
|
39 | + // Input group |
|
40 | 40 | elseif ($module=='obat' AND $act=='input'){ |
41 | 41 | |
42 | - $id_module = $_POST['id_module']; |
|
42 | + $id_module = $_POST['id_module']; |
|
43 | 43 | |
44 | 44 | |
45 | - if($_POST['ID']){ |
|
46 | - mysql_query("UPDATE obat SET obat = '$_POST[obat]' |
|
45 | + if($_POST['ID']){ |
|
46 | + mysql_query("UPDATE obat SET obat = '$_POST[obat]' |
|
47 | 47 | ,id_satuan = '$_POST[satuan]' |
48 | 48 | ,jumlah = '$_POST[jumlah]' |
49 | 49 | ,upddt = '$datetime' |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | |
54 | 54 | |
55 | 55 | |
56 | - } else { |
|
57 | - mysql_query("INSERT INTO obat(obat |
|
56 | + } else { |
|
57 | + mysql_query("INSERT INTO obat(obat |
|
58 | 58 | ,id_satuan |
59 | 59 | ,jumlah |
60 | 60 | ,crtdt |
@@ -72,12 +72,12 @@ discard block |
||
72 | 72 | ,'$_POST[aktif]')"); |
73 | 73 | |
74 | 74 | |
75 | - } |
|
75 | + } |
|
76 | 76 | |
77 | 77 | |
78 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module); |
|
78 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module); |
|
79 | 79 | |
80 | - ?> |
|
80 | + ?> |
|
81 | 81 | |
82 | 82 | <script language="javascript"> |
83 | 83 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>"; |
@@ -54,19 +54,19 @@ |
||
54 | 54 | |
55 | 55 | echo"<tr>"; |
56 | 56 | echo"<td>$r[groups]</td>"; |
57 | - // echo"<td>$r[main_page]</td>"; |
|
57 | + // echo"<td>$r[main_page]</td>"; |
|
58 | 58 | // echo"<td>$r[tipe_sales]</td>"; |
59 | 59 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
60 | 60 | echo" <td style='text-align:center;'>"; |
61 | 61 | |
62 | 62 | if($r_edit == 'Y') { |
63 | - 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>"; |
|
64 | - } |
|
63 | + 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>"; |
|
64 | + } |
|
65 | 65 | |
66 | 66 | |
67 | - if($r_delete == 'Y') { |
|
68 | - 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>"; |
|
69 | - } |
|
67 | + if($r_delete == 'Y') { |
|
68 | + 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>"; |
|
69 | + } |
|
70 | 70 | echo"</td>"; |
71 | 71 | echo"</tr>"; |
72 | 72 | $no++; |