📄 myquizmodify0.jsp
字号:
<%@ page import='java.io.*,java.text.*,java.util.Date,java.util.Vector, java.sql.*, com.entaz.lib.db.*, com.entaz.relay.net.*' contentType='text/html;charset=euc-kr'%>
<%@ include file="../imgpath.jsp"%>
<%@ include file="../common_func.jsp"%>
<%@ include file="appConstants.jsp"%>
<%@ include file="formatUtil.jsp"%>
<%@ include file="../makeKOR.jsp"%>
<style type="text/css">
A:hover {
COLOR: #000000; TEXT-DECORATION: underline
}
A:link {
COLOR: #000000; TEXT-DECORATION: underline
}
A:visited {
COLOR: #000000; TEXT-DECORATION: underline
}
</style>
<%!
public static String isNull(String str)
{
if (str == null)
return "";
else
return str;
}
%>
<%
String mphone = request.getParameter("mphone");
String gphone = request.getParameter("gphone");
if(mphone == null){
mphone= "09900100081";
}
if(gphone == null){
gphone = mphone;
}
mphone = getStrPhone(getLong(mphone));
gphone = getStrPhone(getLong(gphone));
String idx = request.getParameter("idx");
String name = java.net.URLDecoder.decode(makeKOR(request.getParameter("name")));
/*------------------------------------------------------------------------------------------------------
+ DB 包访 函荐
-------------------------------------------------------------------------------------------------------*/
Connection con = null;
PreparedStatement pstmt=null;
Statement stmt = null;
ResultSet rs = null;
ResultSet pageset = null;
/*------------------------------------------------------------------------------------------------------
+ 傈开 函荐
-------------------------------------------------------------------------------------------------------*/
String query1=null , query2 = null ,query3 = null,sql = null;
String text ="";
String title = "";
int kind = 0;
int upFlag = 0 ;
%>
<%
try
{
/*------------------------------------------------------------------------------------------------
* DB 目池记
-------------------------------------------------------------------------------------------------*/
%>
<%@ include file="../getConnection.jsp"%>
<%@ include file="bgColor.jsp"%>
<%
con.setAutoCommit(false);
stmt=con.createStatement();
/*------------------------------------------------------------------------------------------------
* 匙 柠令 惑技
-------------------------------------------------------------------------------------------------*/
query3 = " SELECT kind,title,text,takeIdx " +
" FROM GT_NsQuiz WITH (READUNCOMMITTED) "+
" WHERE idx = " +idx ;
pstmt = con.prepareStatement(query3);
rs = pstmt.executeQuery();
if(rs.next()){
kind = rs.getInt(1);
title = rs.getString(2);
text = rs.getString(3);
upFlag = rs.getInt(4);
}
rs.close();
pstmt.close();
%>
<html>
<head>
<title></title>
<link href="http://entaz.mugeta.com/client/mugeta_v2_test/web/user/mobile.css" rel="stylesheet" type="text/css">
</head>
<body>
<form name="form1" method="post" action="<%=url_path%>/news/myQuizModifing.jsp">
<input type="hidden" name="mphone" value="<%=mphone%>">
<input type="hidden" name="gphone" value="<%=gphone%>">
<input type="hidden" name="idx" value="<%=idx%>">
<input type="hidden" name="name" value="<%=name%>">
<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="<%=mainBgColor%>"></td>
<td bgcolor="<%=mainBgColor%>"><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 <%if(kind==1){out.println("selected");}%> value = 1> 郴 秒氢 </option>
<option <%if(kind==2){out.println("selected");}%> value = 2> 郴厚剐 </option>
<option <%if(kind==3){out.println("selected");}%> value =3> 郴己氢 </option>
<option <%if(kind==4){out.println("selected");}%> value = 4> 扁 鸥 </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>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="32">力格 : </td>
<td width="128"><input type="text" width="128" defaultimemode="1" imemode="0" maxlength="60" name="title" value="<%=title%>"></td>
<td></td>
</tr>
</table>
</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="29" 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="<%=mainBgColor%>" align="center" ><a href="javascript:form1.submit();"><font color="#ffffff">荐沥</font></a></td>
<td width="2"></td>
<%if(upFlag==0){ %>
<td width="35" bgcolor="<%=mainBgColor%>" align="center" ><a href="<%=url_path%>/news/myQuizDeleteCheck.jsp?mphone=<%=mphone%>&gphone=<%=gphone%>&idx=<%=idx%>">
<font color="#ffffff">昏力</font></a></td>
<td width="2"></td>
<%} %>
<td width="35" bgcolor="<%=mainBgColor%>" 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%>"><%=name%>狼迄乔</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)
{
System.out.println(e);
}
finally
{
if(rs != null) try{rs.close();}catch(Exception se){}
if(pstmt != null) try{pstmt.close();}catch(Exception es){}
if(stmt != null) try{stmt.close();}catch(Exception es){}
if(con != null) try{con.close();}catch(Exception es){}
}
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -