article.ftl
上传用户:wlfwy2004
上传日期:2016-12-12
资源大小:33978k
文件大小:8k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <#assign html=JspTaglibs["/WEB-INF/struts-html.tld"]>
  2. <#assign bean=JspTaglibs["/WEB-INF/struts-bean.tld"]>
  3. <#assign FCK=JspTaglibs["/WEB-INF/FCKeditor.tld"]>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=GBK">
  7. <title><@bean.message key="newart.new"/></title>
  8. <link href="css/css.css" rel="stylesheet" type="text/css">
  9. <script>
  10. function transmit()
  11. {
  12.    if (document.articleForm.title.value.length == 0 || document.articleForm.content.value.length == 0) {
  13.      alert("<@bean.message key="error.newart.notnull"/>");
  14.      return false;
  15.    }
  16.    document.articleForm.submit();
  17. }
  18. </script>
  19. </head>
  20. <body>
  21. <!--<body onload="pageonloadM()">-->
  22. <@html.form action="/article">
  23.   <@html.hidden property="action"/>
  24.   <@html.hidden property="artid"/>
  25.   <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  26.     <tr>
  27.       <td bgcolor="#EBEFF5"><table width="100%" border="0" cellpadding="1" cellspacing="1">
  28.           <tr bgcolor="#6F8BB7">
  29.             <td height="20"><strong><font color="#FFFFFF"><@bean.message key="newart.welcome" arg0="${user_session.userInfo.nickname}"/> [<@bean.message key="newart.artmanage"/>]</font></strong></td>
  30.           </tr>
  31.           <tr bgcolor="#FFFFFF">
  32.             <td height="229">
  33.               <table width="100%" border="0" cellpadding="3" cellspacing="2">
  34.                 <tr>
  35.                   <td height="25" colspan="6"><@bean.message key="newart.arttitle"/>: <@html.text property="title" styleClass="INPUT1" size="50" /></td>
  36.                 </tr>
  37.                 <tr>
  38.                   <td colspan="6">
  39.                     <@FCK.editor id="content"
  40.                       basePath=""
  41.                       width="100%"
  42.                       height="360"
  43.                       imageBrowserURL="/blog/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
  44.                       linkBrowserURL="/blog/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector">
  45.                       ${articleForm.content}
  46.                     </@FCK.editor>
  47.                   </td>
  48.                 </tr>
  49.                 <tr bgcolor="#E4EAF1">
  50.                   <td><div align="center"><@bean.message key="newart.whowface"/></div></td>
  51.                   <td><div align="center">
  52.                       <@html.radio property="face" value="0" />
  53.                       <@bean.message key="blog.yes"/>
  54.                       <@html.radio property="face" value="1"/>
  55.                       <@bean.message key="blog.no"/></div></td>
  56.                   <td><div align="center"><@bean.message key="newart.faceplace"/></div></td>
  57.                   <td><div align="center">
  58.                       <@html.select property="faceplace">
  59.                         <@html.options collection="leftrigthValues" property="value" labelProperty="label"/>
  60.                       </@html.select>
  61.                     </div></td>
  62.                   <td><div align="center"><@bean.message key="newart.ishide"/></div></td>
  63.                   <td><div align="center">
  64.                       <@html.select property="ishide">
  65.                         <@html.options collection="yesornoValues" property="value" labelProperty="label"/>
  66.                       </@html.select>
  67.                     </div></td>
  68.                 </tr>
  69.                 <tr bgcolor="#E4EAF1">
  70.                   <td><div align="center"><@bean.message key="newart.opencomment"/></div></td>
  71.                   <td> <div align="center">
  72.                       <@html.radio property="opencomment" value="0"/>
  73.                       <@bean.message key="blog.yes"/>
  74.                       <@html.radio property="opencomment" value="1"/>
  75.                       <@bean.message key="blog.no"/></div></td>
  76.                   <td><div align="center"><@bean.message key="newart.usesign"/></div></td>
  77.                   <td><div align="center">
  78.                       <@html.radio property="usesign" value="0"/>
  79.                       <@bean.message key="blog.yes"/>
  80.                       <@html.radio property="usesign" value="1"/>
  81.                       <@bean.message key="blog.no"/></div></td>
  82.                   <td colspan="2"><div align="center">[<@bean.message key="newart.setsign"/>]</div></td>
  83.                 </tr>
  84.                 <tr bgcolor="#E4EAF1">
  85.                   <td><div align="center"><@bean.message key="newart.contentsize"/></div></td>
  86.                   <td colspan="2"><@html.text property="contentsize" styleClass="INPUT1" size="4" />
  87.                     <@bean.message key="newart.contentsize.note"/></td>
  88.                   <td><div align="center">
  89.                     <@html.select property="sortid">
  90.                         <@html.options collection="sortSelList" property="value" labelProperty="label"/>
  91.                       </@html.select>
  92.                     </div></td>
  93.                   <td colspan="2"><div align="center">[<@bean.message key="newart.setsort"/>]</div></td>
  94.                 </tr>
  95.                 <tr bgcolor="#E4EAF1">
  96.                   <td><div align="center"><@bean.message key="newart.blogsortid"/></div></td>
  97.                   <td colspan="5">
  98.                     <@html.select property="blogsortid">
  99.                       <@html.options collection="sortValues" property="value" labelProperty="label"/>
  100.                     </@html.select>
  101.                     <@bean.message key="newart.blogsortid.note"/></td>
  102.                 </tr>
  103.                 <tr bgcolor="#E4EAF1">
  104.                   <td><div align="center"><@bean.message key="newart.setkey"/></div></td>
  105.                   <td colspan="5"><@html.text property="artkey" styleClass="INPUT1"></@html.text>
  106.                     <@bean.message key="newart.setkey.note"/></td>
  107.                 </tr>
  108.                 <tr bgcolor="#E4EAF1">
  109.                   <td><div align="center"><@bean.message key="newart.settime"/></div></td>
  110.                   <td colspan="5">
  111.                     <@html.select property="year">
  112.                       <@html.options collection="yearValues" property="value" labelProperty="label"/>
  113.                     </@html.select>
  114.                     <@bean.message key="newart.year"/>
  115.                     <@html.select property="postmonth">
  116.                       <@html.options collection="monthValues" property="value" labelProperty="label"/>
  117.                     </@html.select>
  118.                     <@bean.message key="newart.month"/>
  119.                     <@html.select property="day">
  120.                       <@html.options collection="dayValues" property="value" labelProperty="label"/>
  121.                     </@html.select>
  122.                     <@bean.message key="newart.day"/>
  123.                     <@html.select property="hour">
  124.                       <@html.options collection="hourValues" property="value" labelProperty="label"/>
  125.                     </@html.select>
  126.                     <@bean.message key="newart.hour"/>
  127.                     <@html.select property="min">
  128.                       <@html.options collection="minValues" property="value" labelProperty="label"/>
  129.                     </@html.select>
  130.                     <@bean.message key="newart.min"/>
  131.                     <@html.select property="sec">
  132.                       <@html.options collection="secValues" property="value" labelProperty="label"/>
  133.                     </@html.select>
  134.                     <@bean.message key="newart.sec"/> <@bean.message key="newart.settime.note"/></td>
  135.                 </tr>
  136.                 <tr bgcolor="#E4EAF1">
  137.                   <td colspan="6"><@html.button property="sub" styleClass="BUTTN-FIX1" onclick="transmit()"><@bean.message key="newart.submit"/></@html.button>
  138.                     <@html.reset styleClass="BUTTN-FIX1"><@bean.message key="newart.reset"/></@html.reset></td>
  139.                 </tr>
  140.               </table></td>
  141.           </tr>
  142.         </table></td>
  143.     </tr>
  144.   </table>
  145. </@html.form>
  146. </body>
  147. </html>