@@ -54,15 +54,15 @@ discard block |
||
54 | 54 | |
55 | 55 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
56 | 56 | echo"<td style='text-align:center;'>"; |
57 | - if ($r_input == 'Y') { |
|
57 | + if ($r_input=='Y') { |
|
58 | 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 | 59 | } |
60 | 60 | |
61 | - if ($r_edit == 'Y') { |
|
61 | + if ($r_edit=='Y') { |
|
62 | 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 | 63 | } |
64 | 64 | |
65 | - if ($r_delete == 'Y') { |
|
65 | + if ($r_delete=='Y') { |
|
66 | 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 | 67 | } |
68 | 68 | echo'</td>'; |
@@ -80,11 +80,11 @@ discard block |
||
80 | 80 | |
81 | 81 | echo"<td style='text-align:center;'>$d[aktif]</td>"; |
82 | 82 | echo" <td style='text-align:right;'>"; |
83 | - if ($r_edit == 'Y') { |
|
83 | + if ($r_edit=='Y') { |
|
84 | 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 | 85 | } |
86 | 86 | |
87 | - if ($r_delete == 'Y') { |
|
87 | + if ($r_delete=='Y') { |
|
88 | 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 | 89 | } |
90 | 90 | echo'</td>'; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | - error_reporting(0);session_start(); |
|
2 | + error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM modul WHERE id_modul = "'.$id.'"'); |
47 | - if ($query && mysql_num_rows($query) == 1) { |
|
47 | + if ($query && mysql_num_rows($query)==1) { |
|
48 | 48 | $data = mysql_fetch_object($query); |
49 | 49 | } else { |
50 | 50 | die('Data modul tidak ditemukan'); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | <?php if ($id) { |
94 | 94 | ?> |
95 | 95 | |
96 | - <?php if (@$data->is_form == 'Y') { |
|
96 | + <?php if (@$data->is_form=='Y') { |
|
97 | 97 | ?> |
98 | 98 | <div class="form-group"> |
99 | 99 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Is Form :</label> |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | <?php if ($id) { |
143 | 143 | ?> |
144 | 144 | |
145 | - <?php if (@$data->aktif == 'Y') { |
|
145 | + <?php if (@$data->aktif=='Y') { |
|
146 | 146 | ?> |
147 | 147 | <div class="form-group"> |
148 | 148 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -error_reporting(0);session_start(); |
|
2 | +error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | |
18 | 18 | // Hapus modul |
19 | - if ($module == 'modul' and $act == 'hapus') { |
|
19 | + if ($module=='modul' and $act=='hapus') { |
|
20 | 20 | $id_module = $_GET['id_module']; |
21 | 21 | $id = $_GET['id']; |
22 | 22 | |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | // Input modul |
29 | - elseif ($module == 'modul' and $act == 'input') { |
|
30 | - if ($_POST['is_form'] == 'Y') { |
|
29 | + elseif ($module=='modul' and $act=='input') { |
|
30 | + if ($_POST['is_form']=='Y') { |
|
31 | 31 | $link = $_POST['link']; |
32 | 32 | } else { |
33 | 33 | if ($_POST['link']) { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | </script> |
81 | 81 | |
82 | 82 | <?php |
83 | - } elseif ($module == 'modul' and $act == 'hapusmod') { |
|
83 | + } elseif ($module=='modul' and $act=='hapusmod') { |
|
84 | 84 | // membaca ID dari data yang akan dihapus |
85 | 85 | $id = $_GET['id']; |
86 | 86 | $id_module = $_GET['id_module']; |
@@ -103,8 +103,8 @@ discard block |
||
103 | 103 | </script> |
104 | 104 | |
105 | 105 | <?php |
106 | - } elseif ($module == 'modul' and $act == 'subinput') { |
|
107 | - if ($_POST['is_form'] == 'Y') { |
|
106 | + } elseif ($module=='modul' and $act=='subinput') { |
|
107 | + if ($_POST['is_form']=='Y') { |
|
108 | 108 | $link = $_POST['link']; |
109 | 109 | } else { |
110 | 110 | if ($_POST['link']) { |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | - error_reporting(0);session_start(); |
|
2 | + error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM modul WHERE id_modul = "'.$id.'"'); |
47 | - if ($query && mysql_num_rows($query) == 1) { |
|
47 | + if ($query && mysql_num_rows($query)==1) { |
|
48 | 48 | $data = mysql_fetch_object($query); |
49 | 49 | } else { |
50 | 50 | die('Data modul tidak ditemukan'); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | <?php if ($id) { |
97 | 97 | ?> |
98 | 98 | |
99 | - <?php if (@$data->is_form == 'Y') { |
|
99 | + <?php if (@$data->is_form=='Y') { |
|
100 | 100 | ?> |
101 | 101 | |
102 | 102 | <div class="form-group"> |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | <?php if ($id) { |
140 | 140 | ?> |
141 | 141 | |
142 | - <?php if (@$data->is_report == 'Y') { |
|
142 | + <?php if (@$data->is_report=='Y') { |
|
143 | 143 | ?> |
144 | 144 | |
145 | 145 | <div class="form-group"> |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | <?php if ($id) { |
193 | 193 | ?> |
194 | 194 | |
195 | - <?php if (@$data->aktif == 'Y') { |
|
195 | + <?php if (@$data->aktif=='Y') { |
|
196 | 196 | ?> |
197 | 197 | |
198 | 198 | <div class="form-group"> |
@@ -13,7 +13,7 @@ |
||
13 | 13 | // echo"modul/mod_$mod.php<br>"; |
14 | 14 | // |
15 | 15 | |
16 | - if (isset($_GET['module']) && $_GET['module'] == $mod) { |
|
16 | + if (isset($_GET['module']) && $_GET['module']==$mod) { |
|
17 | 17 | //include "modul/mod_$mod.php"; |
18 | 18 | include "modul/mod_$mod/$mod.php"; |
19 | 19 | } |