<!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><a class="layui-btn" onclick="javascript:return parent.showLeaderEditBox(<?php echo $specialty->id; ?>);"><i class="layui-icon layui-icon-add-circle"></i> 添加成员</a></div>
<form class="layui-form" id="list_form" method="post">
<table class="layui-table" lay-skin="line">
  <thead>
    <tr>
      <th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose"></th>
      <th>用户名</th>
      <th>工号</th>
      <th>姓名</th>
      <th>设为负责人</th>
    </tr> 
  </thead>
  <tbody id="pagelistbox">
    <?php foreach($leaders as $oneleader){ ?>
    <tr>
      <td><input type="checkbox" name="leaderid[]" lay-skin="primary" value="<?php echo $oneleader->id; ?>"></td>
      <td><?php echo $oneleader->username; ?></td>
      <td><?php echo $oneleader->stdnumber; ?></td>
      <td><?php echo $oneleader->realname; ?></td>
      <td><input type="checkbox" name="leadertype[]" lay-skin="switch" lay-filter="changeLeaderType" <?php if($oneleader->leadertype==1){echo ' checked';} ?>></td>
    </tr>
    <?php } ?>
  </tbody>
  <tfoot>
    <tr>
      <td><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose"></td>
      <td colspan="4"><button class="layui-btn" title="删除" id="delete_button">删除</button></td>
    </tr> 
  </tfoot>
</table>
</form>
</div>

<script type="text/javascript">
var specialid = <?php echo $specialty->id; ?>;
</script>

<script src="/public/modules/glspecial/leader/index.js"></script>

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