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

📄 editnews.jsp

📁 JSP+MYSQL能飞网络办公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="study_mainmenu.jsp"%>



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




</TD><TD id=right_pane> 


<%
int id = Integer.parseInt((String)request.getParameter("id"));
rs=stmt.executeQuery("SELECT * from news 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" method="post" action="editnewsok.jsp?id=<%=rs.getString("id")%>"  onSubmit="return check1();">



<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"><input name="title" type="text" maxlength="120" value=<%=rs.getString("title")%> style="width:83%;" />&nbsp;
<select name="lei">
<option value="<%=rs.getString("lei")%>">默认选项</option>
<option value="1">通知公告</option>
<option value="2">公司新闻</option>
<option value="3">活动盛事</option>
<option value="4">业务知识</option>
<option value="5">规章制度</option>
<option value="6">企业文化</option>
<option value="7">产品相关</option>
</select></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" cols="50" 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="reset" name="dd" value="取消" class="pushbutton" />
</TD>
</tr>
</table>
</TD>
</TR>

</TABLE>



</form>
<%}%>




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





<%@ include file="end.jsp"%>
<script language=javascript>
 
<!--
  function check1(){
    ff=document.form1 

document.form1.content.value=document.form1.doc_html.value
if (ff.topic.value==""){
window.alert("请输入标题!")
      ff.topic.focus()
      return false
    }
if (ff.content.value==""){
window.alert("请输入正文!")
      ff.doc_html.focus()
      return false
    }
  }
//-->
</script>
</BODY>
</HTML>

⌨️ 快捷键说明

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