vote.jsp
上传用户:yuyunping
上传日期:2013-03-21
资源大小:1844k
文件大小:27k
源码类别:

Java书籍

开发平台:

Java

  1. <%@ page contentType="text/html;charset=GBK" %>
  2. <%@ include file="INC/const.jsp"%>
  3. <%
  4. /*if (forumMaster || master)
  5. guestlist=""
  6. else
  7. guestlist=" lockboard=0 and "
  8. }*/
  9. try{
  10. Forum theForum=ForumFactory.getForum(forumID);
  11. //String forumStat=theForum.getForumStat();
  12. boolean foundErr=false;
  13. String errMSG="",forumStat="";
  14. switch(theForum.getForumSkin()){
  15. case 1:
  16. forumStat="常规论坛,只允许<a href=reg.jsp><font color="+tableFontColor+">注册会员</a>发言";
  17. break;
  18. case 2:
  19. forumStat="开放论坛,允许所有人发言";
  20. break;
  21. case 3:
  22. forumStat="评论论坛,坛主和版主允许发言,其他<a href=reg.jsp><font color="+tableFontColor+">注册用户</font></a>只能回复";
  23. if (!(forumMaster || master)){
  24. foundErr=true;
  25. errMSG=errMSG+"<br>"+"<li>评论论坛,坛主和版主允许发言,其他<a href=reg.jsp><font color="+tableContentColor+">注册用户</font></a>只能回复";
  26. }
  27. break;
  28. case 4:
  29. forumStat="精华区,只允许版主和坛主发言和操作";
  30. if (!(forumMaster || master)){ 
  31. foundErr=true;
  32. errMSG=errMSG+"<br>"+"<li>精华区,只允许版主和坛主发言和操作";
  33. }
  34. /*case 5:
  35. forumStat="认证论坛,除坛主和版主外,其他<a href=reg.jsp><font color="+tableFontColor+">注册用户</font></a>登陆论坛需要认证";
  36. if ("".equals(userName)){
  37. foundErr=true;
  38. errMSG=errMSG+"<br>"+"<li>本论坛为认证论坛,请<a href=login.jsp>登陆</a>并确认您的用户名已经得到管理员的认证后进入。";
  39. }
  40. else{
  41. if chkboardlogin(forumID,userName)=false {
  42. foundErr=true
  43. errMSG=errMSG+"<br>"+"<li>本论坛为认证论坛,请确认您的用户名已经得到管理员的认证后进入。";
  44. }
  45. }*/
  46. break;
  47. case 6:
  48. forumStat="正规论坛,只有<a href=login.jsp><font color="+tableFontColor+">登陆用户</a>才能浏览论坛并发言";
  49. if ("".equals(userName)){
  50. foundErr=true;
  51. errMSG=errMSG+"<br>"+"<li>正规论坛,只有<a href=login.jsp><font color="+tableContentColor+">登陆用户</a>才能浏览论坛并发言";
  52. }
  53. break;
  54. }
  55. stats=""+theForum.getForumType()+"发表投票";
  56. %>
  57. <%@ include file="INC/theme.jsp"%>
  58. <%
  59. stats="发表投票";
  60. out.println(headLine(forumID,forumName,forumLogo,theForum.getForumType(),2,stats));
  61. if (foundErr)
  62. out.println(errMSG);
  63. else{
  64. %>
  65. <script language="javascript">
  66. function DoTitle(addTitle) { 
  67. var revisedTitle; 
  68. var currentTitle = document.frmAnnounce.subject.value; 
  69. revisedTitle = currentTitle+addTitle; 
  70. document.frmAnnounce.subject.value=revisedTitle; 
  71. document.frmAnnounce.subject.focus(); 
  72. return; }
  73. </script>
  74. <form action="saveVote.jsp?forumID=<%=forumID%>" method="POST" onSubmit="return check(this)" name="frmAnnounce">
  75. <input type="hidden" name="isVote" value=1>
  76.   <div align="center"><center>
  77. <table bgColor="<%=tableBackColor%>" cellpadding=0 cellspacing=0 border=0 width="95%" cellspacing="0">
  78.     <tr>
  79.       <td width="100%">
  80. <table cellpadding=3 cellspacing=1 border=0 width=100%>
  81.     <tr>
  82.       <td width="100%" bgcolor="<%=tableTitleColor%>" colspan=2><div align="left"><font color="<%=tableFontColor%>"><p><strong>&nbsp;&nbsp;<strong>*为必填项目 <%=forumStat%></strong></font></td>
  83.     </tr>
  84.         <tr bgcolor="<%=tableBodyColor%>">
  85.           <td width="20%"><font color="<%=tableContentColor%>"><b>用户名</b></td>
  86.           <td width="86%"><input name="userName" value="<%if(!"".equals(userName)){%><%=response.encodeURL(userName)%><%}else{%><%="客人"%><%}%>" class=FormClass>&nbsp;&nbsp;<font color="red"><strong>*</strong></font><a href=reg.jsp><font color="<%=tableContentColor%>">您没有注册?</font></a> 
  87.           </td>
  88.         </tr>
  89.         <tr bgcolor="<%=tableBodyColor%>">
  90.           <td width="14%"><font color="<%=tableContentColor%>"><b>密码</b></td>
  91.           <td width="86%"><input name="userPassword" type="password" value="<%=response.encodeURL(userPassword)%>" class=FormClass><font color="red">&nbsp;&nbsp;<strong>*</strong></font><a href=lostpass.jsp><font color="<%=tableContentColor%>">忘记密码?</font></a></td>
  92.         </tr>
  93.         <tr bgcolor="<%=tableBodyColor%>">
  94.           <td width="14%"><font color="<%=tableContentColor%>"><b>主题标题</b>
  95.               <SELECT name=font onchange=DoTitle(this.options[this.selectedIndex].value)>
  96.               <OPTION selected value="">选择话题</OPTION> <OPTION value=[原创]>[原创]</OPTION> 
  97.               <OPTION value=[转帖]>[转帖]</OPTION> <OPTION value=[灌水]>[灌水]</OPTION> 
  98.               <OPTION value=[讨论]>[讨论]</OPTION> <OPTION value=[求助]>[求助]</OPTION> 
  99.               <OPTION value=[推荐]>[推荐]</OPTION> <OPTION value=[公告]>[公告]</OPTION> 
  100.               <OPTION value=[注意]>[注意]</OPTION> <OPTION value=[贴图]>[贴图]</OPTION>
  101.               <OPTION value=[建议]>[建议]</OPTION> <OPTION value=[下载]>[下载]</OPTION>
  102.               <OPTION value=[分享]>[分享]</OPTION></SELECT>
  103.   </td>
  104.             <td width="86%"><font color="<%=tableContentColor%>"><input name="subject" size=60 maxlength=80 class=FormClass>&nbsp;&nbsp;<font color="red"><strong>*</strong></font>不得超过 50 个汉字
  105. <INPUT TYPE="hidden" name="forumType" value="<%=response.encodeURL(theForum.getForumType())%>">
  106. <INPUT TYPE="hidden" name="skin" value="">
  107.  </td>
  108.         </tr>
  109. <tr bgcolor="<%=tableBodyColor%>">
  110.           <td width="14%"><font color="<%=tableContentColor%>"><b>投票项目 </b> <br>
  111.         <br>
  112.         <li>每行一个投票项目,最多10个</li>
  113.         <li>超过自动作废,空行自动过滤</li><br>
  114.         <br>
  115.         <input type="radio" name="voteType" value="0" checked>
  116.           单选投票<br>
  117.           <input type="radio" name="voteType" value="1">
  118.           多选投票</font></td>
  119.   <td width="86%"><textarea name="vote" cols="65" rows="8"></textarea>
  120.  </td>
  121.         </tr>
  122.         
  123.         <tr bgcolor="<%=tableBodyColor%>">
  124.           <td width="14%" valign="top"><font color="<%=tableContentColor%>"><b>当前心情</b><br><li>将放在帖子的前面<BR></td>
  125.           <td width="86%">
  126. <%for(i=1;i<10;i++){%>
  127. <input type="radio" value="face<%=i%>" name="expression" <%if (i==1) out.println ("checked");%>><img src="face/face<%=i%>.gif" WIDTH="15" HEIGHT="15">&nbsp;&nbsp;
  128. <%}%>
  129. <br>
  130. <%for(i=10;i<19;i++)%>
  131. <input type="radio" value="face<%=i%>" name="expression"><img src="face/face<%=i%>.gif" WIDTH="15" HEIGHT="15">&nbsp;&nbsp;
  132. <%}%>
  133. <br>
  134.  </td>
  135.         </tr>
  136.         <tr bgcolor="<%=tableBodyColor%>">
  137.           <td width="14%" valign=top><font color="<%=tableContentColor%>">
  138. <b>内容</b><br><br>
  139. 在此论坛中<br>
  140. <li>HTML标签: <%if (!theForum.getStrAllowHTML()){%>不可用<%}else{%>允许<%}%>
  141. <li>UBB标签: <%if (!theForum.getStrAllowForumCode()) {%>不可用<%}else{%>允许<%}%>
  142. <li>帖图标签: <%if (!theForum.getStrIcons()) {%>不可用<%}else{%>允许<%}%>
  143. <li>Flash标签: <%if (!theForum.getStrFlash()) {%>不可用<%}else{%>允许<%}%>
  144. <li>表情字符转换: <%if(!theForum.getStrIMGInPosts()) {%>不可用<%}else{%>允许<%}%>
  145. <li>上传图片: <%if ("0".equals(uploadPic)) {%>不可用<%}else{%>允许<%}%>
  146. <li>最多<%=Integer.parseInt(announceMaxBytes)/1024%>KB
  147.   </td>
  148.           <td width="86%">
  149. <% if ("1".equals(uploadPic)){ %>
  150. <!--<iframe name="ad" frameborder=0 width=100% height=30 scrolling=no src=saveannounce_upload.jsp?forumID=<%=forumID%>></iframe> -->
  151. <br>
  152. <% } %>
  153. <font color="<%=tableContentColor%>">
  154. <img onclick=bold() src="pic/icon_editor_bold.gif" width="22" height="22" alt="粗体" border="0">
  155. <img onclick=italicize() src="pic/icon_editor_italicize.gif" width="23" height="22" alt="斜体" border="0">
  156. <img onclick=underline() src="pic/icon_editor_underline.gif" width="23" height="22" alt="下划线" border="0">
  157. <img onclick=center() src="pic/icon_editor_center.gif" width="22" height="22" alt="居中" border="0">
  158. <img onclick=hyperlink() src="pic/icon_editor_url.gif" width="22" height="22" alt="超级连接" border="0">
  159. <img onclick=email() src="pic/icon_editor_email.gif" width="23" height="22" alt="Email连接" border="0">
  160. <img onclick=image() src="pic/icon_editor_image.gif" width="23" height="22" alt="图片" border="0">
  161. <img onclick=flash() src="pic/swf.gif" width="23" height="22" alt="Flash图片" border="0">
  162. <img onclick=sk() src="pic/Shockwave.gif" width="23" height="22" alt="Shockwave文件" border="0">
  163. <img onclick=rm() src="pic/rm.gif" width="23" height="22" alt="realplay视频文件" border="0">
  164. <img onclick=mp() src="pic/mp.gif" width="23" height="22" alt="Media Player视频文件" border="0">
  165. <img onclick=qt() src="pic/qt.gif" width="23" height="22" alt="QuickTime视频文件" border="0">
  166. <img onclick=quote() src="pic/icon_editor_quote.gif" width="23" height="22" alt="引用" border="0">
  167. <IMG onclick=setfly() height=22 alt=飞行字 src="pic/fly.gif" width=23 border=0>
  168. <IMG onclick=move() height=22 alt=移动字 src="pic/move.gif" width=23 border=0>
  169. <IMG onclick=glow() height=22 alt=发光字 src="pic/glow.gif" width=23 border=0>
  170. <IMG onclick=shadow() height=22 alt=阴影字 src="pic/shadow.gif" width=23 border=0>
  171. <br>
  172. 字体:
  173. <SELECT onchange=showfont(this.options[this.selectedIndex].value) name=font>
  174.                                 <option value="宋体" selected>宋体</option>
  175. <option value="楷体_GB2312">楷体</option>
  176. <option value="新宋体">新宋体</option>
  177. <option value="黑体">黑体</option>
  178. <option value="隶书">隶书</option>
  179.                                 <OPTION value="Andale Mono">Andale Mono</OPTION> 
  180.                                 <OPTION value=Arial>Arial</OPTION> 
  181.                                 <OPTION value="Arial Black">Arial Black</OPTION> 
  182.                                 <OPTION value="Book Antiqua">Book Antiqua</OPTION>
  183.                                 <OPTION value="Century Gothic">Century Gothic</OPTION> 
  184.                                 <OPTION value="Comic Sans MS">Comic Sans MS</OPTION>
  185.                                 <OPTION value="Courier New">Courier New</OPTION>
  186.                                 <OPTION value=Georgia>Georgia</OPTION>
  187.                                 <OPTION value=Impact>Impact</OPTION>
  188.                                 <OPTION value=Tahoma>Tahoma</OPTION>
  189.                                 <OPTION value="Times New Roman" >Times New Roman</OPTION>
  190.                                 <OPTION value="Trebuchet MS">Trebuchet MS</OPTION>
  191.                                 <OPTION value="Script MT Bold">Script MT Bold</OPTION>
  192.                                 <OPTION value=Stencil>Stencil</OPTION>
  193.                                 <OPTION value=Verdana>Verdana</OPTION>
  194.                                 <OPTION value="Lucida Console">Lucida Console</OPTION>
  195.                                 </SELECT>&nbsp;&nbsp;&nbsp;&nbsp;
  196. 字体大小<select name="size" onChange="showsize(this.options[this.selectedIndex].value)">
  197. <option value="1">1</option>
  198. <option value="2">2</option>
  199. <option value="3" selected>3</option>
  200. <option value="4">4</option>
  201. </select>
  202.                                 &nbsp;&nbsp;&nbsp;<font face="宋体" color=#333333>颜色:</font>
  203.               <SELECT onchange=showcolor(this.options[this.selectedIndex].value) name=color> 
  204.               <option style="background-color:#F0F8FF;color: #F0F8FF" value="#F0F8FF">#F0F8FF</option>
  205.       <option style="background-color:#FAEBD7;color: #FAEBD7" value="#FAEBD7">#FAEBD7</option>
  206.       <option style="background-color:#00FFFF;color: #00FFFF" value="#00FFFF">#00FFFF</option>
  207.               <option style="background-color:#7FFFD4;color: #7FFFD4" value="#7FFFD4">#7FFFD4</option>
  208.               <option style="background-color:#F0FFFF;color: #F0FFFF" value="#F0FFFF">#F0FFFF</option>
  209.               <option style="background-color:#F5F5DC;color: #F5F5DC" value="#F5F5DC">#F5F5DC</option>
  210.               <option style="background-color:#FFE4C4;color: #FFE4C4" value="#FFE4C4">#FFE4C4</option>
  211.               <option style="background-color:#000000;color: #000000" value="#000000">#000000</option>
  212.               <option style="background-color:#FFEBCD;color: #FFEBCD" value="#FFEBCD">#FFEBCD</option>
  213.               <option style="background-color:#0000FF;color: #0000FF" value="#0000FF">#0000FF</option>
  214.               <option style="background-color:#8A2BE2;color: #8A2BE2" value="#8A2BE2">#8A2BE2</option>
  215.               <option style="background-color:#A52A2A;color: #A52A2A" value="#A52A2A">#A52A2A</option>
  216.               <option style="background-color:#DEB887;color: #DEB887" value="#DEB887">#DEB887</option>
  217.               <option style="background-color:#5F9EA0;color: #5F9EA0" value="#5F9EA0">#5F9EA0</option>
  218.               <option style="background-color:#7FFF00;color: #7FFF00" value="#7FFF00">#7FFF00</option>
  219.               <option style="background-color:#D2691E;color: #D2691E" value="#D2691E">#D2691E</option>
  220.               <option style="background-color:#FF7F50;color: #FF7F50" value="#FF7F50">#FF7F50</option>
  221.               <option style="background-color:#6495ED;color: #6495ED" value="#6495ED" selected>#6495ED</option>
  222.               <option style="background-color:#FFF8DC;color: #FFF8DC" value="#FFF8DC">#FFF8DC</option>
  223.               <option style="background-color:#DC143C;color: #DC143C" value="#DC143C">#DC143C</option>
  224.               <option style="background-color:#00FFFF;color: #00FFFF" value="#00FFFF">#00FFFF</option>
  225.               <option style="background-color:#00008B;color: #00008B" value="#00008B">#00008B</option>
  226.               <option style="background-color:#008B8B;color: #008B8B" value="#008B8B">#008B8B</option>
  227.               <option style="background-color:#B8860B;color: #B8860B" value="#B8860B">#B8860B</option>
  228.               <option style="background-color:#A9A9A9;color: #A9A9A9" value="#A9A9A9">#A9A9A9</option>
  229.               <option style="background-color:#006400;color: #006400" value="#006400">#006400</option>
  230.               <option style="background-color:#BDB76B;color: #BDB76B" value="#BDB76B">#BDB76B</option>
  231.               <option style="background-color:#8B008B;color: #8B008B" value="#8B008B">#8B008B</option>
  232.               <option style="background-color:#556B2F;color: #556B2F" value="#556B2F">#556B2F</option>
  233.               <option style="background-color:#FF8C00;color: #FF8C00" value="#FF8C00">#FF8C00</option>
  234.               <option style="background-color:#9932CC;color: #9932CC" value="#9932CC">#9932CC</option>
  235.               <option style="background-color:#8B0000;color: #8B0000" value="#8B0000">#8B0000</option>
  236.               <option style="background-color:#E9967A;color: #E9967A" value="#E9967A">#E9967A</option>
  237.               <option style="background-color:#8FBC8F;color: #8FBC8F" value="#8FBC8F">#8FBC8F</option>
  238.               <option style="background-color:#483D8B;color: #483D8B" value="#483D8B">#483D8B</option>
  239.               <option style="background-color:#2F4F4F;color: #2F4F4F" value="#2F4F4F">#2F4F4F</option>
  240.               <option style="background-color:#00CED1;color: #00CED1" value="#00CED1">#00CED1</option>
  241.               <option style="background-color:#9400D3;color: #9400D3" value="#9400D3">#9400D3</option>
  242.               <option style="background-color:#FF1493;color: #FF1493" value="#FF1493">#FF1493</option>
  243.               <option style="background-color:#00BFFF;color: #00BFFF" value="#00BFFF">#00BFFF</option>
  244.               <option style="background-color:#696969;color: #696969" value="#696969">#696969</option>
  245.               <option style="background-color:#1E90FF;color: #1E90FF" value="#1E90FF">#1E90FF</option>
  246.               <option style="background-color:#B22222;color: #B22222" value="#B22222">#B22222</option>
  247.               <option style="background-color:#FFFAF0;color: #FFFAF0" value="#FFFAF0">#FFFAF0</option>
  248.               <option style="background-color:#228B22;color: #228B22" value="#228B22">#228B22</option>
  249.               <option style="background-color:#FF00FF;color: #FF00FF" value="#FF00FF">#FF00FF</option>
  250.               <option style="background-color:#DCDCDC;color: #DCDCDC" value="#DCDCDC">#DCDCDC</option>
  251.               <option style="background-color:#F8F8FF;color: #F8F8FF" value="#F8F8FF">#F8F8FF</option>
  252.               <option style="background-color:#FFD700;color: #FFD700" value="#FFD700">#FFD700</option>
  253.               <option style="background-color:#DAA520;color: #DAA520" value="#DAA520">#DAA520</option>
  254.               <option style="background-color:#808080;color: #808080" value="#808080">#808080</option>
  255.               <option style="background-color:#008000;color: #008000" value="#008000">#008000</option>
  256.               <option style="background-color:#ADFF2F;color: #ADFF2F" value="#ADFF2F">#ADFF2F</option>
  257.               <option style="background-color:#F0FFF0;color: #F0FFF0" value="#F0FFF0">#F0FFF0</option>
  258.               <option style="background-color:#FF69B4;color: #FF69B4" value="#FF69B4">#FF69B4</option>
  259.               <option style="background-color:#CD5C5C;color: #CD5C5C" value="#CD5C5C">#CD5C5C</option>
  260.               <option style="background-color:#4B0082;color: #4B0082" value="#4B0082">#4B0082</option>
  261.               <option style="background-color:#FFFFF0;color: #FFFFF0" value="#FFFFF0">#FFFFF0</option>
  262.               <option style="background-color:#F0E68C;color: #F0E68C" value="#F0E68C">#F0E68C</option>
  263.               <option style="background-color:#E6E6FA;color: #E6E6FA" value="#E6E6FA">#E6E6FA</option>
  264.               <option style="background-color:#FFF0F5;color: #FFF0F5" value="#FFF0F5">#FFF0F5</option>
  265.               <option style="background-color:#7CFC00;color: #7CFC00" value="#7CFC00">#7CFC00</option>
  266.               <option style="background-color:#FFFACD;color: #FFFACD" value="#FFFACD">#FFFACD</option>
  267.               <option style="background-color:#ADD8E6;color: #ADD8E6" value="#ADD8E6">#ADD8E6</option>
  268.               <option style="background-color:#F08080;color: #F08080" value="#F08080">#F08080</option>
  269.               <option style="background-color:#E0FFFF;color: #E0FFFF" value="#E0FFFF">#E0FFFF</option>
  270.               <option style="background-color:#FAFAD2;color: #FAFAD2" value="#FAFAD2">#FAFAD2</option>
  271.               <option style="background-color:#90EE90;color: #90EE90" value="#90EE90">#90EE90</option>
  272.               <option style="background-color:#D3D3D3;color: #D3D3D3" value="#D3D3D3">#D3D3D3</option>
  273.               <option style="background-color:#FFB6C1;color: #FFB6C1" value="#FFB6C1">#FFB6C1</option>
  274.               <option style="background-color:#FFA07A;color: #FFA07A" value="#FFA07A">#FFA07A</option>
  275.               <option style="background-color:#20B2AA;color: #20B2AA" value="#20B2AA">#20B2AA</option>
  276.               <option style="background-color:#87CEFA;color: #87CEFA" value="#87CEFA">#87CEFA</option>
  277.               <option style="background-color:#778899;color: #778899" value="#778899">#778899</option>
  278.               <option style="background-color:#B0C4DE;color: #B0C4DE" value="#B0C4DE">#B0C4DE</option>
  279.               <option style="background-color:#FFFFE0;color: #FFFFE0" value="#FFFFE0">#FFFFE0</option>
  280.               <option style="background-color:#00FF00;color: #00FF00" value="#00FF00">#00FF00</option>
  281.               <option style="background-color:#32CD32;color: #32CD32" value="#32CD32">#32CD32</option>
  282.               <option style="background-color:#FAF0E6;color: #FAF0E6" value="#FAF0E6">#FAF0E6</option>
  283.               <option style="background-color:#FF00FF;color: #FF00FF" value="#FF00FF">#FF00FF</option>
  284.               <option style="background-color:#800000;color: #800000" value="#800000">#800000</option>
  285.               <option style="background-color:#66CDAA;color: #66CDAA" value="#66CDAA">#66CDAA</option>
  286.               <option style="background-color:#0000CD;color: #0000CD" value="#0000CD">#0000CD</option>
  287.               <option style="background-color:#BA55D3;color: #BA55D3" value="#BA55D3">#BA55D3</option>
  288.               <option style="background-color:#9370DB;color: #9370DB" value="#9370DB">#9370DB</option>
  289.               <option style="background-color:#3CB371;color: #3CB371" value="#3CB371">#3CB371</option>
  290.               <option style="background-color:#7B68EE;color: #7B68EE" value="#7B68EE">#7B68EE</option>
  291.               <option style="background-color:#00FA9A;color: #00FA9A" value="#00FA9A">#00FA9A</option>
  292.               <option style="background-color:#48D1CC;color: #48D1CC" value="#48D1CC">#48D1CC</option>
  293.               <option style="background-color:#C71585;color: #C71585" value="#C71585">#C71585</option>
  294.               <option style="background-color:#191970;color: #191970" value="#191970">#191970</option>
  295.               <option style="background-color:#F5FFFA;color: #F5FFFA" value="#F5FFFA">#F5FFFA</option>
  296.               <option style="background-color:#FFE4E1;color: #FFE4E1" value="#FFE4E1">#FFE4E1</option>
  297.               <option style="background-color:#FFE4B5;color: #FFE4B5" value="#FFE4B5">#FFE4B5</option>
  298.               <option style="background-color:#FFDEAD;color: #FFDEAD" value="#FFDEAD">#FFDEAD</option>
  299.               <option style="background-color:#000080;color: #000080" value="#000080">#000080</option>
  300.               <option style="background-color:#FDF5E6;color: #FDF5E6" value="#FDF5E6">#FDF5E6</option>
  301.               <option style="background-color:#808000;color: #808000" value="#808000">#808000</option>
  302.               <option style="background-color:#6B8E23;color: #6B8E23" value="#6B8E23">#6B8E23</option>
  303.               <option style="background-color:#FFA500;color: #FFA500" value="#FFA500">#FFA500</option>
  304.               <option style="background-color:#FF4500;color: #FF4500" value="#FF4500">#FF4500</option>
  305.               <option style="background-color:#DA70D6;color: #DA70D6" value="#DA70D6">#DA70D6</option>
  306.               <option style="background-color:#EEE8AA;color: #EEE8AA" value="#EEE8AA">#EEE8AA</option>
  307.               <option style="background-color:#98FB98;color: #98FB98" value="#98FB98">#98FB98</option>
  308.               <option style="background-color:#AFEEEE;color: #AFEEEE" value="#AFEEEE">#AFEEEE</option>
  309.               <option style="background-color:#DB7093;color: #DB7093" value="#DB7093">#DB7093</option>
  310.               <option style="background-color:#FFEFD5;color: #FFEFD5" value="#FFEFD5">#FFEFD5</option>
  311.               <option style="background-color:#FFDAB9;color: #FFDAB9" value="#FFDAB9">#FFDAB9</option>
  312.               <option style="background-color:#CD853F;color: #CD853F" value="#CD853F">#CD853F</option>
  313.               <option style="background-color:#FFC0CB;color: #FFC0CB" value="#FFC0CB">#FFC0CB</option>
  314.               <option style="background-color:#DDA0DD;color: #DDA0DD" value="#DDA0DD">#DDA0DD</option>
  315.               <option style="background-color:#B0E0E6;color: #B0E0E6" value="#B0E0E6">#B0E0E6</option>
  316.               <option style="background-color:#800080;color: #800080" value="#800080">#800080</option>
  317.               <option style="background-color:#FF0000;color: #FF0000" value="#FF0000">#FF0000</option>
  318.               <option style="background-color:#BC8F8F;color: #BC8F8F" value="#BC8F8F">#BC8F8F</option>
  319.               <option style="background-color:#4169E1;color: #4169E1" value="#4169E1">#4169E1</option>
  320.               <option style="background-color:#8B4513;color: #8B4513" value="#8B4513">#8B4513</option>
  321.               <option style="background-color:#FA8072;color: #FA8072" value="#FA8072">#FA8072</option>
  322.               <option style="background-color:#F4A460;color: #F4A460" value="#F4A460">#F4A460</option>
  323.               <option style="background-color:#2E8B57;color: #2E8B57" value="#2E8B57">#2E8B57</option>
  324.               <option style="background-color:#FFF5EE;color: #FFF5EE" value="#FFF5EE">#FFF5EE</option>
  325.               <option style="background-color:#A0522D;color: #A0522D" value="#A0522D">#A0522D</option>
  326.               <option style="background-color:#C0C0C0;color: #C0C0C0" value="#C0C0C0">#C0C0C0</option>
  327.               <option style="background-color:#87CEEB;color: #87CEEB" value="#87CEEB">#87CEEB</option>
  328.               <option style="background-color:#6A5ACD;color: #6A5ACD" value="#6A5ACD">#6A5ACD</option>
  329.               <option style="background-color:#708090;color: #708090" value="#708090">#708090</option>
  330.               <option style="background-color:#FFFAFA;color: #FFFAFA" value="#FFFAFA">#FFFAFA</option>
  331.               <option style="background-color:#00FF7F;color: #00FF7F" value="#00FF7F">#00FF7F</option>
  332.               <option style="background-color:#4682B4;color: #4682B4" value="#4682B4">#4682B4</option>
  333.               <option style="background-color:#D2B48C;color: #D2B48C" value="#D2B48C">#D2B48C</option>
  334.               <option style="background-color:#008080;color: #008080" value="#008080">#008080</option>
  335.               <option style="background-color:#D8BFD8;color: #D8BFD8" value="#D8BFD8">#D8BFD8</option>
  336.               <option style="background-color:#FF6347;color: #FF6347" value="#FF6347">#FF6347</option>
  337.               <option style="background-color:#40E0D0;color: #40E0D0" value="#40E0D0">#40E0D0</option>
  338.               <option style="background-color:#EE82EE;color: #EE82EE" value="#EE82EE">#EE82EE</option>
  339.               <option style="background-color:#F5DEB3;color: #F5DEB3" value="#F5DEB3">#F5DEB3</option>
  340.               <option style="background-color:#FFFFFF;color: #FFFFFF" value="#FFFFFF">#FFFFFF</option>
  341.               <option style="background-color:#F5F5F5;color: #F5F5F5" value="#F5F5F5">#F5F5F5</option>
  342.               <option style="background-color:#FFFF00;color: #FFFF00" value="#FFFF00">#FFFF00</option>
  343.               <option style="background-color:#9ACD32;color: #9ACD32" value="#9ACD32">#9ACD32</option>
  344.               </SELECT>
  345. <textarea class="smallarea" cols="80" name="content" rows="12" wrap="VIRTUAL" title="可以使用Ctrl+Enter直接提交贴子" class=FormClass onkeydown=ctlent()></textarea>
  346.           </td>
  347.         </tr>
  348. <tr>
  349.                 <td bgcolor="<%=tableBodyColor%>" valign=top colspan=2><font color="<%=tableContentColor%>"><b>点击表情图即可在帖子中加入相应的表情</B><br>&nbsp;
  350. <%for(int e=1;e<10;e++){%>
  351.                  <a href="Javascript:insertsmilie('[em0<%=e%>]');"><img src="pic/em0<%=e%>.gif" border=0></a>
  352. <%}%>
  353. <%for(int e=10;e<29;e++){%>
  354.                  <a href="Javascript:insertsmilie('[em<%=e%>]');"><img src="pic/em<%=e%>.gif" border=0></a>
  355. <%}%>
  356.      </td>
  357.                 </tr>
  358.                 <tr bgcolor="<%=tableBodyColor%>">
  359.                 <td valign=top><font color="<%=tableContentColor%>"><b>选项</b><p><a href="javascript:openScript('help.jsp',500,400)"><img src="pic/help_b.gif" border=0></a></font></td>
  360.                 <td valign=middle><font color="<%=tableContentColor%>"><input type=checkbox name="signFlag" value="1" checked>是否显示您的签名?<br>
  361.                 <input type=checkbox name="emailFlag" value="1">有回复时使用邮件通知您?
  362. <BR><BR></td>
  363.                 </tr><tr bgcolor="<%=tableBodyColor%>">
  364.                 <td valign=middle colspan=2 align=center><font color="<%=tableContentColor%>">
  365.                 <input type=Submit value="发 表" name=Submit> &nbsp; 
  366. <input type="reset" name="Submit2" value="清 除">
  367.                 </td></form></tr>
  368.       </table>
  369.       </td>
  370.     </tr>
  371.   </table>
  372.   </center></div>
  373. </form>
  374. <%
  375. }
  376. //}
  377. catch(Exception e){
  378. e.printStackTrace();
  379. }
  380. %>
  381. <%@ include file="INC/form.js"%>
  382. <%@ include file="INC/js.jsp"%>
  383. <%@ include file="INC/CODE.jsp"%>
  384. <%@ include file="foot.jsp"%>