Compare commits
33 Commits
762a4d5154
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| bf7eff56f8 | |||
| e551959587 | |||
| 712ecb5fff | |||
| 1b9f949423 | |||
| 9af0732d36 | |||
| 8500fbef3c | |||
| 074f1aba4e | |||
| 899ebc3f2b | |||
| dbb4f97deb | |||
| 80cc4acb14 | |||
| 7b59843082 | |||
| 296bd614c7 | |||
| fe64396ff1 | |||
| e61365729e | |||
| 00bae5f98b | |||
| 09893c6b3a | |||
| ed52d4cdfd | |||
| 1f0aa8a5af | |||
| fc506ee14a | |||
| 71c015cd0c | |||
| 3d4cb6949a | |||
| 553807721d | |||
| 0e8db9994c | |||
| b47fc7d8d0 | |||
| cfdec128c7 | |||
| 88550b9072 | |||
| 4b226f5bd8 | |||
| fde75ecd2f | |||
| 9a5a0fd5e5 | |||
| 6a6b5173c0 | |||
| 52a0807211 | |||
| 53975c4503 | |||
| 09e89c2a20 |
25
.agent/profile.yml
Normal 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.
|
||||||
@@ -135,12 +135,14 @@ case "RecruitGender"
|
|||||||
DBConnect()
|
DBConnect()
|
||||||
|
|
||||||
SQL = ""
|
SQL = ""
|
||||||
SQL = SQL &" select *, case when r_gender = '1' then '남성' else '여성' end gender, cast(cnt as float)/cast(tcnt as float)*100 as per from "&VbCrlf
|
SQL = SQL & " select *, case r_gender when '1' then '남성' when '2' then '여성' else 'NULL' end gender, cast(cnt as float)/cast(tcnt as float)*100 as per from " & VbCrlf
|
||||||
SQL = SQL &" ( "&VbCrlf
|
SQL = SQL & " ( " & VbCrlf
|
||||||
SQL = SQL &" select r_gender, count(r_gender) as cnt, (select count(*) from exitpoll.dbo.R_info where flag='1') as tcnt from exitpoll.dbo.R_info "&VbCrlf
|
SQL = SQL & " select r_gender, count(r_gender) as cnt, (select count(*) from exitpoll.dbo.R_info where flag='1') as tcnt from exitpoll.dbo.R_info " & VbCrlf
|
||||||
SQL = SQL &" where Flag='1' "&VbCrlf
|
SQL = SQL & " where Flag='1' " & VbCrlf
|
||||||
SQL = SQL &" group by r_gender "&VbCrlf
|
SQL = SQL & " group by r_gender " & VbCrlf
|
||||||
SQL = SQL &" ) a "&VbCrlf
|
SQL = SQL & " ) a " & VbCrlf
|
||||||
|
SQL = SQL & " WHERE cnt > 0 " & VbCrlf
|
||||||
|
|
||||||
Objdb.Open SQL,DBConn,3,1,1
|
Objdb.Open SQL,DBConn,3,1,1
|
||||||
|
|
||||||
If not objdb.eof Then
|
If not objdb.eof Then
|
||||||
|
|||||||
@@ -10,43 +10,73 @@ Dim flag
|
|||||||
|
|
||||||
select case gubun
|
select case gubun
|
||||||
|
|
||||||
case "List"
|
'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()
|
||||||
|
|
||||||
DBConnect()
|
case "json_list"
|
||||||
|
DBConnect()
|
||||||
|
|
||||||
SQL = ""
|
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 & " SELECT e_subarea_cd " & 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
|
SQL = SQL & " ,e_subarea_nm " & VbCrlf
|
||||||
'response.write SQL
|
'SQL = SQL & " ,e_exit_cd " & VbCrlf
|
||||||
Objdb.Open SQL,DBConn,3,1,1
|
SQL = SQL & " ,e_full_it " & VbCrlf
|
||||||
If not objdb.eof Then
|
'' SQL = SQL & " ,e_it " & VbCrlf
|
||||||
while not objdb.eof
|
'SQL = SQL & " ,ex_cd " & VbCrlf
|
||||||
response.write "<tr>"&VbCrlf
|
'SQL = SQL & " ,cluster " & VbCrlf
|
||||||
response.write " <td>"&objdb("Q1")&"</td>"&VbCrlf
|
SQL = SQL & " ,e_exit_nm " & VbCrlf
|
||||||
response.write " <td>"&objdb("cluster_nm")&"</td>"&VbCrlf
|
SQL = SQL & " ,e_full_nm " & VbCrlf
|
||||||
response.write " <td>"&objdb("Q4")&"<input type='hidden' name='E_No' value='"&objdb("ID")&"'/></td>"&VbCrlf
|
SQL = SQL & " ,e_full_ad " & VbCrlf
|
||||||
response.write " <td>"&objdb("Q3")&"</td>"&VbCrlf
|
SQL = SQL & " FROM exitpoll.dbo.R_Exit " & VbCrlf
|
||||||
response.write " <td>"&objdb("Q10")&"</td>"&VbCrlf
|
SQL = SQL & " WHERE Flag = 1 " & VbCrlf
|
||||||
response.write " <td>"&objdb("pre_name")&"</td>"&VbCrlf
|
SQL = SQL & " FOR JSON PATH " & 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()
|
Objdb.Open SQL,DBConn
|
||||||
|
If Not Objdb.EOF Then
|
||||||
|
Do While Not Objdb.EOF
|
||||||
|
Response.Write Objdb(0)
|
||||||
|
Objdb.MoveNext
|
||||||
|
Loop
|
||||||
|
Else
|
||||||
|
Response.Write "[]"
|
||||||
|
End If
|
||||||
|
|
||||||
|
DBClose()
|
||||||
|
|
||||||
case "confirm"
|
case "confirm"
|
||||||
|
|
||||||
If IDKey <> "" Then
|
If IDKey <> "" Then
|
||||||
SQL = "Update krc_survey.dbo.dat_2002020_B set status='10' where Idkey= '"&IDKEY&"'"
|
SQL = "Update krc_survey.dbo.dat_2002020_B set status='10' where Idkey= '"&IDKEY&"'"
|
||||||
flag = ExecuteSQL1(SQL)
|
flag = ExecuteSQL1(SQL)
|
||||||
Else
|
Else
|
||||||
flag = false
|
flag = false
|
||||||
End If
|
End If
|
||||||
|
|
||||||
response.write flag
|
response.write flag
|
||||||
|
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Dim SQL, Objdb
|
|||||||
Dim sel_gubun : sel_gubun = Request("sel_gubun")
|
Dim sel_gubun : sel_gubun = Request("sel_gubun")
|
||||||
set Objdb = Server.CreateObject("ADODB.Recordset")
|
set Objdb = Server.CreateObject("ADODB.Recordset")
|
||||||
Dim sel_code : sel_code = Request("sel_code")
|
Dim sel_code : sel_code = Request("sel_code")
|
||||||
|
Dim r_phone : r_phone = Request("r_phone")
|
||||||
|
|
||||||
if sel_code = "edu" Then
|
if sel_code = "edu" Then
|
||||||
sel_gubun = "edu"
|
sel_gubun = "edu"
|
||||||
@@ -29,7 +30,36 @@ case "code"
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
DBClose()
|
DBClose()
|
||||||
|
case "upload_use_code"
|
||||||
|
DBConnect()
|
||||||
|
SQL = ""
|
||||||
|
SQL = SQL & " SELECT gubun, r_cd, r_nm " & vbCrLf
|
||||||
|
SQL = SQL & " FROM [exitpoll].[dbo].[R_code] " & vbCrLf
|
||||||
|
SQL = SQL & " WHERE Flag = 1 AND gubun in ('area','district','position') " & vbCrLf
|
||||||
|
SQL = SQL & " ORDER BY gubun, r_cd " & vbCrLf
|
||||||
|
SQL = SQL & " FOR JSON PATH "
|
||||||
|
|
||||||
|
Objdb.Open SQL,DBConn
|
||||||
|
If Not Objdb.EOF Then
|
||||||
|
Do While Not Objdb.EOF
|
||||||
|
Response.Write Objdb(0)
|
||||||
|
Objdb.MoveNext
|
||||||
|
Loop
|
||||||
|
Else
|
||||||
|
Response.Write "[]"
|
||||||
|
End If
|
||||||
|
|
||||||
|
DBClose()
|
||||||
|
case "phone_exist"
|
||||||
|
DBConnect()
|
||||||
|
SQL = " SELECT 1 FROM exitpoll.dbo.R_info WHERE r_phone = dbo.base64_encode('" & r_phone & "') And flag = 1"
|
||||||
|
Objdb.Open SQL,DBConn,3,1,1
|
||||||
|
if not Objdb.eof Then
|
||||||
|
response.write "EXIST"
|
||||||
|
ELSE
|
||||||
|
response.write "NOT EXIST"
|
||||||
|
End If
|
||||||
|
DBClose()
|
||||||
case "edu"
|
case "edu"
|
||||||
Response.Write "<option value=''>선택</option>"
|
Response.Write "<option value=''>선택</option>"
|
||||||
DBConnect()
|
DBConnect()
|
||||||
|
|||||||
38
AdminPoll/Ajax/DeployEdit.asp
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
<!--#include Virtual="/Lib/config.asp" -->
|
||||||
|
<%
|
||||||
|
Dim SQL, Objdb
|
||||||
|
Dim gubun : gubun = Request("gubun")
|
||||||
|
set Objdb = Server.CreateObject("ADODB.Recordset")
|
||||||
|
Dim r_phone : r_phone = Request("r_phone")
|
||||||
|
Dim exit_cd : exit_cd = Trim(Request("exit_cd"))
|
||||||
|
|
||||||
|
|
||||||
|
Dim flag
|
||||||
|
|
||||||
|
if gubun = "insert" then
|
||||||
|
SQL = ""
|
||||||
|
SQL = SQL & " Delete " & VbcRlf
|
||||||
|
SQL = SQL & " FROM exitpoll.dbo.R_Deploy " & VbcRlf
|
||||||
|
SQL = SQL & " where dbo.base64_decode(r_phone) = '" & r_phone & "' And exit_cd = '" & exit_cd & "'" & VbcRlf
|
||||||
|
ExecuteSQL(SQL)
|
||||||
|
|
||||||
|
SQL = ""
|
||||||
|
SQL = SQL &" insert into exitpoll.dbo.R_Deploy ( r_phone, exit_cd) " & VbcRlf
|
||||||
|
SQL = SQL &" values ( " & VbcRlf
|
||||||
|
SQL = SQL &" dbo.base64_encode('" & r_phone & "'), " & VbcRlf
|
||||||
|
SQL = SQL &" '" & exit_cd & "' " & VbcRlf
|
||||||
|
SQL = SQL &" ) " & VbcRlf
|
||||||
|
flag = ExecuteSQL(SQL)
|
||||||
|
End If
|
||||||
|
|
||||||
|
If gubun = "delete" Then
|
||||||
|
SQL = ""
|
||||||
|
SQL = SQL & " Delete from R_Deploy where dbo.base64_decode(r_phone) = '" & r_phone & "' And exit_cd = '" & exit_cd & "'" & VbcRlf
|
||||||
|
flag = ExecuteSQL(SQL)
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
if flag = True Then
|
||||||
|
response.write "1"
|
||||||
|
End If
|
||||||
|
%>
|
||||||
@@ -4,22 +4,58 @@ Dim SQL, Objdb
|
|||||||
Dim gubun : gubun = Request("gubun")
|
Dim gubun : gubun = Request("gubun")
|
||||||
set Objdb = Server.CreateObject("ADODB.Recordset")
|
set Objdb = Server.CreateObject("ADODB.Recordset")
|
||||||
Dim r_phone : r_phone = Request("r_phone")
|
Dim r_phone : r_phone = Request("r_phone")
|
||||||
|
Dim r_name : r_name = Trim(Request("r_name"))
|
||||||
Dim r_position : r_position = Trim(Request("r_position"))
|
Dim r_position : r_position = Trim(Request("r_position"))
|
||||||
Dim r_area : r_area = Request("r_area")
|
Dim r_area : r_area = Request("r_area")
|
||||||
Dim r_district : r_district = Request("r_district")
|
Dim r_district : r_district = Request("r_district")
|
||||||
Dim r_edu : r_edu = Trim(Request("r_edu"))
|
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
|
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, is_reg_admin) " & VbcRlf
|
||||||
|
SQL = SQL &" values ( " & VbcRlf
|
||||||
|
SQL = SQL &" '" & r_name & "', " & VbcRlf
|
||||||
|
SQL = SQL &" dbo.base64_encode('" & r_phone & "'), " & VbcRlf
|
||||||
|
SQL = SQL &" dbo.base64_encode('" & r_phone & "'), " & VbcRlf
|
||||||
|
SQL = SQL &" '" & r_area & "', " & VbcRlf
|
||||||
|
SQL = SQL &" '" & r_district & "', " & VbcRlf
|
||||||
|
SQL = SQL &" '" & r_position & "', " & VbcRlf
|
||||||
|
SQL = SQL &" '1', " & VbcRlf
|
||||||
|
SQL = SQL &" '0', " & VbcRlf
|
||||||
|
SQL = SQL &" 1 " & VbcRlf
|
||||||
|
SQL = SQL &" ) " & VbcRlf
|
||||||
|
|
||||||
|
flag = ExecuteSQL(SQL)
|
||||||
|
End If
|
||||||
|
|
||||||
if gubun = "update" Then
|
if gubun = "update" Then
|
||||||
SQL = ""
|
SQL = ""
|
||||||
SQL = SQL &" Update exitpoll.dbo.R_Info set "&VbcRlf
|
SQL = SQL &" Update exitpoll.dbo.R_Info set "&VbcRlf
|
||||||
SQL = SQL &" r_position = '"&r_position&"', "&VbcRlf
|
If r_name <> "NULL" Then
|
||||||
SQL = SQL &" r_area = '"&r_area&"', "&VbcRlf
|
SQL = SQL &" r_name = '"&r_name&"', "&VbcRlf
|
||||||
If r_district <> "" Then
|
End If
|
||||||
|
If r_position <> "NULL" Then
|
||||||
|
SQL = SQL &" r_position = '"&r_position&"', "&VbcRlf
|
||||||
|
End If
|
||||||
|
If r_area <> "NULL" Then
|
||||||
|
SQL = SQL &" r_area = '"&r_area&"', "&VbcRlf
|
||||||
|
End If
|
||||||
|
If r_district <> "" AND r_district <> "NULL" Then
|
||||||
SQL = SQL &" r_district = '"&r_district&"', "&VbcRlf
|
SQL = SQL &" r_district = '"&r_district&"', "&VbcRlf
|
||||||
End If
|
End If
|
||||||
SQL = SQL &" r_edu = '"&r_edu&"', "&VbcRlf
|
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 &" Udate = getDate() "&VbcRlf
|
||||||
SQL = SQL &" where dbo.base64_decode(r_phone) = '"&r_phone&"'; "&VbcRlf
|
SQL = SQL &" where dbo.base64_decode(r_phone) = '"&r_phone&"'; "&VbcRlf
|
||||||
flag = ExecuteSQL(SQL)
|
flag = ExecuteSQL(SQL)
|
||||||
@@ -39,6 +75,20 @@ If gubun = "rej" Then
|
|||||||
flag = ExecuteSQL(SQL)
|
flag = ExecuteSQL(SQL)
|
||||||
End If
|
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
|
if flag = True Then
|
||||||
response.write "1"
|
response.write "1"
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -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 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&" CASE WHEN ISNULL(RD.exit_cd,'') = '' THEN '미배치' ELSE '배치' END AS deploy,"
|
||||||
SQL = SQL&" ISNULL(RI.r_name,'') AS r_name, "
|
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.base64_decode(RI.r_phone) AS r_phone, "
|
||||||
SQL = SQL&" dbo.codeLabel('gender', RI.r_gender, NULL) AS r_gender, "
|
SQL = SQL&" dbo.codeLabel('gender', RI.r_gender, NULL) AS r_gender, "
|
||||||
SQL = SQL&" ISNULL(RI.r_birth,'') AS r_birth, "
|
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&" 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('car', RI.r_car, NULL), '없음', '') AS r_car, "
|
||||||
SQL = SQL&" Replace(dbo.codeLabel('ex', RI.r_ex, NULL), '없음', '') AS r_ex, "
|
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.base64_decode(ISNULL(r_jumin,'')) AS r_jumin, "
|
||||||
SQL = SQL&" dbo.codeLabel('bank', RI.r_bank, NULL) AS r_bank, "
|
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&" 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&" 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&" 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&" 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&" 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_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 "
|
SQL = SQL&" LEFT JOIN R_Exit RE on RD.exit_cd = RE.e_full_it "
|
||||||
|
|||||||
@@ -28,8 +28,57 @@
|
|||||||
right: 0px;
|
right: 0px;
|
||||||
padding-right: 15px;
|
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>
|
</style>
|
||||||
<!--#include virtual="/Include/Top.asp"-->
|
<!--#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 fade" id="ListModal">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@@ -37,6 +86,7 @@
|
|||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
<h4 class="modal-title"><span class="nm"></span>(<span class="ph"></span>) 수정 및 삭제</h4>
|
<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_phone" id="r_phone" value=""/>
|
||||||
|
<input type="hidden" name="r_name" id="r_name" value=""/>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -67,15 +117,27 @@
|
|||||||
<option value="">선택</option>
|
<option value="">선택</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</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>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-warning" id="r_edit">수정</button>
|
<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_del">삭제</button>
|
||||||
|
<button type="button" class="btn btn-default" id="r_db_del">DB 삭제</button>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.modal-content -->
|
</div><!-- /.modal-content -->
|
||||||
</div><!-- /.modal-dialog -->
|
</div><!-- /.modal-dialog -->
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
<div class="col-xs-12 col-sm-10">
|
<div class="col-xs-12 col-sm-10">
|
||||||
|
<input type='file' id='excelUploadInput' accept='.xlsx,.xls' style='display:none;' />
|
||||||
<br/>
|
<br/>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
@@ -88,6 +150,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">PW</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>
|
||||||
@@ -101,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>
|
||||||
<th class="cth">주민번호</th>
|
<th class="cth">주민번호</th>
|
||||||
<th class="cth">은행</th>
|
<th class="cth">은행</th>
|
||||||
<th class="cth">계좌번호</th>
|
<th class="cth">계좌번호</th>
|
||||||
@@ -109,7 +173,8 @@
|
|||||||
<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">모바일 인증 여부(0: 미인증, 1: 인증)</th>
|
<th class="cth">관리자 추가 여부</th>
|
||||||
|
<th class="cth">모바일 인증 여부</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
@@ -133,6 +198,7 @@
|
|||||||
<script src="https://cdn.datatables.net/buttons/1.6.1/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.6.1/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.6.1/js/buttons.print.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.6.1/js/buttons.print.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.6.1/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.6.1/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function getFlag(){
|
function getFlag(){
|
||||||
var tmpFlag = $("#delListLoadChk").length == 0 ? "1" : ($("#delListLoadChk").prop("checked") ? "2" : "1");
|
var tmpFlag = $("#delListLoadChk").length == 0 ? "1" : ($("#delListLoadChk").prop("checked") ? "2" : "1");
|
||||||
@@ -146,7 +212,7 @@
|
|||||||
"url":"../Ajax/list.asp",
|
"url":"../Ajax/list.asp",
|
||||||
"data":function(d){
|
"data":function(d){
|
||||||
d.flag = getFlag();
|
d.flag = getFlag();
|
||||||
},
|
},
|
||||||
"dataType": "JSON",
|
"dataType": "JSON",
|
||||||
"async":"true",
|
"async":"true",
|
||||||
},
|
},
|
||||||
@@ -155,6 +221,7 @@
|
|||||||
{"data": "exit_nm"},
|
{"data": "exit_nm"},
|
||||||
{"data": "deploy"},
|
{"data": "deploy"},
|
||||||
{"data": "r_name"},
|
{"data": "r_name"},
|
||||||
|
{"data": "r_pass"},
|
||||||
{"data": "r_phone"},
|
{"data": "r_phone"},
|
||||||
{"data": "r_gender"},
|
{"data": "r_gender"},
|
||||||
{"data": "r_birth"},
|
{"data": "r_birth"},
|
||||||
@@ -168,6 +235,7 @@
|
|||||||
{"data": "r_position"},
|
{"data": "r_position"},
|
||||||
{"data": "r_car"},
|
{"data": "r_car"},
|
||||||
{"data": "r_ex"},
|
{"data": "r_ex"},
|
||||||
|
{"data": "r_stay"},
|
||||||
{"data": "r_jumin"},
|
{"data": "r_jumin"},
|
||||||
{"data": "r_bank"},
|
{"data": "r_bank"},
|
||||||
{"data": "r_account"},
|
{"data": "r_account"},
|
||||||
@@ -176,20 +244,39 @@
|
|||||||
{"data": "r_edu_addr"},
|
{"data": "r_edu_addr"},
|
||||||
{"data": "r_check"},
|
{"data": "r_check"},
|
||||||
{"data": "regdate"},
|
{"data": "regdate"},
|
||||||
|
{"data": "is_reg_admin"},
|
||||||
{"data": "chk"},
|
{"data": "chk"},
|
||||||
],
|
],
|
||||||
dom:'lBfrtip',
|
dom:'lBfrtip',
|
||||||
lengthCange:false,
|
lengthCange:false,
|
||||||
paging:false,
|
paging:false,
|
||||||
buttons: ['copy', 'excel', 'pdf', 'colvis'],
|
buttons: [
|
||||||
|
'copy',
|
||||||
|
'excel',
|
||||||
|
'colvis',
|
||||||
|
{
|
||||||
|
text: 'File Upload',
|
||||||
|
className: 'btn btn-primary',
|
||||||
|
action: function(){
|
||||||
|
$("#excelUploadInput").val("");
|
||||||
|
$("#excelUploadInput").trigger("click");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"scrollX": true,
|
"scrollX": true,
|
||||||
"scrollY": "700px",
|
"scrollY": "700px",
|
||||||
scrollCollapse: true,
|
scrollCollapse: true,
|
||||||
fixedHeader: true,
|
fixedHeader: true,
|
||||||
"rowCallback": function(row, data, index){
|
"rowCallback": function(row, data, index){
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#excelUploadInput").on("change", function(){
|
||||||
|
var file = this.files && this.files.length > 0 ? this.files[0] : null;
|
||||||
|
handleExcelUpload(file);
|
||||||
|
});
|
||||||
|
|
||||||
$("#r_list_wrapper").prepend("<div id='delListDiv'><label for='delListLoadChk' style='font-weight:bold;'>삭제 목록 보기 <input type='checkbox' value='2' id='delListLoadChk' /></label></div>");
|
$("#r_list_wrapper").prepend("<div id='delListDiv'><label for='delListLoadChk' style='font-weight:bold;'>삭제 목록 보기 <input type='checkbox' value='2' id='delListLoadChk' /></label></div>");
|
||||||
|
|
||||||
table.on('preXhr.dt', function(e, settings, data){
|
table.on('preXhr.dt', function(e, settings, data){
|
||||||
@@ -205,16 +292,18 @@
|
|||||||
$('#r_list tbody').on('click', 'tr', function () {
|
$('#r_list tbody').on('click', 'tr', function () {
|
||||||
var data = table.row( this ).data();
|
var data = table.row( this ).data();
|
||||||
var r_phone = data.r_phone;
|
var r_phone = data.r_phone;
|
||||||
|
var r_name = data.r_name;
|
||||||
|
|
||||||
$("#ListModal").modal("show");
|
$("#ListModal").modal("show");
|
||||||
|
|
||||||
$("#r_phone").val(r_phone);
|
$("#r_phone").val(r_phone);
|
||||||
|
$("#r_name").val(r_name);
|
||||||
$(".nm").text(data.r_name);
|
$(".nm").text(data.r_name);
|
||||||
$(".ph").text(data.r_phone);
|
$(".ph").text(data.r_phone);
|
||||||
$(".radioBtn").children("a").each(function(){
|
$(".radioBtn").children("a").each(function(){
|
||||||
if($(this).text() == data.r_position){
|
if($(this).text() == data.r_position){
|
||||||
$(this).removeClass("notActive");
|
$(this).removeClass("notActive");
|
||||||
$(this).addClass("Active");
|
$(this).addClass("Active");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -242,7 +331,14 @@
|
|||||||
|
|
||||||
$(".district").text(data.r_district);
|
$(".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();
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
@@ -250,7 +346,7 @@
|
|||||||
var r_area = $(this).val();
|
var r_area = $(this).val();
|
||||||
if(r_area != ""){
|
if(r_area != ""){
|
||||||
AjaxSelect($("#r_district"), "district", r_area);
|
AjaxSelect($("#r_district"), "district", r_area);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#r_edit").on("click", function(){
|
$("#r_edit").on("click", function(){
|
||||||
@@ -263,8 +359,35 @@
|
|||||||
alert("지원 지역을 선택하여 주십시오.");
|
alert("지원 지역을 선택하여 주십시오.");
|
||||||
return false;
|
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{
|
}else{
|
||||||
alert("수정 취소");
|
alert("수정 취소");
|
||||||
}
|
}
|
||||||
@@ -278,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(){
|
$(".radioBtn").each(function(){
|
||||||
$(this).children('a').on('click', function(){
|
$(this).children('a').on('click', function(){
|
||||||
var sel = $(this).data('title');
|
var sel = $(this).data('title');
|
||||||
var tog = $(this).data('toggle');
|
var tog = $(this).data('toggle');
|
||||||
|
|
||||||
$('#'+tog).prop('value', sel);
|
$('#'+tog).prop('value', sel);
|
||||||
|
|
||||||
$('a[data-toggle="'+tog+'"]').not('[data-title="'+sel+'"]').removeClass('active').addClass('notActive');
|
$('a[data-toggle="'+tog+'"]').not('[data-title="'+sel+'"]').removeClass('active').addClass('notActive');
|
||||||
$('a[data-toggle="'+tog+'"][data-title="'+sel+'"]').removeClass('notActive').addClass('active');
|
$('a[data-toggle="'+tog+'"][data-title="'+sel+'"]').removeClass('notActive').addClass('active');
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$("#ListModal").on("hidden.bs.modal", function(e){
|
$("#ListModal").on("hidden.bs.modal", function(e){
|
||||||
$(".radioBtn").children("a").each(function(){
|
$(".radioBtn").children("a").each(function(){
|
||||||
$(this).removeClass("Active");
|
$(this).removeClass("Active");
|
||||||
@@ -301,7 +437,7 @@
|
|||||||
$("#r_district").val("");
|
$("#r_district").val("");
|
||||||
$("#r_edu").val("");
|
$("#r_edu").val("");
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//Select box, Text ajax
|
//Select box, Text ajax
|
||||||
@@ -325,18 +461,442 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function AjaxUpdate(gubun, phone, position, area, district, edu){
|
function handleExcelUpload(file){
|
||||||
|
if(!file) return;
|
||||||
|
|
||||||
|
var fileName = (file.name || "").toLowerCase();
|
||||||
|
if(!/\.xlsx?$/.test(fileName)){
|
||||||
|
alert("엑셀 파일만 가능합니다. (xlsx, xls)");
|
||||||
|
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];
|
||||||
|
var secondSheetName = workbook.SheetNames[1];
|
||||||
|
var firstSheet = workbook.Sheets[firstSheetName];
|
||||||
|
var secondSheet = workbook.Sheets[secondSheetName];
|
||||||
|
var upsertUserRows = XLSX.utils.sheet_to_json(firstSheet, { defval: "" });
|
||||||
|
var updateDeployRows = secondSheet ? XLSX.utils.sheet_to_json(secondSheet, { defval: "" }) : [];
|
||||||
|
|
||||||
|
runUploadedExcelTask(upsertUserRows, updateDeployRows);
|
||||||
|
}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
|
||||||
|
.filter(user => user.gubun === "insert")
|
||||||
|
.map(user => user.r_phone);
|
||||||
|
|
||||||
|
var updateDeploys = validateDeployRow(updateDeployRows, insertPhones);
|
||||||
|
|
||||||
|
if(upsertUsers != undefined && updateDeploys != undefined){
|
||||||
|
var userResult = AjaxExcelUserUpdate(upsertUsers);
|
||||||
|
var deployResult = AjaxExcelDeployUpdate(updateDeploys);
|
||||||
|
|
||||||
|
var completeMessage = "업로드 완료\n";
|
||||||
|
completeMessage += `지원자: 추가(${userResult.insert}), 수정(${userResult.update}), 실패(${userResult.fail})\n`;
|
||||||
|
completeMessage += `투표소: 배정(${deployResult.insert}), 해제(${deployResult.delete}), 실패(${deployResult.fail})`;
|
||||||
|
alert(completeMessage);
|
||||||
|
|
||||||
|
var dt = $("#r_list").DataTable();
|
||||||
|
dt.ajax.reload(null, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function returnError(sheetName, rowNum, message){
|
||||||
|
alert(`[${sheetName}] ${(rowNum + 2)}행 ${message}`);
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
function normalizeCode(v, len) {
|
||||||
|
var s = String(v == null ? "" : v).trim();
|
||||||
|
if (s === "") return "NULL";
|
||||||
|
return len ? s.padStart(len, "0") : s;
|
||||||
|
}
|
||||||
|
|
||||||
|
function validateUserRow(upsertUserRows){
|
||||||
|
var upsertUsers = [];
|
||||||
|
var codeTable = AjaxGetCode();
|
||||||
|
|
||||||
|
var codeMap = {
|
||||||
|
position: {},
|
||||||
|
area: {},
|
||||||
|
district: {}
|
||||||
|
};
|
||||||
|
|
||||||
|
for (var c = 0; c < codeTable.length; c++) {
|
||||||
|
var code = codeTable[c];
|
||||||
|
if (code && code.gubun && codeMap[code.gubun]) {
|
||||||
|
if(code.gubun == "position"){
|
||||||
|
codeMap[code.gubun][String(code.r_nm).trim()] = String(code.r_cd).trim();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
codeMap[code.gubun][String(code.r_cd).trim()] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var i = 0; i < upsertUserRows.length; i++) {
|
||||||
|
var row = upsertUserRows[i];
|
||||||
|
|
||||||
|
var gubun = String(row["구분"]).trim() == "신규" ? "insert" : "update";
|
||||||
|
var r_name = normalizeCode(row["이름"]);
|
||||||
|
var r_phone = normalizeCode(row["연락처"]);
|
||||||
|
var r_position = normalizeCode(row["직책"]);
|
||||||
|
var r_area = normalizeCode(row["지역"]);
|
||||||
|
var r_district = normalizeCode(row["권역"]);
|
||||||
|
|
||||||
|
if (r_phone == "NULL") {
|
||||||
|
return returnError("지원자 정보", i, "연락처는 필수 입니다.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (r_phone.charAt(0) !== "0") {
|
||||||
|
r_phone = "0" + r_phone;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (r_district != "NULL" && r_area == "NULL") {
|
||||||
|
return returnError("지원자 정보", i, "권역값이 있으면 지역은 필수입니다.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (r_position != "NULL" && !codeMap.position[r_position]) {
|
||||||
|
return returnError("지원자 정보", i, "직책이 올바르지 않습니다.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (r_area != "NULL" && !codeMap.area[r_area]) {
|
||||||
|
return returnError("지원자 정보", i, "지역이 올바르지 않습니다.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (r_district != "NULL") {
|
||||||
|
if(r_district.substring(0, r_area.length) != r_area) {
|
||||||
|
return returnError("지원자 정보", i, "지역과 권역이 맞지 않습니다.");
|
||||||
|
}
|
||||||
|
if(!codeMap.district[r_district]){
|
||||||
|
return returnError("지원자 정보", i, "권역이 올바르지 않습니다.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (gubun == "insert") {
|
||||||
|
if (r_name == "NULL" || r_position == "NULL" || r_area == "NULL" || r_district == "NULL") {
|
||||||
|
return returnError("지원자 정보", i, "신규지원자는 모든 정보가 필수 입니다.");
|
||||||
|
}
|
||||||
|
if (AjaxCheckExistPhone(r_phone)) {
|
||||||
|
return returnError("지원자 정보", i, "신규지원자(연락처 - "+r_phone+")는 이미 존재하여 추가할 수 없습니다.");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (!AjaxCheckExistPhone(r_phone)) {
|
||||||
|
return returnError("지원자 정보", i, "없는 사용자(연락처 - "+r_phone+") 입니다.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
upsertUsers.push({
|
||||||
|
gubun: gubun,
|
||||||
|
r_name: r_name,
|
||||||
|
r_phone: r_phone,
|
||||||
|
r_position: codeMap.position[r_position],
|
||||||
|
r_area: r_area,
|
||||||
|
r_district: r_district
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return upsertUsers;
|
||||||
|
}
|
||||||
|
|
||||||
|
function validateDeployRow(updateDeployRows, insertPhones){
|
||||||
|
var updateDeploys = [];
|
||||||
|
var exitTable = AjaxGetExit();
|
||||||
|
var exitCodeMap = {};
|
||||||
|
var normalizeName = function(v){
|
||||||
|
return String(v == null ? "" : v).trim().replace(/\s+/g, " ");
|
||||||
|
};
|
||||||
|
|
||||||
|
for (var e = 0; e < exitTable.length; e++) {
|
||||||
|
var exitRow = exitTable[e];
|
||||||
|
if (exitRow && exitRow.e_full_it != null) {
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var i = 0; i < updateDeployRows.length; i++) {
|
||||||
|
var row = updateDeployRows[i];
|
||||||
|
|
||||||
|
var gubunRaw = String(row["구분"] == null ? "" : row["구분"]).trim();
|
||||||
|
var gubun = gubunRaw == "해제" ? "delete" : "insert";
|
||||||
|
var r_phone = normalizeCode(row["연락처"]);
|
||||||
|
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 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, "없는 사용자(연락처 - "+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,
|
||||||
|
exit_cd: exit_cd
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return updateDeploys;
|
||||||
|
}
|
||||||
|
|
||||||
|
function AjaxGetCode(){
|
||||||
|
var result = [];
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url:"../Ajax/AjaxSelect.asp",
|
||||||
|
method:"POST",
|
||||||
|
async:false,
|
||||||
|
data:{"sel_gubun" : "upload_use_code"},
|
||||||
|
success:function(res){
|
||||||
|
if(res){
|
||||||
|
result = JSON.parse(res);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error:function(err){
|
||||||
|
alert("System Error\n관리자 문의");
|
||||||
|
console.error(err);
|
||||||
|
result = [];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
function AjaxGetExit(){
|
||||||
|
var result = [];
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url:"../Ajax/AjaxExit.asp",
|
||||||
|
method:"POST",
|
||||||
|
async:false,
|
||||||
|
data:{"gubun" : "json_list"},
|
||||||
|
success:function(res){
|
||||||
|
if(res){
|
||||||
|
result = JSON.parse(res);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error:function(err){
|
||||||
|
alert("System Error\n관리자 문의");
|
||||||
|
console.error(err);
|
||||||
|
result = [];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
function AjaxCheckExistPhone(r_phone){
|
||||||
|
var exists = false;
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url:"/Ajax/AjaxSelect.asp",
|
||||||
|
method:"POST",
|
||||||
|
async:false,
|
||||||
|
data:{
|
||||||
|
"sel_gubun" : "phone_exist",
|
||||||
|
"r_phone" : r_phone,
|
||||||
|
},
|
||||||
|
success:function(res){
|
||||||
|
exists = (res == "EXIST");
|
||||||
|
},
|
||||||
|
error:function(res){
|
||||||
|
exists = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return exists;
|
||||||
|
}
|
||||||
|
|
||||||
|
function AjaxExcelUserUpdate(upsertRows){
|
||||||
|
if(upsertRows == undefined) return {"insert": 0, "update": 0, "fail": 0};
|
||||||
|
|
||||||
|
var insertCnt = 0;
|
||||||
|
var updateCnt = 0;
|
||||||
|
var failCnt = 0;
|
||||||
|
|
||||||
|
upsertRows.forEach((upsertRow) => {
|
||||||
|
$.ajax({
|
||||||
|
url:"/Ajax/Redit.asp",
|
||||||
|
method:"POST",
|
||||||
|
async:false,
|
||||||
|
data:{
|
||||||
|
"gubun" : upsertRow.gubun,
|
||||||
|
"r_name" : upsertRow.r_name,
|
||||||
|
"r_phone" : upsertRow.r_phone,
|
||||||
|
"r_position" : upsertRow.r_position,
|
||||||
|
"r_area" : upsertRow.r_area,
|
||||||
|
"r_district" : upsertRow.r_district,
|
||||||
|
"r_edu" : "NULL",
|
||||||
|
"new_r_phone" : "NULL",
|
||||||
|
"new_r_pass" : "NULL",
|
||||||
|
},
|
||||||
|
success:function(res){
|
||||||
|
if(res == "1"){
|
||||||
|
if(upsertRow.gubun == "insert") {
|
||||||
|
insertCnt++;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
updateCnt++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
failCnt++;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error:function(res){
|
||||||
|
return failCnt++;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
return {"insert": insertCnt, "update": updateCnt, "fail": failCnt};
|
||||||
|
}
|
||||||
|
|
||||||
|
function AjaxExcelDeployUpdate(updateRows){
|
||||||
|
if(updateRows == undefined) return {"insert": 0, "delete": 0, "fail": 0};
|
||||||
|
|
||||||
|
var insertCnt = 0;
|
||||||
|
var deleteCnt = 0;
|
||||||
|
var failCnt = 0;
|
||||||
|
|
||||||
|
updateRows.forEach((updateRow) => {
|
||||||
|
$.ajax({
|
||||||
|
url:"/Ajax/DeployEdit.asp",
|
||||||
|
method:"POST",
|
||||||
|
async:false,
|
||||||
|
data:{
|
||||||
|
"gubun" : updateRow.gubun,
|
||||||
|
"r_phone" : updateRow.r_phone,
|
||||||
|
"exit_cd" : updateRow.exit_cd,
|
||||||
|
},
|
||||||
|
success:function(res){
|
||||||
|
if(res == "1"){
|
||||||
|
if(updateRow.gubun == "insert") {
|
||||||
|
insertCnt++;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
deleteCnt++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
failCnt++;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error:function(res){
|
||||||
|
return failCnt++;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
return {"insert": insertCnt, "delete": deleteCnt, "fail": failCnt};
|
||||||
|
}
|
||||||
|
|
||||||
|
function AjaxDelete(gubun, phone, name){
|
||||||
|
if(gubun != "db-delete" || !phone || !name){
|
||||||
|
alert("System Error");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url:"/Ajax/Redit.asp",
|
url:"/Ajax/Redit.asp",
|
||||||
method:"POST",
|
method:"POST",
|
||||||
async:false,
|
async:false,
|
||||||
data:{
|
data:{
|
||||||
"gubun" : gubun,
|
"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",
|
||||||
|
async:false,
|
||||||
|
data:{
|
||||||
|
"gubun" : gubun,
|
||||||
|
"r_name" : "NULL",
|
||||||
"r_phone" : phone,
|
"r_phone" : phone,
|
||||||
"r_position" : position,
|
"r_position" : position,
|
||||||
"r_area" : area,
|
"r_area" : area,
|
||||||
"r_district" : district,
|
"r_district" : district,
|
||||||
"r_edu" : edu
|
"r_edu" : edu,
|
||||||
|
"new_r_phone" : new_r_phone,
|
||||||
|
"new_r_pass" : new_r_pass,
|
||||||
},
|
},
|
||||||
success:function(res){
|
success:function(res){
|
||||||
if(res == "1"){
|
if(res == "1"){
|
||||||
@@ -357,8 +917,7 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Dim r_area : r_area = request("r_area")
|
|||||||
Dim r_district : r_district = request("r_district")
|
Dim r_district : r_district = request("r_district")
|
||||||
Dim r_car : r_car = request("r_car")
|
Dim r_car : r_car = request("r_car")
|
||||||
Dim r_ex : r_ex = request("r_ex")
|
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_covid : r_covid = request("r_covid")
|
||||||
Dim r_agree1 : r_agree1 = request("r_agree1")
|
Dim r_agree1 : r_agree1 = request("r_agree1")
|
||||||
@@ -72,6 +73,9 @@ Select case gubun
|
|||||||
if r_ex <> "" Then
|
if r_ex <> "" Then
|
||||||
SQL = SQL&" r_ex = '"&r_ex&"',"&VbCrlf
|
SQL = SQL&" r_ex = '"&r_ex&"',"&VbCrlf
|
||||||
End If
|
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_bank = '"&r_bank&"',"&VbCrlf
|
||||||
SQL = SQL&" r_account = dbo.base64_encode('"&r_account&"'),"&VbCrlf
|
SQL = SQL&" r_account = dbo.base64_encode('"&r_account&"'),"&VbCrlf
|
||||||
SQL = SQL&" r_jumin = dbo.base64_encode('"&r_jumin&"'),"&VbCrlf
|
SQL = SQL&" r_jumin = dbo.base64_encode('"&r_jumin&"'),"&VbCrlf
|
||||||
|
|||||||
@@ -18,33 +18,33 @@ case "login"
|
|||||||
Dim r_id : r_id = Request("r_id")
|
Dim r_id : r_id = Request("r_id")
|
||||||
Dim r_pw : r_pw = Request("r_pw")
|
Dim r_pw : r_pw = Request("r_pw")
|
||||||
|
|
||||||
|
Session("name") = ""
|
||||||
|
Session("phone") = ""
|
||||||
|
Session("r_phone") = ""
|
||||||
|
Session("position") = ""
|
||||||
|
|
||||||
DBConnect()
|
DBConnect()
|
||||||
|
|
||||||
SQL = ""
|
SQL = ""
|
||||||
SQL = SQL&" select r_name, dbo.base64_decode(r_phone) phone, r_phone, r_position, "&VbCrlf
|
SQL = SQL&" select r_name, dbo.base64_decode(r_phone) phone, r_phone, r_position, Flag, chk as mobile_check "&VbCrlf
|
||||||
SQL = SQL&" Flag from exitpoll.dbo.R_info "&VbCrlf
|
SQL = SQL&" from exitpoll.dbo.R_info "&VbCrlf
|
||||||
SQL = SQL&" where r_name = '"&r_id&"' and dbo.base64_decode(r_pass) = '"&r_pw&"' "&VbCrlf
|
SQL = SQL&" where r_name = '"&r_id&"' and dbo.base64_decode(r_pass) = '"&r_pw&"' "&VbCrlf
|
||||||
|
|
||||||
Objdb.Open SQL,DBConn,3,1,1
|
Objdb.Open SQL,DBConn,3,1,1
|
||||||
if not Objdb.eof Then
|
if not Objdb.eof Then
|
||||||
If objdb("Flag") = "1" Then
|
IF objdb("mobile_check") = "0" Then
|
||||||
|
Response.write "NotMobileCheck"
|
||||||
|
|
||||||
|
ElseIf objdb("Flag") = "1" Then
|
||||||
Session("name") = objdb("r_name")
|
Session("name") = objdb("r_name")
|
||||||
Session("phone") = objdb("phone")
|
Session("phone") = objdb("phone")
|
||||||
Session("r_phone") = objdb("r_phone")
|
Session("r_phone") = objdb("r_phone")
|
||||||
Session("position") = objdb("r_position")
|
Session("position") = objdb("r_position")
|
||||||
Response.Write "True"
|
Response.Write "True"
|
||||||
Else
|
Else
|
||||||
Session("name") = ""
|
|
||||||
Session("phone") = ""
|
|
||||||
Session("r_phone") = ""
|
|
||||||
Session("position") = ""
|
|
||||||
Response.write "X"
|
Response.write "X"
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
Session("name") = ""
|
|
||||||
Session("phone") = ""
|
|
||||||
Session("r_phone") = ""
|
|
||||||
Session("position") = ""
|
|
||||||
Response.Write "False"
|
Response.Write "False"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -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 & "' "
|
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
|
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
|
End If
|
||||||
Objdb.Open SQL,DBConn,3,1,1
|
Objdb.Open SQL,DBConn,3,1,1
|
||||||
if not Objdb.eof Then
|
if not Objdb.eof Then
|
||||||
@@ -159,7 +163,8 @@ case "member_list"
|
|||||||
SQL = ""
|
SQL = ""
|
||||||
SQL = SQL&" SELECT RI.r_name,RI.r_sd,RI.r_sgg, dbo.base64_decode(RI.r_phone) AS r_phone, "
|
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&" 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&" 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
|
SQL = SQL&" WHERE RD.exit_cd = '" & exit_cd & "' AND RI.r_position IN (" & Request("r_position") & ") "&VbCrlf
|
||||||
Objdb.Open SQL,DBConn,3,1,1
|
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><a href='tel:"&objdb("r_phone")&"'>"&objdb("r_phone")&"</a></td>"
|
||||||
Response.write " <td>"&objdb("r_gender")&"</td>"
|
Response.write " <td>"&objdb("r_gender")&"</td>"
|
||||||
Response.write " <td>"&objdb("r_sd")&" "&objdb("r_sgg")&"</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>"
|
Response.write "</tr>"
|
||||||
objdb.movenext
|
objdb.movenext
|
||||||
wend
|
wend
|
||||||
|
|||||||
380
Recruit/Identification/class.CryptSHA256.asp
Normal 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
|
||||||
|
%>
|
||||||
@@ -21,7 +21,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <script src="./jquery-1.12.4.js"></script>-->
|
<!-- <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">
|
<script type="text/javascript">
|
||||||
|
|
||||||
/*****************************************************************************************
|
/*****************************************************************************************
|
||||||
@@ -32,14 +33,19 @@
|
|||||||
/*****************************************************************************************
|
/*****************************************************************************************
|
||||||
- 필수 입력 항목
|
- 필수 입력 항목
|
||||||
*****************************************************************************************/
|
*****************************************************************************************/
|
||||||
var PAY_MODE = "10"; //연동시 테스트,실결제구분 ( 00 : 테스트결제, 10 : 실거래결제 )
|
var PAY_MODE = "10"; //연동시 테스트,실결제구분 ( 00 : 테스트결제, 10 : 실거래결제 )
|
||||||
var Siteurl = "kric.com"; //가맹점도메인
|
var Siteurl = "kric.com"; //가맹점도메인
|
||||||
var Tradeid = Math.random().toString(36); //가맹점거래번호 (유니크한 값 세팅)
|
<%
|
||||||
|
' 가맹점거래번호 : 년월일시분초(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"; //서비스아이디
|
var CI_SVCID = "240226143538"; //서비스아이디
|
||||||
//240226143538 <- 리쿠르팅
|
var CI_Mode = "61"; // 61:SMS발송 67:SMS미발송 (기타 모드는 연동매뉴얼 참조)
|
||||||
//211029108678 <- 키위
|
|
||||||
var CI_Mode = "61"; // 61:SMS발송 67:SMS미발송 (기타 모드는 연동매뉴얼 참조)
|
|
||||||
|
|
||||||
<%
|
<%
|
||||||
Dim sReturnUrl , sErrorUrl
|
Dim sReturnUrl , sErrorUrl
|
||||||
@@ -53,24 +59,25 @@
|
|||||||
%>
|
%>
|
||||||
|
|
||||||
<%
|
<%
|
||||||
dim source, Okurl
|
dim source, Okurl, Notiurl
|
||||||
|
|
||||||
source = Request.QueryString("source")
|
source = Request.QueryString("source")
|
||||||
|
|
||||||
If source = "signin" Then
|
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
|
Else
|
||||||
' 기본값: signup 또는 쿼리스트링 없음
|
' 기본값: 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
|
End If
|
||||||
%>
|
%>
|
||||||
|
|
||||||
var Okurl = "<%=Okurl%>"; // 성공 URL
|
var Okurl = "<%=Okurl%>"; // 성공 URL
|
||||||
/*var Okurl = "<%=sReturnUrl%><%= Request.ServerVariables("HTTP_HOST") %>/Identification/phoneIdentityVerificationProc.asp";//성공URL : 완료통보페이지 */
|
var Notiurl = "<%=Okurl%>"; //성공URL : 완료통보페이지
|
||||||
var Notiurl = ""; //성공URL : 완료통보페이지
|
|
||||||
var Cryptyn = "Y"; //암호화 사용 여부 (default : Y)
|
var Cryptyn = "Y"; //암호화 사용 여부 (default : Y)
|
||||||
var Keygb = "1"; //암호화 Key 구분 (1 or 2 : 가맹점 관리자 등록 후 사용)
|
var Keygb = "1"; //암호화 Key 구분 (1 or 2 : 가맹점 관리자 등록 후 사용)
|
||||||
|
var Cryptstring = Tradeid + Okurl // 암호화 사용 시 암호화된 스트링
|
||||||
/*****************************************************************************************
|
/*****************************************************************************************
|
||||||
- 선택 입력 항목
|
- 선택 입력 항목
|
||||||
*****************************************************************************************/
|
*****************************************************************************************/
|
||||||
@@ -83,11 +90,8 @@
|
|||||||
var DI_CODE = ""; //DI웹사이트코드 (12byte)
|
var DI_CODE = ""; //DI웹사이트코드 (12byte)
|
||||||
var CI_FIXCOMMID = ""; //이동통신사 고정 시 사용
|
var CI_FIXCOMMID = ""; //이동통신사 고정 시 사용
|
||||||
var Closeurl = "<%=sErrorUrl%><%= Request.ServerVariables("HTTP_HOST") %>/main/Recruit.asp"; //취소버튼 클릭 시 이동할 페이지 (예:http://www.mcash.co.kr/failurl.jsp)
|
var Closeurl = "<%=sErrorUrl%><%= Request.ServerVariables("HTTP_HOST") %>/main/Recruit.asp"; //취소버튼 클릭 시 이동할 페이지 (예:http://www.mcash.co.kr/failurl.jsp)
|
||||||
|
|
||||||
|
|
||||||
var MSTR = ""; //가맹점콜백변수
|
var MSTR = ""; //가맹점콜백변수
|
||||||
|
|
||||||
//가맹점에서 추가적으로 파라미터가 필요한 경우 사용하며 &, % 는 사용불가 ( 예 : MSTR="a=1|b=2|c=3" )
|
|
||||||
/*****************************************************************************************
|
/*****************************************************************************************
|
||||||
- 디자인 관련 선택항목 ( 향후 변경될 수 있습니다 )
|
- 디자인 관련 선택항목 ( 향후 변경될 수 있습니다 )
|
||||||
*****************************************************************************************/
|
*****************************************************************************************/
|
||||||
@@ -95,42 +99,71 @@
|
|||||||
var CALL_TYPE = "SELF"; //결제창 호출방식 (P: 팝업-default, SELF: 페이지전환, I: 아이프레임)
|
var CALL_TYPE = "SELF"; //결제창 호출방식 (P: 팝업-default, SELF: 페이지전환, I: 아이프레임)
|
||||||
var IFRAME_NAME = "iframe_phoneIdentity"; // 결제창을 iframe으로 호출할 경우 iframe명칭 세팅
|
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 () {
|
$(function () {
|
||||||
|
|
||||||
var form = $("<form/>", {"name": "payForm", "accept-charset": "euc-kr"});
|
var form = $("<form/>", {"name": "payForm", "accept-charset": "euc-kr"});
|
||||||
form.appendTo('body');
|
form.appendTo('body');
|
||||||
|
|
||||||
form.append($("<input />", {"type": "hidden", "id": "CASH_GB", "name":"CASH_GB", "value": CASH_GB}));
|
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": "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": "Siteurl", "name": "Siteurl", "value": Siteurl }));
|
||||||
form.append($("<input />", { "type": "hidden", "id": "Tradeid", "name": "Tradeid", "value": Tradeid }));
|
form.append($("<input />", { "type": "hidden", "id": "Tradeid", "name": "Tradeid", "value": Tradeid }));
|
||||||
|
form.append($("<input />", { "type": "hidden", "id": "Notiurl", "name": "Notiurl", "value": Notiurl }));
|
||||||
form.append($("<input />", { "type": "hidden", "id": "CI_SVCID", "name": "CI_SVCID", "value": CI_SVCID }));
|
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": "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": "Callback", "name": "Callback", "value": Callback }));
|
||||||
form.append($("<input />", { "type": "hidden", "id": "Smstext", "name": "Smstext", "value": Smstext }));
|
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": "Lmstitle", "name": "Lmstitle", "value": Lmstitle }));
|
||||||
form.append($("<input />", { "type": "hidden", "id": "Lmstext", "name": "Lmstext", "value": Lmstext }));
|
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 }));
|
AUTH_PAYMENT(document.payForm);
|
||||||
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);
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -1,192 +1,139 @@
|
|||||||
|
<!-- #include file = "class.CryptSHA256.asp" -->
|
||||||
|
|
||||||
<%
|
<%
|
||||||
DIM pResultcd : pResultcd = Request("Resultcd") '0000: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
DIM Resultcd : Resultcd = 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 Resultmsg : Resultmsg = Request("Resultmsg") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DEBD><EFBFBD>:<3A>ѱ<EFBFBD>(euc-kr)(<28><><EFBFBD><EFBFBD>)
|
||||||
DIM pCryptyn : pCryptyn = Request("Cryptyn") '"Y"
|
DIM Mobilid : Mobilid = Request("Mobilid") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ŷ<EFBFBD><C5B7><EFBFBD>ȣ
|
||||||
DIM pKeygb : pKeygb = Request("Keygb") '"0", "1", "2"
|
|
||||||
DIM pSvcid : pSvcid = Request("Svcid")
|
DIM Signdate : Signdate = Request("Signdate") '<27>ŷ<EFBFBD><C5B7><EFBFBD><EFBFBD><EFBFBD>
|
||||||
DIM pMobilid : pMobilid = Request("Mobilid")
|
DIM Svcid : Svcid = Request("Svcid") '<27><><EFBFBD><EFBFBD><F1BDBABE>̵<EFBFBD>
|
||||||
DIM pSigndate : pSigndate = Request("Signdate")
|
DIM Tradeid : Tradeid = Request("Tradeid") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ŷ<EFBFBD><C5B7><EFBFBD>ȣ
|
||||||
DIM pTradeid : pTradeid = Request("Tradeid")
|
DIM MSTR : MSTR = Request("MSTR") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ݹ麯<DDB9><E9BAAF>
|
||||||
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 Name : Name = Request("Name") '<27≯<EFBFBD>:<3A>ѱ<EFBFBD>(euc-kr)(<28><>ȣ<EFBFBD><C8A3>)
|
||||||
DIM pCommid : pCommid = Request("Commid") '<27><><EFBFBD>Ż<EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
|
DIM No : No = Request("No") '<27><EFBFBD><DEB4><EFBFBD><EFBFBD><EFBFBD>ȣ(<28><>ȣ<EFBFBD><C8A3>)
|
||||||
DIM pSocialno : pSocialno = Request("Socialno") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
|
DIM Commid : Commid = Request("Commid") '<27><><EFBFBD>Ż<EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
|
||||||
DIM pSex : pSex = Request("Sex") '<27><><EFBFBD><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
|
DIM Socialno : Socialno = Request("Socialno") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
|
||||||
DIM pForeigner : pForeigner = Request("Foreigner") '<27>ܱ<EFBFBD><DCB1>ο<EFBFBD><EFBFBD><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
|
DIM Sex : Sex = Request("Sex") '<27><EFBFBD><EFBFBD><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
|
||||||
DIM pCi : pCi = Request("Ci") 'CI(<28><>ȣ<EFBFBD><C8A3>)
|
DIM Foreigner : Foreigner = Request("Foreigner") '<27>ܱ<EFBFBD><DCB1>ο<EFBFBD><CEBF><EFBFBD>(<28><>ȣ<EFBFBD><C8A3>)
|
||||||
DIM pDi : pDi = Request("Di") 'DI(<28><>ȣ<EFBFBD><C8A3>)
|
DIM Ci : Ci = Request("Ci") 'CI(<28><>ȣ<EFBFBD><C8A3>)
|
||||||
DIM pCI_Mode : pCI_Mode = Request("CI_Mode")
|
DIM Di : Di = Request("Di") 'DI(<28><>ȣ<EFBFBD><C8A3>)
|
||||||
DIM pMSTR : pMSTR = Request("MSTR")
|
DIM CI_Mode : CI_Mode = Request("CI_Mode") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>
|
||||||
DIM pMac : pMac = Request("Mac") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><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><>
|
'DLL <20><>ġ<EFBFBD>ؾ<EFBFBD> <20><>
|
||||||
Set McashCipher = Server.CreateObject("McashCipher.Confirm.1")
|
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
|
|
||||||
|
|
||||||
'####################################################################################
|
Dim keygb0, keygb1, cryptKey
|
||||||
' <20>Ʒ<EFBFBD><C6B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܼ<EFBFBD><DCBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
keygb0 = "240226143538"
|
||||||
' <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>.
|
keygb1 = "KriPol24"
|
||||||
'####################################################################################
|
|
||||||
%>
|
|
||||||
|
|
||||||
<%
|
cryptKey = Left(keygb1, 8) & Left(keygb0, 8)
|
||||||
dim source
|
'cryptKey = "KriPol2424022614"
|
||||||
source = Request.QueryString("source")
|
|
||||||
%>
|
|
||||||
|
|
||||||
<html>
|
McashCipher.TradeId = cryptKey
|
||||||
<head>
|
McashCipher.InputData = Resultcd
|
||||||
<meta charset="euc-kr">
|
retval = McashCipher.decodeString
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
Resultcd = McashCipher.outputData
|
||||||
<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%>";
|
|
||||||
|
|
||||||
if (pResultcd == "0000") {
|
McashCipher.TradeId = cryptKey
|
||||||
/*
|
McashCipher.InputData = Resultmsg
|
||||||
console.log('Resultcd : ' + pResultcd);
|
retval = McashCipher.decodeString
|
||||||
console.log('Resultmsg : ' + pResultmsg);
|
Resultmsg = McashCipher.outputData
|
||||||
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('-----------------------------------------');
|
|
||||||
|
|
||||||
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>θ<EFBFBD>â <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
|
McashCipher.TradeId = cryptKey
|
||||||
$("#r_phone", opener.document).val(pNo);
|
McashCipher.InputData = Mobilid
|
||||||
$("#r_name", opener.document).val(pName);
|
retval = McashCipher.decodeString
|
||||||
$("#r_gender", opener.document).val(pSex == "M" ? "1" : "2");
|
Mobilid = McashCipher.outputData
|
||||||
|
|
||||||
if (pSex == "M") {
|
McashCipher.TradeId = cryptKey
|
||||||
$("a[data-toggle='r_gender'][data-title='1']", opener.document).removeClass("notActive").addClass("active");
|
McashCipher.InputData = Signdate
|
||||||
$("a[data-toggle='r_gender'][data-title='2']", opener.document).removeClass("active").addClass("notActive");
|
retval = McashCipher.decodeString
|
||||||
} else {
|
Signdate = McashCipher.outputData
|
||||||
$("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"
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#r_birth", opener.document).val(pSocialno);
|
McashCipher.TradeId = cryptKey
|
||||||
$("#chk", opener.document).val("1");
|
McashCipher.InputData = Svcid
|
||||||
$("#r_chk", opener.document).hide();
|
retval = McashCipher.decodeString
|
||||||
|
Svcid = McashCipher.outputData
|
||||||
|
|
||||||
<% If source = "signin" Then %>
|
McashCipher.TradeId = cryptKey
|
||||||
// source<63><65> signin<69><6E> <20><><EFBFBD><EFBFBD> DB<44><42> <20><><EFBFBD><EFBFBD>
|
McashCipher.InputData = Tradeid
|
||||||
$.ajax({
|
retval = McashCipher.decodeString
|
||||||
url: "/Ajax/AjaxMobileCheck.asp",
|
Tradeid = McashCipher.outputData
|
||||||
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>.");
|
|
||||||
window.open("about:blank", "_self").close();
|
|
||||||
} 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>.");
|
|
||||||
window.open("about:blank", "_self").close();
|
|
||||||
} else {
|
|
||||||
alert("System Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
|
|
||||||
window.open("about:blank", "_self").close();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
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 {
|
McashCipher.TradeId = cryptKey
|
||||||
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> ó<><C3B3>
|
McashCipher.InputData = MSTR
|
||||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>߽<EFBFBD><DFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD>: " + pResultmsg);
|
retval = McashCipher.decodeString
|
||||||
window.open("about:blank", "_self").close();
|
MSTR = McashCipher.outputData
|
||||||
}
|
|
||||||
</script>
|
McashCipher.TradeId = cryptKey
|
||||||
</body>
|
McashCipher.InputData = Name
|
||||||
</html>
|
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
|
||||||
|
%>
|
||||||
242
Recruit/Identification/phoneIdentityVerificationProcOkUrl.asp
Normal 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>
|
||||||
|
Before Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 646 KiB |
|
Before Width: | Height: | Size: 2.5 MiB |
|
Before Width: | Height: | Size: 608 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
BIN
Recruit/Image/about_img_2026.jpg
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
|
Before Width: | Height: | Size: 398 KiB |
|
Before Width: | Height: | Size: 398 KiB |
|
Before Width: | Height: | Size: 398 KiB |
|
Before Width: | Height: | Size: 400 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 160 KiB |
|
Before Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 582 KiB |
|
Before Width: | Height: | Size: 102 KiB |
BIN
Recruit/Image/good2026.png
Normal file
|
After Width: | Height: | Size: 297 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 734 KiB |
|
Before Width: | Height: | Size: 218 KiB |
|
Before Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 310 KiB |
|
Before Width: | Height: | Size: 876 KiB |
|
Before Width: | Height: | Size: 492 KiB |
BIN
Recruit/Image/main2026.jpg
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 248 KiB |
@@ -45,11 +45,11 @@
|
|||||||
<label>비밀번호</label>
|
<label>비밀번호</label>
|
||||||
<input type="password" class="form-control" name="r_pw" id="r_pw" value="" inputmode="text" placeholder="핸드폰번호(11자리)">
|
<input type="password" class="form-control" name="r_pw" id="r_pw" value="" inputmode="text" placeholder="핸드폰번호(11자리)">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group" style="display:none">
|
||||||
<label>모바일 인증</label>
|
<label>모바일 인증</label>
|
||||||
<button type="button" class="form-control btn btn-warning" name="mobile_chk" id="mobile_chk">휴대폰 본인인증</button>
|
<button type="button" class="form-control btn btn-warning" name="mobile_chk" id="mobile_chk">휴대폰 본인인증</button>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="mobileVerified" value="N">
|
<!--<input type="hidden" id="mobileVerified" value="N">-->
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-warning" id="LoginOk">로그인</button>
|
<button type="button" class="btn btn-warning" id="LoginOk">로그인</button>
|
||||||
|
|||||||
@@ -1,126 +0,0 @@
|
|||||||
<script src="/js/jquery-1.12.1.min.js"></script>
|
|
||||||
<script src="/js/jquery.form.min.js"></script>
|
|
||||||
<!-- 모든 컴파일된 플러그인을 포함합니다 (아래), 원하지 않는다면 필요한 각각의 파일을 포함하세요 -->
|
|
||||||
<script src="/bootstrap-3.3.2-dist/js/bootstrap.min.js"></script>
|
|
||||||
<script src="/js/func.js"></script>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta http-equiv="Cache-Control" content="no-cache">
|
|
||||||
<meta http-equiv="Pragma" content="no-cache">
|
|
||||||
<meta http-equiv="Expires" content="now">
|
|
||||||
<meta http-equiv="Expires" content=0>
|
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=10">
|
|
||||||
<!-- 위 3개의 메타 태그는 *반드시* head 태그의 처음에 와야합니다; 어떤 다른 콘텐츠들은 반드시 이 태그들 *다음에* 와야 합니다 -->
|
|
||||||
<title><%= stitle%> 출구조사 조사원</title>
|
|
||||||
|
|
||||||
<link rel="icon" href="../image/favicon.ico" type="image/vnd.microsoft.icon">
|
|
||||||
|
|
||||||
<!-- 부트스트랩 -->
|
|
||||||
<link href="/bootstrap-3.3.2-dist/css/bootstrap.min.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- IE8 에서 HTML5 요소와 미디어 쿼리를 위한 HTML5 shim 와 Respond.js -->
|
|
||||||
<!-- WARNING: Respond.js 는 당신이 file:// 을 통해 페이지를 볼 때는 동작하지 않습니다. -->
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/earlyaccess/notosanskr.css">
|
|
||||||
<link rel="stylesheet" type="text/css" href="../css/main.css?ver=2.1">
|
|
||||||
</head>
|
|
||||||
<div class="modal fade" id="LoginModal">
|
|
||||||
<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">×</span></button>
|
|
||||||
<h4 class="modal-title">로그인</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<div class="form-group">
|
|
||||||
<label>이름</label>
|
|
||||||
<input type="text" class="form-control" name="r_id" id="r_id" value="" placeholder="이름">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label>비밀번호</label>
|
|
||||||
<input type="password" class="form-control" name="r_pw" id="r_pw" value="" inputmode="text" placeholder="핸드폰번호(11자리)">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label>모바일 인증</label>
|
|
||||||
<button type="button" class="form-control btn btn-warning" name="mobile_chk" id="mobile_chk">휴대폰 본인인증</button>
|
|
||||||
</div>
|
|
||||||
<input type="hidden" id="mobileVerified" value="N">
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-warning" id="LoginOk">로그인</button>
|
|
||||||
<button type="button" class="btn btn-default" id="LoginCancel" data-dismiss="modal">취소</button>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.modal-content -->
|
|
||||||
</div><!-- /.modal-dialog -->
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
|
|
||||||
<nav class="navbar navbar-default navbar-fixed-top">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav_col">
|
|
||||||
<!--<span class="glyphicon glyphicon-menu-hamburger"></span> -->
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="../Index.asp">
|
|
||||||
<img style="max-width:100px; margin-top:-7px;display:inline-block;"src="/Image/KRI logo.png">
|
|
||||||
<img style="max-width:100px; margin-top:15px;display:inline-block;"src="/Image/KRI name.png">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<%
|
|
||||||
Dim thisName : thisName = Request.ServerVariables("SCRIPT_NAME")
|
|
||||||
thisName = split(thisName,"/")
|
|
||||||
%>
|
|
||||||
<div class="collapse navbar-collapse nav_col">
|
|
||||||
<ul class="nav navbar-nav menu">
|
|
||||||
<li>
|
|
||||||
<a href="/main/Info.asp" <%if thisName(UBOUND(thisName)) = "Info.asp" Then Response.Write "class='menu-on'"%>><img src="../Image/Ex_T.png" class="img-responsive"></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="/main/Faq.asp" <%if thisName(UBOUND(thisName)) = "Faq.asp" Then Response.Write "class='menu-on'"%>><img src="../Image/Fa_T.png" class="img-responsive"></a>
|
|
||||||
</li>
|
|
||||||
<%If Session("phone") = "" Then %>
|
|
||||||
<li>
|
|
||||||
<a href="/main/Recruit.asp" <%if thisName(UBOUND(thisName)) = "Recruit.asp" Then Response.Write "class='menu-on'"%>><img src="../Image/Re_T.png" class="img-responsive"></a>
|
|
||||||
</li>
|
|
||||||
<%Else %>
|
|
||||||
<li>
|
|
||||||
<a href="/main/MyInfo.asp" <%if thisName(UBOUND(thisName)) = "MyInfo.asp" Then Response.Write "class='menu-on'"%>><img src="../Image/Info_T.png" class="img-responsive"></a>
|
|
||||||
</li>
|
|
||||||
<% If Session("position") = "1" Then%>
|
|
||||||
<!--
|
|
||||||
<li>
|
|
||||||
<a style="font-size: 20px;font-weight: bold;color: #3e3d3d;letter-spacing: -2px;bottom: 3px;-webkit-font-smoothing: antialiased;" href="javascript:window.open('/main/pdf.asp');" class='btn btn-link'>모의데이터 보기</a>
|
|
||||||
</li>
|
|
||||||
-->
|
|
||||||
<% End If %>
|
|
||||||
<%End IF%>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav navbar-nav navbar-right" style="margin-right: 0px;">
|
|
||||||
<li style="display: grid;">
|
|
||||||
<%If Session("phone") = "" Then %>
|
|
||||||
<button type="button" name="login" id="login" class="btn btn-warning navbar-btn">로그인</button>
|
|
||||||
<%else%>
|
|
||||||
<button type="button" name="logout" id="logout" class="btn btn-warning navbar-btn">로그아웃</button>
|
|
||||||
<%End IF%>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
//본인인증
|
|
||||||
$("#mobile_chk").on("click", function(){
|
|
||||||
//window.open("../Identification/checkplus_main.asp","","width=600,height=800"); //나이스
|
|
||||||
window.open("../Identification/phoneIdentityVerification.asp?source=signin","","width=600,height=700"); //KG
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
|
||||||
@@ -27,9 +27,10 @@
|
|||||||
$("#LoginOk").on("click",function(){
|
$("#LoginOk").on("click",function(){
|
||||||
var r_id = $("#r_id").val();
|
var r_id = $("#r_id").val();
|
||||||
var r_pw = $("#r_pw").val();
|
var r_pw = $("#r_pw").val();
|
||||||
const verified = document.getElementById("mobileVerified").value;
|
//const verified = document.getElementById("mobileVerified").value;
|
||||||
|
|
||||||
if (r_id == "" || r_pw == "" || verified !== "Y"){
|
//if (r_id == "" || r_pw == "" || verified !== "Y"){
|
||||||
|
if (r_id == "" || r_pw == ""){
|
||||||
if (r_id == ""){
|
if (r_id == ""){
|
||||||
alert("[이름]을 입력하여 주십시오.");
|
alert("[이름]을 입력하여 주십시오.");
|
||||||
return false;
|
return false;
|
||||||
@@ -38,10 +39,12 @@
|
|||||||
alert("[핸드폰 번호]를 입력하여 주십시오.");
|
alert("[핸드폰 번호]를 입력하여 주십시오.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
if (verified !== "Y") {
|
if (verified !== "Y") {
|
||||||
alert("[휴대폰 본인인증]을 먼저 완료해주세요.");
|
alert("[휴대폰 본인인증]을 먼저 완료해주세요.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
} else {
|
} else {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url:"../Ajax/AjaxSelect.asp",
|
url:"../Ajax/AjaxSelect.asp",
|
||||||
@@ -51,10 +54,12 @@
|
|||||||
if(res == "False"){
|
if(res == "False"){
|
||||||
alert("등록된 정보가 없습니다.");
|
alert("등록된 정보가 없습니다.");
|
||||||
return false
|
return false
|
||||||
}else{
|
} else if(res == "NotMobileCheck") {
|
||||||
if(res == "ban"){
|
alert("휴대폰 본인인증이 되지 않은 지원자 입니다.\n본인인증을 진행합니다.");
|
||||||
|
$("#mobile_chk").click();
|
||||||
}else if(res == "X"){
|
return false;
|
||||||
|
} else {
|
||||||
|
if(res == "X"){
|
||||||
alert("현재 대상자 아님으로 변경되었습니다.\n지원 해주셔서 감사합니다.");
|
alert("현재 대상자 아님으로 변경되었습니다.\n지원 해주셔서 감사합니다.");
|
||||||
}else{
|
}else{
|
||||||
alert("안녕하세요? :)");
|
alert("안녕하세요? :)");
|
||||||
|
|||||||
@@ -1,108 +0,0 @@
|
|||||||
<!-- jQuery (부트스트랩의 자바스크립트 플러그인을 위해 필요합니다) -->
|
|
||||||
<script src="/js/jquery-1.12.1.min.js"></script>
|
|
||||||
<script src="/js/jquery.form.min.js"></script>
|
|
||||||
<!-- 모든 컴파일된 플러그인을 포함합니다 (아래), 원하지 않는다면 필요한 각각의 파일을 포함하세요 -->
|
|
||||||
<script src="/bootstrap-3.3.2-dist/js/bootstrap.min.js"></script>
|
|
||||||
<script src="/js/func.js"></script>
|
|
||||||
<script>
|
|
||||||
$(function(){
|
|
||||||
$("#login").on("click",function(){
|
|
||||||
$("#LoginModal").modal("show")
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#LoginModal").on("hidden.bs.modal", function(e){
|
|
||||||
$("#r_id").val("");
|
|
||||||
$("#r_pw").val("");
|
|
||||||
});
|
|
||||||
|
|
||||||
$(".MyCheck").on("click", function(){
|
|
||||||
var flag = "<%=Session("phone") %>";
|
|
||||||
if (flag == ""){
|
|
||||||
alert("로그인하여 주십시오.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
//Login
|
|
||||||
$("#LoginOk").on("click",function(){
|
|
||||||
var r_id = $("#r_id").val();
|
|
||||||
var r_pw = $("#r_pw").val();
|
|
||||||
const verified = document.getElementById("mobileVerified").value;
|
|
||||||
|
|
||||||
if (r_id == "" || r_pw == "" || verified !== "Y"){
|
|
||||||
if (r_id == ""){
|
|
||||||
alert("[이름]을 입력하여 주십시오.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (r_pw == ""){
|
|
||||||
alert("[핸드폰 번호]를 입력하여 주십시오.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (verified !== "Y") {
|
|
||||||
alert("[휴대폰 본인인증]을 먼저 완료해주세요.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$.ajax({
|
|
||||||
url:"../Ajax/AjaxSelect.asp",
|
|
||||||
method:"POST",
|
|
||||||
data:{"sel_gubun" : "login", "r_id": r_id, "r_pw": r_pw,},
|
|
||||||
success:function(res){
|
|
||||||
if(res == "False"){
|
|
||||||
alert("등록된 정보가 없습니다.");
|
|
||||||
return false
|
|
||||||
}else{
|
|
||||||
if(res == "ban"){
|
|
||||||
|
|
||||||
}else if(res == "X"){
|
|
||||||
alert("현재 대상자 아님으로 변경되었습니다.\n지원 해주셔서 감사합니다.");
|
|
||||||
}else{
|
|
||||||
alert("안녕하세요? :)");
|
|
||||||
}
|
|
||||||
location.href="../index.asp";
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error:function(err){
|
|
||||||
alert("System Error\n관리자 문의");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#logout").on("click", function(){
|
|
||||||
if(confirm("로그아웃 하시겠습니까?")){
|
|
||||||
$.ajax({
|
|
||||||
url:"../Ajax/AjaxSelect.asp",
|
|
||||||
method:"POST",
|
|
||||||
data:{"sel_gubun" : "logout"},
|
|
||||||
success:function(res){
|
|
||||||
alert(res);
|
|
||||||
window.location.href="../index.asp";
|
|
||||||
},
|
|
||||||
error:function(err){
|
|
||||||
alert("System Error\n관리자 문의");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}else{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
$(".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');
|
|
||||||
})
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<img src="/Image/main2025.png" />
|
<img src="/Image/main2026.jpg" style="margin-bottom:10px" />
|
||||||
</div>
|
</div>
|
||||||
<!-- contents-->
|
<!-- contents-->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -48,6 +48,41 @@
|
|||||||
<!--#include virtual="/Include/Footer.asp"-->
|
<!--#include virtual="/Include/Footer.asp"-->
|
||||||
</div>
|
</div>
|
||||||
<!--#include virtual="/Include/js.asp"-->
|
<!--#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 fade" id="PopUp">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@@ -59,7 +94,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<img src="/Image/good2025.png" style="width:100%;"/>
|
<img src="/Image/good2026.png" style="width:100%;"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
@@ -68,14 +103,74 @@
|
|||||||
</div><!-- /.modal-content -->
|
</div><!-- /.modal-content -->
|
||||||
</div><!-- /.modal-dialog -->
|
</div><!-- /.modal-dialog -->
|
||||||
</div><!-- /.modal -->
|
</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">×</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>
|
<script>
|
||||||
$(function (){
|
$(function (){
|
||||||
$("#PopUp").modal("show");
|
//$("#PopUp").modal("show");
|
||||||
|
|
||||||
$("#Pop-Close").click(function(){
|
$("#Pop-Close").click(function(){
|
||||||
$("#PopUp").modal("hide");
|
$("#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")%>"){
|
if("y" == "<%=Request("loginpop")%>"){
|
||||||
$("#login").click();
|
$("#login").click();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,85 +0,0 @@
|
|||||||
<!--#include Virtual = "/lib/config.asp" -->
|
|
||||||
<html lang="ko">
|
|
||||||
<!-- Header-->
|
|
||||||
<!--#include virtual="/Include/head.asp"-->
|
|
||||||
<body>
|
|
||||||
<div class="wrap">
|
|
||||||
<div class="main">
|
|
||||||
<img src="/Image/main2025.png" />
|
|
||||||
</div>
|
|
||||||
<!-- contents-->
|
|
||||||
<div class="container">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="row ">
|
|
||||||
<div class="list col-md-offset-3 col-md-3">
|
|
||||||
<a href="/main/Faq.asp" class="faq">
|
|
||||||
<div class="col-xs-9 col-sm-9 col-md-9 text-left">
|
|
||||||
<h4 style="border-bottom:1px soild black">FAQ</h4>
|
|
||||||
<span style="margin:3px 0px;">조사 유의사항 및<br>자주 묻는 질문 확인하기</span>
|
|
||||||
</div>
|
|
||||||
<img src="/Image/FAQ.png"/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<%If Session("phone") = "" Then %>
|
|
||||||
<div class="list col-md-3">
|
|
||||||
<a href="/main/Recruit.asp">
|
|
||||||
<div class="col-xs-9 col-sm-9 col-md-9 text-left">
|
|
||||||
<h4 style="border-bottom:1px soild black">지원하기</h4>
|
|
||||||
<span style="margin:3px 0px;"><%= stitle%> 출구조사<br>조사원 지원하기</span>
|
|
||||||
</div>
|
|
||||||
<img src="/Image/Recruit.png"/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<%Else%>
|
|
||||||
<div class="list col-md-3">
|
|
||||||
<a href="/main/MyInfo.asp" class="MyCheck">
|
|
||||||
<div class="col-xs-9 col-sm-9 col-md-9 text-left">
|
|
||||||
<h4 style="border-bottom:1px soild black">내 정보확인</h4>
|
|
||||||
<span style="margin:3px 0px;">등록된 정보 수정 및<br>확인하기</span>
|
|
||||||
</div>
|
|
||||||
<img src="/Image/Recheck.png"/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<%End If%>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Footer -->
|
|
||||||
<!--#include virtual="/Include/Footer.asp"-->
|
|
||||||
</div>
|
|
||||||
<!--#include virtual="/Include/js.asp"-->
|
|
||||||
<div class="modal fade" id="PopUp">
|
|
||||||
<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">×</span></button>
|
|
||||||
<div class="text-center">
|
|
||||||
<h4 class="modal-title">우수조 발표</h4>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<div class="form-group">
|
|
||||||
<img src="/Image/good3.jpg" style="width:100%;"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-warning" id="Pop-Close">확인</button>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.modal-content -->
|
|
||||||
</div><!-- /.modal-dialog -->
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
<script>
|
|
||||||
$(function (){
|
|
||||||
// $("#PopUp").modal("show");
|
|
||||||
|
|
||||||
$("#Pop-Close").click(function(){
|
|
||||||
$("#PopUp").modal("hide");
|
|
||||||
});
|
|
||||||
|
|
||||||
if("y" == "<%=Request("loginpop")%>"){
|
|
||||||
$("#login").click();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -6,8 +6,8 @@ Option Explicit
|
|||||||
Dim SV_NAME, DB_NAME, SV_NAME1, DB_NAME1
|
Dim SV_NAME, DB_NAME, SV_NAME1, DB_NAME1
|
||||||
Dim UID, PWD, UID1, PWD1
|
Dim UID, PWD, UID1, PWD1
|
||||||
Dim DBConn
|
Dim DBConn
|
||||||
Dim stitle : stitle = "제21대 대통령 선거"
|
Dim stitle : stitle = "제9회 전국동시지방 선거"
|
||||||
Dim ltitle : ltitle = "제21대 대통령 선거"
|
Dim ltitle : ltitle = "제9회 전국동시지방 선거"
|
||||||
'#######################################################################################
|
'#######################################################################################
|
||||||
'DB 설정값 Read
|
'DB 설정값 Read
|
||||||
'#######################################################################################
|
'#######################################################################################
|
||||||
|
|||||||
@@ -274,13 +274,13 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.Faq2_1 img {
|
.Faq2_1 img {
|
||||||
content: url(../Image/edu_place.jpg);
|
content: url(../Image/edu_place.jpg?ver=1);
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1280px) {
|
@media (max-width: 1280px) {
|
||||||
.wrap .main {
|
.wrap .main {
|
||||||
background: url(/Image/main2025.png) no-repeat center center;
|
background: url(/Image/main2026.jpg) no-repeat center center;
|
||||||
background-size: contain; /* cover → contain으로 변경 */
|
background-size: contain; /* cover → contain으로 변경 */
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
@@ -343,7 +343,8 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.Faq2_1 img {
|
.Faq2_1 img {
|
||||||
content: url(../Image/edu_place_mobile.jpg);
|
/*content: url(../Image/edu_place_mobile.jpg);*/
|
||||||
|
content: url(../Image/edu_place.jpg?ver=1);
|
||||||
width: 65%;
|
width: 65%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ SQL = ""
|
|||||||
SQL = SQL&" SELECT 'P' + D.VALUE + 'H' + CONVERT(varchar, Q.IDKEY) AS pcode "
|
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&" 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&" 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
|
Objdb.Open SQL,DBConn,3,1,1
|
||||||
If not Objdb.eof then
|
If not Objdb.eof then
|
||||||
%>
|
%>
|
||||||
|
|||||||
@@ -85,10 +85,11 @@
|
|||||||
<div class="panel-group">
|
<div class="panel-group">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading" data-toggle="collapse" data-target=".Faq2_2">
|
<div class="panel-heading" data-toggle="collapse" data-target=".Faq2_2">
|
||||||
<img src="../Image/bullet.png" style="width:20px;"/> 추가 교육은 없나요? / 교육을 받으러 서울까지 가야 하나요?
|
<img src="../Image/bullet.png" style="width:20px;"/> 추가 교육은 없나요? / 교육을 받으러 서울까지 가야 하나요? / 교육장소까지 교통비가 지급되나요?
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body panel-collapse collapse Faq2_2 active in" style="padding-left:50px;">
|
<div class="panel-body panel-collapse collapse Faq2_2 active in" style="padding-left:50px;">
|
||||||
별도의 추가 교육은 없으며, 교육은 인접 지역 대상자들을 확인 후 지역 내 지정장소에서 집체 교육을 하는 형식으로 진행됩니다.
|
별도의 추가 교육은 없으며, 교육은 인접 지역 대상자들을 확인 후 지역 내 지정장소에서 집체 교육을 하는 형식으로 진행됩니다.
|
||||||
|
<br>교육에 대한 교통비는 따로 지급되지 않습니다.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<!-- contents-->
|
<!-- contents-->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="container-fluid info">
|
<div class="container-fluid info">
|
||||||
<div class="row text-center"><img src="../Image/about_img_2025.png"/></div>
|
<div class="row text-center"><img src="../Image/about_img_2026.jpg?ver=1.2"/></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ SQL = SQL&" r_district as r_district_cd, "&VbCrlf
|
|||||||
SQL = SQL&" r_car, "&VbCrlf
|
SQL = SQL&" r_car, "&VbCrlf
|
||||||
'SQL = SQL&" dbo.codeLabel('ex', r_ex, NULL) as r_ex, "&VbCrlf
|
'SQL = SQL&" dbo.codeLabel('ex', r_ex, NULL) as r_ex, "&VbCrlf
|
||||||
SQL = SQL&" 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_edu, '') as r_edu, "&VbCrlf
|
||||||
SQL = SQL&" isnull(r_bank,'') as r_bank, "&VbCrlf
|
SQL = SQL&" isnull(r_bank,'') as r_bank, "&VbCrlf
|
||||||
SQL = SQL&" isnull(dbo.base64_decode(r_account), '') as r_account, "&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_district_cd : r_district_cd = objdb("r_district_cd")
|
||||||
Dim r_car : r_car = objdb("r_car")
|
Dim r_car : r_car = objdb("r_car")
|
||||||
Dim r_ex : r_ex = objdb("r_ex")
|
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_edu : r_edu = objdb("r_edu")
|
||||||
Dim r_bank : r_bank = objdb("r_bank")
|
Dim r_bank : r_bank = objdb("r_bank")
|
||||||
Dim r_account : r_account = objdb("r_account")
|
Dim r_account : r_account = objdb("r_account")
|
||||||
@@ -292,7 +294,18 @@ DBClose()
|
|||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</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" >
|
<div class="form-group" >
|
||||||
<label for="r_bank">주민번호</label>
|
<label for="r_bank">주민번호</label>
|
||||||
<div class="form-inline" >
|
<div class="form-inline" >
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
<%
|
<%
|
||||||
Dim eSQL, eObjdb
|
Dim eSQL, eObjdb, exitInfoView
|
||||||
set eObjdb = Server.CreateObject("ADODB.Recordset")
|
set eObjdb = Server.CreateObject("ADODB.Recordset")
|
||||||
|
exitInfoView = Now() >= DateSerial(2026, 6, 2) + TimeSerial(10, 0, 0)
|
||||||
|
exitInfoView = True
|
||||||
|
|
||||||
DBConnect()
|
DBConnect()
|
||||||
|
|
||||||
eSQL=""
|
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&" 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&" 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&" 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&" 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 "
|
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>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
|
console.log("<%=exitInfoView%>")
|
||||||
$(".member_list").parent().parent().hide();
|
$(".member_list").parent().parent().hide();
|
||||||
|
|
||||||
<%
|
<%
|
||||||
@@ -150,10 +154,14 @@ If eObjdb.RecordCount > 0 Then
|
|||||||
Do while Not eObjdb.Eof
|
Do while Not eObjdb.Eof
|
||||||
%>
|
%>
|
||||||
<div class="form-group">
|
<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="input-group">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<%=eObjdb("e_exit_nm") %>(<%=eObjdb("s_stay") %>)
|
<%=eObjdb("e_exit_nm") %> (<%=eObjdb("e_distance") %> - <%=eObjdb("s_stay") %>)
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
@@ -169,49 +177,50 @@ If eObjdb.RecordCount > 0 Then
|
|||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% IF eObjdb("r_position") <> "감독관" THEN %>
|
<% IF exitInfoView THEN %>
|
||||||
<div class="form-group">
|
<% IF eObjdb("r_position") <> "감독관" THEN %>
|
||||||
<label>
|
<div class="form-group">
|
||||||
<%
|
<label>
|
||||||
IF eObjdb("r_position") = "조원" THEN
|
<%
|
||||||
response.write "조장"
|
IF eObjdb("r_position") = "조원" THEN
|
||||||
ElseIF eObjdb("r_position") = "조장" THEN
|
response.write "조장"
|
||||||
response.write "감독관"
|
ElseIF eObjdb("r_position") = "조장" THEN
|
||||||
ElseIF eObjdb("r_position") = "롱폼조사원" THEN
|
response.write "감독관"
|
||||||
response.write "조장"
|
ElseIF eObjdb("r_position") = "롱폼조사원" THEN
|
||||||
END IF
|
response.write "조장"
|
||||||
%>
|
END IF
|
||||||
연락처</label>
|
%>
|
||||||
<div class="input-group">
|
연락처</label>
|
||||||
<div class="btn-group">
|
<div class="input-group">
|
||||||
<%=eObjdb("L_NAME")%> - <a href='tel:<%=eObjdb("L_PHONE") %>'><%=eObjdb("L_PHONE") %></a>
|
<div class="btn-group">
|
||||||
|
<%=eObjdb("L_NAME")%> - <a href='tel:<%=eObjdb("L_PHONE") %>'><%=eObjdb("L_PHONE") %></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<hr/>
|
||||||
<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>
|
|
||||||
</div>
|
</div>
|
||||||
<hr style="border-top: 2px solid #333;" />
|
<% END IF %>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<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">
|
<div class="form-group">
|
||||||
<label>집결지 정보</label>
|
<label>집결지 정보</label>
|
||||||
|
|||||||
@@ -174,19 +174,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<!--
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="r_covid">코로나 관련 내용 확인</label>
|
|
||||||
<p>
|
|
||||||
- 조사원과 응답자의 안전을 위해 코로나19 백신 2차 접종 이상 완료자만 지원 가능<br>
|
|
||||||
- 코로나19 확진 후 완치자 지원 가능<br>
|
|
||||||
</p>
|
|
||||||
<p class=''>
|
|
||||||
<input type="checkbox" name="r_covid" id="r_covid" value="1" /> 위 내용을 확인하였음
|
|
||||||
</p>
|
|
||||||
<hr/>
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="r_agree1">개인정보 동의</label>
|
<label for="r_agree1">개인정보 동의</label>
|
||||||
<p class="r_gree1">
|
<p class="r_gree1">
|
||||||
@@ -212,6 +199,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<!--#include virtual="/Include/js.asp"-->
|
<!--#include virtual="/Include/js.asp"-->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
var specialArea = ["09", "16", "0901"];
|
||||||
|
var specialDistrict = ["0901", "0902", "1603", "090101"];
|
||||||
|
|
||||||
window.onload = function(){
|
window.onload = function(){
|
||||||
var browse = navigator.userAgent.toLowerCase();
|
var browse = navigator.userAgent.toLowerCase();
|
||||||
@@ -225,7 +214,8 @@
|
|||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
|
|
||||||
alert("제21대 대통령선거 출구조사 조사원 모집은 마감되었습니다.\n관심을 가져주셔서 감사합니다.");
|
alert("<%=ltitle%> 출구조사 조사원 모집은 마감되었습니다.\n관심을 가져주셔서 감사합니다.");
|
||||||
|
//alert("<%=ltitle%> 출구조사 조사원 모집은 준비중입니다.\n관심을 가져주셔서 감사합니다.");
|
||||||
location.href="../index.asp";
|
location.href="../index.asp";
|
||||||
|
|
||||||
|
|
||||||
@@ -233,6 +223,9 @@
|
|||||||
//AjaxSelect($("#r_univ"), "univ");//소속학교
|
//AjaxSelect($("#r_univ"), "univ");//소속학교
|
||||||
//AjaxSelect($("#r_year"), "year");//학년
|
//AjaxSelect($("#r_year"), "year");//학년
|
||||||
AjaxSelect($("#r_area"), "area");//지원지역
|
AjaxSelect($("#r_area"), "area");//지원지역
|
||||||
|
//경기만 허용
|
||||||
|
filterOptions($("#r_area"), specialArea);
|
||||||
|
//$("#r_area").find(":not(option[value=''], option[value=09])").remove();
|
||||||
//AjaxSelect($("#r_edu"), "edu");//교육일정
|
//AjaxSelect($("#r_edu"), "edu");//교육일정
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -355,61 +348,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
function specialDistrict(){
|
|
||||||
if(["0990","0991","0490","0992","0993","0994","0995","0996","0997","0998","0999"].includes($("#r_district").val())){
|
|
||||||
$("#r_district").val("");
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#r_district option").each(function(i,e){
|
|
||||||
if(["0990","0991","0490","0992","0993","0994","0995","0996","0997","0998","0999"].includes($(e).val())){
|
|
||||||
$(e).hide();
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
if($("select[name=r_sgg]").val().includes("용인시") && $("#r_district option[value=0991]").length > 0){
|
|
||||||
$("#r_district option[value=0991]").show();
|
|
||||||
}
|
|
||||||
|
|
||||||
if($("select[name=r_sgg]").val() == "포천시" && $("#r_district option[value=0990]").length > 0){
|
|
||||||
$("#r_district option[value=0990]").show();
|
|
||||||
}
|
|
||||||
|
|
||||||
if($("select[name=r_sgg]").val() == "중구" && $("#r_district option[value=0490]").length > 0){
|
|
||||||
$("#r_district option[value=0490]").show();
|
|
||||||
}
|
|
||||||
|
|
||||||
if($("select[name=r_sgg]").val() == "동두천시" && $("#r_district option[value=0992]").length > 0){
|
|
||||||
$("#r_district option[value=0992]").show();
|
|
||||||
}
|
|
||||||
|
|
||||||
if($("select[name=r_sgg]").val() == "양주시" && $("#r_district option[value=0993]").length > 0){
|
|
||||||
$("#r_district option[value=0993]").show();
|
|
||||||
}
|
|
||||||
|
|
||||||
if($("select[name=r_sgg]").val() == "연천군" && $("#r_district option[value=0994]").length > 0){
|
|
||||||
$("#r_district option[value=0994]").show();
|
|
||||||
}
|
|
||||||
|
|
||||||
if($("select[name=r_sgg]").val() == "남양주시" && $("#r_district option[value=0995]").length > 0){
|
|
||||||
$("#r_district option[value=0995]").show();
|
|
||||||
}
|
|
||||||
|
|
||||||
if($("select[name=r_sgg]").val() == "안양시" && $("#r_district option[value=0996]").length > 0){
|
|
||||||
$("#r_district option[value=0996]").show();
|
|
||||||
}
|
|
||||||
|
|
||||||
if($("select[name=r_sgg]").val() == "군포시" && $("#r_district option[value=0997]").length > 0){
|
|
||||||
$("#r_district option[value=0997]").show();
|
|
||||||
}
|
|
||||||
|
|
||||||
if($("select[name=r_sgg]").val() == "이천시" && $("#r_district option[value=0998]").length > 0){
|
|
||||||
$("#r_district option[value=0998]").show();
|
|
||||||
}
|
|
||||||
|
|
||||||
if($("select[name=r_sgg]").val() == "안성시" && $("#r_district option[value=0999]").length > 0){
|
|
||||||
$("#r_district option[value=0999]").show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//지역에 따른 권역 change
|
//지역에 따른 권역 change
|
||||||
$("#r_area").on("change", function(){
|
$("#r_area").on("change", function(){
|
||||||
@@ -418,8 +356,9 @@
|
|||||||
|
|
||||||
if(r_position != "" || r_area != ""){
|
if(r_position != "" || r_area != ""){
|
||||||
AjaxSelect($("#r_district"), "district", r_area);
|
AjaxSelect($("#r_district"), "district", r_area);
|
||||||
|
|
||||||
specialDistrict();
|
//남부외곽만 허용
|
||||||
|
filterOptions($("#r_district"), specialDistrict);
|
||||||
|
|
||||||
if($("#r_district").children("option").length == 2){
|
if($("#r_district").children("option").length == 2){
|
||||||
$("#r_district").val($("#r_district").children("option:eq(1)").val());
|
$("#r_district").val($("#r_district").children("option:eq(1)").val());
|
||||||
@@ -512,8 +451,6 @@
|
|||||||
$.each(dong, function(i, e){
|
$.each(dong, function(i, e){
|
||||||
$("select[name=r_emd]").append("<option value='"+e+"'>"+e+"</option");
|
$("select[name=r_emd]").append("<option value='"+e+"'>"+e+"</option");
|
||||||
});
|
});
|
||||||
|
|
||||||
specialDistrict();
|
|
||||||
})
|
})
|
||||||
|
|
||||||
$("#r_chk").hide();
|
$("#r_chk").hide();
|
||||||
@@ -630,13 +567,7 @@
|
|||||||
$("#r_ex").focus();
|
$("#r_ex").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
if($("#r_covid").is(":checked") == false){
|
|
||||||
alert("코로나 관련 내용을 확인 하셔야 합니다.");
|
|
||||||
$("#r_covid").focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
if($("#r_agree1").is(":checked") == false){
|
if($("#r_agree1").is(":checked") == false){
|
||||||
alert("개인정보 수집 및 활용에 동의 하셔야 합니다.");
|
alert("개인정보 수집 및 활용에 동의 하셔야 합니다.");
|
||||||
$("#r_agree1").focus();
|
$("#r_agree1").focus();
|
||||||
@@ -714,6 +645,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(data) { //ajax Error
|
error: function(data) { //ajax Error
|
||||||
|
console.log("AjaxRecruit")
|
||||||
alert("System Error\n관리자에게 문의 하십시오.");
|
alert("System Error\n관리자에게 문의 하십시오.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -721,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
|
//Select box, Text ajax
|
||||||
function AjaxSelect(el, gubun, area_cd) {
|
function AjaxSelect(el, gubun, area_cd) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -729,12 +671,14 @@
|
|||||||
async:false,
|
async:false,
|
||||||
data:{"sel_gubun" : "code", "sel_code" : gubun, "area_cd": area_cd},
|
data:{"sel_gubun" : "code", "sel_code" : gubun, "area_cd": area_cd},
|
||||||
success:function(res){
|
success:function(res){
|
||||||
|
console.log(gubun, res)
|
||||||
if(res != ""){
|
if(res != ""){
|
||||||
el.empty();
|
el.empty();
|
||||||
el.append(res);
|
el.append(res);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(err){
|
error:function(err){
|
||||||
|
console.log({"sel_gubun" : "code", "sel_code" : gubun, "area_cd": area_cd})
|
||||||
alert("System Error\n관리자 문의");
|
alert("System Error\n관리자 문의");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||