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

📄 edittuoban.jsp

📁 一个不错的JSP OA,有兴趣的看看
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ include file="top.jsp"%>
<TABLE id=Table1 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR id=main_section vAlign=top>
<TD>

      <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR >
          <TD   class=welcomeleft id=left_pane vAlign=top width=155 >
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0  background=../images/back.gif height=586>
              <TBODY>
               <TR>
                <TD   valign=top>


<%@ include file="personal_menu.jsp"%>



             </TD></TR>
             </TBODY></TABLE>




</TD><TD id=right_pane> 

<%
int id = Integer.parseInt((String)request.getParameter("id"));
rs=stmt.executeQuery("SELECT * from affair where id="+id);
while(rs.next()){
%>

<body onload="document.form1.doc_html.value=document.form2.conten2.value">

<div id="Layer1" style="position:absolute; left:583; top:508; width:1; height:1; z-index:1; visibility: hidden">
  <form name="form2" id=form2 method="post" action="">
    <textarea name="conten2" id="conten2" rows="1" cols="1"><%=rs.getString("content")%></textarea>
  </form>
</div>
<p> </p>
<p> </p>


<form name="form1" id=form1 method="post" action="edittuobanok.jsp?id=<%=id%>" onsubmit="document.form1.content.value=document.form1.doc_html.value">

<TABLE cellSpacing="0" cellPadding="0" width="90%" align="center" border="0" class="article-page" bordercolor=red>

<TR>
<TD valign="top">
<TABLE style="BORDER-RIGHT: thin solid; BORDER-TOP: thin solid; FONT-SIZE: x-small; BORDER-LEFT: thin solid; BORDER-BOTTOM: thin solid; FONT-FAMILY: Verdana; HEIGHT: 66px"	cellSpacing="0" cellPadding="2" width="100%" border="0">

<TR >
<TD style="WIDTH: 88px; HEIGHT: 27px" vAlign="top">发住:</TD>
<TD style="HEIGHT: 27px" vAlign="top">
<select name="bumen"><option  value=<%=rs.getString("bumen")%>  selected><%=rs.getString("bumen")%></option>

<%String bumenold=rs.getString("bumen");
rs=stmt.executeQuery("SELECT *  from bumen order by id desc");
while(rs.next()){%>
<%if(rs.getString("bumenname").compareTo(bumenold)==0){}else{%>
<option value="<%=rs.getString("bumenname")%>" ><%=rs.getString("bumenname")%></option>
<%}}%>
</select>


<%
rs=stmt.executeQuery("SELECT * from affair where id="+id);
rs.next();%>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;状态:<input type="radio" name="flag" <%if(Integer.parseInt(rs.getString("flag"))==0){%>checked<%}%> value="0">普通&nbsp;&nbsp;<input type="radio" name="flag" value="1" <%if(Integer.parseInt(rs.getString("flag"))==1){%>checked<%}%>><font color=red>紧急</font></td>
</TR>


<TR >
<TD style="WIDTH: 88px; HEIGHT: 27px" vAlign="top">标题</TD>
<TD style="HEIGHT: 27px" vAlign="top"><input name="topic" type="text" maxlength="120" style="width:100%;" value=<%=rs.getString("topic")%> >&nbsp;</TD>
</TR>

<TR>
<TD style="WIDTH: 88px" vAlign="top">附件</TD>
<TD vAlign="top">
<iframe name="ad" src="upload.jsp" width="100%" height="25" frameborder=0 scrolling=no></iframe>
</TD>
</TR>

<TR>
<TD height=20></TD>
</TR>

<TR>
<TD style="WIDTH: 88px" vAlign="top">正文</TD>
<TD vAlign="top">

<textarea name="content" id="content" cols="1" rows="1"  style="display:none"></textarea>
<OBJECT id=doc_html style="LEFT: 0px; TOP: 0px" data=webedit/editor.htm width=100% height=320 type=text/x-scriptlet VIEWASTEXT>
</OBJECT>
</TD>
</TR>

</TABLE>
</TD>
</TR>


<tr>
<td class="article-page-body" height="100%" colspan="2" width="100%">
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0" height="100%" bordercolor=blue>
<TR><TD height=2 valign="top">
<div id="TaskCalendarPage1_BasePages1_theBodyControl_Toolbar">
<table height="35" cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<TD nowrap="nowrap" align="right" width="100%">
<input type="submit" name="aa" value="刷新"  class="pushbutton" / disabled="disabled" >
<input type="submit" name="bb" value="编辑" class="pushbutton" / disabled="disabled" >
<input type="submit" name="cc" value="保存" class="pushbutton" />
<input type="button" name="dd" value="返回" class="pushbutton" onclick="window.history.go(-1);">
</TD>
</tr>
</table>
</TD>
</TR>

</TABLE>

</form>
<%}%>

 </TD></TR></TBODY></TABLE></TD></TR>
</TBODY>
</table>


<%@ include file="end.jsp"%>
</BODY>
</HTML>

⌨️ 快捷键说明

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