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

📄 dvpost.js

📁 胜天购物销售系统前台购买特征: 时代购物系统前台购物车部分界面友好
💻 JS
📖 第 1 页 / 共 4 页
字号:
function rplist()
{
	this.username=new Array();
	this.dateandtime=new Array();
	this.topic=new Array();
	this.body=new Array();
}
var relist=new rplist()
function dvbbs_post(paction,isaudit,replyid,announceid,star,totalusetable,content)
{
	var postaction='';
	switch(paction){
	case "reannounce":
	document.write ('<form action="savereannounce.asp?&method=Topic&boardID=' + Dvbbs.BoardID + '" method=POST onSubmit="submitonce(this)" name=frmAnnounce>');
	document.write ('<input type=hidden name="followup" value="' + replyid + '">');
	document.write ('<input type=hidden name="rootID" value="' + announceid + '">');
	document.write ('<input type=hidden name="star" value="' + star + '">');
	document.write ('<input type=hidden name="TotalUseTable" value="' + totalusetable + '">');
	document.write ('<input type="hidden" name="upfilerename">');
	postaction="发表回复";
	break;
	case "edit":
	postaction="编辑帖子";
	document.write ('<form action="saveditannounce.asp?boardID=' + Dvbbs.BoardID + '" method=POST onSubmit="submitonce(this)" name=frmAnnounce>');
	document.write ('<input type=hidden name="replyid" value="' + replyid + '">');
	document.write ('<input type=hidden name="ID" value="' + announceid + '">');
	document.write ('<input type=hidden name="star" value="' + star + '">');
	document.write ('<input type=hidden name="TotalUseTable" value="' + totalusetable + '">');
	document.write ('<input type="hidden" name="upfilerename">');
	
	break;
	case "announce":
	document.write ('<form action="Saveannounce.asp?boardID=' + Dvbbs.BoardID + '" method=POST onSubmit="submitonce(this)" name=frmAnnounce>');
	document.write ('<input type="hidden" name="upfilerename">');
	
	postaction="发表帖子";
	document.write ('<form action=Savevote.asp?boardID='+ Dvbbs.BoardID +' method=POST onSubmit=submitonce(this) name=frmAnnounce>');
	break;
	case "vote":
	document.write ('<form action="savevote.asp?boardID=' + Dvbbs.BoardID + '" method=POST onSubmit="submitonce(this)" name=frmAnnounce>');
	postaction="发表投票";
	document.write ('<input type="hidden" name="upfilerename">');
	
	break;
	}

	document.write ("<table cellpadding=3 cellspacing=1 align=center class=tableborder1>")
	document.write ("<tr><th width=100% align=left colspan=2>&nbsp;&nbsp;" + postaction)
	if (isaudit=='1'){document.write ("(本版面所有帖子都要经过管理员审核方可发表)")}
	document.write ("</th></tr>")
	document.write ("<tr><td width=20% class=tablebody2><b>用户名</b></td>")
	document.write ("<td width=80% class=tablebody2><input name=username value=" + Dvbbs.MemberName + " class=FormClass>&nbsp;&nbsp;<font color=" + Dvbbs.Forum_Body[8] + "><b>*</b></font><a href=reg.asp>您没有注册?</a>")
	document.write ("</td></tr>")
	document.write ("<tr><td width=20% class=tablebody1><b>密码</b></td>")
	document.write ("<td width=80% class=tablebody1><input name=passwd type=password value=" + Dvbbs.MemberWord + " class=FormClass><font color=" + Dvbbs.Forum_Body[8] + ">&nbsp;&nbsp;<b>*</b></font><a href=lostpass.asp>忘记密码?</a>")
	if (paction=="reannounce")
	{
		document.write ('&nbsp;&nbsp;<input type="checkbox" name="reishow" value=""  onclick="showtitle();">');
		document.write ('标题<span id=advance>采用</span>“回复:XXX....”');
	}
	document.write ("</td></tr>")
	document.write ("<tr><td width=20% class=tablebody2><b>主题标题</b>")
	document.write ('<SELECT name=font onchange="DoTitle(this.options[this.selectedIndex].value)">')
	document.write ('<OPTION selected value="">选择话题</OPTION>')
	var dotitleinfo="[原创],[转帖],[灌水],[讨论],[求助],[推荐],[公告],[注意],[贴图],[建议],[下载],[分享]"
	var dotitleinfoArray
	dotitleinfoArray=dotitleinfo.split(",")
	for (i=0;i<dotitleinfoArray.length;i++){
		document.write ("<OPTION value="+dotitleinfoArray[i]+">"+dotitleinfoArray[i]+"</OPTION>")
	}
	document.write ("</SELECT></td>")
	document.write ("<td width=80% class=tablebody2>")
	if (paction=='vote')
	{
	document.write ("<input name=subject size=50 maxlength=80 class=FormClass>&nbsp;<select name=votetimeout size=1><option value=0>过期时间</option><option value=0>永不过期</option><option value=1>一天</option><option value=3>三天</option><option value=7>一周</option><option value=15>半月</option><option value=30>一月</option><option value=90>三月</option><option value=180>半年</option></select>");
	if (Dvbbs.GroupSetting[51]==1)
	{
		document.write ('&nbsp;<select name="topicximoo" size=1><option value=0>标题醒目</option><option value=1>HTML支持</option><option value=2>红色醒目</option><option value=3>蓝色醒目</option><option value=3>绿色醒目</option></select>')
	}
	document.write ("&nbsp;<font color=" + Dvbbs.Forum_Body[8] + "><b>*</b></font>不得超过 "+Dvbbs.Board_Setting[45]+" 个汉字")
	}else{
	document.write ("<input name=subject size=70 maxlength=80 class=FormClass>")
	if (Dvbbs.GroupSetting[51]==1 && paction=="announce")
	{
		document.write ('&nbsp;&nbsp;<select name="topicximoo" size=1><option value=0>标题醒目</option><option value=1>HTML支持</option><option value=2>红色醒目</option><option value=3>蓝色醒目</option><option value=4>绿色醒目</option></select>')
	}
	document.write ('&nbsp;&nbsp;<font color=' + Dvbbs.Forum_Body[8] + '><b>*</b></font>不得超过 '+Dvbbs.Board_Setting[45]+' 个汉字');
	}
	document.write ("</td></tr>")
	if (paction=='vote')
	{
		document.write ("<tr><td width=20% class=tablebody1><b>投票项目 </b> <br><br>")
		document.write ("<li>每行一个投票项目,最多<b>" + Dvbbs.Board_Setting[32] + "</b>个</li>")
		document.write ("<li>超过自动作废,空行自动过滤</li><br><br>")
		document.write ("<input type=radio name=votetype value=0 checked>&nbsp;单选投票<br>")
		document.write ("<input type=radio name=votetype value=1>&nbsp;多选投票")
		document.write ("</td><td width=80% class=tablebody1><textarea name=vote cols=95 rows=8></textarea>")
		document.write ("</td></tr>")
	}
	document.write ("<tr><td width=20% valign=top class=tablebody1><b>当前心情</b><br><li>将放在帖子的前面</td><td width=80% class=tablebody1>")
	for (i=0;i<Dvbbs.Forum_PostFace.length-1;i++){
		document.write ('<input type="radio" value="' + Dvbbs.Forum_PostFace[i] + '" name="Expression" ')
		if (i==0){document.write ("checked")}
		document.write ("><img src=" + Dvbbs.Forum_Info[8] + Dvbbs.Forum_PostFace[i] + " >&nbsp;&nbsp;")
		if (i>0 && ((i+1)%9)==0){document.write ("<br>")}
	}
	document.write ("</td></tr>")
	if (Dvbbs.GroupSetting[7]=='1'|| Dvbbs.GroupSetting[7]=='2')
	{
		document.write ('<tr><td width=20% valign=top class=tablebody2><b>文件上传</b>')
		var uploadArray
		var uploadlist='';
		uploadArray=Dvbbs.Board_Setting[19].split("|")
	for (i=0;i<uploadArray.length;i++)
	{
		uploadlist+=uploadArray[i]+'<br>'
	}
	document.write ('      <a  onMouseOver="ShowMenu(\''+uploadlist+'\',50)" style="CURSOR:hand" title="查看可上传的文件类型" >类型</a>');
	
	document.write ("</select></td><td width=80% class=tablebody2>")
	document.write ("<iframe name=ad frameborder=0 width=100% height=24 scrolling=no src=saveannounce_upload.asp?boardid=" + Dvbbs.BoardID + "></iframe>")
	document.write ("</td></tr>")
	}
	document.write ("<tr><td width=20% valign=top class=tablebody1><b>内容</b><br>")
	document.write ("<li>HTML标签:" + iif(Dvbbs.Board_Setting[5],"<font color=red>可用</font>","<font color=#CCCCCC>不可用</font>"))
	document.write ("<li>UBB标签:" + iif(Dvbbs.Board_Setting[6],"<font color=red>可用</font>","<font color=#CCCCCC>不可用</font>"))
	document.write ("<li>贴图标签:"+ iif(Dvbbs.Board_Setting[7],"<font color=red>可用</font>","<font color=#CCCCCC>不可用</font>"))
	document.write ("<li>Flash标签: " + iif(Dvbbs.Board_Setting[44],"<font color=red>可用</font>","<font color=#CCCCCC>不可用</font>"))
	document.write ("<li>多媒体标签: " + iif(Dvbbs.Board_Setting[9],"<font color=red>可用</font>","<font color=#CCCCCC>不可用</font>"))
	document.write ("<li>表情字符转换:" + iif(Dvbbs.Board_Setting[8],"<font color=red>可用</font>","<font color=#CCCCCC>不可用</font>"))
	document.write ("<li>上传图片:" + giif(Dvbbs.GroupSetting[7],"<font color=red>可用</font>","<font color=#CCCCCC>不可用</font>"))
	document.write ("<li>最多:" + Math.floor((Math.floor(Dvbbs.Board_Setting[16])/1024)) + "KB<BR><BR>")
	document.write ("<B>特殊内容</B><BR>")
	document.write ("<li>" + iif(Dvbbs.Board_Setting[10],"<a href='javascript:money()' title='使用语法:[money=可浏览该部分内容需要金钱数]内容[/money]'>金钱帖</a>","金钱帖:不可用"))
	document.write ("<li>" + iif(Dvbbs.Board_Setting[11],"<a href='javascript:point()' title='使用语法:[point=可浏览该部分内容需要积分数]内容[/point]'>积分帖</a>","积分帖:不可用"))
	document.write ("<li>" + iif(Dvbbs.Board_Setting[12],"<a href='javascript:usercp()' title='使用语法:[usercp=可浏览该部分内容需要魅力数]内容[/usercp]'>魅力帖</a>","魅力帖:不可用"))
	document.write ("<li>" + iif(Dvbbs.Board_Setting[13],"<a href='javascript:power()' title='使用语法:[power=可浏览该部分内容需要威望数]内容[/power]'>威望帖</a>","威望帖:不可用"))
	document.write ("<li>" + iif(Dvbbs.Board_Setting[14],"<a href='javascript:article()' title='使用语法:[post=可浏览该部分内容需要文章数]内容[/post]'>文章帖</a>","文章帖:不可用"))
	document.write ("<li>" + iif(Dvbbs.Board_Setting[15],"<a href='javascript:replyview()' title='使用语法:[replyview]该部分内容回复后可见[/replyview]'>回复帖</a>","回复帖:不可用"))
	document.write ("<li>" + iif(Dvbbs.Board_Setting[23],"<a href='javascript:usemoney()' title='使用语法:[usemoney=浏览该部分内容需要消耗的金钱数]内容[/usemoney]'>出售帖</a>","出售帖:不可用"))
	document.write ("</td><td width=80% class=tablebody1 valign=top>")
	if (Dvbbs.Board_Setting[4]==1){
		post_getubb()
	}
	document.write ("<textarea class=smallarea cols=95 name=Content rows=12 wrap=VIRTUAL title=可以使用Ctrl+Enter直接提交贴子 class=FormClass onkeydown=ctlent()>" + content + "</textarea>")
	document.write ("</td></tr>")
	document.write ("<tr><td class=tablebody1 valign=top colspan=2 style='table-layout:fixed;word-break:break-all'><b>点击表情图即可在帖子中加入相应的表情</B><br>&nbsp;")
	//emot图标
	var ii;
	for (i=1;i<= Dvbbs.Forum_emot.length-1;i++)
	{	
		if (i<=9)
		{
			ii='0'+i
		}
		else
		{
			ii=i
		}
		document.write ('<img src="' + Dvbbs.Forum_Info[10] + Dvbbs.Forum_emot[i-1] + '" border=0 onclick="insertsmilie(\'[em' + ii + ']\')" style="CURSOR: hand">&nbsp;')
		if (i>0 && ((i+1)%13)==0){document.write ("<br>")}
		if (i>26)
		{
		break
		}
	}
	document.write ("</td></tr>")
	document.write ("<tr><td valign=top class=tablebody1><b>选项</b></td>")
	if (paction!='edit')
	{
		document.write ('<td valign=middle class=tablebody1><input type=checkbox name=signflag value=yes checked>显示签名&nbsp;&nbsp;<input type="radio" name=emailflag value="0" checked >不通知')
		document.write ('<input type="radio" name=emailflag value="1">邮件通知');
		document.write ('<input type="radio" name=emailflag value="2">短信通知');
		document.write ('<input type="radio" name=emailflag value="3">邮件和短信通知');
	}
	else
	{
		document.write ('<td valign=middle class=tablebody1><input type=checkbox name=signflag value=yes ');
		if (Dvbbs.signflag=='1')
		{
			document.write (' checked ');
			
		}
		document.write ('>显示签名&nbsp;&nbsp;<input type="radio" name=emailflag value="0" ');
		if (Dvbbs.emailflag=='0')
		{
			document.write (' checked ');
			
		}
		document.write ('>不通知');
		document.write ('<input type="radio" name=emailflag value="1" ');
		if (Dvbbs.emailflag=='1')
		{
			document.write (' checked ');
			
		}
		document.write ('>邮件通知');
		
		document.write ('<input type="radio" name=emailflag value="2" ');
		if (Dvbbs.emailflag=='2')
		{
			document.write (' checked ');
			
		}
		document.write ('>短信通知');
		document.write ('<input type="radio" name=emailflag value="3" ');
		if (Dvbbs.emailflag=='3')
		{
			document.write (' checked ');
			
		}
		
		document.write ('>邮件和短信通知');
		
	}
	if (Dvbbs.GroupSetting[51]==1 && (paction=="announce" || paction=="vote"))
	{
	document.write ("&nbsp;&nbsp;<input type=checkbox name=locktopic value=yes>帖子锁定&nbsp;&nbsp;<input type=checkbox name=istop value=yes>帖子固顶&nbsp;&nbsp;<input type=checkbox name=istopall value=yes>帖子总固顶</td>")
	}
	document.write ("</tr><tr>")
	document.write ("<td valign=middle colspan=2 align=center class=tablebody2>")
	document.write ("<input type=Submit value='发 表' name=Submit>&nbsp;<input type=button value='预 览' name=Button onclick=gopreview()>&nbsp;")
	document.write ("<input type=reset name=Submit2 value='清 除'>")
	document.write ("</td></form></tr>")
	document.write ("</table></form>")
	document.write ("<form name=preview action=preview.asp?boardid=" + Dvbbs.BoardID + " method=post target=preview_page>")
	document.write ("<input type=hidden name=Dvtitle value=><input type=hidden name=theBody value=>")
	if (paction=='edit')

⌨️ 快捷键说明

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