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

📄 other_news_view_lhl.jsp.svn-base

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

	<!-- 瘩臂焊扁 矫累 -->
<%
	if(reCnt != 0)
	{
%>
	<tr height="19">
		<td bgcolor="<%=btnFColor  %>"><font color="#ffffff"> ″ 瘩臂焊扁</font></td>
	</tr>
<%
	}
 %>

<%
		
		stmt = con.createStatement();
		rs = stmt.executeQuery(queryNsNewREString);
		
		
		if(!rs.next()) // 蔼捞 绝阑锭
		{
			isNoPage = 1;
			pagesize=0;
		}
		else         // 蔼捞 乐阑锭	//rs.absolute(absolutepage);
		{				
			for(int s=0; s<absolutepage-1; s++)
				rs.next();
		}
		
		int count = 0 ; //其捞瘤 墨款磐 函荐
		
		
		int nsNewsREidx = 0;
		long nsNewsREphonenum = 0;
		String nsNewsREnickname = "";
		String nsNewsREtext = "";
		String nsNewsREregdate = "";
		
		int cnt = dbcount;
		if(pageNUM == 1) {
			cnt = dbcount;
		} else {
			cnt = dbcount-(pageNUM-1) * pagesize;
		}
		
		
		while(count<pagesize)
		{
			count ++;
			nsNewsREidx = rs.getInt("idx");
			nsNewsREphonenum = rs.getLong("phonenum");
			nsNewsREnickname = rs.getString("nickname");
			nsNewsREtext = rs.getString("text");
			nsNewsREregdate = rs.getString("regdate");
		
%>

	<!-- 馆汗 1 矫累 -->
	<tr>
		<td>
			<table width="240" border="0" cellspacing="0" cellpadding="0" bgcolor="#e1eef1">
				<tr>
					<!--酒官鸥 矫累-->
					<td width="54" align="top">
						<table width="54" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td colspan="3" height="3"></td>
							</tr>
							<tr>
								<td width="3"></td>
								<td align="top"><img src="<%=ava_path%>display_thumb.jsp?mphone=<%=mphone%>&gphone=0<%=nsNewsREphonenum%>" width="48" height="54"></td>
								<td width="3"></td>
							</tr>
							<tr>
								<td colspan="3" height="3"></td>
							</tr>
						</table>						
					</td>
					<!--酒官鸥 场-->

					<!-- 闰祸 咯归 矫累 -->
					<td bgcolor="#ffffff" width="3"></td>
					<!-- 闰祸 咯归 场 -->

					<!-- 郴侩 矫累 -->
					<td valign="top">
						<table border="0" cellspacing="0" cellpadding="0">
							<tr height="20">
								<td width="4"></td>
								<td>
									<font color="#7c8889"><a href="<%=url_path%>/mypage/my_confirm.jsp?mphone=<%=mphone%>&gphone=0<%=nsNewsREphonenum%>"><%=nsNewsREnickname%></a></font><br>
									<font color="#a2a2a2" size="3">(<%=getTime(nsNewsREregdate)%>)</font>
								</td>
							</tr>
							<tr>
								<td width="4"></td>
								<td>
									<%= nsNewsREtext %>
								</td>
							</tr>
						</table>
					</td>
					<!-- 郴侩 场 -->
					<td width="8"></td>
				</tr>
				
				<tr height="3">
					<td width="54" bgcolor="#ffffff"></td>
					<td width="3" bgcolor="#ffffff"></td>
					<td></td>
					<td width="8"></td>
				</tr>
				
				<tr height="2">
					<td colspan="4"></td>
				</tr>

				<tr>
					<!-- 滚瓢 父甸扁 矫累 -->
					<td width="54" align="center"><font color="#a2a2a2"><%= cnt %></font></td>
					<td width="3"></td>
					<td>
						<table  border="0" cellspacing="0" cellpadding="0">
							<tr height="15">
								<td></td>
								<%if(nsNewsREphonenum==getLong(mphone)){out.println("<td width='31' align='center' bgcolor='#ffffff'><font color='#7c8889'><a href='other_news_answer_modify_of_my_lhl.jsp?idxNsNews="+idxNsNews+"&idxNsNewsRE="+nsNewsREidx+"&mphone="+mphone+"&gphone="+gphone+"'>荐沥</a></font></td>");} %>
							</tr>
						</table>
					</td>
					<td width="8"></td>
					<!-- 滚瓢 父甸扁 场 -->
				</tr>
				
				<tr height="2">
					<td colspan="4"></td>
				</tr>
			</table>
		</td>
	</tr>

	<!--咯归 矫累-->
	<tr>
		<td height="3"></td>
	</tr>
	<!--咯归 场-->
	<!-- 馆汗 1 场 -->
			
<%
			cnt --;
			if(rs.isLast())
			{ //盖 付瘤阜 饭内靛 老版快
				break;
			}
			else
			{
				rs.next();
			}
		}

		rs.close();
		stmt.close();
		pstmt.close();
		con.close();


%>
	<!-- 瘩臂焊扁 场 -->


<!--其捞瘤 傅农 矫累-->
<%
    String [] szSplit2 = pagePathBottom(pageurl, dbcount, pageNUM, pagecount);
