Issues (4542)

modul/mod_groupmodul/groupmodul.php (4 issues)

Severity
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='New <?php echo $nmmodule; ?>' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> New</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="Search By ...."  onclick="this.value=''"/>
26
                        </div>
27
                        <span class="details">
28
                           <div>Records <span id="startrecord"></span>-<span id="endrecord"></span> of <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 style='font-size:12px;'></th>
36
                                <th><h3 style='font-size:12px;'>Link</h3 style='font-size:12px;'></th>
37
                                <th width="50px;"><h3 style='font-size:12px;'>Active</h3 style='font-size:12px;'></th>
38
                                 <th class='nosort' width="100px" style='text-align:center;'>
39
                                    <h3 style='font-size:12px;'>Action</h3>
40
                                </th>                  
41
                            </tr>
42
                        </thead>
43
                        <tbody>
44
                         <?php
45
46
            $tampil = mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
0 ignored issues
show
Deprecated Code introduced by
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 ignore-deprecated  annotation

46
            $tampil = /** @scrutinizer ignore-deprecated */ mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b

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.

Loading history...
47
                       ON a.id_groups = b.id_groups
48
                       INNER JOIN modul c
49
                       ON a.id_modul = c.id_modul
50
                       WHERE c.status_menu = 'M'
51
                       ORDER BY a.id_groups,a.id_modul");
52
53
                $no = 1;
54
                                while ($r = mysql_fetch_array($tampil)) {
0 ignored issues
show
Deprecated Code introduced by
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 ignore-deprecated  annotation

54
                                while ($r = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($tampil)) {

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.

Loading history...
55
                                    echo'<tr>';
56
                                    echo"<td><b>$r[groups]</b></td>";
57
                                    echo"<td><b>$r[nama_modul]</b></td>";
58
                                    echo"<td style='text-align:center;'>$r[aktif]</td>";
59
                                    echo" <td  style='text-align:center;'>";
60
                                    if ($r_edit == 'Y') {
61
                                        echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groupmodul=$r[id_groupmodul]&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>";
62
                                    }
63
64
                                    if ($r_delete == 'Y') {
65
                                        echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groupmodul]&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
66
                                    }
67
68
                                    echo'</td>';
69
                                    echo'</tr>';
70
71
                                    $dtampil = mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
0 ignored issues
show
Deprecated Code introduced by
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 ignore-deprecated  annotation

71
                                    $dtampil = /** @scrutinizer ignore-deprecated */ mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b

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.

Loading history...
72
                       ON a.id_groups = b.id_groups
73
                       INNER JOIN modul c
74
                       ON a.id_modul = c.id_modul
75
                       WHERE c.status_menu = 'C'
76
                       AND c.parentid = '$r[id_modul]'
77
                       AND a.id_groups  = '$r[id_groups]'
78
                       ORDER BY a.id_groupmodul");
79
80
                                    while ($d = mysql_fetch_array($dtampil)) {
0 ignored issues
show
Deprecated Code introduced by
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 ignore-deprecated  annotation

80
                                    while ($d = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($dtampil)) {

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.

Loading history...
81
                                        echo'<tr>';
82
                                        echo'<td></td>';
83
                                        echo"<td>$d[nama_modul]</td>";
84
85
                                        echo"<td style='text-align:center;'>$d[aktif]</td>";
86
                                        echo"<td style='text-align:right;'>";
87
                                        if ($r_delete == 'Y') {
88
                                            echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_groupmodul]&id_module=$id' onClick=\"return confirm('Delete this record ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
89
                                        }
90
                                        echo'</td>';
91
92
                                        echo'</tr>';
93
                                    }
94
95
                                    $no++;
96
                                }
97
                                ?>
98
                         </tbody>
99
                    </table>
100
                  </div>
101
                    <div id="tablefooter">
102
                      <div id="tablenav">
103
                            <div>
104
                                <span class="glyphicon glyphicon-fast-backward" onclick="sorter.move(-1,true)" /></span>
105
                                <span class="glyphicon glyphicon-step-backward" onclick="sorter.move(-1)" /></span>
106
                                <span class="glyphicon glyphicon-step-forward" onclick="sorter.move(1)" /></span>
107
                                 <span  class="glyphicon glyphicon-fast-forward" onclick="sorter.move(1,true)" /></span>
108
                            </div>
109
                            <div>
110
                                <select id="pagedropdown" style="width:40px;"></select>
111
                            </div>
112
                           <!-- <div>
113
                                <a href="javascript:sorter.showall()">view all</a>
114
                            </div> -->
115
                        </div>
116
                       
117
                        <div id="tablelocation">
118
                            <div>
119
                                <select onchange="sorter.size(this.value)" style="width:50px;">
120
                                <option value="5">5</option>
121
                                    <option value="10" selected="selected">10</option>
122
                                    <option value="20">20</option>
123
                                    <option value="50">50</option>
124
                                    <option value="100">100</option>
125
                                </select>
126
                                <span>Entries Per Page</span> </div> <div>| Page <span id="currentpage"></span> of <span id="totalpages"></span> | &nbsp  </div>
127
                        </div>  
128
                    </div>
129
                </div>
130
                                </div>
131
                            </div>
132
                        </div>
133
134
                        <br />
135
                        <br />
136
                        <br />
137
               </div>
138
        </div>
139
140
    <?php
141
}
142
?>