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

📄 addpost.jsp

📁 java servlet著名论坛源代码
💻 JSP
📖 第 1 页 / 共 4 页
字号:
<input type="hidden" name="parent" value="<%=parentPostID%>">
<%} else {//update%>
<form action="updatepost" method="post" name="mvnform">
<input type="hidden" name="post" value="<%=postToEdit.getPostID()%>">
<input type="hidden" name="parent" value="<%=parentPostID%>">
<input type="hidden" name="offset" value="<%=ParamUtil.getParameter(request, "offset")%>">
<%}%>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
  <tr class="theader">
    <td colspan="2"><%=fullmode%></td>
  </tr>
  <tr class="trow1">
    <td width="170" nowrap><span class="requiredfield">*</span> [mvnforum.user.addpost.topic]</td>
    <td><input type="text" name="PostTopic" value="<%=postTopic%>" size="70" class="bginput" tabindex="1" onKeyUp="initTyper(this);"></td>
  </tr>
  <tr class="trow2">
    <td valign="top" nowrap>
      [mvnforum.user.addpost.format]<br>
      <input onmouseover="stat('norm')" title="[mvnforum.user.addpost.bubblehelp.normalmode]" accessKey=n onclick=setmode(this.value) type=radio checked value=0 name=mode class="noborder"> [mvnforum.user.addpost.normal_mode]<br>
      <input onmouseover="stat('enha')" title="[mvnforum.user.addpost.bubblehelp.enhmode]" accessKey=e onclick=setmode(this.value) type=radio value=1 name=mode class="noborder"> [mvnforum.user.addpost.enhanced_mode]
    </td>
    <td>
      <table cellspacing="0" cellpadding="0" border="0">
        <tr>
          <td nowrap>
            <input class="liteoption" style="font-weight: bold;" onmouseover="stat('b')" title="[mvnforum.user.addpost.bubblehelp.boldbtn]" accessKey=[mvnforum.user.addpost.button.accesskey.typeface.bold] onclick="mvncode(this.form,'b','')" type=button value=" [mvnforum.user.addpost.button.keycaps.typeface.bold] ">
            <input class="liteoption" style="font-style: italic;" onmouseover="stat('i')" title="[mvnforum.user.addpost.bubblehelp.italicbtn]" accessKey=[mvnforum.user.addpost.button.accesskey.typeface.italic] onclick="mvncode(this.form,'i','')" type=button value=" [mvnforum.user.addpost.button.keycaps.typeface.italic] ">
            <input class="liteoption" style="text-decoration: underline;" onmouseover="stat('u')" title="[mvnforum.user.addpost.bubblehelp.underlbtn]" accessKey=[mvnforum.user.addpost.button.accesskey.typeface.underline] onclick="mvncode(this.form,'u','')" type=button value=" [mvnforum.user.addpost.button.keycaps.typeface.underline] ">
            <input class="liteoption" style="text-decoration: line-through;" onmouseover="stat('s')" title="[mvnforum.user.addpost.bubblehelp.strikebtn]" accessKey=[mvnforum.user.addpost.button.accesskey.typeface.strike] onclick="mvncode(this.form,'s','')" type=button value=" [mvnforum.user.addpost.button.keycaps.typeface.strike] ">&nbsp;
            <select id="sizeselect" onmouseover="stat('size')" onchange="fontformat(this.form,this.options[this.selectedIndex].value,this.options[this.selectedIndex].text,'size')">
              <option value="0" selected>[mvnforum.user.addpost.dropdown.fontsize.title]</option>
              <option value="1">[mvnforum.user.addpost.dropdown.fontsize.small]</option>
              <option value="3">[mvnforum.user.addpost.dropdown.fontsize.large]</option>
              <option value="4">[mvnforum.user.addpost.dropdown.fontsize.huge]</option>
            </select>
            <select id="fontselect" onchange="fontformat(this.form,this.options[this.selectedIndex].value,this.options[this.selectedIndex].text,'font')" onMouseOver="stat('font')">
              <option value="0" selected>[mvnforum.user.addpost.dropdown.fonttype.title]</option>
              <option value="arial">Arial</option>
              <option value="times new roman">Times</option>
              <option value="courier new">Courier</option>
              <option value="century gothic">Century</option>
            </select>
            <select id="colorselect" onmouseover="stat('color')" onchange="fontformat(this.form,this.options[this.selectedIndex].value,this.options[this.selectedIndex].text,'color')">
              <option value="0" selected>[mvnforum.user.addpost.dropdown.textcolor.title]</option>
              <option style="COLOR: skyblue" value="skyblue">[mvnforum.user.addpost.dropdown.textcolor.skyblue]</option>
              <option style="COLOR: royalblue" value="royalblue">[mvnforum.user.addpost.dropdown.textcolor.royalblue]</option>
              <option style="COLOR: blue" value="blue">[mvnforum.user.addpost.dropdown.textcolor.blue]</option>
              <option style="COLOR: darkblue" value="darkblue">[mvnforum.user.addpost.dropdown.textcolor.darkblue]</option>
              <option style="COLOR: orange" value="orange">[mvnforum.user.addpost.dropdown.textcolor.orange]</option>
              <option style="COLOR: orangered" value="orangered">[mvnforum.user.addpost.dropdown.textcolor.orangered]</option>
              <option style="COLOR: crimson" value="crimson">[mvnforum.user.addpost.dropdown.textcolor.crimson]</option>
              <option style="COLOR: red" value="red">[mvnforum.user.addpost.dropdown.textcolor.red]</option>
              <option style="COLOR: firebrick" value="firebrick">[mvnforum.user.addpost.dropdown.textcolor.firebrick]</option>
              <option style="COLOR: darkred" value="darkred">[mvnforum.user.addpost.dropdown.textcolor.darkred]</option>
              <option style="COLOR: green" value="green">[mvnforum.user.addpost.dropdown.textcolor.green]</option>
              <option style="COLOR: limegreen" value="limegreen">[mvnforum.user.addpost.dropdown.textcolor.limegreen]</option>
              <option style="COLOR: seagreen" value="seagreen">[mvnforum.user.addpost.dropdown.textcolor.seagreen]</option>
              <option style="COLOR: deeppink" value="deeppink">[mvnforum.user.addpost.dropdown.textcolor.deeppink]</option>
              <option style="COLOR: tomato" value="tomato">[mvnforum.user.addpost.dropdown.textcolor.tomato]</option>
              <option style="COLOR: coral" value="coral">[mvnforum.user.addpost.dropdown.textcolor.coral]</option>
              <option style="COLOR: purple" value="purple">[mvnforum.user.addpost.dropdown.textcolor.purple]</option>
              <option style="COLOR: indigo" value="indigo">[mvnforum.user.addpost.dropdown.textcolor.indigo]</option>
              <option style="COLOR: burlywood" value="burlywood">[mvnforum.user.addpost.dropdown.textcolor.burlywood]</option>
              <option style="COLOR: sandybrown" value="sandybrown">[mvnforum.user.addpost.dropdown.textcolor.sandybrown]</option>
              <option style="COLOR: sienna" value="sienna">[mvnforum.user.addpost.dropdown.textcolor.sienna]</option>
              <option style="COLOR: chocolate" value="chocolate">[mvnforum.user.addpost.dropdown.textcolor.chocolate]</option>
              <option style="COLOR: teal" value="teal">[mvnforum.user.addpost.dropdown.textcolor.teal]</option>
              <option style="COLOR: silver" value="silver">[mvnforum.user.addpost.dropdown.textcolor.silver]</option>
            </select>
            <br/>
            <input class="liteoption" onmouseover="stat('url')" title="[mvnforum.user.addpost.bubblehelp.hyperlinkbtn]" onclick="namedlink(this.form,'url')" type=button value="[mvnforum.user.addpost.button.keycaps.hyperlink]">
            <input class="liteoption" onmouseover="stat('email')" title="[mvnforum.user.addpost.bubblehelp.emailbtn]" onclick="namedlink(this.form,'email')" type=button value="[mvnforum.user.addpost.button.keycaps.email]">
            <input class="liteoption" onmouseover="stat('img')" title="[mvnforum.user.addpost.bubblehelp.imagebtn]" onclick="mvncode(this.form,'img','http://')" type=button value="[mvnforum.user.addpost.button.keycaps.image]"> &nbsp;
            <input class="liteoption" onmouseover="stat('code')" title="[mvnforum.user.addpost.bubblehelp.codebtn]" onclick="mvncode(this.form,'code','')" type=button value="[mvnforum.user.addpost.button.keycaps.code]">
            <input class="liteoption" onmouseover="stat('list')" title="[mvnforum.user.addpost.bubblehelp.orderlistbtn]" onclick=dolist(this.form) type=button value="[mvnforum.user.addpost.button.keycaps.orderlist]">
            <input class="liteoption" onmouseover="stat('quote')" title="[mvnforum.user.addpost.bubblehelp.quotebtn]" onclick="mvncode(this.form,'quote','')" type=button value="[mvnforum.user.addpost.button.keycaps.quote]">
            <br>
            <input type="text" name="status" value="[mvnforum.user.addpost.js.message.start]" size="70" class="liteoption" style="FONT-SIZE: 7pt">
          </td>
          <td>&nbsp;</td>
          <td class="messageText">
            <input class="liteoption" onmouseover="stat('closecurrent')" title="[mvnforum.user.addpost.bubblehelp.tagclosebtn]" style="FONT-WEIGHT: bold; COLOR: red" accessKey=[mvnforum.user.addpost.button.accesskey.tagclose] onclick=closetag(this.form) type=button value=" x "> [mvnforum.user.addpost.tagclosebtn.text]<br>
            <input class="liteoption" onmouseover="stat('closeall')" title="[mvnforum.user.addpost.bubblehelp.tagcloseallbtn]" style="FONT-WEIGHT: bold; COLOR: red" accessKey=[mvnforum.user.addpost.button.accesskey.tagcloseall] onclick=closeall(this.form) type=button value=" x "> [mvnforum.user.addpost.tagcloseallbtn.text]
          </td>
        </tr>
      </table>
    </td>
  </tr>

  <tr class="trow1">
    <td valign="top" nowrap>
      <span class="requiredfield">*</span> [mvnforum.user.addpost.message_body]
      <% if (MVNForumConfig.getEnableEmoticon()) { %>
      <table border="0" cellspacing="1" cellpadding="3" align="center" class="smilieTable">
        <tr>
          <td colspan="3" align="center" bgcolor="#F5F5F5" style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset; BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset">
            <span class="messageTextBold">[mvnforum.user.addpost.smilies]</span>
          </td>
        </tr>
        <tr align="middle">
          <td><a href="javascript:smilie('[:)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/smile.gif" alt="smile" border="0"></a>&nbsp;</td>
          <td><a href="javascript:smilie('[:(]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/sad.gif" alt="sad" border="0"></a>&nbsp;</td>
          <td><a href="javascript:smilie('[:D]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/biggrin.gif" alt="big grin" border="0"></a>&nbsp;</td>
        </tr>
        <tr align="middle">
          <td><a href="javascript:smilie('[:))]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/laughing.gif" alt="laughing" border="0"></a>&nbsp;</td>
          <td><a href="javascript:smilie('[:((]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/crying.gif" alt="crying" border="0"></a>&nbsp;</td>
          <td><a href="javascript:smilie('[;)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/wink.gif" alt="wink" border="0"></a>&nbsp;</td>
        </tr>
        <tr align="middle">
          <td><a href="javascript:smilie('[:&quot;&gt;]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/blushing.gif" alt="blushing" border="0"></a>&nbsp;</td>
          <td><a href="javascript:smilie('[:p]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/tongue.gif" alt="tongue" border="0"></a>&nbsp;</td>
          <td><a href="javascript:smilie('[B-)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/cool.gif" alt="cool" border="0"></a>&nbsp;</td>
        </tr>
        <tr align="middle">
          <td><a href="javascript:smilie('[:x]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/love.gif" alt="love struck" border="0"></a>&nbsp;</td>
          <td><a href="javascript:smilie('[:-/]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/confused.gif" alt="confused" border="0"></a>&nbsp;</td>
          <td><a href="javascript:smilie('[&gt;:)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/devilish.gif" alt="devilish" border="0"></a>&nbsp;</td>
        </tr>
        <tr>
          <td colspan="3" align="center" bgcolor="#F5F5F5" style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset; BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset">
            <span class="messageText">[mvnforum.user.addpost.smilies_showing]</span>
            <table>
              <tr id="showlink">
                <td align="center"><a href="javascript:showMoreEmotion()" class="messageTextBold">[mvnforum.user.addpost.show_more]</a></td>
              </tr>
              <tr id="hidelink" style="display: none;">
                <td align="center"><a href="javascript:hideMoreEmotion()" class="messageTextBold">[mvnforum.user.addpost.hide_more]</a></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <% }//enable emoticon %>
    </td>
    <td><textarea cols="70" rows="15" name="message" tabindex="2" onkeyup="initTyper(this);storeCaret(this);" onselect="storeCaret(this);" onclick="storeCaret(this);" onmouseup="storeCaret(this);" onchange="storeCaret(this);"><%=postBody%></textarea></td>
  </tr>

  <% if (MVNForumConfig.getEnableEmoticon()) { %>
  <tr class="trow1" id="MoreEmotion" style="display: none;">
    <td colspan="2">
      <table width="100%">
        <tr>
          <td width="60%">
            <table border="0" cellspacing="1" cellpadding="3" align="center" bgcolor="#FFFFFF" class="smilieTable">
              <tr>
                <td colspan="9" align="center" bgcolor="#F5F5F5" style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset; BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset">
                  <span class="messageTextBold">[mvnforum.user.addpost.standard_smilies]</span>
                </td>
              </tr>
              <tr align="middle">
                <td><a href="javascript:smilie('[:)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/smile.gif" alt="smile" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:(]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/sad.gif" alt="sad" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[;)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/wink.gif" alt="wink" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:D]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/biggrin.gif" alt="big grin" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[;;)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/batting_eyelashes.gif" alt="batting eyelashes" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:-/]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/confused.gif" alt="confused" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:x]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/love.gif" alt="love struck" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:&quot;&gt;]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/blushing.gif" alt="blushing" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:p]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/tongue.gif" alt="tongue" border="0"></a>&nbsp;</td>
              </tr>
              <tr align="middle">
                <td><a href="javascript:smilie('[:*]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/kiss.gif" alt="kiss" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:O]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/shock.gif" alt="shock" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[X-(]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/angry.gif" alt="angry" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:&gt;]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/smug.gif" alt="smug" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[B-)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/cool.gif" alt="cool" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:-s]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/worried.gif" alt="worried" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[&gt;:)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/devilish.gif" alt="devilish" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:((]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/crying.gif" alt="crying" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:))]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/laughing.gif" alt="laughing" border="0"></a>&nbsp;</td>
              </tr>
              <tr align="middle">
                <td><a href="javascript:smilie('[:|]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/straight_face.gif" alt="straight face" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[/:)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/raised_eyebrow.gif" alt="raised eyebrow" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[O:)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/angel.gif" alt="angel" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:-B]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/nerd.gif" alt="nerd" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[=;]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/talk_to_the_hand.gif" alt="talk to the hand" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[I-)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/sleep.gif" alt="sleep" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[8-|]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/rolling_eyes.gif" alt="rolling eyes" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:-&]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/sick.gif" alt="sick" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:-$]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/shhh.gif" alt="shhh" border="0"></a>&nbsp;</td>
              </tr>
              <tr align="middle">
                <td><a href="javascript:smilie('[[-(]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/not_talking.gif" alt="not talking" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:o)]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/clown.gif" alt="clown" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[8-}]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/silly.gif" alt="silly" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[(:|]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/tired.gif" alt="tired" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[=P~]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/drooling.gif" alt="drooling" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[:-?]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/thinking.gif" alt="thinking" border="0"></a>&nbsp;</td>
                <td><a href="javascript:smilie('[#-o]')"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/emotion/d_oh.gif" alt="d oh" border="0"></a>&nbsp;</td>

⌨️ 快捷键说明

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