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

📄 afficheupdate.jsp

📁 这是一个SDO实现的列子
💻 JSP
字号:
<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" session="false"%>
<%@ page import="affiche.*,com.chuanghui.common.db.*"%>
<%@ page import="com.fredck.FCKeditor.*" %>
<portletAPI:init />
<%
String path=request.getContextPath();

String selectDateText="txtsenddate";
selectDateText=portletResponse.encodeNamespace(selectDateText);
%>
<script language="JavaScript" src="<%=path%>/common/calendar/calendar.js"></script>
<%
AfficheDB pdb=(AfficheDB)request.getAttribute("pdb");
System.out.println(pdb.GetDescription());
%>

<H3 style="margin-bottom: 3px">修改公告!</H3>
<FORM method="POST" action="<portletAPI:createURI><portletAPI:URIAction name='<%=AffichePortlet.EDIT_ACTION%>'/></portletAPI:createURI>">
<TABLE width="70%" border="1" cellpadding="0" cellspacing="0">
	<TBODY>
		<TR>
			<TD>公告标题</TD>
			<TD><INPUT type="text" name="txttitle" size="20" value="<%=pdb.GetTitle() %>"></TD>
		</TR>
		<TR>
			<TD>公告内容</TD>
			<TD><% FCKeditor oFCKeditor ;
oFCKeditor  =   new  FCKeditor( request,  "txtdescription"  ) ;
 oFCKeditor.setBasePath( "/FCKeditor/");
 oFCKeditor.setValue(pdb.GetDescription());
 oFCKeditor.setHeight("300");
 oFCKeditor.setWidth("98%");
 out.println(oFCKeditor.create() ) ;
  %>
</TD>
		</TR>
		<TR>
			<TD>发送范围</TD>
			<TD><TEXTAREA rows="2" cols="29" name="txtarea"><%=pdb.GetArea() %></TEXTAREA></TD>
		</TR>
		<TR>
			<TD>发布时间</TD>
			<TD><INPUT type="text" readonly name="<%=selectDateText %>" size="20" value="<%=pdb.GetSendDate() %>" onclick="selectDate_Time('<%=path%>','<%=selectDateText %>');" style="cursor:hand"/></TD>
		</TR>
		<TR>
			<TD>发布状态</TD>
				<TD><SELECT name="txtstate" style="font-size: 12pt">
				
				<% int a=pdb.GetState() ; 
				   if (a==0) 
				   {
				       out.print("<option value=0 selected>未发布</option>");
                       out.print("<option value=1 >已发布</option>");
				   }
				   if (a==1)
                  {
                       out.print("<option value=0 >未发布</option>");
                       out.print("<option value=1 selected>已发布</option>");
                  }
				   
				   %>

			</SELECT></TD>
		</TR>
		
		<tr><td></td><td align="center"><INPUT type="submit" name="butadd" value="保存" class="wpsButtonText"> <INPUT
				type="submit" name="butback" value="返回" class="wpsButtonText"></td></tr>
		<tr><td></td><td align="center"><INPUT type="hidden" name="txthidden" value="update"></td></tr>
	</TBODY>
</TABLE>
</FORM>

⌨️ 快捷键说明

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