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

📄 articleadd.jsp

📁 数学网
💻 JSP
字号:
<%@ page language="java" pageEncoding="gb2312" import="math.login.model.User"%>
<%@ 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/articleadd.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>
<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">
  			 &nbsp;
  		</td>
  	</tr>	
  	<tr>
  		<td class="myweb_td" >
  			文章类型1:
  		</td>
    		<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
    			<input type=radio  name="articletype1" value=0 onClick="setCount(this)" checked>教学参考
    			<input type=radio  name="articletype1" value=1 onClick="setCount(this)" >学习资源
    			<input type=radio  name="articletype1" value=2 onClick="setCount(this)" >家长必读
  		</td>
  		<td class="myweb_td" width="260px">
  			 &nbsp;
  		</td>
  	</tr>
  	
  	<tr>
  		<td class="myweb_td" >
  			文章类型2:
  		</td>
  		
    		<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
    	
        			<select name="articletype2" >
        	<OPTION>请选择文章类型</OPTION>
        	        
        	    	</select>
  		</td>
  		<td class="myweb_td" width="260px">
  			 &nbsp;
  		</td>
  	</tr>  	
  	<tr>
  		<td class="myweb_td" >
  			 发布人ID:
  		</td>
    		<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
    			<%out.print( ((User)session.getAttribute("USER")).getUsername());%>
  		</td>
  		<td class="myweb_td" width="260px">
  			 &nbsp;
  		</td>
  	</tr>
  	<tr>
  		<td class="myweb_td" >
  			 发布时间:
  		</td>
    		<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
    		2006-12-8
  		</td>
  		<td class="myweb_td" width="260px">
  			 &nbsp;
  		</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">
  			 &nbsp;
  		</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">
  			&nbsp;
  		</td>
  	</tr>
  	<tr>
  		<td colspan="3" class="myweb_td" align="center">
  			<html:errors/><html:submit value="添加" />
  		</td>
  	</tr>
</table>
</html:form>
</body>
</html>

⌨️ 快捷键说明

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