<!--#include file="../SQLconn.asp"-->
<link rel="stylesheet" type="text/css" href="../css/style.css" />
  <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")
   groupname=request("groupname")
   Set Rslist=Server.CreateObject("Adodb.Recordset")
   sqllist= "select *from teachergroup  where owner='"&owner& "' and  groupname ='"&groupname&"'  order by tname"
   Rslist.open sqllist,conn,1,1
   
   
   
   %>
<form id="form3" name="form3" method="post" action="savezuyuan.asp?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="700" align="center" border="1" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">
  <tr style="background-color:#D6E4FF"  class="TableHeader">
    <td height="30" align="center" nowrap class="STYLE1"><div align="center">【<%=groupname%>】的名单</div></td>
    <td width="375" align="center" nowrap class="STYLE1">操作</td>
  </tr>
  <%while not Rslist.eof and not Rslist.bof
%>
  <tr>
    <td width="307" 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")%>&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>
