119 lines
4.5 KiB
Plaintext
119 lines
4.5 KiB
Plaintext
<!-- #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>업무협약서</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">목록결과 : 총 <b class="tahoma_orange"><%=tmp_adorsount%></b>개의 항목이 있습니다.</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" >업체명</td>
|
|
<td align="center" height="26" width="8%" >협약일자</td>
|
|
<td align="center" height="26" width="15%" >업체담당자</td>
|
|
<td align="center" height="26" width="10%" >작성자</td>
|
|
<td align="center" height="26" width="15%" >작성일</td>
|
|
<td align="center" height="26" width="5%" >첨부</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("삭제하시겠습니까?")) {
|
|
location.href = "./a_delete.asp?a_sn=" + id;
|
|
}
|
|
}
|
|
</script>
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<!-- #include virtual = "include/footer.asp" --> |