<!--#include file="WebConfig/Conn.asp"-->
<!--#include file="WebConfig/LoginYN.asp"-->
<!--#include file="WebConfig/Function.asp"-->
<html xmlns:v>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link type="text/css" rel="stylesheet" href="Css/BackStyle.css" />
<title></title>
<script language="javascript" src="Js/Nor.js"></script>
<script language="javascript" src="Js/checkBaseInfo.js"></script>
</head>
<%
If Request.Form("ck")<>"" Then
conn.Execute("Delete from Teacher where Id in ("&Request.Form("ck")&")")
End If
%>
<body>
<div id="BackBg">
	<v:RoundRect id="BackCo" strokeColor="#7EB977" arcsize=".01" Filled="T">
		<div id="BackDocTitle" class="B cW">管理图片</div>
		<form id="BaseInfo" name="BaseInfor" method="post" action="">
		<div id="BackDoZone">
				<ul id="Ti" class="B">
					<p class="w5 bR">ID</p>
					<p class="w10 bR">编号</a></p>
					<p class="w20 bR">姓名</a></p>					
					<p class="w20 bR">科目</p>
					<p class="w15 bR">点击率</p>
					<p class="w20 bR">家长满意度</p>
					<p class="w10">选择</p>
				</ul>
				<%
					Set rsNews=Server.CreateObject("ADODB.RecordSet")
					rsNews.Open "Select * from Teacher order by Id desc ",conn,1,1
					If Not rsNews.Eof Then
						rsNews.PageSize=8
						Page=Cint(Request.QueryString("Page"))
						If Page<1 Then Page=1 End If
						If Page>rsNews.PageCount Then Page=rsNews.PageCount End If
						If rsNews.RecordCount<rsNews.PageSize Then CuPage=1 Else CuPage=Cint(rsNews.RecordCount/rsNews.PageSize) End If
						rsNews.AbsolutePage=Page
					End If
					for i=1 to rsNews.RecordCount
					If rsNews.Eof or i>rsNews.PageSize Then Exit for End If
				%>
				<ul id="Co">
					<p class="w5 bR bB"><%=rsNews("Id")%></p>
					<p class="w10 bR bB"><%=rsNews("Tid")%></p>
					<p class="w20 bR bB"><%=rsNews("Name")%></p>					
					<p class="w20 bR bB" align="left" style="padding-left:5px"><%=rsNews("Class")%></p>
					<p class="w15 bR bB"  align="left" style="padding-left:5px"><%=rsNews("num")%></p>
					<p class="w20 bR bB">
					<%
					Y= 1 
					do while Y <= rsNews("star")					 
					%>
					<Img src="../images/star.gif" style="margin-bottom:-5px">
					<%
					Y=Y+1 
					loop
					%></p>
					<p class="w10 bB"><input name="ck" type="checkbox" value="<%=rsNews("Id")%>" onClick="selectOne();" /></p>
				</ul>
				<%
					rsNews.MoveNext
					Next
				%>
		</div>
		<div id="BackPage">当前<%=CuPage%>页 每页 <%=rsNews.PageSize%> 信息 / 共<%=rsNews.PageCount%>页 共有 <span class="Red"><%=rsNews.RecordCount%></span> 条信息 <a href="S?Page=1">首页</a> <a href="?Page=<%=Page-1%>">上一页</a> <a href="?Page=<%=Page+1%>">下一页</a> <a href="?Page=<%=rsNews.PageCount%>">尾页</a></div>
		<div id="BackBn"><input id="BnDel" disabled="disabled" type="button" value="删除所选内容"  onClick="confirmDel('BaseInfo');" /> 全选 <input name="Total" type="checkbox" onClick="selectAll(this);" /></div>	</form>
		<div id="BackBn">
		<form name="form1" method="post" action="doSave/saveTeacher.asp">
		<p style="margin-top:15px; ">
		编号：<input id="BnDel" type="text" name="Tid" style="width:80px"/> 
		 姓名：<input id="BnDel" type="text" name="Name"  style="width:100px"> 
		 科目：<input id="BnDel" type="text" name="Class"  style="width:120px">
		 点击数：<input id="BnDel" type="text" name="Num" style="width:50px"> 
		 家长满意度：<input id="BnDel" type="text" name="Star" style="width:30px"> 星，请填写1-5数字。		 
		<p style="margin-top:10px; margin-bottom:5px"><input type="submit" name="Submit" value="提交">&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="reset" name="Submit2" value="重置">
		</form>
		 </div>
	
		
	</v:roundrect>
</div>
<%
	rsNews.Close
	Set rsNews=Nothing
%>
</body>
</html>
