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

📄 ranking_cafe.jsp.svn-base

📁 用手机浏览的一个类似于聊天室 博克 homepage 等 对这方面有 兴趣的朋友 有所帮助的
💻 SVN-BASE
📖 第 1 页 / 共 2 页
字号:

			if(dbcount > maxRank)
				dbcount = maxRank;

			if(dbcount > 1)
				dbcount = dbcount-1;  //1殿阑 猾促

			pageset.close();
		}

		if(dbcount%pagesize == 0 && dbcount > 0)
			pagecount = dbcount/pagesize; // 醚 其捞瘤荐 备窍扁
		else
			pagecount = dbcount/pagesize+1; // 醚 其捞瘤荐 备窍扁

		if(request.getParameter("pageNUM")!=null)
		{
			pageNUM=Integer.parseInt(request.getParameter("pageNUM"));//瘤沥等 其捞瘤 焊咯林扁

			if(pageNUM > pagecount)//乐绰 其捞瘤 焊促 奴 蔼捞 甸绢吭阑 锭 贸府
				pageNUM = pagecount;

			absolutepage=(pageNUM-1)*pagesize+1;//1殿 锭巩俊 1阑 歹窃
		}
		else
		{
			absolutepage = 1;
		}

		//1困 备窍扁
		query1 = "select * from (select * from(select Top 1 cafe_idx, cafe_name, cafe_intro, "+dateColName+",phonenum, cafe_date from GT_cafe order by "+dateColName+" desc, cafe_date desc)tempTable1 union all ";
		//促澜 其捞瘤 备窍扁
		query1 = query1 + "select * from(select Top "+pagesize+" cafe_idx, cafe_name, cafe_intro, "+dateColName+", phonenum, cafe_date from GT_cafe where cafe_idx not in(select Top "+absolutepage+" cafe_idx from GT_cafe  order by "+dateColName+" desc, cafe_date desc) order by "+dateColName+" desc, cafe_date desc)tempTable2)tempTable";
//out.println(query1);

		if(pstmt != null)  pstmt.close(); 
		if(rs != null)  rs.close(); 

		pstmt = con.prepareStatement(query1);	
		rs = pstmt.executeQuery();
