최초커밋

This commit is contained in:
2025-09-29 17:55:08 +09:00
parent 90af30c0d0
commit e39813395a
3334 changed files with 338522 additions and 0 deletions

210
include/JSON_2.0.4.asp Normal file
View File

@@ -0,0 +1,210 @@
<%
'
' VBS JSON 2.0.3
' Copyright (c) 2009 Tu?ul Topuz
' Under the MIT (MIT-LICENSE.txt) license.
'
Const JSON_OBJECT = 0
Const JSON_ARRAY = 1
Class jsCore
Public Collection
Public Count
Public QuotedVars
Public Kind ' 0 = object, 1 = array
Private Sub Class_Initialize
Set Collection = CreateObject("Scripting.Dictionary")
QuotedVars = True
Count = 0
End Sub
Private Sub Class_Terminate
Set Collection = Nothing
End Sub
' counter
Private Property Get Counter
Counter = Count
Count = Count + 1
End Property
' - data maluplation
' -- pair
Public Property Let Pair(p, v)
If IsNull(p) Then p = Counter
Collection(p) = v
End Property
Public Property Set Pair(p, v)
If IsNull(p) Then p = Counter
If TypeName(v) <> "jsCore" Then
Err.Raise &hD, "class: class", "Incompatible types: '" & TypeName(v) & "'"
End If
Set Collection(p) = v
End Property
Public Default Property Get Pair(p)
If IsNull(p) Then p = Count - 1
If IsObject(Collection(p)) Then
Set Pair = Collection(p)
Else
Pair = Collection(p)
End If
End Property
' -- pair
Public Sub Clean
Collection.RemoveAll
End Sub
Public Sub Remove(vProp)
Collection.Remove vProp
End Sub
' data maluplation
' encoding
Function jsEncode(str)
Dim charmap(127), haystack()
charmap(8) = "\b"
charmap(9) = "\t"
charmap(10) = "\n"
charmap(12) = "\f"
charmap(13) = "\r"
charmap(34) = "\"""
charmap(47) = "\/"
charmap(92) = "\\"
Dim strlen : strlen = Len(str) - 1
ReDim haystack(strlen)
Dim i, charcode
For i = 0 To strlen
haystack(i) = Mid(str, i + 1, 1)
charcode = AscW(haystack(i)) And 65535
If charcode < 127 Then
If Not IsEmpty(charmap(charcode)) Then
haystack(i) = charmap(charcode)
ElseIf charcode < 32 Then
haystack(i) = "\u" & Right("000" & Hex(charcode), 4)
End If
Else
haystack(i) = "\u" & Right("000" & Hex(charcode), 4)
End If
Next
jsEncode = Join(haystack, "")
End Function
' converting
Public Function toJSON(vPair)
Select Case VarType(vPair)
Case 0 ' Empty
toJSON = "null"
Case 1 ' Null
toJSON = "null"
Case 7 ' Date
' toJSON = "new Date(" & (vPair - CDate(25569)) * 86400000 & ")" ' let in only utc time
toJSON = """" & CStr(vPair) & """"
Case 8 ' String
toJSON = """" & CStr(vPair) & """"
Case 9 ' Object
Dim bFI,i
bFI = True
If vPair.Kind Then toJSON = toJSON & "[" Else toJSON = toJSON & "{"
For Each i In vPair.Collection
If bFI Then bFI = False Else toJSON = toJSON & ","
If vPair.Kind Then
toJSON = toJSON & toJSON(vPair(i))
Else
If QuotedVars Then
toJSON = toJSON & """" & i & """:" & toJSON(vPair(i))
Else
toJSON = toJSON & i & ":" & toJSON(vPair(i))
End If
End If
Next
If vPair.Kind Then toJSON = toJSON & "]" Else toJSON = toJSON & "}"
Case 11
If vPair Then toJSON = "true" Else toJSON = "false"
Case 12, 8192, 8204
toJSON = RenderArray(vPair, 1, "")
Case Else
toJSON = Replace(vPair, ",", ".")
End select
End Function
Function RenderArray(arr, depth, parent)
Dim first : first = LBound(arr, depth)
Dim last : last = UBound(arr, depth)
Dim index, rendered
Dim limiter : limiter = ","
RenderArray = "["
For index = first To last
If index = last Then
limiter = ""
End If
On Error Resume Next
rendered = RenderArray(arr, depth + 1, parent & index & "," )
If Err = 9 Then
On Error GoTo 0
RenderArray = RenderArray & toJSON(Eval("arr(" & parent & index & ")")) & limiter
Else
RenderArray = RenderArray & rendered & "" & limiter
End If
Next
RenderArray = RenderArray & "]"
End Function
Public Property Get jsString
jsString = toJSON(Me)
End Property
Sub Flush
If TypeName(Response) <> "Empty" Then
Response.Write(jsString)
ElseIf WScript <> Empty Then
WScript.Echo(jsString)
End If
End Sub
Public Function Clone
Set Clone = ColClone(Me)
End Function
Private Function ColClone(core)
Dim jsc, i
Set jsc = new jsCore
jsc.Kind = core.Kind
For Each i In core.Collection
If IsObject(core(i)) Then
Set jsc(i) = ColClone(core(i))
Else
jsc(i) = core(i)
End If
Next
Set ColClone = jsc
End Function
End Class
Function jsObject
Set jsObject = new jsCore
jsObject.Kind = JSON_OBJECT
End Function
Function jsArray
Set jsArray = new jsCore
jsArray.Kind = JSON_ARRAY
End Function
Function toJSON(val)
toJSON = (new jsCore).toJSON(val)
End Function
%>

