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

📄 mysoulmate.jsp.svn-base

📁 用手机浏览的一个类似于聊天室 博克 homepage 等 对这方面有 兴趣的朋友 有所帮助的
💻 SVN-BASE
📖 第 1 页 / 共 2 页
字号:
<!--------------------------------------------------------------------------------------------------------------
*@目敲霸烙 娄茫扁 
*@Author : 弥眠岿 (2008-6-04)
*@Images : 其捞瘤 救俊 甸绢啊绰 捞固瘤
	1) bg_01.png - 抛捞喉 弥惑窜 硅版捞固瘤(仟弗祸)
--------------------------------------------------------------------------------------------------------------->
<%@ page import='java.io.*,java.text.*,java.util.Date,java.util.Vector, 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");
	if(gphone == null)
	{
	  gphone = mphone;
	}
	
	/*------------------------------------------------------------------------------------------------------
	+	傈开 函荐
	-------------------------------------------------------------------------------------------------------*/
	
	String rgstrNickName[] = new String[4];
	
	String rgTitle[] = new String[2];
	String rgTableName[] = new String[2];
	
	String nickname = "";
	
	int nflag = 0;
	
	int n=0;
	
	String title = "";
	
	int year = 0;
	
	int month = 0;
	
	int day = 0;
	
	int   iDay=0;  //朝楼 荐
	
	int intellect = 0;  //瘤己 
	
	int body = 0;     //脚眉
	
	int sensitivity =0;//皑己
	
	int yintellect = 0; // 绢力狼 扁废 瘤己
	
	int ybody = 0; // 绢力狼 扁废 脚眉
	
	int ysensitivity =0;// 绢力狼 扁废 皑己

	int ifullstar = 0;  //喊荐
	
	int iemptystar = 0; //后喊荐
	
	int bfullstar = 0;
	
	int bemptystar = 0;
	
	int sfullstar = 0;
	
	int semptystar = 0;
	/*------------------------------------------------------------------------------------------------------
	+	DB 包访 函荐
	-------------------------------------------------------------------------------------------------------*/
	PreparedStatement pstmt = null;
	
	Connection con = null;
	
	Statement stmt = null;
	
	ResultSet rs = null;
	
	String query1 = null;
	
	try
	{

	/*------------------------------------------------------------------------------------------------
	 *		DB 目池记
	 -------------------------------------------------------------------------------------------------*/
	%><%@ include file="../getConnection.jsp"%><%
	
	/*------------------------------------------------------------------------------------------------
	 *	郴 巩力 炼福扁 荤恩.
	 -------------------------------------------------------------------------------------------------*/
     query1 = "select  distinct Top 4 nickname from GT_LUCKY_REQUEST where phonenum = ?"+" order by nickname desc";
     
     pstmt = con.prepareStatement(query1);
     
     pstmt.setLong(1,Long.parseLong(mphone));
     
     rs = pstmt.executeQuery();
     
    for(int i=0;rs.next();i++)
     {
       rgstrNickName[i]=rs.getString("nickname");
       
       nflag = i+1;
     }
     
     rs.close();
     
     pstmt.close();
     
     /*------------------------------------------------------------------------------------------------
	 *	钱绢杭 龙巩捞 乐阑 版快 茄 俺父 免仿钦聪促. 
	 -------------------------------------------------------------------------------------------------*/
	 query1 = "select distinct top 1 a.title,a.idx from GT_LUCKY_QUIZ a,GT_LUCKY_QUIZ_MYLOG b where  a.flag = 1 and a.idx = b.Quiz_idx"+
                   " and b.Quiz_idx not in(select quiz_idx from GT_LUCKY_QUIZ_MYLOG where Guest_phone =?) order by a.idx desc";
	 
	 pstmt = con.prepareStatement(query1);
	 
	 pstmt.setLong(1,Long.parseLong(mphone));

	 rs = pstmt.executeQuery();
	 
	 if(rs.next())
	 {
	    title = rs.getString("title");
	 }
	 
	 rs.close();
	 
	 pstmt.close();
	 
	 /*------------------------------------------------------------------------------------------------
	 *	官捞坷 府惦篮 促澜厘狼 官捞坷 府惦 傍侥俊 嘎苗 技何 郴侩阑 免仿钦聪促.
	 -------------------------------------------------------------------------------------------------*/
	 query1 = "select year, month, day,nickname  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");
	    
	    nickname = rs.getString("nickname");
	 }

	 rs.close();
	 
	 pstmt.close();
	 
	 if(year!=0 && month !=0 && day !=0)
	 
	 {
	 
	 Calendar calendar1=Calendar.getInstance();
	 
	 calendar1.set(year,month,day);
 
	 //坷疵 狼 朝楼 
	 Calendar calendar2=Calendar.getInstance();
	 
	 year=calendar2.get(Calendar.YEAR);
    
     month=calendar2.get(Calendar.MONTH)+1;
    
     day=calendar2.get(Calendar.DATE);
     
     calendar2.set(year,month,day);
     
     
	 if(!calendar2.equals(calendar1))
	 {  
         while(!calendar2.equals(calendar1))
                      {  
                              calendar1.add(calendar1.DATE,1);  
                              iDay++;
                      }
     }
      
     intellect =33/2-iDay%33;
     
     if(intellect<0)
     {
       intellect =0;
     }
     
     body =  23/2-iDay%23;
     
     if(body<0)
     {
       body =0;
     }
     
     sensitivity =  28/2-iDay%28;
     
      if(sensitivity<0)
     {
       sensitivity =0;
     }
     
     iDay = iDay-1;
     
     yintellect = 33/2-iDay%33;
     
      if(yintellect<0)
     {
       yintellect =0;
     }
     
     ybody = 23/2-iDay%23;
     
     if(ybody<0)
     {
       ybody =0;
     }
     
     ysensitivity = 28/2-iDay%28;
     
     if(ysensitivity<0)
     {
       ysensitivity =0;
     }

     ifullstar = intellect/4;
     
     iemptystar = (intellect%4)/2;
     
     bfullstar = body/4;
     
     bemptystar = (body%4)/2;
     
     sfullstar = sensitivity/4;
     
     semptystar = (sensitivity%4)/2;

     }


	 /*------------------------------------------------------------------------------------------------
	 *	款技屏.
	 -------------------------------------------------------------------------------------------------*/
	 query1 = "select top 2 title,tablest from gt_luck_title order by newid()";
	 
	 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();
%>

<html>
<head>
	<link href="../mobile.css" rel="stylesheet" type="text/css">
	<title>权> 家匡皋捞飘</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 height="30"><img src="<%=img_path%>images/soulmate/tit_01.png" width="240" height="30"></td>
				</tr>
			</table>
		</td>
	</tr>
	<!--鸥捞撇 场-->

	<!--咯归 矫累-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -