You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
3.8 KiB
PHP
99 lines
3.8 KiB
PHP
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>信息平台</title>
|
|
<link rel="stylesheet" href="/css/information-system3.css" type="text/css" />
|
|
<link rel="stylesheet" href="/css/bootstrap-datetimepicker.min.css" type="text/css" />
|
|
<script type="text/javascript" src="/js/jquery.js"></script>
|
|
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="/js/bootstrap-datetimepicker.min.js"></script>
|
|
<script type="text/javascript">
|
|
function tmp(data) {
|
|
data_json = JSON.parse(data);
|
|
var html_s = "<ol>";
|
|
for (item in data_json.success_url) {
|
|
html_s += "<li>"+data_json.success_url[item]+"</li>";
|
|
}
|
|
html_s += "</ol>";
|
|
var html_f = "<ol>";
|
|
for (itemf in data_json.failure_url) {
|
|
html_f += "<li>"+data_json.failure_url[itemf]+"</li>";
|
|
}
|
|
html_f += "</ol>";
|
|
$("#failure_cnt").html(data_json.failure_cnt);
|
|
$("#success_cnt").html(data_json.success_cnt);
|
|
$("#success_url").html("").append(html_s);
|
|
$("#failure_url").html("").append(html_f);
|
|
}
|
|
$(function() {
|
|
$('#start_date').datetimepicker({
|
|
format: "yyyy-mm-dd",
|
|
minView : 2,
|
|
autoclose:true
|
|
});
|
|
$('#end_date').datetimepicker({
|
|
format: "yyyy-mm-dd",
|
|
minView : 2,
|
|
autoclose:true
|
|
});
|
|
});
|
|
</script>
|
|
<style type="text/css">
|
|
.show-grid {padding: 15px; background: #efefef; border-radius: 5px;}
|
|
</style>
|
|
</head>
|
|
<div class="container-fluid">
|
|
<div class="show-grid row">
|
|
<form role="form" class="form-inline center-block" action="/info.php/Statistics/Chinese_history_log" id="log" name="log" method="post">
|
|
<div class="form-group">
|
|
<label for="log_action">类别</label>
|
|
<select class="form-control" name="log_action">
|
|
<option value="0"
|
|
<?php if($log_action == 0){?> selected <?php }?>>全部</option>
|
|
<option value="1"
|
|
<?php if($log_action == 1){?> selected <?php }?>>点进了封面的图片进入测试</option>
|
|
<option value="2"
|
|
<?php if($log_action == 2){?> selected <?php }?>>完成了前3题</option>
|
|
<option value="3"
|
|
<?php if($log_action == 3){?> selected <?php }?>>完成了10道题目拿到了成绩单</option>
|
|
<option value="4"
|
|
<?php if($log_action == 4){?> selected <?php }?>>点击了try again!</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="start_date">时间</label>
|
|
<input type="text" class="form-control" id="start_date" name="start_date"
|
|
value="<?php echo $start_date;?>" > 至
|
|
<input type="text" class="form-control" id="end_date" name="end_date"
|
|
value="<?php echo $end_date;?>">
|
|
</div>
|
|
<button type="submit" class="btn btn-default">查询</button>
|
|
</form>
|
|
</div>
|
|
<div class="row">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th width="50%">类别</th>
|
|
<th width="50%">人数</th>
|
|
<!-- <th width="6%">时间</th> -->
|
|
</tr>
|
|
</thead>
|
|
<tbody class="data_group">
|
|
<?php foreach($ret as $key=>$it) { ?>
|
|
<tr class="data">
|
|
<td title=""><?php echo($it->action_text);?></td>
|
|
<td title=""><?php echo($it->ret);?></td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|