Passed
Pull Request — master (#7)
by Saepul
05:30 queued 50s
created
modul/mod_rujukan/rujukan.php 1 patch
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.