<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->
<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>
  <script Language="JavaScript">
 function form_check(){
  if(document.form3.sendto.value.length<1){window.alert("你还没有添加任何姓名");document.form3.sendto.focus();return (false);}
   
   
                  }

  </script>

<%
   owner=request.cookies("tname")
   groupid=request("groupid")
   groupname=request("groupname")
   Set Rslist=Server.CreateObject("Adodb.Recordset")
   sqllist= "select * from teachergroup  where owner='"&owner& "' and  groupid ='"&groupid&"'  and  groupname ='"&groupname&"'  order by tname"
   Rslist.open sqllist,conn,1,1
   
   
   
   %>
<form id="form3" name="form3" method="post" action="savezuyuan.asp?groupid=<%=groupid%>&groupname=<%=groupname%>"  onSubmit="return form_check();">
  <p>&nbsp;</p>
  <table width="700" border="0" align="center" 
cellspacing="0" bordercolorlight="#11b1ff" bordercolordark="#f0f8ff">
    
    <tr align="middle">
      <td width="47" height="28"><div align="right" class="STYLE1">姓名</div></td>
      <td width="508" align="center" valign="middle"><div align="left">
        <textarea name="sendto" cols="70" rows="5" class="input"   id="sendto"></textarea>
      </div>
      </label></td>
      <td width="139" align="center" valign="middle"><p>&nbsp;
        </p>
        <p>
          <input name="Submit" type="submit" class="topanniu" value="添加名单" />
        </p>
        <p>&nbsp;</p></td>
    </tr>
  </table>
</form>


<table width="655" align="center" border="1" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">
  <tr style="background-color:#D6E4FF"  class="TableHeader">
    <td align="center" nowrap class="STYLE1">序号</td>
    <td height="30" align="center" nowrap class="STYLE1"><div align="center">【<%=groupname%>】的名单</div></td>
    <td width="165" align="center" nowrap class="STYLE1">操作</td>
  </tr>
  <%
  i=0
  while not Rslist.eof and not Rslist.bof
  i=i+1
%>
  <tr>
    <td width="183" align="center" nowrap class="STYLE1"><%=i%></td>
    <td width="326" height="30" align="center" nowrap class="STYLE1"><div align="center"><%=Rslist("tname")%></div></td>
    <td align="center" nowrap class="STYLE1"><a href="delzuyuan.asp?id=<%=Rslist("id")%>&groupid=<%=Rslist("groupid")%>&groupname=<%=Rslist("groupname")%>">删除</a></td>
  </tr>
  <%  Rslist.movenext
    wend
%>
</table>
<p align="center">
<input name="button" type="button" class="topanniu" onClick="location='fenzu.asp'" value="返回">
&nbsp;</p>
