📄 freeadd.jsp
字号:
<%@ include file="conn.jsp"%>
<%if ((session.getValue("admin")==null)||(session.getValue("admin")=="")){
response.sendRedirect("admin.jsp");
}
request.setCharacterEncoding("GB2312");
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?action=add">
<input type="hidden" name="classid" value=<%=classid%>>
<input type="hidden" name="classtype" value=<%=classtype%>>
<%if(classtype.equals("1")){%>
<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%">
<table border="0" cellspacing="0" width="100%" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" height="361">
<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"><FONT SIZE="" COLOR="#FF0000">*</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=upfile.htm></iframe> <BR><input type="text" name="piccontent" size="40"
class="smallinput">文件地址</td>
</tr>
<tr>
<td width="99" align="right" valign="top" height="194"><b>资料内容:</b></td>
<td width="608" height="194" >
<textarea rows="18" name="txtcontent" cols="80" class="smallarea"></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"> 作者:<input type="text" name="writer" size="18"
class="smallinput" maxlength="100"> 添加时间:<input type="text" name="addtime" size="18"
class="smallinput" maxlength="100" ></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>
<%}
if(classtype.equals("2")){%>
<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%">
<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"><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=upfile.htm></iframe> <BR><input type="text" name="piccontent" size="40"
class="smallinput">文件地址</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"></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=""><input type=hidden name="htmlable" value="yes">
<select size="1" name="writefrom" class="select">
<option value="特约研究员">特约研究员</option>
<option selected value="">不选择</option>
</select></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>
<%}
if(classtype.equals("3")){%>
<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%">
<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"
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=upfile.htm></iframe> <BR><input type="text" name="piccontent" size="40"
class="smallinput"><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"
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=""><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>
<form name=preview action=preview.jsp method=post target=preview_page>
<input type=hidden name=title value=""><input type=hidden name=body value="">
</form>
<form name=preview2 action=preview2.jsp method=post target=preview_page>
<input type=hidden name=title2 value=""><input type=hidden name=body2 value="">
</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -