?? fortunetip_date.jsp.svn-base
字號(hào):
<!--
* @ 權(quán)> Xxx叢狼 迄喬 > 家匡皋撈飄 > 款技屏
* @ Author : 林妨唱 ( 2008-06-05 )
* @ Images :
-->
<%@ page import='java.io.*,java.text.*,java.util.Date,java.util.*, java.sql.*, com.entaz.lib.db.*, com.entaz.relay.net.*' contentType='text/html;charset=euc-kr'%>
<%@ include file="../imgpath.jsp"%>
<%!
public static String isNull(String str)
{
if (str == null)
return "";
else
return str;
}
%>
<%
/*------------------------------------------------------------------------------------------------------
+ 扁夯 頗扼固磐
-------------------------------------------------------------------------------------------------------*/
String mphone= request.getParameter("mphone");
//if(mphone == null){
// mphone= "13269404505";
//}
String gphone= request.getParameter("gphone");
if(null == gphone){
gphone = mphone;
}
/*------------------------------------------------------------------------------------------------------
+ 傈開 函薦
-------------------------------------------------------------------------------------------------------*/
String user_name = "";
int user_year = 0;
int user_month = 0;
int user_day = 0;
String rgTitle[] = new String[3];
String rgTableName[] = new String[3];
int n=0;
int randomtitle = -1;
int randomtitleTwo = -1;
/*------------------------------------------------------------------------------------------------------
+ DB 包訪 函薦
-------------------------------------------------------------------------------------------------------*/
PreparedStatement pstmt = null;
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
String query1 = null;
String ssql = null;
/*------------------------------------------------------------------------------------------------------
+ 朝樓 包訪
-------------------------------------------------------------------------------------------------------*/
Timestamp di_date=null;
Date today = new Date();
SimpleDateFormat timeform;
timeform = new SimpleDateFormat("MM/dd HH:mm");
try
{
/*------------------------------------------------------------------------------------------------
* DB 目池記
-------------------------------------------------------------------------------------------------*/
%><%@ include file="../getConnection.jsp"%><%
/**************************************
膠鷗客 嘎苗焊綽 礬宏款技!
***************************************/
stmt = con.createStatement();
query1="select nickname,year,month,day,sex from GT_user_Info WITH (READUNCOMMITTED) where phonenum = '"+mphone+"'";
rs=stmt.executeQuery(query1);
if(rs.next())
{
user_name = rs.getString("nickname");
user_year=rs.getInt("year");
user_month = rs.getInt("month");
user_day = rs.getInt("day");
}
if(rs != null) rs.close();
/*------------------------------------------------------------------------------------------------
* 款技屏.
-------------------------------------------------------------------------------------------------*/
Date todayDate1 = new Date();
randomtitle = todayDate1.getDate()+user_day;
randomtitle = Integer.parseInt(String.valueOf(randomtitle).substring(String.valueOf(randomtitle).length()-1));
randomtitleTwo = randomtitle+3;
if(randomtitle == 0){
randomtitle =10;
}
if(randomtitleTwo > 10){
randomtitleTwo = 10;
}
//款技評(píng) id 備竅綽 傍僥 場(chǎng)
query1 = "select top 2 title,tablest from gt_luck_title WITH (READUNCOMMITTED) where idx = "+randomtitle+" or idx = "+randomtitleTwo;
pstmt = con.prepareStatement(query1);
rs = pstmt.executeQuery();
for(int i=0;rs.next();i++)
{
rgTitle[i]=rs.getString("title");
rgTableName[i]=rs.getString("tablest");
n=i+1;
}
rs.close();
pstmt.close();
}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){}
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<link href="http://entaz.mugeta.com/client/mugeta_v2_test/web/user/mobile.css" rel="stylesheet" type="text/css" />
<title>權(quán)><%=user_name%>叢狼 迄喬 > 家匡皋撈飄 > 款技屏</title>
</head>
<body>
<form name="date" action="fortunetip_date_show.jsp" method="post">
<input type="hidden" name="user_name" value="<%=java.net.URLEncoder.encode(user_name)%>" />
<input type="hidden" name="user_year" value="<%=user_year%>" />
<input type="hidden" name="user_month" value="<%=user_month%>" />
<input type="hidden" name="user_day" value="<%=user_day%>" />
<input type="hidden" name="mphone" value="<%=mphone%>" />
<input type="hidden" name="gphone" value="<%=gphone%>" />
<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>
<!--鷗撈撇 場(chǎng)-->
<!--咯歸 矯累-->
<tr>
<td height="8"></td>
</tr>
<!--咯歸 場(chǎng)-->
<!--膠鷗客 礬宏 款技 冠膠 矯累-->
<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="5"></td>
</tr>
<tr>
<td colspan="3" align="center"><font color="#9819e9"><b>霉 單撈飄啊 肋 瞪鱉? 嘎眠扁!</b></font></td>
</tr>
<!--輯宏 鷗撈撇 場(chǎng)-->
<!--備盒扼牢 矯累-->
<tr>
<td width="7"></td>
<td align="center"><font color="#cccccc" size="3">·······································</font></td>
<td width="7"></td>
</tr>
<!--備盒扼牢 場(chǎng)-->
<!--郴儈 矯累-->
<tr>
<td colspan="3">
<table width="234" border="0" cellpadding="0" cellspacing="0">
<tr>
<td></td>
<td width="190" align="center"><font color="#909090">霉 單撈飄狼 惑措 瀝焊客</font><br/>
<font color="#909090">單撈飄且 朝樓甫 澇仿秦 林技夸.</font>
</td>
<td ></td>
</tr>
<tr>
<td colspan="3" height="7"></td>
</tr>
<!--澇仿冠膠 郴儈 矯累-->
<tr>
<td></td>
<td width="190" align="center">單撈飄 惑措規(guī)狼 積老 澇仿 :<br/>
<font color="#909090" size="3">抗) 80斥 06巋 29老 -> 800629 澇仿</font>
</td>
<td ></td>
</tr>
<tr>
<td></td>
<td width="190" height="21" align="center">
<input type="text" name="opposite_date" size="25" maxlength="6" />
</td>
<td ></td>
</tr>
<tr>
<td colspan="3" height="5"></td>
</tr>
<tr>
<td></td>
<td width="190" align="center">單撈飄且 朝樓 澇仿 :<br/>
<font color="#909090" size="3">抗) 07巋 29老 -> 0701 澇仿</font>
</td>
<td ></td>
</tr>
<tr>
<td></td>
<td width="190" height="21" align="center">
<input type="text" name="today_date" size="25" maxlength="4" />
</td>
<td ></td>
</tr>
<!--澇仿冠膠 郴儈 場(chǎng)-->
</table>
</td>
</tr>
<!--郴儈 場(chǎng)-->
<tr>
<td colspan="3" height="8"></td>
</tr>
<!--嘎苗焊扁 滾瓢 矯累-->
<tr>
<td colspan="3">
<table width="234" border="0" cellpadding="0" cellspacing="0">
<tr>
<td></td>
<td width="60" height="17" align="center" bgcolor="#c789ff"><a href="javascript:document.date.submit()"><font color="#ffffff">嘎苗焊扁</font></a></td>
<td></td>
</tr>
</table>
</td>
</tr>
<!--嘎苗焊扁 滾瓢 場(chǎng)-->
<tr>
<td colspan="3" height="8"></td>
</tr>
</table>
</td>
<td width="3"></td>
</tr>
<tr>
<td colspan="3" height="3"></td>
</tr>
</table>
</td>
</tr>
<!--膠鷗客 礬宏 款技 冠膠 場(chǎng)-->
<tr>
<td height="8"></td>
</tr>
<tr>
<td>
<!--竅竄 龍鞏 郴儈 矯累-->
<table width="240" border="0" cellspacing="0" cellpadding="0">
<%if(n!=0){
for(int i=0;i<n;i++){
%>
<tr>
<td width="5"></td>
<td width="230"><font color="#c789ff"><b>*</b></font><font color="#545454">
<%
if(rgTableName[i].equals("GT_LUCK_STARTEXT")){
out.print("<a href="+url_path+"/soulmate/fortunetip_love.jsp?mphone="+mphone+"&gphone="+gphone+">");
}else if(rgTableName[i].equals("GT_LUCK_DREAM")){
out.print("<a href="+url_path+"/soulmate/fortunetip_dream.jsp?mphone="+mphone+"&gphone="+gphone+">");
}else if(rgTableName[i].equals("GT_LUCK_BLOODTYPE")){
out.print("<a href="+url_path+"/soulmate/fortunetip_bloodtype.jsp?mphone="+mphone+"&gphone="+gphone+">");
}else if(rgTableName[i].equals("GT_LUCK_FIRSTDATE")){
out.print("<a href="+url_path+"/soulmate/fortunetip_date.jsp?mphone="+mphone+"&gphone="+gphone+">");
}else if(rgTableName[i].equals("GT_LUCK_ANIMALSIGN")){
out.print("<a href="+url_path+"/soulmate/fortunetip_animalsign.jsp?mphone="+mphone+"&gphone="+gphone+">");
}else if(rgTableName[i].equals("GT_LUCK_TODAYSAYING")){
out.print("<a href="+url_path+"/soulmate/fortunetip_todaysaying.jsp?mphone="+mphone+"&gphone="+gphone+">");
}else if(rgTableName[i].equals("GT_LUCK_BORN")){
out.print("<a href="+url_path+"/soulmate/fortunetip_born.jsp?mphone="+mphone+"&gphone="+gphone+">");
}else if(rgTableName[i].equals("GT_LUCK_LOTO")){
out.print("<a href="+url_path+"/soulmate/fortunetip_loto.jsp?mphone="+mphone+"&gphone="+gphone+">");
}else if(rgTableName[i].equals("GT_LUCK_MARRY")){
out.print("<a href="+url_path+"/soulmate/fortunetip_marry.jsp?mphone="+mphone+"&gphone="+gphone+">");
}else if(rgTableName[i].equals("GT_LUCK_FLOWER")){
out.print("<a href="+url_path+"/soulmate/fortunetip_flower.jsp?mphone="+mphone+"&gphone="+gphone+">");
}
%>
<%=rgTitle[i]%>
</a></font></td>
<td width="5"></td>
</tr>
<%}
}
%>
</table>
<!--竅竄 龍鞏 郴儈 場(chǎng)-->
</td>
</tr>
<tr>
<td height="13"></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/MySoulmate.jsp?mphone=<%=mphone%>&gphone=<%=gphone%>"><font color="#ffffff">倒酒啊扁</font></a></td>
<td></td>
</tr>
</table>
</td>
</tr>
<!--滾瓢 場(chǎng)-->
<!--咯歸 矯累-->
<tr>
<td height="11"></td>
</tr>
<!--咯歸 場(chǎng)-->
<!--竅竄 版肺釬矯 矯累-->
<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%>">權(quán)</a>><a href="<%=url_path%>/mypage/my_confirm.jsp?mphone=<%=mphone%>&gphone=<%=gphone%>"><%=user_name %>叢狼 迄喬包府</a>><a href="<%=url_path%>/soulmate/MySoulmate.jsp?mphone=<%=mphone%>&gphone=<%=gphone%>">家匡皋撈飄</a>>款技屏</td>
<td width="10" bgcolor="#BBC7C8"></td>
</tr>
</table>
</td>
</tr>
<!--竅竄 版肺釬矯 場(chǎng)-->
</table>
<!--竅竄 版肺釬矯 矯累-->
<%@ include file="../newbottom.jsp"%>
<!--竅竄 版肺釬矯 場(chǎng)-->
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -