Passed
Push — master ( 25c5f3...d91862 )
by Saepul
07:05 queued 02:03
created

topmenu.php (1 issue)

1
2
<?php
3
include "config/koneksi.php";
4
5
6
$imodule = $_GET['module'];
7
$imenu  = $_GET['menu'];
8
$isub   = $_GET['sub'];
9
10
?>
11
12
13
<table cellpadding='0' cellspacing='0' width='100%'>
14
15
<tr>
16
<?
0 ignored issues
show
Security Best Practice introduced by
It is not recommended to use PHP's short opening tag <?, better use <?php, or <?= in case of outputting.

Short opening tags are disabled in PHP?s default configuration. In such a case, all content of this file is output verbatim to the browser without being parsed, or executed.

As a precaution to avoid these problems better use the long opening tag <?php.

Loading history...
17
$SQL=	"SELECT * FROM general_setting ";	
18
19
		$tampil=mysql_query($SQL);
20
								 
21
		$r=mysql_fetch_array($tampil);
22
23
		$nm_hotel = $r[hotel_name];
24
?>
25
<td width='90%'>
26
<div id='cssmenu'>
27
28
<ul>
29
	<li class='Aktif' style='font-weight:bold;color:#2969FF'><?php echo " .: ".$nm_hotel." :. " ?> &nbsp</li>
30
31
	
32
   <?php
33
34
   	$user = $_SESSION['userid'];
35
36
37
		  $sql=mysql_query("select * from modul where aktif='Y' order by urutan");
38
39
		 
40
	while ($r=mysql_fetch_array($sql)){  
41
	
42
	 if ($r[status_menu] == 'M' and !empty($r[link])) {  
43
		 echo "<li class='Aktif'><a href='$r[link]&menu=$r[nama_modul]'>$r[nama_modul]</a>";	    
44
	   
45
	  } else if ($r[status_menu] == 'M' and empty($r[link])) {  	
46
	  echo "<li class='Aktif'><a href='#'>$r[nama_modul]</a>";
47
	  
48
	  }
49
	
50
	echo"<ul>";
51
	
52
			$detil=mysql_query("select * from modul where parentid='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan"); 
53
		
54
		while ($d=mysql_fetch_array($detil)){  
55
56
		if ($d[is_form] == 'Y')	{
57
			echo"<li><a href='form/form_$d[link].php?width=850&height=600&module=$d[link]&imodule=$imodule&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' >$d[nama_modul]</a></li>"; 	 						
58
		} else {
59
			echo"<li><a href='$d[link]&menu=$r[nama_modul]&sub=$d[nama_modul]'>$d[nama_modul]</a></li>";
60
			
61
		}
62
		
63
		}
64
		
65
	echo"</ul>";	
66
	}  
67
  
68
  ?>
69
  
70
  
71
  
72
</li>
73
</ul>
74
75
</div>
76
</td>
77
78
</tr>
79
80
</table>