【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="特约研究员" >特约研究员</option>
<option value="">不选择</option>
</select></td>
</tr>
</table>
<%}
if(classtype.equals("3")){%><input name=classid type=hidden value="<%=classid%>">
<table border="0" cellspacing="0" width="100%" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0">
<tr>
<td width="15%" align="right" height="28"><b>网站名称:</b></td>
<td height="28" width="608">
<input type="text" name="txttitle" size="48" value="<%=rs.getString("title")%>"
class="smallinput" maxlength="100"><FONT SIZE="" COLOR="#FF0000">*</FONT> </td>
</tr>
<tr>
<td width="15%" align="right" height="58"><b>Logo图片上传:</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")%>"><b>Logo</b>地址</td>
</tr>
<tr>
<td width="15%" align="right" valign="top"><b>网站地址:</b></td>
<td width="608" >
<input type="text" name="txtcontent" size="65" value="<%=rs.getString("content")%>"
class="smallinput"></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")%>"><input type=hidden name="htmlable" value="yes"></td>
</tr>
</table>
<%}%>
</td>
</tr>
</table>
</center></div><div align="center"><center><p>
<input type="submit" value="修 改"
name="cmdok" class="but"> <input type="reset" value="复 原"
name="cmdcancel" class="but"></p>
</center></div>
</form>
<script>
function gopreview()
{
//document.forms[1].title.value=document.forms[0].subject.value;
document.forms[1].body.value=document.forms[0].txtcontent.value;
var popupWin = window.open('preview.jsp', 'preview_page', 'scrollbars=yes,width=600,height=450');
document.forms[1].submit()
}
function gopreview2()
{
//document.forms[2].title.value=document.forms[0].subject.value;
document.forms[2].body2.value=document.forms[0].txtcontent.value;
var popupWin = window.open('preview2.jsp', 'preview_page', 'scrollbars=yes,width=600,height=450');
document.forms[2].submit()
}
</script>
</body>
</html>
上一篇:
复件action.jsp
下一篇:
经济可持续发展论文:将可持续发展内生化的新经济发展方式