<!--#include file="conn.asp" -->
<% adm_power_page=3 %>
<!--#include file="admin_dn.asp" -->
<% 
function je_num(je,num)
  i=0
  for i=1 to len(je)
  if instr("0123456789",mid(je,i,1))=0 then je_num="<li>价格"&num&"为非法的数字,只能为0-9中的数字</li>"
  next
  if mid(je,1,1)="0" then je_num=je_num&"<li>价格"&num&"第一个数不能为0</li>"
  if len(je)="0" then je_num=je_num&"<li>价格"&num&"请不要为空字段</li>"
 end function
 
if Trim(Request.QueryString("action"))="edit" then
 msg=""
 msg=msg&je_num(Request.Form("je2"),2)
 msg=msg&je_num(Request.Form("je3"),3)
 msg=msg&je_num(Request.Form("je4"),4)
 msg=msg&je_num(Request.Form("je5"),5)
 if trim(msg)="" then
  if Trim(Request("way"))="1" then 
   conn.execute("update "&Request("w")&" set je2=je1*"&Request.Form("je2")/100&",je3=je1*"&Request.Form("je3")/100&",je4=je1*"&Request.Form("je4")/100&",je5=je1*"&Request.Form("je5")/100)
  else
    'rs.execute("update host set je2=4343")
  conn.execute("update "&Request("w")&" set je2=je1-"&Request.Form("je2")&",je3=je1-"&Request.Form("je3")&",je4=je1-"&Request.Form("je4")&",je5=je1-"&Request.Form("je5"))
  end if
  msg="修改成功!!!"
 else
 msg="修改失败!!!<ul>"&msg&"</ul>"
 end if
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>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><font color="#990000">　<strong><font color="#FF0000">请操作请看:</font></strong><font color="#000033">在这里将可以对虚拟主机．企业邮局．域名．的代理价格位，进行自动一次性的划价，请在操作前确定产品的直接客户价正确，因为所有操作都是以产品价1也就是直接客户价为基数进行调整的,这里提供两种操作方式.百分比和差价,<font color="#FF0000">例:</font></font></font>你在操作一栏选的是百分,分别在 
      产品2 产品3... 写上 10,20,... 则产品的价格2就是 产品价1*0.10 ,产品3的价格是 产品价1*0.20如果有小数.小数部份将舍去.如果你选用差介模式,则产品的价格2就是 
      产品价1-10 ...</td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><font color="#FF0000"><strong>虚拟主机类:</strong></font></p>
<form name="form1" method="post" action="auto_je.asp?action=edit&w=host">
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#000066"> 
      <td width="20%" height="17">
<div align="center"><font color="#FFFFFF">操作方式</font></div></td>
      <td width="13%"><div align="center"><font color="#FFFFFF">产品价1</font></div></td>
      <td width="15%"><div align="center"><font color="#FFFFFF">产品价2</font></div></td>
      <td width="18%"><div align="center"><font color="#FFFFFF">产品价3</font></div></td>
      <td width="19%"><div align="center"><font color="#FFFFFF">产品价4</font></div></td>
      <td width="15%"><div align="center"><font color="#FFFFFF">产品价5</font></div></td>
    </tr>
    <tr> 
      <td height="29">
<div align="center">
          <input name="Way" type="radio" class="unnamed1" value="1" checked>
          百分 
          <input name="Way" type="radio" class="unnamed1" value="2">
          差价</div></td>
      <td><div align="center"><font color="#FF0000">基数</font></div></td>
      <td><div align="center">
          <input name="je2" type="text" id="je2" size="8">
        </div></td>
      <td><div align="center"> 
          <input name="je3" type="text" id="je3" size="8">
        </div></td>
      <td><div align="center"> 
          <input name="je4" type="text" id="je4" size="8">
        </div></td>
      <td><div align="center"> 
          <input name="je5" type="text" id="je5" size="8">
        </div></td>
    </tr>
    <tr bgcolor="#000066"> 
      <td> 
        <div align="center"> </div></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><div align="center">
          <input type="submit" name="Submit" value="-操作-">
        </div></td>
    </tr>
  </table>
