<!--#include file=CONN.ASP-->
<!--#include file=cookies.asp-->
<%
dim flag
flag=request.cookies("foxwww")("fox")
if flag<9 then
response.Write "<script LANGUAGE='javascript'>alert('你目前的级别不允许此操作！');history.go(-1);</script>"
response.end
end if
if flag=10 then
response.Write "<script LANGUAGE='javascript'>alert('您只是后台测试员，请注意身份！');window.location='right.asp';</script>"
response.end
end if%>
<title>联系方式管理</title>
<link rel="stylesheet" type="text/css" href="images/fox.css">
<style type="text/css">
<!--
body {
	background-color: #CCCC99;
}
.style1 {color: #FF0000}
-->
</style>
<%
	dim sql
	dim rs
	dim dianhua,chuanzhen,wangzhi,dizhi,email,username,shouji,fanshi1,fanshi11,fanshi2,fanshi22
function HTMLEncode(fString)
if not isnull(fString) then
    fString = replace(fString, ">", "&gt;")
    fString = replace(fString, "<", "&lt;")
    fString = Replace(fString, CHR(32), "&nbsp;")
    fString = Replace(fString, CHR(9), "&nbsp;")
    fString = Replace(fString, CHR(34), "&quot;")
    fString = Replace(fString, CHR(39), "&#39;")
    fString = Replace(fString, CHR(13), "")
    fString = Replace(fString, CHR(10) & CHR(10), "</P><P> ")
    fString = Replace(fString, CHR(10), "<BR> ")
    'fString=ChkBadWords(fString)
    HTMLEncode = fString
end if
end function
	set rs=server.createobject("adodb.recordset")
	sql="select * from [FOX_lianxi]"
	rs.open sql,conn,1,3
    if request("ok")=1 then
    rs("dianhua")=request("dianhua")
    rs("chuanzhen")=request("chuanzhen")
    rs("wangzhi")=request("wangzhi")
    rs("email")=request("email")
    rs("username")=request("username")
    rs("shouji")=request("shouji")
    rs("dizhi")=request("dizhi")
    rs("fanshi1")=request("fanshi1")
    rs("fanshi11")=request("fanshi11")
    rs("fanshi2")=request("fanshi2")
    rs("fanshi22")=request("fanshi22")
    rs.update
    response.write "<font size=2>修改成功!</font><br>"
    response.end
    else
%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
  <tr>
    <td width="78%">
  <div align="center">
    <center>
  <table width="100%" height="92" border="1" cellpadding="2" bordercolor="#F7F7F7">
    <FORM name=theForm method=POST action=admin_lianxi.asp?ok=1>
    <tr bgcolor="#BDBEDE">
                      <td width="517" height="28" colspan="2" style="border-style: solid; border-width: 1" bgcolor="#CC3300">
                      <p class="style1" style="MARGIN-LEFT: 6px">
                <span style="font-size: 9pt"><font size="2">&nbsp;</font><font color="#FFFFFF">修改	联系方式&nbsp;&nbsp; 
				（如果相应项没有，请留空！）</font></td>
              </tr>
    <tr>
                      <td bgColor="#f7f7f7" height="23" width="89" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1" align="center" class="p9t">
                      <style="FONT-SIZE: 12px">
                      联 系 人：</td>
                      <td bgColor="#f7f7f7" height="23" width="667" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1" class="p9t">
                      <p align="left">
                      <style="FONT-SIZE: 12px">
                      <input name="username" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: 1px solid #FFFFFF; BORDER-LEFT: 1px solid #a2a2a2; BORDER-RIGHT: 1px solid #ffffff; BORDER-TOP: 1px solid #a2a2a2; COLOR: #333333;" tabIndex="1" value="<%=rs("username")%>" size="45" maxlength="50">
                      </td>
              </tr>
                  <tr>
                      <td bgColor="#f7f7f7" height="23" width="89" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1" align="center" class="p9t">
                      联系<style="FONT-SIZE: 12px">电话：</td>
                      <td bgColor="#f7f7f7" height="23" width="667" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1" class="p9t">
                      <p align="left">
                      <style="FONT-SIZE: 12px">
                      <input name="dianhua" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: 1px solid #FFFFFF; BORDER-LEFT: 1px solid #a2a2a2; BORDER-RIGHT: 1px solid #ffffff; BORDER-TOP: 1px solid #a2a2a2; COLOR: #333333;" tabIndex="1" value="<%=rs("dianhua")%>" size="45" maxlength="50">
                      </td>
              </tr>
                  <tr>
                      <td bgColor="#f7f7f7" height="23" width="89" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1" align="center" class="p9t">
                      <style="FONT-SIZE: 12px">
                      联系传真：</td>
                      <td bgColor="#f7f7f7" height="23" width="667" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1" class="p9t">
                      <p align="left">
                      <style="FONT-SIZE: 12px">
                      <input name="chuanzhen" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: 1px solid #FFFFFF; BORDER-LEFT: 1px solid #a2a2a2; BORDER-RIGHT: 1px solid #ffffff; BORDER-TOP: 1px solid #a2a2a2; COLOR: #333333;" tabIndex="1" value="<%=rs("chuanzhen")%>" size="45" maxlength="50">
                      </td>
              </tr>
                  <tr>
                      <td bgColor="#f7f7f7" height="23" width="89" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1" align="center" class="p9t">
                      <style="FONT-SIZE: 12px">
                      联系手机：</td>
                      <td bgColor="#f7f7f7" height="23" width="667" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1" class="p9t">
                      <p align="left">
                      <style="FONT-SIZE: 12px">
                      <input name="shouji" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: 1px solid #FFFFFF; BORDER-LEFT: 1px solid #a2a2a2; BORDER-RIGHT: 1px solid #ffffff; BORDER-TOP: 1px solid #a2a2a2; COLOR: #333333;" tabIndex="1" value="<%=rs("shouji")%>" size="45" maxlength="50">
                      </td>
              </tr>
                  <tr>
                      <td bgColor="#f7f7f7" height="23" width="89" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1" align="center" class="p9t">
                      <style="FONT-SIZE: 12px">
                      联系邮箱：</td>
                      <td bgColor="#f7f7f7" height="23" width="667" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1" class="p9t">
                      <p align="left">
                      <style="FONT-SIZE: 12px">
                      <input name="email" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: 1px solid #FFFFFF; BORDER-LEFT: 1px solid #a2a2a2; BORDER-RIGHT: 1px solid #ffffff; BORDER-TOP: 1px solid #a2a2a2; COLOR: #333333;" tabIndex="1" value="<%=rs("email")%>" size="45" maxlength="50">
                      </td>
              </tr>
                  <tr>
                      <td bgColor="#f7f7f7" height="23" width="89" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1" align="center" class="p9t">
                      网站地址：</td>
                      <td bgColor="#f7f7f7" height="23" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1" class="p9t">
                      <style="FONT-SIZE: 12px">
                      <input name="wangzhi" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: 1px solid #FFFFFF; BORDER-LEFT: 1px solid #a2a2a2; BORDER-RIGHT: 1px solid #ffffff; BORDER-TOP: 1px solid #a2a2a2; COLOR: #333333;" tabIndex="1" value="<%=rs("wangzhi")%>" size="45" maxlength="50"></td>
              </tr>
                  <tr>
                      <td bgColor="#f7f7f7" height="23" width="89" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1" align="center" class="p9t">
                      <style="FONT-SIZE: 12px">
                      联系地址：</td>
                      <td bgColor="#f7f7f7" height="23" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1" class="p9t">
                      <p align="left">
                      <style="FONT-SIZE: 12px">
                      <input name="dizhi" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: 1px solid #FFFFFF; BORDER-LEFT: 1px solid #a2a2a2; BORDER-RIGHT: 1px solid #ffffff; BORDER-TOP: 1px solid #a2a2a2; COLOR: #333333;" tabIndex="1" value="<%=rs("dizhi")%>" size="45" maxlength="50">&nbsp; 
						以上仍不够，请填写下面方式↓</td>
              </tr>
                  <tr>
                      <td bgColor="#EBEBEB" height="23" width="89" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1" align="center" class="p9t">
                      <style="FONT-SIZE: 12px">
                      <input name="fanshi1" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: 1px solid #FFFFFF; BORDER-LEFT: 1px solid #a2a2a2; BORDER-RIGHT: 1px solid #ffffff; BORDER-TOP: 1px solid #a2a2a2; COLOR: #333333;" tabIndex="1" value="<%=rs("fanshi1")%>" size="13" maxlength="50"></td>
                      <td bgColor="#EBEBEB" height="23" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1" class="p9t">
                      <p align="left">
                      <span style="FONT-SIZE: 12px">
                      <input name="fanshi11" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: 1px solid #FFFFFF; BORDER-LEFT: 1px solid #a2a2a2; BORDER-RIGHT: 1px solid #ffffff; BORDER-TOP: 1px solid #a2a2a2; COLOR: #333333;" tabIndex="1" value="<%=rs("fanshi11")%>" size="45" maxlength="50">&nbsp; 
						前面填写联系方式，后面填写内容</td>
              </tr>
                  <tr>
                      <td bgColor="#EBEBEB" height="23" width="89" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1" align="center" class="p9t">
                      <span style="FONT-SIZE: 12px">
                      <input name="fanshi2" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: 1px solid #FFFFFF; BORDER-LEFT: 1px solid #a2a2a2; BORDER-RIGHT: 1px solid #ffffff; BORDER-TOP: 1px solid #a2a2a2; COLOR: #333333;" tabIndex="1" value="<%=rs("fanshi2")%>" size="13" maxlength="50"></td>
                      <td bgColor="#EBEBEB" height="23" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1" class="p9t">
                      <p align="left">
                      <span style="FONT-SIZE: 12px">
                      <input name="fanshi22" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: 1px solid #FFFFFF; BORDER-LEFT: 1px solid #a2a2a2; BORDER-RIGHT: 1px solid #ffffff; BORDER-TOP: 1px solid #a2a2a2; COLOR: #333333;" tabIndex="1" value="<%=rs("fanshi22")%>" size="45" maxlength="50">
                      
                      <span style="FONT-SIZE: 12px">
                      &nbsp;前面填写联系方式，后面填写内容</td>
              </tr>
    <tr valign="middle" bgcolor="#eeeeee">
                <td height="27" style="border-left-style: solid; border-left-width: 1; border-right-style: solid; border-right-width: 1; border-bottom-style: solid; border-bottom-width: 1" colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><div align="center">
                      <input type="submit" value="确认要修改" name="d1">
                    </div></td>
                  </tr>
                </table></td>
              </tr>
			  <%
    end if
	rs.close
	conn.close
	set rs=nothing
	set conn=nothing
%>
</form>
  </table>
    </center>
  </div>
    </td>
  </tr>
</table></body></html>