최초커밋
This commit is contained in:
221
knowledge/b_view.asp
Normal file
221
knowledge/b_view.asp
Normal file
@@ -0,0 +1,221 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
b_type = request("b_type")
|
||||
b_sn = request("b_sn")
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> Ƚ<><C8BD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
query = "UPDATE [intranet_board] "
|
||||
query = query & "SET "
|
||||
query = query & " b_readcnt=b_readcnt+1 "
|
||||
query = query & "WHERE b_sn='" & b_sn & "' "
|
||||
'Response.Write query
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM [intranet_board] "
|
||||
query = query & "WHERE b_type='" & b_type & "' "
|
||||
query = query & " AND b_sn='" & b_sn & "' "
|
||||
query = query & " AND b_delok='N' "
|
||||
'Response.Write query & "<BR>"
|
||||
Adors.Open query, adoConn, 1
|
||||
|
||||
Dim tmp_icon_array()
|
||||
if Adors("b_filename") <> "" then
|
||||
fileArray = Split(Adors("b_filename"),",")
|
||||
|
||||
arraycnt = cint(Ubound(fileArray))
|
||||
if arraycnt = 0 then
|
||||
arraycnt = 1
|
||||
end if
|
||||
reDim tmp_icon_array(arraycnt)
|
||||
|
||||
for i=0 To arraycnt-1
|
||||
|
||||
tmp_pro = right(fileArray(i), 3)
|
||||
|
||||
if lcase(tmp_pro)="zip" or lcase(tmp_pro)="hwp" or lcase(tmp_pro)="ppt" or lcase(tmp_pro)="xls" or lcase(tmp_pro)="pdf" or lcase(tmp_pro)="doc" or lcase(tmp_pro)="bmp" or lcase(tmp_pro)="jpg" then
|
||||
tmp_file_icon = "<img alt=" & fileArray(i) & " width='16' height='16' border=0 src='/images/common/icon_" & tmp_pro & ".gif' align=absmiddle>"
|
||||
tmp_icon_array(i) = tmp_file_icon
|
||||
else
|
||||
tmp_file_icon = "<img alt=" & fileArray(i) & " width='16' height='16' border=0 src='/images/common/icon_etc.gif' align=absmiddle>"
|
||||
tmp_icon_array(i) = tmp_file_icon
|
||||
end if
|
||||
|
||||
next
|
||||
end if
|
||||
tmp_menuname = ""
|
||||
Select case b_type
|
||||
case "not"
|
||||
tmp_menuname = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
case "con"
|
||||
tmp_menuname = "<22><><EFBFBD>ȿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
case "rule"
|
||||
tmp_menuname = "<22>系<EFBFBD><E7B3BB><EFBFBD><EFBFBD>"
|
||||
case "sug"
|
||||
tmp_menuname = "<22><><EFBFBD><EFBFBD> <20>Ŵ<EFBFBD><C5B4><EFBFBD>"
|
||||
case "klg"
|
||||
tmp_menuname = "<22><><EFBFBD><EFBFBD>â<EFBFBD><C3A2>"
|
||||
case "fre"
|
||||
tmp_menuname = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
End Select
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><%=tmp_menuname%></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="b_board" method="post">
|
||||
<input type="hidden" name="b_type" value="<%=b_type%>">
|
||||
<input type="hidden" name="b_sn" value="<%=b_sn%>">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td width="10%" align="center" height="26" class='bg-dark'><3E><><EFBFBD><EFBFBD></td>
|
||||
<td height="26" style="padding:0 0 0 10"><font class="brown"><%=Adors("b_subject")%></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" height="26" class='bg-dark'><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td height="26" style="padding:0 0 0 10"><%=Adors("b_name")%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" height="26" class='bg-dark'>÷<><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td height="26" style="padding:0 0 0 10">
|
||||
<%
|
||||
for i=0 To arraycnt-1
|
||||
if fileArray(i) <>"" then
|
||||
%>
|
||||
<%=tmp_icon_array(i)%> <a href="b_downloads.asp?b_type=<%=b_type%>&filename=<%=Server.UrlEncode(fileArray(i))%>" class="blue"><%=fileArray(i)%></a><br />
|
||||
<%
|
||||
end if
|
||||
next
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" height="26" class='bg-dark'><3E><><EFBFBD><EFBFBD></td>
|
||||
<td height="26" style="padding:5">
|
||||
<textarea name="b_content" rows="20" class='form-control' readonly><%=ViewWord(Adors("b_content"))%></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right" style="padding:10 0 10 0;">
|
||||
<%
|
||||
if int(Adors("b_namecode")) = int(session("User_Number")) or int(session("Depart_Code")) = 18 then
|
||||
%>
|
||||
<img src="/images/common/btn_modify.jpg" align="absmiddle" onClick="goit('2','<%=Adors("b_sn")%>')" style="CURSOR:pointer;">
|
||||
<img src="/images/common/btn_delete.jpg" align="absmiddle" onClick="goit('3','<%=Adors("b_sn")%>')" style="CURSOR:pointer;">
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
<img src="/images/common/btn_list.jpg" align="absmiddle" onClick="goit('1')" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Reply List Start -->
|
||||
<%
|
||||
query = "SELECT * "
|
||||
query = query & "FROM intranet_board_reply "
|
||||
query = query & "WHERE r_delok = 'N' "
|
||||
query = query & " AND r_bsn = '" & b_sn & "' "
|
||||
query = query & "ORDER BY r_date, r_sn "
|
||||
|
||||
Rs.Open query, adoConn, 1
|
||||
if Rs.RecordCount > 0 then
|
||||
for i = 1 to Rs.RecordCount
|
||||
%>
|
||||
<tr>
|
||||
<td align="center" class='bg-cell py-2' ><%=Rs("r_name")%></td>
|
||||
<td class="py-2">
|
||||
<%=ViewWord(Rs("r_content"))%>
|
||||
<span style='font-size:11px;'> - (<%=Rs("r_date")%>)</span>
|
||||
<img src="/images/common/btn_reply_del.jpg" onClick="delit('<%=Rs("r_sn")%>')" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
Rs.MoveNext
|
||||
next
|
||||
end if
|
||||
Rs.Close
|
||||
%>
|
||||
<!-- Reply List End -->
|
||||
<!--- Reply Write Form Start --->
|
||||
<tr>
|
||||
<td colspan="2" class='p-0 pt-3'>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors border-top mb-0">
|
||||
<tr>
|
||||
<td width="10%" align="center" class='align-middle' ><3E><><EFBFBD>۾<EFBFBD><DBBE><EFBFBD></td>
|
||||
<td style="padding:5" rowspan="2">
|
||||
<textarea name="r_content" rows="3" class="form-control"></textarea>
|
||||
</td>
|
||||
<td rowspan="2" width="75px">
|
||||
<img src="/images/common/btn_reply.jpg" align="absmiddle" onClick="repit();" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"class='align-middle' ><%=Session("loginuser")%></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!--- Reply Write Form End --->
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function(){
|
||||
currentMenu("/knowledge/b_list.asp", "?b_type=<%=b_type%>");
|
||||
});
|
||||
|
||||
function goit(a,b){
|
||||
if (a == 1){
|
||||
document.b_board.action = "b_list.asp?b_type=<%=b_type%>";
|
||||
document.b_board.submit();
|
||||
}else if (a == 2){
|
||||
document.b_board.action = "b_modi.asp?b_sn=" + b;
|
||||
document.b_board.submit();
|
||||
}else if (a == 3){
|
||||
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
document.b_board.action = "b_delok.asp?b_sn=" + b;
|
||||
document.b_board.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function repit(){
|
||||
if (document.b_board.r_content.value.trim() == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
document.b_board.r_content.value = "";
|
||||
document.b_board.r_content.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
document.b_board.action = "b_reply_work.asp?x=1";
|
||||
document.b_board.submit();
|
||||
}
|
||||
|
||||
function delit(a){
|
||||
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
document.b_board.action = "b_reply_work.asp?x=2&r_sn=" + a;
|
||||
document.b_board.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
Reference in New Issue
Block a user