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

📄 updatearticle.jsp.svn-base

📁 一个实用的CMS管理
💻 SVN-BASE
字号:
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://fckeditor.net/tags-fckeditor" prefix="FCK" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="true">
  <head>
  <title>新增文章</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="robots" content="noindex, nofollow">
		<link href="../css/sample.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../fckeditor/fckeditor.js"></script>
				<link rel="stylesheet" type="text/css" href="css/extremecomponents.css"> 
		<s:head />  
				<script language="javascript">
function getSize() {
     var xScroll, yScroll;
     if (window.innerHeight && window.scrollMaxY) {
             xScroll = document.body.scrollWidth;
             yScroll = window.innerHeight + window.scrollMaxY;
     } else if (document.body.scrollHeight > document.body.offsetHeight){      // all but Explorer Mac
             xScroll = document.body.scrollWidth;
             yScroll = document.body.scrollHeight;
     } else {      // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
             xScroll = document.body.offsetWidth;
             yScroll = document.body.offsetHeight;
     }

     var windowWidth, windowHeight;
     if (self.innerHeight) {      // all except Explorer
             windowWidth = self.innerWidth;
             windowHeight = self.innerHeight;
     } else if (document.documentElement && document.documentElement.clientHeight) {      // Explorer 6 Strict Mode
             windowWidth = document.documentElement.clientWidth;
             windowHeight = document.documentElement.clientHeight;
     } else if (document.body) {      // other Explorers
             windowWidth = document.body.clientWidth;
             windowHeight = document.body.clientHeight;
     }

     // for small pages with total height less then height of the viewport
     if(yScroll < windowHeight){
             pageHeight = windowHeight;
             y = pageHeight;
     } else {
             pageHeight = yScroll;
             y = pageHeight;
     }

     if(xScroll < windowWidth){
             pageWidth = windowWidth;
     } else {
             pageWidth = xScroll;
     }

     arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
     return arrayPageSize;
}

function autoHeight(pid) {
     var x = new getSize();
     parent.document.getElementById(pid).height=x[1];
}

</script>
  </head>
    <body>
    <div class="eXtremeTable" >
<table border="0"  cellpadding="0"  cellspacing="0"  width="60%" >
	<tr>
		<td><span class="title" ><s:text name="suncms.article.view.article.article_update" /></span></td>
		</tr>
</table>
 <s:form action="/Article.action">
  <table  border="0"  cellspacing="0"  cellpadding="0"  class="tableRegion"  width="95%" >
	<tbody class="tableBody" >
	<tr class="odd" >
		<td><s:text name="suncms.article.view.article.article_title" /> </td>
		<td> <s:textfield name="article_title" value="%{article_title}"/></td>
	</tr>
	<tr class="even" >
		<td><s:text name="suncms.article.view.article.article_overdue" /> </td>
		<td> <s:datetimepicker name="article_overdue" value="%{article_overdue}" label="Format(yyyy-MM-dd)" displayFormat="yyyy-MM-dd"/></td>
	</tr>
	<tr class="odd" >
		<td><s:text name="suncms.article.view.article.class_name" /> </td>
		<td><s:textfield name="AC.class_name" value="%{AC.class_name}"/>
		<s:hidden name="AC.row_id" value="%{AC.row_id}"/>
		<s:hidden name="AC.if_check" value="%{AC.if_check}"/>
		<s:hidden name="row_id" value="%{row_id}"/>
		
		</td>
	</tr>
	 <tr class="even">
	 <td><s:text name="suncms.article.view.article.article_content" /> 
     <td align="center"  >
     <FCK:editor id="article_content" basePath="/sunCMS/fckeditor/"  height="400" ><s:property value="article_content"/>
	</FCK:editor>
		</td>
		</tr>
	
	<tr class="odd" >
		<td colspan="2">
		<s:submit key="suncms.article.view.article.submit_new" method="update"/>
		<s:if test='%{AC.if_check == "N"}'>
		<s:submit key="suncms.article.view.article.submit_publish" method="updatepublish"/>
		</s:if>
		</td>
	</tr>
	
	</tbody>
</table>
 </s:form>
  </div>
  <script language="javascript">
   		var x = new getSize();
    
     top.document.all.item("main").height = x[1]+20;
     
    </script>
   </body>
</html>

⌨️ 快捷键说明

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