Compare commits

..

25 Commits

Author SHA1 Message Date
bf7eff56f8 [KG파이낸셜] 본인인증 모듈 변경 Tradeid 수정 2026-11-18 17:33:06 +09:00
e551959587 [KG파이낸셜] 본인인증 모듈 변경 2026-11-18 16:21:14 +09:00
712ecb5fff docs: add agent harness instructions 2026-08-07 11:19:06 +09:00
1b9f949423 260629_01_ENH: 우수조 팝업 적용 2026-06-29 11:43:40 +09:00
9af0732d36 260529_02_DOC: README 수정 2026-05-29 16:17:48 +09:00
8500fbef3c 260529_01_CLN: 무의미한 파일 제거 2026-05-29 16:15:30 +09:00
074f1aba4e 260526_01_ENH: 투표소에 원/근거리 정보 추가 2026-05-26 10:30:41 +09:00
899ebc3f2b 260525_01_ENH: 조사원 DB에서 삭제하는 기능 추가 2026-05-25 14:50:17 +09:00
dbb4f97deb 260524_01_ENH: 모달 크기 조정 2026-05-24 21:44:14 +09:00
80cc4acb14 260522_04_ENH: 지원하기 닫음 2026-05-22 16:19:28 +09:00
7b59843082 260522_03_ENH: 전화번호, pw는 개별 수정 가능하게 수정 2026-05-22 10:41:21 +09:00
296bd614c7 260522_02_ENH: 사전답사 보고서 버튼 가리기 추후 주석 풀것 2026-05-22 06:41:29 +09:00
fe64396ff1 260522_01_ENH: 같은 투표소에 배정된 사람들 정보 가리기 추후 주석 풀것 2026-05-22 06:34:53 +09:00
e61365729e 260521_04_ENH: 파일 업로드 수정 2026-05-21 15:28:18 +09:00
00bae5f98b 260521_03_ENH: 일부지역 가입 오픈 2026-05-21 14:34:39 +09:00
09893c6b3a 260521_02_ENH: 사전답사 pkey 변경 및 투표소 코드 관련된 정리 2026-05-21 12:26:18 +09:00
ed52d4cdfd 260521_01_ENH: 일부 지역만 열고 숙박여부 추가 2026-05-21 10:58:06 +09:00
1f0aa8a5af 260519_01_ENH: 파일업로드 테스트 하면서 막아 놨던것 풀음 2026-05-19 10:58:44 +09:00
fc506ee14a 260518_03_ENH: 파일 업로드 시 직책이 코드로 변경되지 않는 부분 수정 2026-05-18 17:59:20 +09:00
71c015cd0c 260518_02_ENH: 메인 페이지 팝업창 문구 변경2 2026-05-18 14:49:47 +09:00
3d4cb6949a 260518_01_ENH: 메인 페이지 팝업창 문구 변경 2026-05-18 14:29:27 +09:00
553807721d 260515_01_ENH: 이전 작업내용(이미지 교체, 모집 닫음) + 관리자 page에서 pw 볼 수 있게 수정 2026-05-15 13:44:10 +09:00
0e8db9994c 260507_01_ENH: 이미지 교체 2026-05-07 16:20:02 +09:00
b47fc7d8d0 260424_05_ENH: 관리자가 추가한 지원자는 따로 표시되도록 수정 2026-04-24 11:23:20 +09:00
cfdec128c7 260424_04_ENH: 모집 사이트 낮은 용량의 파일로 이미지 교체 2026-04-24 11:22:14 +09:00
27 changed files with 1648 additions and 338 deletions

25
.agent/profile.yml Normal file
View File

@@ -0,0 +1,25 @@
schema_version: 1
project:
id: poll-recruit
name: Poll Recruit
type: internal-service
layer: fullstack
legacy: true
stack:
- classic-asp
databases:
- id: poll-recruit
engine: mssql
role: primary-recruitment-data
migration:
status: planned
target_stack:
- typescript
- react
- nextjs
- java-springboot
strategy: staged

33
.agent/project.md Normal file
View File

@@ -0,0 +1,33 @@
## Poll Recruit Repository Rules
### Repository Role and Boundaries
- This is the Classic ASP exit-poll recruitment system. Prioritize production maintenance and behavior preservation until a migration slice is explicitly approved.
- Treat `AdminPoll` and `Recruit` as distinct application areas with duplicated or similar infrastructure. Trace the active include chain before changing a shared DB, session, authentication, or utility file.
- Preserve existing routes, form fields, cookies, sessions, redirects, browser behavior, identity-verification integration, and MSSQL result shapes.
- Do not perform broad ASP cleanup, include consolidation, SQL relocation, or framework migration as part of an unrelated fix.
### SQL and Data-Access Improvement
- SQL embedded in pages and shared helpers is a primary modernization target, but change it in small behavior-preserving slices.
- For a touched flow, separate request parsing, authorization, SQL execution, domain decisions, and HTML rendering where the current structure permits a safe seam.
- Parameterize new or changed values and preserve ADO command types, parameter order and size, transactions, recordset shapes, null behavior, and ordering.
- Characterize current output and side effects before splitting a large query or duplicated DB helper. Do not execute real database calls during validation without separate approval.
### Project-Specific Encoding Contract
- Preserve every existing ASP file's encoding, BOM, and line endings individually; never run repository-wide encoding normalization.
- `Recruit/Identification/checkplus_success.asp` and `Recruit/Identification/phoneIdentityVerificationProc.asp` are CP949-family files and must not be patched as UTF-8.
- Treat the identity-verification files and their response charset behavior as an external integration contract. Do not convert their encoding or change charset handling without explicit approval and byte-level verification.
- When a task touches Korean comments, literals, errors, HTML, JavaScript, or SQL, inspect the resulting bytes and diff for mojibake or replacement characters.
### Full-Stack Migration Direction
- The approved destination is a Spring Boot backend and Next.js/TypeScript frontend, consolidated with the KEPS system through staged migration slices.
- Establish API, authentication, recruitment workflow, identity-verification, database, and operational compatibility before replacing a page or flow.
- Keep migrated and legacy routes interoperable until the approved slice has acceptance criteria, rollout, and rollback coverage.
### Harness and Verification
- `AGENTS.md` and `CLAUDE.md` are generated. Edit `.agent/profile.yml` or `.agent/project.md`, then recompose instead of editing generated files.
- Validate with static inspection and safe local checks only. Do not call the identity provider, connect to a real database, or submit recruitment data without separate approval.

4
.gitattributes vendored Normal file
View File

