1 | |||||
2 | <?php |
||||
3 | switch (isset($_GET['act']) && $_GET['act']) { |
||||
4 | |||||
5 | default: |
||||
6 | ?> |
||||
7 | |||||
8 | <div class=""> |
||||
9 | |||||
10 | <div class="row"> |
||||
11 | |||||
12 | <div class="col-md-12 col-sm-12 col-xs-12"> |
||||
13 | <div class="x_panel"> |
||||
14 | <div class="x_title"> |
||||
15 | <h2><?php echo $nmmodule; ?></h2> |
||||
16 | <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=560&module=$module&id_module=$id_module&TB_iframe=true"; ?>' title='<?php echo $nmmodule; ?> Baru' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a></p> |
||||
17 | <div class="clearfix"></div> |
||||
18 | </div> |
||||
19 | <div class="x_content"> |
||||
20 | <div id="tablewrapper"> |
||||
21 | |||||
22 | <div id="tableheader"> |
||||
23 | |||||
24 | <div class="search"> <select id="columns" onchange="sorter.search('query')"></select> |
||||
25 | <input type="text" id="query" onkeyup="sorter.search('query');" value="Pencarian berdasarkan ...." onclick="this.value=''"/> |
||||
26 | </div> |
||||
27 | <span class="details"> |
||||
28 | <div>Arsip <span id="startrecord"></span>-<span id="endrecord"></span> dari <span id="totalrecords"></span></div> |
||||
29 | <!--<div><a href="javascript:sorter.reset()">reset</a></div>--> |
||||
30 | </span> |
||||
31 | </div> <div> |
||||
32 | <table cellpadding="0" cellspacing="0" border="0" id="table" class="table table-striped responsive-utilities jambo_table" > |
||||
33 | <thead> |
||||
34 | <tr> |
||||
35 | <th><h3 style='font-size:12px;'>Module</h3></th> |
||||
36 | <th><h3 style='font-size:12px;'>Link</h3></th> |
||||
37 | <th width="50px;"><h3 style='font-size:12px;'>Aktif</h3></th> |
||||
38 | <th class='nosort' width="100px" style='text-align:center;'> |
||||
39 | <h3 style='font-size:12px;'>Aksi</h3> |
||||
40 | </th> |
||||
41 | </tr> |
||||
42 | </thead> |
||||
43 | <tbody> |
||||
44 | |||||
45 | <?php |
||||
46 | |||||
47 | $tampil = mysql_query("SELECT * FROM modul WHERE status_menu = 'M' ORDER BY urutan ASC"); |
||||
0 ignored issues
–
show
|
|||||
48 | |||||
49 | $no = 1; |
||||
50 | while ($r = mysql_fetch_array($tampil)) { |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
51 | echo'<tr>'; |
||||
52 | echo"<td><b>$r[nama_modul]</b></td>"; |
||||
53 | echo"<td>$r[link]</td>"; |
||||
54 | |||||
55 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
||||
56 | echo"<td style='text-align:center;'>"; |
||||
57 | if ($r_input == 'Y') { |
||||
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 | } |
||||
60 | |||||
61 | if ($r_edit == 'Y') { |
||||
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 | } |
||||
64 | |||||
65 | if ($r_delete == 'Y') { |
||||
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 | } |
||||
68 | echo'</td>'; |
||||
69 | |||||
70 | echo'</tr>'; |
||||
71 | |||||
72 | $dtampil = mysql_query("SELECT * FROM modul |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
73 | WHERE status_menu = 'c' |
||||
74 | AND parentid = '$r[id_modul]' and aktif = 'Y' ORDER BY urutan ASC"); |
||||
75 | |||||
76 | while ($d = mysql_fetch_array($dtampil)) { |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
77 | echo'<tr>'; |
||||
78 | echo"<td style='padding-left:15px;'>$d[nama_modul]</td>"; |
||||
79 | echo"<td style='text-transform:lowercase;'>$d[link]</td>"; |
||||
80 | |||||
81 | echo"<td style='text-align:center;'>$d[aktif]</td>"; |
||||
82 | echo" <td style='text-align:right;'>"; |
||||
83 | if ($r_edit == 'Y') { |
||||
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 | } |
||||
86 | |||||
87 | if ($r_delete == 'Y') { |
||||
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 | } |
||||
90 | echo'</td>'; |
||||
91 | echo'</tr>'; |
||||
92 | } |
||||
93 | |||||
94 | $no++; |
||||
95 | } |
||||
96 | ?> |
||||
97 | </tbody> |
||||
98 | </table> |
||||
99 | </div> |
||||
100 | <div id="tablefooter"> |
||||
101 | <div id="tablenav"> |
||||
102 | <div> |
||||
103 | <span class="glyphicon glyphicon-fast-backward" onclick="sorter.move(-1,true)" /></span> |
||||
104 | <span class="glyphicon glyphicon-step-backward" onclick="sorter.move(-1)" /></span> |
||||
105 | <span class="glyphicon glyphicon-step-forward" onclick="sorter.move(1)" /></span> |
||||
106 | <span class="glyphicon glyphicon-fast-forward" onclick="sorter.move(1,true)" /></span> |
||||
107 | </div> |
||||
108 | <div> |
||||
109 | <select id="pagedropdown" style="width:40px;"></select> |
||||
110 | </div> |
||||
111 | <!-- <div> |
||||
112 | <a href="javascript:sorter.showall()">view all</a> |
||||
113 | </div> --> |
||||
114 | </div> |
||||
115 | |||||
116 | <div id="tablelocation"> |
||||
117 | <div> |
||||
118 | <select onchange="sorter.size(this.value)" style="width:50px;"> |
||||
119 | <option value="5">5</option> |
||||
120 | <option value="10" selected="selected">10</option> |
||||
121 | <option value="20">20</option> |
||||
122 | <option value="50">50</option> |
||||
123 | <option value="100">100</option> |
||||
124 | </select> |
||||
125 | <span>Arsip Per Halaman</span> </div> <div>| Halaman <span id="currentpage"></span> dari <span id="totalpages"></span> |   </div> |
||||
126 | </div> |
||||
127 | </div> |
||||
128 | </div> |
||||
129 | </div> |
||||
130 | </div> |
||||
131 | </div> |
||||
132 | |||||
133 | <br /> |
||||
134 | <br /> |
||||
135 | <br /> |
||||
136 | </div> |
||||
137 | </div> |
||||
138 | |||||
139 | <?php |
||||
140 | } |
||||
141 | ?> |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.