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

📄 clubpost.jsp

📁 bbs系统源码有简单的bbs功能 论坛:http://www.mycodes.net/bbs
💻 JSP
📖 第 1 页 / 共 2 页
字号:
else if(act.equals("edit")){
	out.print("编辑主题");
}
%></DIV>
<DIV class="line"></DIV>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">
<form name="Gforms" id="Gforms" method="post" action="" onSubmit="return checkForm();">
<tr>
<td width="80"  class="tab1"><strong>用户</strong></td>
<td class="bg2">
<input name="gvUserName" type="text" id="gvUserName" value="<%=gvUserName%>"  maxlength="20"  style="width:180px;height:20px" />
</td></tr>
<tr><td  class="tab1"><strong>密码</strong></td>
<td class="bg2">
<input name="gvUserPass" type="password" id="gvUserPass" value="<%=gvUserPass%>" maxlength="30"  style="width:180px;height:20px"/>
<input name="gvUserPass2" type="hidden" id="gvUserPass2" value="<%=gvUserPass%>"/>
</td></tr>
<tr><td  class="tab1"><strong>标题</strong></td>
<td class="bg2">
<input name="gvTopic" type="text" id="gvTopic" value="<%if(act.equals("edit")){out.print(topic);}%>" maxlength="100" onkeydown="keyForm();"  style="width:400px;height:20px"/>
<%
if(isPass(gvUserGradeTxt,39)){
%>
<select name="gvTopicColor" id="gvTopicColor">
    <option selected value="">主题颜色</option>
    <option style="COLOR: #000000" value="black">■■■■</option>
    <option style="COLOR: #ff0000" value="#ff0000">■■■■</option>
    <option style="COLOR: #ffcc00" value="#ffcc00">■■■■</option>
    <option style="COLOR: #ff6699" value="#ff6699">■■■■</option>
    <option style="COLOR: #008800" value="#008800">■■■■</option>
    <option style="COLOR: orange" value="orange">■■■■</option>
    <option style="COLOR: #aa00cc" value="#aa00cc">■■■■</option>
    <option style="COLOR: #0000ff" value="#0000ff">■■■■</option>
    <option style="COLOR: #ccaa00" value="#ccaa00">■■■■</option>
    <option style="COLOR: #880000" value="#880000">■■■■</option>
    <option style="COLOR: teal" value="teal">■■■■</option>
    <option style="COLOR: #000088" value="#000088">■■■■</option>
	</select>
<%
}
if(isPass(gvUserGradeTxt,38)){
%>
&nbsp;<input name="gvTopicBold" type="checkbox" id="gvTopicBold" value="1">加粗
<%
}
%>
  </td>
