최초커밋
This commit is contained in:
170
approval/view_pass.asp
Normal file
170
approval/view_pass.asp
Normal file
@@ -0,0 +1,170 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
if request("gotopage") <> "" then
|
||||
tmp_currentpage = request("gotopage")
|
||||
else
|
||||
tmp_currentpage = 1
|
||||
end if
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<form name="ess" method="post">
|
||||
<%
|
||||
query = "SELECT A.d_sn, A.d_no, B.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, B.p_sn, A.d_orders, A.d_write_date, A.d_view, A.d_delok "
|
||||
query = query & "FROM [Document_pass] as A "
|
||||
query = query & "LEFT OUTER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as B "
|
||||
query = query & "ON A.d_no = B.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE A.d_delok = 'N' "
|
||||
query = query & " AND A.d_view = 'Y' "
|
||||
query = query & " AND A.d_orders = '" & Session("User_Number") & "' "
|
||||
query = query & "ORDER BY A.d_sn DESC "
|
||||
|
||||
Rs.Open query, adoConn, 1
|
||||
tmp_count = Rs.RecordCount
|
||||
%>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding:5"><3E><><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> : <20><> <b class="tahoma_orange"><%=tmp_count%></b><3E><><EFBFBD><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="10%" align="center" height="24" >No.</td>
|
||||
<td width="60%" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD></td>
|
||||
<td align="center" height="24" >ó<><C3B3><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
if Rs.RecordCount > 0 then
|
||||
|
||||
Rs.PageSize = 20
|
||||
tmp_ok = 1
|
||||
PageCount = Rs.PageCount
|
||||
Rs.absolutepage = tmp_Currentpage
|
||||
tmp_total_record = Rs.RecordCount
|
||||
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize)
|
||||
|
||||
if Rs.PageSize <= tmp_for then
|
||||
if Rs.RecordCount <= Rs.PageSize then
|
||||
tmp_for = Rs.recordcount
|
||||
else
|
||||
tmp_for = Rs.PageSize
|
||||
end if
|
||||
else
|
||||
tmp_for = tmp_for
|
||||
end if
|
||||
|
||||
for i = 1 to tmp_for
|
||||
|
||||
if Cint(tmp_Currentpage)=1 then
|
||||
Num=Cint(tmp_total_record)- i+1
|
||||
else
|
||||
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize) - i +1
|
||||
end if
|
||||
|
||||
if i mod 2 = 1 then
|
||||
tmp_bgcolor = "#ffffff"
|
||||
else
|
||||
tmp_bgcolor = "#dbe9f2"
|
||||
end if
|
||||
|
||||
tmp_flag = mid(Rs("d_no"), 10, 1)
|
||||
|
||||
%>
|
||||
<!--- Loop Set Start --->
|
||||
<tr bgcolor="<%=tmp_bgcolor%>">
|
||||
<td align="center" height="24" ><%=Num%></td>
|
||||
<td align="center" height="24"><a href="javascript:openit('<%=tmp_flag%>','<%=Rs("d_no")%>','1','<%=x%>', '<%=Rs("p_sn")%>')" class="blue"><%if Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>" then response.Write "<22><EFBFBD>(<28><>)Ȱ<><C8B0><EFBFBD><EFBFBD>" else response.Write Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") end if%></a></td>
|
||||
<td align="center" height="24" ><%=Rs("d_write_date")%></td>
|
||||
</tr>
|
||||
<%
|
||||
Rs.MoveNext
|
||||
next
|
||||
end if
|
||||
Rs.Close
|
||||
%>
|
||||
</table>
|
||||
<%=Pagelist("view_pass.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&b_type=" & b_type &"&x=" & x)%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function subit(a){
|
||||
document.ess.action = 'view_pass.asp?x='+a;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
function openit(z,x,c,v, p_sn) {
|
||||
if (z == 'C'){
|
||||
var url = '/ess/doc_infochange_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'D'){
|
||||
var url = '/ess/doc_reinstatement_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'E'){
|
||||
var url = '/ess/doc_timeoff_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'F'){
|
||||
var url = '/ess/doc_vacation_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'H'){
|
||||
var url = '/ess/doc_official_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'i'){
|
||||
var url = '/ess/doc_expense_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'M'){
|
||||
var url = '/ess/doc_commute_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'N'){
|
||||
var url = '/ess/doc_entertainment_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'o'){
|
||||
var url = '/ess/doc_expense_approval_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'P'){
|
||||
var url = '/ess/doc_prepayment_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'Q'){
|
||||
var url = '/ess/doc_prepayment_ex_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'R'){
|
||||
var url = '/ess/doc_cardiary_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'U'){
|
||||
var url = '/ess/doc_directcost_modi_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'V'){
|
||||
if(new_project_2014(p_sn) == "1") {
|
||||
var url = '/ess/project_report.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
}else {
|
||||
var url = '/ess/project_report_2014.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
}
|
||||
} else if (z == 'w'){
|
||||
var url = '/ess/doc_expense_approval_depart_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'X'){
|
||||
var url = '/ess/direct_cost_print.asp?d_no='+x + '&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'Y'){
|
||||
var url = '/ess/<2F><>ǰ<EFBFBD><C7B0><EFBFBD>ż<EFBFBD>_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'Z'){
|
||||
var url = '/ess/doc_education_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
|
||||
} else if (z == 'PMS'){
|
||||
var url = '/project/project_list2_chk.asp?p_sn=' + x;
|
||||
} else if (z == 'r'){
|
||||
var url = '/ess/doc_expense2_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type+' + title_type;
|
||||
} else if (z == 't'){
|
||||
var url = '/ess/doc_expense_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type+' + title_type;
|
||||
}
|
||||
window.open(url,'','left=0,top=0,width=850,height=800,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
Reference in New Issue
Block a user