www.gusucode.com > 云枫工作室企业网站源代码第五版 1.0 > docc/admin/peizhi.asp

    <%@LANGUAGE="VBSCRIPT"%>
<!--#include file="conn.asp"-->
<!--#include file="check.asp"-->
<!--#include file="include.asp"-->
<%

if Request.Form("xiaominjun")="xiaominjun" then
set rs1=server.createobject("adodb.recordset")
sql="select * from peizhi"
rs1.open sql,conn,1,3
rs1("xinpinzhanshi")=trim(request.Form("xinpinzhanshi"))
rs1("xinpinzhanshitu")=trim(request.Form("xinpinzhanshitu"))
rs1("kefuzhongxin")=trim(request.Form("kefuzhongxin"))
rs1("kefuzhongxintu")=trim(request.Form("kefuzhongxintu"))
rs1("dailizhuanqu")=trim(request.Form("dailizhuanqu"))
rs1("dailizhuanqutu")=trim(request.Form("dailizhuanqutu"))
rs1("chengpinyingcai")=trim(request.Form("chengpinyingcai"))
rs1("chengpinyingcaitu")=trim(request.Form("chengpinyingcaitu"))
rs1("guanyushida")=trim(request.Form("guanyushida"))
rs1("guanyushidatu")=trim(request.Form("guanyushidatu"))
rs1("remaichanpin")=trim(request.Form("remaichanpin"))
rs1("remaichanpintu")=trim(request.Form("remaichanpintu"))
rs1("chanpin1")=trim(request.Form("chanpin1"))
rs1("chanpin1tu")=trim(request.Form("chanpin1tu"))
rs1("chanpin2")=trim(request.Form("chanpin2"))
rs1("chanpin2tu")=trim(request.Form("chanpin2tu"))
rs1("chanpin3")=trim(request.Form("chanpin3"))
rs1("chanpin3tu")=trim(request.Form("chanpin3tu"))
rs1.update
rs1.close
response.redirect "peizhi.asp"
end if

sql="select * from peizhi"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
function check()
{

	if(form1.wzbiaoti.value == "")
	{
		alert("网站标题不能为空!");
		form1.wzbiaoti.focus();
		return(false);
	}

	if(form1.logodizhi.value == "")
	{
		alert("logo地址不能为空!");
		form1.logodizhi.focus();
		return(false);
	}

	if(form1.banner.value == "")
	{
		alert("Banner地址不能为空!");
		form1.banner.focus();
		return(false);
	}
		if(form1.sytpmc.value == "")
	{
		alert("首页图片新闻名称不能为空!");
		form1.sytpmc.focus();
		return(false);
	}
		if(form1.sytpdz.value == "")
	{
		alert("首页图片新闻的图片地址不能为空!");
		form1.sytpdz.focus();
		return(false);
	}

}
</script>
</head>

<body bgcolor="#799AE1">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#668ED4">
  <tr> 
    <td height="41" colspan="3"><div align="center"><img src="images/toplogo.gif" width="500" height="60"></div></td>
  </tr>
  <tr bgcolor="#f5f5f5"> 
    <td width="800" height="104" valign="top" bgcolor="#668ED4">&nbsp;</td>
    <td width="800" valign="top" class="unnamed1">
      <form name="myform" method="POST" action="peizhi.asp?xingming=xiaominjun" onSubmit="javascript:return check()">
        <table width="800" border="1" align="center" cellpadding="2" cellspacing="1" bordercolor="#D4D0C8" bgcolor="#DFEFFF"  >
          <tr  bgcolor="#668ED4" >
            <td colspan="3">
              <div align="center"><strong>网 站 首 页 图 片 管 理</strong></div></td>
          </tr>
          <tr>
            <td colspan="3" class="topbg"> <strong>网站首页图片管理</strong></td>
          </tr>
          
		  <tr>
            <td colspan="3" class="tdbg">     <div align="center">
              <input name="fimage" type="text" id="fimage" size="45"> 
              <input type="button" name="Submit22" value="上传图片" onClick="window.open('upload_image.asp?formname=myform&editname=fimage&uppath=userimages&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">          
            </div></td>
          </tr>
		  <tr>
            <td width="113" class="tdbg"><div align="center"><strong>图片类别</strong></div></td>
            <td width="294" class="tdbg" style="font-weight: bold"><div align="center">连接地址</div></td>
            <td width="369" class="tdbg"><div align="center" style="font-weight: bold">图片地址</div></td>
          </tr><!--
          <tr>
            <td class="tdbg"><STRONG>新品展示:</STRONG></td>
            <td width="294" class="tdbg"><input name="xinpinzhanshi" type="text" id="wzdizhi2" value="<%=rs("xinpinzhanshi")%>" size="40" maxlength="255"></td>
            <td width="369" class="tdbg"><input name="xinpinzhanshitu" type="text" id="wzdizhi" value="<%=rs("xinpinzhanshitu")%>" size="40" maxlength="255"></td>
          </tr>-->
		  <tr>
            <td class="tdbg"><STRONG>新品展示:</STRONG></td>
            <td class="tdbg"><INPUT name="remaichanpin" type="text" id="banner" value="<%=rs("remaichanpin")%>" size="40" maxlength="255"></td>
            <td class="tdbg"><input name="remaichanpintu" type="text" id="wzdizhi26" value="<%=rs("remaichanpintu")%>" size="40" maxlength="255">
            200*140</td>
          </tr>
          <tr>
            <td width="113" class="tdbg"><STRONG>客服中心:</STRONG></td>
            <td class="tdbg">&nbsp;</td>
            <td class="tdbg"><input name="kefuzhongxintu" type="text" id="wzdizhi22" value="<%=rs("kefuzhongxintu")%>" size="40" maxlength="255">
            224*104</td>
          </tr>
          <tr>
            <td class="tdbg"><STRONG>代理专区:</STRONG></td>
            <td class="tdbg"><INPUT name="dailizhuanqu" type="text" id="banner" value="<%=rs("dailizhuanqu")%>" size="40" maxlength="255"></td>
            <td class="tdbg"><input name="dailizhuanqutu" type="text" id="wzdizhi23" value="<%=rs("dailizhuanqutu")%>" size="40" maxlength="255">
            224*96</td>
          </tr>
		  <tr>
            <td class="tdbg"><STRONG>诚聘英才:</STRONG></td>
            <td class="tdbg"><INPUT name="chengpinyingcai" type="text" id="banner" value="<%=rs("chengpinyingcai")%>" size="40" maxlength="255"><input name="xiaominjun" type="hidden" value="xiaominjun"></td>
            <td class="tdbg"><input name="chengpinyingcaitu" type="text" id="wzdizhi24" value="<%=rs("chengpinyingcaitu")%>" size="40" maxlength="255">
            224*64</td>
          </tr>
		  <tr>
            <td class="tdbg"><STRONG>关于实达:</STRONG></td>
            <td class="tdbg"><input name="guanyushida" type="text" id="guanyushidatu" value="<%=rs("guanyushida")%>" size="40" maxlength="255"></td>
            <td class="tdbg"><input name="guanyushidatu" type="text" id="wzdizhi25" value="<%=rs("guanyushidatu")%>" size="40" maxlength="255">
            210*81</td>
          </tr>
		  
		  <tr>
            <td class="tdbg"><STRONG>产品1:</STRONG></td>
            <td class="tdbg">&nbsp;</td>
            <td class="tdbg"><input name="chanpin1tu" type="text" id="wzdizhi27" value="<%=rs("chanpin1tu")%>" size="40" maxlength="255">
            209*79</td>
          </tr>
		  <tr>
            <td class="tdbg"><STRONG>产品2:</STRONG></td>
            <td class="tdbg">&nbsp;</td>
            <td class="tdbg"><input name="chanpin2tu" type="text" id="wzdizhi28" value="<%=rs("chanpin2tu")%>" size="40" maxlength="255">
            209*79</td>
          </tr>
		  <tr>
            <td class="tdbg"><STRONG>产品3:</STRONG></td>
            <td class="tdbg">&nbsp;</td>
            <td class="tdbg"><input name="chanpin3tu" type="text" id="wzdizhi29" value="<%=rs("chanpin3tu")%>" size="40" maxlength="255">
            209*79</td>
          </tr>
		  
          <tr>
            <td class="tdbg">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="3" align="center" class="tdbg">
           
              <input name="cmdSave" type="submit" id="cmdSave" value=" 保存设置 " <% 'If ObjInstalled=false Then response.write "disabled" %>>            </td>
          </tr>
          <%

%>
        </table>
      </form>
    <p>&nbsp;</p>    </td>
    <td width="800" valign="top" bgcolor="#668ED4">&nbsp;</td>
  </tr>
  <tr> 
    <td colspan="3" bgcolor="#f5f5f5">&nbsp;</td>
  </tr>
</table>
</body>
</html>
<%  
	rs.Close()
	Set rs = Nothing
%>