www.gusucode.com > 山寨版广告信息招贴网源码程序 > 山寨版广告信息招贴网源码程序/ewuyi/dir_发布/admin/AdteE.asp

    <!-- #include file="conn.asp"-->
<!-- #include file="Sess.asp"-->
<%
If Request.Form("title")<>"" Then
set rs=Server.CreateObject("adodb.recordset")
rs.open "select * from ewuyi_info where adid=" & Request("id"),conn,3,3
rs("title")=Request.Form("dtitle")
rs("bid")=Request.Form("ClassID_id")
rs("cid")=Request.Form("ClassID")
rs("text")=Request.Form("dtext")
rs("img")=Request.Form("upload")
rs("tel")=Request.Form("dtel")
rs("user")=Request.Form("dusername")
rs("stop")=dateadd("d",request.form("dstop"),date())
rs.update
rs.close
Call AlertUrl("修改成功!","AdSite.asp")
End if
set rs=Server.CreateObject("ADODB.recordset")
sql="select * from ewuyi_info where adid="&Request("id")&""
rs.open sql,conn,1,1
title=rs("title")
bid=rs("bid")
cid=rs("Cid")
text=rs("text")
img=rs("img")
user=rs("user")
tel=rs("tel")
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>站长帐户 - <%=sitetitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
<link href="/css/accounts.css" type="text/css" rel="stylesheet" />
<script src="/user/dir.asp" type="text/javascript"></script>
</head>
<body bgcolor="#FFFFFF">
<DIV id=Head>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
 <td width="220" align="center" style="padding:1px 0px 0px 0px;"><a href="../index.asp" onFocus="this.blur();"><img src="../img/logo.gif" width=206 height=50 vspace=7 border=0 alt="netsoz中文网站信息"></a></td>
 <td valign="top" style="padding:1px 0px 0px 0px;"><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
 <tr>
 <td align="right" valign="top" style="padding:6px 16px 0px 0px;">
 
 <strong><%=Session("user")%></strong> - <a href="../accounts/" class="linkNo">我的帐户</a> - <a href="../index.asp" class="linkNo">网站首页</a> </td>
 </tr>
</table>
</td>
 </tr>
</table> 
 <table width="100%" border="0" cellpadding="2" cellspacing="1" style="border-top:1px solid #99B2CC; border-bottom:1px solid #99B2CC;">
 <tr>
 <td height="20" bgcolor="#DBE9F4">&nbsp;您的位置:<strong><%=Session("user")%></strong> 的管理中心</td>
 </tr>
 </table>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td width="160" valign="top" style="padding:6px 0px 0px 0px;">
 <table width="100%" border="0" cellspacing="1" cellpadding="2">
 <tr>
<td nowrap="nowrap" class="f60b14" style="padding:3px 0px 3px 6px;">管理中心</td>
 </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
 <tr>
 <td height="1" background="../img/dot_line.gif"></td>
 </tr>
</table>
<!-- #include file="Menu.asp"-->
<table width="100%" border="0" cellspacing="1" cellpadding="2" style="margin-bottom:30px;">
 <tr>
 <td height="1" background="../img/dot_line.gif"></td>
 </tr>
</table>
 
 </td>
 <td width="1" background="../img/dot_line.gif"></td>
 <td valign="top" style="padding:0px 0px 10px 16px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px;">
 <tr>
 <td height="1" background="../img/dot_line.gif"></td>
 </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr> 
 <td><span class=txtcolor><strong>添加网站</strong></span><br><br></td>
 </tr>
</table>
 <table width="100%" border="0" cellspacing="2" cellpadding="2" bgcolor="#FFFFFF" style="margin-bottom:6px;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<form name="postart" method="post" action="../user/AdSave.asp" onSubmit="return checkadd()">
<input type="hidden" name="action" value="add" />
<tr> 
<td colspan=2 valign="middle"><b>提交信息基本信息:</b></td>
 </tr>
 <tr>
 <td valign="top"> 
 <table width="100%" border="0" cellspacing="2" cellpadding="2" bgcolor="#FFFFFF" style="margin-bottom:6px;">
 <tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap><strong>信息标题:</strong></td>
 <td class="gray"><input type="text" name="dtitle" class=box maxlength="25" value="<%=title%>" onfocus="select()"><font color="#FF0000">* 20字以内</font></td>
 </tr><tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap bgcolor="#FFFFFF"><strong>所属信息:</strong></td>
<td bgcolor="#FFFFFF">
<SELECT onchange=change_dir(this.options[this.selectedIndex].value) size=1 name=ClassID_id id="ClassID_id">
 <OPTION value="<%=bid%>">一级类别不变</OPTION><script>
for (var i=0;i<onecount_yi;i++)
if(""==subcat_yi[i][0])
document.write("<option value='"+subcat_yi[i][1]+"' selected>"+subcat_yi[i][0]+"</option>")
else
document.write("<option value='"+subcat_yi[i][1]+"'>"+subcat_yi[i][0]+"</option>")
</script>
 </SELECT> 
 <SELECT id=ClassID name=ClassID>
 <OPTION value="<%=cid%>">二级类别不变</OPTION>
 </SELECT></td>
 </tr> 
 <tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap bgcolor="#FFFFFF"><strong>信息截图:</strong></td>
<td bgcolor="#FFFFFF" class="gray"><input name="upload" type="text" class="inputborder" value="<%=img%>" size="20" maxlength="20"></td>
 </tr>
 <tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap bgcolor="#FFFFFF"><strong>信息内容:</strong></td>
<td bgcolor="#FFFFFF"><textarea rows="5" name="dtext" cols="50" maxlength="300"><%=text%></textarea><br>
<span class="gray">200个字符以内,不要加入无关文字和符号。</span></td>
 </tr>
<tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap bgcolor="#FFFFFF"><strong>联 系 人:</strong></td>
<td bgcolor="#FFFFFF" class="gray"><input name="dusername" type="text" class="inputborder" value="<%=user%>" size="20" maxlength="20"></td>
 </tr>
<tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap bgcolor="#FFFFFF"><strong>联系电话:</strong></td>
<td bgcolor="#FFFFFF" class="gray"><input name="dtel" type="text" class="inputborder" value="<%=tel%>" size="20" maxlength="20"></td>
 </tr>
<tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap bgcolor="#FFFFFF"><strong>有 效 期:</strong></td>
<td bgcolor="#FFFFFF" class="gray"><select size="1" name="dstop">
 <option selected value="0">不增加日期</option>
 <option value="7">一星期</option>
 <option value="15">半个月</option>
 <option value="31">一个月</option>
 <option value="61">两个月</option>
 <option value="92">三个月</option>
 <option value="183">半年</option>
 <option value="365">一年</option>
 </select></td>
 </tr>
 </table>
 <div style="padding:0px 0px 0px 160px;">
 <input type="submit" name="Submit" value=" 提交 ">
<input type="reset" name="reset" value=" 重填 " ><br><br></div>
 </td>
 </tr>
 </form>
 </table>
 </td>
 </tr>
 </table><%call footer%>
</div>
</body>
</html>