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

📄 display_movata.jsp.svn-base

📁 用手机浏览的一个类似于聊天室 博克 homepage 等 对这方面有 兴趣的朋友 有所帮助的
💻 SVN-BASE
字号:
<%@ page import="java.lang.*, java.io.*, java.awt.*, java.util.Vector, javax.imageio.*,  java.sql.*,com.entaz.lib.db.db.*,com.entaz.lib.db.movata.*,java.awt.image.BufferedImage,java.util.ArrayList" contentType="text/html;charset=euc-kr"%><%@ include file="../imgpath.jsp"%><%response.setHeader("cache-control","no-cache");
   response.setHeader("expires","0");
   response.setHeader("pragma","no-cache");%><%// Paramters
	//
	String	mphone				=		request.getParameter("mphone");
	String	gphone				=		request.getParameter("gphone");
	String	szFace				=		request.getParameter("face");
	String	szWareItemIdx	=		request.getParameter("item_idx");
	

	// Variable
	//
	String				szRootPath					=	request.getRealPath("/") + img_path.substring(1,img_path.length()-1);
	String				szMovata_Path			=	null;
	String				szQuery						=	null;
	File					file							=	null;
	int						nSex							=	0;

	BufferedImage		MovataImage		=	null;

	
	// 钎沥捞 绝阑 矫, 扁夯 蔼
	//
	if( szFace == null || "".equals( szFace ) || "null".equals( szFace ) )
	{
		szFace = "1";
	}
	
	if( gphone == null || "".equals( gphone ) || "null".equals( gphone ) )
	{
		gphone = mphone;
	}


	// SYSTEM Variable
	//
	String	szExp				=		".png";
	String	szMovataPath		=		szRootPath+"/images/movata/full/"+szFace+"/"+gphone+szExp;			// 累篮荤捞令
	String	szMovataPath2	=		szRootPath+"/images/movata/full/"+szFace+"/B_"+gphone+szExp;		//  奴 荤捞令
	
	
	// [公郊] 瘤扁绰 官肺 免仿 
	//
	if(	"0995470623".equals( gphone )					|| // 扁粮 鸥款瘤扁
		"01051737201".equals( gphone )				|| // 鸥款瘤扁
		"01051797201".equals( gphone )				|| // 墨其瘤扁
		"01051697201".equals( gphone )				|| // 傍皑瘤扁
		"01051787201".equals( gphone )				|| // 瘤侥瘤扁
		"01051767201".equals( gphone )					// 脚绊瘤扁
	)
	{
		szMovataPath2	=		szRootPath+"/images/movata_town/full/"+szFace+"/B_"+gphone+szExp;
	}
	else
	{
		Connection					con		= null;
		PreparedStatement		pstmt	= null;
		Statement					stmt		= null;
		ResultSet					rs			= null;

		try
		{
			/*------------------------------------------------------------------------------------------------
			 *		DB 目池记
			 -------------------------------------------------------------------------------------------------*/%><%@ include file="./getConnection.jsp"%><%
			

			/*------------------------------------------------------------------------------------------------
			 *		牢扁 酒捞袍 啊廉坷扁
			 -------------------------------------------------------------------------------------------------*/
			szQuery = "SELECT sex FROM GT_user_info WHERE phonenum2 = ?";
			pstmt = con.prepareStatement(szQuery);
			pstmt.setLong(1,Long.parseLong(gphone));
			rs = pstmt.executeQuery();
			while( rs.next() )
			{
				nSex = rs.getInt("sex");
			}
			rs.close();
			pstmt.close();
			
			con.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 ) { } }
		}
	}

	szMovataPath2	=		szRootPath+"/images/movata_town/ODC_movata_" + nSex + ".png";
	
	file		=	new File( szMovataPath2 );
	MovataImage	=	ImageIO.read(file);
	
	try
	{
		ServletOutputStream imgOutput = response.getOutputStream();
		ImageIO.write(MovataImage,"png",imgOutput);
		imgOutput.close();
	}
	catch(Exception e)
	{
	}

	if( MovataImage != null)	{ MovataImage = null; }
	if( file != null)	{ file = null; }
%>

⌨️ 快捷键说明

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