📄 newtopic.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<%
TopID=Request("topid")
ID=Request("id")
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>{崭}设计_v1.0 [http://www.picicn.com]</title>
<link href="stely.css" rel="stylesheet">
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {color: #FF6600}
.style3 {color: #009900}
.style4 {color: #0099FF}
.style5 {color: #FF00FF}
.style6 {color: #FF3333}
.style7 {color: #000000}
.style9 {color: #FF0000; font-weight: bold; }
.style10 {color: #FF6600; font-weight: bold; }
-->
</style>
</head>
<body>
<!--#include file="top.asp"-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td height="24" background="images/link_bg.gif" class="yellow"> <img src="images/link_vt.gif" width="13" height="13" align="absmiddle"> 您当前的位置:<a href="index.asp"><span class="red">{崭}设计</span></a> >>>
<%
sql="select * from topforum where ID="&TopID
set rs=Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
%>
<span class="red"><%=rs("Title")%></span>
<%rs.close%>
>>>
<%
sql="select * from forum where ID="&ID&" and TopForum="&TopID
set rs=Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
ForumTitle=rs("Title")
%>
<a href="forum.asp?id=<%=ID%>&topid=<%=TopID%>"><span class="red"><%=ForumTitle%></span></a>
<%rs.close%>
>>> 发表新主题</td>
</tr>
</table></td>
</tr>
<tr>
<td height="6" bgcolor="#FFFFFF"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" background="images/7_bg.gif"><img src="images/7_bg.gif" width="1" height="10"></td>
</tr>
<tr>
<td width="26" bgcolor="#FF4E00"><img src="images/8_left.gif" width="26" height="23"></td>
<td bgcolor="#FF4E00" class="white">新主题内容</td>
</tr>
<tr>
<td colspan="2" background="images/9_bg.gif"><img src="images/9_bg.gif" width="1" height="3"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
<form action="fbzt.asp" method="post" name="Newtopic" onSubmit="return voss()">
<input name="TopID" type="hidden" value="<%=TopID%>">
<input name="ID" type="hidden" value="<%=ID%>">
<tr bgcolor="#FFFFFF">
<td width="110"><span class="style9">选择文字颜色:</span></td>
<td bgcolor="#FFFFFF">
<input name="Color" type="radio" value="666666" checked>
默认灰
<input type="radio" name="Color" value="FF0000">
<span class="style1">火红</span>
<input type="radio" name="Color" value="FF6600">
<span class="style2">橙黄</span>
<input type="radio" name="Color" value="009900">
<span class="style3">草绿</span>
<input type="radio" name="Color" value="#0099FF">
<span class="style4">天蓝</span>
<input type="radio" name="Color" value="FF00FF">
<span class="style5">紫色</span>
<input type="radio" name="Color" value="FF3333">
<span class="style6">瑰红</span>
<input type="radio" name="Color" value="000000">
<span class="style7">纯黑</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="style9">选择表情符号:</td>
<td><table width="450" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td><a href="#bottom" onClick="face('1')"><img src="face/face1.gif" width="15" height="15" border="0"></a></td>
<td><a href="#bottom" onClick="face('2')"><img src="face/face2.gif" width="15" height="15" border="0"></a></td>
<td><a href="#bottom" onClick="face('3')"><img src="face/face3.gif" width="15" height="15" border="0"></a></td>
<td><a href="#bottom" onClick="face('4')"><img src="face/face4.gif" width="15" height="15" border="0"></a></td>
<td><a href="#bottom" onClick="face('5')"><img src="face/face5.gif" width="15" height="15" border="0"></a></td>
<td><a href="#bottom" onClick="face('6')"><img src="face/face6.gif" width="15" height="15" border="0"></a></td>
<td><a href="#bottom" onClick="face('7')"><img src="face/face7.gif" width="15" height="15" border="0"></a></td>
<td><a href="#bottom" onClick="face('8')"><img src="face/face8.gif" width="15" height="15" border="0"></a></td>
<td><a href="#bottom" onClick="face('9')"><img src="face/face9.gif" width="15" height="15" border="0"></a></td>
<td><a href="#bottom" onClick="face('10')"><img src="face/face10.gif" width="15" height="15" border="0"></a></td>
<td><a href="#bottom" onClick="face('11')"><img src="face/face11.gif" width="22" height="15" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="style9">使用特殊功能:</td>
<td bgcolor="#FFFFFF"><a onClick="insertimg()" style='cursor:hand'><span class="red">插入图片</span></a> | <a onClick="inserturl()" style='cursor:hand'><span class="red">插入链接</span></a> | <a onClick="muc()" style='cursor:hand'><span class="red">插入MP3/WMA音乐</span></a> | <A onclick="mucrm()"><span class="red" style='cursor:hand'>插入RM音乐</span></a> | <a onClick="inserttext('B')" style='cursor:hand;'><b>粗体</b></a> | <a onClick="inserttext('I')" style='cursor:hand;'><i>斜体</i></a> | <a onClick="inserttext('U')" style='cursor:hand'><u>下滑线</u></a> | <a onClick="inserthr()" style='cursor:hand'>插入横线</a> </td>
</tr>
<tr>
<td height="35" bgcolor="#F5F5F5" class="style10">上传图片文件:</td>
<td bgcolor="#F5F5F5"><iframe frameborder="0" height="30" scrolling="no" src="upclass/upfile1.asp" width="100%"></iframe></td>
</tr>
<tr>
<td bgcolor="#F5F5F5" class="style3"><strong>*填写文章标题:</strong></td>
<td bgcolor="#F5F5F5"><input name="Title" type="text" id="Title" size="30" maxlength="30">
(限制30个字符!) </td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF" class="style3"><strong>*填写文章内容:</strong></td>
<td bgcolor="#FFFFFF"><textarea name="bodys" rows="20" onKeyDown="ctlent()"></textarea></td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF" class="style3"> </td>
<td bgcolor="#FFFFFF"><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
</form>
<Script language="javascript">
var width=window.screen.width;
if (width==1152){
Newtopic.bodys.cols='130';
}
if (width==800){
Newtopic.bodys.cols='80';
}
if (width==1024){
Newtopic.bodys.cols='110';
}
function inserthr(){
hr='[---------------------------------------------------------]'
Newtopic.bodys.value=(Newtopic.bodys.value+'\n'+hr+'\n');
}
function inserttext(t){
texts=prompt('请输入文字!','您的文字。')
texts='[LYL_'+t+']'+texts+'[LYL_/'+t+']'
Newtopic.bodys.value=(Newtopic.bodys.value+'\n'+texts);
}
function insertimg(){
imgsrc=prompt('请输入图片地址:','http://');
imgsrc='[LYL_IMG]'+imgsrc+'[LYL_/IMG]';
Newtopic.bodys.value=(Newtopic.bodys.value+'\n'+imgsrc);
}
function muc(){
muca=prompt('请输入音乐文件地址:(.mp3 or .wma)','http://');
muc='[LYL_MUC]'+muca+'[LYL_/MUC]';
Newtopic.bodys.value=(Newtopic.bodys.value+'\n'+muc);
}
function mucrm(){
muca=prompt('请输入音乐文件地址:(.rm)','http://');
muc='[LYL_RM]'+muca+'[LYL_/RM]';
Newtopic.bodys.value=(Newtopic.bodys.value+'\n'+muc);
}
function inserturl(){
urls=prompt('请输入链接地址:','http://');
urlname=prompt('请输入链接名称:','点击这里打开');
Newtopic.bodys.value=(Newtopic.bodys.value+'\n[LYL_URL]'+urls+'[LYL_NAME]'+urlname+'[LYL_/URL]');
}
function face(NMBOR){
Newtopic.bodys.value=('[FACE'+NMBOR+']'+'\n'+Newtopic.bodys.value);
}
function voss()
{
if (Newtopic.bodys.value==''||Newtopic.bodys.value==' '||Newtopic.bodys.value==' '||Newtopic.title.value==''||Newtopic.title.value==' '||Newtopic.title.value==' '){
alert('[标题]或[内容] 为空,不能提交!');
return false;
}
else{
return true;
this.document.Newtopic.submit();
}
}
function ctlent(eventobject){
if(event.ctrlKey && window.event.keyCode==13){
if (Newtopic.bodys.value==''||Newtopic.bodys.value==' '||Newtopic.bodys.value==' '||Newtopic.title.value==''||Newtopic.title.value==' '||Newtopic.title.value==' '){
alert('[标题]或[内容] 为空,不能提交!');
return false;
}
else{
this.document.Newtopic.submit();
}
}
}
</Script>
</table>
<!--#include file="bottom.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -