Issues (4542)

modul/mod_groups/groups.php (2 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;'>Group</h3></th>
36
                                <!--<th><h3 style='font-size:12px;'>Halaman Utama</h3></th>
37
                                 <th><h3 style='font-size:12px;'>Tipe Sales</h3></th> -->
38
                                <th width="50px;"><h3 style='font-size:12px;'>Aktif</h3></th>   
39
                                <th class='nosort' width="100px" style='text-align:center;'>
40
                                    <h3 style='font-size:12px;'>Aksi</h3>
41
                                </th>                              
42
                            </tr>
43
                        </thead>
44
                        <tbody>
45
                            
46
                         <?php
47
48
            $tampil = mysql_query('SELECT * FROM groups a 
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

48
            $tampil = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT * FROM groups a 

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...
49
                                 ORDER BY id_groups');
50
51
            $no = 1;
52
53
            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

53
            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...
54
                echo'<tr>';
55
                echo"<td>$r[groups]</td>";
56
                // echo"<td>$r[main_page]</td>";
57
                // echo"<td>$r[tipe_sales]</td>";
58
                echo"<td style='text-align:center;'>$r[aktif]</td>";
59
                echo" <td  style='text-align:center;'>";
60
61
                if ($r_edit == 'Y') {
62
                    echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groups=$r[id_groups]&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=hapus&id=$r[id_groups]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
67
                }
68
                echo'</td>';
69
                echo'</tr>';
70
                $no++;
71
            }
72
                                ?>
73
                         </tbody>
74
                    </table>
75
                  </div>
76
                    <div id="tablefooter">
77
                      <div id="tablenav">
78
                            <div>
79
                                <span class="glyphicon glyphicon-fast-backward" onclick="sorter.move(-1,true)" /></span>
80
                                <span class="glyphicon glyphicon-step-backward" onclick="sorter.move(-1)" /></span>
81
                                <span class="glyphicon glyphicon-step-forward" onclick="sorter.move(1)" /></span>
82
                                 <span  class="glyphicon glyphicon-fast-forward" onclick="sorter.move(1,true)" /></span>
83
                            </div>
84
                            <div>
85
                                <select id="pagedropdown" style="width:40px;"></select>
86
                            </div>
87
                           <!-- <div>
88
                                <a href="javascript:sorter.showall()">view all</a>
89
                            </div> -->
90
                        </div>
91
                       
92
                        <div id="tablelocation">
93
                            <div>
94
                                <select onchange="sorter.size(this.value)" style="width:50px;">
95
                                <option value="5">5</option>
96
                                    <option value="10" selected="selected">10</option>
97
                                    <option value="20">20</option>
98
                                    <option value="50">50</option>
99
                                    <option value="100">100</option>
100
                                </select>
101
                                <span>Entries Per Page</span> </div> <div>| Page <span id="currentpage"></span> of <span id="totalpages"></span> | &nbsp  </div>
102
                        </div>  
103
                    </div>
104
                </div>
105
                                </div>
106
                            </div>
107
                        </div>
108
109
                        <br />
110
                        <br />
111
                        <br />
112
               </div>
113
        </div>
114
115
    <?php
116
}
117
?>