<!--#include file="conn.asp" -->
<% adm_power_page=3 %>
<!--#include file="admin_dn.asp" -->
<%

 
 function numl(je,i)
  if je="" then 
  numl="<li>第"&i&"条记录的金额为空</li>"
  end if
  for s=1 to len(je)
   if instr("0123456789",mid(je,s,1))=0 then
    numl="<li>第"&i&"条记录的金额非法或者不是数字</li>"
	end if
	next
		
 end function
 
 if Trim(Request.QueryString("w"))="hostedit" then
 for i= 1 to request.form("id").count
  msg=msg&numl(request.form("je1")(i),i)
  msg=msg&numl(request.form("je2")(i),i)
  msg=msg&numl(request.form("je3")(i),i)
  msg=msg&numl(request.form("je4")(i),i)
  msg=msg&numl(request.form("je5")(i),i)
  
  if trim(msg)="" then
  sql="update host set title='"&request.form("title")(i)&"',je1="&request.form("je1")(i)&",je2="&request.form("je2")(i)&",je3="&request.form("je3")(i)&",je4="&request.form("je4")(i)&",je5="&request.form("je5")(i)&" where id="&request.form("id")(i)
  conn.execute(sql)
  end if
  next
 end if
 
 
 if Trim(Request.QueryString("w"))="dnsedit" then
 for i= 1 to request.form("id").count
  msg=msg&numl(request.form("je1")(i),i)
  msg=msg&numl(request.form("je2")(i),i)
  msg=msg&numl(request.form("je3")(i),i)
  msg=msg&numl(request.form("je4")(i),i)
  msg=msg&numl(request.form("je5")(i),i)
  
  if trim(msg)="" then
  sql="update dns set title='"&request.form("title")(i)&"',je1="&request.form("je1")(i)&",je2="&request.form("je2")(i)&",je3="&request.form("je3")(i)&",je4="&request.form("je4")(i)&",je5="&request.form("je5")(i)&" where id="&request.form("id")(i)
  conn.execute(sql)
  end if
  next
 end if
 
 
 if Trim(Request.QueryString("w"))="mailedit" then
 for i= 1 to request.form("id").count
  msg=msg&numl(request.form("je1")(i),i)
  msg=msg&numl(request.form("je2")(i),i)
  msg=msg&numl(request.form("je3")(i),i)
  msg=msg&numl(request.form("je4")(i),i)
  msg=msg&numl(request.form("je5")(i),i)
  
  if trim(msg)="" then
  sql="update mail set title='"&request.form("title")(i)&"',je1="&request.form("je1")(i)&",je2="&request.form("je2")(i)&",je3="&request.form("je3")(i)&",je4="&request.form("je4")(i)&",je5="&request.form("je5")(i)&" where id="&request.form("id")(i)
  conn.execute(sql)
  end if
  next
 end if
 if trim(msg)="" then 
 msg="修改成功!!"
 else
 msg="更改失败!!!!<ul>"&msg&"</ul>"
 end if
  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>:::管理页面:::</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="4" topmargin="4">
