
<%@ page language="java"  pageEncoding="GB2312" contentType="text/html;charset=GB2312"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<html>
<head>
<title>文章管理说明</title>
<link rel="stylesheet" type="text/css" href="../include/style.css">
<SCRIPT LANGUAGE="JavaScript" src='<c:url value="/scripts/datechoice.js"/>'></SCRIPT><SCRIPT LANGUAGE="JavaScript" src='<c:url value="/scripts/_js.js"/>'></SCRIPT>
<META NAME="Author" CONTENT="xunuo">
<META NAME="Keywords" CONTENT="xunuo">
<META NAME="Description" CONTENT="自动生成">
<script language="javascript">
<!--
function checkForm(form){
	title_returnStr = XN_CheckNull(form.title.value)  ;
	if (title_returnStr != Validationstr){  //不能为空
		XN_alert(er+"标题"+title_returnStr);
		form.title.focus();
		return false;
	}
	
	if (form.status.value != "1"){
		form.status.value="0" ;
	}

	var isSubmit = false ;
	if(form.uploadFile.value != "") {
        form.havefile.value = "1" ;
	}

	if(!isSubmit) {
		isSubmit = true ;
	    return true ;
	}

}
function cancelValue(form) {
//	form.action = '<c:url value="/sys/article/searchArticle.html"/>';
//	form.method.value = "searchArticlesByColumnStatus";
//	form.onsubmit = "";
  //  form.submit();	
  window.history.go(-1);
}
-->
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td colspan="2" bgcolor="#f6f6f6" align="right" style="cursor:hand" onClick="if(HelpTab.style.display=='none'){HelpTab.style.display='';window.scrollTo(window.pageXOffset,0);}else{HelpTab.style.display='none'}">&nbsp;<img src='<c:url value="/sys/images/why.gif"/>' width="14" height="14"> 
      ::Help::</td>
  </tr>
  <tr Id="HelpTab" style="display:none"> 
    <td width="2%">&nbsp;</td>
    <td width="98%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td height="10" width="10"></td>
			<td></td>
		</tr>
        <tr>
			<td>·</td>
			<td><b>名词说明：发布日期</b></td>
        </tr>
        <tr> 
			<td></td>
			<td>文章都有发布日期，日期默认为当天，日期可以更改，如果需要更改年份，请点击年；如果需要更改月份，请点击月份。<p></td>
        </tr>
        <tr>
			<td>·</td>
			<td><b>名词说明：连接地址</b></td>
        </tr>
        <tr> 
			<td></td>
			<td>当此文章需要跳转到其他页面时，请在此直接输入页面地址，例如：http://www.e-v.com.cn/index.asp<p></td>
        </tr>
      </table>
      <a name="Help"></a></td>
  </tr>
</table><br>
<table border="0" cellpadding="4" cellspacing="1" class=table width="720">
<html:form action="/sys/article/saveArticle.html" enctype="multipart/form-data" onsubmit="return checkForm(this);">
<input type="hidden" name="from" value='<c:out value="${from}"/>'>
<html:hidden property="id"/>
<html:hidden property="serialnumber" />
<html:hidden property = "parentid" />
<html:hidden property = "havefile" />
<!--没有编辑的字段都需要在此添加-->
<html:hidden property="hits"/>
<html:hidden property="createip"/>
<html:hidden property="createtime"/>
<html:hidden property="createauthor"/>
<html:hidden property="auditingauthor"/>
<html:hidden property="auditingtime"/>
<html:hidden property="auditingip"/>
<html:hidden property="status"/>
<html:hidden property="pageCurrent"/>
<html:hidden property = "filename" />
<input type="hidden" name="method" value="">
	<tr>
	  <th width="100%" align="center" colspan="2">文章管理说明</th>
	</tr>

	<tr class="td">
	  <td align="left" width="40%" nowrap>标题：(√)(最多255字符)</td>
	  <td align="left"  width="60%">
<html:text property="title" size="40" maxlength = "255"/></td>
	</tr>
<c:if test="${articleForm.secondpid == 'has'}">
	<tr class="td">
	  <td align="left" width="40%" nowrap>所属第二分类：</td>
	  <td align="left"  width="60%">
	  <select name="secondpid" >
<xunuo:set var="xnList" columnid="wsbgotherid" number="4" sort="false"/>
<c:forEach var="xn" items="${xnList}">
	<option value='<c:out value="${xn.id}" />'><c:out value="${xn.name}"/></option>
</c:forEach>
	  </select>
	  </td>
	</tr>
</c:if>
	<tr class="td">
	  <td align="left" width="40%" nowrap>副标题：(最多255字符)</td>
	  <td align="left"  width="60%">
<html:text property="subhead" size="40" maxlength = "255"/></td>
	</tr>

	<tr class="td">
		<td width="10%" align="center" colspan="2" nowrap>
		<html:textarea property="content" styleClass="input_text" style="display: none"/>
		<c:if test="${isGuest}">内容：<br><c:out value="${articleForm.content}" escapeXml="false"/><br>
		</c:if>
		<c:if test="${!isGuest}">
		<iframe ID="eWebEditor1" src='<c:url value="/sys/editor/index.jsp"/>?id=content&style=s_newssystem&originalfilename=d_originalfilename&savefilename=d_savefilename&savepathfilename=d_savepathfilename' frameborder="0" scrolling="no" width="100%" HEIGHT="300"></iframe>
		</c:if>
		</td>
	</tr>
	<tr class="td">
	  <td align="left" width="40%" nowrap>发布日期：(最多50字符)</td>
	  <td align="left"  width="60%">
<html:text property="issuetime" size="40"  readonly="true" onclick="return setday(this,this)"/></td>
	</tr>
	<tr class="td">
	  <td align="left" width="40%" nowrap>作者：(最多255字符)</td>
	  <td align="left"  width="60%">
<html:text property="author" size="40" maxlength = "255"/></td>
	</tr>

	<tr class="td">
	  <td align="left" width="40%" nowrap>来源：(最多255字符)</td>
	  <td align="left"  width="60%">
<html:text property="source" size="40" maxlength = "255"/></td>
	</tr>

	<tr class="td">
	  <td align="left" width="40%" nowrap>连接地址：(最多255字符)</td>
	  <td align="left"  width="60%">
<html:text property="url" size="40" maxlength = "255"/></td>
	</tr>

	<tr class="td">
	  <td align="left" width="40%" nowrap>图片：(最多255字符)</td>
	  <td align="left"  width="60%">
<html:file property="uploadFile" size="20"/>
				<c:if test="${articleForm.havefile != null && articleForm.havefile != 0 &&articleForm.id != null && articleForm.id != '' && articleForm.filename != '' && articleForm.filename != null}">
				<a href='<c:url value="${filename}"/>' target="_blank"><img src='<c:url value="${filename}"/>' border="0" width="50" height="50"></a><input type="button" value="删除图片" onclick="havefile.value=0;alert('按确定后才生效！')"/>
				</c:if>
</td>
	</tr>

	<tr class="td"><td colspan="2" align=center><input type="submit" Class="button" value="确定" <c:if test="${isGuest}">disabled</c:if>/> <c:if test="${from == '' || from == null}"><input type="button" value=" 取消 " onclick="cancelValue(this.form);"  class="button" ></c:if></td></tr>
</html:form>
</table>
</body>
</html>