View File

@@ -0,0 +1,34 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
query = ""
query = query & " SELECT count(*) as cnt " & vbCrLf
query = query & " FROM T_PROJECT_BASE PB LEFT JOIN T_PROJECT_METHOD TPM ON PB.p_sn = TPM.p_sn " & vbCrLf
query = query & " INNER JOIN V_person P ON PB.p_input_user = P.P_NO " & vbCrLf
query = query & " INNER JOIN V_Department D ON PB.p_depart_dep = d.before_t_cd1 " & vbCrLf
query = query & " left outer join V_CLIENT_COMP as E on PB.p_cli_company_cd = E.p_cli_company_cd " & vbCrLf
query = query & " left outer join V_CLIENT_PERSON as CP on PB.p_cli_company_cd = CP.p_cli_company_cd AND PB.p_cli_per_cd = CP.p_cli_per_cd " & vbCrLf
query = query & " left outer join T_CLIENT_TYPE_CD as CT on PB.p_client_type_cd = CT.p_client_type_cd " & vbCrLf
query = query & " WHERE PB.p_sn IS NOT NULL AND TPM.p_progress_status IS NULL AND p_state NOT IN ('X', 'D') " & vbCrLf
query = query & " AND ISNULL(PB.p_cost_rate, 0) >= 55 and PB.p_cost_rate_chk is null " & vbCrLf
' <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
rsp.Open query, adoConn, 1
if cint(rsp("cnt")) > 0 Then
Response.write "1"
Else
Response.write "0"
End if
rsp.close
'-----------------------------------------------------------------------------------------------------------------
%>

36
include/alarm_seal.asp Normal file
View File

@@ -0,0 +1,36 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
query = " SELECT count(*) as cnt FROM T_COMPANY_SEAL WHERE support_check = '0' AND use_div = '1' "
' <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
rsp.Open query, adoConn, 1
if cint(rsp("cnt")) > 0 Then
Response.write "o"
Else
Response.write "x"
End if
rsp.close
query = " SELECT count(*) as cnt FROM T_SEAL_RES WHERE support_check = '0' AND use_div = '1' "
' <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>
rsp.Open query, adoConn, 1
if cint(rsp("cnt")) > 0 Then
Response.write "o"
Else
Response.write "x"
End if
rsp.close
'-----------------------------------------------------------------------------------------------------------------
%>

287
include/calendar.html Normal file
View File