@@ -0,0 +1,4 @@
/.gitattributes text eol=lf
/.agent/** text eol=lf
/AGENTS.md text eol=lf
/CLAUDE.md text eol=lf

6
.idea/encodings.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/Recruit/Identification/phoneIdentityVerificationProc.asp" charset="EUC-KR" />
</component>
</project>

12
.idea/material_theme_project_new.xml generated Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MaterialThemeProjectNewConfig">
<option name="metadata">
<MTProjectMetadataState>
<option name="migrated" value="true" />
<option name="pristineConfig" value="false" />
<option name="userId" value="-7d165310:19d50f53563:-7ff9" />
</MTProjectMetadataState>
</option>
</component>
</project>

276
AGENTS.md Normal file
View File

@@ -0,0 +1,276 @@
<!--
GENERATED BY KRI AGENT HARNESS. DO NOT EDIT DIRECTLY.
Project: poll-recruit
Schema version: 1
Edit the source fragments or repository .agent files, then recompose.
-->
# KRI Development Base Instructions
This document defines the shared working rules for KRI development repositories.
Keep project-specific facts and commands in the project profile and project rules.
## Instruction Resolution
Apply repository instructions in this order:
1. Base rules
2. Project-type rules
3. Technology-stack rules
4. Shared consumer contracts
5. Project-specific rules
6. The explicitly approved task scope
Later and more specific instructions may override earlier general instructions only within their stated scope.
- Apply a shared consumer contract only when `.agent/profile.yml` declares it.
- Do not silently resolve a material instruction conflict. Report the conflicting rules and request a decision before changing files.
- Rules involving destructive actions, credentials, external systems, production, deployment, databases, or Git publication require explicit authorization even when a later rule is less restrictive.
## Communication
- Respond to the user in Korean unless the user requests another language.
- Keep code identifiers, commands, paths, protocol names, and external API terms in their original form.
- Follow the repository's existing language conventions for code comments and user-facing messages.
- Lead with the result or decision, then provide only the detail needed to verify it.
- Do not create or retain a full session transcript.
## Work Authorization
- The default workflow is discussion first and explicit execution approval second.
- During discussion, perform only read-only investigation needed to understand the task and propose a concrete plan, unless the user prohibits inspection.
- Read-only investigation may include file inspection, code search, encoding checks, `git status`, `git diff`, `git log`, and sanitized official-documentation lookup.
- Before execution approval, do not edit files, install dependencies, run builds or tests, start services, connect to databases, or change local or external state.
- Before requesting approval, describe the intended scope, affected areas, validation plan, and material risks.
- Treat approval as limited to the presented scope. Pause and discuss again if the work materially expands.
- If the user explicitly requests immediate execution without prior discussion, the discussion gate may be skipped for the stated scope.
- Fast-track authorization does not implicitly authorize protected operations such as destructive commands, production changes, deployments, database mutations, Git publication, or external messages.
## Local Development Environment
- Primary OS: Windows 11.
- Primary shell: PowerShell.
- Use Git Bash only when the repository already depends on Bash or POSIX shell behavior.
- Prefer repository-provided wrappers and scripts over globally installed commands.
- Do not assume that GNU utilities, WSL, Docker, or a Unix-compatible shell are available unless the project profile confirms them.
- Detect Java, Node.js, .NET, Python, package-manager, and database-tool versions from repository configuration.
- Do not install or modify global toolchains as part of a project task.
Preferred human-facing tools:
- Classic ASP: Visual Studio Code
- Java and Spring Boot: IntelliJ IDEA
- C# and .NET: JetBrains Rider
- JavaScript, TypeScript, and Next.js: JetBrains WebStorm
- Python: JetBrains PyCharm
- Microsoft SQL Server: SQL Server Management Studio
- Other databases: JetBrains DataGrip
- These preferences do not authorize launching or controlling a GUI application.
- Prefer IDE-independent commands that can also run in CI.
- Do not modify global IDE settings.
- Do not create or modify `.idea`, `.vscode`, workspace, or run-configuration files unless the approved task requires it.
- Preserve existing shared IDE configuration when it is already tracked.
## PowerShell and Path Safety
- Quote paths containing spaces, brackets, parentheses, Korean characters, or PowerShell metacharacters.
- Prefer `-LiteralPath` when operating on an exact filesystem path.
- Use project-relative paths in committed configuration and documentation. Do not commit machine-specific paths such as `D:\_____Dev\...`.
- Do not pass filesystem targets between PowerShell, `cmd.exe`, and Bash for destructive or recursive operations.
- Keep a filesystem operation within one shell from target resolution through execution.
- Before a recursive delete or move, resolve and verify every absolute target.
- Never use a drive root, workspace root, user profile, unresolved variable, wildcard, or broad glob as a recursive delete target.
- Prefer recoverable operations when practical.
## Change Discipline
- Preserve all existing user changes, including uncommitted and untracked work.
- Keep changes minimal but complete for the approved objective.
- Avoid unrelated cleanup, formatting, renaming, dependency upgrades, and architectural refactoring.
- Do not overwrite or revert unrelated changes.
- Stop and report when the requested change overlaps existing work in a way that cannot be handled safely.
- Prefer changing an authoritative source over editing generated output.
- Treat files marked as generated as read-only unless regeneration is part of the approved plan.
- Do not edit vendored dependencies, build outputs, caches, or generated clients unless explicitly required.
- Do not regenerate a broad set of files for a narrow change without first explaining the expected output scope.
## Text Encoding and Korean Content Safety
- Treat the existing file encoding, BOM state, and line-ending style as part of the file's contract.
- Preserve Korean comments, user-facing messages, error messages, identifiers, and documentation exactly unless the task explicitly requires changing them.
- Do not assume that garbled terminal output means the file itself is corrupted. Verify bytes and encoding before modifying suspicious text.
- Before editing an existing text file, determine its current encoding and BOM state when repository configuration does not already guarantee them.
- Do not convert encoding, add or remove a BOM, or normalize line endings as a side effect of an unrelated change.
- Avoid whole-file rewrites for small changes.
- Do not rewrite source files through `Get-Content | Set-Content`, `Out-File`, shell redirection, or another method whose encoding behavior is implicit.
- Do not use a patching or formatting tool on a non-UTF-8 file unless it is known to preserve that file's encoding.
- Treat a console display problem and an on-disk encoding problem as separate issues.
- After editing Korean text, inspect the diff for replacement characters (`<60>`), mojibake, unexpected escapes, BOM changes, and unrelated line-ending changes.
- Run `.agent/tools/check-encoding.ps1` when it is available and the change touches Korean text or a non-default encoding.
- If encoding cannot be identified confidently, stop before writing and report the affected file and evidence.
- For a new text file, follow repository configuration. If no rule exists, use UTF-8 without BOM.
## Git Safety
- Use `git status`, `git diff`, and `git log` for read-only investigation.
- Do not run `commit`, `push`, `pull`, `fetch`, `merge`, `rebase`, `reset`, `checkout`, `switch`, `stash`, `clean`, `tag`, or force operations unless that specific operation is explicitly approved.
- Source-edit approval does not include commit or push approval.
- Never amend an existing commit unless explicitly requested.
- Before an approved commit, show the intended files, validation results, and proposed commit message.
- Never push directly to a protected branch unless the user names the target branch and explicitly authorizes the push.
## Dependencies and External Actions
- Use the package manager, lockfile, and toolchain already selected by the repository.
- Do not install global packages.
- Do not add, remove, or upgrade a dependency unless it was included in the approved plan.
- Pause for approval if an unplanned dependency becomes necessary.
- Keep lockfiles synchronized with approved dependency changes.
- Do not deploy, publish packages, create releases, send messages or email, call business APIs, or modify external services unless explicitly requested.
- Never upload proprietary source code, internal documents, credentials, customer data, or database contents to an external service.
- Remove secrets and unnecessary internal identifiers from external search queries.
## Database Safety
- Treat writing or reviewing SQL as source code separately from executing SQL against a database.
- SQL files, migrations, schema proposals, and query drafts may be created within an approved source-change scope.
- Do not connect to a shared, staging, or production database without explicit authorization for that environment.
- Read-only queries against a non-local database also require authorization because results may contain sensitive data.
- Do not execute DDL, DML, stored procedures, migrations, administrative commands, or data-correction scripts against a non-disposable database without separate authorization for the exact target and operation.
- Source-change approval does not authorize migration execution.
- Use a disposable local or test database for approved validation only after verifying its identity and disposable nature.
- Never place credentials, connection strings, or sensitive query results in source files, logs, generated documents, or chat output.
## Secrets and Sensitive Data
- Never add credentials, tokens, passwords, private keys, connection strings, session identifiers, or production data to source control.
- Read sensitive files only when the approved task requires it and no safer source exists.
- Prefer inspecting configuration keys and schemas without displaying secret values.
- Never echo secrets into terminal output, chat responses, logs, diffs, generated documents, test fixtures, or screenshots.
- Redact sensitive values when reporting errors or command output.
- If a possible secret is discovered, do not repeat it. Report only its location, type, and recommended containment action.
- Do not rotate, revoke, copy, or otherwise modify credentials unless that exact action is explicitly authorized.
## Validation
- Discover supported build, test, lint, type-check, and formatting commands from repository files and project instructions. Do not invent commands.
- Include intended validation in the discussion-phase plan.
- After approved changes, run the narrowest relevant validation first, then broader checks when appropriate.
- Limit formatting to files within the approved scope.
- Do not run tests that require a shared database, production service, paid external API, or sensitive data unless separately authorized.
- Do not claim that a check passed unless it was executed successfully.
- If a check cannot be run, state the exact reason.
- Distinguish a current-change failure from a pre-existing failure or an undetermined failure.
- Do not fix unrelated failures without expanding the approved scope.
- Inspect the worktree after validation for unexpected generated files, formatting churn, encoding changes, or lockfile changes.
## Artifacts and Session Records
- Do not create full-session transcripts, automatic HTML copies, analysis reports, or extra documentation unless explicitly requested.
- Store durable information in the repository's existing documentation structure.
- Do not place generated reports or temporary analysis files in the repository root.
- Remove task-specific temporary files created by the current task after validation when removal is safe.
## Completion Report
When implementation is complete, report in Korean:
- what changed and why;
- the main affected files or components;
- validation commands actually executed and their results;
- checks not executed and the reason;
- remaining risks, assumptions, or follow-up work;
- database, deployment, dependency, encoding, and compatibility impact when applicable.
- Do not report completion while required validation is failing or known encoding corruption is unresolved.
- Keep the report concise and do not include a full session transcript.
## Internal Service Project Rules
- Internal-only usage does not reduce security, privacy, compatibility, or validation requirements.
- Preserve authentication, authorization, role boundaries, auditability, and personal-data protections.
- Identify affected user workflows before changing visible behavior.
- Treat Frontend and Backend repositories as separate deployable systems with an explicit API contract between them.
- Coordinate request, response, authentication, error, and versioning changes across both sides when the approved scope includes both repositories.
- Do not silently require a simultaneous Frontend and Backend deployment.
- Prefer backward-compatible transitions when deployments may occur independently.
- Include migration and rollback considerations for database, API, and configuration changes.
- Do not modernize legacy code as an unrelated side effect.
- Apply Classic ASP text-safety rules only when the project profile declares the `classic-asp` stack.
- Do not access or modify production data merely because the service is internal.
## Classic ASP
- Prioritize behavior preservation. Do not modernize syntax, includes, data access, error handling, or page structure outside the approved scope.
- Trace the full include chain and relevant application/session/configuration dependencies before changing shared ASP behavior.
- Preserve `Response.CodePage`, `Response.CharSet`, page directives, response headers, and the existing browser/server encoding contract.
- Parameterize ADO commands and preserve the expected command type, parameter order, data types, sizes, directions, result sets, and transaction behavior.
- Close and release recordsets, commands, connections, streams, and other COM resources on every applicable path.
- Preserve the established `On Error Resume Next` and error propagation pattern; do not suppress newly introduced failures.
### Legacy Text File Safety
- Treat each existing Classic ASP text file's byte encoding, BOM state, and line endings as part of its contract.
- Detect those properties before editing and preserve them exactly unless an encoding conversion is explicitly approved.
- Do not assume UTF-8. Existing files may use UTF-8 with or without BOM, EUC-KR/CP949, or another legacy encoding.
- Keep Korean comments, literals, SQL, HTML, JavaScript, and error messages byte-safe. Stop if the source encoding cannot be identified confidently.
- Avoid formatters or bulk rewrites that normalize encoding or line endings across the file.
- After editing, run the harness encoding check and inspect the diff for replacement characters, mojibake, unexpected BOM changes, or whole-file churn.
## Microsoft SQL Server
- Use T-SQL syntax and behavior only for data sources whose declared engine is `mssql`.
- Preserve the configured SQL Server version, database and schema names, collation, naming, migration, and access conventions.
- Parameterize values. Do not build SQL by concatenating untrusted input.
- Preserve Unicode behavior and use the repository's established `nvarchar`/`nchar` and parameter conventions where Korean or other Unicode text is possible.
- Treat stored-procedure parameters, result sets, return values, transaction behavior, and error behavior as public contracts.
- Consider indexes and actual execution characteristics for changed filters, joins, ordering, grouping, and pagination.
- Do not introduce MySQL or other dialect syntax into MSSQL paths.
- Keep read-only legacy integrations read-only. A source-code change approval authorizes SQL analysis and script drafting only; execution requires separate explicit approval and the declared data-source access level.
## Planned Migration
- Treat the current stack and production behavior as authoritative until an explicit migration task and slice are approved.
- Do not begin a partial migration while handling an unrelated feature, fix, review, or refactor.
- Before migration work, document the relevant baseline: routes, APIs, authentication, authorization, state, data contracts, environment variables, build, deployment, operations, and user-visible behavior.
- Define small staged slices with acceptance criteria, compatibility requirements, validation, rollout, and rollback for each slice.
- Keep migrated and non-migrated areas interoperable for as long as both remain active.
- Apply target-stack conventions only inside the approved slice and shared boundaries that must change with it.
- Establish behavior equivalence with representative checks before removing the previous implementation.
- Separate intentional product or behavior changes from framework-only migration changes so each can be reviewed independently.
- For standalone React applications, the default planned target is Next.js with TypeScript unless the project profile explicitly declares another approved target.
## Poll Recruit Repository Rules
### Repository Role and Boundaries
- This is the Classic ASP exit-poll recruitment system. Prioritize production maintenance and behavior preservation until a migration slice is explicitly approved.
- Treat `AdminPoll` and `Recruit` as distinct application areas with duplicated or similar infrastructure. Trace the active include chain before changing a shared DB, session, authentication, or utility file.
- Preserve existing routes, form fields, cookies, sessions, redirects, browser behavior, identity-verification integration, and MSSQL result shapes.
- Do not perform broad ASP cleanup, include consolidation, SQL relocation, or framework migration as part of an unrelated fix.
### SQL and Data-Access Improvement
- SQL embedded in pages and shared helpers is a primary modernization target, but change it in small behavior-preserving slices.
- For a touched flow, separate request parsing, authorization, SQL execution, domain decisions, and HTML rendering where the current structure permits a safe seam.
- Parameterize new or changed values and preserve ADO command types, parameter order and size, transactions, recordset shapes, null behavior, and ordering.
- Characterize current output and side effects before splitting a large query or duplicated DB helper. Do not execute real database calls during validation without separate approval.
### Project-Specific Encoding Contract
- Preserve every existing ASP file's encoding, BOM, and line endings individually; never run repository-wide encoding normalization.
- `Recruit/Identification/checkplus_success.asp` and `Recruit/Identification/phoneIdentityVerificationProc.asp` are CP949-family files and must not be patched as UTF-8.
- Treat the identity-verification files and their response charset behavior as an external integration contract. Do not convert their encoding or change charset handling without explicit approval and byte-level verification.
- When a task touches Korean comments, literals, errors, HTML, JavaScript, or SQL, inspect the resulting bytes and diff for mojibake or replacement characters.
### Full-Stack Migration Direction
- The approved destination is a Spring Boot backend and Next.js/TypeScript frontend, consolidated with the KEPS system through staged migration slices.
- Establish API, authentication, recruitment workflow, identity-verification, database, and operational compatibility before replacing a page or flow.
- Keep migrated and legacy routes interoperable until the approved slice has acceptance criteria, rollout, and rollback coverage.
### Harness and Verification
- `AGENTS.md` and `CLAUDE.md` are generated. Edit `.agent/profile.yml` or `.agent/project.md`, then recompose instead of editing generated files.
- Validate with static inspection and safe local checks only. Do not call the identity provider, connect to a real database, or submit recruitment data without separate approval.

View File

@@ -10,32 +10,32 @@ Dim flag
select case gubun
case "List"
DBConnect()
SQL = ""
SQL = SQL&" select a.*, case isnull(b.Status,'') when '1' then '진행중' when '11' then '수정가능' when '10' then '완료' else '미진행' end as status from [No.6].krc_survey.dbo.Dat_2002020_B_exit a "&VbCrlf
SQL = SQL&" left join [No.6].krc_survey.dbo.Dat_2002020_B b on a.id=case when CHARINDEX('_', b.IDKey)<>0 then LEFT(b.IDKey, CHARINDEX('_', b.IDKey)-1) end where a.flag='1' "&VbCrlf
'response.write SQL
Objdb.Open SQL,DBConn,3,1,1
If not objdb.eof Then
while not objdb.eof
response.write "<tr>"&VbCrlf
response.write " <td>"&objdb("Q1")&"</td>"&VbCrlf
response.write " <td>"&objdb("cluster_nm")&"</td>"&VbCrlf
response.write " <td>"&objdb("Q4")&"<input type='hidden' name='E_No' value='"&objdb("ID")&"'/></td>"&VbCrlf
response.write " <td>"&objdb("Q3")&"</td>"&VbCrlf
response.write " <td>"&objdb("Q10")&"</td>"&VbCrlf
response.write " <td>"&objdb("pre_name")&"</td>"&VbCrlf
response.write " <td>"&objdb("pre_phone")&"</td>"&VbCrlf
response.write " <td>"&objdb("status")&"</td>"&VbCrlf
response.write "</tr>"&VbCrlf
objdb.movenext
wend
End If
DBClose()
'case "List"
'
' DBConnect()
'
' SQL = ""
' SQL = SQL&" select a.*, case isnull(b.Status,'') when '1' then '진행중' when '11' then '수정가능' when '10' then '완료' else '미진행' end as status from [No.6].krc_survey.dbo.Dat_2002020_B_exit a "&VbCrlf
' SQL = SQL&" left join [No.6].krc_survey.dbo.Dat_2002020_B b on a.id=case when CHARINDEX('_', b.IDKey)<>0 then LEFT(b.IDKey, CHARINDEX('_', b.IDKey)-1) end where a.flag='1' "&VbCrlf
' 'response.write SQL
' Objdb.Open SQL,DBConn,3,1,1
' If not objdb.eof Then
' while not objdb.eof
' response.write "<tr>"&VbCrlf
' response.write " <td>"&objdb("Q1")&"</td>"&VbCrlf
' response.write " <td>"&objdb("cluster_nm")&"</td>"&VbCrlf
' response.write " <td>"&objdb("Q4")&"<input type='hidden' name='E_No' value='"&objdb("ID")&"'/></td>"&VbCrlf
' response.write " <td>"&objdb("Q3")&"</td>"&VbCrlf
' response.write " <td>"&objdb("Q10")&"</td>"&VbCrlf
' response.write " <td>"&objdb("pre_name")&"</td>"&VbCrlf
' response.write " <td>"&objdb("pre_phone")&"</td>"&VbCrlf
' response.write " <td>"&objdb("status")&"</td>"&VbCrlf
' response.write "</tr>"&VbCrlf
' objdb.movenext
' wend
' End If
'
' DBClose()
case "json_list"
DBConnect()
@@ -43,11 +43,11 @@ case "json_list"
SQL = ""
SQL = SQL & " SELECT e_subarea_cd " & VbCrlf
SQL = SQL & " ,e_subarea_nm " & VbCrlf
SQL = SQL & " ,e_exit_cd " & VbCrlf
'SQL = SQL & " ,e_exit_cd " & VbCrlf
SQL = SQL & " ,e_full_it " & VbCrlf
SQL = SQL & " ,e_it " & VbCrlf
SQL = SQL & " ,ex_cd " & VbCrlf
SQL = SQL & " ,cluster " & VbCrlf
'' SQL = SQL & " ,e_it " & VbCrlf
'SQL = SQL & " ,ex_cd " & VbCrlf
'SQL = SQL & " ,cluster " & VbCrlf
SQL = SQL & " ,e_exit_nm " & VbCrlf
SQL = SQL & " ,e_full_nm " & VbCrlf
SQL = SQL & " ,e_full_ad " & VbCrlf

View File

@@ -9,12 +9,14 @@ Dim r_position : r_position = Trim(Request("r_position"))
Dim r_area : r_area = Request("r_area")
Dim r_district : r_district = Request("r_district")
Dim r_edu : r_edu = Trim(Request("r_edu"))
Dim new_r_phone : new_r_phone = Trim(Request("new_r_phone"))
Dim new_r_pass : new_r_pass = Trim(Request("new_r_pass"))
Dim flag
if gubun = "insert" then
SQL = ""
SQL = SQL &" insert into exitpoll.dbo.R_Info (r_name, r_phone, r_pass, r_area, r_district, r_position, r_job, chk) " & VbcRlf
SQL = SQL &" insert into exitpoll.dbo.R_Info (r_name, r_phone, r_pass, r_area, r_district, r_position, r_job, chk, is_reg_admin) " & VbcRlf
SQL = SQL &" values ( " & VbcRlf
SQL = SQL &" '" & r_name & "', " & VbcRlf
SQL = SQL &" dbo.base64_encode('" & r_phone & "'), " & VbcRlf
@@ -23,7 +25,8 @@ if gubun = "insert" then
SQL = SQL &" '" & r_district & "', " & VbcRlf
SQL = SQL &" '" & r_position & "', " & VbcRlf
SQL = SQL &" '1', " & VbcRlf
SQL = SQL &" '0' " & VbcRlf
SQL = SQL &" '0', " & VbcRlf
SQL = SQL &" 1 " & VbcRlf
SQL = SQL &" ) " & VbcRlf
flag = ExecuteSQL(SQL)
@@ -41,12 +44,18 @@ if gubun = "update" Then
If r_area <> "NULL" Then
SQL = SQL &" r_area = '"&r_area&"', "&VbcRlf
End If
If r_district <> "" OR r_district <> "NULL" Then
If r_district <> "" AND r_district <> "NULL" Then
SQL = SQL &" r_district = '"&r_district&"', "&VbcRlf
End If
If r_edu <> "NULL" Then
SQL = SQL &" r_edu = '"&r_edu&"', "&VbcRlf
End If
If new_r_phone <> "" AND new_r_phone <> "NULL" Then
SQL = SQL &" r_phone = dbo.base64_encode('"&new_r_phone&"'), "&VbcRlf
End If
If new_r_pass <> "" AND new_r_pass <> "NULL" Then
SQL = SQL &" r_pass = dbo.base64_encode('"&new_r_pass&"'), "&VbcRlf
End If
SQL = SQL &" Udate = getDate() "&VbcRlf
SQL = SQL &" where dbo.base64_decode(r_phone) = '"&r_phone&"'; "&VbcRlf
flag = ExecuteSQL(SQL)
@@ -66,6 +75,20 @@ If gubun = "rej" Then
flag = ExecuteSQL(SQL)
End If
If gubun = "db-delete" Then
SQL = ""
SQL = SQL&" insert into R_info_del ([id],[r_name],[r_phone],[r_pass],[r_gender],[r_birth],[r_sd],[r_sgg],[r_emd],[r_job],[r_univ],[r_year],[r_position],[r_area],[r_district],[r_car],[r_ex],[r_stay],[r_covid],[r_agree1],[r_agree2],[r_edu],[r_bank],[r_account],[r_jumin],[r_check],[Udate],[Regdate],[Flag],[chk],[is_reg_admin]) "&VbcRlf
SQL = SQL&" select [id],[r_name],[r_phone],[r_pass],[r_gender],[r_birth],[r_sd],[r_sgg],[r_emd],[r_job],[r_univ],[r_year],[r_position],[r_area],[r_district],[r_car],[r_ex],[r_stay],[r_covid],[r_agree1],[r_agree2],[r_edu],[r_bank],[r_account],[r_jumin],[r_check],[Udate],[Regdate],[Flag],[chk],[is_reg_admin] "&VbcRlf
SQL = SQL&" from R_info where r_name = '"&r_name&"' and r_phone = dbo.base64_encode('"&r_phone&"') "&VbcRlf
flag = ExecuteSQL(SQL)
If flag = True Then
SQL = ""
SQL = SQL&" delete from R_info where r_name = '"&r_name&"' and r_phone = dbo.base64_encode('"&r_phone&"') "&VbcRlf
flag = ExecuteSQL(SQL)
End IF
End If
if flag = True Then
response.write "1"
End If

View File

@@ -10,6 +10,7 @@
SQL = SQL&" CASE WHEN RI.Flag = '3' then '예비' else ISNULL(RE.e_exit_nm,'') END AS exit_nm, "
SQL = SQL&" CASE WHEN ISNULL(RD.exit_cd,'') = '' THEN '미배치' ELSE '배치' END AS deploy,"
SQL = SQL&" ISNULL(RI.r_name,'') AS r_name, "
SQL = SQL&" dbo.base64_decode(RI.r_pass) AS r_pass, "
SQL = SQL&" dbo.base64_decode(RI.r_phone) AS r_phone, "
SQL = SQL&" dbo.codeLabel('gender', RI.r_gender, NULL) AS r_gender, "
SQL = SQL&" ISNULL(RI.r_birth,'') AS r_birth, "
@@ -26,13 +27,15 @@
SQL = SQL&" dbo.codeLabel('position', RI.r_position, NULL) AS r_position, "
SQL = SQL&" Replace(dbo.codeLabel('car', RI.r_car, NULL), '없음', '') AS r_car, "
SQL = SQL&" Replace(dbo.codeLabel('ex', RI.r_ex, NULL), '없음', '') AS r_ex, "
SQL = SQL&" dbo.codeLabel('stay', RI.r_stay, NULL) AS r_stay, "
SQL = SQL&" dbo.base64_decode(ISNULL(r_jumin,'')) AS r_jumin, "
SQL = SQL&" dbo.codeLabel('bank', RI.r_bank, NULL) AS r_bank, "
SQL = SQL&" dbo.base64_decode(ISNULL(r_account,'')) AS r_account, "
SQL = SQL&" RI.r_edu, ISNULL(eduSpace, '') AS r_edu_space, ISNULL(eduDate, '') AS r_edu_date, ISNULL(eduEtc1, '') AS r_edu_addr, "
SQL = SQL&" CASE ISNULL(r_check, '') WHEN 'on' THEN 'O' WHEN 'off' THEN 'O' ELSE '' END AS r_check, "
SQL = SQL&" CONVERT(VARCHAR(19), RI.Regdate, 120) AS regdate, "
SQL = SQL&" RI.chk "
SQL = SQL&" case RI.is_reg_admin when 1 then '관리자 추가' else '' end as [is_reg_admin], "
SQL = SQL&" case RI.chk when 1 then '인증' else '미인증' end as [chk] "
SQL = SQL&" FROM R_info RI LEFT JOIN R_edu ED on RI.r_edu = ED.educd and ED.flag = 1 "
SQL = SQL&" LEFT JOIN R_Deploy RD ON RI.r_phone = RD.r_phone and RD.exit_cd not like 'DEL[_]%' "
SQL = SQL&" LEFT JOIN R_Exit RE on RD.exit_cd = RE.e_full_it "

View File

@@ -28,8 +28,57 @@
right: 0px;
padding-right: 15px;
}
#uploadLoading{
display: none;
position: fixed;
z-index: 9999;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.45);
}
#uploadLoading .upload-loading-box{
position: absolute;
top: 50%;
left: 50%;
min-width: 220px;
padding: 24px 28px;
text-align: center;
color: #333;
background: #fff;
border-radius: 6px;
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
transform: translate(-50%, -50%);
}
#uploadLoading .upload-loading-spinner{
width: 34px;
height: 34px;
margin: 0 auto 12px;
border: 4px solid #ddd;
border-top-color: #337ab7;
border-radius: 50%;
animation: uploadLoadingSpin 0.8s linear infinite;
}
#uploadLoading .upload-loading-text{
font-weight: bold;
}
@keyframes uploadLoadingSpin{
to { transform: rotate(360deg); }
}
.form-group input {
background-color:#fff!important;
color: #000!important;
}
</style>
<!--#include virtual="/Include/Top.asp"-->
<div id="uploadLoading">
<div class="upload-loading-box">
<div class="upload-loading-spinner"></div>
<div class="upload-loading-text">Uploading...</div>
</div>
</div>
<div class="modal fade" id="ListModal">
<div class="modal-dialog">
<div class="modal-content">
@@ -37,6 +86,7 @@
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><span class="nm"></span>(<span class="ph"></span>) 수정 및 삭제</h4>
<input type="hidden" name="r_phone" id="r_phone" value=""/>
<input type="hidden" name="r_name" id="r_name" value=""/>
</div>
<div class="modal-body">
<div class="form-group">
@@ -67,10 +117,21 @@
<option value="">선택</option>
</select>
</div>
<hr/>
<div class="form-group">
<label>수정 전화번호</label>
<input type="text" class="form-control" name="new_r_phone" id="new_r_phone" onkeyup="this.value=this.value.replace(/[^0-9]/g,'');" />
</div>
<hr/>
<div class="form-group">
<label>수정 PW</label>
<input type="text" class="form-control" name="new_r_pass" id="new_r_pass" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-warning" id="r_edit">수정</button>
<button type="button" class="btn btn-default" id="r_del">삭제</button>
<button type="button" class="btn btn-default" id="r_db_del">DB 삭제</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
@@ -89,6 +150,7 @@
<th class="cth">투표구 명</th>
<th class="cth">배치여부</th>
<th class="cth">이름</th>
<th class="cth">PW</th>
<th class="cth">핸드폰</th>
<th class="cth">성별</th>
<th class="cth">생년월일</th>
@@ -102,6 +164,7 @@
<th class="cth">신청 직책</th>
<th class="cth">자차</th>
<th class="cth">출구경험</th>
<th class="cth">숙박 여부</th>
<th class="cth">주민번호</th>
<th class="cth">은행</th>
<th class="cth">계좌번호</th>
@@ -110,7 +173,8 @@
<th class="cth">현장 교육 장소</th>
<th class="cth">출석</th>
<th class="cth">신청일시</th>
<th class="cth">모바일 인증 여부(0: 미인증, 1: 인증)</th>
<th class="cth">관리자 추가 여부</th>
<th class="cth">모바일 인증 여부</th>
</tr>
</thead>
</table>
@@ -148,7 +212,7 @@
"url":"../Ajax/list.asp",
"data":function(d){
d.flag = getFlag();
},
},
"dataType": "JSON",
"async":"true",
},
@@ -157,6 +221,7 @@
{"data": "exit_nm"},
{"data": "deploy"},
{"data": "r_name"},
{"data": "r_pass"},
{"data": "r_phone"},
{"data": "r_gender"},
{"data": "r_birth"},
@@ -170,6 +235,7 @@
{"data": "r_position"},
{"data": "r_car"},
{"data": "r_ex"},
{"data": "r_stay"},
{"data": "r_jumin"},
{"data": "r_bank"},
{"data": "r_account"},
@@ -178,6 +244,7 @@
{"data": "r_edu_addr"},
{"data": "r_check"},
{"data": "regdate"},
{"data": "is_reg_admin"},
{"data": "chk"},
],
dom:'lBfrtip',
@@ -201,7 +268,7 @@
scrollCollapse: true,
fixedHeader: true,
"rowCallback": function(row, data, index){
}
});
@@ -225,16 +292,18 @@
$('#r_list tbody').on('click', 'tr', function () {
var data = table.row( this ).data();
var r_phone = data.r_phone;
var r_name = data.r_name;
$("#ListModal").modal("show");
$("#r_phone").val(r_phone);
$("#r_name").val(r_name);
$(".nm").text(data.r_name);
$(".ph").text(data.r_phone);
$(".radioBtn").children("a").each(function(){
if($(this).text() == data.r_position){
$(this).removeClass("notActive");
$(this).addClass("Active");
$(this).addClass("Active");
}
});
@@ -262,7 +331,14 @@
$(".district").text(data.r_district);
$("#r_del").text(getFlag() == "1" ? "삭제" : "복구");
if(getFlag() == "1"){
$("#r_del").text("삭제");
$("#r_db_del").hide();
}
else{
$("#r_del").text("복구");
$("#r_db_del").show();
}
} );
@@ -270,7 +346,7 @@
var r_area = $(this).val();
if(r_area != ""){
AjaxSelect($("#r_district"), "district", r_area);
}
}
});
$("#r_edit").on("click", function(){
@@ -283,8 +359,35 @@
alert("지원 지역을 선택하여 주십시오.");
return false;
}
AjaxUpdate("update", $("#r_phone").val(), $("#r_position").val(), $("#r_area").val(), $("#r_district").val(), $("#r_edu").val());
if($("#new_r_phone").val() != "" || $("#new_r_pass").val() != ""){
var alertMessage = [];
if($("#new_r_phone").val() != ""){
alertMessage.push(`전화번호를 ${$("#new_r_phone").val()}로`);
}
if($("#new_r_pass").val() != ""){
alertMessage.push(`PW를 ${$("#new_r_pass").val()}로`);
}
var confirmMessage = alertMessage.join(", ") + " 변경하시겠습니까?";
if(!confirm(confirmMessage)){
alert("수정 취소");
return;
}
}
AjaxUpdate(
"update",
$("#r_phone").val(),
$("#r_position").val(),
$("#r_area").val(),
$("#r_district").val(),
$("#r_edu").val(),
$("#new_r_phone").val() ?? "",
$("#new_r_pass").val() ?? ""
);
var dt = $("#r_list").DataTable();
dt.ajax.reload(null, false);
}else{
alert("수정 취소");
}
@@ -298,19 +401,32 @@
}
})
$("#r_db_del").on("click", function(){
if(confirm("DB에서 완전히 삭제됩니다. 진행 하시겠습니까?")){
AjaxDelete("db-delete", $("#r_phone").val(), $("#r_name").val());
var dt = $("#r_list").DataTable();
dt.ajax.reload(null, false);
$("#ListModal").modal("hide");
}else{
alert("DB 삭제 취소");
}
})
$(".radioBtn").each(function(){
$(this).children('a').on('click', function(){
var sel = $(this).data('title');
var tog = $(this).data('toggle');
$('#'+tog).prop('value', sel);
$('a[data-toggle="'+tog+'"]').not('[data-title="'+sel+'"]').removeClass('active').addClass('notActive');
$('a[data-toggle="'+tog+'"][data-title="'+sel+'"]').removeClass('notActive').addClass('active');
})
});
$("#ListModal").on("hidden.bs.modal", function(e){
$(".radioBtn").children("a").each(function(){
$(this).removeClass("Active");
@@ -321,7 +437,7 @@
$("#r_district").val("");
$("#r_edu").val("");
});
});
//Select box, Text ajax
@@ -354,8 +470,12 @@
return;
}
showUploadLoading("Reading file...");
var reader = new FileReader();
reader.onload = function(e){
showUploadLoading("Processing upload...");
setTimeout(function(){
try{
var workbook = XLSX.read(e.target.result, { type: "array" });
var firstSheetName = workbook.SheetNames[0];
@@ -369,14 +489,27 @@
}catch(err){
console.error(err);
alert("파일을 읽는데 실패했습니다.");
}finally{
hideUploadLoading();
}
}, 50);
};
reader.onerror = function(){
hideUploadLoading();
alert("파일을 읽을수 없습니다.");
};
reader.readAsArrayBuffer(file);
}
function showUploadLoading(message){
$("#uploadLoading .upload-loading-text").text(message || "Uploading...");
$("#uploadLoading").show();
}
function hideUploadLoading(){
$("#uploadLoading").hide();
}
function runUploadedExcelTask(upsertUserRows, updateDeployRows){
var upsertUsers = validateUserRow(upsertUserRows);
const insertPhones = upsertUsers == undefined? [] : upsertUsers
@@ -439,8 +572,8 @@
var r_name = normalizeCode(row["이름"]);
var r_phone = normalizeCode(row["연락처"]);
var r_position = normalizeCode(row["직책"]);
var r_area = normalizeCode(row["지역"], 2);
var r_district = normalizeCode(row["권역"], 4);
var r_area = normalizeCode(row["지역"]);
var r_district = normalizeCode(row["권역"]);
if (r_phone == "NULL") {
return returnError("지원자 정보", i, "연락처는 필수 입니다.");
@@ -463,7 +596,7 @@
}
if (r_district != "NULL") {
if(r_district.substring(0, 2) != r_area) {
if(r_district.substring(0, r_area.length) != r_area) {
return returnError("지원자 정보", i, "지역과 권역이 맞지 않습니다.");
}
if(!codeMap.district[r_district]){
@@ -476,11 +609,11 @@
return returnError("지원자 정보", i, "신규지원자는 모든 정보가 필수 입니다.");
}
if (AjaxCheckExistPhone(r_phone)) {
return returnError("지원자 정보", i, "신규지원자(연락처)는 이미 존재하여 추가할 수 없습니다.");
return returnError("지원자 정보", i, "신규지원자(연락처 - "+r_phone+")는 이미 존재하여 추가할 수 없습니다.");
}
} else {
if (!AjaxCheckExistPhone(r_phone)) {
return returnError("지원자 정보", i, "없는 사용자(연락처) 입니다.");
return returnError("지원자 정보", i, "없는 사용자(연락처 - "+r_phone+") 입니다.");
}
}
@@ -488,7 +621,7 @@
gubun: gubun,
r_name: r_name,
r_phone: r_phone,
r_position: r_position,
r_position: codeMap.position[r_position],
r_area: r_area,
r_district: r_district
});
@@ -511,9 +644,15 @@
var exitCd = String(exitRow.e_full_it).trim();
var exitNm = normalizeName(exitRow.e_exit_nm);
if (exitCd !== "" && !exitCodeMap[exitCd]) {
exitCodeMap[exitCd] = exitCd;
}
/*
if (exitNm !== "" && !exitCodeMap[exitNm]) {
exitCodeMap[exitNm] = exitCd;
}
*/
}
}
@@ -526,23 +665,32 @@
if (r_phone != "NULL" && r_phone.charAt(0) !== "0") {
r_phone = "0" + r_phone;
}
var rawExitName = row["투표소 이름"] || row["투표소명"] || row["투표소 명"] || row["e_full_nm"] || row["e_exit_nm"] || row["투표구 명"] || row["투표구명"];
var exit_nm = normalizeName(rawExitName);
var exit_cd = exitCodeMap[exit_nm] || "NULL";
//var rawExitName = row["투표소 이름"] || row["투표소명"] || row["투표소 명"] || row["e_full_nm"] || row["e_exit_nm"] || row["투표구 명"] || row["투표구명"];
//var exit_nm = normalizeName(rawExitName);
//var exit_cd = exitCodeMap[exit_nm] || "NULL";
var rawExitCode = row["투표소 코드"] || row["투표소코드"] || row["투표구 코드"] || row["투표구코드"];
var exit_cd = exitCodeMap[normalizeCode(rawExitCode)] || "NULL";
if (r_phone == "NULL") {
return returnError("투표소 배정 및 해제", i, "연락처는 필수 입니다.");
}
if (!AjaxCheckExistPhone(r_phone) && !insertPhones.includes(r_phone)) {
return returnError("투표소 배정 및 해제", i, "없는 사용자(연락처) 입니다.");
}
if (!AjaxCheckExistPhone(r_phone) && !insertPhones.includes(r_phone)) {
return returnError("투표소 배정 및 해제", i, "없는 사용자(연락처 - "+r_phone+") 입니다.");
}
if (rawExitCode == "") {
return returnError("투표소 배정 및 해제", i, "투표소 코드는 필수 입니다.");
}
if (exit_cd == "NULL") {
return returnError("투표소 배정 및 해제", i, "투표소(" + rawExitCode + ")가 존재하지 않습니다.");
}
/*
if (exit_nm == "") {
return returnError("투표소 배정 및 해제", i, "투표소 이름은 필수 입니다.");
}
if (exit_cd == "NULL") {
return returnError("투표소 배정 및 해제", i, "투표소(" + exit_nm + ")가 존재하지 않습니다.");
}
*/
updateDeploys.push({
gubun: gubun,
r_phone: r_phone,
@@ -640,7 +788,9 @@
"r_position" : upsertRow.r_position,
"r_area" : upsertRow.r_area,
"r_district" : upsertRow.r_district,
"r_edu" : "NULL"
"r_edu" : "NULL",
"new_r_phone" : "NULL",
"new_r_pass" : "NULL",
},
success:function(res){
if(res == "1"){
@@ -703,7 +853,36 @@
return {"insert": insertCnt, "delete": deleteCnt, "fail": failCnt};
}
function AjaxUpdate(gubun, phone, position, area, district, edu){
function AjaxDelete(gubun, phone, name){
if(gubun != "db-delete" || !phone || !name){
alert("System Error");
return false;
}
$.ajax({
url:"/Ajax/Redit.asp",
method:"POST",
async:false,
data:{
"gubun" : gubun,
"r_name" : name,
"r_phone" : phone,
},
success:function(res){
if(res == "1"){
alert("삭제 완료");
}else{
alert("삭제 실패");
}
},
error:function(res){
alert("System Error");
return false;
}
})
}
function AjaxUpdate(gubun, phone, position, area, district, edu, new_r_phone, new_r_pass){
$.ajax({
url:"/Ajax/Redit.asp",
method:"POST",
@@ -715,7 +894,9 @@
"r_position" : position,
"r_area" : area,
"r_district" : district,
"r_edu" : edu
"r_edu" : edu,
"new_r_phone" : new_r_phone,
"new_r_pass" : new_r_pass,
},
success:function(res){
if(res == "1"){
@@ -736,7 +917,6 @@
return false;
}
})
}
</script>

1
CLAUDE.md Normal file
View File

@@ -0,0 +1 @@
@AGENTS.md

View File

@@ -1,3 +1 @@
# 2025poll
선거예측
# 출구 조사원 모집 및 관리 사이트

View File

@@ -25,6 +25,7 @@ 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_stay : r_stay = request("r_stay")
Dim r_covid : r_covid = request("r_covid")
Dim r_agree1 : r_agree1 = request("r_agree1")
@@ -72,6 +73,9 @@ Select case gubun
if r_ex <> "" Then
SQL = SQL&" r_ex = '"&r_ex&"',"&VbCrlf
End If
if r_stay <> "" Then
SQL = SQL&" r_stay = '"&r_stay&"',"&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

View File

@@ -59,7 +59,11 @@ case "code"
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") & "' "
if LEN(Request("area_cd")) > 2 then
SQL = SQL & " and len(r_cd) > 4 and left(r_cd,4) = '" & Request("area_cd") & "' "
else
SQL = SQL & " and len(r_cd) < 5 and left(r_cd,2) = '" & Request("area_cd") & "' "
end if
End If
Objdb.Open SQL,DBConn,3,1,1
if not Objdb.eof Then
@@ -159,7 +163,8 @@ case "member_list"
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&" FLOOR(CAST(DATEDIFF(DAY,TRY_CONVERT(date,r_birth),GETDATE()) AS INTEGER)/365.2422) AS r_age, "&VbCrlf
SQL = SQL&" CASE RI.r_stay WHEN '1' then '숙박' when '2' then '비숙박' else '미정' end AS r_stay "&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
@@ -172,7 +177,7 @@ case "member_list"
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 " <td>"&objdb("r_stay")&"</td>"
Response.write "</tr>"
objdb.movenext
wend

View File

@@ -0,0 +1,380 @@
<%
' ######################################################################
' Class name : CryptSHA256
' Description : Crypt SHA256
' ######################################################################
Class CryptSHA256
Private BITS_TO_A_BYTE
Private BYTES_TO_A_WORD
Private BITS_TO_A_WORD
Private m_lOnBits(30)
Private m_l2Power(30)
Private K(63)
Private Sub Class_Initialize()
BITS_TO_A_BYTE = 8
BYTES_TO_A_WORD = 4
BITS_TO_A_WORD = 32
m_lOnBits(0) = CLng(1)
m_lOnBits(1) = CLng(3)
m_lOnBits(2) = CLng(7)
m_lOnBits(3) = CLng(15)
m_lOnBits(4) = CLng(31)
m_lOnBits(5) = CLng(63)
m_lOnBits(6) = CLng(127)
m_lOnBits(7) = CLng(255)
m_lOnBits(8) = CLng(511)
m_lOnBits(9) = CLng(1023)
m_lOnBits(10) = CLng(2047)
m_lOnBits(11) = CLng(4095)
m_lOnBits(12) = CLng(8191)
m_lOnBits(13) = CLng(16383)
m_lOnBits(14) = CLng(32767)
m_lOnBits(15) = CLng(65535)
m_lOnBits(16) = CLng(131071)
m_lOnBits(17) = CLng(262143)
m_lOnBits(18) = CLng(524287)
m_lOnBits(19) = CLng(1048575)
m_lOnBits(20) = CLng(2097151)
m_lOnBits(21) = CLng(4194303)
m_lOnBits(22) = CLng(8388607)
m_lOnBits(23) = CLng(16777215)
m_lOnBits(24) = CLng(33554431)
m_lOnBits(25) = CLng(67108863)
m_lOnBits(26) = CLng(134217727)
m_lOnBits(27) = CLng(268435455)
m_lOnBits(28) = CLng(536870911)
m_lOnBits(29) = CLng(1073741823)
m_lOnBits(30) = CLng(2147483647)
m_l2Power(0) = CLng(1)
m_l2Power(1) = CLng(2)
m_l2Power(2) = CLng(4)
m_l2Power(3) = CLng(8)
m_l2Power(4) = CLng(16)
m_l2Power(5) = CLng(32)
m_l2Power(6) = CLng(64)
m_l2Power(7) = CLng(128)
m_l2Power(8) = CLng(256)
m_l2Power(9) = CLng(512)
m_l2Power(10) = CLng(1024)
m_l2Power(11) = CLng(2048)
m_l2Power(12) = CLng(4096)
m_l2Power(13) = CLng(8192)
m_l2Power(14) = CLng(16384)
m_l2Power(15) = CLng(32768)
m_l2Power(16) = CLng(65536)
m_l2Power(17) = CLng(131072)
m_l2Power(18) = CLng(262144)
m_l2Power(19) = CLng(524288)
m_l2Power(20) = CLng(1048576)
m_l2Power(21) = CLng(2097152)
m_l2Power(22) = CLng(4194304)
m_l2Power(23) = CLng(8388608)
m_l2Power(24) = CLng(16777216)
m_l2Power(25) = CLng(33554432)
m_l2Power(26) = CLng(67108864)
m_l2Power(27) = CLng(134217728)
m_l2Power(28) = CLng(268435456)
m_l2Power(29) = CLng(536870912)
m_l2Power(30) = CLng(1073741824)
K(0) = &H428A2F98
K(1) = &H71374491
K(2) = &HB5C0FBCF
K(3) = &HE9B5DBA5
K(4) = &H3956C25B
K(5) = &H59F111F1
K(6) = &H923F82A4
K(7) = &HAB1C5ED5
K(8) = &HD807AA98
K(9) = &H12835B01
K(10) = &H243185BE
K(11) = &H550C7DC3
K(12) = &H72BE5D74
K(13) = &H80DEB1FE
K(14) = &H9BDC06A7
K(15) = &HC19BF174
K(16) = &HE49B69C1
K(17) = &HEFBE4786
K(18) = &HFC19DC6
K(19) = &H240CA1CC
K(20) = &H2DE92C6F
K(21) = &H4A7484AA
K(22) = &H5CB0A9DC
K(23) = &H76F988DA
K(24) = &H983E5152
K(25) = &HA831C66D
K(26) = &HB00327C8
K(27) = &HBF597FC7
K(28) = &HC6E00BF3
K(29) = &HD5A79147
K(30) = &H6CA6351
K(31) = &H14292967
K(32) = &H27B70A85
K(33) = &H2E1B2138
K(34) = &H4D2C6DFC
K(35) = &H53380D13
K(36) = &H650A7354
K(37) = &H766A0ABB
K(38) = &H81C2C92E
K(39) = &H92722C85
K(40) = &HA2BFE8A1
K(41) = &HA81A664B
K(42) = &HC24B8B70
K(43) = &HC76C51A3
K(44) = &HD192E819
K(45) = &HD6990624
K(46) = &HF40E3585
K(47) = &H106AA070
K(48) = &H19A4C116
K(49) = &H1E376C08
K(50) = &H2748774C
K(51) = &H34B0BCB5
K(52) = &H391C0CB3
K(53) = &H4ED8AA4A
K(54) = &H5B9CCA4F
K(55) = &H682E6FF3
K(56) = &H748F82EE
K(57) = &H78A5636F
K(58) = &H84C87814
K(59) = &H8CC70208
K(60) = &H90BEFFFA
K(61) = &HA4506CEB
K(62) = &HBEF9A3F7
K(63) = &HC67178F2
End Sub
Private Sub Class_Terminate()
Dim f
For f=0 To 30
m_lOnBits(f) = 0
m_l2Power(f) = 0
Next
For f=0 To 63
K(f) = Null
Next
End Sub
Private Function LShift(lValue, iShiftBits)
If iShiftBits = 0 Then
LShift = lValue
Exit Function
ElseIf iShiftBits = 31 Then
If lValue And 1 Then
LShift = &H80000000
Else
LShift = 0
End If
Exit Function
ElseIf iShiftBits < 0 Or iShiftBits > 31 Then
Err.Raise 6
End If
If (lValue And m_l2Power(31 - iShiftBits)) Then
LShift = ((lValue And m_lOnBits(31 - (iShiftBits + 1))) * m_l2Power(iShiftBits)) Or &H80000000
Else
LShift = ((lValue And m_lOnBits(31 - iShiftBits)) * m_l2Power(iShiftBits))
End If
End Function
Private Function RShift(lValue, iShiftBits)
If iShiftBits = 0 Then
RShift = lValue
Exit Function
ElseIf iShiftBits = 31 Then
If lValue And &H80000000 Then
RShift = 1
Else
RShift = 0
End If
Exit Function
ElseIf iShiftBits < 0 Or iShiftBits > 31 Then
Err.Raise 6
End If
RShift = (lValue And &H7FFFFFFE) \ m_l2Power(iShiftBits)
If (lValue And &H80000000) Then
RShift = (RShift Or (&H40000000 \ m_l2Power(iShiftBits - 1)))
End If
End Function
Private Function AddUnsigned(lX, lY)
Dim lX4
Dim lY4
Dim lX8
Dim lY8
Dim lResult
lX8 = lX And &H80000000
lY8 = lY And &H80000000
lX4 = lX And &H40000000
lY4 = lY And &H40000000
lResult = (lX And &H3FFFFFFF) + (lY And &H3FFFFFFF)
If lX4 And lY4 Then
lResult = lResult Xor &H80000000 Xor lX8 Xor lY8
ElseIf lX4 Or lY4 Then
If lResult And &H40000000 Then
lResult = lResult Xor &HC0000000 Xor lX8 Xor lY8
Else
lResult = lResult Xor &H40000000 Xor lX8 Xor lY8
End If
Else
lResult = lResult Xor lX8 Xor lY8
End If
AddUnsigned = lResult
End Function
Private Function Ch(x, y, z)
Ch = ((x And y) Xor ((Not x) And z))
End Function
Private Function Maj(x, y, z)
Maj = ((x And y) Xor (x And z) Xor (y And z))
End Function
Private Function S(x, n)
S = (RShift(x, (n And m_lOnBits(4))) Or LShift(x, (32 - (n And m_lOnBits(4)))))
End Function
Private Function R(x, n)
R = RShift(x, CInt(n And m_lOnBits(4)))
End Function
Private Function Sigma0(x)
Sigma0 = (S(x, 2) Xor S(x, 13) Xor S(x, 22))
End Function
Private Function Sigma1(x)
Sigma1 = (S(x, 6) Xor S(x, 11) Xor S(x, 25))
End Function
Private Function Gamma0(x)
Gamma0 = (S(x, 7) Xor S(x, 18) Xor R(x, 3))
End Function
Private Function Gamma1(x)
Gamma1 = (S(x, 17) Xor S(x, 19) Xor R(x, 10))
End Function
Private Function ConvertToWordArray(sMessage)
Dim lMessageLength
Dim lNumberOfWords
Dim lWordArray()
Dim lBytePosition
Dim lByteCount
Dim lWordCount
Dim lByte
Const MODULUS_BITS = 512
Const CONGRUENT_BITS = 448
lMessageLength = Len(sMessage)
lNumberOfWords = (((lMessageLength + ((MODULUS_BITS - CONGRUENT_BITS) \ BITS_TO_A_BYTE)) \ (MODULUS_BITS \ BITS_TO_A_BYTE)) + 1) * (MODULUS_BITS \ BITS_TO_A_WORD)
ReDim lWordArray(lNumberOfWords - 1)
lBytePosition = 0
lByteCount = 0
Do Until lByteCount >= lMessageLength
lWordCount = lByteCount \ BYTES_TO_A_WORD
lBytePosition = (3 - (lByteCount Mod BYTES_TO_A_WORD)) * BITS_TO_A_BYTE
lByte = AscB(Mid(sMessage, lByteCount + 1, 1))
lWordArray(lWordCount) = lWordArray(lWordCount) Or LShift(lByte, lBytePosition)
lByteCount = lByteCount + 1
Loop
lWordCount = lByteCount \ BYTES_TO_A_WORD
lBytePosition = (3 - (lByteCount Mod BYTES_TO_A_WORD)) * BITS_TO_A_BYTE
lWordArray(lWordCount) = lWordArray(lWordCount) Or LShift(&H80, lBytePosition)
lWordArray(lNumberOfWords - 1) = LShift(lMessageLength, 3)
lWordArray(lNumberOfWords - 2) = RShift(lMessageLength, 29)
ConvertToWordArray = lWordArray
End Function
Public Function SHA256(sMessage)
Dim HASH(7)
Dim M
Dim W(63)
Dim a
Dim b
Dim c
Dim d
Dim e
Dim f
Dim g
Dim h
Dim i
Dim j
Dim T1
Dim T2
HASH(0) = &H6A09E667
HASH(1) = &HBB67AE85
HASH(2) = &H3C6EF372
HASH(3) = &HA54FF53A
HASH(4) = &H510E527F
HASH(5) = &H9B05688C
HASH(6) = &H1F83D9AB
HASH(7) = &H5BE0CD19
M = ConvertToWordArray(sMessage)
For i = 0 To UBound(M) Step 16
a = HASH(0)
b = HASH(1)
c = HASH(2)
d = HASH(3)
e = HASH(4)
f = HASH(5)
g = HASH(6)
h = HASH(7)
For j = 0 To 63
If j < 16 Then
W(j) = M(j + i)
Else
W(j) = AddUnsigned(AddUnsigned(AddUnsigned(Gamma1(W(j - 2)), W(j - 7)), Gamma0(W(j - 15))), W(j - 16))
End If
T1 = AddUnsigned(AddUnsigned(AddUnsigned(AddUnsigned(h, Sigma1(e)), Ch(e, f, g)), K(j)), W(j))
T2 = AddUnsigned(Sigma0(a), Maj(a, b, c))
h = g
g = f
f = e
e = AddUnsigned(d, T1)
d = c
c = b
b = a
a = AddUnsigned(T1, T2)
Next
HASH(0) = AddUnsigned(a, HASH(0))
HASH(1) = AddUnsigned(b, HASH(1))
HASH(2) = AddUnsigned(c, HASH(2))
HASH(3) = AddUnsigned(d, HASH(3))
HASH(4) = AddUnsigned(e, HASH(4))
HASH(5) = AddUnsigned(f, HASH(5))
HASH(6) = AddUnsigned(g, HASH(6))
HASH(7) = AddUnsigned(h, HASH(7))
Next
SHA256 = LCase(Right("00000000" & Hex(HASH(0)), 8) & Right("00000000" & Hex(HASH(1)), 8) & Right("00000000" & Hex(HASH(2)), 8) & Right("00000000" & Hex(HASH(3)), 8) & Right("00000000" & Hex(HASH(4)), 8) & Right("00000000" & Hex(HASH(5)), 8) & Right("00000000" & Hex(HASH(6)), 8) & Right("00000000" & Hex(HASH(7)), 8))
End Function
End Class
%>

View File

@@ -21,7 +21,8 @@
</div>
</div>
<!-- <script src="./jquery-1.12.4.js"></script>-->
<script src="https://auth.mobilians.co.kr/js/ext/ext_inc_comm.js"></script>
<!--<script src="https://auth.mobilians.co.kr/js/ext/ext_inc_comm.js"></script> -->
<script src="https://auth.mobilians.co.kr/js/ext/v2/ext_inc_comm.js"></script>
<script type="text/javascript">
/*****************************************************************************************
@@ -32,14 +33,19 @@
/*****************************************************************************************
- 필수 입력 항목
*****************************************************************************************/
var PAY_MODE = "10"; //연동시 테스트,실결제구분 ( 00 : 테스트결제, 10 : 실거래결제 )
var Siteurl = "kric.com"; //가맹점도메인
var Tradeid = Math.random().toString(36); //가맹점거래번호 (유니크한 값 세팅)
var PAY_MODE = "10"; //연동시 테스트,실결제구분 ( 00 : 테스트결제, 10 : 실거래결제 )
var Siteurl = "kric.com"; //가맹점도메인
<%
' 가맹점거래번호 : 년월일시분초(yyyyMMddHHmmss), JS Tradeid와 서버 암호화(Cryptstring)에 동일 값 사용
Dim dtNow, svTradeId
dtNow = Now()
svTradeId = Year(dtNow) & Right("0" & Month(dtNow), 2) & Right("0" & Day(dtNow), 2) & _
Right("0" & Hour(dtNow), 2) & Right("0" & Minute(dtNow), 2) & Right("0" & Second(dtNow), 2)
%>
var Tradeid = "<%=svTradeId%>"; //가맹점거래번호 (유니크한 값 세팅)
var CI_SVCID = "240226143538"; //서비스아이디
//240226143538 <- 리쿠르팅
//211029108678 <- 키위
var CI_Mode = "61"; // 61:SMS발송 67:SMS미발송 (기타 모드는 연동매뉴얼 참조)
var CI_SVCID = "240226143538"; //서비스아이디
var CI_Mode = "61"; // 61:SMS발송 67:SMS미발송 (기타 모드는 연동매뉴얼 참조)
<%
Dim sReturnUrl , sErrorUrl
@@ -53,24 +59,25 @@
%>
<%
dim source, Okurl
dim source, Okurl, Notiurl
source = Request.QueryString("source")
If source = "signin" Then
Okurl = sReturnUrl & Request.ServerVariables("HTTP_HOST") & "/Identification/phoneIdentityVerificationProc.asp?source=signin"
Okurl = sReturnUrl & Request.ServerVariables("HTTP_HOST") & "/Identification/phoneIdentityVerificationProcOkUrl.asp?source=signin"
Notiurl = sReturnUrl & Request.ServerVariables("HTTP_HOST") & "/Identification/phoneIdentityVerificationProc.asp?source=signin"
Else
' 기본값: signup 또는 쿼리스트링 없음
Okurl = sReturnUrl & Request.ServerVariables("HTTP_HOST") & "/Identification/phoneIdentityVerificationProc.asp"
Okurl = sReturnUrl & Request.ServerVariables("HTTP_HOST") & "/Identification/phoneIdentityVerificationProcOkUrl.asp"
Notiurl = sReturnUrl & Request.ServerVariables("HTTP_HOST") & "/Identification/phoneIdentityVerificationProc.asp"
End If
%>
var Okurl = "<%=Okurl%>"; // 성공 URL
/*var Okurl = "<%=sReturnUrl%><%= Request.ServerVariables("HTTP_HOST") %>/Identification/phoneIdentityVerificationProc.asp";//성공URL : 완료통보페이지 */
var Notiurl = ""; //성공URL : 완료통보페이지
var Okurl = "<%=Okurl%>"; // 성공 URL
var Notiurl = "<%=Okurl%>"; //성공URL : 완료통보페이지
var Cryptyn = "Y"; //암호화 사용 여부 (default : Y)
var Keygb = "1"; //암호화 Key 구분 (1 or 2 : 가맹점 관리자 등록 후 사용)
var Cryptstring = Tradeid + Okurl // 암호화 사용 시 암호화된 스트링
/*****************************************************************************************
- 선택 입력 항목
*****************************************************************************************/
@@ -83,11 +90,8 @@
var DI_CODE = ""; //DI웹사이트코드 (12byte)
var CI_FIXCOMMID = ""; //이동통신사 고정 시 사용
var Closeurl = "<%=sErrorUrl%><%= Request.ServerVariables("HTTP_HOST") %>/main/Recruit.asp"; //취소버튼 클릭 시 이동할 페이지 (예:http://www.mcash.co.kr/failurl.jsp)
var MSTR = ""; //가맹점콜백변수
//가맹점에서 추가적으로 파라미터가 필요한 경우 사용하며 &, % 는 사용불가 ( 예 : MSTR="a=1|b=2|c=3" )
/*****************************************************************************************
- 디자인 관련 선택항목 ( 향후 변경될 수 있습니다 )
*****************************************************************************************/
@@ -95,42 +99,71 @@
var CALL_TYPE = "SELF"; //결제창 호출방식 (P: 팝업-default, SELF: 페이지전환, I: 아이프레임)
var IFRAME_NAME = "iframe_phoneIdentity"; // 결제창을 iframe으로 호출할 경우 iframe명칭 세팅
//####################################################################################
// 데이터 암호화
// 주) 고유KEY 설정 시 비밀키 : "가맹점 고유 KEY + CI_SVCID 앞 8자리" (16byte) // Keygb 1 or 2
//####################################################################################
// ### 암호화 오브젝트 생성 ###
<%
Set McashCipher = Server.CreateObject("McashCipher.Confirm.1")
Dim keygb1, cryptKey, svSvcId, svCryptstring
svSvcId = "240226143538" ' JS CI_SVCID와 동일 값
keygb1 = "KriPol24"
cryptKey = Left(keygb1, 8) & Left(svSvcId, 8)
' Okurl을 암호화하기 전에 평문으로 조합
svCryptstring = svTradeId & Okurl
McashCipher.TradeId = cryptKey
McashCipher.InputData = Okurl
retval = McashCipher.encodeString
Okurl = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Notiurl
retval = McashCipher.encodeString
Notiurl = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = svCryptstring
retval = McashCipher.encodeString
svCryptstring = McashCipher.outputData
Set McashCipher = Nothing
%>
Okurl = "<%=Okurl%>";
Notiurl = "<%=Notiurl%>";
Cryptstring = "<%=svCryptstring%>";
$(function () {
var form = $("<form/>", {"name": "payForm", "accept-charset": "euc-kr"});
form.appendTo('body');
form.append($("<input />", {"type": "hidden", "id": "CASH_GB", "name":"CASH_GB", "value": CASH_GB}));
form.append($("<input />", { "type": "hidden", "id": "CI_SVCID", "name": "CI_SVCID", "value": CI_SVCID }));
form.append($("<input />", { "type": "hidden", "id": "PAY_MODE", "name": "PAY_MODE", "value": PAY_MODE }));
form.append($("<input />", { "type": "hidden", "id": "Okurl", "name": "Okurl", "value": Okurl }));
form.append($("<input />", { "type": "hidden", "id": "Cryptyn", "name": "Cryptyn", "value": Cryptyn }));
form.append($("<input />", { "type": "hidden", "id": "Keygb", "name": "Keygb", "value": Keygb }));
form.append($("<input />", { "type": "hidden", "id": "Cryptstring", "name": "Cryptstring", "value": Cryptstring }));
form.append($("<input />", { "type": "hidden", "id": "Siteurl", "name": "Siteurl", "value": Siteurl }));
form.append($("<input />", { "type": "hidden", "id": "Tradeid", "name": "Tradeid", "value": Tradeid }));
form.append($("<input />", { "type": "hidden", "id": "CI_SVCID", "name": "CI_SVCID", "value": CI_SVCID }));
form.append($("<input />", { "type": "hidden", "id": "Notiurl", "name": "Notiurl", "value": Notiurl }));
form.append($("<input />", { "type": "hidden", "id": "LOGO_YN", "name": "LOGO_YN", "value": LOGO_YN }));
form.append($("<input />", { "type": "hidden", "id": "CI_Mode", "name": "CI_Mode", "value": CI_Mode }));
form.append($("<input />", { "type": "hidden", "id": "Okurl", "name": "Okurl", "value": Okurl }));
form.append($("<input />", { "type": "hidden", "id": "Notiurl", "name": "Notiurl", "value": Notiurl }));
form.append($("<input />", { "type": "hidden", "id": "Cryptyn", "name": "Cryptyn", "value": Cryptyn }));
form.append($("<input />", { "type": "hidden", "id": "Keygb", "name": "Keygb", "value": Keygb }));
form.append($("<input />", { "type": "hidden", "id": "Callback", "name": "Callback", "value": Callback }));
form.append($("<input />", { "type": "hidden", "id": "Smstext", "name": "Smstext", "value": Smstext }));
form.append($("<input />", { "type": "hidden", "id": "Lmstitle", "name": "Lmstitle", "value": Lmstitle }));
form.append($("<input />", { "type": "hidden", "id": "Lmstext", "name": "Lmstext", "value": Lmstext }));
form.append($("<input />", { "type": "hidden", "id": "Closeurl", "name": "Closeurl", "value": Closeurl }));
form.append($("<input />", { "type": "hidden", "id": "MSTR", "name": "MSTR", "value": MSTR }));
form.append($("<input />", { "type": "hidden", "id": "CALL_TYPE", "name": "CALL_TYPE", "value": CALL_TYPE }));
form.append($("<input />", { "type": "hidden", "id": "IFRAME_NAME", "name": "IFRAME_NAME", "value": IFRAME_NAME }));
form.append($("<input />", { "type": "hidden", "id": "Sendtype", "name": "Sendtype", "value": "POST" }));
form.append($("<input />", { "type": "hidden", "id": "SUB_CPID", "name": "SUB_CPID", "value": SUB_CPID }));
form.append($("<input />", { "type": "hidden", "id": "DI_CODE", "name": "DI_CODE", "value": DI_CODE }));
form.append($("<input />", { "type": "hidden", "id": "CI_FIXCOMMID", "name": "CI_FIXCOMMID", "value": CI_FIXCOMMID }));
form.append($("<input />", { "type": "hidden", "id": "Closeurl", "name": "Closeurl", "value": Closeurl }));
form.append($("<input />", { "type": "hidden", "id": "MSTR", "name": "MSTR", "value": MSTR }));
form.append($("<input />", { "type": "hidden", "id": "LOGO_YN", "name": "LOGO_YN", "value": LOGO_YN }));
form.append($("<input />", { "type": "hidden", "id": "CALL_TYPE", "name": "CALL_TYPE", "value": CALL_TYPE }));
form.append($("<input />", { "type": "hidden", "id": "IFRAME_NAME", "name": "IFRAME_NAME", "value": IFRAME_NAME }));
MCASH_PAYMENT(document.payForm);
AUTH_PAYMENT(document.payForm);
});
</script>
</body>

View File

@@ -1,192 +1,139 @@
<!-- #include file = "class.CryptSHA256.asp" -->
<%
DIM pResultcd : pResultcd = Request("Resultcd") '0000: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
DIM pResultmsg : pResultmsg = Request("Resultmsg") '<27><><EFBFBD><EFBFBD><EFBFBD>޽<EFBFBD><DEBD><EFBFBD>:<3A>ѱ<EFBFBD>(euc-kr)(<28><><EFBFBD><EFBFBD>)
DIM pCryptyn : pCryptyn = Request("Cryptyn") '"Y"
DIM pKeygb : pKeygb = Request("Keygb") '"0", "1", "2"
DIM pSvcid : pSvcid = Request("Svcid")
DIM pMobilid : pMobilid = Request("Mobilid")
DIM pSigndate : pSigndate = Request("Signdate")
DIM pTradeid : pTradeid = Request("Tradeid")
DIM pName : pName = Request("Name") '<27≯<EFBFBD>:<3A>ѱ<EFBFBD>(euc-kr)(<28><>ȣ<EFBFBD><C8A3>)
DIM pNo : pNo = Request("No") '<27>޴<EFBFBD><DEB4><EFBFBD><EFBFBD><EFBFBD>ȣ(<28><>ȣ<EFBFBD><C8A3>)
DIM pCommid : pCommid = Request("Commid") '<27><><EFBFBD>Ż<EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
DIM pSocialno : pSocialno = Request("Socialno") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
DIM pSex : pSex = Request("Sex") '<27><><EFBFBD><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
DIM pForeigner : pForeigner = Request("Foreigner") '<27>ܱ<EFBFBD><DCB1>ο<EFBFBD><EFBFBD><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
DIM pCi : pCi = Request("Ci") 'CI(<28><>ȣ<EFBFBD><C8A3>)
DIM pDi : pDi = Request("Di") 'DI(<28><>ȣ<EFBFBD><C8A3>)
DIM pCI_Mode : pCI_Mode = Request("CI_Mode")
DIM pMSTR : pMSTR = Request("MSTR")
DIM pMac : pMac = Request("Mac") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
DIM Resultcd : Resultcd = Request("Resultcd") '0000: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
DIM Resultmsg : Resultmsg = Request("Resultmsg") '<27><><EFBFBD><EFBFBD><EFBFBD>޽<EFBFBD><DEBD><EFBFBD>:<3A>ѱ<EFBFBD>(euc-kr)(<28><><EFBFBD><EFBFBD>)
DIM Mobilid : Mobilid = Request("Mobilid") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ŷ<EFBFBD><C5B7><EFBFBD>ȣ
DIM Signdate : Signdate = Request("Signdate") '<27>ŷ<EFBFBD><C5B7><EFBFBD><EFBFBD><EFBFBD>
DIM Svcid : Svcid = Request("Svcid") '<27><><EFBFBD>񽺾<EFBFBD><F1BDBABE>̵<EFBFBD>
DIM Tradeid : Tradeid = Request("Tradeid") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ŷ<EFBFBD><C5B7><EFBFBD>ȣ
DIM MSTR : MSTR = Request("MSTR") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ݹ麯<DDB9><E9BAAF>
DIM Name : Name = Request("Name") '<27≯<EFBFBD>:<3A>ѱ<EFBFBD>(euc-kr)(<28><>ȣ<EFBFBD><C8A3>)
DIM No : No = Request("No") '<27>޴<EFBFBD><DEB4><EFBFBD><EFBFBD><EFBFBD>ȣ(<28><>ȣ<EFBFBD><C8A3>)
DIM Commid : Commid = Request("Commid") '<27><><EFBFBD>Ż<EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
DIM Socialno : Socialno = Request("Socialno") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
DIM Sex : Sex = Request("Sex") '<27><EFBFBD><EFBFBD><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
DIM Foreigner : Foreigner = Request("Foreigner") '<27>ܱ<EFBFBD><DCB1>ο<EFBFBD><CEBF><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
DIM Ci : Ci = Request("Ci") 'CI(<28><>ȣ<EFBFBD><C8A3>)
DIM Di : Di = Request("Di") 'DI(<28><>ȣ<EFBFBD><C8A3>)
DIM CI_Mode : CI_Mode = Request("CI_Mode") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>
DIM DI_Mode : DI_Mode = Request("DI_Mode") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>
DIM Mac : Mac = Request("Mac") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
'DLL <20><>ġ<EFBFBD>ؾ<EFBFBD> <20><>
Set McashCipher = Server.CreateObject("McashCipher.Confirm.1")
McashCipher.TradeId = "KriPol2424022614"
McashCipher.InputData = pName
retval = McashCipher.decodeString
pName = McashCipher.outputData
McashCipher.TradeId = "KriPol2424022614"
McashCipher.InputData = pNo
retval = McashCipher.decodeString
pNo = McashCipher.outputData
McashCipher.TradeId = "KriPol2424022614"
McashCipher.InputData = pCommid
retval = McashCipher.decodeString
pCommid = McashCipher.outputData
McashCipher.TradeId = "KriPol2424022614"
McashCipher.InputData = pSocialno
retval = McashCipher.decodeString
pSocialno = McashCipher.outputData
McashCipher.TradeId = "KriPol2424022614"
McashCipher.InputData = pSex
retval = McashCipher.decodeString
pSex = McashCipher.outputData
McashCipher.TradeId = "KriPol2424022614"
McashCipher.InputData = pForeigner
retval = McashCipher.decodeString
pForeigner = McashCipher.outputData
McashCipher.TradeId = "KriPol2424022614"
McashCipher.InputData = pCi
retval = McashCipher.decodeString
pCi = McashCipher.outputData
McashCipher.TradeId = "KriPol2424022614"
McashCipher.InputData = pDi
retval = McashCipher.decodeString
pDi = McashCipher.outputData
'####################################################################################
' <20>Ʒ<EFBFBD><C6B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܼ<EFBFBD><DCBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>θ<EFBFBD>â <20><>ȯ<EFBFBD><C8AF> <20><>ũ<EFBFBD><C5A9>Ʈ ó<><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻø<CFBD> <20>˴ϴ<CBB4>.
'####################################################################################
%>
Dim keygb0, keygb1, cryptKey
keygb0 = "240226143538"
keygb1 = "KriPol24"
<%
dim source
source = Request.QueryString("source")
%>
cryptKey = Left(keygb1, 8) & Left(keygb0, 8)
'cryptKey = "KriPol2424022614"
<html>
<head>
<meta charset="euc-kr">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>KG<4B><47><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></title>
</head>
<body>
<!--#include virtual="/Include/js.asp"-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/encoding-japanese/1.0.30/encoding.min.js"></script>
<script charset='euc-kr'>
var pResultcd = "<%=pResultcd%>";
var pResultmsg = "<%=pResultmsg%>";
var pCryptyn = "<%=pCryptyn%>";
var pKeygb = "<%=pKeygb%>";
var pSvcid = "<%=pSvcid%>";
var pMobilid = "<%=pMobilid%>";
var pSigndate = "<%=pSigndate%>";
var pTradeid = "<%=pTradeid%>";
var pName = "<%=pName%>";
var pNo = "<%=pNo%>";
var pCommid = "<%=pCommid%>";
var pSocialno = "<%=pSocialno%>";
var pSex = "<%=pSex%>";
var pForeigner = "<%=pForeigner%>";
var pCi = "<%=pCi%>";
var pDi = "<%=pDi%>";
var pCI_Mode = "<%=pCI_Mode%>";
var pMSTR = "<%=pMSTR%>";
var pMac = "<%=pMac%>";
McashCipher.TradeId = cryptKey
McashCipher.InputData = Resultcd
retval = McashCipher.decodeString
Resultcd = McashCipher.outputData
if (pResultcd == "0000") {
/*
console.log('Resultcd : ' + pResultcd);
console.log('Resultmsg : ' + pResultmsg);
console.log('Cryptyn : ' + pCryptyn);
console.log('Keygb : ' + pKeygb);
console.log('Mobilid : ' + pMobilid);
console.log('Signdate : ' + pSigndate);
console.log('Tradeid : ' + pTradeid);
console.log('Name : ' + pName);
console.log('No : ' + pNo);
console.log('Commid : ' + pCommid);
console.log('Socialno : ' + pSocialno);
console.log('Sex : ' + pSex);
console.log('Foreigner : ' + pForeigner);
console.log('Ci : ' + pCi);
console.log('Di : ' + pDi);
console.log('CI_Mode : ' + pCI_Mode);
console.log('MSTR : ' + pMSTR);
console.log('Mac : ' + pMac);
*/
//console.log('myMac : ' + myMac);
//console.log('-----------------------------------------');
McashCipher.TradeId = cryptKey
McashCipher.InputData = Resultmsg
retval = McashCipher.decodeString
Resultmsg = McashCipher.outputData
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>θ<EFBFBD>â <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
$("#r_phone", opener.document).val(pNo);
$("#r_name", opener.document).val(pName);
$("#r_gender", opener.document).val(pSex == "M" ? "1" : "2");
McashCipher.TradeId = cryptKey
McashCipher.InputData = Mobilid
retval = McashCipher.decodeString
Mobilid = McashCipher.outputData
if (pSex == "M") {
$("a[data-toggle='r_gender'][data-title='1']", opener.document).removeClass("notActive").addClass("active");
$("a[data-toggle='r_gender'][data-title='2']", opener.document).removeClass("active").addClass("notActive");
} else {
$("a[data-toggle='r_gender'][data-title='1']", opener.document).removeClass("active").addClass("notActive");
$("a[data-toggle='r_gender'][data-title='2']", opener.document).removeClass("notActive").addClass("active"); // <20><>Ÿ <20><><EFBFBD><EFBFBD>: "Active" <20><> "active"
}
McashCipher.TradeId = cryptKey
McashCipher.InputData = Signdate
retval = McashCipher.decodeString
Signdate = McashCipher.outputData
$("#r_birth", opener.document).val(pSocialno);
$("#chk", opener.document).val("1");
$("#r_chk", opener.document).hide();
McashCipher.TradeId = cryptKey
McashCipher.InputData = Svcid
retval = McashCipher.decodeString
Svcid = McashCipher.outputData
<% If source = "signin" Then %>
// source<63><65> signin<69><6E> <20><><EFBFBD><EFBFBD> DB<44><42> <20><><EFBFBD><EFBFBD>
$.ajax({
url: "/Ajax/AjaxMobileCheck.asp",
type: "POST",
data: {
"gubun": "check",
"r_name": pName,
"r_phone": pNo,
"chk": "on"
},
success: function (res) {
if (res === "nouser") {
alert("<22>޴<EFBFBD><DEB4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1><EFBFBD><EFBFBD> <20>ʴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.\n<>ٽ<EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
} else if (res === "complete") {
/*
if (window.opener && !window.opener.closed) {
window.opener.document.getElementById("mobileVerified").value = "Y";
window.opener.document.getElementById("LoginOk").disabled = false;
}
*/
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
$("#LoginOk", opener.document).click();
} else {
alert("System Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
}
},
error: function () {
alert("System Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
}
//window.open("about:blank", "_self").close();
});
<% Else %>
// source<63><65> signup <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
window.open("about:blank", "_self").close();
<% End If %>
McashCipher.TradeId = cryptKey
McashCipher.InputData = Tradeid
retval = McashCipher.decodeString
Tradeid = McashCipher.outputData
} else {
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> ó<><C3B3>
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>߽<EFBFBD><DFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD>: " + pResultmsg);
window.open("about:blank", "_self").close();
}
</script>
</body>
</html>
McashCipher.TradeId = cryptKey
McashCipher.InputData = MSTR
retval = McashCipher.decodeString
MSTR = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Name
retval = McashCipher.decodeString
Name = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = No
retval = McashCipher.decodeString
No = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Commid
retval = McashCipher.decodeString
Commid = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Socialno
retval = McashCipher.decodeString
Socialno = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Sex
retval = McashCipher.decodeString
Sex = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Foreigner
retval = McashCipher.decodeString
Foreigner = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Ci
retval = McashCipher.decodeString
Ci = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Di
retval = McashCipher.decodeString
Di = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = CI_Mode
retval = McashCipher.decodeString
CI_Mode = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Di_Mode
retval = McashCipher.decodeString
Di_Mode = McashCipher.outputData
'####################################################################################
' Mac<61><63> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Ȯ<><C8AE>
' : SHA256(Name + No + Socialno + Commid + Sex + Foreigner + Tradeid + Signdate + Di + Ci + Mobilid + cryptKey)
' Mac<61><63><EFBFBD><EFBFBD> SHA256<35><36><EFBFBD><EFBFBD> <20><>ȯ<EFBFBD><C8AF> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ġ <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
'####################################################################################
Dim shastr, result, enStr
Set SHAObj = New CryptSHA256
enStr = Server.UrlEncode(Name & No & Socialno & Commid & Sex & Foreigner)
shastr = SHAObj.SHA256(enStr & Tradeid & Signdate & Di & Ci & Mobilid & cryptKey)
If StrComp(Mac, shastr, 0) = 0 Then
result = "SUCCESS"
Else
result = "FAIL"
End If
Response.write result
%>

View File

@@ -0,0 +1,242 @@
<%
'####################################################################################
'# <20><><EFBFBD>ϸ<EFBFBD> : okurl.asp
'# <20>ۼ<EFBFBD><DBBC><EFBFBD> : 2025.08
'# <20><> <20><> : <20>޴<EFBFBD><DEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȯ<EFBFBD><C8AE> okurl <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
'# <20><> <20><> : 0001
'####################################################################################
'####################################################################################
'# MAC<41><43> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD> SHA256 <20><>ȯ<EFBFBD><C8AF> <20>ʿ<EFBFBD><CABF>մϴ<D5B4>.
'# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> KISA <20><>ȣ<EFBFBD>˰<EFBFBD><CBB0><EFBFBD><EFBFBD><EFBFBD> <20>ҽ<EFBFBD><D2BD>ڵ带 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
'# <20>ش<EFBFBD> <20>ҽ<EFBFBD><D2BD>ڵ带 <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ѱ<EFBFBD><D1B1><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ʒ<EFBFBD> <20><><EFBFBD>ڵ<EFBFBD> <20>ڵ带 <20><><EFBFBD><EFBFBD><EFBFBD>Ͻñ<CFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
'####################################################################################
%>
<!-- #include file = "class.CryptSHA256.asp" -->
<%
'####################################################################################
'#<23><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȯ<EFBFBD><C8AF><EFBFBD><EFBFBD> ȣ<><C8A3><EFBFBD>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE>ϴ<EFBFBD> ȭ<><C8AD><EFBFBD>Դϴ<D4B4>.
'# <20><>ȣȭ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʼ<EFBFBD> DLL
'# McashCipher.dll
'#
'# asp <20><><EFBFBD><EFBFBD> dll <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'# cmd â<><C3A2><EFBFBD><EFBFBD> C:\regsvr32 McashCipher.dll
'####################################################################################
Dim Resultcd, Resultmsg, No, Name, Sex, Socialno, Tradeid, Svcid, Mobilid, Signdate, MSTR, Mac, key, shastr, result
Resultcd = Request("Resultcd") ' <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>
Resultmsg = Request("Resultmsg") ' <20><><EFBFBD><EFBFBD><EFBFBD>޼<EFBFBD><DEBC><EFBFBD>
No = Request("No") ' <20>޴<EFBFBD><DEB4><EFBFBD><EFBFBD><EFBFBD>ȣ(<28><>ȣ<EFBFBD><C8A3>)
Name = Request("Name") '<27≯<EFBFBD>:<3A>ѱ<EFBFBD>(euc-kr)(<28><>ȣ<EFBFBD><C8A3>)
Sex = Request("Sex") '<27><><EFBFBD><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
Socialno = Request("Socialno") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
Tradeid = Request("Tradeid") ' <20><><EFBFBD><EFBFBD><EFBFBD>ŷ<EFBFBD><C5B7><EFBFBD>ȣ
Svcid = Request("Svcid") ' <20><><EFBFBD>񽺾<EFBFBD><F1BDBABE>̵<EFBFBD>
Mobilid = Request("Mobilid") ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ŷ<EFBFBD><C5B7><EFBFBD>ȣ
Signdate = Request("Signdate") ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
MSTR = Request("MSTR") ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ݹ麯<DDB9><E9BAAF>
Mac = Request("Mac") ' <20><><EFBFBD><EFBFBD>Ű
'####################################################################################
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȣȭ
' <20><>) <20><><EFBFBD><EFBFBD>KEY <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>Ű : "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> KEY + CI_SVCID <20><> 8<>ڸ<EFBFBD>" (16byte) // Keygb 1 or 2
'####################################################################################
' ### <20><>ȣȭ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> ###
Set McashCipher = Server.CreateObject("McashCipher.Confirm.1")
Dim keygb, keygb1, keygb2, cryptKey
keygb = "1" '# <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> Ű <20>ε<EFBFBD><CEB5><EFBFBD><EFBFBD><EFBFBD> 0 or 1 or 2
keygb0 = "240226143538"
keygb1 = "KriPol24"
cryptKey = Left(keygb1, 8) & Left(keygb0, 8)
McashCipher.TradeId = cryptKey
McashCipher.InputData = Resultcd
retval = McashCipher.decodeString
Resultcd = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Resultmsg
retval = McashCipher.decodeString
Resultmsg = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = No
retval = McashCipher.decodeString
No = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Name
retval = McashCipher.decodeString
Name = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Sex
retval = McashCipher.decodeString
Sex = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Socialno
retval = McashCipher.decodeString
Socialno = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Tradeid
retval = McashCipher.decodeString
Tradeid = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Svcid
retval = McashCipher.decodeString
Svcid = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Mobilid
retval = McashCipher.decodeString
Mobilid = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = Signdate
retval = McashCipher.decodeString
Signdate = McashCipher.outputData
McashCipher.TradeId = cryptKey
McashCipher.InputData = MSTR
retval = McashCipher.decodeString
MSTR = McashCipher.outputData
'####################################################################################
' Mac<61><63> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Ȯ<><C8AE> SHA256(Tradeid + Svcid + Mobilid + Signdate + cryptKey)
' Mac<61><63><EFBFBD><EFBFBD> SHA256<35><36><EFBFBD><EFBFBD> <20><>ȯ<EFBFBD><C8AF> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ġ <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
'####################################################################################
Set SHAObj = New CryptSHA256
shastr = SHAObj.SHA256(Tradeid & Svcid & Mobilid & Signdate & cryptKey)
If StrComp(Mac, shastr, 0) = 0 Then
result = "<22><><EFBFBD><EFBFBD><EFBFBD>Ͱ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>."
Else
result = "<22><><EFBFBD><EFBFBD><EFBFBD>Ͱ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>."
End If
'####################################################################################
' <20>Ʒ<EFBFBD><C6B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܼ<EFBFBD><DCBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>θ<EFBFBD>â <20><>ȯ<EFBFBD><C8AF> <20><>ũ<EFBFBD><C5A9>Ʈ ó<><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻø<CFBD> <20>˴ϴ<CBB4>.
'####################################################################################
%>
<%
dim source
source = Request.QueryString("source")
%>
<html>
<head>
<meta charset="euc-kr">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>KG<4B><47><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></title>
</head>
<body>
<!--#include virtual="/Include/js.asp"-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/encoding-japanese/1.0.30/encoding.min.js"></script>
<script charset='euc-kr'>
var Resultcd = "<%=Resultcd%>";
var Resultmsg = "<%=Resultmsg%>";
var No = "<%=No%>";
var Name = "<%=Name%>";
var Sex = "<%=Sex%>";
var Socialno = "<%=Socialno%>";
if (Resultcd == "0000") {
/*
console.log('Resultcd : ' + Resultcd);
console.log('Resultmsg : ' + Resultmsg);
console.log('Cryptyn : ' + Cryptyn);
console.log('Keygb : ' + Keygb);
console.log('Mobilid : ' + Mobilid);
console.log('Signdate : ' + Signdate);
console.log('Tradeid : ' + Tradeid);
console.log('Name : ' + Name);
console.log('No : ' + No);
console.log('Commid : ' + Commid);
console.log('Socialno : ' + Socialno);
console.log('Sex : ' + Sex);
console.log('Foreigner : ' + Foreigner);
console.log('Ci : ' + Ci);
console.log('Di : ' + Di);
console.log('CI_Mode : ' + CI_Mode);
console.log('MSTR : ' + MSTR);
console.log('Mac : ' + Mac);
*/
//console.log('myMac : ' + myMac);
//console.log('-----------------------------------------');
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>θ<EFBFBD>â <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
var openerDoc = opener.document;
$("#r_phone", openerDoc).val(No);
$("#r_name", openerDoc).val(Name);
$("#r_gender", openerDoc).val(Sex == "M" ? "1" : "2");
if (Sex == "M") {
$("a[data-toggle='r_gender'][data-title='1']", openerDoc).removeClass("notActive").addClass("active");
$("a[data-toggle='r_gender'][data-title='2']", openerDoc).removeClass("active").addClass("notActive");
} else {
$("a[data-toggle='r_gender'][data-title='1']", openerDoc).removeClass("active").addClass("notActive");
$("a[data-toggle='r_gender'][data-title='2']", openerDoc).removeClass("notActive").addClass("active"); // <20><>Ÿ <20><><EFBFBD><EFBFBD>: "Active" <20><> "active"
}
$("#r_birth", openerDoc).val(Socialno);
$("#chk", openerDoc).val("1");
$("#r_chk", openerDoc).hide();
<% If source = "signin" Then %>
// source<63><65> signin<69><6E> <20><><EFBFBD><EFBFBD> DB<44><42> <20><><EFBFBD><EFBFBD>
$.ajax({
url: "/Ajax/AjaxMobileCheck.asp",
type: "POST",
data: {
"gubun": "check",
"r_name": $("#r_id", openerDoc).val(),
"r_phone": $("#r_pw", openerDoc).val(),
"chk": "on"
},
success: function (res) {
if (res === "nouser") {
alert("<22>޴<EFBFBD><DEB4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1><EFBFBD><EFBFBD> <20>ʴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.\n<>ٽ<EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
} else if (res === "complete") {
/*
if (window.opener && !window.opener.closed) {
window.opener.document.getElementById("mobileVerified").value = "Y";
window.opener.document.getElementById("LoginOk").disabled = false;
}
*/
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
$("#LoginOk", openerDoc).click();
window.open("about:blank", "_self").close();
} else {
alert("System Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
}
},
error: function () {
alert("System Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
}
//window.open("about:blank", "_self").close();
});
<% Else %>
// source<63><65> signup <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
window.open("about:blank", "_self").close();
<% End If %>
} else {
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> ó<><C3B3>
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>߽<EFBFBD><DFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD>: " + Resultmsg);
window.open("about:blank", "_self").close();
}
</script>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 MiB

After

Width:  |  Height:  |  Size: 3.0 MiB

BIN
Recruit/Image/good2026.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@@ -48,6 +48,41 @@
<!--#include virtual="/Include/Footer.asp"-->
</div>
<!--#include virtual="/Include/js.asp"-->
<style>
.modal.in .modal-dialog {
max-width: 620px;
width: 90%!important;
}
.modal.in .modal-body {
overflow-y: auto;
}
@media (max-width: 767px) {
.modal.in .modal-dialog {
position: absolute;
top: 50%;
left: 50%;
width: 90% !important;
max-width: 620px;
margin: 0;
-webkit-transform: translate(-50%, -50%) !important;
-ms-transform: translate(-50%, -50%) !important;
transform: translate(-50%, -50%) !important;
}
.modal.in .modal-content {
max-height: calc(100vh - 20px);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
}
</style>
<div class="modal fade" id="PopUp">
<div class="modal-dialog">
<div class="modal-content">
@@ -59,7 +94,7 @@
</div>
<div class="modal-body">
<div class="form-group">
<img src="/Image/good2025.png" style="width:100%;"/>
<img src="/Image/good2026.png" style="width:100%;"/>
</div>
</div>
<div class="modal-footer">
@@ -68,6 +103,33 @@
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div class="modal fade" id="PopUpCloseRecruit">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<div class="text-center">
<h4 class="modal-title">출구조사원 지원 마감</h4>
</div>
</div>
<div class="modal-body">
<div class="form-group">
안녕하세요, 코리아리서치입니다.<br/>
제9회 전국동시지방선거 출구조사 조사원 모집에 지원해주셔서 감사드립니다.<br/>
<br/>
현재 모든 지역의 지원 및 배치가 완료되었습니다.<br/>
<br/>
기타 문의사항은 코리아리서치 카카오톡 채널로 문의 부탁드립니다.<br/>
감사합니다.<br/>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" id="PopCloseRecruit-CloseToday">하루 동안 다시 보지 않기</button>
<button type="button" class="btn btn-warning" id="PopCloseRecruit-Close">확인</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script>
$(function (){
//$("#PopUp").modal("show");
@@ -76,6 +138,39 @@
$("#PopUp").modal("hide");
});
const POPUP_KEY = "popup_close_hide_until";
function shouldShowPopup() {
const hideUntil = localStorage.getItem(POPUP_KEY);
if (!hideUntil) {
return true;
}
const now = new Date().getTime();
return now > Number(hideUntil);
}
if (shouldShowPopup()) {
//$("#PopUpCloseRecruit").modal("show");
$("#PopUp").modal("show");
}
$("#PopCloseRecruit-CloseToday").click(function(){
const tomorrow = new Date();
tomorrow.setDate(tomorrow.getDate() + 1);
tomorrow.setHours(0, 0, 0, 0);
localStorage.setItem(POPUP_KEY, tomorrow.getTime().toString());
$("#PopUpCloseRecruit").modal("hide");
});
$("#PopCloseRecruit-Close").click(function(){
$("#PopUpCloseRecruit").modal("hide");
});
if("y" == "<%=Request("loginpop")%>"){
$("#login").click();
}

View File

@@ -9,7 +9,7 @@ SQL = ""
SQL = SQL&" SELECT 'P' + D.VALUE + 'H' + CONVERT(varchar, Q.IDKEY) AS pcode "
SQL = SQL&" FROM exitpoll.dbo.POLL_EXP_LOGIN Q CROSS APPLY STRING_SPLIT(MATCHING,',') AS D "
SQL = SQL&" inner join kon.dbo.DATA DA on Q.PKEY = DA.PKEY and DA.IDKEY = 'P' + D.VALUE + 'H' + CONVERT(varchar, Q.IDKEY) "
SQL = SQL&" WHERE Q.PKEY = '2504025_A' AND D.VALUE = '"&Exit_cd&"' and DA.status = '10' "
SQL = SQL&" WHERE Q.PKEY = '2604001_A' AND D.VALUE = '"&Exit_cd&"' and DA.status = '10' "
Objdb.Open SQL,DBConn,3,1,1
If not Objdb.eof then
%>

View File

@@ -16,7 +16,7 @@
<!-- contents-->
<div class="container">
<div class="container-fluid info">
<div class="row text-center"><img src="../Image/about_img_2026.jpg"/></div>
<div class="row text-center"><img src="../Image/about_img_2026.jpg?ver=1.2"/></div>
</div>
</div>

View File

@@ -31,6 +31,7 @@ SQL = SQL&" r_district as r_district_cd, "&VbCrlf
SQL = SQL&" r_car, "&VbCrlf
'SQL = SQL&" dbo.codeLabel('ex', r_ex, NULL) as r_ex, "&VbCrlf
SQL = SQL&" r_ex, "&VbCrlf
SQL = SQL&" r_stay, "&VbCrlf
SQL = SQL&" isnull(r_edu, '') as r_edu, "&VbCrlf
SQL = SQL&" isnull(r_bank,'') as r_bank, "&VbCrlf
SQL = SQL&" isnull(dbo.base64_decode(r_account), '') as r_account, "&VbCrlf
@@ -77,6 +78,7 @@ if not objdb.eof Then
Dim r_district_cd : r_district_cd = objdb("r_district_cd")
Dim r_car : r_car = objdb("r_car")
Dim r_ex : r_ex = objdb("r_ex")
Dim r_stay : r_stay = objdb("r_stay")
Dim r_edu : r_edu = objdb("r_edu")
Dim r_bank : r_bank = objdb("r_bank")
Dim r_account : r_account = objdb("r_account")
@@ -292,7 +294,18 @@ DBClose()
</div>
<hr/>
</div>
<div class="form-group">
<label>숙박 여부</label>
<div class="input-group">
<div class="btn-group radioBtn">
<a class="btn btn-primary <%if r_stay = "1" Then %>Active <%else %>notActive <%End IF%>" data-toggle="r_stay" data-title="1">숙박</a>
<a class="btn btn-primary <%if r_stay = "2" Then %>Active <%else %>notActive <%End IF%>" data-toggle="r_stay" data-title="2">비숙박</a>
</div>
<input type="hidden" name="r_stay" id="r_stay" value="<%= r_stay %>"/>
</div>
<hr/>
</div>
<div class="form-group" >
<label for="r_bank">주민번호</label>
<div class="form-inline" >

View File

@@ -1,12 +1,15 @@
<%
Dim eSQL, eObjdb
Dim eSQL, eObjdb, exitInfoView
set eObjdb = Server.CreateObject("ADODB.Recordset")
exitInfoView = Now() >= DateSerial(2026, 6, 2) + TimeSerial(10, 0, 0)
exitInfoView = True
DBConnect()
eSQL=""
eSQL=eSQL&" SELECT distinct dbo.codeLabel('position', RI.r_position, NULL) AS r_position, dbo.codeLabel('pay', RE.e_district_cd, RI.r_position) AS r_pay, "
eSQL=eSQL&" RD.exit_cd, RE.e_exit_nm, RE.e_full_nm, RE.e_full_ad, "
eSQL=eSQL&" case when RE.e_distance = 1 then '원거리' when RE.e_distance = 2 then '근거리' else '' end as e_distance, "
eSQL=eSQL&" isnull(RI2.r_name,'') as L_NAME, isnull(dbo.base64_decode(RI2.r_phone),'') as L_PHONE, case when RI2.r_position = 1 then '조장' when RI2.r_position = 4 then '감독관' else '' end as L_GRADE, "
eSQL=eSQL&" RE.e_assembly_place, RE.e_assembly_time, RE.e_stay_nm, RE.e_stay_tel, RE.e_stay_add, "
eSQL=eSQL&" case when RE.s_stay = 1 then '숙박' when RE.s_stay = 2 then '비숙박' else '미정' end as s_stay "
@@ -56,6 +59,7 @@ If eObjdb.RecordCount > 0 Then
</style>
<script>
$(function(){
console.log("<%=exitInfoView%>")
$(".member_list").parent().parent().hide();
<%
@@ -150,10 +154,14 @@ If eObjdb.RecordCount > 0 Then
Do while Not eObjdb.Eof
%>
<div class="form-group">
<label>투표소명 <button type="button" class="btn btn-info btn-sm ExitInfo" data-exitcd="<%=eObjdb("exit_cd")%>">사전답사 보고서 조회</button></label>
<label>투표소명
<% IF exitInfoView And (eObjdb("r_position") = "조장" Or eObjdb("r_position") = "감독관") THEN %>
<button type="button" class="btn btn-info btn-sm ExitInfo" data-exitcd="<%=eObjdb("exit_cd")%>">사전답사 보고서 조회</button>
<% End If %>
</label>
<div class="input-group">
<div class="btn-group">
<%=eObjdb("e_exit_nm") %>(<%=eObjdb("s_stay") %>)
<%=eObjdb("e_exit_nm") %> (<%=eObjdb("e_distance") %> - <%=eObjdb("s_stay") %>)
</div>
</div>
<hr/>
@@ -169,49 +177,50 @@ If eObjdb.RecordCount > 0 Then
<hr/>
</div>
<% IF eObjdb("r_position") <> "감독관" THEN %>
<div class="form-group">
<label>
<%
IF eObjdb("r_position") = "조원" THEN
response.write "조장"
ElseIF eObjdb("r_position") = "조장" THEN
response.write "감독관"
ElseIF eObjdb("r_position") = "롱폼조사원" THEN
response.write "조장"
END IF
%>
연락처</label>
<div class="input-group">
<div class="btn-group">
<%=eObjdb("L_NAME")%> - <a href='tel:<%=eObjdb("L_PHONE") %>'><%=eObjdb("L_PHONE") %></a>
<% IF exitInfoView THEN %>
<% IF eObjdb("r_position") <> "감독관" THEN %>
<div class="form-group">
<label>
<%
IF eObjdb("r_position") = "조원" THEN
response.write "조장"
ElseIF eObjdb("r_position") = "조장" THEN
response.write "감독관"
ElseIF eObjdb("r_position") = "롱폼조사원" THEN
response.write "조장"
END IF
%>
연락처</label>
<div class="input-group">
<div class="btn-group">
<%=eObjdb("L_NAME")%> - <a href='tel:<%=eObjdb("L_PHONE") %>'><%=eObjdb("L_PHONE") %></a>
</div>
</div>
</div>
<hr/>
</div>
<% END IF %>
<div class="form-group">
<label>배정 리스트</label>
<div class="input-group">
<table class="table table-responsiv member_list" data-exitcd="<%=eObjdb("exit_cd")%>" style="font-size: calc(11px + 0.2vw);">
<thead>
<tr>
<th>직책</th>
<th>이름</th>
<th>연락처</th>
<th>성별</th>
<th>거주시군</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<hr/>
</div>
<hr style="border-top: 2px solid #333;" />
</div>
<% END IF %>
<div class="form-group">
<label>배정 리스트</label>
<div class="input-group">
<table class="table table-responsiv member_list" data-exitcd="<%=eObjdb("exit_cd")%>" style="font-size: calc(11px + 0.2vw);">
<thead>
<tr>
<th>직책</th>
<th>이름</th>
<th>연락처</th>
<th>성별</th>
<th>거주시군</th>
<th>숙박여부</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<hr style="border-top: 2px solid #333;" />
</div>
<% END IF %>
<!--
<div class="form-group">
<label>집결지 정보</label>

View File

@@ -199,6 +199,8 @@
</div>
<!--#include virtual="/Include/js.asp"-->
<script type="text/javascript">
var specialArea = ["09", "16", "0901"];
var specialDistrict = ["0901", "0902", "1603", "090101"];
window.onload = function(){
var browse = navigator.userAgent.toLowerCase();
@@ -212,15 +214,18 @@
$(function(){
//alert("<%=ltitle%> 출구조사 조사원 모집은 마감되었습니다.\n관심을 가져주셔서 감사합니다.");
alert("<%=ltitle%> 출구조사 조사원 모집은 마감되었습니다.\n관심을 가져주셔서 감사합니다.");
//alert("<%=ltitle%> 출구조사 조사원 모집은 준비중입니다.\n관심을 가져주셔서 감사합니다.");
//location.href="../index.asp";
location.href="../index.asp";
AjaxSelect($("#r_job"), "job");//구분
//AjaxSelect($("#r_univ"), "univ");//소속학교
//AjaxSelect($("#r_year"), "year");//학년
AjaxSelect($("#r_area"), "area");//지원지역
//경기만 허용
filterOptions($("#r_area"), specialArea);
//$("#r_area").find(":not(option[value=''], option[value=09])").remove();
//AjaxSelect($("#r_edu"), "edu");//교육일정
});
@@ -352,6 +357,9 @@
if(r_position != "" || r_area != ""){
AjaxSelect($("#r_district"), "district", r_area);
//남부외곽만 허용
filterOptions($("#r_district"), specialDistrict);
if($("#r_district").children("option").length == 2){
$("#r_district").val($("#r_district").children("option:eq(1)").val());
}
@@ -637,6 +645,7 @@
}
},
error: function(data) { //ajax Error
console.log("AjaxRecruit")
alert("System Error\n관리자에게 문의 하십시오.");
return false;
}
@@ -644,6 +653,16 @@
});
function filterOptions($select, values) {
if (!values || values.length === 0) {
return;
}
$select.find("option").filter(function () {
return this.value !== "" && $.inArray(this.value, values) === -1;
}).remove();
}
//Select box, Text ajax
function AjaxSelect(el, gubun, area_cd) {
$.ajax({
@@ -652,12 +671,14 @@
async:false,
data:{"sel_gubun" : "code", "sel_code" : gubun, "area_cd": area_cd},
success:function(res){
console.log(gubun, res)
if(res != ""){
el.empty();
el.append(res);
}
},
error:function(err){
console.log({"sel_gubun" : "code", "sel_code" : gubun, "area_cd": area_cd})
alert("System Error\n관리자 문의");
return false;
}