<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>统计</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  
  <link rel="stylesheet" href="/plugins/layui/css/layui.css">
  <link rel="stylesheet" href="/plugins/fontawesome/css/font-awesome.min.css" />
  <link rel="stylesheet" href="/public/css/global.css">

  <script src="/public/js/jquery-1.11.3.min.js"></script>
  <script src="/public/js/jquery.form-3.36.0.min.js"></script>
  
</head>
<body>

<div class="layui-fluid" style="padding-left: 10px; padding-right: 10px; margin-top: 10px;">

<div class="layui-tab layui-tab-brief">
  <ul class="layui-tab-title">
    <?php include(__DIR__ ."/menu.php"); ?>
  </ul>
  <div class="layui-tab-content">
    <div class="layui-tab-item layui-show">

<div class="layui-form" style="margin-top:10px;">
<div style="float: left;"></div>
<div style="float: right;">
<form class="layui-form" id="search_form" method="post" action="/glexam/tongji/score?id=<?php echo $exam->id; ?>">
  <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">班级</label>
      <div class="layui-input-inline">
        <select name="se_xzclassid" lay-filter="changecondition">
          <option value=""></option>
      <?php foreach($xzclasses as $oneclass){ ?>
      <option value="<?php echo $oneclass->id; ?>"<?php if($search["se_xzclassid"]==$oneclass->id){echo ' selected';} ?>><?php echo $oneclass->name; ?></option>
      <?php } ?>
        </select>
      </div>
    </div>
  </div>
</form>
</div>
<div style="clear: both;"></div>
</div>

<table class="layui-table" lay-skin="line">
  <thead>
    <tr>
    <?php foreach ($tongji as $onekey => $onedata) { ?>
      <th><?php echo $onekey; ?></th>
    <?php } ?>
    </tr> 
  </thead>
  <tbody id="pagelistbox">
    <tr>
    <?php foreach ($tongji as $onekey => $onedata) { ?>
      <td><?php echo $onedata; ?></td>
    <?php } ?>
    </tr>
  </tbody>
</table>

    </div>
  </div>
</div>

</div>

<script type="text/javascript">
var examid = <?php echo $exam->id; ?>;
</script>
<script src="/public/modules/glexam/tongji/score.js"></script>

<script src="/plugins/layui/layui.all.js"></script>
</body>
</html>