?? info_add.jsp
字號:
<%--function:添加交流信息
author:zxh
--%>
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<jsp:directive.page import="com.stframe.form.DataForm"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>添加交流信息</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<link rel="stylesheet" href="<%=path %>/CSS/style.css" type="text/css">
<script type="text/javascript">
function getNow(){
var Stamp=new Date();
var year = Stamp.getYear();
var month = Stamp.getMonth()+1;
var day = Stamp.getDate();
var hour=Stamp.getHours();
var minute=Stamp.getMinutes();
var second=Stamp.getSeconds();
if(month<10){
month="0"+month;
}
if(day<10){
day="0"+day;
}
if(hour<10){
hour="0"+hour;
}
if(minute<10){
minute="0"+minute;
}
if(second<10){
second="0"+second;
}
return year+"-"+month+"-"+day+" "+hour+":"+minute+":"+second;
}
function checkdata()
{
var ti=document.getElementById("TITLE").value;
var con=document.getElementById("CONTENT").value;
if(ti.length<=0){
alert("請添加交流信息標題!");
document.getElementById("TITLE").focus();
return false;
}
if(con.length<=0){
alert("請添加交流信息內容!");
document.getElementById("CONTENT").focus();
return false;
}
var time=getNow();
document.getElementById("ISSUE_DATE").value=time;
return true;
}
</script>
</head>
<body topmargin="0" leftmargin="0">
<center>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="26" align="center" valign="middle" bgcolor="#66CCFF">
添加交流信息
</td>
</tr>
</table>
<p></p>
<FORM method="post"
action="<%=path%>/Selevet.do?action=INFO_SAVE">
<table border="1" width="70%" cellspacing="0" cellpadding="0"
bordercolor="#99CCFF" bordercolordark="#FFFFFF" height="233">
<input type="hidden" name="CMD" value="A" />
<input type="hidden" name="ISSUE_DATE" id="ISSUE_DATE" value="" />
<input type="hidden" name="TYPE" id="TYPE" value="0" />
<tr>
<td align="right" bgcolor="#eff0ef">
<strong>交流信息標題 </strong>
</td>
<td>
<input type="text" name="TITLE" id="TITLE" size="35"
maxlength="50" />
<span class="STYLE1">*</span>
</td>
</tr>
<tr>
<td width="17%" height="27" align="right" bgcolor="#eff0ef">
<strong>交流信息內容 </strong>
</td>
<td height="27">
<FCK:editor instanceName="CONTENT" height="350px" width="100%">
<jsp:attribute name="value">
</jsp:attribute>
</FCK:editor>
</td>
</tr>
<tr>
<td height="27" colspan="4">
<strong> <label>
<input type="submit" name="submit" id="submit" value="發布" style="margin-left:35%;"
onClick="return checkdata();" />
<input type="button" name="btn_exit" id="btn_save" value="返回"
onClick="javascript:{history.back();}" />
</label> </strong>
</td>
</tr>
</table>
</FORM>
</center>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -