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

📄 member_005ffirst_005flist_jsp.java.svn-base

📁 用手机浏览的一个类似于聊天室 博克 homepage 等 对这方面有 兴趣的朋友 有所帮助的
💻 SVN-BASE
📖 第 1 页 / 共 2 页
字号:
			SYSTEM_VM_PATH		=	"web2";
			isQVGA						=	false;
		}
		else
		{
			SYSTEM_VM_PATH	=	"web";
			isQVGA						=	true;
		}
		szPageURL = null;
	}
	
	/*------------------------------------------------------------------------------------------------
	 *		변수설정
	 -------------------------------------------------------------------------------------------------*/
	img_path					=	"/mugeta/client/mugeta_ODC/"+SYSTEM_VM_PATH+"/";
	ava_path					=	"http://localhost/client/mugeta_ODC_movata/web/user/itemcoordi/";
	url_path						=	"/client/mugeta_ODC/"+SYSTEM_VM_PATH+"/user";
	db_name					=	"mugeta";
	ContentserverIP			=	"http://localhost";

	SYSTEM_URL_PATH		=	"/client/mugeta_ODC/web/user";
	
	SYSTEM_MOVATA_CACHE_PATH		= "/client/mugeta_ODC_movata/"+SYSTEM_VM_PATH+"/user";
	SYSTEM_MOVATA_SERVER				=	new String[1];
	SYSTEM_MOVATA_SERVER[0]		=	"localhost";
	
	/*------------------------------------------------------------------------------------------------
	 *		Movata Object Name
	 -------------------------------------------------------------------------------------------------*/
	String		SYSTEM_OBJECT_NAME		= "mugeta";

      out.write('\r');
      out.write('\n');
	
	
	/**
	 *	공통 상수 정의
	 *
	 *	@ version			:	1.0.0
	 *	@ author			:	realbeast ( realbeast@entaz.com )
	 *	@ last modified	:	2008-03-18
	 */


	/*------------------------------------------------------------------------------------------------
	 *		기본 컨텐츠 URL
	 -------------------------------------------------------------------------------------------------*/
	String	SYSTEM_USER_NUMBER			=	request.getParameter("mphone");
	String	SYSTEM_URL_HOME				=	url_path	 +	"/main.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	SYSTEM_URL_ITEM_SHOP		=	url_path	 +	"/itemShop/main.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	SYSTEM_URL_RECOMMEND		=	url_path	 +	"/friendrecommend/friendrecommend1.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	SYSTEM_URL_AD					=	url_path	 +	"/isuser_check.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	SYSTEM_URL_PHONEPY			=	url_path	 +	"/mypage/my_confirm.jsp?mphone="	 +	SYSTEM_USER_NUMBER;

	/*------------------------------------------------------------------------------------------------
	 *		관리자 ( 지기 ) 폰 번호
	 -------------------------------------------------------------------------------------------------*/
	HashMap	SYSTEM_ADMIN_PHONE = new HashMap();

	SYSTEM_ADMIN_PHONE.put("Town", "01051737201");				// 타운지기
	SYSTEM_ADMIN_PHONE.put("Cafe", "01051797201");				// 카페지기
	SYSTEM_ADMIN_PHONE.put("Gong", "01051797201");				// 공감지기
	SYSTEM_ADMIN_PHONE.put("Knowledge", "01051787201");		// 지식지기
	SYSTEM_ADMIN_PHONE.put("Police", "01051767201");				// 신고지기

	

      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	
	String	URL_ITEMSHOP_VM												=	SYSTEM_URL_PATH	 +	"/itemShop/DoItemShopVM.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_VM_CHECK									=	SYSTEM_URL_PATH	 +	"/itemShop/DispItemCheck.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	
	String	URL_ITEMSHOP_CONTEST										=	SYSTEM_URL_PATH	 +	"/itemShop/MovataContest_list.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_CONTEST_VIEW								=	SYSTEM_URL_PATH	 +	"/itemShop/MovataContest_proc.jsp?type=hitUpdate&mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_CONTEST_VIEW2							=	SYSTEM_URL_PATH	 +	"/itemShop/MovataContest_view.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_CONTEST_PROC							=	SYSTEM_URL_PATH	 +	"/itemShop/MovataContest_proc.jsp";
	String	URL_ITEMSHOP_CONTEST_WRITE							=	SYSTEM_URL_PATH	 +	"/itemShop/MovataContest_write.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_CONTEST_RE_WRITE						=	SYSTEM_URL_PATH	 +	"/itemShop/MovataContest_replyWrite.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_CONTEST_DELETE							=	SYSTEM_URL_PATH	 +	"/itemShop/MovataContest_confirm.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_CONTEST_ALERT_MESSAGE			=	SYSTEM_URL_PATH	 +	"/itemShop/MovataContest_alert.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;

	String	URL_ITEMSHOP_COORDINATION								=	SYSTEM_URL_PATH	 +	"/itemShop/MovataCoordination_list.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_COORDINATION_VIEW					=	SYSTEM_URL_PATH	 +	"/itemShop/MovataCoordination_proc.jsp?type=hitUpdate&mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_COORDINATION_VIEW2					=	SYSTEM_URL_PATH	 +	"/itemShop/MovataCoordination_view.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_COORDINATION_PROC					=	SYSTEM_URL_PATH	 +	"/itemShop/MovataCoordination_proc.jsp";
	String	URL_ITEMSHOP_COORDINATION_WRITE					=	SYSTEM_URL_PATH	 +	"/itemShop/MovataCoordination_write.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_COORDINATION_RE_WRITE			=	SYSTEM_URL_PATH	 +	"/itemShop/MovataCoordination_replyWrite.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_COORDINATION_DELETE					=	SYSTEM_URL_PATH	 +	"/itemShop/MovataCoordination_confirm.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_COORDINATION_ALERT_MESSAGE	=	SYSTEM_URL_PATH	 +	"/itemShop/MovataCoordination_alert.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;

	String	URL_ITEMSHOP_HOT_ITEM										=	SYSTEM_URL_PATH	 +	"/itemShop/DispItem.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_CLOVER_RANKING							=	SYSTEM_URL_PATH	 +	"/itemShop/CloverRanking_list.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_CLOVER_RANKING_MESSAGE			=	SYSTEM_URL_PATH	 +	"/itemShop/CloverRanking_Manage.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;
	String	URL_ITEMSHOP_MY												=	SYSTEM_URL_PATH	 +	"/itemShop/MyItemShop.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;


	String	URL_ITEMSHOP_BUY_CONFIRM								=	SYSTEM_URL_PATH	 +	"/itemShop/ItemBuy.jsp?mphone="	 +	SYSTEM_USER_NUMBER	 +	"&gphone="	+	SYSTEM_USER_NUMBER;

      out.write('\r');
      out.write('\n');

   response.setHeader("cache-control","no-cache");
   response.setHeader("expires","0");
   response.setHeader("pragma","no-cache");

	
	/**
	 *	
	 *
	 *	@ version			:	1.0.0
	 *	@ author			:	cui qiuyue ( qycui@isoftstone.com )
	 *	@ last modified	:	2008-04-28
	 */
	/*------------------------------------------------------------------------------------------------------
	+		湲곕낯 ���誘명�
	-------------------------------------------------------------------------------------------------------*/
	String		mphone				=	request.getParameter("mphone");

	String		gphone				=	request.getParameter("gphone");
	
	String		szCount				=	null;
	
	int           nFriendCount         = 0;
	int           nPaperCount         = 0;
	int           nTodayCount          = 0;
	int           nTotalCount            = 0;
	int           nGuestBook           = 0;
	
	Connection					con		= null;
	PreparedStatement		pstmt	= null;
	Statement					stmt		= null;
	ResultSet					rs			= null;
	
	try
	{

	/*------------------------------------------------------------------------------------------------
	 *		DB 而ㅻ���	 -------------------------------------------------------------------------------------------------*/
	

/**
 * 무료게임타운 시스템점검 및 블랙유저 검출
 * 
 * @ date		?8-01-21
 * @ version			1.2.0
 */

String SYSTEM_PARAMETER_SET	=	"?mphone="+request.getParameter("mphone")+"&gphone="+request.getParameter("mphone");
String SYSTEM_PHONE_NUMBER		=	request.getParameter("mphone");

// 시스템 점검 체크
//

if(IS_SYSTEM_CHECK)
{
	if( ! IS_TESTER_MODE )
	{
		response.sendRedirect(url_path+"/17_members_view.jsp"+SYSTEM_PARAMETER_SET);
		return;
	}
}
// DB 연결이 되지 않을 때, 안내창으로 이동
//
 con = com.entaz.lib.db.DBConnector.getConnection("mugeta");
if( con == null )
{
	response.sendRedirect(url_path+"/system_notice2.jsp"+SYSTEM_PARAMETER_SET);
	return;
}
// 시스템점검 중이여도 테스터는 사용가능
//
if( IS_TESTER_MODE )
{
	boolean isTester = com.entaz.lib.db.DBConnector.chkTester( con, SYSTEM_PHONE_NUMBER );
	if( ! isTester )
	{
		response.sendRedirect(url_path+"/system_notice.jsp"+SYSTEM_PARAMETER_SET);
		return;
	}
}
// 블랙유저인지 체크, 
//
boolean isBlackUser = com.entaz.lib.db.DBConnector.chkBlackList( con, SYSTEM_PHONE_NUMBER );
if( isBlackUser ) 
{
	response.sendRedirect(url_path+"/bad_member.jsp"+SYSTEM_PARAMETER_SET);
	return;
}

	
	/*------------------------------------------------------------------------------------------------
	 *		�ㅻ� �고�諛⑸Ц��	 -------------------------------------------------------------------------------------------------*/

	szCount = " SELECT  today_cnt AS todayC  from  GT_ranker  WHERE   phonenum="+mphone;

	pstmt = con.prepareStatement(szCount);
	
	rs = pstmt.executeQuery();
		 
	if( rs.next() )
	{
		nTodayCount = rs.getInt("todayC");
	}
	rs.close();
	pstmt.close();

	/*------------------------------------------------------------------------------------------------
	 *		珥��고�諛⑸Ц��	 -------------------------------------------------------------------------------------------------*/

	szCount = " SELECT  total_cnt AS totalC  from  GT_ranker  WHERE   phonenum="+mphone;

	pstmt = con.prepareStatement(szCount);
	
	rs = pstmt.executeQuery();
		 
	if( rs.next() )
	{
		nTotalCount = rs.getInt("totalC");
	}
	rs.close();
	pstmt.close();
	
	
	/*------------------------------------------------------------------------------------------------
	 *		移�뎄��껌 嫄댁�
	 -------------------------------------------------------------------------------------------------*/

	szCount = " SELECT  COUNT(friend_idx) AS fCount  from  GT_friend WHERE  friend_flag=2  AND   phonenum="+mphone;

	pstmt = con.prepareStatement(szCount);
	
	rs = pstmt.executeQuery();
		 
	if( rs.next() )
	{
		nFriendCount = rs.getInt("fCount");
	}
	rs.close();
	pstmt.close();
	
	/*------------------------------------------------------------------------------------------------
	 *		��そ吏� 嫄댁�
	 -------------------------------------------------------------------------------------------------*/
	szCount = " SELECT  COUNT(paper_idx)  AS pCount  from  GT_paper_recv  WHERE  paper_flag=1 AND  paper_check_flag=2 and  phonenum_my ="+ mphone;

	pstmt = con.prepareStatement(szCount);
	
	rs = pstmt.executeQuery();
		 
	if( rs.next() )
	{
		nPaperCount = rs.getInt("pCount");
	}
	rs.close();
	pstmt.close();
	
	/*------------------------------------------------------------------------------------------------
	 *		 諛⑸�濡���� ��갑�щ� 
	 -------------------------------------------------------------------------------------------------*/
	szCount = " SELECT   ranker_guestbook AS guBook  FROM  GT_ranker  WHERE  phonenum ="+ mphone;

	pstmt = con.prepareStatement(szCount);
	
	rs = pstmt.executeQuery();
		 
	if( rs.next() )
	{
		nGuestBook = rs.getInt("guBook");
	}
	rs.close();
	pstmt.close();
	}
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 ) { } }
}
	
	
      out.write("\r\n");
      out.write("\t \r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("\t<link href=\"../mobile.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("\r\n");
      out.write("<table width=\"228\" height=\"65\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n");
      out.write("\t<tr valign=\"top\" >\r\n");
      out.write("\t\t<td>\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\t<table width=\"228\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t\t\t\t<!--↓여백 시작 -->\r\n");
      out.write("\t\t\t\t<tr height=\"3\">\r\n");
      out.write("\t\t\t\t\t<td></td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t<!--↑여백 끝-->\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<!--↓투데이 시작 -->\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td align=\"right\"><font color=\"#C88E3D\" size=\"3\"><b>today </b>");
      out.print(nTodayCount );
      out.write('/');
      out.print(nTotalCount );
      out.write("</font></td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t<!--↑투데이 끝-->\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<tr height=\"4\">\r\n");
      out.write("\t\t\t\t\t<td></td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<!--↓점선 시작 -->\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td width=\"228\" height=\"1\" background=\"http://entaz.mugeta.com/client/FTP_Working_Folder/web/images/main/dot_01.png\"></td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t<!--↑점선 끝-->\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<tr height=\"4\">\r\n");
      out.write("\t\t\t\t\t<td></td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<!--↓메뉴 시작 -->\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td><img src=\"");
      out.print(img_path);
      out.write("images/itemshop/temp_4.png\" pictosrc=\"77\">        \r\n");
      out.write("\t\t\t\t\t      <font color=\"#545454\">친구 신청 ");
      out.print(nFriendCount );
      out.write(" 건</font>\r\n");
      out.write("\t\t\t\t\t\t<img src=\"");
      out.print(img_path);
      out.write("images/itemshop/temp_5.png\" pictosrc=\"76\">\r\n");
      out.write("\t\t\t\t\t\t<font color=\"#545454\">새 쪽지 ");
      out.print(nPaperCount );
      out.write("건</font>\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<tr height=\"4\">\r\n");
      out.write("\t\t\t\t\t<td></td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td width=\"228\" height=\"1\" background=\"http://entaz.mugeta.com/client/FTP_Working_Folder/web/images/main/dot_01.png\"></td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<tr height=\"4\">\r\n");
      out.write("\t\t\t\t\t<td></td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t");

				if(nGuestBook == 0)
				{
				
      out.write("\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t\t<td>&nbsp;<img src=\"");
      out.print(img_path);
      out.write("images/itemshop/temp_6.png\" pictosrc=\"83\">&nbsp;<font color=\"#545454\">방명록 새 글 없음</font></td>\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t\t");

				}else{ 
                
      out.write("\r\n");
      out.write("\t\t\t\t<td>&nbsp;<img src=\"");
      out.print(img_path);
      out.write("images/itemshop/temp_6.png\" pictosrc=\"83\">&nbsp;<font color=\"#545454\">방명록 새 글 도착</font></td>\t\r\n");
      out.write("\t\t\t\t");

				} 
				
      out.write("\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t<!--↑메뉴 끝-->\r\n");
      out.write("\t\t\t</table>\t\t\t\r\n");
      out.write("\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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