<!--#include file="admin_start.asp" -->
<body topmargin="30" marginwidth="10" marginheight="10">
<%
rs.open "select * from jins_site_mail ",conn,1,1
%>
<form name=site_basic action="admin_basic_mail_edit.asp?action=edit" method=post>
<table cellpadding="3" cellspacing="3" width="75%" height="30" align=center style='border:1px solid #ebebeb' >
	<%
	do while not rs.eof
	%>
	<tr>
		<td width="2%" align=right><img alt='点击弹开编辑框' onclick="opencat(mail_<%=rs("mail_id")%>_open)" style='CURSOR: hand' src="Images/index_search.gif" width="8" height="16"></td>
		<td  width="58%" align=left><%=rs("mail_send")%></td>
		<td width="20%" align=center>
		<input type=radio name=mail_open  value='<%=rs("mail_id")%>' <%if rs("mail_open")=1 then response.write "checked" %> >
		</td>
		<td  width="20%" align=center>
		 <a href="admin_basic_mail_edit.asp?action=delete&id=<%=rs("mail_id")%>">
		 <img src="Images/delete.gif" alt='删除此邮箱！' width="10" height="11" border=0 align="absmiddle" valign=absmiddle>
		 </a> 
		</td>
	</tr>		
	<tr id="mail_<%=rs("mail_id")%>_open" style="display:<%if rs("mail_open")<>1 then response.write "none" %>">
		<td colspan="10" align=left>
		<table cellpadding="4" cellspacing="2" width="99%" height="30" align=center style='border:1px dashed #B7B7B7' >
		<tr>
			<td width=15%  align=right>
			邮箱地址：
			</td>
			<td width=85% >
		    <input type=text name=mail_send_<%=rs("mail_id")%> value='<%=rs("mail_send")%>' size=40>
			</td>
		</tr>
		<tr>
			<td width=15% align=right>
			SMTP服务器：
			</td>
			<td width=85% >
		    <input type=text name=mail_address_<%=rs("mail_id")%> value='<%=rs("mail_address")%>' size=40>
			</td>
		</tr>
		<tr>
			<td width=15% align=right>
			用 户 名：
			</td>
			<td width=85% >
		    <input type=text name=mail_username_<%=rs("mail_id")%> value='<%=rs("mail_username")%>' size=25>
			</td>
		</tr>
		<tr>
			<td width=15% align=right>
			邮箱密码：
			</td>
			<td width=85% >
		    <input type=text name=mail_password_<%=rs("mail_id")%> value='<%=rs("mail_password")%>' size=25>
			</td>
		</tr>
		<tr>
			<td width=15%  align=right>
			发送名称：
			</td>
			<td width=85% >
		    <input type=text name=mail_name_<%=rs("mail_id")%> value='<%=rs("mail_name")%>' size=40>
			</td>
		</tr>

		</table>
		</td>
	</tr>

	<tr>
		<td height='1' colspan="9" background='images/dot03.gif'></td>
	</tr>
	<%
	rs.movenext
	loop
	%>
	<tr>
		<td height='30' colspan="9" align=center>
		<input type=submit value='提交更改！'>
		<input type=reset value='重置！'>
		</td>
	</tr>
</table>
</form>

<form name=site_basic action="admin_basic_mail_edit.asp?action=add" method=post>
<table cellpadding="3" cellspacing="3" width="75%" height="30" align=center style='border:1px solid #ebebeb' >
	<tr>
		<td width="2%" align=right><img alt='点击弹开编辑框' onclick="opencat(mail_new_open)" style='CURSOR: hand' src="Images/index_search.gif" width="8" height="16"></td>
		<td  width="98%" align=left>新增邮箱</td>
	</tr>		
	<tr id="mail_new_open" style="display:">
		<td colspan="10" align=left>
		<table cellpadding="4" cellspacing="2" width="99%" height="30" align=center style='border:1px dashed #B7B7B7' >
		<tr>
			<td width=15%  align=right>
			邮箱地址：
			</td>
			<td width=85% >
		    <input type=text name=mail_send value='username@163.com' size=40>
			</td>
		</tr>
		<tr>
			<td width=15% align=right>
			SMTP服务器：
			</td>
			<td width=85% >
		    <input type=text name=mail_address value='smtp.163.com' size=40>
			</td>
		</tr>
		<tr>
			<td width=15% align=right>
			用 户 名：
			</td>
			<td width=85% >
		    <input type=text name=mail_username value='username' size=25>
			</td>
		</tr>
		<tr>
			<td width=15% align=right>
			邮箱密码：
			</td>
			<td width=85% >
		    <input type=text name=mail_password value='password' size=25>
			</td>
		</tr>
		<tr>
			<td width=15%  align=right>
			发送名称：
			</td>
			<td width=85% >
		    <input type=text name=mail_name value='网聚购物' size=40>
			</td>
		</tr>

		</table>
		</td>
	</tr>

	<tr>
		<td height='1' colspan="9" background='images/dot03.gif'></td>
	</tr>
	<tr>
		<td height='30' colspan="9" align=center>
		<input type=submit value='加入新的邮箱！'>
		<input type=reset value='重置！'>
		</td>
	</tr>
</table>
</form>
<SCRIPT language=javascript>
	function opencat(cat)
	{
 	 	if(cat.style.display=="none"){
     	cat.style.display="";
  		} else {
     	cat.style.display="none"; 
  		}
	}
	
</SCRIPT>

<%
rs.close
%>
</body>
<!--#include file="admin_end.asp" -->