@@ -52,12 +52,10 @@ |
||
| 52 | 52 | if ( $file == "." || $file == ".." || $file == ".DS_Store" ) |
| 53 | 53 | { |
| 54 | 54 | continue; |
| 55 | - } |
|
| 56 | - else if ( is_dir( $path.'/'.$file ) ) |
|
| 55 | + } else if ( is_dir( $path.'/'.$file ) ) |
|
| 57 | 56 | { |
| 58 | 57 | fnReadDir( $aReturn, $path.'/'.$file ); |
| 59 | - } |
|
| 60 | - else |
|
| 58 | + } else |
|
| 61 | 59 | { |
| 62 | 60 | array_push( $aReturn, $path.'/'.$file ); |
| 63 | 61 | } |
@@ -113,7 +113,9 @@ discard block |
||
| 113 | 113 | if($query && mysql_num_rows($query) > 0){
|
| 114 | 114 | while($row = mysql_fetch_object($query)){
|
| 115 | 115 | echo '<option value="'.$row->id_tipe_barang.'"'; |
| 116 | - if($row->id_tipe_barang == $tipe_barang) echo ' selected'; |
|
| 116 | + if($row->id_tipe_barang == $tipe_barang) {
|
|
| 117 | + echo ' selected'; |
|
| 118 | + } |
|
| 117 | 119 | echo '>'.$row->tipe_barang.'</option>'; |
| 118 | 120 | } |
| 119 | 121 | } |
@@ -128,7 +130,9 @@ discard block |
||
| 128 | 130 | if($query && mysql_num_rows($query) > 0){
|
| 129 | 131 | while($row = mysql_fetch_object($query)){
|
| 130 | 132 | echo '<option value="'.$row->id_outlet.'"'; |
| 131 | - if($row->id_outlet == $outlet) echo ' selected'; |
|
| 133 | + if($row->id_outlet == $outlet) {
|
|
| 134 | + echo ' selected'; |
|
| 135 | + } |
|
| 132 | 136 | echo '>'.$row->outlet.'</option>'; |
| 133 | 137 | } |
| 134 | 138 | } |
@@ -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,31 +43,31 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | <? |
| 45 | 45 | |
| 46 | - $tampil=mysql_query("SELECT * FROM poli ORDER BY id_poli");
|
|
| 46 | + $tampil=mysql_query("SELECT * FROM poli ORDER BY id_poli");
|
|
| 47 | 47 | |
| 48 | - $no = 1; |
|
| 48 | + $no = 1; |
|
| 49 | 49 | |
| 50 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 50 | + while ($r=mysql_fetch_array($tampil)){
|
|
| 51 | 51 | |
| 52 | - echo"<tr>"; |
|
| 53 | - echo"<td>$r[poli]</td>"; |
|
| 54 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
| 55 | - echo" <td style='text-align:center;'>"; |
|
| 52 | + echo"<tr>"; |
|
| 53 | + echo"<td>$r[poli]</td>"; |
|
| 54 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
| 55 | + echo" <td style='text-align:center;'>"; |
|
| 56 | 56 | |
| 57 | - if($r_edit == 'Y') {
|
|
| 58 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_poli=$r[id_poli]&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 | - } |
|
| 57 | + if($r_edit == 'Y') {
|
|
| 58 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_poli=$r[id_poli]&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_poli]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 64 | - // } |
|
| 65 | - echo"</td>"; |
|
| 66 | - echo"</tr>"; |
|
| 67 | - $no++; |
|
| 62 | + // if($r_delete == 'Y') {
|
|
| 63 | + // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_poli]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 64 | + // } |
|
| 65 | + echo"</td>"; |
|
| 66 | + echo"</tr>"; |
|
| 67 | + $no++; |
|
| 68 | 68 | |
| 69 | - } |
|
| 70 | - ?> |
|
| 69 | + } |
|
| 70 | + ?> |
|
| 71 | 71 | </tbody> |
| 72 | 72 | </table> |
| 73 | 73 | </div> |
@@ -47,8 +47,9 @@ discard block |
||
| 47 | 47 | $query = mysql_query('SELECT * FROM poli WHERE id_poli = "'.$id.'"');
|
| 48 | 48 | if($query && mysql_num_rows($query) == 1){
|
| 49 | 49 | $data = mysql_fetch_object($query); |
| 50 | - }else |
|
| 51 | - die('Data modul tidak ditemukan');
|
|
| 50 | + } else {
|
|
| 51 | + die('Data modul tidak ditemukan');
|
|
| 52 | + } |
|
| 52 | 53 | } |
| 53 | 54 | |
| 54 | 55 | if ($_GET['igroup']) {
|
@@ -94,7 +95,7 @@ discard block |
||
| 94 | 95 | <input type=radio name='aktif' value='N' class="flat"> T |
| 95 | 96 | </div> |
| 96 | 97 | </div> |
| 97 | - <?php }else{ ?>
|
|
| 98 | + <?php } else{ ?>
|
|
| 98 | 99 | |
| 99 | 100 | <div class="form-group"> |
| 100 | 101 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -105,7 +106,7 @@ discard block |
||
| 105 | 106 | </div> |
| 106 | 107 | <?php } ?> |
| 107 | 108 | |
| 108 | - <?php }else{ ?>
|
|
| 109 | + <?php } else{ ?>
|
|
| 109 | 110 | |
| 110 | 111 | |
| 111 | 112 | <div class="form-group"> |
@@ -95,10 +95,7 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | <?php |
| 97 | 97 | |
| 98 | -} |
|
| 99 | - |
|
| 100 | - |
|
| 101 | -elseif ($module=='modul' AND $act=='hapusmod'){
|
|
| 98 | +} elseif ($module=='modul' AND $act=='hapusmod'){
|
|
| 102 | 99 | // membaca ID dari data yang akan dihapus |
| 103 | 100 | $id = $_GET['id']; |
| 104 | 101 | $id_module = $_GET['id_module']; |
@@ -125,9 +122,7 @@ discard block |
||
| 125 | 122 | |
| 126 | 123 | <?php |
| 127 | 124 | |
| 128 | -} |
|
| 129 | - |
|
| 130 | -elseif ($module=='modul' AND $act=='subinput'){
|
|
| 125 | +} elseif ($module=='modul' AND $act=='subinput'){
|
|
| 131 | 126 | |
| 132 | 127 | if ($_POST['is_form'] == 'Y') {
|
| 133 | 128 | $link = $_POST['link']; |
@@ -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,63 +44,63 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | <? |
| 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 | 55 | |
| 56 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
| 57 | - echo"<td style='text-align:center;'>"; |
|
| 58 | - if($r_input == 'Y') {
|
|
| 59 | - 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>"; |
|
| 60 | - } |
|
| 56 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
| 57 | + echo"<td style='text-align:center;'>"; |
|
| 58 | + if($r_input == 'Y') {
|
|
| 59 | + 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>"; |
|
| 60 | + } |
|
| 61 | 61 | |
| 62 | - if($r_edit == 'Y') {
|
|
| 63 | - 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>"; |
|
| 64 | - } |
|
| 62 | + if($r_edit == 'Y') {
|
|
| 63 | + 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>"; |
|
| 64 | + } |
|
| 65 | 65 | |
| 66 | 66 | |
| 67 | - if($r_delete == 'Y') {
|
|
| 68 | - 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>";
|
|
| 69 | - } |
|
| 70 | - echo"</td>"; |
|
| 67 | + if($r_delete == 'Y') {
|
|
| 68 | + 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>";
|
|
| 69 | + } |
|
| 70 | + echo"</td>"; |
|
| 71 | 71 | |
| 72 | - echo"</tr>"; |
|
| 72 | + echo"</tr>"; |
|
| 73 | 73 | |
| 74 | - $dtampil=mysql_query("SELECT * FROM modul
|
|
| 74 | + $dtampil=mysql_query("SELECT * FROM modul
|
|
| 75 | 75 | WHERE status_menu = 'c' |
| 76 | 76 | AND parentid = '$r[id_modul]' and aktif = 'Y' ORDER BY urutan ASC"); |
| 77 | 77 | |
| 78 | 78 | |
| 79 | - while ($d=mysql_fetch_array($dtampil)){
|
|
| 79 | + while ($d=mysql_fetch_array($dtampil)){
|
|
| 80 | 80 | |
| 81 | 81 | |
| 82 | - echo"<tr>"; |
|
| 83 | - echo"<td style='padding-left:15px;'>$d[nama_modul]</td>"; |
|
| 84 | - echo"<td style='text-transform:lowercase;'>$d[link]</td>"; |
|
| 82 | + echo"<tr>"; |
|
| 83 | + echo"<td style='padding-left:15px;'>$d[nama_modul]</td>"; |
|
| 84 | + echo"<td style='text-transform:lowercase;'>$d[link]</td>"; |
|
| 85 | 85 | |
| 86 | - echo"<td style='text-align:center;'>$d[aktif]</td>"; |
|
| 87 | - echo" <td style='text-align:right;'>"; |
|
| 88 | - if($r_edit == 'Y') {
|
|
| 89 | - 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>"; |
|
| 90 | - } |
|
| 86 | + echo"<td style='text-align:center;'>$d[aktif]</td>"; |
|
| 87 | + echo" <td style='text-align:right;'>"; |
|
| 88 | + if($r_edit == 'Y') {
|
|
| 89 | + 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>"; |
|
| 90 | + } |
|
| 91 | 91 | |
| 92 | - if($r_delete == 'Y') {
|
|
| 93 | - 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>";
|
|
| 94 | - } |
|
| 95 | - echo"</td>"; |
|
| 96 | - echo"</tr>"; |
|
| 92 | + if($r_delete == 'Y') {
|
|
| 93 | + 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>";
|
|
| 94 | + } |
|
| 95 | + echo"</td>"; |
|
| 96 | + echo"</tr>"; |
|
| 97 | 97 | |
| 98 | - } |
|
| 98 | + } |
|
| 99 | 99 | |
| 100 | - $no++; |
|
| 100 | + $no++; |
|
| 101 | 101 | |
| 102 | - } |
|
| 103 | - ?> |
|
| 102 | + } |
|
| 103 | + ?> |
|
| 104 | 104 | </tbody> |
| 105 | 105 | </table> |
| 106 | 106 | </div> |
@@ -47,8 +47,9 @@ discard block |
||
| 47 | 47 | $query = mysql_query('SELECT * FROM modul WHERE id_modul = "'.$id.'"');
|
| 48 | 48 | if($query && mysql_num_rows($query) == 1){
|
| 49 | 49 | $data = mysql_fetch_object($query); |
| 50 | - }else |
|
| 51 | - die('Data modul tidak ditemukan');
|
|
| 50 | + } else {
|
|
| 51 | + die('Data modul tidak ditemukan');
|
|
| 52 | + } |
|
| 52 | 53 | } |
| 53 | 54 | |
| 54 | 55 | if ($_GET['igroup']) {
|
@@ -105,7 +106,7 @@ discard block |
||
| 105 | 106 | <input type=radio name='is_form' value='N' class="flat"> T |
| 106 | 107 | </div> |
| 107 | 108 | </div> |
| 108 | - <?php }else{ ?>
|
|
| 109 | + <?php } else{ ?>
|
|
| 109 | 110 | <div class="form-group"> |
| 110 | 111 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Is Form :</label> |
| 111 | 112 | <div class="col-md-6 col-sm-6 col-xs-12"> |
@@ -115,7 +116,7 @@ discard block |
||
| 115 | 116 | </div> |
| 116 | 117 | <?php } ?> |
| 117 | 118 | |
| 118 | - <?php }else{ ?>
|
|
| 119 | + <?php } else{ ?>
|
|
| 119 | 120 | |
| 120 | 121 | <div class="form-group"> |
| 121 | 122 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Is Form :</label> |
@@ -146,7 +147,7 @@ discard block |
||
| 146 | 147 | <input type=radio name='aktif' value='N' class="flat"> T |
| 147 | 148 | </div> |
| 148 | 149 | </div> |
| 149 | - <?php }else{ ?>
|
|
| 150 | + <?php } else{ ?>
|
|
| 150 | 151 | <div class="form-group"> |
| 151 | 152 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
| 152 | 153 | <div class="col-md-6 col-sm-6 col-xs-12"> |
@@ -156,7 +157,7 @@ discard block |
||
| 156 | 157 | </div> |
| 157 | 158 | <?php } ?> |
| 158 | 159 | |
| 159 | - <?php }else{ ?>
|
|
| 160 | + <?php } else{ ?>
|
|
| 160 | 161 | |
| 161 | 162 | <div class="form-group"> |
| 162 | 163 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -47,8 +47,9 @@ discard block |
||
| 47 | 47 | $query = mysql_query('SELECT * FROM modul WHERE id_modul = "'.$id.'"');
|
| 48 | 48 | if($query && mysql_num_rows($query) == 1){
|
| 49 | 49 | $data = mysql_fetch_object($query); |
| 50 | - }else |
|
| 51 | - die('Data modul tidak ditemukan');
|
|
| 50 | + } else {
|
|
| 51 | + die('Data modul tidak ditemukan');
|
|
| 52 | + } |
|
| 52 | 53 | } |
| 53 | 54 | |
| 54 | 55 | if ($_GET['igroup']) {
|
@@ -109,7 +110,7 @@ discard block |
||
| 109 | 110 | <input type=radio name='is_form' value='N' class="flat"> T |
| 110 | 111 | </div> |
| 111 | 112 | </div> |
| 112 | - <?php }else{ ?>
|
|
| 113 | + <?php } else{ ?>
|
|
| 113 | 114 | |
| 114 | 115 | <div class="form-group"> |
| 115 | 116 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Is Form :</label> |
@@ -120,7 +121,7 @@ discard block |
||
| 120 | 121 | </div> |
| 121 | 122 | <?php } ?> |
| 122 | 123 | |
| 123 | - <?php }else{ ?>
|
|
| 124 | + <?php } else{ ?>
|
|
| 124 | 125 | |
| 125 | 126 | |
| 126 | 127 | <div class="form-group"> |
@@ -144,7 +145,7 @@ discard block |
||
| 144 | 145 | <input type=radio name='is_report' value='N' class="flat"> T |
| 145 | 146 | </div> |
| 146 | 147 | </div> |
| 147 | - <?php }else{ ?>
|
|
| 148 | + <?php } else{ ?>
|
|
| 148 | 149 | |
| 149 | 150 | <div class="form-group"> |
| 150 | 151 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Is Report :</label> |
@@ -155,7 +156,7 @@ discard block |
||
| 155 | 156 | </div> |
| 156 | 157 | <?php } ?> |
| 157 | 158 | |
| 158 | - <?php }else{ ?>
|
|
| 159 | + <?php } else{ ?>
|
|
| 159 | 160 | |
| 160 | 161 | |
| 161 | 162 | <div class="form-group"> |
@@ -189,7 +190,7 @@ discard block |
||
| 189 | 190 | <input type=radio name='aktif' value='N' class="flat"> T |
| 190 | 191 | </div> |
| 191 | 192 | </div> |
| 192 | - <?php }else{ ?>
|
|
| 193 | + <?php } else{ ?>
|
|
| 193 | 194 | |
| 194 | 195 | <div class="form-group"> |
| 195 | 196 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -200,7 +201,7 @@ discard block |
||
| 200 | 201 | </div> |
| 201 | 202 | <?php } ?> |
| 202 | 203 | |
| 203 | - <?php }else{ ?>
|
|
| 204 | + <?php } else{ ?>
|
|
| 204 | 205 | |
| 205 | 206 | |
| 206 | 207 | <div class="form-group"> |
@@ -2,19 +2,19 @@ discard block |
||
| 2 | 2 | <?php |
| 3 | 3 | switch($_GET[act]){
|
| 4 | 4 | |
| 5 | -default: |
|
| 5 | + default: |
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | - $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
|
| 9 | - $g=mysql_fetch_array($gtampil); |
|
| 8 | + $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
|
| 9 | + $g=mysql_fetch_array($gtampil); |
|
| 10 | 10 | |
| 11 | -if ($g['pict']) {
|
|
| 12 | - $pict = $g['pict']; |
|
| 11 | + if ($g['pict']) {
|
|
| 12 | + $pict = $g['pict']; |
|
| 13 | 13 | } else {
|
| 14 | - $pict = ''; |
|
| 14 | + $pict = ''; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | -?> |
|
| 17 | + ?> |
|
| 18 | 18 | <div class="col-md-12 col-sm-12 col-xs-12 "> |
| 19 | 19 | <div class="x_panel"> |
| 20 | 20 | <div class="x_title"> |
@@ -28,6 +28,6 @@ discard block |
||
| 28 | 28 | </div> |
| 29 | 29 | </div> |
| 30 | 30 | <? |
| 31 | -//} |
|
| 31 | + //} |
|
| 32 | 32 | } |
| 33 | 33 | ?> |
| 34 | 34 | \ No newline at end of file |