@@ -0,0 +1,287 @@
<html>
<head>
<title>KRI WEB CALENDAR</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<link rel="StyleSheet" href="lucis.css" type="text/css">
<script language="JavaScript">
<!--
if (document.all) {
docObj = "document.all."
styleObj = ".style"
} else {
docObj = "document."
styleObj = ""
}
var icount = 0;
function parseUrl() {
var myValueIn = unescape(location.search.replace(/\+/g,' '));
myValueIn = myValueIn.substring(1).split('&');
var year = 0;
var month = 0;
var actval = "";
for(i=0;i<myValueIn.length;i++)
myValueIn[i] = myValueIn[i].split('=');
for(i=0;i<myValueIn.length;i++){
if(myValueIn[i][0] == "year") year = myValueIn[i][1]*1;
if(myValueIn[i][0] == "month") month = myValueIn[i][1]*1;
if(myValueIn[i][0] == "actval") actval = myValueIn[i][1];
if(myValueIn[i][0] == "icount") icount = myValueIn[i][1];
}
setCal(year,month,actval);
}
function leapYear(year) {
if (year % 4 == 0) return true;
return false;
}
function getDays(month, year) {
var ar = new Array(12);
ar[0] = 31; ar[1] = (leapYear(year)) ? 29 : 28; ar[2] = 31; ar[3] = 30; ar[4] = 31; ar[5] = 30;
ar[6] = 31; ar[7] = 31; ar[8] = 30; ar[9] = 31; ar[10] = 30; ar[11] = 31;
return ar[month];
}
function getMonthName(month) {
var ar = new Array(12);
ar[0] = "1<><31>"; ar[1] = "2<><32>"; ar[2] = "3<><33>"; ar[3] = "4<><34>"; ar[4] = "5<><35>"; ar[5] = "6<><36>";
ar[6] = "7<><37>"; ar[7] = "8<><38>"; ar[8] = "9<><39>"; ar[9] = "10<31><30>"; ar[10] = "11<31><31>"; ar[11] = "12<31><32>";
return ar[month];
}
function setCal(year,month,actval) {
var now = new Date();
month = month - 1;
var curyear = now.getFullYear();
var curmonth = now.getMonth();
if(year==0) year = now.getFullYear();
if(month<0||month>11) month = now.getMonth();
var monthName = getMonthName(month);
var date = now.getDate();
now = null;
var firstDayInstance = new Date(year, month, 1);
var firstDay = firstDayInstance.getDay();
firstDayInstance = null;
var days = getDays(month, year);
drawCal(firstDay + 1, days, date, monthName, year, month, curyear, curmonth, actval);
}
function drawCal(firstDay, lastDate, date, monthName, year, month, curyear, curmonth, actval) {
var headerHeight = " "; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
var border = 0; // <20><><EFBFBD>̺<EFBFBD> <20>׵θ<D7B5>
var cellspacing = "1"; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
var headerColor = "black"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
var headerSize = "2"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ũ<><C5A9>
var colWidth = "27"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> ũ<><C5A9>
var dayCellHeight = "22";// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
var dayColor = "white"; // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
var cellHeight = "20"; // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
var todayColor = "red"; // <20><><EFBFBD><EFBFBD> <20><>¥ <20><><EFBFBD><EFBFBD>
var timeColor = "blue"; // <20>ð<EFBFBD> ǥ<><C7A5> <20><><EFBFBD><EFBFBD>
var text = "";
text += '<TABLE BORDER=' + border + ' CELLSPACING=' + cellspacing + ' align=\'center\'>';
text += '<TR COLSPAN=1 HEIGHT=' + headerHeight + ' bgcolor="#FFFFFF"><td>';
if (actval.substring(0, 9) != "txt_dates") {
text += '<FONT COLOR="' + headerColor + '" SIZE=' + headerSize + '>';
text += '<a href="calendar.html?year=' + ((month == 0) ? year - 1 : year) + '&month=' + ((month == 0) ? 12 : month)
text += '&actval=' + actval + '&icount=' + icount + '"><img src=/images/business/rec_blue1.gif border=0 align=absmiddle ></a></td>';
/*<2A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ <20>ڽ<EFBFBD> <20><><EFBFBD><EFBFBD>*/
text += '<td>' +
'<table border="0" width=\' \' height=\' \' >' +
'<form name=\'date_list\'>' +
'<input type=\'hidden\' name=\'actval\' value=' + actval + '><tr>' +
'<td align=center>' +
'<select name=\'year\' onchange=\'change_year();\'>';
var yyyy = 2005;
if (actval == "txt_birthday" || actval == "marriage_date" ||
actval == "txt_family_birthday_1" || actval == "txt_family_real_birthday_1" ||
actval == "txt_family_birthday_2" || actval == "txt_family_real_birthday_2" ||
actval == "txt_family_birthday_3" || actval == "txt_family_real_birthday_3" ||
actval == "txt_family_birthday_4" || actval == "txt_family_real_birthday_4" ||
actval == "txt_family_birthday_5" || actval == "txt_family_real_birthday_5"
) {
yyyy = 1950;
}
//for(i=1950; i<(curyear+2); i++) {
for (i = yyyy; i < (curyear + 2); i++) {
if (year != i) {
text += '<option value=' + i + ' >' + i;
} else {
text += '<option value=' + i + ' selected>' + i;
}
}
text += '</select><b><3E><>' +
'</td>' +
'<td>' +
'<select name="month" onchange="change_month(this.options.selectedIndex);">';
for (i = 0; i < 12; i++) {
if (month != i) {
text += '<option value="' + (i + 1) + '">' + (i + 1);
} else {
text += '<option value="' + (i + 1) + '" selected>' + (i + 1);
}
}
text += '</select><b><3E><>' +
'</td>' +
'</tr></table></td>';
text += '<td><a href="calendar.html?year=' + ((month == 11) ? year + 1 : year) + '&month=' + ((month == 11) ? 1 : month + 2)
text += '&actval=' + actval + '&icount=' + icount + '"><img src=/images/business/rec_blue2.gif border=0 align=absmiddle ></a> ';
text += '<img src=/images/business/rec_purple.gif border=0 align=absmiddle OnClick="window.close()" style="cursor:pointer" >';
text += '</FONT>';
} else {
text += '<td>' + year + '<27><> ' + (month + 1) + '<27><></td>';
}
text += '</td>';
text += '</TR></form>';
text += '</TABLE>';
text += '<TABLE BORDER=' + border + ' CELLSPACING=' + cellspacing + ' bgcolor="#977BD0" ALIGN="center">';
var openCol = '<TD WIDTH=' + colWidth + ' HEIGHT=' + dayCellHeight + '>';
openCol += '<FONT COLOR="' + dayColor + '">';
var closeCol = '</FONT></TD>';
var weekDay = new Array(7);
weekDay[0] = "<22><>"; weekDay[1] = "<22><>"; weekDay[2] = "ȭ"; weekDay[3] = "<22><>";
weekDay[4] = "<22><>"; weekDay[5] = "<22><>"; weekDay[6] = "<22><>";
text += '<TR ALIGN="center">';
for (var dayNum = 0; dayNum < 7; ++dayNum) {
text += openCol + "<b>" +weekDay[dayNum] + closeCol;
}
text += '</TR>';
var digit = 1;
var curCell = 1;
for (var row = 1; row <= Math.ceil((lastDate + firstDay - 1) / 7); ++row) {
text += '<TR bgcolor="white" ALIGN="center">';
for (var col = 1; col <= 7; ++col) {
if (digit > lastDate) break;
if (curCell < firstDay) {
text += '<TD bgcolor="white" ></TD>';
curCell++;
} else {
if (digit == date && year == curyear && month == curmonth ) {
text += '<TD bgcolor=yellow style=\'cursor:pointer\' HEIGHT=' + cellHeight;
text += ' onMouseOver="this.style.backgroundColor=\'#E1E9FF\'" onMouseOut="this.style.backgroundColor=\'\'"';
text += ' onClick="sendVal(\'' + year + '\',\'' + (month + 1) + '\',\''+ digit + '\',\'' + actval + '\');">';
text += '<FONT COLOR="' + todayColor + '">';
text += digit;
text += '</FONT><BR>';
text += '</TD>';
} else {
text += '<TD bgcolor="white" style=\'cursor:pointer\' HEIGHT=' + cellHeight;
text += ' onMouseOver="this.style.backgroundColor=\'#E1E9FF\'" onMouseOut="this.style.backgroundColor=\'\'"';
text += ' onClick="sendVal(\'' + year + '\',\''+ (month + 1) + '\',\'' + digit + '\',\'' + actval + '\');">' + digit + '</TD>';
}
digit++;
}
}
text += '</TR>';
}
text += '</TABLE>';
document.write(text);
}
function sendVal(year, mon, day, actval) {
var dateStr = "";
if (mon <10) mon = 0+mon;
if (day <10) day = 0+day;
dateStr = year+ '-' + mon + '-' + day;
if((actval!=""||actval!= null)&&opener) {
//alert(actval+" : "+dateStr+" // "+opener);
//alert("eval : "+"opener.document.forms[0]." + actval);
//alert("[0] : "+(opener.document.forms[0][actval] != null));
//alert("[1] : "+(opener.document.forms[1][actval] != null));
if(opener.document.forms[0][actval] != null){
if(eval("opener.document.forms[0]." + actval)) {
eval("opener.document.forms[0]." + actval).value = dateStr;
eval("opener.document.forms[0]." + actval).focus();
}
}else if(opener.document.forms[1][actval] != null){
if(eval("opener.document.forms[1]." + actval)) {
eval("opener.document.forms[1]." + actval).value = dateStr;
eval("opener.document.forms[1]." + actval).focus();
}
}else{
//alert("<22><><EFBFBD><EFBFBD> : "+actval+" : "+dateStr+" // "+opener.document.forms.length);
//for(var i = 0; i<opener.document.forms.length; i++){
//alert("<22><><EFBFBD><EFBFBD> : "+i+" : "+opener.document.forms[i]);
//console.log("<22><><EFBFBD><EFBFBD> : "+i+" : "+opener.document.forms[i].txt_date[1]+"//actval : "+actval);
//}
if (eval("opener.document.forms[0]." + actval)) {
if (eval("opener.document.forms[0].tmp_" + actval) != null) {
eval("opener.document.forms[0].tmp_" + actval).value = dateStr.substring(8, 10);
}
eval("opener.document.forms[0]." + actval).value = dateStr;
//eval("opener.document.forms[0]." + actval).focus();
}
}
}else{
alert(dateStr);
}
self.close();
}
function change_year() {
location.href = "calendar.html?year=" + date_list.year.value + "&month=" + date_list.month.value + "&actval=" + date_list.actval.value + "&icount="+icount;
}
function change_month() {
//alert(window.event.clientX);
//alert(window.event.clientY);
location.href = "calendar.html?year=" + date_list.year.value + "&month=" + date_list.month.value + "&actval=" + date_list.actval.value + "&icount="+icount;
}
function SetInit()
{ var ileft = new Number;
var itop = new Number;
ileft = window.event.clientX;
itop = window.event.clientY;
//alert(ileft + " : " + itop);
window.resizeTo(245,245);
if((ileft) < 0 ) ileft = 0;
if((itop) < 0 ) itop = 0;
if(icount == 0){
icount++;
window.moveBy(ileft-50, itop-50);
}
}
//-->
</script>
</head>
<body bgcolor="#EEEEFF" leftmargin="0" topmargin="8" marginwidth="0" marginheight="0" OnLoad="SetInit()">
<script language="JavaScript">
<!--
parseUrl();
icount++;
//alert(icount);
//-->
</script>
</body>
</html>