</tr>
<tr>
<td  class="tab1" ><strong>型别</strong></td>
<td class="bg2">
<%
if(act.equals("re")){
%>
<input name="gvTopicType" type="radio" value="0" checked="checked" />普通帖
<%}else{%>
<input name="gvTopicType" type="radio" value="0" <%if(topicType==0){out.print("checked=\"checked\"");}%> onClick="showTypeInfo(this.value);writeContent(0);" />普通帖
<%}%>
<%
if(act.equals("add") || (act.equals("edit")&&reID==0)){
%>
&nbsp;&nbsp;
<input type="radio" name="gvTopicType" value="1" <%if(topicType==1){out.print("checked=\"checked\"");}%> onClick="showTypeInfo(this.value);writeContent(1);"/>积分浏览帖
&nbsp;&nbsp;
<input type="radio" name="gvTopicType" value="2" <%if(topicType==2){out.print("checked=\"checked\"");}%>  onClick="showTypeInfo(this.value);writeContent(2);"/>金钱购买帖
&nbsp;&nbsp;
<input type="radio" name="gvTopicType" value="3" <%if(topicType==3){out.print("checked=\"checked\"");}%>  onClick="showTypeInfo(this.value);writeContent(3)"/>散分(求助)帖
&nbsp;&nbsp;
<input type="radio" name="gvTopicType" value="4" <%if(topicType==4){out.print("checked=\"checked\"");}%>  onClick="showTypeInfo(this.value);writeContent(4);"/>回复可见帖

<div id="div1"  style="DISPLAY:none; color: #CC0000;">
	本主题只有积分大于等于&nbsp;<input name="gvTopicTypeNum1" type="text" value="<%=topicTypeNum%>" size="4" maxlength="10"/>&nbsp;才能浏览
	[GVtype] 标签内填写需要积分浏览的相关内容 [/GVtype]
</div>
<div id="div2"  style="DISPLAY:none; color: #CC0000;">
	观看此帖用户需要支付&nbsp;<input name="gvTopicTypeNum2" type="text" value="<%=topicTypeNum%>" size="4" maxlength="10"/>&nbsp;枚今币
	[GVtype] 标签内填写需要金钱购买浏览的相关内容 [/GVtype]
</div>
<div id="div3"  style="DISPLAY:none; color: #CC0000;">
	求助帖,需要作者结帖,本贴给分&nbsp;<input name="gvTopicTypeNum3" type="text" value="<%=topicTypeNum%>" size="4" maxlength="10"/>&nbsp;分,结帖扣作者积分,系统强制结帖将扣信誉分!
</div>
<div id="div4" style="DISPLAY:none; color: #CC0000;">
	<strong>回复可见帖</strong>,只有回复过的用户才能浏览!<br />
	[GVtype] 标签内填写需要回复可见的相关内容 [/GVtype]
</div>
<script language="javascript">
showTypeInfo("<%=topicType%>");
</script>
<%
}
%>
</td>
</tr>
<tr id="load_<%=ccID%>">
<td  class="tab1"><strong>心情</strong></td>
<td class="bg2">
<script language="javascript">
var a = <%=topicMood%>;
for(i=1; i<21; i++){
	document.write("<input type=\"radio\" name=\"gvTopicMood\" value=\""+i+"\" ");
	if(i==a){
		document.write(" checked");
	}
	document.write("/>");
	document.write("<img alt=\"心情"+i+"\" src=\"./GVimgs/GamVanMood/"+i+".gif\" />&nbsp;&nbsp;");
	if(i==10){
		document.write("<br/>");
	}
}</script>
</tr>
<tr>
  <td  class="tab1"><strong>正文</strong></td>
  <td class="bg2">

<table width="100%" border="0" cellpadding="2" cellspacing="1">
  <tr>
    <td>
<script language="javascript" src="GVscript/ubbAdd.js"></script>
颜色&nbsp;<select name="color" onChange=showcolor(this.options[this.selectedIndex].value)>
  <option selected style="COLOR: #000000" value="black">■■■■</option>
  <option style="COLOR: #ff0000" value="#ff0000">■■■■</option>
  <option style="COLOR: #ffcc00" value="#ffcc00">■■■■</option>
  <option style="COLOR: #ff6699" value="#ff6699">■■■■</option>
  <option style="COLOR: #008800" value="#008800">■■■■</option>
  <option style="COLOR: orange" value="orange">■■■■</option>
  <option style="COLOR: #aa00cc" value="#aa00cc">■■■■</option>
  <option style="COLOR: #0000ff" value="#0000ff">■■■■</option>
  <option style="COLOR: #ccaa00" value="#ccaa00">■■■■</option>
  <option style="COLOR: #880000" value="#880000">■■■■</option>
  <option style="COLOR: teal" value="teal">■■■■</option>
  <option style="COLOR: #000088" value="#000088">■■■■</option></select>
