<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>私塾家</title>
<script th:include="sys/common/metaCSS" th:remove="tag"></script> 
<script th:include="sys/common/metaJS" th:remove="tag"></script> 
</head>
<style>
	.tablelink{margin-right:10px;}
	.stylecss{
	      color: red;
	}
	.select_width{
	     width: 70px;
	}
	.date_width{
	     width: 100px;
	}
</style>
<body>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li><a href="#">后台系统管理</a></li>
		<li><a th:href="@{/sys/zuoyb/zuoybSRList.html}">作业吧排班表</a></li>
	</ul>
</div>
<div class="rightinfo">
	<form id="seachform" th:action="@{/sys/zuoyb/zuoybSRList.html}" method="post">
	<ul class="seachform">
		  <li>
				<label>图书馆</label>
					<select class="scinput select_width"  name="EQ_libId"   style="width: 220px;" >
						<option value=""   >全部</option>
						<option th:each="item:${libList}"  th:value="${item.id}"  th:selected="${ search.get('EQ_libId') eq item.id }"  th:text="${item.leagueName}"></option>
					</select>
			</li>
		<li>
			<label>&nbsp;</label>
			<input type="button" class="scbtn" value="查询" />
		</li>
	</ul>
	</form>
	<table class="tablelist">
		<thead>
		    <tr>
		        <th>图书馆</th>
		        <th style="width: 80px;">时段</th>
		        <th>星期一</th>
		        <th>星期二</th>
		        <th>星期三</th>
		        <th>星期四</th>
		        <th>星期五</th>
		        <th>星期六</th>
		        <th>星期天</th>
		    </tr>
		</thead>
		<tbody>
			<tr th:each="item:${list}" >
					<td th:text="${item.get('league_name')}"></td>
					<td th:text="${item.get('course_hour')}"></td>
					<td>
					   <a href="javascript:;" style="text-align:center;color: red; margin-right: 10px;" 
					   th:onclick="'getZybManage(\''+${item.get('course_hour')}+'\',\''+1+'\',\''+${item.get('lib_id')}+'\');'"
					   >请选择老师</a>
					</td>
					
					<td>
					   <a href="javascript:;" style="text-align:center;color: red; margin-right: 10px;"
					   th:onclick="'getZybManage(\''+${item.get('course_hour')}+'\',\''+2+'\',\''+${item.get('lib_id')}+'\');'"
					    >请选择老师</a>
					</td>
					<td>
					   <a href="javascript:;" style="text-align:center;color: red; margin-right: 10px;"
					   th:onclick="'getZybManage(\''+${item.get('course_hour')}+'\',\''+3+'\',\''+${item.get('lib_id')}+'\');'"
					     >请选择老师</a>
					</td>
					<td>
					   <a href="javascript:;" style="text-align:center;color: red; margin-right: 10px;"
					   th:onclick="'getZybManage(\''+${item.get('course_hour')}+'\',\''+4+'\',\''+${item.get('lib_id')}+'\');'"
					     >请选择老师</a>
					</td>
					<td>
					   <a href="javascript:;" style="text-align:center;color: red; margin-right: 10px;"
					   th:onclick="'getZybManage(\''+${item.get('course_hour')}+'\',\''+5+'\',\''+${item.get('lib_id')}+'\');'"
					     >请选择老师</a>
					</td>
					<td>
					   <a href="javascript:;" style="text-align:center;color: red; margin-right: 10px;"
					   th:onclick="'getZybManage(\''+${item.get('course_hour')}+'\',\''+6+'\',\''+${item.get('lib_id')}+'\');'"
					     >请选择老师</a>
					</td>
					<td>
					   <a href="javascript:;" style="text-align:center;color: red; margin-right: 10px;"
					   th:onclick="'getZybManage(\''+${item.get('course_hour')}+'\',\''+7+'\',\''+${item.get('lib_id')}+'\');'"
					     >请选择老师</a>
					</td>
			</tr>
		</tbody>
	</table>
	<!-- 分页 -->
	<div class="pagin">
    	<div class="message">共<i class="blue">[[${page.rowCnt}]]</i>条记录，当前显示第&nbsp;<i class="blue">[[${page.pageNo }]]&nbsp;</i>页</div>
    	<div th:utext='${listNavigatHtml}' th:remove="tag" ></div>
   	</div>
</div>
</body>
<script type="text/javascript">
function getZybManage(id,days,libId){
	layer.open({
	    type: 2,
	    title: "添加管理员",
	    closeBtn: 1, //不显示关闭按钮
	    shift: 0.8,
	    //offset: '100px',
	      area: ['80%', '90%'],
	    content: '[[${sysUrl}]]/sys/zuoyb/selectZybSRList.html?courseHour='+id+'&days='+days+'&libId='+libId
	});
}
</script>
</html>