📄 articleupdate.jsp
字号:
<%@ page language="java" pageEncoding="GB2312" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<HEAD>
<link href="../images/myweb.css" rel="stylesheet" type="text/css">
<title>管理界面</title>
<style type="text/css">
<!--
body {
background-image: url(../images/main_bg.gif);
}
-->
</style>
<script language="javascript">
function setCount(choice){
List1=new Array(8)
List2=new Array(6)
List3=new Array(6)
List1[0]="数学教案"
List1[1]="数学课件"
List1[2]="数学建模"
List1[3]="案例研究"
List1[4]="教学叙事"
List1[5]="教育评价"
List1[6]="研究方法"
List1[7]="数学从书简介"
List2[0]="数学史料"
List2[1]="数学故事"
List2[2]="数学家简介"
List2[3]="经典名题"
List2[4]="生活中的数学"
List2[5]="趣味数学题"
List3[0]="幼儿数学教育"
List3[1]="小学数学能力培养"
List3[2]="初中生数学学习"
List3[3]="名师访谈"
List3[4]="名校简介"
List3[5]="经验心得"
var i
var listobj=document.article.articletype2
var currsel=listobj.selectedIndex
if (choice.value==0)
{
for (i=0;i<List1.length;i++)
listobj.options[i]=new Option(List1[i],i)
}
else if(choice.value==1){
for ( i=0;i<List2.length;i++)
listobj.options[i]=new Option(List2[i],i)}
else if(choice.value==2){
for ( i=0;i<List3.length;i++)
listobj.options[i]=new Option(List3[i],i)
}
//document.write(choice.value)
listobj.options[0].selected=true
}
</script>
</head>
<body >
<br>
<html:form action="/admin/article/articlesave.do" enctype="multipart/form-data">
<table width="99%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td>
<table width="82" height="28" border="0" cellpadding="0" cellspacing="0" background="../images/main_menu_bg.gif">
<tr>
<td valign="bottom"><div align="center">文章信息修改</div></td>
</tr>
</table>
</td>
</tr>
</table>
<html:hidden property="articleid"/>
<table width="99%" cellpadding="3" cellspacing="1" border="0" align="center" class="main_table">
<tr>
<td colspan="3" align="center" class="main_topbg" >网站后台管理</td>
</tr>
<tr >
<td width="160" class="myweb_td" >文章标题:</td>
<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
<html:text property="articletitle" size="70"/>
</td>
<td class="myweb_td" width="260px">
</td>
</tr>
<tr>
<td class="myweb_td" >
文章类别:
</td>
<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
<html:radio property="articletype1" value="0" onclick="setCount(this)" />教学参考
<html:radio property="articletype1" value="1" onclick="setCount(this)" />学习资源
<html:radio property="articletype1" value="2" onclick="setCount(this)" />家长必读
</td>
<td class="myweb_td" width="260px">
</td>
</tr>
<tr>
<td class="myweb_td" >
文章类型:
</td>
<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
<html:select property="articletype2" >
<%
int articletype1=Integer.parseInt((String)request.getAttribute("articletype1"));
int articletype2=Integer.parseInt((String)request.getAttribute("articletype2"));
String [][] List=new String[3][8];
List[0][0]="数学教案";
List[0][1]="数学课件";
List[0][2]="数学建模";
List[0][3]="案例研究";
List[0][4]="教学叙事";
List[0][5]="教育评价";
List[0][6]="研究方法";
List[0][7]="数学从书简介";
List[1][0]="数学史料";
List[1][1]="数学故事";
List[1][2]="数学家简介";
List[1][3]="经典名题";
List[1][4]="生活中的数学";
List[1][5]="趣味数学题";
List[2][0]="幼儿数学教育";
List[2][1]="小学数学能力培养";
List[2][2]="初中生数学学习";
List[2][3]="名师访谈";
List[2][4]="名校简介";
List[2][5]="经验心得";
out.println("<option value="+articletype2+">"+List[articletype1][articletype2]+"</option>");
%>
</html:select>
</td>
<td class="myweb_td" width="260px">
</td>
</tr>
<tr>
<td class="myweb_td" >
上传附件:
</td>
<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
<html:file property="theFile"/>
</td>
<td class="myweb_td" width="260px">
</td>
</tr>
<tr>
<td class="myweb_td" >
文章内容:
</td>
<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
<html:textarea property="articlecontent" rows="20" cols="70"></html:textarea>
</td>
<td class="myweb_td" width="260px">
</td>
</tr>
<tr>
<td class="myweb_td" >
下载附件:
</td>
<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
<bean:write name="articleForm" property="article_download" scope="request" filter="false"/>
</td>
<td class="myweb_td" width="260px">
</td>
</tr>
<tr>
<td colspan="3" class="myweb_td" align="center">
<html:submit value="修改" onclick="{if(confirm('您确定要将原有数据进行修改吗?')){return true;}return false;}"/>
</td>
</tr>
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -