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

📄 feelregcha.jsp.svn-base

📁 用手机浏览的一个类似于聊天室 博克 homepage 等 对这方面有 兴趣的朋友 有所帮助的
💻 SVN-BASE
字号:
<!-------------------------------------------------------------
* @ name: FeelRegCha.jsp
* @ func: back opreate of register an change
* @ Author : ranxu 
* @ date :2008-06-27
-------------------------------------------------------------->
<%@ 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="appConstants.jsp"%>
<%@ include file="formatUtil.jsp"%>
<%@ include file="../makeKOR.jsp"%>
<%
	/*------------------------------------------------------------------------------------------------------
	+	parameter from last page
	-------------------------------------------------------------------------------------------------------*/	
	String mphone= request.getParameter("mphone");	
	String gphone= request.getParameter("gphone");
	mphone = getStrPhone(getLong(mphone));
	gphone = getStrPhone(getLong(gphone));
	/*------------------------------------------------------------------------------------------------------
	+	parmater of current page
	-------------------------------------------------------------------------------------------------------*/
	String 	currentDate		= "";
	String 	currentYear		= "";
	String	currentMonth	= "";
	String 	currentDay		= "";
	String 	currentWeek		= "";
	int 	count 			= 0;
	String 	buttonName		= "";
	int 	ret 			= -1;
	String 	actionStates 	= "";
	int 	moodVal 		= 0;
	String	strNickname		= "";	 
	/*------------------------------------------------------------------------------------------------------
	+	DB 包访 函荐
	-------------------------------------------------------------------------------------------------------*/
	Connection 			con 	= null;	
	PreparedStatement 	pstmt 	= null;	
	Statement 			stmt 	= null;	
	ResultSet 			rs 		= null;
	String 				sql 	= "";
	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();	
	/*------------------------------------------------------------------------------------------------
	 *	郴 巩力 炼福扁 荤恩.
	 -------------------------------------------------------------------------------------------------*/
     sql = " SELECT convert(varchar(10),getDate(),120) date ,"+
     	   " substring(convert(varchar(10),getdate(),102),0,5)year ,"+
		   " substring(convert(varchar(10),getdate(),102),6,2)month,"+
		   " substring (convert(varchar(10),getdate(),102),9,2) day ,"+
		   " datename(weekday,getdate()) week ";     
     pstmt = con.prepareStatement(sql);      
     rs = pstmt.executeQuery();
     if(rs.next()){
     	currentDate = rs.getString("date");
     	currentYear=rs.getString("year");
     	currentMonth=rs.getString("month");
     	currentDay = rs.getString("day");
     	currentWeek = rs.getString("week");
     }      
     rs.close();    
     pstmt.close();    
     /*------------------------------------------------------------------------------------------------
	 *	郴 巩力 炼福扁 荤恩.
	 -------------------------------------------------------------------------------------------------*/
    sql = "SELECT *  FROM gt_nsmood WITH (READUNCOMMITTED) WHERE phonenum=? AND regdate=?";
    pstmt = con.prepareStatement(sql);
    pstmt.setLong(1,getLong(gphone));
    pstmt.setString(2,currentDate);
    rs = pstmt.executeQuery();
    if(rs.next()){
    	moodVal = rs.getInt("state");
    	buttonName="荐沥/殿废";
    	actionStates="update";
    }else{
    	buttonName="殿废";
    	actionStates="insert";
    }  
 %>
