article.ftl
资源名称:Myblog.rar [点击查看]
上传用户:wlfwy2004
上传日期:2016-12-12
资源大小:33978k
文件大小:8k
源码类别:
Jsp/Servlet
开发平台:
Java
- <#assign html=JspTaglibs["/WEB-INF/struts-html.tld"]>
- <#assign bean=JspTaglibs["/WEB-INF/struts-bean.tld"]>
- <#assign FCK=JspTaglibs["/WEB-INF/FCKeditor.tld"]>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=GBK">
- <title><@bean.message key="newart.new"/></title>
- <link href="css/css.css" rel="stylesheet" type="text/css">
- <script>
- function transmit()
- {
- if (document.articleForm.title.value.length == 0 || document.articleForm.content.value.length == 0) {
- alert("<@bean.message key="error.newart.notnull"/>");
- return false;
- }
- document.articleForm.submit();
- }
- </script>
- </head>
- <body>
- <!--<body onload="pageonloadM()">-->
- <@html.form action="/article">
- <@html.hidden property="action"/>
- <@html.hidden property="artid"/>
- <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td bgcolor="#EBEFF5"><table width="100%" border="0" cellpadding="1" cellspacing="1">
- <tr bgcolor="#6F8BB7">
- <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>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="229">
- <table width="100%" border="0" cellpadding="3" cellspacing="2">
- <tr>
- <td height="25" colspan="6"><@bean.message key="newart.arttitle"/>: <@html.text property="title" styleClass="INPUT1" size="50" /></td>
- </tr>
- <tr>
- <td colspan="6">
- <@FCK.editor id="content"
- basePath=""
- width="100%"
- height="360"
- imageBrowserURL="/blog/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
- linkBrowserURL="/blog/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector">
- ${articleForm.content}
- </@FCK.editor>
- </td>
- </tr>
- <tr bgcolor="#E4EAF1">
- <td><div align="center"><@bean.message key="newart.whowface"/></div></td>
- <td><div align="center">
- <@html.radio property="face" value="0" />
- <@bean.message key="blog.yes"/>
- <@html.radio property="face" value="1"/>
- <@bean.message key="blog.no"/></div></td>
- <td><div align="center"><@bean.message key="newart.faceplace"/></div></td>
- <td><div align="center">
- <@html.select property="faceplace">
- <@html.options collection="leftrigthValues" property="value" labelProperty="label"/>
- </@html.select>
- </div></td>
- <td><div align="center"><@bean.message key="newart.ishide"/></div></td>
- <td><div align="center">
- <@html.select property="ishide">
- <@html.options collection="yesornoValues" property="value" labelProperty="label"/>
- </@html.select>
- </div></td>
- </tr>
- <tr bgcolor="#E4EAF1">
- <td><div align="center"><@bean.message key="newart.opencomment"/></div></td>
- <td> <div align="center">
- <@html.radio property="opencomment" value="0"/>
- <@bean.message key="blog.yes"/>
- <@html.radio property="opencomment" value="1"/>
- <@bean.message key="blog.no"/></div></td>
- <td><div align="center"><@bean.message key="newart.usesign"/></div></td>
- <td><div align="center">
- <@html.radio property="usesign" value="0"/>
- <@bean.message key="blog.yes"/>
- <@html.radio property="usesign" value="1"/>
- <@bean.message key="blog.no"/></div></td>
- <td colspan="2"><div align="center">[<@bean.message key="newart.setsign"/>]</div></td>
- </tr>
- <tr bgcolor="#E4EAF1">
- <td><div align="center"><@bean.message key="newart.contentsize"/></div></td>
- <td colspan="2"><@html.text property="contentsize" styleClass="INPUT1" size="4" />
- <@bean.message key="newart.contentsize.note"/></td>
- <td><div align="center">
- <@html.select property="sortid">
- <@html.options collection="sortSelList" property="value" labelProperty="label"/>
- </@html.select>
- </div></td>
- <td colspan="2"><div align="center">[<@bean.message key="newart.setsort"/>]</div></td>
- </tr>
- <tr bgcolor="#E4EAF1">
- <td><div align="center"><@bean.message key="newart.blogsortid"/></div></td>
- <td colspan="5">
- <@html.select property="blogsortid">
- <@html.options collection="sortValues" property="value" labelProperty="label"/>
- </@html.select>
- <@bean.message key="newart.blogsortid.note"/></td>
- </tr>
- <tr bgcolor="#E4EAF1">
- <td><div align="center"><@bean.message key="newart.setkey"/></div></td>
- <td colspan="5"><@html.text property="artkey" styleClass="INPUT1"></@html.text>
- <@bean.message key="newart.setkey.note"/></td>
- </tr>
- <tr bgcolor="#E4EAF1">
- <td><div align="center"><@bean.message key="newart.settime"/></div></td>
- <td colspan="5">
- <@html.select property="year">
- <@html.options collection="yearValues" property="value" labelProperty="label"/>
- </@html.select>
- <@bean.message key="newart.year"/>
- <@html.select property="postmonth">
- <@html.options collection="monthValues" property="value" labelProperty="label"/>
- </@html.select>
- <@bean.message key="newart.month"/>
- <@html.select property="day">
- <@html.options collection="dayValues" property="value" labelProperty="label"/>
- </@html.select>
- <@bean.message key="newart.day"/>
- <@html.select property="hour">
- <@html.options collection="hourValues" property="value" labelProperty="label"/>
- </@html.select>
- <@bean.message key="newart.hour"/>
- <@html.select property="min">
- <@html.options collection="minValues" property="value" labelProperty="label"/>
- </@html.select>
- <@bean.message key="newart.min"/>
- <@html.select property="sec">
- <@html.options collection="secValues" property="value" labelProperty="label"/>
- </@html.select>
- <@bean.message key="newart.sec"/> <@bean.message key="newart.settime.note"/></td>
- </tr>
- <tr bgcolor="#E4EAF1">
- <td colspan="6"><@html.button property="sub" styleClass="BUTTN-FIX1" onclick="transmit()"><@bean.message key="newart.submit"/></@html.button>
- <@html.reset styleClass="BUTTN-FIX1"><@bean.message key="newart.reset"/></@html.reset></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </@html.form>
- </body>
- </html>