최초커밋
This commit is contained in:
119
knowledge/agreement_list.asp
Normal file
119
knowledge/agreement_list.asp
Normal file
@@ -0,0 +1,119 @@
|
||||
<!-- #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><EFBFBD><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="agreement_list" method="post">
|
||||
<%
|
||||
query = " SELECT TA.id, client_nm, client_date, client_per_nm, client_per_tel, P.p_name, TA.input_user, Convert(VARCHAR(10), TA.input_dt, 120) as input_dt, file_list "
|
||||
query = query & " FROM [T_AGREEMENT] TA LEFT OUTER JOIN Person P ON TA.input_user = P.p_no "
|
||||
query = query & " WHERE use_div = '1' "
|
||||
query = query & " ORDER BY id DESC "
|
||||
adors.open query, adoConn, 1
|
||||
tmp_adorsount = adors.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_adorsount%></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 mt-1">
|
||||
<tr>
|
||||
<td align="center" height="26" width="5%" >No.</td>
|
||||
<td align="center" height="26" ><3E><>ü<EFBFBD><C3BC></td>
|
||||
<td align="center" height="26" width="8%" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" height="26" width="15%" ><3E><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" height="26" width="10%" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td align="center" height="26" width="15%" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td align="center" height="26" width="5%" >÷<><C3B7></td>
|
||||
<td align="center" height="26" width="10%" ></td>
|
||||
</tr>
|
||||
<%
|
||||
if adors.RecordCount > 0 then
|
||||
adors.PageSize = 20
|
||||
|
||||
PageCount = adors.PageCount
|
||||
adors.absolutepage = tmp_Currentpage
|
||||
tmp_total_record = adors.RecordCount
|
||||
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * adors.PageSize)
|
||||
|
||||
if adors.PageSize <= tmp_for then
|
||||
if adors.RecordCount <= adors.PageSize then
|
||||
tmp_for = adors.recordcount
|
||||
else
|
||||
tmp_for = adors.PageSize
|
||||
end if
|
||||
else
|
||||
tmp_for = tmp_for
|
||||
end if
|
||||
|
||||
for i = 1 to tmp_for
|
||||
%>
|
||||
<!--- Loop Set Start --->
|
||||
<tr>
|
||||
<td align="center" ><%=adors("id")%></td>
|
||||
<td align="center" ><%=adors("client_nm")%></td>
|
||||
<td align="center" ><%=adors("client_date")%></td>
|
||||
<td align="center" ><%=adors("client_per_nm")%><%if adors("client_per_tel") <> "" Then %> (<%=adors("client_per_tel") %>)<%end if %></td>
|
||||
<td align="center" ><%=adors("p_name")%></td>
|
||||
<td align="center" ><%=adors("input_dt")%></td>
|
||||
<td align="center" ><a href="./a_downloads.asp?filename=<%= adors("file_list")%>" ><i class="fa fa-file"></i></a></td>
|
||||
<td align="center" ><%if cstr(adors("input_user")) = cstr(session("User_Number")) OR tmp_admin_chk = 1 then %><a href="javascript:delete_go('<%= adors("id")%>');" ><i class="fa fa-trash-alt"></i></a><% end if %></td>
|
||||
</tr>
|
||||
<!--- Loop Set End --->
|
||||
<%
|
||||
adors.MoveNext
|
||||
next
|
||||
end if
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="8" align="right"><img src="/images/common/btn_write.jpg" align="absmiddle" onClick="write_go();" style="CURSOR:pointer;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--- Paging Start --->
|
||||
<%=Pagelist("agreement_list.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "")%>
|
||||
<!--- Paging End --->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function write_go(a) {
|
||||
document.agreement_list.action = "agreement_write.asp";
|
||||
document.agreement_list.submit();
|
||||
}
|
||||
|
||||
function delete_go(id) {
|
||||
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
location.href = "./a_delete.asp?a_sn=" + id;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
Reference in New Issue
Block a user