-
Notifications
You must be signed in to change notification settings - Fork 49
/
logs.php
103 lines (71 loc) · 3.71 KB
/
logs.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php include_once( 'header.php' ); ?>
<form method="post" action="<?php URL::out('admin', array( 'page' => 'logs' ) ); ?>" class="buttonform">
<div class="container navigator">
<span class="older pct10"><a href="#" onclick="timeline.skipLoupeLeft();return false">« <?php _e('Older'); ?></a></span>
<span class="currentposition pct15 minor"><?php _e('0-0 of 0'); ?></span>
<span class="search pct50"><input type="search" name='search' placeholder="<?php _e('Type and wait to search any log entry component'); ?>" value="<?php echo htmlspecialchars($search); ?>"></span>
<span class="nothing pct15"> </span>
<span class="newer pct10"><a href="#" onclick="timeline.skipLoupeRight();return false"><?php _e('Newer'); ?> »</a></span>
<?php if(isset($years)) { ?><div class="timeline">
<div class="years">
<?php $theme->display( 'timeline_items' )?>
</div>
<div class="track">
<div class="handle">
<span class="resizehandleleft"></span>
<span class="resizehandleright"></span>
</div>
</div>
</div><?php } ?>
</div>
<div class="container">
<div class="head clear">
<span class="checkbox pct5"> </span>
<span class="time pct15"><?php _e('Date & Time'); ?></span>
<span class="user pct15"><?php _e('User'); ?></span>
<span class="ip pct10"><?php _e('IP'); ?></span>
<span class="module pct10"><?php _e('Module'); ?></span>
<span class="type pct10"><?php _e('Type'); ?></span>
<span class="severity pct5"><?php _e('Severity'); ?></span>
<span class="message pct30"><?php _e('Message'); ?></span>
</div>
<div class="item clear">
<span class="pct5"> </span>
<span class="pct15"><?php echo Utils::html_select('date', $dates, $date, array( 'class'=>'pct90')); ?></span>
<span class="pct15"><?php echo Utils::html_select('user', $users, $user, array( 'class'=>'pct90')); ?></span>
<span class="pct10"><?php echo Utils::html_select('address', $addresses, $address, array( 'class'=>'pct90')); ?></span>
<span class="pct10"><?php echo Utils::html_select('module', $modules, $module, array( 'class'=>'pct90')); ?></span>
<span class="pct10"><?php echo Utils::html_select('type', $types, $type, array( 'class'=>'pct90')); ?></span>
<span class="pct5"><?php echo Utils::html_select('severity', $severities, $severity, array( 'class'=>'pct90')); ?></span>
<span class="pct30"><input type="submit" name="filter" value="<?php _e('Filter'); ?>"></span>
</div>
<?php if(isset($years)) { ?>
<div class="manage logs">
<?php $theme->display('logs_items'); ?>
</div>
<?php } else { ?>
<div class="item clear">
<span class="pct5"> </span><span class="pct90"><?php _e('There are no logs to be displayed at this time.'); ?></span><span class="pct5"> </span>
</div>
<?php } ?>
</div>
<?php if(isset($years)) { ?><div class="container transparent">
<div class="item controls">
<span class="checkboxandselected pct40">
<input type="checkbox" id="master_checkbox" name="master_checkbox">
<label class="selectedtext minor none" for="master_checkbox"><?php _e('None selected'); ?></label>
</span>
<input type="hidden" name="nonce" id="nonce" value="<?php echo $wsse['nonce']; ?>">
<input type="hidden" name="timestamp" id="timestamp" value="<?php echo $wsse['timestamp']; ?>">
<input type="hidden" name="PasswordDigest" id="PasswordDigest" value="<?php echo $wsse['digest']; ?>">
<input type="button" value="<?php _e('Delete'); ?>" class="button delete">
</div>
</div><?php } ?>
</form>
<script type="text/javascript">
itemManage.updateURL = habari.url.ajaxLogDelete;
itemManage.fetchURL = "<?php echo URL::get('admin_ajax', array('context' => 'logs')) ?>";
itemManage.fetchReplace = $('.logs');
itemManage.inEdit = false;
</script>
<?php include('footer.php'); ?>