gvMood.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:2k
- <%@ page language="java" contentType="text/html;charset=UTF-8"
- errorPage="err.jsp" %>
- <%
- int tID = 0;
- int ipage = 1;
- int ip;
- if(request.getParameter("ipage")!=null){
- ipage = Integer.parseInt(request.getParameter("ipage"));
- }
- if(ipage==1){
- ip = 20;
- }else{
- ip = ipage * 20;
- }
- if(request.getParameter("tID")!=null){
- tID = Integer.parseInt(request.getParameter("tID"));
- }
- StringBuffer sb = new StringBuffer();
- sb.append("<div id="threadtree_").append(tID).append("">n");
- for(int i=(ip-19); i<=ip; i++){
- sb.append("<input type="radio" name="gvTopicMood" value=""+i+"" /><img src="GVimgs/GamVanMood/"+i+".gif"> ");
- if((i % 10)==0){
- sb.append("<br>");
- }
- }
- sb.append("</div>");
- %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="../GVinc/main.css" rel="stylesheet" type="text/css" />
- <title></title>
- <script language="JavaScript" type="text/JavaScript">
- <!--
- var ie4 = document.all && navigator.userAgent.indexOf("Opera") == -1;
- var ns6 = document.getElementById && !document.all;
- var ns4 = document.layers;
- function loadtree(id) {
- var sobj = ie4 ? eval("document.all.threadtree_" + id) : ns6 ? document.getElementById("threadtree_" + id ) : ns4 ? eval("document.threadtree_" + id) : "";
- var tobj = ie4 ? eval("parent.document.all.replies_" + id) : ns6 ? parent.document.getElementById("replies_" + id ) : ns4 ? eval("parent.document.replies_" + id) : "";
- if(sobj != null && tobj != null) {
- if(ie4 || ns6) {
- tobj.innerHTML = sobj.innerHTML;
- }
- else {
- tobj.document.write(sobj.innerHTML);
- tobj.document.close();
- }
- }
- }
- //-->
- </script>
- </head>
- <body onload="loadtree(<%=tID%>)">
- <%=sb.toString()%>
- </body>
- </html>