<p>产品统一划价</p>
<p>　<strong><font color="#FF0000">虚拟主机划价</font></strong></p>
<form name="form1" method="post" action="price.asp?w=hostedit">
  <table width="100%" height="56" border="0" cellpadding="0" cellspacing="2">
    <tr bgcolor="#000066"> 
      <td width="9%"> 
        <div align="center"><font color="#FFFFFF">编号</font></div></td>
      <td width="35%"> 
        <div align="center"><font color="#FFFFFF">名称</font></div></td>
      <td width="8%"> 
        <div align="center"><font color="#FFFFFF">价1</font></div></td>
      <td width="9%"> 
        <div align="center"><font color="#FFFFFF">价2</font></div></td>
      <td width="6%"> 
        <div align="center"><font color="#FFFFFF">价3</font></div></td>
      <td width="6%"> 
        <div align="center"><font color="#FFFFFF">价4</font></div></td>
      <td width="8%"> 
        <div align="center"><font color="#FFFFFF">价5</font></div></td>
      <td width="10%"> 
        <div align="center"><font color="#FFFFFF">编辑</font></div></td>
      <td width="9%"> 
        <div align="center"><font color="#FFFFFF">删除</font></div></td>
    </tr>
    <% rs.open "host",conn,1,1
	while not rs.eof %>
    <tr bgcolor="#F7F7FF"> 
      <td> <div align="center"><%= rs("bh") %></div></td>
      <td> <div align="center">
          <input name="id" type="hidden" id="id" value="<%=rs("id")%>">
          <input name="title" type="text" id="title" value="<%= rs("title") %>">
        </div></td>
      <td> <div align="center"> 
          <input name="je1" type="text" id="je1" size="4" value=<%= rs("je1") %>>
        </div></td>
      <td> <div align="center"> 
          <input name="je2" type="text" id="je2" size="4" value=<%= rs("je2") %>>
        </div></td>
      <td> <div align="center"> 
          <input name="je3" type="text" id="je3" size="4" value=<%= rs("je3") %>>
        </div></td>
      <td> <div align="center"> 
          <input name="je4" type="text" id="je4" size="4" value=<%= rs("je4") %>>
        </div></td>
      <td> <div align="center"> 
          <input name="je5" type="text" id="je5" size="4" value=<%= rs("je5") %> >
        </div></td>
      <td> <div align="center"><a href="adm_3_e.asp?id=<%=rs("id")%>"><img src="images/folder.gif" width="16" height="16" border="0"></a></div></td>
      <td> <div align="center"><img src="images/4.jpg"></div></td>
    </tr>
    <% rs.movenext
	wend
	rs.close %>
    <tr bgcolor="#000066"> 
      <td colspan="7">&nbsp;</td>
      <td colspan="2"><input type="submit" name="Submit" value="-修改-"></td>
    </tr>
  </table>
</form>
<p><strong><font color="#FF0000">域名划价</font></strong></p>
<form action="price.asp?w=dnsedit" method="post" name="form2" id="form2">
  <table width="100%" height="56" border="0" cellpadding="0" cellspacing="2">
    <tr bgcolor="#000066"> 
      <td width="8%"> 
        <div align="center"><font color="#FFFFFF">编号</font></div></td>
      <td width="32%"> 
        <div align="center"><font color="#FFFFFF">名称</font></div></td>
      <td width="9%"> 
        <div align="center"><font color="#FFFFFF">类型</font></div></td>
      <td width="7%"> 
        <div align="center"><font color="#FFFFFF">价1</font></div></td>
      <td width="6%"> 
        <div align="center"><font color="#FFFFFF">价2</font></div></td>
      <td width="6%"> 
        <div align="center"><font color="#FFFFFF">价3</font></div></td>
      <td width="7%"> 
        <div align="center"><font color="#FFFFFF">价4</font></div></td>
      <td width="11%"> 
        <div align="center"><font color="#FFFFFF">价5</font></div></td>
      <td width="6%"> 
        <div align="center"><font color="#FFFFFF">编辑</font></div></td>
      <td width="8%"> 
        <div align="center"><font color="#FFFFFF">删除</font></div></td>
    </tr>
    <% rs.open "dns",conn,1,1
	while not rs.eof %>
    <tr bgcolor="#F7F7FF"> 
      <td> <div align="center"><%= rs("id") %></div></td>
      <td> <div align="center"> 
          <input name="id" type="hidden" id="id" value="<%=rs("id")%>">
          <input name="title" type="text" id="title" value="<%= rs("title") %>">
        </div></td>
      <td><input name="lx" type="text" id="je24" size="7" value=<%= rs("lx") %>></td>
      <td> <div align="center"> 
          <input name="je1" type="text" id="je1" size="4" value=<%= rs("je1") %>>
        </div></td>
      <td> <div align="center"> 
          <input name="je2" type="text" id="je2" size="4" value=<%= rs("je2") %>>
        </div></td>
      <td> <div align="center"> 
          <input name="je3" type="text" id="je3" size="4" value=<%= rs("je3") %>>
        </div></td>
      <td> <div align="center"> 
          <input name="je4" type="text" id="je4" size="4" value=<%= rs("je4") %>>
        </div></td>
      <td> <div align="center"> 
          <input name="je5" type="text" id="je5" size="4" value=<%= rs("je5") %> >
        </div></td>
      <td> <div align="center"><a href="adm_4_e.asp?id=<%=rs("id")%>"><img src="images/folder.gif" width="16" height="16" border="0"></a></div></td>
      <td> <div align="center"><img src="images/4.jpg"></div></td>
    </tr>
    <% rs.movenext
	wend
	rs.close %>
    <tr bgcolor="#000066"> 
      <td colspan="8">&nbsp;</td>
      <td colspan="2"><input type="submit" name="Submit2" value="-修改-"></td>
    </tr>
  </table>
</form>
<p><strong><font color="#FF0000">邮局划价</font></strong></p>
<form action="price.asp?w=mailedit" method="post" name="form3" id="form3">
  <table width="100%" height="59" border="0" cellpadding="0" cellspacing="2">
    <tr bgcolor="#000066"> 
      <td width="9%" height="14"> 
        <div align="center"><font color="#FFFFFF">编号</font></div></td>
      <td width="35%"> <div align="center"><font color="#FFFFFF">名称</font></div></td>
      <td width="8%"> <div align="center"><font color="#FFFFFF">价1</font></div></td>
      <td width="9%"> <div align="center"><font color="#FFFFFF">价2</font></div></td>
      <td width="6%"> <div align="center"><font color="#FFFFFF">价3</font></div></td>
      <td width="6%"> <div align="center"><font color="#FFFFFF">价4</font></div></td>
      <td width="8%"> <div align="center"><font color="#FFFFFF">价5</font></div></td>
      <td width="10%"> <div align="center"><font color="#FFFFFF">编辑</font></div></td>
      <td width="9%"> <div align="center"><font color="#FFFFFF">删除</font></div></td>
    </tr>
    <% rs.open "mail",conn,1,1
	while not rs.eof %>
    <tr bgcolor="#F7F7FF"> 
      <td> <div align="center"><%= rs("id") %></div></td>
      <td> <div align="center"> 
          <input name="id" type="hidden" id="id" value="<%=rs("id")%>">
          <input name="title" type="text" id="title" value="<%= rs("title") %>">
        </div></td>
      <td> <div align="center"> 
          <input name="je1" type="text" id="je1" size="4" value=<%= rs("je1") %>>
        </div></td>
      <td> <div align="center"> 
          <input name="je2" type="text" id="je2" size="4" value=<%= rs("je2") %>>
        </div></td>
      <td> <div align="center"> 
          <input name="je3" type="text" id="je3" size="4" value=<%= rs("je3") %>>
        </div></td>
      <td> <div align="center"> 
          <input name="je4" type="text" id="je4" size="4" value=<%= rs("je4") %>>
        </div></td>
      <td> <div align="center"> 
          <input name="je5" type="text" id="je5" size="4" value=<%= rs("je5") %> >
        </div></td>
      <td> <div align="center"><a href="adm_5_e.asp?id=<%=rs("id")%>"><img src="images/folder.gif" width="16" height="16" border="0"></a></div></td>
      <td> <div align="center"><img src="images/4.jpg"></div></td>
    </tr>
    <% rs.movenext
	wend
	rs.close %>
    <tr bgcolor="#000066"> 
      <td colspan="7">&nbsp;</td>
      <td colspan="2"><input type="submit" name="Submit3" value="-修改-"></td>
    </tr>
  </table>
</form>
<table width="60%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><font color="#FF0000"><%= msg %></font></td>
  </tr>
</table>
<p align="center"><font color="#FF0000"> </font></p>
</body>
</html>