&nbsp;&nbsp;&nbsp;字体大小&nbsp;<select name=size onChange=showsize(this.options[this.selectedIndex].value)>
<option value="10">小</option>
<option value="12" selected>标准</option>
<option value="14">中</option>
<option value="16">大</option>
<option value="36">特大</option>
<option value="66">超大</option>
</select>
&nbsp;&nbsp;UBB语法帮助&nbsp;
<select name=font  onChange=thelp(this.options[this.selectedIndex].value)>
<option  value="1">帮助</option>
<option  value="2">代写</option>
<option value="0" selected >基本</option>
</select>
</td></tr>
<tr><td>
<img src="GVimgs/editor/b.gif" align="absmiddle" alt="粗体字 [B] [/B]" style="cursor:hand" onClick="javascript:bold();"/>
<img align="absmiddle" src="GVimgs/editor/i.gif" alt="斜体字 [i] [/i]" style="cursor:hand" onClick="javascript:italicize();"/>
<img align="absmiddle" src="GVimgs/editor/u.gif" alt="使文字带有下划线 [u] [/u]" style="cursor:hand" onClick="javascript:underline();" />
<img align="absmiddle" src="GVimgs/editor/center.gif" alt="使文字居中显示 [center][/center]" style="cursor:hand" onClick="javascript:center();" />
<img align="absmiddle" src="GVimgs/editor/right.gif" alt="使文字居右显示 [right] [/right]" style="cursor:hand" onClick="javascript:right();"  />
<img align="absmiddle" src="GVimgs/editor/quote.gif" alt="引用内容 [quote] [/quote]" style="cursor:hand" onClick="javascript:quote();" />
<img align="absmiddle" src="GVimgs/editor/move.gif" alt="移动的文字 [move] [/move]" style="cursor:hand" onClick="javascript:move();" />
<img align="absmiddle" src="GVimgs/editor/url.gif" alt="插入超级链接 [url] [/url]" style="cursor:hand" onClick="javascript:hyperlink();"/>
<img align="absmiddle" src="GVimgs/editor/pic.gif" alt="插入图片 [img] [/img]" style="cursor:hand" onClick="javascript:image();"/>
<img align="absmiddle" src="GVimgs/editor/flash.gif" alt="插入flash动画 [flash] [/flash]" style="cursor:hand" onClick="javascript:flash();"/>
<img align="absmiddle" src="GVimgs/editor/real.gif" alt="播放realOne影音文件 [real] [/real]" style="cursor:hand" onClick="javascript:real();"/>
<img align="absmiddle" src="GVimgs/editor/winplayer.gif" alt="播放windows player影音文件 [video] [/video]" style="cursor:hand" onClick="javascript:win();"/>
<img align="absmiddle" src="GVimgs/editor/email.gif" alt="插入Email链接 [email] [/email]" style="cursor:hand" onClick="javascript:emailurl();"/>
<img align="absmiddle" src="GVimgs/editor/c.gif" alt="插入代码 [code] [/code]" style="cursor:hand" onClick="javascript:codes();"/>
</td></tr></table>
<%
if((topicPro==1 || topicType!=0) && ac.equals("quote")){
	content = "";
}
if(act.equals("edit")){
	out.print(textArea("content",80,15,content));
}else{
	if(ac.equals("quote")){
		out.print(textArea("content",80,15,"[quote="+userName+"]" + topic +"\n" + content +"[/quote]"));
	}else{
		out.print(textArea("content",80,15,""));
	}
}
%>
</td></tr>
<tr><td  class="tab1"><strong>上传附件</strong>
</td>
<td class="bg2">
<%
if(((ccUpfilePass==1) || (clubUpfileOpen==1 && ccUpfilePass!=2) || gvUserUpfileOpen==1) && gvUserUpfileOpen != 2){
	out.print("<iframe name=\"ad\" frameborder=0 width=\"100%\" height=\"42\" scrolling=no src=\"upLoad/upLoad.jsp?ccID="+ccID+"&ccName="+ccName+"\"></iframe>");	
}else{
	if(gvUserUpfileOpen==2){
		out.print("<font color=\"#bb0000\">您的上传功能已被管理员关闭!</font>");
	}
}
%>
<input name="upfilesname" type="hidden" value="" />
</td></tr>
<tr><td  class="tab1"><strong>辅助</strong></td>
<td class="bg2">
<input name="gvContentUserPen" type="checkbox" value="true" <%if(contentUserPen){out.print("checked=\"checked\"");}%> />显示签名
&nbsp;&nbsp;<input name="gvContentUrl" type="checkbox" value="true" <%if(contentUrl){out.print("checked=\"checked\"");}%>/>Url自动识别
&nbsp;&nbsp;<input name="gvContentImg" type="checkbox" value="true" <%if(contentImg){out.print("checked=\"checked\"");}%>/>图片自动识别
&nbsp;&nbsp;<input name="gvContentEmail" type="checkbox" value="true"  <%if(contentEmail){out.print("checked=\"checked\"");}%>/>Email提醒
</td></tr>
<tr><td height="30" colspan="2"  class="tab1">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="gvSubmit" type="submit" class="btn" id="gvSubmit" value="  确定提交  " />
&nbsp;&nbsp;&nbsp;&nbsp;
<input name="gvBack" type="button" class="btn" onClick="javascript:history.back();" value="取消"/>
<input name="ccID1" type="hidden" id="ccID1" value="<%=ccID1%>" />
<input name="ccID2" type="hidden" id="ccID2" value="<%=ccID2%>" />
</td></tr>
<tr><td height="30" colspan="2"  class="tab1">
版权信息声明(仅代表发贴本人):&nbsp;&nbsp;
<input name="gvContentCopyRight" type="radio" value="0"  <%if(contentCopyRight==0){out.print("checked=\"checked\"");}%> />无版权声明&nbsp;&nbsp;
<input type="radio" name="gvContentCopyRight" value="1"  <%if(contentCopyRight==1){out.print("checked=\"checked\"");}%>/>本站独享&nbsp;&nbsp;
<input type="radio" name="gvContentCopyRight" value="2"  <%if(contentCopyRight==2){out.print("checked=\"checked\"");}%>/>网络共享&nbsp;&nbsp;
<input type="radio" name="gvContentCopyRight" value="3"  <%if(contentCopyRight==3){out.print("checked=\"checked\"");}%>/>非商业性共享
</td></tr></form></table>
<%if(act.equals("re")){%>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
<%
/*****************************************
* 如过回复的是回复则提取主题的回复内容
*****************************************/
if(reID>0){
	ctit = (ClubTopicItem)cti.topicInfo(tID, 0, (byte)0);
	ccItem = (ClubContentItem)cti.contentInfo();
%>
<tr class="tr">
<td height="25" align="center">
<club:users type="userName" idIs="<%=ctit.getUserID()%>" value="<%=ctit.getUserName()%>" bea="<%=false%>"/>
</td><td>
<club:topic type="img_listMood"  value="<%=String.valueOf(ctit.getTopicMood())%>"/>
<strong><club:topic type="topic"  value="<%=ctit.getTopic()%>"/></strong>
<club:topic type="img_listType" idIs="<%=ctit.getTopicType()%>" value="<%=String.valueOf(ctit.getTopicTypeNum())%>"/>
</td></tr>		
<tr valign="top" class="bg2"><td width="109" height="37">
</td><td>
<club:topicPage type="content" value="<%=ccItem.getContent()%>"   idIs="<%=tID%>"
	pro="<%=ctit.getTopicPro()%>"  bea="<%=isPass(gvUserGradeTxt,35)%>"   
	bea_img="<%=ccItem.getContentImg()%>"  bea_url="<%=ccItem.getContentUrl()%>"  
	tpType="<%=ctit.getTopicType()%>" 
	tpTypeNum="<%=ctit.getTopicTypeNum()%>"  
	tpUserNum="<%=userTypeNum%>"  
/>
</td></tr>
<%}
/*****************************************
* 如过回复的是回复则提取主题的回复内容
* END
*****************************************/
%>
<tr class="tr">
<td height="25" align="center">
<club:users type="userName" idIs="<%=userID%>" value="<%=userName%>" bea="<%=false%>"/>
</td><td>
<club:topic type="img_listMood"  value="<%=String.valueOf(topicMood)%>"/>
<strong><club:topic type="topic"  value="<%=topic%>"/></strong>
<club:topic type="img_listType" idIs="<%=topicType%>" value="<%=String.valueOf(topicTypeNum)%>"/>
</td></tr>		
<tr valign="top" class="bg2"><td width="109" height="37">
</td><td>
<club:topicPage type="content" value="<%=content%>"   idIs="<%=tID%>"
	pro="<%=topicPro%>"  bea="<%=isPass(gvUserGradeTxt,35)%>"   
	bea_img="<%=contentImg%>"  bea_url="<%=contentUrl%>"  
	tpType="<%=topicType%>" 
	tpTypeNum="<%=topicTypeNum%>"  
	tpUserNum="<%=userTypeNum%>"  
/>
</td></tr>
<%}%>
<%@ include file="GVinc/gvOnlineArea.jsp" %>
<%=Gfoot()%>
<!-- Powered by www.GamVan.com -->

⌨️ 快捷键说明

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