?? jcy_jcyjc_view_cf.jsp
字號(hào):
<%@ page contentType="text/html; charset=GBK" errorPage="" %>
<%@ import="com.vstsoft.std.vststd" %>
<%com.vstsoft.std.vststd std=new com.vstsoft.std.vststd();%>
<%@ errorPage="errorPage.jsp" %>
<jsp:useBean id="jcypurview" class="com.vstsoft.jcypurview" scope = "session" />
<% if (jcypurview.checkLogin() == false)
{
%>
<Script Language=javascript>
alert("用戶(hù)已斷線(xiàn)或未正常登錄,請(qǐng)重新登錄!")
window.open("../index.htm","_top")
</Script>
<% return;
}
if (jcypurview.purviewVerdict("B0500023") == false)
{
%>
<Script Language=javascript>
alert("您沒(méi)有操作此頁(yè)權(quán)限!")
window.open("../index.jsp","_top")
</Script>
<% return;
} %>
<%
String nowuserid = jcypurview.getUserid(); //取當(dāng)前用戶(hù)編號(hào)
String nowusername = jcypurview.getUserName(); //取當(dāng)前用戶(hù)名稱(chēng)
String nowuserszqx = jcypurview.getUserSzqx(); //取當(dāng)前用戶(hù)所在區(qū)縣
String nowuserszdw = jcypurview.getUserSzdw(); //取當(dāng)前用戶(hù)所在單位
%>
<html>
<head>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires",0);
String userid = std.getValue(request,"userid"); //人員代碼
String szt = std.getValue(request,"zt"); // 類(lèi)型標(biāo)識(shí)
String sdwdm = std.getValue(request,"sdwdm");
String szbdm = std.getValue(request,"szbdm");
//out.print(szbdm+"P"+sdwdm+"P"+userid);
String jcyjcxh = "";
String sfjl = ""; //是否獎(jiǎng)勵(lì)
String jljb = ""; //獎(jiǎng)勵(lì)級(jí)別
String sfcf = ""; //是否懲罰
String cfzl = ""; //懲罰種類(lèi)
String jcyy = ""; //獎(jiǎng)懲原因
String jcrq = ""; //獎(jiǎng)懲日期
String lrrq = ""; //錄入時(shí)期
String jl = "";
String sql_select = "select jcyjcxh,cfzl,to_char(jcrq,'yyyy.mm.dd'),jcyy from jcy_jcyjc where userid = '"+userid+"' and sfcf = '01' order by jcrq desc";
sun.jdbc.rowset.CachedRowSet crs = std.getResultBySelect(sql_select);
String sql_count = "select count(*) from jcy_jcyjc where userid = '"+userid+"' and sfcf ='01' "; //sfjl獎(jiǎng)勵(lì)01,不獎(jiǎng)勵(lì)02
sun.jdbc.rowset.CachedRowSet ii = std.getResultBySelect(sql_count);
ii.next();
jl = ii.getString(1);
%>
<script>
var G_id;
function f_radio(num)
{
G_id = num;
}
function f_new()
{
window.open("jcy_jcyjc_new_modify_cf.jsp?zt=new&userid="+'<%=userid%>',"_self");
}
function f_modify()
{
if (<%=jl%> == 0)
{
alert("沒(méi)有記錄");
return false;
}
if (G_id == "" || G_id == null)
{
alert("您沒(méi)有選擇公務(wù)員懲罰記錄!");
return false;
}
else
{
window.open("jcy_jcyjc_new_modify_cf.jsp?zt=modify&ID="+G_id+"&userid="+'<%=userid%>',"_self");
}
}
function f_del()
{
if (<%=jl%> == 0)
{
alert("沒(méi)有記錄");
return false;
}
if (G_id == "" || G_id == null)
{
alert("請(qǐng)選擇需要?jiǎng)h除的公務(wù)員懲罰記錄!");
return false;
}
else
{
form.action = "jcy_jcyjc_submit_cf.jsp?zt=del&ID="+G_id;
form.submit();
}
}
function f_imager(text,ixy)
{
if (ixy == '0')
{
alert(text);
window.open("jcy_jcyjc_view_cf.jsp?userid="+'<%=userid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_self");
}
else
{
alert(text);
}
}
function f_back()
{
window.open("jcy_ry_view.jsp?uid="+'<%=userid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_self");
}
</script>
<title>公務(wù)員管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="../style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tr>
<td width="252">
<table width="100%" height="88" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="88" align="center"><br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" height="84" align="left" background="../images/caozuo01.gif"> </td>
<td background="../images/caozuo02.gif" align="center" width="947"><font size="3" color="#FF6600"><strong>
公務(wù)員懲罰查詢(xún)</strong></font></td>
<td width="15"><img src="../images/caozuo03.gif" width="15" height="84"></td>
</tr>
</table>
<table width="100%" height="247" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEF9FF">
<tr>
<td width="15" height="247" background="../images/caozuo04.gif"><img src="../images/caozuo04.gif" width="15" height="6"></td>
<td align="center">
<table width="95%" height="136" border="0" align="center">
<tr>
<td width="719" height="132"> <form name="form" method="post" action="" target="view_cf">
<br>
<table width="100%" height="64" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight=#666699 bordercolordark=#ffffff>
<tr align="center" bgcolor="#EEF9FF">
<td height="25" colspan="2"> <font color="#FF0000" size="3"><b>懲罰查詢(xún)</b></font></td>
<td width="0" height="16"> </td>
<td width="0"><font color="#174ca3"><a href="jcy_jcyjc_view_jl.jsp?userid=<%=userid%>&zt=<%=szt%>&sdwdm=<%=sdwdm%>&szbdm=<%=szbdm%>"><strong>獎(jiǎng)勵(lì)查詢(xún)</strong></a></font></td>
</tr>
<tr align="center" bgcolor="#174ca3">
<td width="5%" height="40"><font color="#FFFFFF"> </font></td>
<td width="40%" height="40"><font color="#FFFFFF">懲罰名稱(chēng)</font></td>
<td width="30%" height="40"><font color="#FFFFFF">懲罰種類(lèi)</font></td>
<td width="25%" height="40"><font color="#FFFFFF">懲罰時(shí)間</font></td>
</tr>
<%while (crs.next()){
jcyjcxh = crs.getString(1);
cfzl = crs.getString(2);
jcrq = crs.getString(3);
jcyy = crs.getString(4);
if (jcyjcxh == null) jcyjcxh = "";
if (cfzl == null) cfzl = "0";
if (jcrq == null) jcrq = "0";
if (jcyy == null) jcyy = "0";
%>
<tr align="center" bgcolor="#EEF9FF">
<td width="0" height="25">
<input type="radio" name="radiobutton" value="<%=jcyjcxh%>" onClick="f_radio(this.value)">
</td>
<td width="0" height="25"><font color="#105781"><%=jcyy%></font></td>
<td width="0" height="25"><font color="#105781"><%=cfzl%></font></td>
<td width="0" height="25"><font color="#105781"><%=jcrq%></font></td>
</tr>
<%}%>
</table>
<br>
<table width="551" border="0" align="center" bordercolorlight=#666699 bordercolordark=#ffffff>
<tr>
<td width="25%" height="23">
<div align="center">
<input type="button" name="Submit52" value="新 增" class="input" onClick="f_new()" >
</div></td>
<td width="25%">
<div align="center">
<input type="button" name="Submit52" value="修 改" class="input" onClick="f_modify()">
</div></td>
<td width="25%">
<div align="center">
<input type="button" name="Submit55" value="刪 除" class="input" onClick="f_del()">
</div></td>
<td width="25%" align="center">
<div align="center"> </div>
<div align="center"> </div>
<input type="button" name="Submit58" value="返 回" class="input" onClick="f_back()">
</td>
</tr>
</table>
</form></td>
</tr>
</table>
<p> </p></td>
<td width="14" background="../images/caozuo07.gif"><img src="../images/caozuo07.gif" width="14" height="6"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="21" height="16"><img src="../images/caozuo05.gif" width="21" height="16"></td>
<td background="../images/caozuo08.gif"><img src="../images/caozuo08.gif" width="6" height="16"></td>
<td width="19"><img src="../images/caozuo09.gif" width="19" height="16"></td>
</tr>
</table>
<br> </td>
</tr>
</table>
<div align="center"></div></td>
<td width="59">
</td>
<td width="381">
<p><br>
</p>
</td>
<iframe name="view_cf" width="100" height="100" style="display:none" ></iframe>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -