최초 커밋

This commit is contained in:
2025-10-01 09:29:34 +09:00
commit a8b84ff39a
1677 changed files with 954149 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
<!--#include Virtual="/Lib/config.asp" -->
<%
Dim SQL, objdb, iCnt
set Objdb = Server.CreateObject("ADODB.Recordset")
Dim r_phone : r_phone = request("r_Phone")
Dim r_name : r_name = request("r_name")
Dim chk : chk = request("chk")
Dim gubun : gubun = request("gubun")
Select case gubun
case "check"
Dim userChk, checkType
DBConnect()
SQL = ""
SQL = SQL & " SELECT Count(*) AS Cnt FROM R_Info WHERE r_name = '"&unescape(r_name)&"' AND dbo.base64_decode(r_phone) = '"&unescape(r_phone)&"' AND Flag = 1 "
Objdb.Open SQL,DBConn,3,1,1
userChk = Objdb("Cnt")
Objdb.Close
If userChk = "1" Then
SQL = " SELECT ISNULL(r_check, '') as r_check FROM R_Info WHERE dbo.base64_decode(r_phone) = '"&unescape(r_phone)&"' "
Objdb.Open SQL,DBConn,3,1,1
If Objdb.RecordCount > 0 Then
checkType = Objdb("r_check")
End If
Objdb.Close
If checkType <> "" Then
response.write "already"
ElseIf chk <> "" And checkType = "" Then
SQL = " Update R_Info set "
SQL = SQL&" r_check = '" & chk & "', "
SQL = SQL&" UDate = GETDATE() "
SQL = SQL&" where dbo.base64_decode(r_phone) = '"&unescape(r_phone)&"' "
DBConn.execute SQL
response.write "complete"
Else
response.write "nocheck"
End If
Else
response.write "nouser"
End If
DBClose()
End Select
%>

View File

@@ -0,0 +1,33 @@
<!--#include Virtual="/Lib/config.asp" -->
<%
Dim SQL, objdb, iCnt
set Objdb = Server.CreateObject("ADODB.Recordset")
Dim r_phone : r_phone = request("r_Phone")
Dim r_name : r_name = request("r_name")
Dim chk : chk = request("chk")
Dim gubun : gubun = request("gubun")
Select case gubun
case "check"
Dim userChk
DBConnect()
SQL = ""
SQL = SQL & " SELECT Count(*) AS Cnt FROM R_Info WHERE r_name = '"&unescape(r_name)&"' AND dbo.base64_decode(r_phone) = '"&unescape(r_phone)&"' AND Flag = 1 "
Objdb.Open SQL,DBConn,3,1,1
userChk = Objdb("Cnt")
Objdb.Close
If userChk = "1" Then
SQL = "UPDATE R_Info SET chk = 1 WHERE r_name = '" & unescape(r_name) & "' AND dbo.base64_decode(r_phone) = '" & unescape(r_phone) & "'"
DBConn.Execute(SQL)
response.write "complete"
Else
response.write "nouser"
End If
DBClose()
End Select
%>

View File

@@ -0,0 +1,185 @@
<!--#include Virtual="/Lib/config.asp" -->
<%
Dim SQL, objdb, iCnt
set Objdb = Server.CreateObject("ADODB.Recordset")
Dim gubun : gubun = request("gubun")
Dim r_name : r_name = request("r_name")
Dim r_phone : r_phone = request("r_phone")
Dim r_pass : r_pass = request("r_pass")
Dim ex_phone : ex_phone = request("ex_phone")
Dim r_gender : r_gender = request("r_gender")
Dim r_birth : r_birth = request("r_birth")
Dim r_sd : r_sd = request("r_sd")
Dim r_sgg : r_sgg = request("r_sgg")
Dim r_emd : r_emd = request("r_emd")
Dim r_job : r_job = request("r_job")
Dim r_univ : r_univ = request("r_univ")
Dim r_year : r_year = request("r_year")
Dim r_position : r_position = request("r_position")
Dim r_area : r_area = request("r_area")
Dim r_district : r_district = request("r_district")
Dim r_car : r_car = request("r_car")
Dim r_ex : r_ex = request("r_ex")
Dim r_covid : r_covid = request("r_covid")
Dim r_agree1 : r_agree1 = request("r_agree1")
Dim r_agree2 : r_agree2 = request("r_agree2")
Dim r_edu : r_edu = request("r_edu")
Dim r_bank : r_bank = request("r_bank")
Dim r_account : r_account = request("r_account")
Dim r_jumin : r_jumin = request("r_jumin")
Dim chk : chk = request("chk")
Dim flag : flag = False
Select case gubun
case "update"
SQL = ""
SQL = SQL&" update exitpoll.dbo.R_info set "&VbCrlf
if r_phone <> "" Then
'SQL = SQL&" r_phone = dbo.base64_encode('"&r_phone&"'),"&VbCrlf
End If
if r_pass <> "" Then
SQL = SQL&" r_pass = dbo.base64_encode('"&r_pass&"'),"&VbCrlf
End If
'SQL = SQL&" r_name = '"&r_name&"',"&VbCrlf
SQL = SQL&" r_gender = '"&r_gender&"',"&VbCrlf
SQL = SQL&" r_birth = '"&r_birth&"',"&VbCrlf
SQL = SQL&" r_sd = '"&r_sd&"',"&VbCrlf
SQL = SQL&" r_sgg = '"&r_sgg&"',"&VbCrlf
SQL = SQL&" r_emd = '"&r_emd&"',"&VbCrlf
SQL = SQL&" r_agree1 = '1'," & VbCrlf
SQL = SQL&" r_agree2 = '1',"&VbCrlf
if r_job <> "" Then
SQL = SQL&" r_job = '"&r_job&"',"&VbCrlf
End If
if r_univ <> "" Then
SQL = SQL&" r_univ = '"&r_univ&"',"&VbCrlf
End If
if r_year <> "" Then
SQL = SQL&" r_year = '"&r_year&"',"&VbCrlf
End If
SQL = SQL&" r_district = '"&r_district&"',"&VbCrlf
if r_car <> "" Then
SQL = SQL&" r_car = '"&r_car&"',"&VbCrlf
End If
if r_ex <> "" Then
SQL = SQL&" r_ex = '"&r_ex&"',"&VbCrlf
End If
SQL = SQL&" r_bank = '"&r_bank&"',"&VbCrlf
SQL = SQL&" r_account = dbo.base64_encode('"&r_account&"'),"&VbCrlf
SQL = SQL&" r_jumin = dbo.base64_encode('"&r_jumin&"'),"&VbCrlf
SQL = SQL&" Udate = Getdate()"&VbCrlf
If r_edu = "" Then
SQL = SQL&", r_edu = '' "&VbCrlf
End If
SQL = SQL&" where r_phone = dbo.base64_encode('"&ex_phone&"') "&VbCrlf
flag = ExecuteSQL(SQL)
if r_edu <> "" Then
SQL = ""
SQL = SQL & " SELECT RE.eduCd, EduArea, EduDate, EduSpace, EduEtc1, Qu, ISNULL(RC.comp_cnt, 0) AS comp_cnt, "
SQL = SQL & " CASE WHEN Qu - ISNULL(RC.comp_cnt, 0) < 0 THEN 0 ELSE Qu - ISNULL(RC.comp_cnt , 0) END AS req_cnt "
SQL = SQL & " FROM exitpoll.dbo.R_Edu RE "
SQL = SQL & " LEFT JOIN ( "
SQL = SQL & " SELECT r_edu, count(*) AS comp_cnt "
SQL = SQL & " FROM exitpoll.dbo.R_info "
SQL = SQL & " WHERE flag = 1 AND ISNULL(r_edu, '') <> '' AND r_phone <> dbo.base64_encode('"&ex_phone&"') "
SQL = SQL & " GROUP BY r_edu "
SQL = SQL & " ) RC ON RE.EduCd = RC.r_edu "
SQL = SQL & " WHERE RE.Flag = 1 "
SQL = SQL & " AND RE.eduCd = '" & r_edu & "' "
DBConnect()
Objdb.Open SQL,DBConn,3,1,1
if Objdb.recordCount > 0 Then
if cInt(Objdb("req_cnt")) > 0 Then
SQL = " update exitpoll.dbo.R_info set r_edu = '" & r_edu & "' where r_phone = dbo.base64_encode('"&ex_phone&"')"
flag = ExecuteSQL(SQL)
Else
flag = "q"
End IF
End If
Objdb.Close
if flag = "q" Then
SQL = " SELECT 1 FROM R_Info WHERE r_edu = '" & r_edu & "' AND r_phone = dbo.base64_encode('"&ex_phone&"') "
Objdb.Open SQL,DBConn,3,1,1
if Objdb.recordCount > 0 Then
flag = True
End If
Objdb.Close
End If
DBClose()
End If
Response.Write flag
CASE "delete"
SQL = ""
SQL = SQL&" update exitpoll.dbo.R_Info set flag ='2', Udate=GETDATE() where dbo.base64_decode(r_phone) ='"&r_phone&"';"&VbcRlf
flag = ExecuteSQL(SQL)
SQL = SQL&" Delete from R_Deploy where dbo.base64_decode(r_phone) = '"&r_phone&"';"&VbcRlf
flag = ExecuteSQL(SQL)
Response.Write flag
case else
DBConnect()
SQL = " select * from exitpoll.dbo.R_info where r_phone = dbo.base64_encode('"&r_phone&"') "'사전 정보 Search
Objdb.Open SQL,DBConn,3,1,1
if not Objdb.eof Then
flag = False '존재하면 False
Else
flag = True '없으면 True
End If
DBClose()
if flag = True Then
SQL = ""'정보 insert
SQL = SQL&" Insert into exitpoll.dbo.R_info ( "
SQL = SQL&" r_name, r_phone, r_pass, r_gender, r_birth, "
SQL = SQL&" r_sd, r_sgg, r_emd, r_job, r_univ, r_year, "
SQL = SQL&" r_position, r_area, r_district, r_car, r_ex, "
SQL = SQL&" r_covid, r_agree1, r_agree2, chk "
SQL = SQL&" ) "
SQL = SQL&" values ( "
SQL = SQL&" '"&r_name&"', dbo.base64_encode('"&r_phone&"'), dbo.base64_encode('"&r_phone&"'), '"&r_gender&"', '"&r_birth&"', "
SQL = SQL&" '"&r_sd&"', '"&r_sgg&"', '"&r_emd&"', '"&r_job&"', '"&r_univ&"', '"&r_year&"', "
SQL = SQL&" '"&r_position&"', '"&r_area&"', '"&r_district&"', '"&r_car&"', '"&r_ex&"', "
SQL = SQL&" '"&r_covid&"', '"&r_agree1&"', '"&r_agree2&"', '"&chk&"' "
SQL = SQL&" )"
flag = ExecuteSQL(SQL)
Response.Write flag
Else
Response.Write flag
End If
End Select
' Response.Write "이름: "&r_name&"<br/>"
' Response.Write "성별: "&r_gender&"<br/>"
' Response.Write "생년월일: "&r_birth&"<br/>"
' Response.Write "핸드폰번호: "&r_phone&"<br/>"
' Response.Write "직업: "&r_job&"<br/>"
' Response.Write "소속학교: "&r_univ&"<br/>"
' Response.Write "학년: "&r_year&"<br/>"
' Response.Write "지원지역: "&r_area&"<br/>"
' Response.Write "교육일정: "&r_edu&"<br/>"
' Response.Write "지원분야: "&r_position&"<br/>"
' Response.Write "출구조사경험: "&r_ex
%>

185
Recruit/Ajax/AjaxSelect.asp Normal file
View File

@@ -0,0 +1,185 @@
<!--#include Virtual="/Lib/config.asp" -->
<%
Dim SQL, Objdb, cSQL, cObjdb
Dim sel_gubun : sel_gubun = Request("sel_gubun")
set Objdb = Server.CreateObject("ADODB.Recordset")
set cObjdb = Server.CreateObject("ADODB.Recordset")
Dim exit_cd : exit_cd = request("Exit_cd")
Dim sel_code : sel_code = Request("sel_code")
if sel_code = "edu" Then
sel_gubun = "edu"
End If
Select case sel_gubun
case "login"
Dim r_id : r_id = Request("r_id")
Dim r_pw : r_pw = Request("r_pw")
DBConnect()
SQL = ""
SQL = SQL&" select r_name, dbo.base64_decode(r_phone) phone, r_phone, r_position, "&VbCrlf
SQL = SQL&" Flag from exitpoll.dbo.R_info "&VbCrlf
SQL = SQL&" where r_name = '"&r_id&"' and dbo.base64_decode(r_pass) = '"&r_pw&"' "&VbCrlf
Objdb.Open SQL,DBConn,3,1,1
if not Objdb.eof Then
If objdb("Flag") = "1" Then
Session("name") = objdb("r_name")
Session("phone") = objdb("phone")
Session("r_phone") = objdb("r_phone")
Session("position") = objdb("r_position")
Response.Write "True"
Else
Session("name") = ""
Session("phone") = ""
Session("r_phone") = ""
Session("position") = ""
Response.write "X"
End If
Else
Session("name") = ""
Session("phone") = ""
Session("r_phone") = ""
Session("position") = ""
Response.Write "False"
End If
DBClose()
case "logout"
call Logout()
Response.Write "로그아웃 되었습니다."
case "code"
Response.Write "<option value=''>선택</option>"
DBConnect()
SQL = " select gubun, r_cd, r_nm, Flag from exitpoll.dbo.R_code where Flag = '1' and gubun = '" & sel_code & "' "
if sel_code = "district" Then
SQL = SQL & " and left(r_cd,2) = '" & Request("area_cd") & "' "
End If
Objdb.Open SQL,DBConn,3,1,1
if not Objdb.eof Then
while not objdb.eof
Response.Write "<option value='"&objdb("r_cd")&"'>"&objdb("r_nm")&"</option>"
objdb.movenext
wend
End If
DBClose()
case "edu"
Response.Write "<option value=''>선택</option>"
DBConnect()
SQL = ""
SQL = SQL & " SELECT RE.eduCd, EduArea, EduDate, EduSpace, EduEtc1, Qu, ISNULL(RC.comp_cnt, 0) AS comp_cnt, "
SQL = SQL & " CASE WHEN Qu - ISNULL(RC.comp_cnt, 0) < 0 THEN 0 ELSE Qu - ISNULL(RC.comp_cnt , 0) END AS req_cnt "
SQL = SQL & " FROM exitpoll.dbo.R_Edu RE "
SQL = SQL & " LEFT JOIN ( "
SQL = SQL & " SELECT r_edu, count(*) AS comp_cnt "
SQL = SQL & " FROM exitpoll.dbo.R_Info "
SQL = SQL & " WHERE flag = 1 AND ISNULL(r_edu, '') <> '' "
SQL = SQL & " GROUP BY r_edu "
SQL = SQL & " ) RC ON RE.EduCd = RC.r_edu "
SQL = SQL & " WHERE RE.Flag = 1 AND eduNm = '교육' "
SQL = SQL & " And EduArea like '%" & Request("area_cd") & "%' "
Objdb.Open SQL,DBConn,3,1,1
if not Objdb.eof Then
while not objdb.eof
if cint(objdb("req_cnt")) > 0 Then
Response.Write "<option value='"&objdb("eduCd")&"' data-addr='"&objdb("EduETC1")&"'>"&objdb("EduDate")&" - "&objdb("EduSpace")&" (잔여:"& objdb("req_cnt") &")</option>"
else
Response.Write "<option value='"&objdb("eduCd")&"' data-addr='"&objdb("EduETC1")&"' disabled>"&objdb("EduDate")&" - "&objdb("EduSpace")&" (잔여:"& objdb("req_cnt") &")</option>"
End If
objdb.movenext
wend
End If
DBClose()
case "pay"
DBConnect()
SQL = ""
SQL = SQL &" select (select r_nm from exitpoll.dbo.R_code where flag='1' and gubun='position' and r_cd = p_cd) as r_position, pay "&VbCrlf
SQL = SQL &" from exitpoll.dbo.R_code_pay where Flag='1' and a_cd = '"&Request("a_cd")&"' and p_cd = '"&Request("p_cd")&"' "&VbCrlf
Objdb.Open SQL,DBConn,3,1,1
if not Objdb.eof Then
Response.Write objdb("r_position")&" 지원 시 <span style='color:red;'>"&objdb("pay")&"</span>만원 지급 예정"
End If
DBClose()
case "Qu"
'Response.write "0"
'Response.End '일단 모두 받음
DBConnect()
SQL = ""
SQL = SQL &" select a.d_cd, a.d_nm, a.p_cd, a.p_nm, isnull(b.cnt,'0') as cnt, a.Qu from "&VbCrlf
SQL = SQL &" ( "&VbCrlf
SQL = SQL &" select d_cd, d_nm, p_cd, p_nm, Qu from R_Quota "&VbCrlf
SQL = SQL &" where flag='1' "&VbCrlf
SQL = SQL &" ) as a "&VbCrlf
SQL = SQL &" left join "&VbCrlf
SQL = SQL &" ( "&VbCrlf
SQL = SQL &" select r_position,r_district, count(r_district) as cnt from R_Info where flag='1' "&VbCrlf
if Session("r_phone") <> "" Then
SQL = SQL &" and r_phone <> '" & Session("r_phone") & "' "
End If
SQL = SQL &" group by r_position, r_district "&VbCrlf
SQL = SQL &" ) as b on a.d_cd = b.r_district and a.p_cd = b.r_position "&VbCrlf
SQL = SQL &" where a.p_cd='"&Request("p_cd")&"' and a.d_cd='"&Request("a_cd")&"' "&VbCrlf
Objdb.Open SQL,DBConn,3,1,1
if not Objdb.eof Then
if Cint(objdb("Cnt")) >= Cint(objdb("Qu")) Then
cSQL = " SELECT 1 FROM R_Info WHERE r_phone = '" & Session("r_phone") & "' AND r_district = '"&Request("a_cd")&"' AND r_position = '"&Request("p_cd")&"' "
cObjdb.Open cSQL,DBConn,3,1,1
If cObjdb.recordCount > 0 Then
Response.write "0"
Else
Response.write "1"
End If
Else
Response.write "0"
End If
Else
Response.write "1"
End If
DBClose()
case "member_list"
DBConnect()
SQL = ""
SQL = SQL&" SELECT RI.r_name,RI.r_sd,RI.r_sgg, dbo.base64_decode(RI.r_phone) AS r_phone, "
SQL = SQL&" dbo.codeLabel('gender', RI.r_gender, NULL) AS r_gender, dbo.codeLabel('position', RI.r_position, NULL) AS r_position, "&VbCrlf
SQL = SQL&" CASE WHEN RI.r_birth <> '' then FLOOR(CAST(DATEDIFF(DAY,RI.r_birth,GETDATE()) AS INTEGER)/365.2422) end AS r_age "&VbCrlf
SQL = SQL&" FROM R_info RI JOIN R_Deploy RD ON RI.r_phone = RD.r_phone "&VbCrlf
SQL = SQL&" WHERE RD.exit_cd = '" & exit_cd & "' AND RI.r_position IN (" & Request("r_position") & ") "&VbCrlf
Objdb.Open SQL,DBConn,3,1,1
if not objdb.eof Then
while not objdb.eof
Response.write "<tr>"
Response.write " <td>"&objdb("r_position")&"</td>"
Response.write " <td>"&objdb("r_name")&"</td>"
Response.write " <td><a href='tel:"&objdb("r_phone")&"'>"&objdb("r_phone")&"</a></td>"
Response.write " <td>"&objdb("r_gender")&"</td>"
Response.write " <td>"&objdb("r_sd")&" "&objdb("r_sgg")&"</td>"
' Response.write " <td>"&objdb("r_age")&"</td>"
Response.write "</tr>"
objdb.movenext
wend
End If
DBClose()
End Select
%>