📄 my_news_modify_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"%>
<%
int idxNsNews = Integer.parseInt(request.getParameter("idxNsNews"));
String gphone = request.getParameter("gphone");
String mphone = request.getParameter("mphone");
Connection con = null;
PreparedStatement pstmt = null;
Statement stmt = null;
ResultSet rs = null;
String url = "my_news_modify_err_lhl.jsp";
String usernickname = "";
String bgColor = "";
int kind = 0;
String title = "";
String text = "";
try {
%>
<%@ include file="../getConnection.jsp"%>
<%@ include file="bgColor.jsp"%>
<%
bgColor = mainBgColor;
String queryString = "SELECT * FROM gt_nsnews WITH (READUNCOMMITTED) WHERE idx=?";
pstmt = con.prepareStatement(queryString);
pstmt.setInt(1, idxNsNews);
rs = pstmt.executeQuery();
while(rs.next())
{
usernickname = rs.getString("nickname");
kind = rs.getInt("kind");
title = rs.getString("title");
text = rs.getString("text");
}
%>
<html>
<head>
<title>My News Modify</title>
<link rel="stylesheet" href="../mobile.css" type="text/css"></link>
</head>
<body>
<form action="<%=url%>" name="frm">
<input type="hidden" name="idxNsNews" value="<%= idxNsNews %>" />
<input type="hidden" name="gphone" value="<%= gphone %>" />
<input type="hidden" name="mphone" value="<%= mphone %>" />
<input type="hidden" name="dispatch" value="update" />
<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 align="center">
<table width="176" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<select align="center" valign="middle" name="kind">
<option value="1" <% if(kind==1)out.println("selected");%>> 荤扒/荤绊 </option>
<option value="2" <% if(kind==2)out.println("selected");%>> 瘤开 </option>
<option value="3" <% if(kind==3)out.println("selected");%>> 楷抗/胶器明 </option>
<option value="4" <% if(kind==4)out.println("selected");%>> 扁鸥 </option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<!-- 鸥捞撇 牧刨明 场 -->
<!--咯归 矫累-->
<tr>
<td height="4"></td>
</tr>
<!--咯归 场-->
<!-- 冠胶 矫累 -->
<tr>
<td>
<table width="176" border="0" cellspacing="0" cellpadding="0" bgcolor="#f5f3e6">
<tr height="4">
<td colspan="3"></td>
</tr>
<tr>
<td width="8"></td>
<td>
<font color="#acacac" size="3">茄臂 弥措 30磊鳖瘤 涝仿(60byte)</font>
</td>
<td width="8"></td>
</tr>
<tr>
<td width="8"></td>
<td><input type="text" name="title" height="20" width="160" maxlength="60" defaultimemode="1" imemode="0" value="<%=title%>"></td>
<td width="8"></td>
</tr>
<tr height="4">
<td colspan="3"></td>
</tr>
<tr>
<td width="8"></td>
<td>
<font color="#acacac" size="3">郴侩涝仿(茄臂 400臂磊 800byte)</font>
</td>
<td width="8"></td>
</tr>
<tr>
<td width="8"></td>
<td>
<textarea name="text" width="160" height="82" cols="30" rows="20" defaultimemode="1" imemode="0" maxlength="800"><%=text%></textarea>
</td>
<td width="8"></td>
</tr>
<tr height="4">
<td colspan="3"></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="35" bgcolor="<%=bgColor%>" align="center" ><a href="javascript:frm.submit();"><font color="#ffffff">荐沥</font></a></td>
<td width="2"></td>
<%
int takeId = 0;
String takeIdString = "SELECT takeId FROM gt_nsnews WITH (READUNCOMMITTED) WHERE idx=?";
pstmt = con.prepareStatement(takeIdString);
pstmt.setInt(1, idxNsNews);
rs = pstmt.executeQuery();
while(rs.next())
{
takeId = rs.getInt("takeId");
}
if(takeId == 0)
{
%>
<td width="35" bgcolor="<%=bgColor%>" align="center" ><a href="my_news_delete_lhl.jsp?dispatch=delete&idxNsNews=<%=idxNsNews%>&gphone=<%=gphone%>&mphone=<%=mphone%>"><font color="#ffffff">昏力</font></a></td>
<%
}
else
{
%>
<td width="35" bgcolor="<%=bgColor%>" align="center" ><font color="#ffffff">昏力</font></td>
<%
}
%>
<td width="2"></td>
<td width="35" bgcolor="<%=bgColor%>" align="center" ><a href="javascript:history.back();"><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>
</form>
<%@ include file="../newbottom.jsp"%>
</body>
</html>
<%
}
catch(Exception e) {
e.printStackTrace();
}
finally
{
if(rs != null) try{ rs.close(); }catch(Exception se){se.printStackTrace();}
if(pstmt != null) try{ pstmt.close(); }catch(Exception se){se.printStackTrace();}
if(stmt != null) try{ stmt.close(); }catch(Exception se){se.printStackTrace();}
if(con != null) try{ con.close(); }catch(Exception se){se.printStackTrace();}
}
%>
<%!
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 + -