<%@page language="java" contentType="text/html; charset=UTF-8"%> <%@ include file="./config.jsp" %> <%@page import="jcms.extramodule.comment.VotingFun"%> <%@page import="java.util.*"%> <%@page import="java.text.SimpleDateFormat"%> <%@page import="java.io.File"%> <%@page import="com.hanweb.common.util.Convert"%> <%@page import="java.util.Vector"%> <%@page import="jcms.entity.module.Jcms_Voting_KindEntity"%> <%@page import="jcms.blf.module.voting.Jcms_Voting_KindBLF"%> <%@page import="java.util.ArrayList"%> <%@page import="com.hanweb.taglib.listview.ListTable"%> 网上调查_bet356联盟_皇冠bet356_bet356提款免费吗 <% String strPath = VotingFun.getPath(application.getRealPath(""), strAppID,strWebID); String strUnitPath = strPath + "config" + File.separator + "init0.xml"; File init = new File(strUnitPath); if(!init.exists()){ Convert ct = new Convert(); ct.copyFile(strPath + "config" + File.separator + "init.xml",strUnitPath); } String strConfigPath = strPath + "config" + File.separator + "config.xml"; String strWebServerName = xmlFile.getContent("web_in_servername",strConfigPath); //当前页 int nCurrent = Convert.getParameterInt(request,"currpage",1); // 当前页码 String strPageCount = xmlFile.getContent( "pagelistnum", strUnitPath ); // 更多列表页显示的记录数 int pageNum = Convert.getStringValueInt(strPageCount,10); String strScript = xmlFile.getContent( "columlist", strUnitPath ); // 更多的script strScript =Convert.getValue(strScript); String strwebtype = xmlFile.getContent( "webtype", strConfigPath ); // 1 制作端; 2 web服务器端 strwebtype = Convert.getValue(strwebtype); Date d =new Date(); long time = d.getTime(); strWebServerName = Convert.getValue(strWebServerName); Jcms_Voting_KindBLF vBLF = new Jcms_Voting_KindBLF(strAppID, strWebID); int iType = Convert.getParameterInt(request,"type",1); int iscope = Convert.getParameterInt(request,"scope",-1); int totalNum = vBLF.getUnitCountByScope(iType,iscope); ArrayList list = vBLF.getEntity(iType,nCurrent,pageNum,iscope);//查询问卷主题,带分页 if(list == null || list.size() == 0) { out.println("数据库中没有该调查或参数有误!"); return; } int nStart = strScript.indexOf( "" ); int nEnd = strScript.indexOf( "" ); String strHead = ""; String strForTr = ""; String strEnd = ""; String strContent = ""; String strDisplay = "none"; if( nStart != -1 && nEnd != -1 && nEnd > nStart ) { strHead = strScript.substring(0,nStart ); strForTr = strScript.substring( nStart+10,nEnd ); strEnd = strScript.substring( nEnd+11 ); } String strMoreUrl = ""; String strUrl = ""; String strDepiction = ""; Vector v_label = new Vector(5); v_label.add( ""); v_label.add( "" ); v_label.add( "" ); v_label.add(""); v_label.add( "" ); Vector v_value = new Vector(5); StringBuffer sbContent = new StringBuffer(); String strLabel = ""; String strKindName = ""; String strEndtime = ""; int nScope = 0; int seq = (nCurrent-1)*pageNum+1; // 问题的序号初始值 Jcms_Voting_KindEntity votingKind_entity = new Jcms_Voting_KindEntity(); for( int i=0; i endtime) { state = "已结束"; } else { state = "进行中"; } //nScope = VotingFun.getScope( strEndtime ); //if(nScope==0){ strLabel = "截至: "+strEndtime; strKindName = "" +strKindName+ ""; //} //else if(nScope==1){ // strLabel = "截至: "+strEndtime; // strKindName = "" +strKindName+ ""; //} strUrl = "./index.jsp?kindid="+votingKind_entity.getI_id()+"&type=1&inlay=yes"; strKindName = votingKind_entity.getVc_name(); v_value.add( String.valueOf(seq+i) ); v_value.add( strUrl ); v_value.add( strKindName ); v_value.add(state); v_value.add( strLabel ); for( int j=0;j",strDisplay); strContent = Convert.replaceString( strContent,"",strMoreUrl); strContent = Convert.replaceString( strContent,"",strDepiction); strContent = Convert.replaceString( strContent,"",""); /* 分页代码 */ ListTable listtable = new ListTable(request); String strPages = listtable.getPages( "./que_questionairelist.jsp?scope="+iscope+"&type="+iType,totalNum,pageNum,nCurrent,"",""); // 分页代码 strContent += "
"+strPages; String strModal = ""; strModal = VotingFun.getModal(strWebID, strAppID, application.getRealPath(""), strwebtype, strWebServerName); strModal = Convert.getValue(strModal); if(strModal.length() > 0){ String strFrom1 = ""; int nPos1 = strModal.indexOf( strFrom1 ); int nPos2 = strModal.indexOf( strFrom2, nPos1 ); if( nPos1!=-1 && nPos2!=-1 && nPos2>nPos1 ) strContent = strModal.substring(0,nPos1) + strContent + strModal.substring( nPos2+strFrom2.length() ); } if(sbContent.length() > 0) sbContent.delete(0,sbContent.length()); out.println( strContent ); %>