</form>
<p>&nbsp;</p>
<p><strong><font color="#FF0000">域名类;</font></strong></p>
<form name="form1" method="post" action="auto_je.asp?action=edit&w=dns">
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#000066"> 
      <td width="20%" height="17"> <div align="center"><font color="#FFFFFF">操作方式</font></div></td>
      <td width="13%"><div align="center"><font color="#FFFFFF">产品价1</font></div></td>
      <td width="15%"><div align="center"><font color="#FFFFFF">产品价2</font></div></td>
      <td width="18%"><div align="center"><font color="#FFFFFF">产品价3</font></div></td>
      <td width="19%"><div align="center"><font color="#FFFFFF">产品价4</font></div></td>
      <td width="15%"><div align="center"><font color="#FFFFFF">产品价5</font></div></td>
    </tr>
    <tr> 
      <td height="29"> <div align="center"> 
          <input name="Way" type="radio" class="unnamed1" value="1" checked>
          百分 
          <input name="Way" type="radio" class="unnamed1" value="2">
          差价</div></td>
      <td><div align="center"><font color="#FF0000">基数</font></div></td>
      <td><div align="center"> 
          <input name="je2" type="text" id="je2" size="8">
        </div></td>
      <td><div align="center"> 
          <input name="je3" type="text" id="je3" size="8">
        </div></td>
      <td><div align="center"> 
          <input name="je4" type="text" id="je4" size="8">
        </div></td>
      <td><div align="center"> 
          <input name="je5" type="text" id="je5" size="8">
        </div></td>
    </tr>
    <tr bgcolor="#000066"> 
      <td> <div align="center"> </div></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><div align="center"> 
          <input type="submit" name="Submit2" value="-操作-">
        </div></td>
    </tr>
  </table>
</form>
<p>&nbsp;</p>
<p><font color="#FF0000"><strong>企业邮局类:</strong></font></p>
<form name="form1" method="post" action="auto_je.asp?action=edit&w=mail">
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#000066"> 
      <td width="20%" height="17"> <div align="center"><font color="#FFFFFF">操作方式</font></div></td>
      <td width="13%"><div align="center"><font color="#FFFFFF">产品价1</font></div></td>
      <td width="15%"><div align="center"><font color="#FFFFFF">产品价2</font></div></td>
      <td width="18%"><div align="center"><font color="#FFFFFF">产品价3</font></div></td>
      <td width="19%"><div align="center"><font color="#FFFFFF">产品价4</font></div></td>
      <td width="15%"><div align="center"><font color="#FFFFFF">产品价5</font></div></td>
    </tr>
    <tr> 
      <td height="29"> <div align="center"> 
          <input name="Way" type="radio" class="unnamed1" value="1" checked>
          百分 
          <input name="Way" type="radio" class="unnamed1" value="2">
          差价</div></td>
      <td><div align="center"><font color="#FF0000">基数</font></div></td>
      <td><div align="center"> 
          <input name="je2" type="text" id="je2" size="8">
        </div></td>
      <td><div align="center"> 
          <input name="je3" type="text" id="je3" size="8">
        </div></td>
      <td><div align="center"> 
          <input name="je4" type="text" id="je4" size="8">
        </div></td>
      <td><div align="center"> 
          <input name="je5" type="text" id="je5" size="8">
        </div></td>
    </tr>
    <tr bgcolor="#000066"> 
      <td> <div align="center"> </div></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><div align="center"> 
          <input type="submit" name="Submit22" value="-操作-">
        </div></td>
    </tr>
  </table>
</form>
<p>&nbsp;</p>
<p><font color="#FF0000"><strong>网站推广类:</strong></font></p>
<form name="form1" method="post" action="auto_je.asp?action=edit&w=paget_2">
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#000066"> 
      <td width="20%" height="17"> <div align="center"><font color="#FFFFFF">操作方式</font></div></td>
      <td width="13%"><div align="center"><font color="#FFFFFF">产品价1</font></div></td>
      <td width="15%"><div align="center"><font color="#FFFFFF">产品价2</font></div></td>
      <td width="18%"><div align="center"><font color="#FFFFFF">产品价3</font></div></td>
      <td width="19%"><div align="center"><font color="#FFFFFF">产品价4</font></div></td>
      <td width="15%"><div align="center"><font color="#FFFFFF">产品价5</font></div></td>
    </tr>
    <tr> 
      <td height="29"> <div align="center"> 
          <input name="Way" type="radio" class="unnamed1" value="1" checked>
          百分 
          <input name="Way" type="radio" class="unnamed1" value="2">
          差价</div></td>
      <td><div align="center"><font color="#FF0000">基数</font></div></td>
      <td><div align="center"> 
          <input name="je2" type="text" id="je2" size="8">
        </div></td>
      <td><div align="center"> 
          <input name="je3" type="text" id="je3" size="8">
        </div></td>
      <td><div align="center"> 
          <input name="je4" type="text" id="je4" size="8">
        </div></td>
      <td><div align="center"> 
          <input name="je5" type="text" id="je5" size="8">
        </div></td>
    </tr>
    <tr bgcolor="#000066"> 
      <td> <div align="center"> </div></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><div align="center"> 
          <input type="submit" name="Submit222" value="-操作-">
        </div></td>
    </tr>
  </table>
</form>
<p>&nbsp;</p>
<table width="31%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><font color="#FF0000"><%= msg %></font></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
