103 |
- |
1 |
<?php echo showSectionHead($spTextPanel['Report Generation Logs']); ?>
|
|
|
2 |
<form id='search_form'>
|
|
|
3 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="search">
|
|
|
4 |
<tr>
|
|
|
5 |
<th><?php echo $spText['common']['Period']?>:</th>
|
|
|
6 |
<td>
|
|
|
7 |
<input type="text" value="<?php echo $fromTime?>" name="from_time"/>
|
|
|
8 |
<input type="text" value="<?php echo $toTime?>" name="to_time"/>
|
|
|
9 |
<script>
|
|
|
10 |
$(function() {
|
|
|
11 |
$( "input[name='from_time'], input[name='to_time']").datepicker({dateFormat: "yy-mm-dd"});
|
|
|
12 |
});
|
|
|
13 |
</script>
|
|
|
14 |
</td>
|
|
|
15 |
<th><?php echo $spText['common']['User']?>: </th>
|
|
|
16 |
<td>
|
|
|
17 |
<select name="user_id">
|
|
|
18 |
<option value="">-- <?php echo $spText['common']['Select']?> --</option>
|
|
|
19 |
<?php foreach($userList as $userInfo){?>
|
|
|
20 |
<?php if($userInfo['id'] == $userId){?>
|
|
|
21 |
<option value="<?php echo $userInfo['id']?>" selected><?php echo $userInfo['username']?></option>
|
|
|
22 |
<?php }else{?>
|
|
|
23 |
<option value="<?php echo $userInfo['id']?>"><?php echo $userInfo['username']?></option>
|
|
|
24 |
<?php }?>
|
|
|
25 |
<?php }?>
|
|
|
26 |
</select>
|
|
|
27 |
</td>
|
|
|
28 |
<td colspan="2">
|
|
|
29 |
<a href="javascript:void(0);" onclick="scriptDoLoadPost('reports.php', 'search_form', 'content', '&sec=report_gen_logs')" class="actionbut">
|
|
|
30 |
<?php echo $spText['button']['Show Records']?>
|
|
|
31 |
</a>
|
|
|
32 |
</td>
|
|
|
33 |
</tr>
|
|
|
34 |
</table>
|
|
|
35 |
</form>
|
|
|
36 |
|
|
|
37 |
<script type="text/javascript">
|
|
|
38 |
$(document).ready(function() {
|
|
|
39 |
$("table").tablesorter({
|
|
|
40 |
sortList: [[2,0]]
|
|
|
41 |
});
|
|
|
42 |
});
|
|
|
43 |
</script>
|
|
|
44 |
|
|
|
45 |
<br><br>
|
|
|
46 |
<b>Current Time:</b> <?php echo date("Y-m-d H:i:s <b>T(P)</b>"); ?>
|
|
|
47 |
<br><br>
|
|
|
48 |
<div id='subcontent'>
|
|
|
49 |
<table id="cust_tab" class="tablesorter">
|
|
|
50 |
<thead>
|
|
|
51 |
<tr class="listHead">
|
|
|
52 |
<th><?php echo $spText['common']['Id']?></th>
|
|
|
53 |
<th><?php echo $spText['common']['User']?></th>
|
|
|
54 |
<th><?php echo $spText['common']['User Type']?></th>
|
|
|
55 |
<th><?php echo $spTextUser['Expiry Date']?></th>
|
|
|
56 |
<?php foreach ($logDateList as $logDate) {?>
|
|
|
57 |
<th><?php echo $logDate?></th>
|
|
|
58 |
<?php }?>
|
|
|
59 |
</tr>
|
|
|
60 |
</thead>
|
|
|
61 |
<tbody>
|
|
|
62 |
<?php foreach ($logUserList as $i => $userInfo) {?>
|
|
|
63 |
<tr>
|
|
|
64 |
<td><?php echo $i + 1?></td>
|
|
|
65 |
<td><?php echo $userInfo['username']?></td>
|
|
|
66 |
<td><?php echo $userTypeList[$userInfo['utype_id']]['user_type']?></td>
|
|
|
67 |
<td><?php echo $userInfo['expiry_date']?></td>
|
|
|
68 |
<?php foreach ($logDateList as $logDate) {?>
|
|
|
69 |
<td>
|
|
|
70 |
<?php
|
|
|
71 |
echo !empty($logList[$logDate][$userInfo['id']]) ? "<font class='success'>{$spText['common']['Yes']}</font>" : "<font class='error'>{$spText['common']['No']}</font>";
|
|
|
72 |
?>
|
|
|
73 |
</td>
|
|
|
74 |
<?php }?>
|
|
|
75 |
</tr>
|
|
|
76 |
<?php }?>
|
|
|
77 |
</tbody>
|
|
|
78 |
</table>
|
|
|
79 |
</div>
|