최초커밋
This commit is contained in:
228
project/project_list2_chk.asp
Normal file
228
project/project_list2_chk.asp
Normal file
@@ -0,0 +1,228 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
p_sn = request("p_sn")
|
||||
teamname = request("teamname")
|
||||
'Response.Write today & "<BR>"
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM project "
|
||||
query = query & "WHERE p_sn='" & p_sn & "' "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
p_view_grade = rsc("p_view_grade")
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM depart "
|
||||
query = query & "WHERE d_code = '" & Session("Depart_Code") & "' "
|
||||
|
||||
|
||||
rsp.Open query, adoConn, 1
|
||||
if rsp.RecordCount > 0 then
|
||||
tmp_login_code = rsp("d_mcode") '<27>ش<EFBFBD><D8B4>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
else
|
||||
tmp_login_code = "99"
|
||||
end if
|
||||
rsp.Close
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM person "
|
||||
query = query & "WHERE p_no = '" & Session("User_Number") & "' "
|
||||
|
||||
rsp.Open query, adoConn, 1
|
||||
if rsp.RecordCount > 0 then
|
||||
tmp_job_part = rsp("p_job_part") '<27>ӿ<EFBFBD>(+<2B><>ȫ<EFBFBD><C8AB>)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD>
|
||||
else
|
||||
tmp_job_part = "99"
|
||||
end if
|
||||
rsp.Close
|
||||
|
||||
'----------------------------------------------------------------------------
|
||||
tmp_view_allow = "0" '(0 : <20><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD>, 1 : <20><><EFBFBD>డ<EFBFBD><E0B0A1>)
|
||||
if p_view_grade = "1" then '<27><>ü <20><> <20><><EFBFBD><EFBFBD>
|
||||
tmp_view_allow = "1"
|
||||
elseif p_view_grade = "2" then '<27><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
if int(tmp_login_code) <= 2 or tmp_admin_chk = "1" then
|
||||
tmp_view_allow = "1"
|
||||
else
|
||||
tmp_view_allow = "0"
|
||||
end if
|
||||
|
||||
elseif p_view_grade = "3" then '<27>ش<EFBFBD><D8B4>μ<EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
|
||||
if rsc("p_depart") = tmp_login_code or tmp_admin_chk = "1" then
|
||||
tmp_view_allow = "1"
|
||||
else
|
||||
tmp_view_allow = "0"
|
||||
end if
|
||||
|
||||
elseif p_view_grade = "4" then '<27>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
if Session("admin_Code") = "1" or tmp_admin_chk = "1" then
|
||||
tmp_view_allow = "1"
|
||||
else
|
||||
tmp_view_allow = "0"
|
||||
end if
|
||||
|
||||
elseif p_view_grade = "5" then '<27>ӿ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
if tmp_job_part = "00" or tmp_admin_chk = "1" then
|
||||
tmp_view_allow = "1"
|
||||
else
|
||||
tmp_view_allow = "0"
|
||||
end if
|
||||
|
||||
end if
|
||||
'----------------------------------------------------------------------------
|
||||
|
||||
'----------------------------------------------------------------------------
|
||||
'<27><><EFBFBD><EFBFBD>Ȯ<EFBFBD><C8AE>(<28>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD>°<EFBFBD> <20>ƴ϶<C6B4><CFB6><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
if rsc("p_reg_mana") = "0" then
|
||||
tmp_view_allow = "1"
|
||||
end if
|
||||
'----------------------------------------------------------------------------
|
||||
|
||||
'----------------------------------------------------------------------------
|
||||
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD><D0BC>δ<EFBFBD> <20>׳<EFBFBD> view <20><><EFBFBD><EFBFBD>, <20>Ǵ<EFBFBD> p_view_grade<64><65> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʴ´ٸ<C2B4> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ϼ<EFBFBD><CFBC><EFBFBD> <20>ƴϹǷ<CFB9> <20>׳<EFBFBD> <20><> <20><><EFBFBD><EFBFBD>)
|
||||
if tmp_login_code = "11" or p_view_grade = "" or isnull(p_view_grade) then
|
||||
'tmp_view_allow = "1"
|
||||
end if
|
||||
'----------------------------------------------------------------------------
|
||||
|
||||
'----------------------------------------------------------------------------
|
||||
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>׳<EFBFBD> view <20><><EFBFBD><EFBFBD>)
|
||||
if tmp_login_code = "13" then
|
||||
tmp_view_allow = "1"
|
||||
end if
|
||||
'----------------------------------------------------------------------------
|
||||
|
||||
'----------------------------------------------------------------------------
|
||||
'tmp_view_allow = "0"<22><> <20><> <20><><EFBFBD>డ<EFBFBD><E0B0A1> <20>㰡<EFBFBD><E3B0A1> <20>þҴ<C3BE><D2B4><EFBFBD> üũ
|
||||
if tmp_view_allow = "0" then
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM view_allow "
|
||||
query = query & "WHERE p_sn = '" & p_sn & "' "
|
||||
query = query & " AND p_no = '" & Session("User_Number") & "' "
|
||||
query = query & " AND flag <> 'N' "
|
||||
query = query & "ORDER BY limit_date DESC "
|
||||
|
||||
rsp.Open query, adoConn, 1
|
||||
if rsp.RecordCount > 0 then
|
||||
|
||||
if not isnull(rsp("limit_date")) and date() <= rsp("limit_date") then
|
||||
tmp_view_allow = "1"
|
||||
end if
|
||||
|
||||
tmp_flag = rsp("flag")
|
||||
|
||||
else
|
||||
|
||||
tmp_flag = ""
|
||||
|
||||
end if
|
||||
rsp.Close
|
||||
|
||||
end if
|
||||
'----------------------------------------------------------------------------
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
|
||||
<script src="/lib/function.js" type="text/javascript1.3"></script>
|
||||
<title>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ ǥ<><C7A5>
|
||||
</title>
|
||||
<script language=javascript>
|
||||
|
||||
|
||||
function goit(z,x,c)
|
||||
{
|
||||
if (c == 1)
|
||||
{
|
||||
document.pms.action = 'project_list2_dep.asp?p_sn=' + z + '&teamname=' + x;
|
||||
document.pms.submit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
self.close();
|
||||
}
|
||||
|
||||
function reqit(a)
|
||||
{
|
||||
document.pms.action = "project_list2_chk_req.asp?p_sn=" + a;
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="goit('<%=p_sn%>','<%=tmp_teamname%>','<%=tmp_view_allow%>')">
|
||||
<form name="pms" method="post">
|
||||
|
||||
<%
|
||||
if tmp_flag = "R" then
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>û<EFBFBD><C3BB> <20>Դϴ<D4B4>"
|
||||
else
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>û<EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"
|
||||
end if
|
||||
|
||||
if tmp_view_allow = "0" then
|
||||
%>
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="350" align="center">
|
||||
<tr>
|
||||
<td bgcolor="#B8B0A9" height="2">
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#E6FFBB" align="center" height="35">
|
||||
<td>
|
||||
<p style="">
|
||||
<09><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>. <%=tmp_txt%>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="1">
|
||||
<td colspan="4" bgcolor="#85DF66">
|
||||
</tr>
|
||||
<tr bgcolor="" align="center" height="30">
|
||||
<td>
|
||||
<%
|
||||
if tmp_flag <> "R" then
|
||||
%>
|
||||
<input type="button" value="<22><> û" onClick="reqit('<%=p_sn%>')">
|
||||
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
<input type="button" value="<22><> <20><>" onClick="clsit()">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#B8B0A9" height="2">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<%
|
||||
else
|
||||
|
||||
alert2 "DB<44><42><EFBFBD><EFBFBD> <20>Դϴ<D4B4>. <20><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>"
|
||||
|
||||
end if 'if rsc.RecordCount > 0 then
|
||||
rsc.Close
|
||||
%>
|
||||
Reference in New Issue
Block a user