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

📄 soulmate_zp.jsp.svn-base

📁 用手机浏览的一个类似于聊天室 博克 homepage 等 对这方面有 兴趣的朋友 有所帮助的
💻 SVN-BASE
📖 第 1 页 / 共 2 页
字号:
				<!--备盒急 场-->
				<tr>
					<td colspan="3" height="3"></td>
				</tr>
				<!--鸥捞撇 场-->
				<%
					/*------------------------------------------------------------------------------------------------
					 *		Love opponent's count
					 -------------------------------------------------------------------------------------------------*/
				
					sql = "select count(*) oppCount  from ( ";
					sql = sql +" select a.sex , a.phonenum , a.nickname , (substring(convert(varchar(8),getDate(),112),0,5)-a.year+1) age , max(b.text) text , max(b.regdate) regdate   from  gt_lucky_love b WITH (READUNCOMMITTED) , GT_User_Info a  WITH (READUNCOMMITTED) ";
					sql = sql + "where (a.phonenum in (select phonenum from gt_lucky_love WITH (READUNCOMMITTED) where phonenum!="+Long.parseLong(mphone)+" and guest_phone="+Long.parseLong(mphone)+") or a.phonenum in (select guest_phone from  gt_lucky_love WITH (READUNCOMMITTED) where phonenum="+Long.parseLong(mphone)+" and guest_phone!="+Long.parseLong(mphone)+"))";
					sql = sql +" group by a.phonenum , a.nickname ,a.year , a.sex) m left join gt_lucky_attention_point n on m.phonenum = n.guest_phone where n.phonenum ="+Long.parseLong(mphone);
					
					pstmt = con.prepareStatement(sql);
					
					rs = pstmt.executeQuery();
						 
					if( rs.next() )
					{
						oppCount = rs.getInt("oppCount");
					}else{
						oppCount = 0;
					}
					rs.close();
					pstmt.close();
					
					if(oppCount != 0){ 
					
					
					/*------------------------------------------------------------------------------------------------
					 *		Love List
					 -------------------------------------------------------------------------------------------------*/
				
					sql = " select a.guest_phone,a.guest_nickname ,convert(char(10),a.regdate,102) regdate  ,a.phonenum, a.nickname from (select guest_phone,guest_nickname ,max(regdate) as regdate ,phonenum,nickname from GT_LUCKY_LOVE WITH (READUNCOMMITTED) where phonenum!=guest_phone and (phonenum!="+Long.parseLong(mphone)+" and guest_phone = "+Long.parseLong(mphone)+") or (phonenum="+Long.parseLong(mphone)+" and guest_phone != "+Long.parseLong(mphone)+") group by guest_phone ,guest_nickname,phonenum,nickname) a order by regdate desc" ; 
				
					pstmt = con.prepareStatement(sql);
					
					rs = pstmt.executeQuery();
				 %>
	
					<tr>
					<td colspan="3">
						<table width="240" bgcolor="#eeeeee" border="0" cellspacing="0" cellpadding="0">
						<%
						int count = 0 ; //其捞瘤 墨款磐 函荐
					
						while(rs.next())
						{
						count++;
						strGuestNickNameOne = rs.getString("guest_nickname");
						strGuestNickNameTwo = rs.getString("nickname");
						
						regDate = rs.getString("regdate");
						loveGuestPhoneOne = rs.getString("guest_phone");
						loveGuestPhoneTwo = rs.getString("phonenum");
						if(Long.parseLong(mphone) == Long.parseLong(loveGuestPhoneOne)){
							loveGuestPhone = loveGuestPhoneTwo;
							strGuestNickName = strGuestNickNameTwo;
						}else{
							loveGuestPhone = loveGuestPhoneOne;
							strGuestNickName = strGuestNickNameOne;
						}
						
						sql = "SELECT sex,(substring(convert(varchar(8),getDate(),112),0,5)-year+1) age FROM GT_USER_INFO WITH (READUNCOMMITTED) WHERE phonenum = '0"+loveGuestPhone+"'";
						pstmt = con.prepareStatement(sql);
					
						rsrs1 = pstmt.executeQuery();
						 
						if( rsrs1.next() )
						{
							sex = rsrs1.getInt("sex");
							age = rsrs1.getInt("age");
						}else{
							sex = 1;
							age = 0;
						}
						rsrs1.close();
						pstmt.close();
						
						if(count == 1){						
						 %>
							<tr>
								<td colspan="5" height="3"></td>
							</tr>
							<tr>
								<td width="3"></td>
								<td colspan="4"><font color="#9819e9" size="3">⒑唱俊霸 啊厘 腹篮 包缴阑 焊捞绰 模备</font></td>
							</tr>
							<!--咯归 矫累-->
							<tr>
								<td colspan="5" height="3"></td>
							</tr>
							<!--咯归 场-->
							<tr>
								<td width="3"></td>
								<td width="18">
									<%if(sex ==1) { %> 
										<img src="<%=img_path%>images/soulmate/icon_01.png">
									<%}else{ %>
										<img src="<%=img_path%>images/soulmate/m.png">
									 <%}%>
								</td>
								<td><font color="#545454"><b><a href="<%=url_path+"/soulmate/LoveMatch_zp.jsp?mphone="+mphone+"&gphone=0"+loveGuestPhone%>"><%=strGuestNickName%></a></b></font>&nbsp;
									<font color="#c085ed" size="3"><%if(sex == 1){ %>
											(咯己 <%=age%>技)
											<%}else{ %>
											(巢己 <%=age%>技)
											<%} %></font></td>
								<td width="65" align="right"><font color="#909090" size="3"></font></td>
								<td width="7"></td>
							</tr>
							<tr>
								<td colspan="5" height="3"></td>
							</tr>
							<%}else if(count<=5){ %>
							<!--概莫 郴侩 矫累-->
							<tr>
								<td colspan="5">
									<table width="240" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td colspan="3" height="3"></td>
										</tr>
										<tr>
											<td width="15"></td>
											<td width="210"><a href="<%=url_path+"/soulmate/LoveMatch_zp.jsp?mphone="+mphone+"&gphone=0"+loveGuestPhone%>"><%=strGuestNickName%>丛狼 局沥 搬苞</a></td>
											<td width="15"></td>
										</tr>
										<tr>
											<td colspan="3" height="3"></td>
										</tr>
										</table>
								</td>
							</tr>
								<%}
								}
								rs.close();
								pstmt.close();
								 %>			
							<!--概莫 郴侩 场-->
						</table>
					</td>
				</tr>
				<tr>
					<td width="3"></td>
					<td align="right"><font color="#c789ff" size="3"><a href="<%=url_path%>/soulmate/LoveMng_zp.jsp?mphone=<%=mphone%>&gphone=<%=mphone %>">歹焊扁 (醚<%=oppCount%>疙) ⒑</a></font>&nbsp;</td>
					<td width="3"></td>
				</tr>
				<!--公霸鸥 局沥 包府 郴侩 场-->
				<%}else if(oppCount ==0 ){ %>
				<!--公霸鸥 局沥 包府 郴侩 矫累-->
				<tr>
					<td colspan="3">
						<table width="240" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="7"></td>
								<td align="left"><font color="#909090">弥辟俊 公霸鸥 局沥阑 嘎苗夯 模备啊 绝绢夸.</font></td>
								<td width="7"></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td colspan="3" height="7"></td>
				</tr>
				<tr>
					<td width="3"></td>
					<td align="right"><font color="#c789ff" size="3"><a href="<%=url_path%>/soulmate/LoveMng_zp.jsp?mphone=<%=mphone%>&gphone=<%=mphone %>">歹焊扁 (醚<%=oppCount%>疙) ⒑</a></font>&nbsp;</td>
					<td width="3"></td>
				</tr>
				<%} %>
			</table>
		</td>
	</tr>
	<!--公霸鸥 局沥 包府 冠胶 场-->
	<tr>
		<td height="3"></td>
	</tr>
	
	<!--鸥肺痢阑 毫林技夸! 冠胶 矫累-->
	<tr>
		<td >
			<table width="240" border="0" cellspacing="0" cellpadding="0">
				<!--鸥捞撇 矫累-->
				<tr>
					<td width="3"></td>
					<td height="19"><font color="#c789ff"><b>♂</b></font><font color="#7c7c7c"><b> 鸥肺痢阑 毫林技夸!</b></font></td>
					<td width="3"></td>
				</tr>

				<!--备盒急 矫累-->
				<tr>
					<td width="3"></td>
					<td height="2" bgcolor="#ecaaff"></td>
					<td width="3"></td>
				</tr>
				<!--备盒急 场-->
				<tr>
					<td colspan="3" height="3"></td>
				</tr>
				<!--鸥捞撇 场-->
				<%
					/*------------------------------------------------------------------------------------------------
					 *		Taro opponent's count
					 -------------------------------------------------------------------------------------------------*/
				
					sql = " select count(idx) taroCount from gt_lucky_taro WITH (READUNCOMMITTED) where phonenum="+Long.parseLong(mphone) ; 
					
					pstmt = con.prepareStatement(sql);
					
					rs = pstmt.executeQuery();
						 
					if( rs.next() )
					{
						taroCount = rs.getInt("taroCount");
					}else{
						taroCount = 0;
					}
					rs.close();
					pstmt.close();
					
					if(taroCount != 0){ 
					
					
					/*------------------------------------------------------------------------------------------------
					 *		Taro List
					 -------------------------------------------------------------------------------------------------*/
					sql = " select idx,taro_card_idx,taro_idx,nickname,sex,age,phonenum,max(regdate) regdate ,max(text) text from (";
					sql = sql +" select ta.idx,co.taro_card_idx,co.taro_idx,us.nickname,us.sex,(substring(convert(varchar(8),getDate(),112),0,5)-us.year+1) age,co.phonenum,convert(char(10),co.regdate,102) regdate,ta.text  ";
					sql = sql +" from gt_lucky_taro ta WITH (READUNCOMMITTED) ,gt_lucky_taro_comment co WITH (READUNCOMMITTED) ,GT_User_Info us WITH (READUNCOMMITTED) where ta.idx=co.taro_idx and us.phonenum=co.phonenum and ta.phonenum="+Long.parseLong(mphone) ; 
					sql = sql +" ) viewInvoke group by  idx,taro_card_idx,taro_idx,nickname,sex,age,phonenum,regdate,text order by regdate desc ";
					
					pstmt = con.prepareStatement(sql);
					
					rs = pstmt.executeQuery();

				 %>
				<!--鸥肺痢阑 毫林技夸! 郴侩 矫累-->
				<tr>
					<td colspan="3">
						<table width="240" bgcolor="#eeeeee" border="0" cellspacing="0" cellpadding="0">
						
							
							<%
							int count = 0 ; //其捞瘤 墨款磐 函荐
						
							while(rs.next())
							{
							count++;
								
							strGuestNickName = rs.getString("nickname");
							text = rs.getString("text");
							regDate = rs.getString("regdate");
							sex = rs.getInt("sex");
							age = rs.getInt("age");			
							taroId = rs.getString("idx");
							taro_idx = rs.getString("taro_idx");
							taro_card_idx = rs.getString("taro_card_idx");
							taro_phonenum = rs.getString("phonenum");
							if(count == 1){	
						 %>
						 
						 	<tr>
								<td colspan="5" height="3"></td>
							</tr>
							<%if(text == null || text == ""){ %>
							<tr>
								<td width="3"></td>
								<td colspan="3"><font color="#9819e9" size="3"></font></td>
								<td width="3"></td>
							</tr>
							<%}else{ %>
							<tr>
								<td width="3"></td>
								<td colspan="3"><font color="#9819e9" size="3">⒑龙巩: <%=text%></font></td>
								<td width="3"></td>
							</tr>
							<%} %>
							<!--咯归 矫累-->
							<tr>
								<td colspan="5" height="3"></td>
							</tr>
							<!--咯归 场-->
							
							<tr>
								<td width="3"></td>
								<td width="18">
								<%if(sex ==1) { %> 
									<img src="<%=img_path%>images/soulmate/icon_01.png">
								<%}else{ %>
									<img src="<%=img_path%>images/soulmate/m.png">
								 <%}%>
								</td>
								<td><font color="#545454"><a href="answerDetail.jsp?gphone=<%=taro_phonenum%>&mphone=<%=taro_phonenum%>&idx=<%=taroId%>">
													<b><%=strGuestNickName %></b></a></font>&nbsp;
									<font color="#c085ed" size="3"><%if(sex == 1){ %>
											(咯己 <%=age%>技)
											<%}else{ %>
											(巢己 <%=age%>技)
											<%} %></font></td>
								<td width="65" align="right"><font color="#909090" size="3"><%=regDate%></font></td>
								<td width="7"></td>
							</tr>
							<tr>
								<td colspan="5" height="3"></td>
							</tr>
							<%}else if(count<=5){ %>
							<!--概莫 郴侩 矫累-->
							<tr>
								<td colspan="5">
									<table width="240" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td colspan="3" height="3"></td>
										</tr>
										<tr>
											<td width="15"></td>
											<td width="210"><font color="#7b7b7b"><a href="answerDetail.jsp?gphone=<%=taro_phonenum%>&mphone=<%=taro_phonenum%>&idx=<%=taroId%>"><%=strGuestNickName%>丛狼 搬苞</a></font>&nbsp;
												<font color="#ababab" size="3">(<%=regDate%>)</font><br>
											</td>
											<td width="15"></td>
										</tr>
									</table>
									</td>
									</tr>	
								<%		}
								}
								rs.close();
								pstmt.close();
								 %>
										<tr>
											<td colspan="3" height="3"></td>
										</tr>
									</table>
								</td>
							</tr>
							<!--概莫 郴侩 场-->	
				<%}else if (taroCount == 0){ %>
				<!--鸥肺痢阑 毫林技夸! 郴侩 矫累-->
				<tr>
					<td colspan="3">
						<table width="240" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="7"></td>
								<td align="left"><font color="#909090">弥辟 鸥肺痢阑 毫霖 模备啊 绝绢夸.</font></td>
								<td width="7"></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td colspan="3" height="7"></td>
				</tr>
				<!--鸥肺痢阑 毫林技夸! 郴侩 场-->
				<%} %>
				
				<tr>
					<td width="3"></td>
					<td align="right"><font color="#c789ff" size="3"><a href="<%=url_path%>/soulmate/questionList.jsp?mphone=<%=mphone%>&gphone=<%=mphone %>">鸥肺痢 龙巩 殿废 ⒑</a></font>&nbsp;
									  <font color="#c789ff" size="3"><a href="<%=url_path%>/soulmate/questionself.jsp?mphone=<%=mphone%>&gphone=<%=mphone %>">傈眉焊扁 ⒑</a></font>
					
					</td>
					<td width="3"></td>
				</tr>
			</table>
		</td>
	</tr>
	<!--鸥肺痢阑 毫林技夸! 冠胶 场-->

	<tr>
		<td height="7"></td>
	</tr>

	<!--滚瓢 矫累-->
	<tr> 
		<td>
			<table width="240" height="17" border="0" cellspacing="0" cellpadding="0">	
				<tr>
					<td></td>
					<td width="60" height="17" bgcolor="#c789ff" align="center"><a href="<%=url_path%>/mypage/my_main_sub.jsp?mphone=<%=mphone%>&gphone=<%=mphone%>&hostf=Y"><font color="#ffffff">倒酒啊扁</font></a></td>
					<td></td>
				</tr>
			</table>
		</td>
	</tr>
<!--滚瓢 场-->

<!--咯归 矫累-->
  <tr>
    <td height="11"></td>
  </tr>
<!--咯归 场--> 

<!--窍窜 版肺钎矫 矫累-->
	<tr>
		<td>
			<table width="240" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td width="10" bgcolor="#BBC7C8"></td>
					<td width="220" bgcolor="#DAE6E8" height="19">&nbsp;<a href="<%=url_path+"/main.jsp?mphone="+mphone+"&gphone="+mphone%>">权</a>&gt;<a href="<%=url_path%>/mypage/my_confirm.jsp?mphone=<%=mphone%>&gphone=<%=mphone%>"><%=strNickname%>丛狼 迄乔包府</a>&gt;家匡皋捞飘</td>
					<td width="10" 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 + -