24
include/download_log.asp Normal file
View File

@@ -0,0 +1,24 @@
<!-- #include virtual = "lib/config.asp" -->
<%
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
Dim f_id
f_id = request("f_id")
query = " "
query = query & " INSERT INTO T_DOWN_LOG (f_id, d_user_no, d_user_ip) VALUES "
query = query & " ('" & f_id & "', '" & session("User_Number") & "', '" & Session("USERIP") & "') "
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
Response.write "1"
%>

17
include/footer.asp Normal file
View File

@@ -0,0 +1,17 @@
<% If Request("cutmenu") <> "1" Then %>
<!-- Main Footer -->
<footer class="main-footer">
<div class="copyright">
Copyright <20><> 1988-<%= year(now())%> Korea Research International Inc. All Right Reserved.
</div>
</footer>
<% End If %>
</div>
<!-- ./wrapper -->
<script>
$(function(){
});
</script>
</body>
</html>

288
include/header.asp Normal file
View File

@@ -0,0 +1,288 @@
<!-- #include virtual = "lib/config.asp" -->
<%
call Time_Check(Session("Login_Check"))
'<!-- ???????? ??? ?? -->
if request("request_chk") = "" then
%>
<!-- #include virtual="login/request_check.asp" -->
<%
end if
Response.Charset = "EUC-KR"
Response.codePage = "949"
Response.ContentType="text/html;charset=euc-kr"
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="euc-kr">
<meta name="viewport" content="width=1800">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<title><%=GNB_TITLE%></title>
<% If Request("dialog") <> "1" Then %>
<% If Request("command") <> "excel" Then %>
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="/css/all.min.css">
<!-- Template style -->
<link rel="stylesheet" href="/css/AdminLTE.css">
<!-- kiwi style -->
<link rel="stylesheet" href="/css/koin.css">
<!-- jQuery Ui -->
<link rel="stylesheet" href="/css/jquery-ui.min.css">
<!-- jQuery Confirm -->
<link rel="stylesheet" href="/css/jquery-confirm.min.css">
<!-- Bootstrap Select -->
<link rel="stylesheet" href="/css/bootstrap-select.min.css"/>
<!-- chartjs -->
<link rel="stylesheet" href="/css/Chart.min.css">
<!-- datatables -->
<link rel="stylesheet" href="/css/datatables.min.css"/>
<!-- tree js -->
<link rel="stylesheet" href="/css/treejs.min.css">
<!-- Work Process -->
<link rel="stylesheet" href="/css/style.css">
<!-- common style -->
<link rel="stylesheet" href="/css/main-common.css?ver=<%=date_time() %>">
<% End If %>
<!-- jQuery -->
<script src="/js/jquery.min.js"></script>
<!-- jQuery Pjax -->
<script src="/js/jquery.pjax.min.js"></script>
<!-- Bootstrap 4 -->
<script src="/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="/js/adminlte.min.js"></script>
<!-- jQuery Ui -->
<script src="/js/jquery-ui.min.js"></script>
<!-- jQuery Cookie -->
<script src="/js/jquery.cookie.js"></script>
<!-- jQuery Dialog Extend -->
<script src="/js/jquery.dialogextend.js"></script>
<!-- jQuery Confirm -->
<script src="/js/jquery-confirm.min.js"></script>
<!-- jQuery Form -->
<script src="/js/jquery.form.min.js"></script>
<!-- jQuery AjaxCall -->
<script src="/js/jquery-ajax-call.js"></script>
<!-- jQuery table2excel -->
<script src="/js/jquery.table2excel.js?v=1"></script>
<!-- Bootstrap Select -->
<script src="/js/bootstrap-select.min.js"></script>
<!-- Moment -->
<script src="/js/moment.js"></script>
<!-- chartjs -->
<script src="/js/Chart.js"></script>
<!-- datatables -->
<script src="/js/datatables.min.js"></script>
<!-- filterDropDown -->
<script src="/js/filterDropDown.js"></script>
<!-- Pagination Js -->
<script src="/js/pagination.js"></script>
<!-- FileSaver -->
<script src="/js/FileSaver.min.js"></script>
<!-- tree js -->
<script src="/js/tree.min.js"></script>
<!-- sort js -->
<script src="/js/sort-table.js"></script>
<!-- pdf js -->
<script src="/js/pdf.js"></script>
<script src="/js/pdf.worker.js"></script>
<!-- common -->
<script src="/js/common.js?ver=<%=date_time() %>"></script>
<% End If %>
<script>
<% If Request("cutmenu") <> "1" Then %>
<% if tmp_support_chk = "1" and False Then %>
var alarmTimer2 = setInterval('alarm_seal_Ajax()', 1000 * 60 * 5);
function alarm_seal_Ajax(){
ajaxCallJson("/include/alarm_seal.asp", null, null, "post", "alarm_seal_result()");
}
function alarm_seal_result() {
if(ajaxResponse != "xx") {
if(ajaxResponse.substring(0,1) == "o"){
if(ajaxResponse.substring(1,2) == "o"){
//oo
if(confirm("?????? ???? ????? ??????? ?????? ??????\n??? ???? ?????? ??????.\n?????<3F><>??????")){
location.href="/other/seal_week.asp";
}
}else{
//ox
if(confirm("??????? ?????? ??????\n??? ???? ?????? ??????.\n?????<3F><>??????")){
location.href="/other/company_seal.asp";
}
}
}else{
if(ajaxResponse.substring(1,2) == "o"){
//xo
if(confirm("?????? ???? ????\n??? ???? ?????? ??????.\n?????<3F><>??????")){
location.href="/other/seal_week.asp";
}
}
}
}
}
<% End If %>
<% if session("User_Number") = "20190301" Then %>
var alarmTimer3 = setInterval('alarm_prj_rate_Ajax()', 1000 * 60 * 5);
function alarm_prj_rate_Ajax(){
ajaxCallJson("/include/alarm_prj_rate.asp", null, null, "post", "alarm_prj_rate_result()");
}
function alarm_prj_rate_result(){
if(ajaxResponse == "1"){
if(confirm("???? ??????? ??? ????\n???????? ????????? ??????.\n??? ?????<3F><>??????")){
location.href="/project/project_contactlist_rate_chk.asp";
}
}
}
<% End If %>
$(function(){
$(".sendWebSite").on("change", function(){
var selUrl = $(this).children("option:selected").val();
$(this).val("");
if(selUrl == "wait"){
alert("???? ?????????.");
return false;
}
if(selUrl != ""){
window.open(selUrl);
}
});
});
<% End If %>
/*
window.onload = function () {
if (window.Notification) {
Notification.requestPermission();
}
}
var logChkTime = 30 * 60 * 1000;
if("<%=session("User_number")%>" == "20190108"){
logChkTime = 5 * 1000;
}
setInterval(function () {
loginCheck();
}, logChkTime);
var okLogging = function() {
var okLoggingNoti = new Notification('KRi Auto Logging System', {
icon: 'http://10.10.10.7:8888/images/time.png',
body: '?<3F><>? ??? ???',
});
setTimeout(function(){
okLoggingNoti.close();
}, 5000);
}
function loginCheck() {
if (Notification.permission !== 'granted') {
console.log("Notifacation is disabled !!");
}else{
var notification = new Notification('KRi Auto Logging System', {
icon: 'http://10.10.10.7:8888/images/time.png',
body: 'Click ?? ?<3F><>?? ??????',
});
notification.onclick = function () {
ajaxCall("/time.asp", null, null, "post", "okLogging()");
};
setTimeout(function(){
notification.close();
}, 30 * 1000);
}
}
*/
var workDialog;
$(function(){
workDialog = $("#workDialog").dialog({
autoOpen: false,
modal: true,
resizable: false,
height: 740,
width: 1400,
title: '???????? ????'
});
workDialog.dialog("option", "position", {
my: 'center',
at: 'center',
of: window
});
});
function workDialogOpen() {
workDialog.dialog("open");
}
</script>
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
<!-- Navbar -->
<% If Request("cutmenu") <> "1" And Request("command") <> "excel" Then %>
<nav class="main-header navbar navbar-expand">
<!-- Mobile logo -->
<a href="/index" class="brand-logo-mobile d-lg-none">
<i class="icon-logo"><span class="sr-only">Koin</span></i>
</a>
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a href="#" data-widget="pushmenu" role="button"><i class="icon-menu"></i></a>
</li>
<li class="nav-item">
<select class="form-control sendWebSite">
<option value="">Work Site</option>
<option value="http://10.10.10.7:8088/krc_module/contact">Contact Site</option>
<option value="http://10.10.10.7:8088/krc_module">K-FCS/K-CATI Site</option>
<option value="http://10.10.10.7:8888/nk/neakeun_login.asp">?????? ????????</option>
<!--<option value="https://gang.krcpanel.com/admin.asp">?<3F><>?? ????(GMS)</option>-->
<!--<option value="wait">?<3F><>?? ????</option>-->
<!--<option value="http://10.10.10.7:8088/krc_module/system/">?<3F>X????</option>-->
<option value="https://ums.dreamline.co.kr/">??????</option>
</select>
</li>
<li class="nav-item ml-1">
<select class="form-control sendWebSite">
<option value="">Family Site</option>
<option value="https://kr.co.kr">KRi</option>
<option value="https://kon.kric.com">K-ON</option>
<option value="https://kart.kric.com">KART</option>
<option value="https://kiwisurvey.kr">KiwiSurvey Panel</option>
<option value="https://info.kiwisurvey.kr">KiwiSurvey Micro</option>
</select>
</li>
<!--
<li class="nav-item ml-1">
<button type="button" class="btn btn-outline-secondary" onclick="workDialogOpen();">?????????+DCO ????????</button>
</li>
-->
</ul>
<!-- Right navbar links -->
<ul class="navbar-nav ml-auto">
<li class="nav-item d-none d-lg-block">
<p class="welcome">
Welcome, <strong><%= Session("loginuser") %></strong>
</p>
</li>
<li class="nav-item">
<a href="/logout.asp" class="btn-logout"><i class="icon-logout"><span class="sr-only">Logout</span></i></a>
</li>
</ul>
</nav>
<% End If %>
<!-- /.navbar -->

