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

📄 voteconfirmmy.jsp

📁 用手机浏览的一个类似于聊天室 博克 homepage 等 对这方面有 兴趣的朋友 有所帮助的
💻 JSP
字号:
<!--------------------------------------------------------------------------------------------------------------
*@霸烙皋牢
*@Author : zhou peng(2008-06-23)
--------------------------------------------------------------------------------------------------------------->
<%@ page import='java.io.*,java.text.*,java.util.Date,java.util.Vector, java.sql.*, com.entaz.lib.db.*, com.entaz.relay.net.*' contentType='text/html;charset=euc-kr'%>
<%@ include file="../imgpath.jsp"%>
<%@ include file="../common_func.jsp"%>
<%@ include file="formatUtil.jsp"%>
<%@ include file="../makeKOR.jsp"%>
<style  type="text/css">  
A:hover {
 COLOR: #000000; TEXT-DECORATION: underline
}
A:link {
 COLOR: #000000; TEXT-DECORATION: underline
}
A:visited {
 COLOR: #000000; TEXT-DECORATION: underline
}
</style> 
<%!
	public static String isNull(String str) 
	{ 
		if (str == null) 
		return ""; 
		else 
		return str;
	} 
%>
<%
	/**
	 *	@ version			:	1.0.0
	 *	@ author			:	zhou peng ( pengzhou@isoftstone.com )
	 *	@ last modified	:	2008-06-23
	 */
	/*------------------------------------------------------------------------------------------------------
	+		扁夯 颇扼固磐
	-------------------------------------------------------------------------------------------------------*/
	String mphone= request.getParameter("mphone");
	String gphone= request.getParameter("gphone");
	if(mphone == null){
		mphone= "09900100081";
	}	
	if(gphone == null){
		gphone = mphone;
	}
	mphone = getStrPhone(getLong(mphone));
 	gphone = getStrPhone(getLong(gphone));
	/*------------------------------------------------------------------------------------------------------
	+	傈开 函荐
	-------------------------------------------------------------------------------------------------------*/
	String		sql					= null;
	String		strNickname			= null;
	String		guestPhone			= null;
	String		title				= null;
	int			reCount				= 0;
	String		regdate				= null;
	int			tltleIdx			= 0;
	String 		strProvision1 		= null;
	String 		strProvision2 		= null;
	String 		strProvision3 		= null;
	String 		strProvision4 		= null;
	String 		strProvision5 		= null;
	String		actionName			= null;
	int			provisionNum		= 0;
	int			titleIdx			= 0;
	int			provisionCount		= 0;
	int		 	iBoolPage[]			= {0,0,0,0,0};
	boolean		boolPage			= false;
	
	String strTitle = null;
	
	if(request.getParameter("strTitle")!=null) strTitle=java.net.URLDecoder.decode(makeKOR(request.getParameter("strTitle"))); else strTitle="";
	
	if(request.getParameter("strProvision1")!=null) strProvision1=java.net.URLDecoder.decode(makeKOR(request.getParameter("strProvision1"))); else strProvision1="";
	
	if(request.getParameter("strProvision2")!=null) strProvision2=java.net.URLDecoder.decode(makeKOR(request.getParameter("strProvision2"))); else strProvision2="";
	
	if(request.getParameter("strProvision3")!=null) strProvision3=java.net.URLDecoder.decode(makeKOR(request.getParameter("strProvision3"))); else strProvision3="";
	
	if(request.getParameter("strProvision4")!=null) strProvision4=java.net.URLDecoder.decode(makeKOR(request.getParameter("strProvision4"))); else strProvision4="";
	
	if(request.getParameter("strProvision5")!=null) strProvision5=java.net.URLDecoder.decode(makeKOR(request.getParameter("strProvision5"))); else strProvision5="";
	
	if(request.getParameter("provisionNum")!=null) provisionNum=Integer.parseInt(request.getParameter("provisionNum")); else provisionNum=0;
	
	String researchText = null;
	
	if(request.getParameter("researchText")!=null) researchText=java.net.URLDecoder.decode(makeKOR(request.getParameter("researchText"))); else researchText="";
	
	/*------------------------------------------------------------------------------------------------------
	+	DB 包访 函荐
	-------------------------------------------------------------------------------------------------------*/
	Connection				con		= null;
	PreparedStatement		pstmt	= null;
	Statement				stmt	= null;
	ResultSet				rs		= null;
	ResultSet 				pageset = null;
	ResultSet				rsDate	= null;
	try
	{
	/*------------------------------------------------------------------------------------------------
	 *		DB 目池记
	 -------------------------------------------------------------------------------------------------*/
	%>
	<%@ include file="../getConnection.jsp"%>
	<%@ include file="bgColor.jsp"%>
	<%
	/*------------------------------------------------------------------------------------------------
	 *		Host nickName
	 -------------------------------------------------------------------------------------------------*/

	sql = " SELECT  nickname FROM GT_User_Info WITH (READUNCOMMITTED)  WHERE   phonenum='"+gphone+"'" ; 

	pstmt = con.prepareStatement(sql);
	
	rs = pstmt.executeQuery();
		 
	if( rs.next() )
	{
		strNickname = rs.getString("nickname");
	}else{
		strNickname = "绝澜";
	}
	rs.close();
	pstmt.close();	
	
	/*--------------------------------------------------------------------------------------------------------------------------------------
	 *		request  Null Check
	 ---------------------------------------------------------------------------------------------------------------------------------------*/
	 if (strTitle.equals("")){
	 	response.sendRedirect("ResearchRegisterCheck.jsp?mphone="+mphone+"&gphone="+gphone);
	 }else{
		if (provisionNum == 0){
			if( !researchText.equals("")){
				response.sendRedirect("ResearchRegisterCheck.jsp?mphone="+mphone+"&gphone="+gphone);
			}
			if (strProvision1.equals("")){
			provisionCount++;
			}
			if (strProvision2.equals("")){
				provisionCount++;
			}
			if (strProvision3.equals("")){
				provisionCount++;
			}
			if (strProvision4.equals("")){
				provisionCount++;
			}
			if (strProvision5.equals("")){
				provisionCount++;
			}
			if ( provisionCount > 3){
				response.sendRedirect("ResearchRegisterCheck.jsp?mphone="+mphone+"&gphone="+gphone);
			}
		}else {
			if (strProvision1.equals("")){
			provisionCount++;
			}
			if (strProvision2.equals("")){
				provisionCount++;
			}
			if (strProvision3.equals("")){
				provisionCount++;
			}
			if (strProvision4.equals("")){
				provisionCount++;
			}
			if (strProvision5.equals("")){
				provisionCount++;
			}
			if ( provisionCount > 3){
				response.sendRedirect("ResearchRegisterCheck.jsp?mphone="+mphone+"&gphone="+gphone);
			}
			String strProvision[] = { strProvision1,strProvision2,strProvision3,strProvision4,strProvision5 };
			
			if (!strProvision[provisionNum-1].isEmpty()){
				boolPage = true;
				}
			if (boolPage == false){
				response.sendRedirect("ResearchRegisterCheck.jsp?mphone="+mphone+"&gphone="+gphone);
				}
		}
	}
 %>
<html>
<head>
<title></title>
<link href="http://entaz.mugeta.com/client/mugeta_v2_test/web/user/mobile.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="176" border="0" cellspacing="0" cellpadding="0">
	<!-- 鸥捞撇 矫累 -->
	<tr>
		<td>
			<table width="176" border="0" cellspacing="0" cellpadding="0">
				<tr height="19">
					<td width="8" bgcolor="<%=mainBgColor%>"></td>
					<td bgcolor="<%=mainBgColor%>"><font color="#ffffff">舅覆芒</font></td>
				</tr>
			</table>
		</td>
	</tr>
	<!-- 鸥捞撇 场 -->
	<!-- 咯归 矫累 -->
	<tr height="4">
		<td></td>
	</tr>
	<!-- 咯归 场 -->
	<!-- 冠胶 矫累 -->
	<tr>
		<td>
			<table width="176" border="0" cellspacing="0" cellpadding="0">
				<tr height="3">
					<td colspan="3" bgcolor="#dae6e8"></td>
				</tr>
				<tr height="18">
					<td bgcolor="#dae6e8" width="3"></td>
					<td></td>
					<td bgcolor="#dae6e8" width="3"></td>
				</tr>
				<%if(strTitle.equals("") && strProvision1.equals("") && strProvision2.equals("") && strProvision3.equals("") && strProvision4.equals("") && strProvision5.equals("") ){ %>
				
				<tr>
					<td bgcolor="#dae6e8" width="3"></td>
					<td align="center">殿废等 汲巩炼荤啊 绝嚼聪促.</td>
					<td bgcolor="#dae6e8" width="3"></td>
				</tr>
				
				<% }else{%>
				<tr>
					<td bgcolor="#dae6e8" width="3"></td>
					<td align="center">
						捞措肺 捧钎甫 柳青窍矫摆嚼聪鳖?<br>
						捞饶 捧钎 <font color="#f4274f">荐沥捞 阂啊瓷</font> 钦聪促.<br>
					</td>
					<td bgcolor="#dae6e8" width="3"></td>
				</tr>
				<% }%>
				<tr height="18">
					<td bgcolor="#dae6e8" width="3"></td>
					<td></td>
					<td bgcolor="#dae6e8" width="3"></td>
				</tr>
				<tr height="3">
					<td colspan="3" bgcolor="#dae6e8"></td>
				</tr>
			</table>
		</td>
	</tr>
	<!-- 冠胶 场 -->
	<!-- 咯归 矫累 -->
	<tr height="4">
		<td></td>
	</tr>
	<!-- 咯归 场 -->
	<!-- 滚瓢 矫累 -->
	<tr> 
		<td>
			<table width="176" border="0" cellspacing="0" cellpadding="0">
				<tr height="16">
					<td></td>
					<td width="55" bgcolor="<%=mainBgColor%>" align="center" ><a href="<%=url_path%>/news/ResearchResult.jsp?mphone=<%=mphone%>&gphone=<%=gphone%>&strTitle=<%=strTitle%>&strProvision1=<%=strProvision1%>&strProvision2=<%=strProvision2%>&strProvision3=<%=strProvision3%>&strProvision4=<%=strProvision4%>&strProvision5=<%=strProvision5%>&provisionNum=<%=provisionNum%>&researchText=<%=researchText%>&actionName=insertHost"><font color="#ffffff">捧钎窍扁</font></a></td>
					<td width="2"></td>
					<td width="55" bgcolor="<%=mainBgColor%>" align="center" ><a href="<%=url_path%>/news/ResearchRegister.jsp?mphone=<%=mphone%>&gphone=<%=gphone%>"><font color="#ffffff">倒酒啊扁</font></a></td>
					<td></td>
				</tr>
			</table>
		</td>
	</tr>
	<!-- 滚瓢 场 -->
	<!-- 咯归 矫累 -->
	<tr height="44">
		<td></td>
	</tr>
	<!-- 咯归 场 -->
	<!--版肺钎矫 矫累-->
<%
String step1=url_path+"/main.jsp?mphone="+mphone+"&gphone="+gphone;//权
String step2=url_path+"/mypage/my_confirm.jsp?mphone="+mphone+"&gphone="+gphone;
String step3=url_path+"/news/ResearchList.jsp?mphone="+mphone+"&gphone="+gphone;
%>	
	<tr>
		<td>
			<table width="176" border="0" cellspacing="0" cellpadding="0">
				<tr height="15">
					<td width="8" bgcolor="#BBC7C8"></td>
					<td bgcolor="#DAE6E8">
						&nbsp;<a href="<%=step1%>">权</a>&gt;<a href="<%=step2%>"><%=strNickname%>丛狼迄乔</a>&gt;<a href="<%=step3%>">汲巩炼荤</a>&gt;舅覆
					</td>
					<td width="8" bgcolor="#BBC7C8"></td>
				</tr>
			</table>
		</td>
	</tr>
	<!--版肺钎矫 场-->
</table>
<!--窍窜 版肺钎矫 矫累-->
<%@ include file="../newbottom.jsp"%>
<!--窍窜 版肺钎矫 场-->
</body>
</html>
<%
	}
	catch(Exception e)
	{
		throw e;
	}
	finally
	{ 
		if ( rs != null ) { try { rs.close(); } catch ( Exception e ) { } }
		if ( stmt != null ) { try { stmt.close(); } catch ( Exception e ) { } }
		if ( con != null ) { try { con.close(); } catch ( Exception e ) { } }
	}
%>

⌨️ 快捷键说明

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