//1殿 免仿
		if(rs.next())
		{
			cafe_idx = rs.getInt(1);
			cafe_name = rs.getString(2);
			cafe_intro = rs.getString(3);

			if(rankType == 1)
				calumCnt = "雀盔"+rs.getInt(4)+"疙";
			else
				calumCnt = "霸矫"+rs.getInt(4)+"扒";

			cafe_phonenum = rs.getString(5);
%>
	<tr height="19">
		<td bgcolor="#FFe0e4" align="center">
		<%
			String pageurl=url_path+"/ranking/ranking_cafe.jsp?mphone="+mphone+"&gphone="+gphone+"&rankType="+rankType+"&pageType="+pageType+"&dateFlag="+dateFlag;
			out.println(pagePath(pageurl, dbcount, pageNUM, pagecount));
		%>		
		</td>
	</tr>

	<tr>
		<td height="3"></td>
	</tr>
	<tr>
		<td height="5" bgcolor="#ff9dac"></td>
	</tr>
	<tr>
		<td width="176" height="2" background="<%=img_path%>images/ranking/tab_02.png"></td>
	</tr>
	<tr>
		<td height="5"></td>
	</tr>

	<tr>
		<td>
			<table width="176" border="0" cellpadding="0" cellspacing="0">
				<tr>
				<td width="38"></td>
				<td width="54" bgcolor="#ffe0e4" align="center"><img src="<%=ava_path%>display_thumb.jsp?mphone=<%=cafe_phonenum%>&gphone=<%=cafe_phonenum%>" border="0"></td>
				<td width="7"></td>
				<td width="77">
					<table border="0" cellpadding="0" cellspacing="0">
						<tr><td><font color="#ff4759">1困</font> <img pictosrc="32" src="<%=img_path%>images/ranking/temp_03.png"></td></tr>
						<tr><td><a href="<%=url_path%>/cafe/cafe_master.jsp?mphone=<%=mphone%>&gphone=<%=gphone%>&cafe_idx=<%=cafe_idx%>"><font color="#000000"><%=cafe_name%></font></a></td></tr>
						<tr><td><font color="#7c8889"><%=calumCnt%></font></td></tr>
					</table>
				</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td height="5"></td>
	</tr>

<!-- 痢急 冠胶 持绢具 且镑 矫累 -->
	<tr>
		<td>
			<table width="176" border="0" cellpadding="0" cellspacing="0">
				<tr height="2">
					<td width="5"></td>
					<td width="2" background="<%=img_path%>images/ranking/tab_03.png"></td>
					<td width="164" background="<%=img_path%>images/ranking/tab_03.png"></td>
					<td width="2" background="<%=img_path%>images/ranking/tab_03.png"></td>
					<td width="4"></td>
				</tr>
				<tr height="6">
					<td width="5"></td>
					<td width="2" background="<%=img_path%>images/ranking/tab_03.png"></td>
					<td width="164"></td>
					<td width="2" background="<%=img_path%>images/ranking/tab_03.png"></td>
					<td width="4"></td>
				</tr>
				<tr>
					<td width="5"></td>
					<td width="2" background="<%=img_path%>images/ranking/tab_03.png"></td>
					<td width="164" align="center"><font color="#ff4759"><%=cafe_intro%></font></td>
					<td width="2" background="<%=img_path%>images/ranking/tab_03.png"></td>
					<td width="4"></td>
				</tr>
				<tr height="6">
					<td width="5"></td>
					<td width="2" background="<%=img_path%>images/ranking/tab_03.png"></td>
					<td width="164"></td>
					<td width="2" background="<%=img_path%>images/ranking/tab_03.png"></td>
					<td width="4"></td>
				</tr>
				<tr height="2">
					<td width="6"></td>
					<td width="2" background="<%=img_path%>images/ranking/tab_03.png"></td>
					<td width="164" background="<%=img_path%>images/ranking/tab_03.png"></td>
					<td width="2" background="<%=img_path%>images/ranking/tab_03.png"></td>
					<td width="4"></td>
				</tr>
			</table>
		</td>
	</tr>


<!-- 痢急 冠胶 持绢具 且镑 场 -->


	<tr>
		<td height="4"></td>
	</tr>

	<tr>
		<td width="176" height="2" background="<%=img_path%>images/ranking/tab_02.png"></td>
	</tr>

	<tr>
		<td height="5" bgcolor="#ff9dac"></td>
	</tr>

	<tr>
		<td height="4"></td>
	</tr>

<!-- 1锅掳 府胶飘 矫累 -->

<%
			rankCnt = absolutepage+1;
			while(rs.next())
			{
				cafe_idx = rs.getInt(1);
				cafe_name = rs.getString(2);
				cafe_intro = rs.getString(3);

				if(rankType == 1)
					calumCnt = "雀盔"+rs.getInt(4)+"疙";
				else
					calumCnt = "霸矫"+rs.getInt(4)+"扒";

				cafe_phonenum = rs.getString(5);
				
				String bgColor = "#dae6e8";

				cnt = 0;
				while(mycafeCnt > cnt)
				{
					if(mycafe_idx[cnt] == cafe_idx)
					{
						bgColor = "#fff999";
						break;
					}
					cnt++;
				}
%>
	<tr>
		<td>
		<table width="176" border="0" cellspacing="0" cellpadding="0">
			<tr> 
				<!-- 酒官鸥 矫累 -->
				<td width="57"  align="left" valign="top" bgcolor="<%=bgColor%>">
				<table width="57"  height="63"  border="0" cellspacing="0" cellpadding="0">
					<tr> 
						<td width="3" height="3" bgcolor="<%=bgColor%>"> </td>
						<td width="48" bgcolor="<%=bgColor%>"> </td>
						<td width="3" bgcolor="<%=bgColor%>"> </td>
						<td width="3" bgcolor="#ffffff"> </td>
					</tr>
					<tr> 
						<td width="3" height="54" bgcolor="<%=bgColor%>"></td>
						<td width="48" bgcolor="#ffffff"><img src="<%=ava_path%>display_thumb.jsp?mphone=<%=cafe_phonenum%>&gphone=<%=cafe_phonenum%>" width="48" height="54" border="0"></td>
						<td width="3" bgcolor="<%=bgColor%>"> </td>
						<td width="3" bgcolor="#ffffff"> </td>
					</tr>
					<tr> 
						<td width="3" height="3" bgcolor="<%=bgColor%>"></td>
						<td width="48" bgcolor="<%=bgColor%>"></td>
						<td width="3" bgcolor="<%=bgColor%>"></td>
						<td width="3" bgcolor="#ffffff"> </td>
					</tr>
				</table>
				</td>
				<!-- 酒官鸥 场 -->
		
				<!-- 郴侩 矫累 -->
				<td bgcolor="<%=bgColor%>">
				<table  border="0" cellspacing="0" cellpadding="0" valign="top">
					<tr> 
						<td width="5"></td>
						<td width="96">
							<font color="#ff4759"><%=rankCnt%>困</font>
						</td>
						<td width="18">
							<% if(rankCnt==2) out.println("<img pictosrc='33' src='"+img_path+"images/ranking/temp_04.png' width=11 height=14>");
							else if(rankCnt==3) out.println("<img pictosrc='34' src='"+img_path+"images/ranking/temp_05.png' width=11 height=14>"); %>	
						</td>
					</tr>
					<tr> 
						<td width="5"></td>
						<td width="114" colspan="2" height="15"><a href="<%=url_path%>/cafe/cafe_master.jsp?mphone=<%=mphone%>&gphone=<%=gphone%>&cafe_idx=<%=cafe_idx%>"><font color="#000000"><%=cafe_name%></font></a></td>
					</tr>
					<tr> 
						<td width="5"></td>
						<td width="114" colspan="2" height="15"><font color="#7c8889"><%=calumCnt%></font>
						
						</td>
					</tr>
				</table>
				</td>
				<!-- 郴侩 场 -->
			</tr>
		</table>
		</td>
	</tr>


	<tr>
		<td height="3"></td>
	</tr>

<%
				rankCnt++;
//茄拌 鉴困甫 逞栏搁 风橇甫 狐柳促.				
				if(maxRank < rankCnt)
					break;
			}
%>
<!-- 1锅掳 府胶飘 场 -->





	<tr height="19">
		<td bgcolor="#FFe0e4" align="center">
		<%
			out.println(pagePath(pageurl, dbcount, pageNUM, pagecount));
		%>		
		</td>
	</tr>
<%
		}
		else
		{
%>
	<tr height="19">
		<td bgcolor="#FFe0e4" align="center"><font color="#ff586f">钎矫且 郴侩捞 绝嚼聪促.</font></td>
	</tr>
<%
		}
	}	
	catch (Exception e) 
	{
		out.println(e);
	}
	finally
	{
		if(rs != null) try{ rs.close(); }catch(Exception se){}
		if(pageset != null) try{pageset.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){}
	}
