⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 community_notice_modify.asp

📁 泡泡堂服务端内有建站说明,喜欢玩泡泡堂的朋友下载开发.
💻 ASP
字号:
<%menutype = "community"%>

<!-- #include virtual = /common/top.asp -->

<%menu_down1 = "yes"%>
<%menu_down1_1 = "yes"%>

<!-- #include virtual = /community/community_menu.asp -->

<table width="100%" border="0" cellspacing="0" cellpadding="0" background="/community/images/bg_subbody.gif" height="100%">
	<tr> 
	  <td> 
		<div align="center"><img src="images/community_title_board_notice.gif"></div>
	  </td>
	</tr>
	<tr> 
	  <td valign="top"> 

<!-- #include virtual="/common/BombConnDB.asp" -->
<!-- #include virtual="/common/SiteUtils.asp" -->

<%
login_check = Request.Cookies("LOGIN")("check")
bomb_id		= Request.Cookies("LOGIN")("bomb_id")
bomb_name	= Request.Cookies("LOGIN")("bomb_name")

if (login_check = "" OR bomb_name= "") then%>
	<script language="javascript">
	<!--
		alert("你那位啊?.");
		history.back();
	//-->
	</script>
<%
else

	mode  = request ("mode")
	index = request ("index")

	if mode = "modify" then
		mode = "modify"
		sql = "SELECT name, title, comment FROM AdminBBS WHERE idx = " & index
		set rs = DBCon.Execute (sql)
		if rs.EOF then
			error_msg = "臂捞 粮犁窍瘤 臼嚼聪促."
			PageBack (error_msg)
		else
			pw = bomb_id
			if (bomb_id <> "菂菂" and bomb_id <> trim(rs("name"))) then
				error_msg = "累己磊啊 酒凑聪促."
				PageBack (error_msg)
			else
				bomb_id	= rs("name")
				title = rs("title")
				text = rs("comment")
				text = replace(text, "<BR>", CRLF)
				text = replace(text, "<br>", CRLF)
			end if
		end if
		rs.Close
		set rs = nothing
	else
		mode	= "insert"
		title	= ""
		text	= ""
	end if
%>

	<script language=javascript>
	function Checkit ()
	{
		form = document.edit;
		if (confirm ("臂阑 殿废 窍矫摆嚼聪鳖?"))
		{
			if (form.title.value == '') {
				alert ("臂狼 力格阑 静技夸.");
				form.title.focus ();
				return false;
			}
			if (form.text.value.length < 5) {
				alert ("郴侩阑 粱 歹 盲况林技夸.");
				form.text.focus ();
				return false;
			}
		}
		else
		{
			return false;
		}
		return true;
	}
	</script>


		  <table width="550" border="0" cellspacing="0" cellpadding="0" align="center">
			<tr> 
			  <td>&nbsp;</td>
			</tr>
			<tr> 
			  <td>&nbsp; </td>
			</tr>
			<tr> 
			  <td> 
				<div align="center"><img src="/community/images/<%=mode%>_title.gif" width="500" height="26"></div>
			  </td>
			</tr>
			<tr> 
			  <td height="2"></td>
			</tr>
			<tr> 
			  <td class="boardtext03"> 
			<form name=edit action="community_notice_write.asp" method=post onsubmit="return Checkit()">
			<input type=hidden name="index" value="<%=index%>">
			<input type=hidden name="mode" value="<%=mode%>">
				<table width="500" border="0" cellspacing="0" cellpadding="0" align="center" class="boardtext03" bgcolor="#E1E1E1">
				  <tr> 
					<td colspan="2">&nbsp;</td>
				  </tr>
				  <tr> 
					<td width="50"> 
					  <div align="center"><img src="/community/images/caution.gif" width="27" height="26"></div>
					</td>
					<td width="450">傍瘤荤亲 利绰 镑涝聪促.</td>
				  </tr>
				  <tr> 
					<td colspan="2">&nbsp;</td>
				  </tr>
				  <tr> 
					<td colspan="2"> 
					  <table width="80%" border="0" cellspacing="1" cellpadding="3" align="center" class="boardtext03">
						<tr> 
						  <td width="20%" bgcolor="#CCCCCC"> 
							<div align="right">ID</div>
						  </td>
						  <td width="80%"><%=bomb_id%></td>
						</tr>
						<tr> 
						  <td width="20%" bgcolor="#CCCCCC"> 
							<div align="right">捞皋老</div>
						  </td>
						  <td width="80%"> 
							<input type="text" name="email" style="background-color:#FFFFFF; border:1 solid #7D7D7D" size="30" value="<%=bomb_email%>">
						  </td>
						</tr>
						<tr> 
						  <td width="20%" bgcolor="#CCCCCC"> 
							<div align="right">力格</div>
						  </td>
						  <td width="80%"> 
							<input type="text" name="title" style="background-color:#FFFFFF; border:1 solid #7D7D7D" size="45" value="<%=title%>">
						  </td>
						</tr>
						<tr> 
						  <td width="20%" bgcolor="#CCCCCC"> 
							<div align="right">郴侩</div>
						  </td>
						  <td width="80%"> 
							<textarea name="text" style="background-color:#FFFFFF; border:1 solid #7D7D7D" cols="44" rows="10"><%=text%></textarea>
						  </td>
						</tr>
					  </table>
					</td>
				  </tr>
				  <tr> 
					<td colspan="2">&nbsp;</td>
				  </tr>
				  <tr> 
					<td colspan="2"> 
					  <table width="130" border="0" cellspacing="0" cellpadding="0" align="center">
						<tr> 
						  <td width="55"><input type="image" src="/community/images/enter.gif" width="56" height="23" border="0"></td>
						  <td width="20">&nbsp;</td>
						  <td width="55"><a href="community_notice.asp"><img src="/community/images/cancel.gif" width="56" height="23" border="0"></a></td>
						</tr>
					  </table>
					</td>
				  </tr>
				  <tr> 
					<td colspan="2">&nbsp;</td>
				  </tr>
				</table>
			</form>
			  </td>
			</tr>
		  </table>

<%
end if 
%>

	  </td>
	</tr>
  </table>

<!-- #include virtual = /common/bottom.asp -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -