📄 lovemng_zp.jsp
字号:
count++;
strOppNickname = rs.getString("nickname");
sex = rs.getInt("sex");
age = rs.getInt("age");
guestPhone = rs.getString("guest_phone");
if (queryCondition == 0 || queryCondition == 1 || queryCondition == 2){
regdate =rs.getString("regdate");
text = rs.getString("text");
}else if (queryCondition == 3 || queryCondition == 4){
/*------------------------------------------------------------------------------------------------
* Quiz opponent's attentionPoint
-------------------------------------------------------------------------------------------------*/
sql = " select convert(char(10),regdate,102) regdate,text from gt_lucky_love where phonenum="+Long.parseLong(mphone)+" and guest_phone="+Long.parseLong(guestPhone);
pstmt = con.prepareStatement(sql);
rs1 = pstmt.executeQuery();
if(rs1.next()){
regdate =rs1.getString("regdate");
text = rs1.getString("text");
}
}
/*------------------------------------------------------------------------------------------------
* Quiz opponent's attentionPoint
-------------------------------------------------------------------------------------------------*/
sql = " select nickname,sex,(substring(convert(varchar(8),getDate(),112),0,5)-year) age,attention_point "
+" from Gt_user_info a, gt_lucky_attention_point b where a.phonenum=b.phonenum and convert(bigint,a.phonenum)="+Long.parseLong(mphone)+" and b.guest_phone ="+Long.parseLong(guestPhone);
pstmt = con.prepareStatement(sql);
rs1 = pstmt.executeQuery();
if(rs1.next()){
attentionPoint = rs1.getInt("attention_point");
}
/*------------------------------------------------------------------------------------------------
* Quiz opponent's attentionPoint
-------------------------------------------------------------------------------------------------*/
sql = " select nickname,sex,(substring(convert(varchar(8),getDate(),112),0,5)-year) age,attention_point "
+" from Gt_user_info a, gt_lucky_attention_point b where a.phonenum=b.phonenum and convert(bigint,a.phonenum)="+Long.parseLong(guestPhone)+" and b.guest_phone ="+Long.parseLong(mphone);
pstmt = con.prepareStatement(sql);
rs1 = pstmt.executeQuery();
if(rs1.next()){
myAttentionPoint = rs1.getInt("attention_point");
}
%>
<!--府胶飘 冠胶1 矫累-->
<tr>
<td >
<table width="240" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"></td>
<td width="226">
<table width="226" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3"></td>
<!--酒官鸥 矫累-->
<td width="54">
<table width="54" bgcolor="#e8f2f2" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" height="3"></td>
</tr>
<tr>
<td width="3"></td>
<td valign="top"><img src="<%=ava_path%>display_thumb.jsp?mphone=<%=mphone%>&gphone=0<%=guestPhone%>" width="48" height="54"></td>
<td width="3"></td>
</tr>
<tr>
<td colspan="3" height="3"></td>
</tr>
</table>
</td>
<!--酒官鸥 场-->
<!--郴侩 矫累-->
<td width="166">
<table width="166" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5"></td>
<td width="100" valign="top"><b><a href="<%=url_path+"/soulmate/LoveMatch_zp.jsp?mphone="+mphone+"&gphone=0"+guestPhone%>"><%=strOppNickname%>丛</b></td>
<td valign="top"><font color="#909090"><%=regdate%></font></td>
</tr>
<tr>
<td width="5"></td>
<td colspan="2"><font color="#909090"><%if(sex == 1){ %>
咯己 (<%=age%>技)
<%}else{ %>
巢己 (<%=age%>技)
<%} %></font><br>
<font color="#9819e9"><%=text%></font></td>
</tr>
</table>
</td>
<td width="3"></td>
<!--郴侩 场-->
</tr>
<tr>
<td colspan="4" height="3"></td>
</tr>
<!--乞啊 郴侩 矫累-->
<tr>
<td width="3"></td>
<td colspan="2" align="center"><%=strOppNickname%>丛俊 措茄 包缴档 <font color="#ffa6d6"><%
if(attentionPoint>=24){
%>
<%=strOppNickname %>丛阑 亮酒窍绊 乐绢夸~
<%
}else if(attentionPoint>=20 && attentionPoint<=23){
%>
<%=strOppNickname %>丛俊霸 包缴捞 乐绢夸~
<%
}else{
for(int j=0;j<attentionPoint/4;j++){
%>
≮
<%
}
if(attentionPoint%4>=2){
%>
≠
<%
}
}
%></font><br>
郴啊 焊咯霖 包缴档 <font color="#ffa6d6"><%
if(myAttentionPoint>=24){
%>
<%=strNickname %>丛阑 亮酒窍绊 乐绢夸~
<%
}else if(myAttentionPoint>=20 && myAttentionPoint<=23){
%>
<%=strNickname %>丛俊霸 包缴捞 乐绢夸~
<%
}else{
for(int k=0;k<myAttentionPoint/4;k++){
%>
≮
<%
}
if(myAttentionPoint%4>=2){
%>
≠
<%
}
}
%></font></td>
<td width="3"></td>
</tr>
<!--乞啊 郴侩 矫累-->
<tr>
<td colspan="4" height="3"></td>
</tr>
<!--备盒急 矫累-->
<tr>
<td width="3"></td>
<td colspan="2" height="1" bgcolor="#d5d1be"></td>
<td width="3"></td>
</tr>
<!--备盒急 场-->
</table>
</td>
<td width="7"></td>
</tr>
</table>
</td>
</tr>
<!--府胶飘 冠胶1 场-->
<tr>
<td height="5"></td>
</tr>
<!--府胶飘 冠胶2 矫累-->
<%
if(rs.isLast())
{ //盖 付瘤阜 饭内靛 老版快
break;
}
else
{
rs.next();
}
}
%>
<tr>
<td>
<!--其捞瘤 傅农 矫累-->
<table width="240" bgcolor="#e5ecff" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19" colspan="6" bgcolor="#e8f2f2" valign="bottom" align="center">
<%//其捞瘤 备泅何
int limit = 5 ; //其捞瘤 府胶飘 俺荐 瘤沥
int temp =(pageNUM-1) % limit ; //矫累 其捞瘤 备窍扁
int startPage = pageNUM - temp;
%>
<%// [捞傈] 傅农 眠啊窍扁
if ((startPage-limit)>0){ %>
<a href="<%=pageurl%>&pageNUM=<%=startPage-1%>&queryCondition=<%=queryCondition%>"><font color="#DB1A00">捞傈</font></a>
<%}
//其捞瘤 锅龋 唱凯窍扁
if(isNoPage == 0)
{
for(int i=startPage ; i<(startPage+limit);i++)
{
if( i == pageNUM)
{%>
<font color="#DB1A00"><b><%=i%></b></font>
<% }
else
{ %>
<a href="<%=pageurl%>&pageNUM=<%=i%>&queryCondition=<%=queryCondition%>"><font color="#DB1A00"><%=i%></font></a>
<% }
if(i >= pagecount) break;
}
}
else
out.println("钎矫 且 郴侩捞 绝嚼聪促.");
//[促澜] 傅农 眠啊
if((startPage+limit)<=pagecount){ %>
<a href="<%=pageurl%>&pageNUM=<%=(startPage+limit)%>&queryCondition=<%=queryCondition%>"><font color="#DB1A00">促澜</font></a>
<%}
%>
</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%>/soulmate/Soulmate_zp.jsp?mphone=<%=mphone%>&gphone=<%=mphone %>"><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"> <a href="<%=url_path+"/main.jsp?mphone="+mphone+"&gphone="+mphone%>">权</a>><a href="<%=url_path%>/mypage/my_confirm.jsp?mphone=<%=mphone%>&gphone=<%=mphone%>"><%=strNickname%>丛狼 迄乔</a>><a href="<%=url_path+"/soulmate/Soulmate_zp.jsp?mphone="+mphone+"&gphone="+mphone%>">家匡皋捞飘</a>>局沥</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 + -