70
include/holiday_count.asp Normal file
View File

@@ -0,0 +1,70 @@
<%
''<27>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
'2<>⿡ 1<><31><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
dim Holyday_year(2)
dim Krc_in_date 'krc<72>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD>
dim dateGubun
dim day_off
function holiday_count(user_number, sel_date)
'''/==<3D><><EFBFBD><EFBFBD> <20><>Ȳ
query = "select "
query = query & " dbo.VAC_REM('" & user_number & "', '" & sel_date & "') "
query = query & " + ISNULL( "
query = query & " (SELECT sum(vac_change_cnt) FROM T_VACATION_CUSTOM "
query = query & " WHERE p_no = '" & user_number & "' "
query = query & " AND vac_season = dbo.VAC_YEAR('" & user_number & "', '" & sel_date & "') "
query = query & " ), 0) AS vac_rem, "
query = query & " dbo.VAC_USE('" & user_number & "', '" & sel_date & "') AS vac_use "
Rs.open Query, adoconn, 1
Holyday_year(1) = Rs("vac_rem")
Holyday_year(2) = Rs("vac_use")
Rs.close
'Holyday_year(1) : <20>ݳ<EFBFBD> <20><> <20><><EFBFBD>밡<EFBFBD><EBB0A1> <20><><EFBFBD><EFBFBD>
'Holyday_year(2) : <20>ݳ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
end function
function day_off_chk(tmpyear, tmpmonth, tmpday)
Query = " SELECT dbo.holiday_chk('" & tmpyear & "-" & RIGHT("0" & tmpmonth, 2) & "-" & RIGHT("0" & tmpday, 2) & "') as holi_chk "
Rs.Open query, adoconn,adOpenStatic,adLockReadOnly
If Rs("holi_chk") = "1" Then
day_off = "true"
Else
day_off = "false"
End if
Rs.Close
end function
function day_off_chk_only(tmpyear, tmpmonth, tmpday)
Query = " SELECT dbo.only_holiday_chk('" & tmpyear & "-" & RIGHT("0" & tmpmonth, 2) & "-" & RIGHT("0" & tmpday, 2) & "') as holi_chk "
Rs.Open query, adoconn,adOpenStatic,adLockReadOnly
If Rs("holi_chk") = "1" Then
day_off = "true"
Else
day_off = "false"
End if
Rs.Close
end function
function getSeason(user_number, sel_date)
vac_season = ""
Query = " SELECT dbo.VAC_YEAR('" & user_number & "', '" & sel_date & "') as vac_season "
Rs.Open query, adoconn,adOpenStatic,adLockReadOnly
vac_season = Rs("vac_season")
Rs.Close
getSeason = vac_season
End Function
function getWeeknum(tmpyear, tmpmonth, tmpday)
vac_season = ""
Query = " SELECT TOP 1 weeknum FROM project2.dbo.login_weeknum with(nolock) WHERE '" & tmpyear & "-" & RIGHT("0" & tmpmonth, 2) & "-" & RIGHT("0" & tmpday, 2) & "' BETWEEN sdate and edate "
Rs.Open query, adoconn,adOpenStatic,adLockReadOnly
vac_season = Rs("weeknum")
Rs.Close
getWeeknum = vac_season
End Function
%>

151
include/left.asp Normal file
View File

@@ -0,0 +1,151 @@
<% If Request("cutmenu") <> "1" Then %>
<script>
function currentMenu(pathname, param){
var currA = $.grep($("a.nav-link[data-pjax]"), function(obj, idx){
return $(obj).data("pjax") == pathname &&
(
$(obj).data("param") == param ||
param.substr(1, 1000).split("&").indexOf($(obj).data("param").substr(1, 100)) > -1 ||
$(obj).data("param") == ""
);
});
$("a.nav-link").removeClass("active");
$(currA).addClass("active");
$(currA).parents(".has-treeview").addClass("menu-open");
}
$(function(){
$(document).on("click", "a.nav-link", function(e){
if(($(this).data("pjax") || "") != ""/* && !$(this).hasClass("active")*/){
var url = $(this).data("pjax");
var param = $(this).data("param");
$(".ui-widget").remove();
$.pjax({url: url + param, fragment: '.content-wrapper', container: '.content-wrapper'});
currentMenu(url, param);
}
return false;
});
currentMenu($(location).attr("pathname"), $(location).attr("search"));
/*
$('.nav-item[title]').tooltip({
placement: "left",
delay: { "show": 300, "hide": 200 }
});
*/
$.each($("li.has-treeview > ul.nav-treeview"), function(i, ele){
if($(ele).children("li").length == 0){
$(ele).parent().hide();
}
});
});
</script>
<style>
.tooltip.bs-tooltip-right{
left:72px !important;
}
</style>
<!-- Main Sidebar Container -->
<aside class="main-sidebar">
<!-- Brand Logo -->
<a href="/index.asp" class="brand-link">
<i class="icon-logo"><span class="sr-only">Koin</span></i>
</a>
<!-- Sidebar -->
<div class="sidebar">
<!-- Sidebar Menu -->
<nav>
<!--
has-triview class <20><> menu-open <20>ϸ<EFBFBD> <20>޴<EFBFBD><DEB4><EFBFBD>ġ<EFBFBD><C4A1>
nav-link class <20><> active <20>ϸ<EFBFBD> Ȱ<><C8B0>ȭ
-->
<ul class="nav nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
<%
query = ""
query = query & " SELECT T.sub_url AS top_url, T.menu_label AS top_label, T.menu_display_on AS top_display, T.attribute05 AS top_icon, "
query = query & " L.menu_label AS left_label, L.menu_url AS left_url, L.menu_param AS left_param,"
query = query & " L.menu_info AS left_info, L.menu_display_on AS left_display, L.attribute05 AS left_icon, L.attribute01 AS menuType "
query = query & " FROM T_INCLUDE_MENU T LEFT JOIN T_INCLUDE_MENU L "
query = query & " ON T.i_position = 'TOP' AND L.i_position = 'LEFT' AND T.sub_url = L.sub_url AND L.menu_use_div = '1' AND L.sub_div = '3' "
query = query & " WHERE T.i_position = 'TOP' AND T.menu_use_div = '1' "
query = query & " ORDER BY T.menu_index, L.menu_index "
'response.write query
Rs.open query, adoconn
Dim topMenuLabel : topMenuLabel = ""
Dim topDisplay : topDisplay = 0
Dim leftDisplay : leftDisplay = 0
Dim tmpLStr : tmpLStr = ""
Dim menuType : menuType = 0
Do While Not Rs.Eof
If topMenuLabel = "" Or topMenuLabel <> Rs("top_label") Then
topDisplay = 0
If Trim(Rs("top_display")) <> "" Then
tmpLStr = " If " & Trim(Rs("top_display")) & " Then topDisplay = 1 End If "
execute(tmpLStr)
Else
topDisplay = 1 '<27>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<><31> <20><><EFBFBD><EFBFBD>.
End If
If topDisplay = 1 Then
If topMenuLabel <> "" Then
%>
</ul>
</li>
<%
End If
%>
<li class="nav-item has-treeview" title="<%= Rs("top_label") %>">
<a href="#" class="nav-link">
<i class="nav-icon fas <%= Rs("top_icon") %>"></i>
<p><%= Rs("top_label") %><i class="right icon-plus"></i></p>
</a>
<ul class="nav nav-treeview">
</li>
<%
End If
End If
leftDisplay = 0
If Trim(Rs("left_display")) <> "" Then
tmpLStr = " If " & Trim(Rs("left_display")) & " Then leftDisplay = 1 End If "
'response.write tmpLStr
execute(tmpLStr)
Else
leftDisplay = 1 '<27>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<><31> <20><><EFBFBD><EFBFBD>.
End If
menuType = 0
If Trim(Rs("menuType")) <> "" Then
tmpLStr = " If " & Trim(Rs("menuType")) & " Then menuType = 1 End If "
'response.write tmpLStr
execute(tmpLStr)
Else
menuType = 0 '<27>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<><31> <20><><EFBFBD><EFBFBD>.
End If
topMenuLabel = Rs("top_label")
If leftDisplay = 1 And topDisplay = 1 Then
%>
<li class="nav-item has-treeview" <%if topMenuLabel = "Work Process" and menuType = 1 then %> style="border-bottom:1px solid white" <%End if%>>
<a href="#" data-pjax="<%= "/" & Rs("top_url") & "/" & Rs("left_url") %>" data-param="<%= Rs("left_param") %>" class="nav-link ml-3">
<!--<i class="nav-icon fas <%= Rs("left_icon") %>"></i>-->
<p><%= Rs("left_label") %></p>
</a>
</li>
<%
End If
Rs.MoveNext
Loop
Rs.Close
%>
</ul>
</li>
</ul>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>
<% End If %>

42
include/mail_config.asp Normal file
View File

@@ -0,0 +1,42 @@
<%
set objMessage = createobject("cdo.message")
set objConfig = createobject("cdo.configuration")
Set Flds = objConfig.Fields
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'-> 서버 접근방법을 설정합니다
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.office365.com"
'-> 서버 주소를 설정합니다
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate")=1
'-> SMTP 접속 인증방법을 설정합니다
Flds.item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
'-> 접근할 포트번호를 설정합니다
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusername")="admin@korearic.onmicrosoft.com"
'-> SMTP 서버에 인증할 ID를 입력합니다
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword")="it#51304"
'-> SMTP 서버에 인증할 암호를 입력합니다
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 30
'-> 접속시도할 제한시간을 설정합니다
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendtls") = True
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = 1
Flds.update
Set objMessage.Configuration = objConfig
objMessage.To = mail_target
If mail_from = "" Then
mail_from = "info@kric.com"
End If
objMessage.From = mail_from
objMessage.Subject = mail_subject
objMessage.HTMLBody = mail_body
objMessage.fields.update
if Trim(mail_subject) <> "" and Trim(mail_target) <> "" and Trim(mail_body) <> "" then
objMessage.Send
end if
set objMessage = Nothing
set objConfig = Nothing
%>