<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>
<form name="form1" action="feelAction.jsp" method="post">	
<table width="240" border="0" cellspacing="0" cellpadding="0">
	<!-- 鸥捞撇 矫累 -->
	<tr>
		<td>
			<input type="hidden" name="actionStates" value="<%=actionStates%>">
			<input type="hidden" name="mphone" value="<%=mphone%>">
			<input type="hidden" name="gphone" value="<%=gphone%>">
			<input type="hidden" name="currentDate" value="<%=currentDate%>">
			<table width="240" border="0" cellspacing="0" cellpadding="0">
				<tr height="19">
					<td width="8" bgcolor="<%=mainBgColor %>"></td>
					<td bgcolor="<%=mainBgColor %>"><font color="#ffffff"><%=strNickname %>丛狼扁盒惑怕殿废</font></td>
				</tr>
			</table>
		</td>
	</tr>
	<!-- 鸥捞撇 场 -->
	<!--痢急 矫累-->
	<tr>
		<td align="center">
			<font color="#cccccc" size="3" align="center">··············································</font>				
		</td>
	</tr>
	<!--痢急 场-->
	<tr>
		<td align="center">
			<img src="http://entaz.mugeta.com/client/FTP_Working_Folder/STEP6/web/PhonepyNews/img/011.png"><font color="<%=mainFontColor	%>"><b> <%=currentYear %>斥 <%=currentMonth %>岿 <%=currentDay %>老 <%=currentWeek %></b></font>
		</td>
	</tr>
	<!--痢急 矫累-->
	<tr>
		<td align="center">
			<font color="#cccccc" size="3" align="center">·············································</font>				
		</td>
	</tr>
	<!--痢急 场-->	
	<!-- 扁盒惑怕 殿废 矫累 -->
	<tr>
		<td>
			<table width="240" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="12"></td>
					<td>						
						<table border="0" cellspacing="0" cellpadding="0" bgcolor="#efebd5">
							<!-- 青汗父顶 矫累 -->
							<tr height="4">
								<td  colspan="5"></td>
							</tr>
							<tr>
								<td width="6"></td>
								<td width="31" height="31" bgcolor="#ffffff" align="center"><img src="<%=img_path%>images/news/0005.png"></td>
								<td width="8"></td>
								<td><font color="#716e63">青汗父顶</font></td>
								<td width="60" align="center"><input type="radio" name="mood" value="5" <%if(moodVal==5) {%>checked<%} %>></td>
							</tr>
							<tr height="4">
								<td  colspan="5"></td>
							</tr>
							<tr height="1">
								<td  colspan="5" bgcolor="#ffffff"></td>
							</tr>
							<!-- 青汗父顶 场 -->
							<!-- 蜡蔫烹蔫 矫累 -->
							<tr height="4">
								<td  colspan="5"></td>
							</tr>
							<tr>
								<td width="6"></td>
								<td width="31" height="31" bgcolor="#ffffff" align="center"><img src="<%=img_path%>images/news/0004.png"></td>
								<td width="8"></td>
								<td><font color="#716e63">蜡蔫烹蔫</font></td>
								<td width="60" align="center"><input type="radio" name="mood" value="4" <%if(moodVal==4) {%>checked<%} %>></td>
							</tr>
							<tr height="4">
								<td  colspan="5"></td>
							</tr>
							<tr height="1">
								<td  colspan="5" bgcolor="#ffffff"></td>
							</tr>
							<!-- 蜡蔫烹蔫 场 -->
							<!-- 哆舵固瘤辟 矫累 -->
							<tr height="4">
								<td  colspan="5"></td>
							</tr>
							<tr>
								<td width="6"></td>
								<td width="31" height="31" bgcolor="#ffffff" align="center"><img src="<%=img_path%>images/news/0003.png"></td>
								<td width="8"></td>
								<td><font color="#716e63">哆舵固瘤辟</font></td>
								<td width="60" align="center"><input type="radio" name="mood" value="3" <%if(moodVal==3) {%>checked<%} %>></td>
							</tr>
							<tr height="4">
								<td  colspan="5"></td>
							</tr>
							<tr height="1">
								<td  colspan="5" bgcolor="#ffffff"></td>
							</tr>
							<!-- 哆舵固瘤辟 场 -->
							<!-- 困肺秦拎夸 矫累 -->
							<tr height="4">
								<td  colspan="5"></td>
							</tr>
							<tr>
								<td width="6"></td>
								<td width="31" height="31" bgcolor="#ffffff" align="center"><img src="<%=img_path%>images/news/0002.png"></td>
								<td width="8"></td>
								<td><font color="#716e63">困肺秦拎夸</font></td>
								<td width="60" align="center"><input type="radio" name="mood" value="2" <%if(moodVal==2) {%>checked<%} %>></td>
							</tr>
							<tr height="4">
								<td  colspan="5"></td>
							</tr>
							<tr height="1">
								<td  colspan="5" bgcolor="#ffffff"></td>
							</tr>
							<!-- 困肺秦拎夸 场 -->
							<!-- 传拱捞 林袱林袱 矫累 -->
							<tr height="4">
								<td  colspan="5"></td>
							</tr>
							<tr>
								<td width="6"></td>
								<td width="31" height="31" bgcolor="#ffffff" align="center"><img src="<%=img_path%>images/news/0001.png"></td>
								<td width="8"></td>
								<td><font color="#716e63">传拱捞 林袱林袱</font></td>
								<td width="60" align="center"><input type="radio" name="mood" value="1" <%if(moodVal==1) {%>checked<%} %>></td>
							</tr>
							<tr height="4">
								<td  colspan="5"></td>
							</tr>
							<tr height="1">
								<td  colspan="5" bgcolor="#ffffff"></td>
							</tr>
							<!-- 传拱捞 林袱林袱 场 -->
						</table>				
					</td>
					<td width="12"></td>
				</tr>
			</table>
		</td>
	</tr>
	<!-- 扁盒惑怕 殿废 场 -->
	<!-- 咯归 矫累 -->
	<tr height="8">
		<td></td>
	</tr>
	<!-- 咯归 场 -->		
	<!-- 滚瓢 矫累 -->
	<tr> 
		<td>
			<table width="240" border="0" cellspacing="0" cellpadding="0">
				<tr height="17">
					<td></td>
					<td width="85" bgcolor="<%=mainBgColor %>" align="center" >						
						<a href="javaScript:form1.submit();"><font color="#ffffff"><%=buttonName %></font></a>				
					</td>
					<td></td>
				</tr>
			</table>
		</td>
	</tr>
	<!-- 滚瓢 场 -->
	<!-- 咯归 矫累 -->
	<tr height="11">
		<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/NewsMain.jsp?mphone="+mphone+"&gphone="+gphone;
	%>
	<tr>
		<td>
			<table width="240" border="0" cellspacing="0" cellpadding="0">
				<tr height="19">
					<td width="10" 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="10" bgcolor="#BBC7C8"></td>
				</tr>
			</table>
		</td>
	</tr>
	<!--版肺钎矫 场-->
</table>
</form>
<!--窍窜 版肺钎矫 矫累-->
<%@ include file="../newbottom.jsp"%>
<!--窍窜 版肺钎矫 场-->
</body>
</html>
<%
}catch(Exception e){
	System.out.println(e);
}finally{
	if(rs != null) try{ rs.close(); }catch(Exception se){}
	if(pstmt != null) try{ pstmt.close(); }catch(Exception se){}
	if(stmt != null) try{ stmt.close(); }catch(Exception se){}
	if(con != null) try{ con.close(); }catch(Exception se){}
}
%>

⌨️ 快捷键说明

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