?? jcy_zb_select.jsp
字號:
<%@ page contentType="text/html; charset=GBK" language="java" import="java.sql.*,com.vstsoft.std.*" errorPage="errorPage.jsp" %>
<jsp:useBean id="jcypurview" class="com.vstsoft.jcypurview" scope = "session" />
<html>
<head>
<%vststd std = new vststd();%>
<%
String dwdm = std.getValue(request,"ID"); //單位代碼
%>
<% if (jcypurview.checkLogin() == false)
{
%>
<Script Language=javascript>
alert("用戶已斷線或未正常登錄,請重新登錄!")
window.open("../index.htm","_top")
</Script>
<% return;
}
if (jcypurview.purviewVerdict("B0500027") == false)
{
%>
<Script Language=javascript>
alert("您沒有操作此頁權限!")
window.open("../index.jsp","_top")
</Script>
<% return;
} %>
<%
String nowuserid = jcypurview.getUserid(); //取當前用戶編號
String nowusername = jcypurview.getUserName(); //取當前用戶名稱
String nowuserszqx = jcypurview.getUserSzqx(); //取當前用戶所在區縣
String nowuserszdw = jcypurview.getUserSzdw(); //取當前用戶所在單位
%>
<%
String sqlPd = "select qx from jcy_dw where dwdm = '"+dwdm+"'";
sun.jdbc.rowset.CachedRowSet pd = std.getResultBySelect(sqlPd);
pd.next();
String qx = pd.getString(1);
if (!nowuserszqx.equals(qx)){
%>
<Script Language=javascript>
alert("您不可以管理非本區組別!")
history.go(-1);
</Script>
<%
return;
}%>
<title>歡迎!</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="../style.css" type="text/css">
<script language="JavaScript" src = "new.js">
</script>
<script>
function f_new()
{
window.open("jcy_zb_new_modify.jsp?zt=new&dwdm="+'<%=dwdm%>',"_self");
}
function f_number()
{
/*if (document.form.zbdm.value.length > 20)
{
alert('組別編號長度不能超長20位!');
document.form.zbdm.focus();
return(false);
}*/
if (document.form.zbmc.value.length >50)
{
alert('級別名稱長度不能超過50位!');
document.form.zbmc.focus();
return(false);
}
/*if (isNaN(document.form.zbdm.value) == true)
{
alert('組別編號不能為字符!');
document.form.zbdm.focus();
return(false); //字符判斷
}
for (var i=1;i<document.form.zbdm.value.length;i++)
{
var a=document.form.zbdm.value.substr(i,1);
if (a =='.')
{
alert('組別代碼不能有 " ."');
document.form.zbdm.focus();
return(false);
}
} */
}
function check_number(num)
{
for(i=0;i<num.length;i++)
{
var a=num.substr(i,1);
if (a<'0' || a>'9')
return('1');
}
return('0');
}
function f_back()
{
window.open("jcy_dw_select.jsp","_self");
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"> <br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="17" align="left" background="../images/caozuo01.gif"> </td>
<td background="../images/caozuo02.gif" align="center" width="962"><b><font color="#FF6600" size="3">組別管理</font></b></td>
<td width="15"><img src="../images/caozuo03.gif" width="15" height="84"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#EEF9FF">
<tr>
<td width="15" background="../images/caozuo04.gif"><img src="../images/caozuo04.gif" width="15" height="6"></td>
<td align="center">
<form name="form" method="post" action="jcy_zb_view.jsp?dwdm=<%=dwdm%>" onSubmit="return(f_number())">
<table width="750" cellspacing="1" cellpadding="0" bgcolor="#000099">
<tr>
<td><table width=100% border="0" align=center
cellpadding=0 cellspacing=1 bordercolorlight=#666699 bordercolordark=#ffffff bgcolor="#000099">
<tr bgcolor="#EEF9FF">
<td width="12%" height="25" align="center"><b><font color="#105781">組別名稱</font><font color="#105781" size="-1">
<!--組別編號-->
<!--所屬區縣-->
</font></b></td>
<td><font size="-1"><b><font color="#105781">
<!--<select name="qx">
<%//=std.popListWithSelect("select dm, mc from dm_mx where dmm = '0001' ","001")%> </select> -->
<!--<input name="zbdm" type="text" maxlength="20">-->
</font></b><font color="#FF6600">
<!--組別編號:區縣+年度+順序號可進行模糊查詢。例如:輸入2003 -->
</font><font size="-1"><b><font color="#105781">
<input name="zbmc" type="text" size="80" maxlength="50">
</font></b></font><font color="#FF6600"> </font></font>
<div align="left"><b><font color="#105781" size="2">
</font></b></div></td>
</tr>
</table></td>
</tr>
</table>
<table width="75%" border="0">
<tr>
<td width="29%" height="63" align="center"> <input type="submit" class="input" name="chx" value="查 詢">
</td>
<td width="25%" align="center"> <input type="button" class="input" name="new" value="新 增" onClick="f_new()">
</td>
<td width="25%" align="center"><input type="reset" class="input" name="reset" value="清 屏">
</td>
<td width="21%" align="center"><input type="button" class="input" name="reset2" value="返 回" onClick="f_back()"></td>
</tr>
</table>
</form>
</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"><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>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -