📄 myfortuneview.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");
int sign = Integer.parseInt(request.getParameter("sign"));
String nickname = java.net.URLDecoder.decode(makeKOR(request.getParameter("nickname")));
/*------------------------------------------------------------------------------------------------------
+ 傈开 函荐
-------------------------------------------------------------------------------------------------------*/
int sY = 0;
int sM =0;
int sD= 0;
int year = 0;
int month = 0;
int day = 0;
int idx = 0;
String todaytext = "" ;
String weektext = "" ;
String monthtext = "" ;
/*------------------------------------------------------------------------------------------------------
+ DB 包访 函荐
-------------------------------------------------------------------------------------------------------*/
PreparedStatement pstmt = null;
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
String query1 = null;
try
{
/*------------------------------------------------------------------------------------------------
* DB 目池记
-------------------------------------------------------------------------------------------------*/
%><%@ include file="../getConnection.jsp"%><%
/*------------------------------------------------------------------------------------------------
* 蜡历狼 积斥岿老 坷疵 朝楼
-------------------------------------------------------------------------------------------------*/
query1 = "select year,month,day from gt_user_info where phonenum = '"+mphone+"'";
pstmt = con.prepareStatement(query1);
rs= pstmt.executeQuery();
if(rs.next())
{
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();
/*------------------------------------------------------------------------------------------------
* day text : ((蜡历狼 积斥滴磊府) + (蜡历狼 积岿) + (蜡历狼 积老) + (瘤陛 岿) + (瘤陛 老) ) x 7 / 120 = 唱赣瘤俊 秦寸窍绰 idx 免仿
-------------------------------------------------------------------------------------------------*/
idx = ((year+month+day+sM+sD) * 7)%120;
query1="select text from gt_luck_today where idx=?";
pstmt = con.prepareStatement(query1);
pstmt.setInt(1,idx);
rs = pstmt.executeQuery();
if(rs.next()){
todaytext = rs.getString("text");
}
rs.close();
pstmt.close();
/*------------------------------------------------------------------------------------------------
* week text : ((蜡历狼 积斥滴磊府) + (蜡历狼 积岿) + (蜡历狼 积老) + (瘤陛 岿) + (瘤陛 老) ) x 6 / 73 = 唱赣瘤俊 秦寸窍绰 idx 免仿
-------------------------------------------------------------------------------------------------*/
Calendar cal = new GregorianCalendar();
int curDay = cal.get(Calendar.DAY_OF_WEEK);
if(sD>=curDay)
{
sD= sD - curDay+1;
}
else {
sM=sM -1;
sD = sD+30 - curDay+1;
}
idx = ((year+month+day+sM+sD) * 6)%73;
query1="select text from gt_luck_week where idx=?";
pstmt = con.prepareStatement(query1);
pstmt.setInt(1,idx);
rs = pstmt.executeQuery();
if(rs.next()){
weektext = rs.getString("text");
}
rs.close();
pstmt.close();
/*------------------------------------------------------------------------------------------------
* month text : : ((蜡历狼 积斥滴磊府) + (蜡历狼 积岿) + (蜡历狼 积老) + (瘤陛 岿) ) x 6 / 70 = 唱赣瘤俊 秦寸窍绰 idx 免仿
-------------------------------------------------------------------------------------------------*/
idx = ((year+month+day+sM) * 6)%70;
query1="select text from gt_luck_month where idx=?";
pstmt = con.prepareStatement(query1);
pstmt.setInt(1,idx);
rs = pstmt.executeQuery();
if(rs.next()){
monthtext = 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" bgcolor="#ecaaff" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" height="3"></td>
</tr>
<tr>
<td width="3"></td>
<td>
<table width="234" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0">
<!--辑宏 鸥捞撇 矫累-->
<tr>
<td colspan="3" height="8"></td>
</tr>
<tr>
<td colspan="3" align="center"><font color="#9819e9"><b><% if(sign ==1){ %>惑炔喊 款技<%}else if(sign == 2){ %>林埃 款技<%}else if(sign == 3){ %>岿埃 款技<%} %></b></font></td>
</tr>
<!--辑宏 鸥捞撇 场-->
<!--备盒扼牢 矫累-->
<tr>
<td width="7"></td>
<td align="center"><font color="#cccccc" size="3">······················································</font></td>
<td width="7"></td>
</tr>
<!--备盒扼牢 场-->
<!--郴侩 矫累-->
<tr>
<td colspan="3">
<table width="234" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"></td>
<td>
<font color="#464646">
<%if(sign==1){ %>
<%=todaytext %>
<%}else if(sign ==2){%>
<%=weektext %>
<%} else if(sign ==3){ %>
<%=monthtext %>
<%} %>
</font>
</td>
<td width="10"></td>
</tr>
</table>
</td>
</tr>
<!--郴侩 场-->
<tr>
<td colspan="3" height="10"></td>
</tr>
</table>
</td>
<td width="3"></td>
</tr>
<tr>
<td colspan="3" height="3"></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 + -