@@ -3,51 +3,51 @@ discard block |
||
| 3 | 3 | include "config/koneksi.php"; |
| 4 | 4 | |
| 5 | 5 | |
| 6 | - if ($_SESSION['role']=='SA'){
|
|
| 6 | + if ($_SESSION['role']=='SA'){
|
|
| 7 | 7 | |
| 8 | 8 | $sql=mysql_query("select * from modul where aktif='Y' and status_menu = 'M' order by urutan");
|
| 9 | 9 | |
| 10 | 10 | $gjml = '1'; |
| 11 | - } else {
|
|
| 11 | + } else {
|
|
| 12 | 12 | |
| 13 | - $sql=mysql_query("select distinct c.* from groupmodul b
|
|
| 13 | + $sql=mysql_query("select distinct c.* from groupmodul b
|
|
| 14 | 14 | inner join modul c |
| 15 | 15 | on b.id_modul = c.id_modul |
| 16 | 16 | where b.id_groups = '$groups' and c.aktif='Y' and status_menu='M' |
| 17 | 17 | order by c.urutan"); |
| 18 | 18 | |
| 19 | - $gsql=mysql_query("select *
|
|
| 19 | + $gsql=mysql_query("select *
|
|
| 20 | 20 | from modul a inner join groupmodul b |
| 21 | 21 | on a.id_modul = b.id_modul |
| 22 | 22 | where link = 'general_setting' |
| 23 | 23 | and b.id_groups = '$groups' |
| 24 | 24 | "); |
| 25 | - $gjml = mysql_num_rows($gsql); |
|
| 25 | + $gjml = mysql_num_rows($gsql); |
|
| 26 | 26 | |
| 27 | 27 | |
| 28 | - } |
|
| 28 | + } |
|
| 29 | 29 | |
| 30 | 30 | |
| 31 | 31 | |
| 32 | - while ($r=mysql_fetch_array($sql)){
|
|
| 32 | + while ($r=mysql_fetch_array($sql)){
|
|
| 33 | 33 | |
| 34 | - if ($r[status_menu] == 'M' and !empty($r[link])) {
|
|
| 35 | - echo "<li><a href='$r[link]&id_module=$r[id_modul]'><i class='$r[icon]'></i> $r[nama_modul]</a>"; |
|
| 34 | + if ($r[status_menu] == 'M' and !empty($r[link])) {
|
|
| 35 | + echo "<li><a href='$r[link]&id_module=$r[id_modul]'><i class='$r[icon]'></i> $r[nama_modul]</a>"; |
|
| 36 | 36 | |
| 37 | - } else if ($r[status_menu] == 'M' and empty($r[link])) {
|
|
| 38 | - echo "<li><a href='#'><i class='$r[icon]'></i> $r[nama_modul] <span class='fa fa-chevron-down'></span></a>"; |
|
| 39 | - } |
|
| 37 | + } else if ($r[status_menu] == 'M' and empty($r[link])) {
|
|
| 38 | + echo "<li><a href='#'><i class='$r[icon]'></i> $r[nama_modul] <span class='fa fa-chevron-down'></span></a>"; |
|
| 39 | + } |
|
| 40 | 40 | |
| 41 | - echo'<ul class="nav child_menu" style="display: none">'; |
|
| 41 | + echo'<ul class="nav child_menu" style="display: none">'; |
|
| 42 | 42 | |
| 43 | - if ($_SESSION['role']=='SA'){
|
|
| 43 | + if ($_SESSION['role']=='SA'){
|
|
| 44 | 44 | |
| 45 | 45 | $detil=mysql_query("select * from modul where aktif='Y' and status_menu = 'C' and parentid = '$r[id_modul]' order by urutan");
|
| 46 | 46 | |
| 47 | 47 | |
| 48 | - } else {
|
|
| 48 | + } else {
|
|
| 49 | 49 | |
| 50 | - $detil=mysql_query("select distinct c.*
|
|
| 50 | + $detil=mysql_query("select distinct c.*
|
|
| 51 | 51 | from groupmodul b |
| 52 | 52 | inner join modul c |
| 53 | 53 | on b.id_modul = c.id_modul |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | and c.parentid = '$r[id_modul]' |
| 58 | 58 | order by c.urutan"); |
| 59 | 59 | |
| 60 | - } |
|
| 60 | + } |
|
| 61 | 61 | while ($d=mysql_fetch_array($detil)){
|
| 62 | 62 | |
| 63 | 63 | if ($d[is_form] == 'Y') {
|
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | echo"</ul>"; |
| 73 | - } |
|
| 73 | + } |
|
| 74 | 74 | |
| 75 | 75 | |
| 76 | 76 | |
@@ -15,11 +15,11 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | <?php |
| 17 | 17 | if ($_GET['userid']) {
|
| 18 | - $userid = $_GET['userid']; |
|
| 19 | - $module = $_GET['module']; |
|
| 18 | + $userid = $_GET['userid']; |
|
| 19 | + $module = $_GET['module']; |
|
| 20 | 20 | } else {
|
| 21 | - $userid = ''; |
|
| 22 | - $module = 'home'; |
|
| 21 | + $userid = ''; |
|
| 22 | + $module = 'home'; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | ?> |
@@ -48,14 +48,14 @@ discard block |
||
| 48 | 48 | <footer> |
| 49 | 49 | <br><br><br> |
| 50 | 50 | <?php |
| 51 | - $SQL = "SELECT* FROM versi WHERE status = 'A' "; |
|
| 52 | - $tampil=mysql_query($SQL); |
|
| 53 | - $p = mysql_fetch_array($tampil); |
|
| 51 | + $SQL = "SELECT* FROM versi WHERE status = 'A' "; |
|
| 52 | + $tampil=mysql_query($SQL); |
|
| 53 | + $p = mysql_fetch_array($tampil); |
|
| 54 | 54 | |
| 55 | - $app = $p['aplikasi']; |
|
| 55 | + $app = $p['aplikasi']; |
|
| 56 | 56 | |
| 57 | - $versi = $p['versi'];; |
|
| 58 | - ?> |
|
| 57 | + $versi = $p['versi'];; |
|
| 58 | + ?> |
|
| 59 | 59 | |
| 60 | 60 | <div class="wifi" style="font-size: 33px;"><?php echo $app;?></div> |
| 61 | 61 | <!-- <p class="copyright">Version : <?php echo $versi;?></p> --> |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | session_start(); |
| 3 | 3 | if (empty($_SESSION['userid']) AND empty($_SESSION['password'])){
|
| 4 | 4 | |
| 5 | - echo "<script>window.alert('Login first.'); window.location=('index.php')</script>";
|
|
| 5 | + echo "<script>window.alert('Login first.'); window.location=('index.php')</script>";
|
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | } else {
|
@@ -31,18 +31,18 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | |
| 34 | - $gsql=mysql_query("SELECT a.main_page,b.id_modul FROM groups a inner join modul b
|
|
| 34 | + $gsql=mysql_query("SELECT a.main_page,b.id_modul FROM groups a inner join modul b
|
|
| 35 | 35 | on a.main_page = b.link |
| 36 | 36 | WHERE id_groups ='$groups'"); |
| 37 | 37 | |
| 38 | - $g=mysql_fetch_array($gsql); |
|
| 38 | + $g=mysql_fetch_array($gsql); |
|
| 39 | 39 | |
| 40 | 40 | |
| 41 | - if ($g['main_page']) {
|
|
| 41 | + if ($g['main_page']) {
|
|
| 42 | 42 | $lmodule = $g['main_page'].'&id_module='.$g['id_modul']; |
| 43 | - } else {
|
|
| 44 | - $lmodule = 'main.php?module=home&id_module=11'; |
|
| 45 | - } |
|
| 43 | + } else {
|
|
| 44 | + $lmodule = 'main.php?module=home&id_module=11'; |
|
| 45 | + } |
|
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | $SQL= "SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = '1'"; |
@@ -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_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 | - } |
|
| 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 | - // } |
|
| 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 | 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_poli']) ? intval($_GET['id_poli']) : false; |
|
| 44 | + $id = isset($_GET['id_poli']) ? intval($_GET['id_poli']) : false; |
|
| 45 | 45 | |
| 46 | - if($id){
|
|
| 47 | - $query = mysql_query('SELECT * FROM poli WHERE id_poli = "'.$id.'"');
|
|
| 48 | - if($query && mysql_num_rows($query) == 1){
|
|
| 46 | + if($id){
|
|
| 47 | + $query = mysql_query('SELECT * FROM poli WHERE id_poli = "'.$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_poli; |
|
| 57 | + $group = $data->id_poli; |
|
| 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=='poli' 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=='poli' 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 poli SET poli = '$_POST[poli]'
|
|
| 45 | + if($_POST['ID']){
|
|
| 46 | + mysql_query("UPDATE poli SET poli = '$_POST[poli]'
|
|
| 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 poli(poli
|
|
| 55 | + } else {
|
|
| 56 | + mysql_query("INSERT INTO poli(poli
|
|
| 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";?>"; |
@@ -13,9 +13,9 @@ discard block |
||
| 13 | 13 | $fa_icon = $r['fa_icon']; |
| 14 | 14 | |
| 15 | 15 | if($r[orientation] == 'P') {
|
| 16 | - $orientation = 'portrait'; |
|
| 16 | + $orientation = 'portrait'; |
|
| 17 | 17 | } else {
|
| 18 | - $orientation = 'landscape'; |
|
| 18 | + $orientation = 'landscape'; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | |
@@ -163,12 +163,12 @@ discard block |
||
| 163 | 163 | |
| 164 | 164 | <? |
| 165 | 165 | $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
| 166 | - $g=mysql_fetch_array($gtampil); |
|
| 166 | + $g=mysql_fetch_array($gtampil); |
|
| 167 | 167 | |
| 168 | 168 | if ($g['pict']) {
|
| 169 | - $pict = $g['pict']; |
|
| 169 | + $pict = $g['pict']; |
|
| 170 | 170 | } else {
|
| 171 | - $pict = ''; |
|
| 171 | + $pict = ''; |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | $company = ucwords($g['company']); |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | |
| 210 | 210 | <? |
| 211 | 211 | |
| 212 | - $tampil=mysql_query("SELECT a.obat,b.satuan,a.jumlah,ifnull(sum(d.qty),0) as keluar
|
|
| 212 | + $tampil=mysql_query("SELECT a.obat,b.satuan,a.jumlah,ifnull(sum(d.qty),0) as keluar
|
|
| 213 | 213 | FROM obat a left join satuan b |
| 214 | 214 | ON a.id_satuan = b.id_satuan |
| 215 | 215 | left join kunjungan_berobat c |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | echo"</tr>"; |
| 242 | 242 | $no++; |
| 243 | 243 | |
| 244 | - } |
|
| 244 | + } |
|
| 245 | 245 | ?> |
| 246 | 246 | |
| 247 | 247 | <tfoot> |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $prd = date("Y-m");
|
| 65 | 65 | |
| 66 | 66 | $userid = $_SESSION['userid']; |
| 67 | - ?> |
|
| 67 | + ?> |
|
| 68 | 68 | |
| 69 | 69 | <div class=""> |
| 70 | 70 | |
@@ -115,12 +115,12 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | <? |
| 117 | 117 | |
| 118 | - $module = '?module='.$_GET['module']; |
|
| 119 | - $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
|
|
| 120 | - $r=mysql_fetch_array($tampil); |
|
| 118 | + $module = '?module='.$_GET['module']; |
|
| 119 | + $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
|
|
| 120 | + $r=mysql_fetch_array($tampil); |
|
| 121 | 121 | |
| 122 | - echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; |
|
| 123 | - echo"<input type='hidden' name='module' value=".$_GET[module].">"; |
|
| 122 | + echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; |
|
| 123 | + echo"<input type='hidden' name='module' value=".$_GET[module].">"; |
|
| 124 | 124 | ?> |
| 125 | 125 | </form> |
| 126 | 126 | |
@@ -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,37 +18,37 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | // Hapus modul |
| 20 | 20 | if ($module=='modul' AND $act=='hapus'){
|
| 21 | - $id_module = $_GET['id_module']; |
|
| 22 | - $id = $_GET['id']; |
|
| 21 | + $id_module = $_GET['id_module']; |
|
| 22 | + $id = $_GET['id']; |
|
| 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 | 26 | |
| 27 | - header('location:../../main.php?module='.$module.'&id_module='.$id_module);
|
|
| 27 | + header('location:../../main.php?module='.$module.'&id_module='.$id_module);
|
|
| 28 | 28 | |
| 29 | - } |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | 31 | // Input modul |
| 32 | 32 | elseif ($module=='modul' AND $act=='input'){
|
| 33 | 33 | |
| 34 | - if ($_POST['is_form'] == 'Y') {
|
|
| 34 | + if ($_POST['is_form'] == 'Y') {
|
|
| 35 | 35 | $link = $_POST['link']; |
| 36 | - } else {
|
|
| 36 | + } else {
|
|
| 37 | 37 | if ($_POST['link']) {
|
| 38 | - $link = '?module='.$_POST['link']; |
|
| 38 | + $link = '?module='.$_POST['link']; |
|
| 39 | 39 | } else {
|
| 40 | - $link = ''; |
|
| 40 | + $link = ''; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - } |
|
| 43 | + } |
|
| 44 | 44 | |
| 45 | - $icon = $_POST['icon']; |
|
| 45 | + $icon = $_POST['icon']; |
|
| 46 | 46 | |
| 47 | - $id_module = $_POST['id_module']; |
|
| 47 | + $id_module = $_POST['id_module']; |
|
| 48 | 48 | |
| 49 | 49 | |
| 50 | - if($_POST['ID']){
|
|
| 51 | - mysql_query("UPDATE modul SET nama_modul = '$_POST[nama_modul]',
|
|
| 50 | + if($_POST['ID']){
|
|
| 51 | + mysql_query("UPDATE modul SET nama_modul = '$_POST[nama_modul]',
|
|
| 52 | 52 | is_form = '$_POST[is_form]', |
| 53 | 53 | link = '$_POST[link]', |
| 54 | 54 | icon = '$_POST[icon]', |
@@ -58,9 +58,9 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | |
| 60 | 60 | |
| 61 | - } else {
|
|
| 61 | + } else {
|
|
| 62 | 62 | |
| 63 | - mysql_query("INSERT INTO modul(nama_modul,
|
|
| 63 | + mysql_query("INSERT INTO modul(nama_modul,
|
|
| 64 | 64 | link, |
| 65 | 65 | status_menu, |
| 66 | 66 | parentid, |
@@ -84,9 +84,9 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module);
|
|
| 87 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module);
|
|
| 88 | 88 | |
| 89 | - ?> |
|
| 89 | + ?> |
|
| 90 | 90 | |
| 91 | 91 | <script language="javascript"> |
| 92 | 92 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>"; |
@@ -99,24 +99,24 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | |
| 101 | 101 | elseif ($module=='modul' AND $act=='hapusmod'){
|
| 102 | - // membaca ID dari data yang akan dihapus |
|
| 103 | - $id = $_GET['id']; |
|
| 104 | - $id_module = $_GET['id_module']; |
|
| 102 | + // membaca ID dari data yang akan dihapus |
|
| 103 | + $id = $_GET['id']; |
|
| 104 | + $id_module = $_GET['id_module']; |
|
| 105 | 105 | |
| 106 | - mysql_query("DELETE a
|
|
| 106 | + mysql_query("DELETE a
|
|
| 107 | 107 | FROM business_group a LEFT JOIN modul b |
| 108 | 108 | ON a.id_source = b.id_modul |
| 109 | 109 | WHERE a.id_modul = '$id_module' |
| 110 | 110 | AND b.parentid = '$id'"); |
| 111 | - mysql_query("DELETE FROM business_group WHERE id_modul = '$id_module' AND id_source = '$id'");
|
|
| 111 | + mysql_query("DELETE FROM business_group WHERE id_modul = '$id_module' AND id_source = '$id'");
|
|
| 112 | 112 | |
| 113 | - mysql_query("DELETE FROM modul WHERE id_modul = '$id'");
|
|
| 114 | - mysql_query("DELETE FROM modul WHERE parentid = $id");
|
|
| 113 | + mysql_query("DELETE FROM modul WHERE id_modul = '$id'");
|
|
| 114 | + mysql_query("DELETE FROM modul WHERE parentid = $id");
|
|
| 115 | 115 | |
| 116 | 116 | |
| 117 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module);
|
|
| 117 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module);
|
|
| 118 | 118 | |
| 119 | - ?> |
|
| 119 | + ?> |
|
| 120 | 120 | |
| 121 | 121 | <script language="javascript"> |
| 122 | 122 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>"; |
@@ -129,24 +129,24 @@ discard block |
||
| 129 | 129 | |
| 130 | 130 | elseif ($module=='modul' AND $act=='subinput'){
|
| 131 | 131 | |
| 132 | - if ($_POST['is_form'] == 'Y') {
|
|
| 132 | + if ($_POST['is_form'] == 'Y') {
|
|
| 133 | 133 | $link = $_POST['link']; |
| 134 | - } else {
|
|
| 134 | + } else {
|
|
| 135 | 135 | if ($_POST['link']) {
|
| 136 | - $link = '?module='.$_POST['link']; |
|
| 136 | + $link = '?module='.$_POST['link']; |
|
| 137 | 137 | } else {
|
| 138 | - $link = ''; |
|
| 138 | + $link = ''; |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - } |
|
| 141 | + } |
|
| 142 | 142 | |
| 143 | - $icon = $_POST['icon']; |
|
| 143 | + $icon = $_POST['icon']; |
|
| 144 | 144 | |
| 145 | - $id_module = $_POST['id_module']; |
|
| 145 | + $id_module = $_POST['id_module']; |
|
| 146 | 146 | |
| 147 | 147 | |
| 148 | - if($_POST['ID']){
|
|
| 149 | - mysql_query("UPDATE modul SET nama_modul = '$_POST[nama_modul]',
|
|
| 148 | + if($_POST['ID']){
|
|
| 149 | + mysql_query("UPDATE modul SET nama_modul = '$_POST[nama_modul]',
|
|
| 150 | 150 | link = '$_POST[link]', |
| 151 | 151 | is_form = '$_POST[is_form]', |
| 152 | 152 | is_report = '$_POST[is_report]', |
@@ -158,9 +158,9 @@ discard block |
||
| 158 | 158 | |
| 159 | 159 | |
| 160 | 160 | |
| 161 | - } else {
|
|
| 161 | + } else {
|
|
| 162 | 162 | |
| 163 | - mysql_query("INSERT INTO modul(nama_modul,
|
|
| 163 | + mysql_query("INSERT INTO modul(nama_modul,
|
|
| 164 | 164 | link, |
| 165 | 165 | status_menu, |
| 166 | 166 | parentid, |
@@ -182,11 +182,11 @@ discard block |
||
| 182 | 182 | '$_POST[urutan]')"); |
| 183 | 183 | |
| 184 | 184 | |
| 185 | - } |
|
| 185 | + } |
|
| 186 | 186 | |
| 187 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module);
|
|
| 187 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module);
|
|
| 188 | 188 | |
| 189 | - ?> |
|
| 189 | + ?> |
|
| 190 | 190 | |
| 191 | 191 | <script language="javascript"> |
| 192 | 192 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>"; |