%>

<%
	if(pageType == 0)
	{
%>
	<tr> 
		<td height="19"></td>
	</tr>

	<tr> 
		<td align="center"><b><a href="<%=goMyLink%>"><font color="#ff4759">牢拱珐欧</font></a><font color="#ff4759"> | </font><a href="<%=goCafeLink%>"><font color="#ff4759">墨其珐欧</font></a></b></td>
	</tr>
	<tr> 
		<td height="5"></td>
	</tr>
	<tr> 
		<td align="center"><b><a href="<%=goKnowLink%>"><font color="#ff4759">瘤侥珐欧</font></a><font color="#ff4759"> | </font><a href="<%=goGongLink%>"><font color="#ff4759">傍皑珐欧</font></a><font color="#ff4759"> | </font><a href="<%=goGameLink%>"><font color="#ff4759">霸烙珐欧</font></a></b></td>
	</tr>
<%
	}
%>
	<tr> 
		<td height="7"></td>
	</tr>

<%
	if(pageType == 0)
	{
%>
	<tr align="center">
		<td>
			<table width="176" border="0" cellpadding="0" cellspacing="0">
				<tr height="16">
					<td width="47"></td>
					<td width="85" bgcolor="#FF8EAB" align="center"><font color="#FFFFFF">
						<a href="<%=link2%>">鸥款珐欧权栏肺</a>					
					</font></td>
					<td width="47"></td>
				</tr>
			</table>
		</td>
  	</tr>
<%
	}
	else
	{
%>
	<tr align="center">
		<td>
			<table>
			   <tr height="16">
					<td></td>
					<td width="65" bgcolor="#ff8eab" align="center"><font color="#ffffff"><a href="<%=link2%>">倒酒啊扁</a></font></td>
					<td width="2"></td>
					<td width="65" bgcolor="#ff8eab" align="center"><font color="#ffffff"><a href="<%=url_path+"/ranking/ranking_main.jsp?mphone="+mphone+"&gphone="+mphone%>">鸥款珐欧权</a></font></td>
					<td></td>
				</tr>
			</table>
		</td>
  	</tr>
<%
	}					
%>
	<tr>
		<td height="11"></td>
	</tr>

</table>
<!-- 窍窜 匙厚霸捞记 -->


<table width="176" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="10" bgcolor="#BBC7C8"></td>
        <td bgcolor="#DAE6E8">
			<table width="100%" border="0" cellspacing="3" cellpadding="0">
				<tr height="15">
					<td>
<%
	if(pageType == 0)
	{
%>
<a href="<%=url_path%>/main.jsp?mphone=<%=mphone%>&gphone=<%=gphone%>">权</a> &gt;  
<a href="<%=url_path%>/ranking/ranking_main.jsp?mphone=<%=mphone%>&gphone=<%=mphone%>">鸥款珐欧</a> &gt; 墨其珐欧
<%
	}
	else
	{
%>
<a href="<%=url_path%>/main.jsp?mphone=<%=mphone%>&gphone=<%=mphone%>">权</a> &gt; 
<a href="<%=url_path%>/cafe/cafe_town_main.jsp?mphone=<%=mphone%>&gphone=<%=mphone%>">鸥款墨其</a> &gt; 牢扁墨其
<%		
	}					
%>						
					</td>
				</tr>
			</table>
		</td>
        <td width="10" bgcolor="#BBC7C8"></td>
	</tr>
</table>
<%@ include file="../newbottom.jsp"%>
</body>

</html>

⌨️ 快捷键说明

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