【JSP开源代码栏目提醒】:本文主要为网学会员提供复件editarticle.jsp,希望对需要复件editarticle.jsp网友有所帮助,学习一下!
<%@ include file="conn.jsp"%>
<%if ((session.getValue("admin")==null)||(session.getValue("admin")=="")){
response.sendRedirect("admin.jsp");
}
String sql;
String id=request.getParameter("id");
String classid=request.getParameter("classid");
String classtype=request.getParameter("classtype");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<title>添 加 资 料</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<form method="POST" name="myform" action="adminsave.jsp?id=<%=id%>&action=edit"><input type="hidden" name="classtype" value=<%=classtype%>>
<table class="border" cellspacing="0" width="95%" border="0" cellpadding="4" cellspacing="0" align=center>
<tr>
<td width="100%" class="title" height="20"><center><p><b>修 改 资 料</b></td>
</tr>
<tr align="center">
<td class="tdbg" width="100%">
<% sql="select * from scott.article where articleid='"+id+"'";
ResultSet rs=stmt.executeQuery(
sql);
if(classtype.equals("1")){%>
<table border="0" cellspacing="0" width="100%" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" height="281">
<tr>
<td width="99" align="right" height="28"><b>资料标题:</b></td>
<td height="28" width="608">
<input type="text" name="txttitle" size="48"
class="smallinput" maxlength="100" value="<%=rs.getString("title")%>"><FONT SIZE="" COLOR="#FF0000">
<select size="1" name="classid" class=select>
<%sql="select classid,class from scott.class where classtype=1 order by rootid,ordersid";
ResultSet rs1=stmt1.executeQuery(sql);
while(rs1.next()){ %>
<option value=<%=rs1.getString("classid")%> ><%=rs1.getString("class")%></option>
<%}%>
</select> *</FONT> </td>
</tr>
<tr>
<td width="80" align="right" height="58"><b>文件上传:</b></td>
<td height="58">
<iframe name="ad" frameborder=0 width=100% height=20 scrolling=no src=upload.htm></iframe> <BR>
<input type="text" name="piccontent" size="40"
class="smallinput" value="<%=rs.getString("picurl")%>">文件地址</td>
</tr>
<tr>
<td width="99" align="right" valign="top" height="62"><b>文章内容:</b></td>
<td width="608" height="62" >
<textarea rows="21" name="txtcontent" cols="80" class="smallarea"><%=rs.getString("content")%>
</textarea></td>
</tr>
<tr>
<td width="99" align="right" height="28"><b>来源:</b></td>
<td width="608" height="28" >
<input type="text" name="writefrom" size="18"
class="smallinput" maxlength="100" value="<%=rs.getString("writefrom")%>">
<b>作者:</b><input type="text" name="writer" size="18"
class="smallinput" maxlength="100" value="<%=rs.getString("writer")%>"> 添加时间:<input type="text" name="addtime" size="18"
class="smallinput" maxlength="100" value="<%=rs.getString("addtime")%>"></td>
</tr>
<tr>
<td width="99" align="right" height="30"><b>支持HTML:</b></td>
<td height="30" width="608">
<input type=checkbox name="htmlable" value="yes"> 选择后文章全部支持
HTML语法,UBB语法将没有任何作用</td>
</tr>
</table>
<%}
if(classtype.equals("2")){%><input name=classid type=hidden value="<%=classid%>">
<table border="0" cellspacing="0" width="100%" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" height="361">
<tr>
<td width="15%" align="right" height="28"><b>学者名称:</b></td>
<td height="28" width="608">
<input type="text" name="txttitle" size="48"
class="smallinput" maxlength="100" value="<%=rs.getString("title")%>"><FONT SIZE="" COLOR="#FF0000">*</FONT> </td>
</tr>
<tr>
<td width="15%" align="right" height="58"><b>照片上传:</b></td>
<td height="58">
<iframe name="ad" frameborder=0 width=100% height=20 scrolling=no src=../saveannounce_upload1.jsp></iframe> <BR><input type="text" name="piccontent" size="40"
class="smallinput" value="<%=rs.getString("picurl")%>">文件地址</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" height="194"><b>学者介绍:</b></td>
<td width="608" height="194" >
<textarea rows="18" name="txtcontent" cols="80" class="smallarea"><%=rs.getString("content")%></textarea></td>
</tr>
<tr>
<td width="15%" align="right" height="28"><b>添加时间:</b></td>
<td width="608" height="28" >
<input type="text" name="addtime" size="18"
class="smallinput" maxlength="100" value="<%=rs.getString("addtime")%>"> <select size="1" name="writefrom" class="select">
<option value="特约研究员" >特约