📄 my_news_register_view_lhl.jsp.svn-base
字号:
<%@ page language="java" pageEncoding="EUC-KR"%>
<%@ page import="java.io.*,java.text.*,java.util.Date,java.util.Vector, java.sql.*, com.entaz.lib.db.*, com.entaz.relay.net.* "%>
<%@ include file="../imgpath.jsp"%>
<%@ include file="appConstants.jsp"%>
<%@ include file="formatUtil.jsp"%>
<%@ include file="../common_func.jsp"%>
<%
String gphone = request.getParameter("gphone");
String mphone = request.getParameter("mphone");
Connection con = null;
PreparedStatement pstmt = null;
Statement stmt = null;
ResultSet rs = null;
// 其捞瘤 备泅 眠啊 函荐
int pagesize = 7; // 茄其捞瘤寸 10俺 免仿拱
// 傈开 函荐肺 急攫.. 其捞瘤 备泅 何盒俊 犁荤侩
int pageNUM=1; // 其捞瘤 锅龋
int pagecount=1 ; // 其捞瘤 肮荐 瘤沥 函荐
int absolutepage=1; // 例措 困摹 其捞瘤 锅龋
int dbcount=0 ; // DB 救俊 臂 肮荐 历厘 函荐
int isNoPage = 0; //茄俺档 绝蠢衬.. 绝栏搁0, 乐栏搁1
String pageurl = null;
String usernickname = "No name";
String bgColor = "";
int nsNewsidx = 0;
int kind = 0;
String title = "";
String text = "";
int reCnt = 0;
int hit = 0;
String regdate = "";
try {
%>
<%@ include file="../getConnection.jsp"%>
<%@ include file="bgColor.jsp"%>
<%
bgColor = mainBgColor;
String queryString = "SELECT * FROM gt_user_info WITH (READUNCOMMITTED) WHERE phonenum= ?";
pstmt = con.prepareStatement(queryString);
pstmt.setString(1, mphone);
rs = pstmt.executeQuery();
while(rs.next())
{
usernickname = rs.getString("nickname");
}
String queryNsNewsString = "SELECT top 1 * FROM gt_nsnews WITH (READUNCOMMITTED) WHERE phonenum=? order by idx desc;";
pstmt = con.prepareStatement(queryNsNewsString);
pstmt.setLong(1, getLong(mphone));
rs = pstmt.executeQuery();
while(rs.next())
{
nsNewsidx = rs.getInt("idx");
kind = rs.getInt("kind");
title = rs.getString("title");
text = rs.getString("text");
reCnt = rs.getInt("reCnt");
hit = rs.getInt("seCnt");
regdate = rs.getString("regdate");
}
rs.close();
pstmt.close();
con.close();
%>
<html>
<head>
<title>My News Register View</title>
<link rel="stylesheet" href="../mobile.css" type="text/css"></link>
</head>
<body>
<table width="176" border="0" cellspacing="0" cellpadding="0">
<!-- 鸥捞撇 矫累 -->
<tr>
<td>
<table width="176" border="0" cellspacing="0" cellpadding="0">
<tr height="19">
<td width="8" bgcolor="<%=bgColor%>"></td>
<td bgcolor="<%=bgColor%>"><font color="#ffffff">春胶</font></td>
</tr>
</table>
</td>
</tr>
<!-- 鸥捞撇 场 -->
<!-- 咯归 矫累 -->
<tr height="4">
<td></td>
</tr>
<!-- 咯归 场 -->
<!-- 冠胶 矫累 -->
<tr>
<td>
<table width="176" border="0" cellspacing="0" cellpadding="0" bgcolor="<%=contentBgColor%>">
<tr height="6">
<td colspan="3"></td>
</tr>
<tr>
<td width="3"></td>
<td>
<font color="btnFontColor">[<%= getType(kind) %>] </font>
<%= title %><font color="btnFontColor"><b> [<%= reCnt %>]</b></font>
</td>
<td width="3"></td>
</tr>
<tr height="2">
<td colspan="3"></td>
</tr>
<tr>
<td width="3"></td>
<td align="right"><font color="#928279" size="3"> - <%= regdate %> </font></td>
<td width="3"></td>
</tr>
<tr height="4">
<td colspan="3"></td>
</tr>
<tr>
<td width="3"></td>
<td bgcolor="#ffffff">
<table border="0" cellspacing="0" cellpadding="0">
<tr height="4">
<td colspan="3"></td>
</tr>
<tr>
<td width="4"></td>
<td>
<%= text %>
</td>
<td width="4"></td>
</tr>
<tr>
<td width="4"></td>
<td align="right"><font color="#7c8889" size="3">炼雀荐 <%= hit %></font></td>
<td width="4"></td>
</tr>
<tr height="4">
<td colspan="3"></td>
</tr>
</table>
</td>
<td width="3"></td>
</tr>
<tr height="3">
<td colspan="3"></td>
</tr>
<!-- 滚瓢 矫累 -->
<tr>
<td width="3"></td>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr height="14">
<td></td>
<td width="55" bgcolor="#ffffff" align="center">
<a href="my_news_modify_lhl.jsp?idxNsNews=<%=nsNewsidx%>&gphone=<%=gphone%>&mphone=<%=mphone%>"><font color="#ff4d72">荐沥/昏力</font></a>
</td>
<td width="2"></td>
<td width="55" bgcolor="#ffffff" align="center">
<a href="my_news_answer_lhl.jsp?idxNsNews=<%=nsNewsidx%>&gphone=<%=gphone%>&mphone=<%=mphone%>"><font color="#ff4d72">瘩臂累己</font></a>
</td>
<td></td>
</tr>
</table>
</td>
<td width="3"></td>
</tr>
<!-- 滚瓢 场 -->
<tr height="3">
<td colspan="3"></td>
</tr>
</table>
</td>
</tr>
<!-- 冠胶 场 -->
<!--咯归 矫累-->
<tr>
<td height="8"></td>
</tr>
<!--咯归 场-->
<!--捞傈/促澜 傅农 冠胶 矫累-->
<%
pageurl=url_path+"/news/my_news_register_view_lhl.jsp?mphone="+mphone+"&gphone"+gphone;
String [] szSplit = pagePathTop(pageurl, dbcount, pageNUM, pagecount);
%>
<tr>
<td>
<table width="176" border="0" cellspacing="0" cellpadding="0" bgcolor="<%=pageBgColor %>">
<tr>
<td width="10"></td>
<td width="60" height="16" align="left">
<font color="#676767" size="3">⒏ </font>
<font color="<%=pageFNFontColor %>" size="3">(7)</font>
<%=szSplit[0]%>
<font color="<%=pageFNFontColor %>" size="3"><b>捞傈</b></font>
<%=szSplit[1]%>
</td>
<td></td>
<td width="60" align="right">
<%=szSplit[2]%>
<font color="<%=pageFNFontColor%>" size="3"><b>促澜</b></font>
<%=szSplit[3]%>
<font color="<%=pageFNFontColor%>" size="3">(9)</font>
<font color="#676767" size="3"> ⒑</font>
</td>
<td width="10"></td>
</tr>
</table>
</td>
</tr>
<!--捞傈/促澜 傅农 冠胶 场-->
<!--咯归 矫累-->
<tr>
<td height="4"></td>
</tr>
<!--咯归 场-->
<!-- 滚瓢 矫累 -->
<tr>
<td>
<table width="176" border="0" cellspacing="0" cellpadding="0">
<tr height="16">
<td></td>
<td width="55" bgcolor="<%=bgColor%>" align="center" ><a href="my_news_list_lhl.jsp?gphone=<%=gphone%>&mphone=<%=mphone%>"><font color="#ffffff">春胶格废</font></a></td>
<td width="2"></td>
<td width="55" bgcolor="<%=bgColor%>" 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="176" border="0" cellspacing="0" cellpadding="0">
<tr height="15">
<td width="8" bgcolor="#BBC7C8"></td>
<td bgcolor="#DAE6E8">
<a href="<%=step1%>">权</a>><a href="<%=step2%>"><%=usernickname%>丛狼迄乔</a>><a href="<%=step3%>">春胶</a>>弥辟春胶
</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);
}
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -