📄 myfortune.jsp.svn-base
字号:
<!--------------------------------------------------------------------------------------------------------------
*@目敲霸烙 娄茫扁
*@Author : 弥眠岿 (2008-6-05)
*@Images : 其捞瘤 救俊 甸绢啊绰 捞固瘤
1) bg_01.png - 抛捞喉 弥惑窜 硅版捞固瘤(仟弗祸)
--------------------------------------------------------------------------------------------------------------->
<%@ page import='java.io.*,java.text.*,java.util.Date,java.util.Vector, javax.servlet.http.HttpSession,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="../makeKOR.jsp"%>
<%
/***********************************************************************
@ Page Description
霸烙 皋牢 其捞瘤
@ Parameter
***********************************************************************/
/*------------------------------------------------------------------------------------------------------
+ 扁夯 颇扼固磐
-------------------------------------------------------------------------------------------------------*/
String mphone= request.getParameter("mphone");
String gphone= request.getParameter("gphone");
String nickname = java.net.URLDecoder.decode(makeKOR(request.getParameter("nickname")));
/*------------------------------------------------------------------------------------------------------
+ 傈开 函荐
-------------------------------------------------------------------------------------------------------*/
int star = 0;
int sY = 0;
int sM =0;
int sD= 0;
int year = 0;
int month = 0;
int day = 0;
int sajuNum =0;
String saju_text ="" ;
int idx = 0;
String keytext = "" ;
/*------------------------------------------------------------------------------------------------------
+ DB 包访 函荐
-------------------------------------------------------------------------------------------------------*/
PreparedStatement pstmt = null;
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
String query1 = null;
try
{
/*------------------------------------------------------------------------------------------------
* DB 目池记
-------------------------------------------------------------------------------------------------*/
%><%@ include file="../getConnection.jsp"%><%
/*------------------------------------------------------------------------------------------------
* 坷疵狼 喊磊府 痢
-------------------------------------------------------------------------------------------------*/
query1 = "select star,year,month,day from gt_user_info WITH (READUNCOMMITTED) where phonenum = '"+mphone+"'";
pstmt = con.prepareStatement(query1);
rs= pstmt.executeQuery();
if(rs.next())
{
star = rs.getInt("star");
year = rs.getInt("year");
month = rs.getInt("month");
day = rs.getInt("day");
}
Calendar calendar=Calendar.getInstance();
sY=calendar.get(Calendar.YEAR);
sM=calendar.get(Calendar.MONTH)+1;
sD=calendar.get(Calendar.DATE);
rs.close();
pstmt.close();
sajuNum=((sD*13)+(sM*11)+(sY*9)+(star*7))%100;
query1 = "select saju_text from gt_saju WITH (READUNCOMMITTED) where saju_idx =?";
pstmt = con.prepareStatement(query1);
pstmt.setInt(1,sajuNum);
rs= pstmt.executeQuery();
if(rs.next())
{
saju_text = rs.getString("saju_text");
}
rs.close();
pstmt.close();
/*------------------------------------------------------------------------------------------------
* 坷疵狼 青款 虐况靛 ((蜡历狼 积斥滴磊府) + (蜡历狼 积岿) + (蜡历狼 积老) + (瘤陛 岿) + (瘤陛 老) ) x 6 / 95 = 唱赣瘤俊 秦寸窍绰 idx 免仿
-------------------------------------------------------------------------------------------------*/
idx = ((year + month+day+sM+sD) * 6 )%95 ;
query1 = "select text from gt_luck_keyword WITH (READUNCOMMITTED) where idx = ?";
pstmt = con.prepareStatement(query1);
pstmt.setInt(1,idx);
rs = pstmt.executeQuery();
if(rs.next())
{
keytext = rs.getString("text");
}
rs.close();
pstmt.close();
%>
<html>
<head>
<link href="../mobile.css" rel="stylesheet" type="text/css">
<title>权> <%=nickname %>丛狼 迄乔 > 家匡皋捞飘 > 款技</title>
</head>
<body>
<!--剧侥
<tr>
<td>
<table width="240" border="0" cellspacing="0" cellpadding="0">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
-->
<table width="240" border="0" cellspacing="0" cellpadding="0">
<!--鸥捞撇 矫累-->
<tr>
<td>
<table width="240" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" height="2" bgcolor="#c789ff"></td>
</tr>
<tr>
<td width="10" height="15" bgcolor="#9819e9"></td>
<td height="15" bgcolor="#9819e9"><font color="#ffffff">唱狼 款技 焊扁</font></td>
</tr>
<tr>
<td colspan="2" height="2" bgcolor="#c789ff"></td>
</tr>
<tr>
<td colspan="2" height="1" bgcolor="#9819e9"></td>
</tr>
</table>
</td>
</tr>
<!--鸥捞撇 场-->
<!--咯归 矫累-->
<tr>
<td height="8"></td>
</tr>
<!--咯归 场-->
<!--喊磊府痢 冠胶 矫累-->
<tr>
<td>
<table width="240" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" height="3"></td>
</tr>
<tr>
<td width="10"></td>
<td>
<table width="220" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5"></td>
<td><font color="#464646">坷疵狼 喊磊府 痢 :</font><br>
<%switch(star){case 1: %><font color="#5090f3">拱捍磊府</font><br><font color="#5090f3">(1岿20老 ~ 2岿18老)</font>
<%break; case 2: %> <font color="#5090f3">拱绊扁磊府</font><br>
<font color="#5090f3">(2岿19老 ~ 3岿20老)</font>
<%break; case 3: %><font color="#5090f3">剧磊府</font><br>
<font color="#5090f3">(3岿21老 ~ 4岿20老)</font>
<%break; case 4: %><font color="#5090f3">炔家磊府</font><br>
<font color="#5090f3">(4岿21老 ~ 5岿20老)</font>
<%break; case 5: %><font color="#5090f3">街嫡捞磊府</font><br>
<font color="#5090f3">(5岿21老 ~ 6岿21老)</font>
<% break; case 6: %><font color="#5090f3">霸磊府</font><br>
<font color="#5090f3">(6岿22老 ~ 7岿22老)</font>
<% break; case 7: %><font color="#5090f3">荤磊磊府</font><br>
<font color="#5090f3">(7岿23老 ~ 8岿22老)</font>
<%break; case 8: %><font color="#5090f3">贸赤磊府</font><br>
<font color="#5090f3">(8岿23老 ~ 9岿22老)</font>
<%break; case 9: %><font color="#5090f3">玫莫磊府</font><br>
<font color="#5090f3">(9岿23老 ~ 10岿21老)</font>
<%break; case 10: %><font color="#5090f3">傈哎磊府</font><br>
<font color="#5090f3">(10岿22老 ~ 11岿21老)</font>
<%break; case 11: %><font color="#5090f3">荤荐磊府</font><br>
<font color="#5090f3">(11岿22老 ~ 12岿21老)</font>
<%break; case 12: %><font color="#5090f3">堪家磊府</font><br>
<font color="#5090f3">(12岿22老 ~ 1岿19老)</font>
<% } %>
</td>
<!--喊磊府 捞固瘤 矫累-->
<td width="60">
<table width="60" bgcolor="#e2eeef " border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" height="3"></td>
</tr>
<tr>
<td width="3"></td>
<td valign="top"><img src="<%=img_path%>images/soulmate/starL_<%=star%>.png" width="54" height="54"></td>
<td width="3"></td>
</tr>
<tr>
<td colspan="3" height="3"></td>
</tr>
</table>
</td>
<!--喊磊府 捞固瘤 场-->
<td width="5"></td>
</tr>
</table>
</td>
<td width="10"></td>
</tr>
<!--备盒扼牢 矫累-->
<tr>
<td width="10"></td>
<td align="center"><font color="#cccccc" size="3">············································</font></td>
<td width="10"></td>
</tr>
<!--备盒扼牢 场-->
<!--喊磊府痢 郴侩 矫累-->
<tr>
<td width="10"></td>
<td><font color="#464646">
<%=saju_text%><br>
</font></td>
<td width="10"></td>
</tr>
<!--喊磊府痢 郴侩 场-->
<tr>
<td colspan="3" height="5"></td>
</tr>
<tr>
<td width="10"></td>
<td height="21">
<table width="220" bgcolor="#e8f2f2" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="21" align="center"><a href="<%=url_path%>/soulmate/MyFortuneView.jsp?mphone=<%=mphone %>&gphone=<%=gphone %>&nickname=<%=nickname%>&sign=1"><font color="#9819e9">惑炔喊 款技</font></a></td>
<td width="1" align="center"><font color="#9819e9" size="3">|</font></td>
<td align="center"><a href="<%=url_path%>/soulmate/MyFortuneView.jsp?mphone=<%=mphone %>&gphone=<%=gphone %>&nickname=<%=nickname%>&sign=2"><font color="#9819e9">林埃 款技</font></a></td>
<td width="1" align="center"><font color="#9819e9" size="3">|</font></td>
<td align="center"><a href="<%=url_path%>/soulmate/MyFortuneView.jsp?mphone=<%=mphone %>&gphone=<%=gphone %>&nickname=<%=nickname%>&sign=3"><font color="#9819e9">岿埃 款技</font></a></td>
</tr>
</table>
</td>
<td width="10"></td>
</tr>
</table>
</td>
</tr>
<!--喊磊府痢 冠胶 场-->
<!--咯归 矫累-->
<tr>
<td height="7"></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>
<!--坷疵狼 青款 虐况靛 鸥捞撇 场-->
<!--坷疵狼 青款 虐况靛 郴侩 冠胶 矫累-->
<tr>
<td colspan="3">
<table width="240" bgcolor="#e8f2f2" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="5" height="7"></td>
</tr>
<tr>
<td width="3" bgcolor="#ffffff"></td>
<td width="5"></td>
<td><font color="#9819e9"><%=keytext %></font></td>
<td width="5"></td>
<td width="3" bgcolor="#ffffff"></td>
</tr>
<tr>
<td colspan="5" height="7"></td>
</tr>
</table>
</td>
</tr>
<!--坷疵狼 青款 虐况靛 郴侩 冠胶 场-->
</table>
</td>
</tr>
<!--坷疵狼 青款 虐况靛 冠胶 场-->
<tr>
<td height="3"></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="javascript:history.back();"><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="+gphone%>">权</a>><a href="<%=url_path%>/mypage/my_confirm.jsp?mphone=<%=mphone%>&gphone=<%=gphone%>"><%=nickname %>丛狼 迄乔</a>><a href="<%=url_path+"/soulmate/MySoulmate.jsp?mphone="+mphone+"&gphone="+gphone%>">家匡皋捞飘</a>>款技</td>
<td width="10" bgcolor="#BBC7C8"></td>
</tr>
</table>
</td>
</tr>
<!--窍窜 版肺钎矫 场-->
</table>
<!--窍窜 版肺钎矫 矫累-->
<%@ include file="../newbottom.jsp"%>
<!--窍窜 版肺钎矫 场-->
</body>
</html>
<%
}catch(Exception e)
{
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 + -