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

📄 articleadd.jsp

📁 前台:文章浏览、发表留言、Game、Music 后台:文章相关:发表文章、修改文章、删除文章、批量移动文章 栏目相关:增加栏目、修改栏目、删除栏目、栏目链接、栏目排序系统栏目分为系统内部栏目和外部栏目
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/app/inc/taglibs2.jsp"%>
<html:html>
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title><bean:message key="admin.left.addart"/></title>
<script language="JavaScript">
	function checklength(theform){
  		alert("你即将发表的文章长度为 : "+theform.content.value.length+" 字节");
  	}
	function magAtts(url, width, height) {
		window.open(url, "attachment", "statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height);
	}
	
	function AddText(NewCode) {
	    document.forms[0].content.value += NewCode;
	}
	
    function insertAtt(fileName,fileRealName,fileExt) {
	    if(fileExt=="gif" || fileExt=="jpg" || fileExt=="jpeg" || fileExt=="bmp" || fileExt=="png") {
	      AddText("\n相关附件如下:\n");
	      AddText("[img]DownFile.html?fileName="+fileName+"[/img]");
	    }
	    else if(fileExt=="swf") {
	      AddText("\n相关附件如下:\n");
	      AddText("[swf=450,350]DownFile.html?fileName="+fileName+"[/swf]");
	    }
	    else {
	      AddText("\n相关附件如下:  ");
	      AddText("[url=DownFile.html?fileName="+fileName+"]"+ fileRealName+ "[/url]");
	    }
  }
</script>
</head><body><table class="tab1" align="center" width="780px"  cellSpacing="0" cellPadding="0" >
	<tr><td width="20%" valign="top"><%@ include file="adminleft.jsp"%></td>
	<td valign="top" class="td_l"><br>
		<table class="tab1" align="center" width="98%" cellSpacing="0" cellPadding="0">
		<tr align="center"><td colspan="4"><center><font color="red"><html:errors /></font></center></td></tr>
		<tr class="tr_1">
			<td align="center" class="td_b" height="28px" colspan="5"><bean:message key="admin.left.addart"/>
			</td></tr>
			<html:form action="/manage/ArticlePost.html" method="post" >
				<tr><td class="td_b" width="150px" height="26px">&nbsp;<bean:message key="admin.addart.bgclass"/>:</td>
					<td colspan="3" class="td_lb">&nbsp;
						<html:select property="bigclassid" value="<%=request.getAttribute("classId").toString()%>">
							<html:optionsCollection name="allclass" label="name" value="id"/>
						</html:select>
					</td>
				</tr>
				<tr><td class="td_b" width="150px" height="26px">&nbsp;<bean:message key="admin.addart.firsttitle"/>:</td>
					<td align="left" colspan="3" class="td_lb">&nbsp;&nbsp;&nbsp;
					<input type="text" name="ftitle" size="50" value="<bean:write name="curArt" property="firsttitle" />"/></td>
				</tr>
				<tr><td class="td_b" width="140px" height="26px">&nbsp;<bean:message key="admin.addart.secondtitle"/>:</td>
				    <td class="td_lb">&nbsp;&nbsp;&nbsp;
				    <input type="text" name="stitle" value="<bean:write name="curArt" property="secondtitle" />"/></td>
				    <td class="td_lb" width="60px">&nbsp;<bean:message key="artshow.comefrom"/>:</td>
				    <td class="td_lb">&nbsp;&nbsp;
				    <input type="text" name="comefrom" value="<bean:write name="curArt" property="comefrom" />"/></td>
				</tr>
				<tr><td class="td_b" width="140px" height="26px">&nbsp;<bean:message key="artlist.author"/>:</td>
				    <td class="td_lb">&nbsp;
				    	<logic:equal name="curArt" property="id" value="0">
				    		<html:hidden property="action" value="insert" /> 
				    		<input type="text" name="author" value="<bean:message key="admin.addart.author"/>"/>
				    	</logic:equal>
				    	<logic:notEqual name="curArt" property="id" value="0">
				    		<html:hidden property="action" value="update" />
				    		<input type="hidden" name="artId" value="<bean:write name="curArt" property="id" />" > 
				    		<input type="text" name="author" value="<bean:write name="curArt" property="author" />"/>
				    	</logic:notEqual>
				    </td>
				    <td class="td_lb" width="60px">&nbsp;<bean:message key="admin.addart.editor"/>:</td>
				    <td class="td_lb">&nbsp;
				   		 <logic:equal name="curArt" property="id" value="0">
				    		<input type="text" name="editor" value=""/>
				    	</logic:equal>
				    	<logic:notEqual name="curArt" property="id" value="0">
				    		<input type="text" name="editor" value="<bean:write name="curArt" property="editor" />"/>
				    	</logic:notEqual>
				    </td>
				</tr>
				<tr><td class="td_b" width="140px" height="26px">&nbsp;<bean:message key="admin.addart.upload"/>:</td>
				    <td align="left" colspan="3" class="td_lb">&nbsp;&nbsp;&nbsp;&nbsp;
				    	<bean:message key="admin.addart.upfilemag"/>
				    	<logic:equal name="curArt" property="id" value="0">
				    		<input type="button" value="<bean:message key="admin.addart.upfilemag"/>" onclick="magAtts('UpLoad.html?action=insert&artId=0', 480, 480)">
				    	</logic:equal>
				    	<logic:notEqual name="curArt" property="id" value="0">
				    		<input type="button" value="<bean:message key="admin.addart.upfilemag"/>" onclick="magAtts('UpLoad.html?action=update&artId=<bean:write name="curArt" property="id" />', 480, 480)">
				    	</logic:notEqual>
				    	
				   		<div style="margin-bottom:3px" id="attachList">
						</div>
				    </td>
				</tr>
				<tr><td colspan="4"><yhcms:postTag /></td></tr>
				<tr><td colspan="4"><br>
				</td></tr>
				<tr align="center"><td colspan="4" height="25px" ><input type="submit"  value="<bean:message key='all.submit'/>" />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<html:cancel><bean:message key="all.cancel"/></html:cancel></td></tr>
			</html:form>
		</table><br>
	</td>
	</tr>
</table></body></html:html>

⌨️ 快捷键说明

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