Passed
Push — master ( 3d9c29...b0d6c4 )
by Saepul
04:54
created

modul/mod_user_log/user_log.php (4 issues)

1
      
2
    <?php
3
switch ($_GET[act]) {
0 ignored issues
show
The constant act was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
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;'>Tgl. Aktivitas</h3></th>
36
                                <th><h3 style='font-size:12px;'>Pengguna</h3></th>
37
                                <th><h3 style='font-size:12px;'>IP</h3></th>
38
                                <th><h3 style='font-size:12px;'>Browser</h3></th>
39
                                <th><h3 style='font-size:12px;'>Aktivias</h3></th>   
40
                            </tr>
41
                        </thead>
42
                        <tbody>
43
                            
44
                         <?php
45
46
            $tampil = mysql_query('SELECT *
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 *

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
                                FROM user_log
48
                                 ORDER BY time ');
49
50
            $no = 1;
51
52
            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

52
            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...
53
                $waktu = date('d-M-Y H:i:s', strtotime($r[time]));
0 ignored issues
show
The constant time was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
54
                echo'<tr>';
55
                echo"<td>$waktu</td>";
56
                echo"<td>$r[id_user]</td>";
57
                echo"<td style='text-align:right;'>$r[ip]</td>";
58
                echo"<td style='text-align:left;'>$r[browser]</td>";
59
                echo"<td style='text-align:center;'>$r[log]</td>";
60
                echo'</tr>';
61
                $no++;
62
            }
63
                                ?>
64
                         </tbody>
65
                    </table>
66
                  </div>
67
                    <div id="tablefooter">
68
                      <div id="tablenav">
69
                            <div>
70
                                <span class="glyphicon glyphicon-fast-backward" onclick="sorter.move(-1,true)" /></span>
71
                                <span class="glyphicon glyphicon-step-backward" onclick="sorter.move(-1)" /></span>
72
                                <span class="glyphicon glyphicon-step-forward" onclick="sorter.move(1)" /></span>
73
                                 <span  class="glyphicon glyphicon-fast-forward" onclick="sorter.move(1,true)" /></span>
74
                            </div>
75
                            <div>
76
                                <select id="pagedropdown" style="width:40px;"></select>
77
                            </div>
78
                           <!-- <div>
79
                                <a href="javascript:sorter.showall()">view all</a>
80
                            </div> -->
81
                        </div>
82
                       
83
                        <div id="tablelocation">
84
                            <div>
85
                                <select onchange="sorter.size(this.value)" style="width:50px;">
86
                                <option value="5">5</option>
87
                                    <option value="10" selected="selected">10</option>
88
                                    <option value="20">20</option>
89
                                    <option value="50">50</option>
90
                                    <option value="100">100</option>
91
                                </select>
92
                                <span>Entries Per Page</span> </div> <div>| Page <span id="currentpage"></span> of <span id="totalpages"></span> | &nbsp  </div>
93
                        </div>  
94
                    </div>
95
                </div>
96
                                </div>
97
                            </div>
98
                        </div>
99
100
                        <br />
101
                        <br />
102
                        <br />
103
               </div>
104
        </div>
105
106
    <?php
107
}
108
?>