%>
	<tr>
		<td>
			<table width="240"  border="0" cellspacing="0" cellpadding="0" bgcolor="<%=pageBgColor%>">
				<tr>
					<td height="19">
						<table width="240" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td></td>
								<td width="21" align="center">
									<%=szSplit2[0]%>
									<font color="#676767" size="3"><%=szSplit2[1]%></font>
									<%=szSplit2[2]%>
								</td>
<%
	String pageColor = "";
	for(int i=1;i<6;i++)
	{
		if(pageNUM%10 ==  Integer.parseInt(szSplit2[i*3+1]))
			pageColor = pageFontColorY;
		else
			pageColor = pageFontColorN;
%>
								<td width="1" align="center">
									<font color="<%=pageColor%>" size="3">|</font></td>
								<td width="21" align="center">
									<%=szSplit2[i*3]%>
									<font color="<%=pageColor%>" size="3"><b><%=szSplit2[i*3+1]%></b></font>
									<%=szSplit2[i*3+2]%>
								</td>
<%
	}
%>
								<td width="21" align="center">
									<%=szSplit2[18]%>
									<font color="#676767" size="3"><b><%=szSplit2[19]%></b></font>
									<%=szSplit2[20]%>
								</td>
								<td></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<!--其捞瘤 傅农 场-->

	<!--咯归 矫累-->
	<tr>
		<td height="8"></td>
	</tr>
	<!--咯归 场-->

	<!-- 滚瓢 矫累 -->
	<tr> 
		<td>
			<table width="240" border="0" cellspacing="0" cellpadding="0">
				<tr height="17">
					<td></td>
					<td></td>
					<td width="55" bgcolor="<%=mainColor %>" align="center" ><a href="other_news_list_lhl.jsp?gphone=<%=gphone%>&mphone=<%=mphone%>"><font color="#ffffff">倒酒啊扁</font></a></td>
					<td width="2"></td>
					<td width="55" bgcolor="<%=mainColor %>" align="center" ><a href="NewsMain.jsp?gphone=<%=gphone%>&mphone=<%=mphone%>"><font color="#ffffff">春胶肺</font></a></td>
					<td></td>
				</tr>				
			</table>
		</td>
	</tr>
	<!-- 滚瓢 场 -->
	
	<!-- 咯归 矫累 -->
	<tr height="11">
		<td></td>
	</tr>
	<!-- 咯归 场 -->
<%
String step1=url_path+"/main.jsp?mphone="+mphone+"&gphone="+gphone;//权
String step2=url_path+"/mypage/my_confirm.jsp?mphone="+mphone+"&gphone="+gphone;
String step3=url_path+"/news/NewsMain.jsp?mphone="+mphone+"&gphone="+gphone;
%>
	<!--版肺钎矫 矫累-->
	<tr>
		<td>
			<table width="240" border="0" cellspacing="0" cellpadding="0">
				<tr height="19">
					<td width="10" bgcolor="#BBC7C8"></td>
					<td bgcolor="#DAE6E8">
						&nbsp;<a href="<%=step1%>">权</a>&gt;<a href="<%=step2%>"><%= usernickname %>丛狼迄乔</a>&gt;<a href="<%=step3%>">春胶</a>&gt;弥辟春胶
					</td>
					<td width="8" bgcolor="#BBC7C8"></td>
				</tr>
			</table>
		</td>
	</tr>
	<!--版肺钎矫 场-->
</table>
<%@ include file="../newbottom.jsp"%>
</body>
</html>
<%
		} catch(Exception e) {
		e.printStackTrace();
	}
 %>
<%!
	public String getType(int input)
	{
		if(input == 1)
			return new String("荤扒/荤绊");
		if(input == 2)
			return new String("瘤开");
		if(input == 3)
			return new String("楷抗/胶器明");
		else
			return new String("扁鸥");
	}
	
	public String getTime(String input)
	{
		return input.substring(2,4)+"/"+input.substring(5,7)+"/"+input.substring(8,10)+" "+input.substring(11,16);
	}
	
	public String getTime()
	{
		java.text.SimpleDateFormat tempDate = new java.text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		String datetime = tempDate.format(new java.util.Date());
		return datetime;
	}
	public String getTitle(String input,int type)
	{
		String strType = getType(type);
		int typeLen = strType.length();
		
		StringBuffer sb = new StringBuffer();
		int length = input.length();
		if(length > 20 && length <= 40)
			return input.substring(0,19-typeLen) + "<br>" + input.substring(20-typeLen,length);
		if(length > 40 && length <= 60)
			return input.substring(0,19-typeLen) + "<br>" + input.substring(20-typeLen,39-typeLen) + "<br>" + input.substring(39-typeLen+1,length);
		return input;
			
	}
	public String getText(String input)
    {
    String strPrintText = "";
    
    for (int i = 1; i<=input.length();i++){
     if (i % 20 == 0)
     {
      strPrintText = strPrintText + input.substring(i-1, i) + "<br>";
     }
     else
     {
      strPrintText = strPrintText + input.substring(i-1, i);
     }
    }
     return strPrintText;
    }

%>

⌨️ 快捷键说明

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