diff --git a/certification/01_소프트웨어_저작권_등록_신청서.docx b/certification/01_소프트웨어_저작권_등록_신청서.docx new file mode 100644 index 00000000..eb8f9d4a Binary files /dev/null and b/certification/01_소프트웨어_저작권_등록_신청서.docx differ diff --git a/certification/02_소프트웨어사업자_신고서.docx b/certification/02_소프트웨어사업자_신고서.docx new file mode 100644 index 00000000..09087aa3 Binary files /dev/null and b/certification/02_소프트웨어사업자_신고서.docx differ diff --git a/certification/03_조달청_나라장터_물품_등록_신청서.docx b/certification/03_조달청_나라장터_물품_등록_신청서.docx new file mode 100644 index 00000000..f707b28a Binary files /dev/null and b/certification/03_조달청_나라장터_물품_등록_신청서.docx differ diff --git a/certification/generate_docx.py b/certification/generate_docx.py new file mode 100644 index 00000000..c70af4da --- /dev/null +++ b/certification/generate_docx.py @@ -0,0 +1,642 @@ +# -*- coding: utf-8 -*- +""" +GUARDiA ITSM 프로그램 등록 신청서 3종 — DOCX 생성기 +UTF-8 완전 지원 / 편집 가능한 Word 문서 +실행: python generate_docx.py +""" +import sys, os +sys.stdout.reconfigure(encoding="utf-8", errors="replace") + +from pathlib import Path +from datetime import datetime +from docx import Document +from docx.shared import Pt, Cm, RGBColor, Inches +from docx.enum.text import WD_ALIGN_PARAGRAPH +from docx.enum.table import WD_ALIGN_VERTICAL, WD_TABLE_ALIGNMENT +from docx.oxml.ns import qn +from docx.oxml import OxmlElement +import copy + +BASE = Path(__file__).parent + +# ── 공통 색상 (RGB) ──────────────────────────────────────────── +class CLR: + NAVY = RGBColor(0x1E, 0x3A, 0x5F) + BLUE = RGBColor(0x00, 0x51, 0xA2) + LBLUE = RGBColor(0xEB, 0xF3, 0xFB) + RED = RGBColor(0xDC, 0x26, 0x26) + LRED = RGBColor(0xFE, 0xE2, 0xE2) + ORANGE = RGBColor(0xC2, 0x41, 0x0C) + LORG = RGBColor(0xFE, 0xD7, 0xAA) + GRAY = RGBColor(0x64, 0x74, 0x8B) + LGRAY = RGBColor(0xF3, 0xF4, 0xF6) + BORDER = RGBColor(0xCB, 0xD5, 0xE1) + WHITE = RGBColor(0xFF, 0xFF, 0xFF) + BLACK = RGBColor(0x00, 0x00, 0x00) + + +def set_cell_bg(cell, rgb: RGBColor): + """셀 배경색 설정.""" + tc = cell._tc + tcPr = tc.get_or_add_tcPr() + shd = OxmlElement("w:shd") + hex_color = f"{rgb[0]:02X}{rgb[1]:02X}{rgb[2]:02X}" + shd.set(qn("w:val"), "clear") + shd.set(qn("w:color"), "auto") + shd.set(qn("w:fill"), hex_color) + tcPr.append(shd) + + +def set_cell_border(table): + """테이블 전체 테두리 설정.""" + for row in table.rows: + for cell in row.cells: + tc = cell._tc + tcPr = tc.get_or_add_tcPr() + tcBorders = OxmlElement("w:tcBorders") + for side in ["top", "left", "bottom", "right", "insideH", "insideV"]: + border = OxmlElement(f"w:{side}") + border.set(qn("w:val"), "single") + border.set(qn("w:sz"), "4") + border.set(qn("w:space"), "0") + border.set(qn("w:color"), "CBD5E1") + tcBorders.append(border) + tcPr.append(tcBorders) + + +def new_doc(): + """A4 Word 문서 기본 설정.""" + doc = Document() + sec = doc.sections[0] + sec.page_width = Cm(21.0) + sec.page_height = Cm(29.7) + sec.left_margin = Cm(2.0) + sec.right_margin = Cm(2.0) + sec.top_margin = Cm(2.0) + sec.bottom_margin= Cm(2.0) + + # 기본 스타일 + style = doc.styles["Normal"] + style.font.name = "맑은 고딕" + style.font.size = Pt(10) + style.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + return doc + + +def banner_para(doc, text, sub, bg: RGBColor): + """문서 최상단 컬러 배너 (단일 셀 테이블).""" + t = doc.add_table(rows=2, cols=1) + t.alignment = WD_TABLE_ALIGNMENT.CENTER + t.style = "Table Grid" + + r0 = t.rows[0].cells[0] + r1 = t.rows[1].cells[0] + + set_cell_bg(r0, bg) + set_cell_bg(r1, bg) + + p0 = r0.paragraphs[0] + p0.alignment = WD_ALIGN_PARAGRAPH.CENTER + run = p0.add_run(text) + run.bold = True + run.font.size = Pt(18) + run.font.color.rgb = CLR.WHITE + run.font.name = "맑은 고딕" + run.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + + p1 = r1.paragraphs[0] + p1.alignment = WD_ALIGN_PARAGRAPH.CENTER + rs = p1.add_run(sub) + rs.font.size = Pt(9) + rs.font.color.rgb = RGBColor(0xBD, 0xE3, 0xFF) + rs.font.name = "맑은 고딕" + rs.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + + set_cell_border(t) + doc.add_paragraph() + return t + + +def sec_title(doc, text, bg: RGBColor): + """섹션 제목 (색상 배경).""" + t = doc.add_table(rows=1, cols=1) + t.style = "Table Grid" + cell = t.rows[0].cells[0] + set_cell_bg(cell, bg) + p = cell.paragraphs[0] + r = p.add_run(f" {text}") + r.bold = True + r.font.size = Pt(10.5) + r.font.color.rgb = CLR.WHITE + r.font.name = "맑은 고딕" + r.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + set_cell_border(t) + return t + + +def kv_table(doc, rows, lbg: RGBColor, widths=None): + """키-값 테이블.""" + if widths is None: + widths = [Cm(4.0), Cm(13.0)] + + cols = len(widths) + t = doc.add_table(rows=len(rows), cols=cols) + t.style = "Table Grid" + + for i, row_data in enumerate(rows): + row = t.rows[i] + # 너비 설정 + for j, w in enumerate(widths): + row.cells[j].width = w + + # 키 셀 + key_cell = row.cells[0] + set_cell_bg(key_cell, lbg) + key_cell.vertical_alignment = WD_ALIGN_VERTICAL.CENTER + p = key_cell.paragraphs[0] + p.alignment = WD_ALIGN_PARAGRAPH.CENTER + r = p.add_run(row_data[0]) + r.bold = True + r.font.size = Pt(9.5) + r.font.name = "맑은 고딕" + r.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + + # 값 셀 (cols에 따라) + for j in range(1, cols): + if j < len(row_data): + val_cell = row.cells[j] + val_cell.vertical_alignment = WD_ALIGN_VERTICAL.CENTER + vp = val_cell.paragraphs[0] + vr = vp.add_run(row_data[j]) + vr.font.size = Pt(9.5) + vr.font.name = "맑은 고딕" + vr.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + + set_cell_border(t) + return t + + +def header_table(doc, headers, data_rows, bg: RGBColor, lbg: RGBColor, widths=None): + """헤더 포함 데이터 테이블.""" + all_rows = [headers] + data_rows + cols = len(headers) + if widths is None: + unit = Cm(17.0 / cols) + widths = [unit] * cols + + t = doc.add_table(rows=len(all_rows), cols=cols) + t.style = "Table Grid" + + for i, row_data in enumerate(all_rows): + row = t.rows[i] + is_header = (i == 0) + fill = bg if is_header else (CLR.WHITE if i % 2 == 1 else lbg) + + for j, cell_text in enumerate(row_data): + cell = row.cells[j] + cell.width = widths[j] + set_cell_bg(cell, fill) + cell.vertical_alignment = WD_ALIGN_VERTICAL.CENTER + p = cell.paragraphs[0] + p.alignment = WD_ALIGN_PARAGRAPH.CENTER if (is_header or j == 0) else WD_ALIGN_PARAGRAPH.LEFT + r = p.add_run(cell_text) + r.bold = is_header + r.font.size = Pt(9 if is_header else 9.5) + r.font.color.rgb = CLR.WHITE if is_header else CLR.BLACK + r.font.name = "맑은 고딕" + r.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + + set_cell_border(t) + return t + + +def sign_table(doc, date_label="신청일"): + """서명란 테이블.""" + rows = [ + [date_label, "2026년 월 일"], + ["회 사 명", "(주)지오정보기술"], + ["대 표 자", " (인)"], + ] + t = doc.add_table(rows=3, cols=2) + t.style = "Table Grid" + + for i, (k, v) in enumerate(rows): + key_cell = t.rows[i].cells[0] + set_cell_bg(key_cell, CLR.LGRAY) + key_cell.width = Cm(3.5) + key_cell.vertical_alignment = WD_ALIGN_VERTICAL.CENTER + p = key_cell.paragraphs[0] + p.alignment = WD_ALIGN_PARAGRAPH.CENTER + r = p.add_run(k) + r.bold = True; r.font.size = Pt(10) + r.font.name = "맑은 고딕" + r.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + + val_cell = t.rows[i].cells[1] + val_cell.vertical_alignment = WD_ALIGN_VERTICAL.CENTER + vp = val_cell.paragraphs[0] + vr = vp.add_run(v) + vr.font.size = Pt(10.5) + vr.font.name = "맑은 고딕" + vr.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + + set_cell_border(t) + return t + + +def add_note(doc, text): + p = doc.add_paragraph() + r = p.add_run(f"※ {text}") + r.font.size = Pt(8.5) + r.font.color.rgb = CLR.GRAY + r.font.name = "맑은 고딕" + r.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + p.paragraph_format.left_indent = Cm(0.5) + return p + + +def add_footer_line(doc, org): + doc.add_paragraph() + p = doc.add_paragraph() + p.alignment = WD_ALIGN_PARAGRAPH.CENTER + r = p.add_run(f"{org} | (주)지오정보기술 | GUARDiA ITSM v2.0 | Copyright © 2026 All Rights Reserved.") + r.font.size = Pt(8) + r.font.color.rgb = CLR.GRAY + r.font.name = "맑은 고딕" + r.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + + +def sp(doc, n=1): + for _ in range(n): + doc.add_paragraph() + + +# ══════════════════════════════════════════════════════════════ +# 01. 소프트웨어 저작권 등록 신청서 +# ══════════════════════════════════════════════════════════════ +def make_copyright_docx(): + doc = new_doc() + AC = CLR.BLUE + LBG = CLR.LBLUE + + banner_para(doc, + "소프트웨어 저작권 등록 신청서", + "컴퓨터프로그램저작물 등록 | 한국저작권위원회 | www.copyright.or.kr", + AC) + + h = doc.add_heading("컴퓨터프로그램저작물 등록신청서", level=2) + h.alignment = WD_ALIGN_PARAGRAPH.CENTER + for run in h.runs: + run.font.color.rgb = AC + run.font.name = "맑은 고딕" + run.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + + ref = doc.add_paragraph() + ref.alignment = WD_ALIGN_PARAGRAPH.CENTER + rr = ref.add_run("「저작권법」 제53조 및 「저작권법 시행규칙」 제24조에 따라 다음과 같이 등록을 신청합니다.") + rr.font.size = Pt(9); rr.font.color.rgb = CLR.GRAY + rr.font.name = "맑은 고딕" + rr.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + sp(doc) + + # 1. 저작물 정보 + sec_title(doc, "1. 저작물 정보", AC) + kv_table(doc, [ + ["저 작 물 명", "GUARDiA ITSM (가이더)"], + ["영 문 명", "GUARDiA ITSM Platform (Good AI-based Unified Automated Resource & Device Intelligence Assistant)"], + ["저작물 종류", "컴퓨터프로그램저작물"], + ["프로그램 언어","Python 3.11, JavaScript (React 18)"], + ["창 작 연 도", "2026년"], + ["공 표 여 부", "공표 (2026년 / 인터넷 웹사이트: www.zioinfo.co.kr)"], + ["등 록 목 적", "양도 및 이용허락"], + ["버 전", "v2.0.0"], + ], LBG) + sp(doc) + + # 2. 저작자 / 저작권자 + sec_title(doc, "2. 저작자 및 저작권자 정보", AC) + kv_table(doc, [ + ["구 분", "법인 저작권자"], + ["저 작 자 명", "(주)지오정보기술"], + ["저 작 권 자", "(주)지오정보기술 (저작자와 동일)"], + ["법인등록번호", "000000-0000000"], + ["사업자등록번호", "000-00-00000"], + ["주 소", "서울특별시 (상세주소)"], + ["대 표 자", "(대표이사명)"], + ["전 화", "02-000-0000"], + ["이 메 일", "copyright@zioinfo.co.kr"], + ], LBG) + sp(doc) + + # 3. 저작물 설명 + sec_title(doc, "3. 저작물 설명 (200자 이내)", AC) + desc_table = doc.add_table(rows=1, cols=1) + desc_table.style = "Table Grid" + cell = desc_table.rows[0].cells[0] + set_cell_bg(cell, LBG) + p = cell.paragraphs[0] + r = p.add_run( + "GUARDiA ITSM은 공공기관의 레거시 IT 인프라를 AI로 자율 운영하는 온프레미스 통합 관리 플랫폼입니다. " + "메신저 한 줄 명령으로 에이전트 설치 없이 SSH/SFTP를 통해 WAS 배포·운영을 자동화하며, " + "SR 관리, 인시던트 대응, 변경관리, CMDB, PMS 등 ITSM 전 기능과 " + "AI 자동화(티켓분류·RCA·이상탐지·예측)를 단일 플랫폼에서 제공합니다." + ) + r.font.size = Pt(9.5); r.font.name = "맑은 고딕" + r.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + set_cell_border(desc_table) + sp(doc) + + # 4. 첨부 서류 + sec_title(doc, "4. 첨부 서류", AC) + header_table(doc, + ["번호", "서류명", "비고"], + [ + ["1", "저작물 설명서", "본 신청서 3항 활용 가능"], + ["2", "소스코드 일부 출력물", "핵심 기능 200줄 이상 (영업비밀 마스킹 후 제출)"], + ["3", "법인등기부등본", "최근 3개월 이내 발급본"], + ["4", "대리인 위임장", "대리신청 시에만 제출"], + ], + AC, LBG, widths=[Cm(1.5), Cm(7), Cm(8.5)] + ) + sp(doc) + add_note(doc, "신청 방법: 한국저작권위원회 홈페이지(www.copyright.or.kr) → 저작권 등록 → 온라인 신청") + add_note(doc, "처리 기간: 약 2주 / 수수료: 약 40,000원 (온라인 신청 시 카드·계좌이체)") + sp(doc) + + pledge = doc.add_paragraph("위와 같이 컴퓨터프로그램저작물 등록을 신청합니다.") + pledge.alignment = WD_ALIGN_PARAGRAPH.CENTER + for run in pledge.runs: + run.font.size = Pt(10); run.font.name = "맑은 고딕" + run.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + sp(doc) + sign_table(doc, "신 청 일") + add_footer_line(doc, "한국저작권위원회 제출용") + + out = BASE / "01_소프트웨어_저작권_등록_신청서.docx" + doc.save(str(out)) + print(f"[OK] 01_소프트웨어_저작권_등록_신청서.docx ({out.stat().st_size//1024}KB)") + + +# ══════════════════════════════════════════════════════════════ +# 02. 소프트웨어사업자 신고서 +# ══════════════════════════════════════════════════════════════ +def make_bizreg_docx(): + doc = new_doc() + AC = CLR.RED + LBG = CLR.LRED + + banner_para(doc, + "소프트웨어사업자 신고서", + "소프트웨어진흥법 제24조 | 과학기술정보통신부 / 한국SW산업협회(KOSA) | swit.or.kr", + AC) + + h = doc.add_heading("소프트웨어사업자 신고서", level=2) + h.alignment = WD_ALIGN_PARAGRAPH.CENTER + for run in h.runs: + run.font.color.rgb = AC + run.font.name = "맑은 고딕" + run.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + + ref = doc.add_paragraph() + ref.alignment = WD_ALIGN_PARAGRAPH.CENTER + rr = ref.add_run("「소프트웨어진흥법」 제24조 및 같은 법 시행규칙 제14조에 따라 다음과 같이 신고합니다.") + rr.font.size = Pt(9); rr.font.color.rgb = CLR.GRAY + rr.font.name = "맑은 고딕" + rr.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + sp(doc) + + # 1. 신고인 정보 + sec_title(doc, "1. 신고인(사업자) 정보", AC) + kv_table(doc, [ + ["상 호", "(주)지오정보기술"], + ["대 표 자", "(대표이사명)"], + ["사업자등록번호", "000-00-00000"], + ["법인등록번호", "000000-0000000"], + ["소 재 지", "서울특별시 (상세주소)"], + ["전 화", "02-000-0000"], + ["팩 스", "02-000-0001"], + ["이 메 일", "sw@zioinfo.co.kr"], + ["설 립 일", "2000년 월 일"], + ["자 본 금", " 원"], + ["종업원 수", " 명 (정규직 기준)"], + ], LBG) + sp(doc) + + # 2. 사업 종류 + sec_title(doc, "2. 소프트웨어사업의 종류 (해당 항목 선택)", AC) + header_table(doc, + ["선택", "사업 종류", "세부 내용"], + [ + ["[V]", "소프트웨어 개발업", "GUARDiA ITSM 등 소프트웨어 개발·판매"], + ["[V]", "소프트웨어 공급업", "GUARDiA ITSM 라이선스 공급"], + ["[V]", "소프트웨어 유지관리업", "GUARDiA ITSM 기술지원·유지보수"], + ["[V]", "소프트웨어 자문·평가·진단업", "IT인프라 컨설팅·진단"], + ["[ ]", "정보기술서비스업", "—"], + ["[ ]", "기타 ( 업)", "—"], + ], + AC, LBG, widths=[Cm(1.5), Cm(6.5), Cm(9.0)] + ) + sp(doc) + + # 3. 기술인력 + sec_title(doc, "3. 기술인력 현황", AC) + kv_table(doc, [ + ["총 직원 수", " 명"], + ["SW 기술인력", " 명 (전체의 %)"], + ["정보처리기사", " 명"], + ["정보처리산업기사", " 명"], + ["기타 SW 관련 자격", " 명"], + ], LBG) + add_note(doc, "소프트웨어사업자 신고 기준: 상시근로자 1명 이상 또는 SW기술인력 1명 이상") + sp(doc) + + # 4. 주요 제품 + sec_title(doc, "4. 주요 소프트웨어 제품 및 서비스", AC) + header_table(doc, + ["제품/서비스명", "분류", "출시연도", "연매출(백만원)"], + [ + ["GUARDiA ITSM", "IT서비스관리 플랫폼", "2026", ""], + ["IT인프라 컨설팅", "컨설팅 서비스", "2000", ""], + ["SI 구축 서비스", "정보화사업", "2000", ""], + ], + AC, LBG, widths=[Cm(5.0), Cm(4.0), Cm(2.5), Cm(5.5)] + ) + sp(doc) + + # 5. 실적 + sec_title(doc, "5. 소프트웨어사업 실적 (최근 3년)", AC) + header_table(doc, + ["연도", "발주기관", "사업명", "계약금액(백만원)", "기간"], + [ + ["2024", "", "GUARDiA ITSM 구축사업", "", ""], + ["2025", "", "인프라 자동화 컨설팅 사업", "", ""], + ["2026", "", "GUARDiA ITSM 고도화 사업", "", ""], + ], + AC, LBG, widths=[Cm(1.5), Cm(4.0), Cm(5.5), Cm(2.5), Cm(3.5)] + ) + sp(doc) + add_note(doc, "신고 방법: 한국SW산업협회(swit.or.kr) 온라인 신고 또는 과학기술정보통신부 제출") + add_note(doc, "처리 기간: 약 2주 | 수수료: 없음") + add_note(doc, "확인서 발급: 신고 완료 후 '소프트웨어사업자 신고확인서' 발급 (GS인증 신청 시 필요)") + sp(doc) + + pledge = doc.add_paragraph("위와 같이 소프트웨어사업자 신고를 합니다.") + pledge.alignment = WD_ALIGN_PARAGRAPH.CENTER + for run in pledge.runs: + run.font.size = Pt(10); run.font.name = "맑은 고딕" + run.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + sp(doc) + sign_table(doc, "신 고 일") + add_footer_line(doc, "과학기술정보통신부 / 한국SW산업협회(KOSA) 제출용") + + out = BASE / "02_소프트웨어사업자_신고서.docx" + doc.save(str(out)) + print(f"[OK] 02_소프트웨어사업자_신고서.docx ({out.stat().st_size//1024}KB)") + + +# ══════════════════════════════════════════════════════════════ +# 03. 조달청 나라장터 물품 등록 신청서 +# ══════════════════════════════════════════════════════════════ +def make_g2b_docx(): + doc = new_doc() + AC = CLR.ORANGE + LBG = CLR.LORG + + banner_para(doc, + "조달청 나라장터 물품 등록 신청서", + "국가종합전자조달시스템 | 조달청 | www.g2b.go.kr", + AC) + + h = doc.add_heading("소프트웨어 물품 등록 신청서 (나라장터)", level=2) + h.alignment = WD_ALIGN_PARAGRAPH.CENTER + for run in h.runs: + run.font.color.rgb = AC + run.font.name = "맑은 고딕" + run.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + + ref = doc.add_paragraph() + ref.alignment = WD_ALIGN_PARAGRAPH.CENTER + rr = ref.add_run("공공기관 납품을 위한 소프트웨어 물품을 국가종합전자조달시스템(나라장터)에 등록합니다.") + rr.font.size = Pt(9); rr.font.color.rgb = CLR.GRAY + rr.font.name = "맑은 고딕" + rr.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + sp(doc) + + # 1. 공급업체 정보 + sec_title(doc, "1. 공급업체 정보", AC) + kv_table(doc, [ + ["업 체 명", "(주)지오정보기술"], + ["대 표 자", "(대표이사명)"], + ["사업자등록번호", "000-00-00000"], + ["소 재 지", "서울특별시 (상세주소)"], + ["대 표 전 화", "02-000-0000"], + ["팩 스", "02-000-0001"], + ["담 당 자", "(담당자명) / 02-000-0000 / g2b@zioinfo.co.kr"], + ["계좌번호", "은행명 000-000-000000 (주)지오정보기술"], + ], LBG) + sp(doc) + + # 2. 물품 기본 정보 + sec_title(doc, "2. 물품 기본 정보", AC) + kv_table(doc, [ + ["물 품 명", "GUARDiA ITSM (AI 기반 IT서비스관리 플랫폼)"], + ["규격 / 모델명", "GUARDiA ITSM v2.0"], + ["물품 분류코드", "소프트웨어 > 시스템관리 > IT서비스관리 (ITSM)"], + ["원 산 지", "국내산 (대한민국)"], + ["제 조 사", "(주)지오정보기술"], + ["브 랜 드", "GUARDiA"], + ["단 위", "식 (라이선스)"], + ["품목번호", "(나라장터 등록 후 부여)"], + ], LBG) + sp(doc) + + # 3. 가격 정보 + sec_title(doc, "3. 가격 정보 (에디션별 라이선스)", AC) + header_table(doc, + ["에디션", "대상 규모", "기준 단가(원)", "연간 유지보수율", "비고"], + [ + ["COMMUNITY", "소규모 / 검토용", "0 (무료)", "—", "기관 1개·사용자 10명"], + ["STANDARD", "중형 기관 (50기관 이하)", "별도 협의", "15%", "사용자 200명·서버 200대"], + ["ENTERPRISE", "대형 관공서 / 광역기관", "별도 협의", "15%", "무제한 (전용 지원 포함)"], + ], + AC, LBG, widths=[Cm(2.5), Cm(3.5), Cm(3.0), Cm(2.5), Cm(5.5)] + ) + add_note(doc, "나라장터 등록 단가는 실제 계약 시 협의를 통해 결정됩니다.") + add_note(doc, "중소기업 직접생산확인증명서 제출 시 중소기업제품 우선구매 적용 가능합니다.") + sp(doc) + + # 4. 제품 규격서 + sec_title(doc, "4. 제품 규격서 (설치 환경 및 요구 사양)", AC) + kv_table(doc, [ + ["운영체제(서버)", "Ubuntu 20.04+ / CentOS 7+ / RHEL 8+ / Windows Server 2019+"], + ["최소 CPU", "4코어 이상 (Intel / AMD x86_64)"], + ["최소 RAM", "16GB 이상 (Ollama AI 엔진 포함 시)"], + ["필요 디스크", "50GB 이상"], + ["네트워크", "내부망 전용 지원 — 인터넷 연결 불필요 (완전 폐쇄망 운영 가능)"], + ["클라이언트", "Chrome 90+ / Firefox 88+ / Edge 90+ (브라우저 기반, 설치 불필요)"], + ["DB 지원", "SQLite (내장) / PostgreSQL 15+ (선택)"], + ["AI 엔진", "Ollama 온프레미스 LLM (외부 클라우드 API 미사용 — 보안 정책)"], + ], LBG) + sp(doc) + + # 5. 주요 기능 + sec_title(doc, "5. 주요 기능 요약", AC) + header_table(doc, + ["기능 영역", "주요 기능 내용", "공공기관 필수 여부"], + [ + ["SR / ITSM", "서비스요청 접수·처리, 인시던트, 변경관리, SLA, CMDB", "필수"], + ["AI 자동화", "Ollama 온프레미스 AI — 티켓분류, RCA, 이상탐지, 예측", "선택"], + ["ChatOps", "카카오워크·네이버웍스·슬랙 25개 봇 명령어 지원", "선택"], + ["에이전트리스", "SSH/SFTP 기반 WAS 자동 배포·운영 (서버 소프트웨어 설치 불필요)", "필수"], + ["PMS", "WBS, 산출물 관리, 일간/주간/월간 보고서 자동 생성", "필수"], + ["보안", "JWT+MFA+AES-256+PAM+감사로그+취약점스캔+시큐어코딩 점검", "필수"], + ["공공기관 준수", "행안부 체크리스트 19개, 웹접근성(KWCAG 2.1), 개인정보보호법", "필수"], + ], + AC, LBG, widths=[Cm(2.5), Cm(9.5), Cm(5.0)] + ) + sp(doc) + + # 6. 인증 현황 + sec_title(doc, "6. 인증 현황 및 납품 실적", AC) + kv_table(doc, [ + ["GS인증(TTA)", "GS 1등급 취득 예정 — 2026년 12월 (TTA 한국정보통신기술협회)"], + ["SW저작권 등록", "C-2026-XXXXXX (등록 후 기입)"], + ["SW사업자 신고", "제XXX호 (신고 후 기입)"], + ["주요 납품 실적", "(공공기관 납품 실적 기입 — 계약서 사본 첨부)"], + ["중소기업 확인", "중소기업 직접생산확인증명서 첨부 예정"], + ], LBG) + sp(doc) + add_note(doc, "등록 방법: 조달청 나라장터(g2b.go.kr) → 공급업체 로그인 → 물품 등록 신청") + add_note(doc, "필요 서류: 사업자등록증, 법인등기부등본, SW저작권등록증, 제품 규격서, 가격확인서") + add_note(doc, "처리 기간: 약 1~2주 | 수수료: 없음") + sp(doc) + + pledge = doc.add_paragraph("위와 같이 물품 등록을 신청합니다.") + pledge.alignment = WD_ALIGN_PARAGRAPH.CENTER + for run in pledge.runs: + run.font.size = Pt(10); run.font.name = "맑은 고딕" + run.element.rPr.rFonts.set(qn("w:eastAsia"), "맑은 고딕") + sp(doc) + sign_table(doc, "신 청 일") + add_footer_line(doc, "조달청 나라장터 제출용") + + out = BASE / "03_조달청_나라장터_물품_등록_신청서.docx" + doc.save(str(out)) + print(f"[OK] 03_조달청_나라장터_물품_등록_신청서.docx ({out.stat().st_size//1024}KB)") + + +# ══════════════════════════════════════════════════════════════ +# MAIN +# ══════════════════════════════════════════════════════════════ +if __name__ == "__main__": + print("GUARDiA ITSM 프로그램 등록 신청서 3종 DOCX 생성 중 (UTF-8)...") + print() + make_copyright_docx() + make_bizreg_docx() + make_g2b_docx() + print() + print("생성된 파일 목록:") + for f in sorted(BASE.glob("0*.docx")): + print(f" {f.name} ({f.stat().st_size//1024}KB)") + print() + print("모든 DOCX 파일은 Microsoft Word / 한글(HWP) / LibreOffice에서 편집 가능합니다.") diff --git a/certification/generate_each_pdf.py b/certification/generate_each_pdf.py new file mode 100644 index 00000000..f18344b2 --- /dev/null +++ b/certification/generate_each_pdf.py @@ -0,0 +1,667 @@ +""" +GUARDiA ITSM 프로그램 등록 신청서 — 3종 개별 PDF 생성기 +실행: python generate_each_pdf.py +""" +import os, sys +from pathlib import Path +from datetime import datetime + +from reportlab.lib import colors +from reportlab.lib.pagesizes import A4 +from reportlab.lib.units import mm +from reportlab.lib.styles import ParagraphStyle +from reportlab.lib.enums import TA_CENTER, TA_LEFT, TA_JUSTIFY +from reportlab.platypus import ( + SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle, + HRFlowable, PageBreak, KeepTogether +) +from reportlab.pdfbase import pdfmetrics +from reportlab.pdfbase.ttfonts import TTFont + +# ── 폰트 등록 ───────────────────────────────────────────────── +def reg_fonts(): + for p in ["C:/Windows/Fonts/malgun.ttf", + "/usr/share/fonts/truetype/nanum/NanumGothic.ttf"]: + if os.path.exists(p): + try: pdfmetrics.registerFont(TTFont("KF", p)); break + except: pass + for p in ["C:/Windows/Fonts/malgunbd.ttf", + "/usr/share/fonts/truetype/nanum/NanumGothicBold.ttf"]: + if os.path.exists(p): + try: pdfmetrics.registerFont(TTFont("KFB", p)); break + except: pass + +reg_fonts() +BF = "KF" if "KF" in pdfmetrics.getRegisteredFontNames() else "Helvetica" +BBF = "KFB" if "KFB" in pdfmetrics.getRegisteredFontNames() else "Helvetica-Bold" +W, H = A4 +MARGIN = 18*mm +WC = W - 2*MARGIN + +# ── 공통 색상 ────────────────────────────────────────────────── +C = { + "navy": colors.HexColor("#1e3a5f"), + "blue": colors.HexColor("#0051A2"), + "lblue": colors.HexColor("#EBF3FB"), + "red": colors.HexColor("#DC2626"), + "lred": colors.HexColor("#FEE2E2"), + "orange": colors.HexColor("#C2410C"), + "lorg": colors.HexColor("#FED7AA"), + "green": colors.HexColor("#065F46"), + "lgrn": colors.HexColor("#D1FAE5"), + "gray": colors.HexColor("#64748B"), + "lgray": colors.HexColor("#F3F4F6"), + "white": colors.white, + "black": colors.black, + "border": colors.HexColor("#CBD5E1"), +} + +def S(nm, **kw): + d = dict(fontName=BF, fontSize=9.5, leading=15, textColor=C["black"]) + d.update(kw); return ParagraphStyle(nm, **d) + +# ── 공통 컴포넌트 ────────────────────────────────────────────── +def banner(main_title, sub_title, accent_color): + """문서 최상단 컬러 배너.""" + data = [ + [Paragraph(main_title, S("bt", fontName=BBF, fontSize=20, textColor=C["white"], alignment=TA_CENTER, leading=26))], + [Paragraph(sub_title, S("bs", fontName=BF, fontSize=10, textColor=colors.HexColor("#BDE3FF"), alignment=TA_CENTER))], + ] + t = Table(data, colWidths=[WC]) + t.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (-1,-1), accent_color), + ("TOPPADDING", (0,0), (-1,-1), 16), + ("BOTTOMPADDING", (0,0), (-1,-1), 16), + ("ROUNDEDCORNERS",(0,0), (-1,-1), [8]), + ])) + return t + +def sec(title, color): + t = Table([[Paragraph(f" {title}", S("sc", fontName=BBF, fontSize=11, textColor=C["white"], leading=16))]], colWidths=[WC]) + t.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (-1,-1), color), + ("TOPPADDING", (0,0), (-1,-1), 6), + ("BOTTOMPADDING", (0,0), (-1,-1), 6), + ("ROUNDEDCORNERS",(0,0), (-1,-1), [5]), + ])) + return t + +def kv(rows, lbg, cw=None): + """키-값 테이블.""" + if cw is None: cw = [40*mm, WC-40*mm] + cells = [] + for r in rows: + if len(r) == 2: + cells.append([Paragraph(r[0], S("kl", fontName=BBF, textColor=C["black"], alignment=TA_CENTER)), + Paragraph(r[1], S("kv"))]) + elif len(r) == 3: # 키, 값, 필수여부 + cells.append([Paragraph(r[0], S("kl", fontName=BBF, textColor=C["black"], alignment=TA_CENTER)), + Paragraph(r[1], S("kv")), + Paragraph(r[2], S("kr", fontName=BBF, fontSize=8, textColor=C["red"], alignment=TA_CENTER))]) + t = Table(cells, colWidths=cw) + t.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (0,-1), lbg), + ("FONTSIZE", (0,0), (-1,-1), 9.5), + ("ALIGN", (0,0), (0,-1), "CENTER"), + ("VALIGN", (0,0), (-1,-1), "MIDDLE"), + ("TOPPADDING", (0,0), (-1,-1), 5), + ("BOTTOMPADDING", (0,0), (-1,-1), 5), + ("LEFTPADDING", (0,0), (-1,-1), 7), + ("GRID", (0,0), (-1,-1), 0.5, C["border"]), + ])) + return t + +def empty_kv(rows, lbg, cw=None): + """입력 란 (빈 칸 강조).""" + if cw is None: cw = [40*mm, WC-40*mm] + cells = [[Paragraph(k, S("ek", fontName=BBF, alignment=TA_CENTER)), + Paragraph(v, S("ev", textColor=C["gray"]))] for k, v in rows] + t = Table(cells, colWidths=cw) + t.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (0,-1), lbg), + ("FONTSIZE", (0,0), (-1,-1), 9.5), + ("ALIGN", (0,0), (0,-1), "CENTER"), + ("VALIGN", (0,0), (-1,-1), "MIDDLE"), + ("TOPPADDING", (0,0), (-1,-1), 7), + ("BOTTOMPADDING", (0,0), (-1,-1), 7), + ("LEFTPADDING", (0,0), (-1,-1), 7), + ("GRID", (0,0), (-1,-1), 0.5, C["border"]), + ])) + return t + +def sign_area(date_label="신청일"): + rows = [ + [Paragraph(date_label, S("sl", fontName=BBF, alignment=TA_CENTER)), + Paragraph("2026년 월 일", S("sv", fontSize=10.5))], + [Paragraph("회 사 명", S("sl", fontName=BBF, alignment=TA_CENTER)), + Paragraph("(주)지오정보기술", S("sv", fontSize=10.5))], + [Paragraph("대 표 자", S("sl", fontName=BBF, alignment=TA_CENTER)), + Paragraph(" (인)", S("sv", fontSize=10.5))], + ] + t = Table(rows, colWidths=[35*mm, WC-35*mm]) + t.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (0,-1), C["lgray"]), + ("FONTNAME", (0,0), (0,-1), BBF), + ("FONTSIZE", (0,0), (-1,-1), 10), + ("ALIGN", (0,0), (0,-1), "CENTER"), + ("VALIGN", (0,0), (-1,-1), "MIDDLE"), + ("TOPPADDING", (0,0), (-1,-1), 8), + ("BOTTOMPADDING", (0,0), (-1,-1), 8), + ("LEFTPADDING", (0,0), (-1,-1), 8), + ("LINEBELOW", (1,2), (1,2), 1, C["black"]), + ("GRID", (0,0), (-1,-1), 0.5, C["border"]), + ])) + return t + +def footer(org_name): + return [ + Spacer(1, 8*mm), + HRFlowable(width=WC, color=C["blue"], thickness=1.5), + Spacer(1, 3*mm), + Paragraph(f"{org_name} | (주)지오정보기술 | GUARDiA ITSM v2.0 | Copyright © 2026", + S("ft", fontSize=7.5, textColor=C["gray"], alignment=TA_CENTER, leading=11)), + ] + +def on_page_num(pname): + def fn(canvas, doc): + canvas.saveState() + canvas.setFont("Helvetica", 7) + canvas.setFillColor(C["gray"]) + canvas.drawRightString(W-MARGIN, 9*mm, f"- {doc.page} -") + canvas.drawString(MARGIN, 9*mm, pname) + canvas.restoreState() + return fn + +def note(text): + return Paragraph(f"※ {text}", S("nt", fontSize=8, textColor=C["gray"], leading=12, leftIndent=8)) + +def make_doc(path, title): + return SimpleDocTemplate(path, pagesize=A4, + leftMargin=MARGIN, rightMargin=MARGIN, + topMargin=MARGIN, bottomMargin=MARGIN, + title=title, author="(주)지오정보기술") + + +# ══════════════════════════════════════════════════════════════ +# PDF 01: 소프트웨어 저작권 등록 신청서 +# ══════════════════════════════════════════════════════════════ +def make_copyright_pdf(out): + doc = make_doc(out, "소프트웨어 저작권 등록 신청서") + story = [] + AC = C["blue"] + LBG = C["lblue"] + + story.append(banner( + "소프트웨어 저작권 등록 신청서", + "컴퓨터프로그램저작물 등록 | 한국저작권위원회 | www.copyright.or.kr", + AC + )) + story.append(Spacer(1, 5*mm)) + story.append(Paragraph("컴퓨터프로그램저작물 등록신청서", + S("h1", fontName=BBF, fontSize=16, textColor=AC, alignment=TA_CENTER, leading=22))) + story.append(Paragraph( + "「저작권법」 제53조 및 「저작권법 시행규칙」 제24조에 따라 다음과 같이 등록을 신청합니다.", + S("ref", fontName=BF, fontSize=9, textColor=C["gray"], alignment=TA_CENTER, leading=14))) + story.append(Spacer(1, 6*mm)) + + # 1. 저작물 정보 + story.append(sec("1. 저작물 정보 (필수 기재)", AC)) + story.append(Spacer(1, 3*mm)) + story.append(kv([ + ["저 작 물 명", "GUARDiA ITSM (가이더)"], + ["영 문 명", "GUARDiA ITSM Platform"], + ["저작물 종류", "컴퓨터프로그램저작물"], + ["프로그램 언어","Python 3.11, JavaScript (React 18)"], + ["창 작 연 도", "2026년"], + ["공 표 여 부", "공표 (2026년 / 인터넷 웹사이트 www.zioinfo.co.kr)"], + ["등록 목적", "양도 및 이용허락"], + ["버 전", "v2.0.0"], + ], LBG)) + story.append(Spacer(1, 5*mm)) + + # 2. 저작자 / 저작권자 + story.append(sec("2. 저작자 및 저작권자 정보", AC)) + story.append(Spacer(1, 3*mm)) + story.append(kv([ + ["구 분", "법인 저작권자"], + ["저 작 자 명", "(주)지오정보기술"], + ["저 작 권 자", "(주)지오정보기술 (저작자와 동일)"], + ["법인등록번호", "000000-0000000"], + ["사업자등록번호", "000-00-00000"], + ["주 소", "서울특별시 (상세주소)"], + ["대 표 자", "(대표이사명)"], + ["전 화", "02-000-0000"], + ["이 메 일", "copyright@zioinfo.co.kr"], + ], LBG)) + story.append(Spacer(1, 5*mm)) + + # 3. 저작물 설명 + story.append(sec("3. 저작물 설명 (200자 이내)", AC)) + story.append(Spacer(1, 3*mm)) + desc_box = Table([[Paragraph( + "GUARDiA ITSM은 공공기관의 레거시 IT 인프라를 AI로 자율 운영하는 온프레미스 통합 관리 플랫폼입니다. " + "메신저 한 줄 명령으로 에이전트 설치 없이 SSH/SFTP를 통해 WAS 배포·운영을 자동화하며, " + "SR 관리, 인시던트 대응, 변경관리, CMDB, PMS 등 ITSM 전 기능과 " + "AI 자동화(티켓분류·RCA·이상탐지·예측)를 단일 플랫폼에서 제공합니다.", + S("db", leading=16, alignment=TA_JUSTIFY) + )]], colWidths=[WC]) + desc_box.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (-1,-1), LBG), + ("TOPPADDING", (0,0), (-1,-1), 12), + ("BOTTOMPADDING", (0,0), (-1,-1), 12), + ("LEFTPADDING", (0,0), (-1,-1), 14), + ("RIGHTPADDING", (0,0), (-1,-1), 14), + ("ROUNDEDCORNERS",(0,0), (-1,-1), [6]), + ])) + story.append(desc_box) + story.append(Spacer(1, 5*mm)) + + # 4. 첨부 서류 + story.append(sec("4. 첨부 서류", AC)) + story.append(Spacer(1, 3*mm)) + attach_h = [["번호", "서류명", "비고"]] + attach_d = [ + ["1", "저작물 설명서", "본 신청서 3항 활용 가능"], + ["2", "소스코드 일부 출력물", "핵심 기능 200줄 이상 (영업비밀 마스킹 후 제출)"], + ["3", "법인등기부등본", "최근 3개월 이내 발급본"], + ["4", "대리인 위임장", "대리신청 시에만 제출"], + ] + at = Table( + [[Paragraph(v, S(f"a{i}", alignment=TA_CENTER if i==0 else TA_LEFT, fontSize=9)) for i,v in enumerate(r)] for r in attach_h+attach_d], + colWidths=[12*mm, 72*mm, WC-84*mm] + ) + at.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (-1,0), AC), + ("TEXTCOLOR", (0,0), (-1,0), C["white"]), + ("FONTNAME", (0,0), (-1,0), BBF), + ("ROWBACKGROUNDS",(0,1), (-1,-1), [C["white"], LBG]), + ("FONTSIZE", (0,0), (-1,-1), 9), + ("ALIGN", (0,0), (0,-1), "CENTER"), + ("VALIGN", (0,0), (-1,-1), "MIDDLE"), + ("TOPPADDING", (0,0), (-1,-1), 5), + ("BOTTOMPADDING", (0,0), (-1,-1), 5), + ("LEFTPADDING", (0,0), (-1,-1), 7), + ("GRID", (0,0), (-1,-1), 0.5, C["border"]), + ])) + story.append(at) + story.append(Spacer(1, 5*mm)) + + # 5. 수수료 안내 + story.append(sec("5. 등록 수수료", AC)) + story.append(Spacer(1, 3*mm)) + fee = Table([ + [Paragraph("구분", S("fh", fontName=BBF, alignment=TA_CENTER)), + Paragraph("금액", S("fh", fontName=BBF, alignment=TA_CENTER)), + Paragraph("비고", S("fh", fontName=BBF, alignment=TA_CENTER))], + [Paragraph("컴퓨터프로그램저작물 등록", S("fd")), + Paragraph("40,000원", S("fd", alignment=TA_CENTER)), + Paragraph("온라인 신청 시 카드/계좌이체", S("fd"))], + ], colWidths=[70*mm, 30*mm, WC-100*mm]) + fee.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (-1,0), AC), + ("TEXTCOLOR", (0,0), (-1,0), C["white"]), + ("BACKGROUND", (0,1), (-1,1), LBG), + ("FONTSIZE", (0,0), (-1,-1), 9.5), + ("ALIGN", (1,1), (1,1), "CENTER"), + ("VALIGN", (0,0), (-1,-1), "MIDDLE"), + ("TOPPADDING", (0,0), (-1,-1), 6), + ("BOTTOMPADDING", (0,0), (-1,-1), 6), + ("LEFTPADDING", (0,0), (-1,-1), 8), + ("GRID", (0,0), (-1,-1), 0.5, C["border"]), + ])) + story.append(fee) + story.append(Spacer(1, 3*mm)) + story.append(note("신청 방법: 한국저작권위원회 홈페이지(www.copyright.or.kr) → 저작권 등록 → 온라인 신청")) + story.append(note("처리 기간: 약 2주 (보완 요청 시 추가 소요)")) + story.append(Spacer(1, 6*mm)) + + story.append(Paragraph("위와 같이 컴퓨터프로그램저작물 등록을 신청합니다.", + S("pledge", fontName=BF, fontSize=10, alignment=TA_CENTER, leading=16))) + story.append(Spacer(1, 6*mm)) + story.append(sign_area("신 청 일")) + + for item in footer("한국저작권위원회 제출용"): + story.append(item) + + doc.build(story, onFirstPage=on_page_num("소프트웨어 저작권 등록 신청서 | 한국저작권위원회"), + onLaterPages=on_page_num("소프트웨어 저작권 등록 신청서 | 한국저작권위원회")) + print(f"[OK] 01_소프트웨어_저작권_등록_신청서.pdf ({Path(out).stat().st_size//1024}KB)") + + +# ══════════════════════════════════════════════════════════════ +# PDF 02: 소프트웨어사업자 신고서 +# ══════════════════════════════════════════════════════════════ +def make_bizreg_pdf(out): + doc = make_doc(out, "소프트웨어사업자 신고서") + story = [] + AC = C["red"] + LBG = C["lred"] + + story.append(banner( + "소프트웨어사업자 신고서", + "소프트웨어진흥법 제24조 | 과학기술정보통신부 / 한국SW산업협회(KOSA)", + AC + )) + story.append(Spacer(1, 5*mm)) + story.append(Paragraph("소프트웨어사업자 신고서", + S("h2", fontName=BBF, fontSize=16, textColor=AC, alignment=TA_CENTER, leading=22))) + story.append(Paragraph( + "「소프트웨어진흥법」 제24조 및 같은 법 시행규칙 제14조에 따라 다음과 같이 신고합니다.", + S("ref2", fontName=BF, fontSize=9, textColor=C["gray"], alignment=TA_CENTER, leading=14))) + story.append(Spacer(1, 6*mm)) + + # 1. 신고인 정보 + story.append(sec("1. 신고인(사업자) 정보", AC)) + story.append(Spacer(1, 3*mm)) + story.append(kv([ + ["상 호", "(주)지오정보기술"], + ["대 표 자", "(대표이사명)"], + ["사업자등록번호", "000-00-00000"], + ["법인등록번호", "000000-0000000"], + ["소 재 지", "서울특별시 (상세주소)"], + ["전 화", "02-000-0000"], + ["팩 스", "02-000-0001"], + ["이 메 일", "sw@zioinfo.co.kr"], + ["설 립 일", "2000년 월 일"], + ["자 본 금", " 원"], + ["종업원 수", " 명 (정규직 기준)"], + ], LBG)) + story.append(Spacer(1, 5*mm)) + + # 2. 소프트웨어사업 종류 + story.append(sec("2. 소프트웨어사업의 종류 (해당 항목 모두 선택)", AC)) + story.append(Spacer(1, 3*mm)) + biz = [ + ["[V]", "소프트웨어 개발업", "GUARDiA ITSM 등 소프트웨어 개발·판매"], + ["[V]", "소프트웨어 공급업", "GUARDiA ITSM 라이선스 공급"], + ["[V]", "소프트웨어 유지관리업", "GUARDiA ITSM 기술지원·유지보수"], + ["[V]", "소프트웨어 자문·평가·진단업", "IT인프라 컨설팅·진단"], + ["[ ]", "정보기술서비스업", "—"], + ["[ ]", "기타 ( 업)", "—"], + ] + bh = [["선택", "사업 종류", "세부 내용"]] + bd = [[Paragraph(v, S(f"bv{i}", textColor=AC if "V" in v else C["gray"], + fontName=BBF, fontSize=10, alignment=TA_CENTER)), + Paragraph(n, S(f"bn{i}", fontSize=9.5)), + Paragraph(d, S(f"bd{i}", fontSize=8.5, textColor=C["gray"]))] + for i,(v,n,d) in enumerate(biz)] + bt = Table(bh+bd, colWidths=[16*mm, 65*mm, WC-81*mm]) + bt.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (-1,0), AC), + ("TEXTCOLOR", (0,0), (-1,0), C["white"]), + ("FONTNAME", (0,0), (-1,0), BBF), + ("ROWBACKGROUNDS",(0,1), (-1,-1), [C["white"], LBG]), + ("FONTSIZE", (0,0), (-1,-1), 9), + ("ALIGN", (0,0), (0,-1), "CENTER"), + ("VALIGN", (0,0), (-1,-1), "MIDDLE"), + ("TOPPADDING", (0,0), (-1,-1), 5), + ("BOTTOMPADDING", (0,0), (-1,-1), 5), + ("LEFTPADDING", (0,0), (-1,-1), 7), + ("GRID", (0,0), (-1,-1), 0.5, C["border"]), + ])) + story.append(bt) + story.append(Spacer(1, 5*mm)) + + # 3. 기술인력 + story.append(sec("3. 기술인력 현황", AC)) + story.append(Spacer(1, 3*mm)) + story.append(empty_kv([ + ["총 직원 수", " 명"], + ["SW 기술인력", " 명 (전체의 %)"], + ["정보처리기사", " 명"], + ["정보처리산업기사"," 명"], + ["기타 SW 관련 자격", " 명"], + ], LBG)) + story.append(Spacer(1, 3*mm)) + story.append(note("소프트웨어사업자 신고 기준: 상시근로자 1명 이상 또는 SW기술인력 1명 이상")) + story.append(Spacer(1, 5*mm)) + + # 4. 주요 제품/서비스 + story.append(sec("4. 주요 소프트웨어 제품 및 서비스", AC)) + story.append(Spacer(1, 3*mm)) + prod_h = [["제품/서비스명", "분류", "출시연도", "연매출(백만원)"]] + prod_d = [ + ["GUARDiA ITSM", "IT서비스관리 플랫폼", "2026", ""], + ["IT인프라 컨설팅", "컨설팅 서비스", "2000", ""], + ["SI 구축 서비스", "정보화사업", "2000", ""], + ] + ph = Table(prod_h+prod_d, colWidths=[50*mm, 40*mm, 22*mm, WC-112*mm]) + ph.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (-1,0), AC), + ("TEXTCOLOR", (0,0), (-1,0), C["white"]), + ("FONTNAME", (0,0), (-1,0), BBF), + ("ROWBACKGROUNDS",(0,1), (-1,-1), [C["white"], LBG]), + ("FONTSIZE", (0,0), (-1,-1), 9), + ("ALIGN", (0,0), (-1,0), "CENTER"), + ("ALIGN", (2,1), (-1,-1), "CENTER"), + ("VALIGN", (0,0), (-1,-1), "MIDDLE"), + ("TOPPADDING", (0,0), (-1,-1), 5), + ("BOTTOMPADDING", (0,0), (-1,-1), 5), + ("LEFTPADDING", (0,0), (-1,-1), 7), + ("GRID", (0,0), (-1,-1), 0.5, C["border"]), + ])) + story.append(ph) + story.append(Spacer(1, 5*mm)) + + # 5. SW사업 실적 + story.append(sec("5. 소프트웨어사업 실적 (최근 3년)", AC)) + story.append(Spacer(1, 3*mm)) + perf_h = [["연도", "발주기관", "사업명", "계약금액\n(백만원)", "기간"]] + perf_d = [ + ["2024", "", "GUARDiA ITSM 구축사업", "", ""], + ["2025", "", "인프라 자동화 컨설팅 사업", "", ""], + ["2026", "", "GUARDiA ITSM 고도화 사업", "", ""], + ] + pt = Table(perf_h+perf_d, colWidths=[14*mm, 40*mm, 58*mm, 22*mm, WC-134*mm]) + pt.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (-1,0), AC), + ("TEXTCOLOR", (0,0), (-1,0), C["white"]), + ("FONTNAME", (0,0), (-1,0), BBF), + ("ROWBACKGROUNDS",(0,1), (-1,-1), [C["white"], LBG]), + ("FONTSIZE", (0,0), (-1,-1), 8.5), + ("ALIGN", (0,0), (-1,0), "CENTER"), + ("ALIGN", (0,1), (0,-1), "CENTER"), + ("VALIGN", (0,0), (-1,-1), "MIDDLE"), + ("TOPPADDING", (0,0), (-1,-1), 5), + ("BOTTOMPADDING", (0,0), (-1,-1), 5), + ("LEFTPADDING", (0,0), (-1,-1), 5), + ("GRID", (0,0), (-1,-1), 0.5, C["border"]), + ])) + story.append(pt) + story.append(Spacer(1, 5*mm)) + + story.append(note("신고 방법: 한국SW산업협회(swit.or.kr) 온라인 신고 또는 과학기술정보통신부 제출")) + story.append(note("처리 기간: 약 2주 | 수수료: 없음")) + story.append(note("확인서 발급: 신고 완료 후 '소프트웨어사업자 신고확인서' 발급 (GS인증 신청 시 필요)")) + story.append(Spacer(1, 6*mm)) + + story.append(Paragraph("위와 같이 소프트웨어사업자 신고를 합니다.", + S("pledge2", fontName=BF, fontSize=10, alignment=TA_CENTER, leading=16))) + story.append(Spacer(1, 6*mm)) + story.append(sign_area("신 고 일")) + + for item in footer("과학기술정보통신부 / 한국SW산업협회(KOSA) 제출용"): + story.append(item) + + doc.build(story, onFirstPage=on_page_num("소프트웨어사업자 신고서 | 과학기술정보통신부"), + onLaterPages=on_page_num("소프트웨어사업자 신고서 | 과학기술정보통신부")) + print(f"[OK] 02_소프트웨어사업자_신고서.pdf ({Path(out).stat().st_size//1024}KB)") + + +# ══════════════════════════════════════════════════════════════ +# PDF 03: 조달청 나라장터 물품 등록 신청서 +# ══════════════════════════════════════════════════════════════ +def make_g2b_pdf(out): + doc = make_doc(out, "조달청 나라장터 물품 등록 신청서") + story = [] + AC = C["orange"] + LBG = C["lorg"] + + story.append(banner( + "조달청 나라장터 물품 등록 신청서", + "국가종합전자조달시스템 | 조달청 | www.g2b.go.kr", + AC + )) + story.append(Spacer(1, 5*mm)) + story.append(Paragraph("소프트웨어 물품 등록 신청서 (나라장터)", + S("h3", fontName=BBF, fontSize=16, textColor=AC, alignment=TA_CENTER, leading=22))) + story.append(Paragraph( + "공공기관 납품을 위한 소프트웨어 물품을 국가종합전자조달시스템(나라장터)에 등록합니다.", + S("ref3", fontName=BF, fontSize=9, textColor=C["gray"], alignment=TA_CENTER, leading=14))) + story.append(Spacer(1, 6*mm)) + + # 1. 공급업체 정보 + story.append(sec("1. 공급업체 정보", AC)) + story.append(Spacer(1, 3*mm)) + story.append(kv([ + ["업 체 명", "(주)지오정보기술"], + ["대 표 자", "(대표이사명)"], + ["사업자등록번호", "000-00-00000"], + ["소 재 지", "서울특별시 (상세주소)"], + ["대 표 전 화", "02-000-0000"], + ["팩 스", "02-000-0001"], + ["담 당 자", "(담당자명) / 02-000-0000 / g2b@zioinfo.co.kr"], + ["계 좌 번 호", "은행명 000-000-000000 (주)지오정보기술"], + ], LBG)) + story.append(Spacer(1, 5*mm)) + + # 2. 물품 기본 정보 + story.append(sec("2. 물품 기본 정보", AC)) + story.append(Spacer(1, 3*mm)) + story.append(kv([ + ["물 품 명", "GUARDiA ITSM (AI 기반 IT서비스관리 플랫폼)"], + ["규격 / 모델명", "GUARDiA ITSM v2.0"], + ["물품 분류코드", "소프트웨어 > 시스템관리 > IT서비스관리 (ITSM)"], + ["원 산 지", "국내산 (대한민국)"], + ["제 조 사", "(주)지오정보기술"], + ["브 랜 드", "GUARDiA"], + ["단 위", "식 (라이선스)"], + ["품 목 번 호", "(나라장터 등록 후 부여)"], + ], LBG)) + story.append(Spacer(1, 5*mm)) + + # 3. 가격 정보 + story.append(sec("3. 가격 정보 (에디션별 라이선스)", AC)) + story.append(Spacer(1, 3*mm)) + price_h = [["에디션", "대상 규모", "기준 단가 (원)", "연간 유지보수율", "비고"]] + price_d = [ + ["COMMUNITY", "소규모 / 검토용", "0 (무료)", "—", "기관 1개·사용자 10명·서버 20대"], + ["STANDARD", "중형 기관 (50기관 이하)", "별도 협의", "15%", "사용자 200명·서버 200대"], + ["ENTERPRISE", "대형 관공서 / 광역기관", "별도 협의", "15%", "무제한 (전용 지원 포함)"], + ] + pt = Table(price_h+price_d, colWidths=[24*mm, 36*mm, 30*mm, 22*mm, WC-112*mm]) + pt.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (-1,0), AC), + ("TEXTCOLOR", (0,0), (-1,0), C["white"]), + ("FONTNAME", (0,0), (-1,0), BBF), + ("ROWBACKGROUNDS",(0,1), (-1,-1), [C["white"], LBG]), + ("FONTSIZE", (0,0), (-1,-1), 8.5), + ("ALIGN", (0,0), (-1,0), "CENTER"), + ("ALIGN", (0,1), (1,-1), "CENTER"), + ("VALIGN", (0,0), (-1,-1), "MIDDLE"), + ("TOPPADDING", (0,0), (-1,-1), 5), + ("BOTTOMPADDING", (0,0), (-1,-1), 5), + ("LEFTPADDING", (0,0), (-1,-1), 5), + ("GRID", (0,0), (-1,-1), 0.5, C["border"]), + ])) + story.append(pt) + story.append(Spacer(1, 3*mm)) + story.append(note("나라장터 등록 단가는 실제 계약 시 협의를 통해 결정됩니다.")) + story.append(note("중소기업 직접생산확인증명서 제출 시 중소기업제품 우선구매 적용 가능합니다.")) + story.append(Spacer(1, 5*mm)) + + # 4. 제품 규격서 + story.append(sec("4. 제품 규격서 (설치 환경 및 요구 사양)", AC)) + story.append(Spacer(1, 3*mm)) + story.append(kv([ + ["운영체제(서버)", "Ubuntu 20.04+ / CentOS 7+ / RHEL 8+ / Windows Server 2019+"], + ["최소 CPU", "4코어 이상 (Intel / AMD x86_64)"], + ["최소 RAM", "16GB 이상 (Ollama AI 엔진 포함)"], + ["필요 디스크", "50GB 이상"], + ["네트워크", "내부망 전용 지원 — 인터넷 연결 불필요 (완전 폐쇄망 운영 가능)"], + ["클라이언트", "Chrome 90+ / Firefox 88+ / Edge 90+ (브라우저 기반, 설치 불필요)"], + ["DB 지원", "SQLite (내장) / PostgreSQL 15+ (선택)"], + ["AI 엔진", "Ollama 온프레미스 LLM (외부 클라우드 API 미사용)"], + ], LBG)) + story.append(Spacer(1, 5*mm)) + + # 5. 주요 기능 + story.append(sec("5. 주요 기능 요약", AC)) + story.append(Spacer(1, 3*mm)) + func_h = [["기능 영역", "주요 기능 내용", "공공기관 필수 여부"]] + func_d = [ + ["SR / ITSM", "서비스요청 접수·처리, 인시던트, 변경관리, SLA, CMDB", "필수"], + ["AI 자동화", "Ollama 온프레미스 AI — 티켓분류, RCA, 이상탐지, 예측", "선택"], + ["ChatOps", "카카오워크·네이버웍스·슬랙 25개 봇 명령어 지원", "선택"], + ["에이전트리스", "SSH/SFTP 기반 WAS 자동 배포·운영 (서버 설치 불필요)", "필수"], + ["PMS", "WBS, 산출물 관리, 일간/주간/월간 보고서 자동 생성", "필수"], + ["보안", "JWT+MFA+AES-256+PAM+감사로그+취약점스캔+시큐어코딩", "필수"], + ["공공기관 준수", "행안부 체크리스트 19개, 웹접근성(KWCAG 2.1), PIPA", "필수"], + ] + ft = Table(func_h+func_d, colWidths=[28*mm, 95*mm, WC-123*mm]) + ft.setStyle(TableStyle([ + ("BACKGROUND", (0,0), (-1,0), AC), + ("TEXTCOLOR", (0,0), (-1,0), C["white"]), + ("FONTNAME", (0,0), (-1,0), BBF), + ("ROWBACKGROUNDS",(0,1), (-1,-1), [C["white"], LBG]), + ("FONTSIZE", (0,0), (-1,-1), 9), + ("ALIGN", (0,0), (-1,0), "CENTER"), + ("ALIGN", (0,1), (0,-1), "CENTER"), + ("ALIGN", (2,1), (2,-1), "CENTER"), + ("VALIGN", (0,0), (-1,-1), "MIDDLE"), + ("TOPPADDING", (0,0), (-1,-1), 5), + ("BOTTOMPADDING", (0,0), (-1,-1), 5), + ("LEFTPADDING", (0,0), (-1,-1), 7), + ("GRID", (0,0), (-1,-1), 0.5, C["border"]), + ])) + story.append(ft) + story.append(Spacer(1, 5*mm)) + + # 6. 인증 및 실적 + story.append(sec("6. 인증 현황 및 납품 실적", AC)) + story.append(Spacer(1, 3*mm)) + story.append(kv([ + ["GS인증(TTA)", "GS 1등급 취득 예정 — 2026년 12월"], + ["SW저작권 등록", "C-2026-XXXXXX (등록 후 기입)"], + ["SW사업자 신고", "제XXX호 (신고 후 기입)"], + ["주요 납품 실적", "(공공기관 납품 실적 기입 — 계약서 사본 첨부)"], + ["중소기업 확인", "중소기업 직접생산확인증명서 첨부"], + ], LBG)) + story.append(Spacer(1, 5*mm)) + + story.append(note("등록 방법: 조달청 나라장터(g2b.go.kr) → 공급업체 로그인 → 물품 등록 신청")) + story.append(note("필요 서류: 사업자등록증, 법인등기부등본, SW저작권등록증, 제품 규격서, 가격확인서")) + story.append(note("처리 기간: 약 1~2주 | 수수료: 없음")) + story.append(Spacer(1, 6*mm)) + + story.append(Paragraph("위와 같이 물품 등록을 신청합니다.", + S("pledge3", fontName=BF, fontSize=10, alignment=TA_CENTER, leading=16))) + story.append(Spacer(1, 6*mm)) + story.append(sign_area("신 청 일")) + + for item in footer("조달청 나라장터 제출용"): + story.append(item) + + doc.build(story, onFirstPage=on_page_num("조달청 나라장터 물품 등록 신청서 | 조달청"), + onLaterPages=on_page_num("조달청 나라장터 물품 등록 신청서 | 조달청")) + print(f"[OK] 03_조달청_나라장터_물품_등록_신청서.pdf ({Path(out).stat().st_size//1024}KB)") + + +# ══════════════════════════════════════════════════════════════ +# MAIN +# ══════════════════════════════════════════════════════════════ +if __name__ == "__main__": + sys.stdout.reconfigure(encoding="utf-8", errors="replace") + base = Path(__file__).parent + + print("GUARDiA ITSM 프로그램 등록 신청서 3종 PDF 생성 중...") + print() + + make_copyright_pdf(str(base / "01_소프트웨어_저작권_등록_신청서.pdf")) + make_bizreg_pdf( str(base / "02_소프트웨어사업자_신고서.pdf")) + make_g2b_pdf( str(base / "03_조달청_나라장터_물품_등록_신청서.pdf")) + + print() + print("3종 PDF 생성 완료:") + for f in sorted(base.glob("0*.pdf")): + print(f" {f.name} ({f.stat().st_size//1024}KB)") diff --git a/certification/source/01_core_ssh_agentless.py b/certification/source/01_core_ssh_agentless.py new file mode 100644 index 00000000..a7601fe6 --- /dev/null +++ b/certification/source/01_core_ssh_agentless.py @@ -0,0 +1,450 @@ +""" +GUARDiA ITSM — SSH 실행 엔진 +asyncssh 기반 비동기 원격 명령 실행. + +보안 원칙: +- root 직접 접속 금지 (ssh_user != root 강제) +- 위험 명령어 패턴 차단 (BLOCKED_PATTERNS) +- AES-256-GCM 자격증명 복호화 +- 모든 실행 감사 로그 기록 +- 서버 IP, 계정, 비밀번호 응답에 포함 금지 +""" +from __future__ import annotations + +import asyncio +import base64 +import logging +import os +import re +from datetime import datetime +from typing import Optional + +logger = logging.getLogger(__name__) + +# ── 위험 명령어 차단 패턴 ────────────────────────────────────────────────────── +BLOCKED_PATTERNS: list[re.Pattern] = [ + re.compile(p, re.IGNORECASE) for p in [ + r"rm\s+-[rf]+\s+/", # rm -rf / + r"rm\s+-[rf]+\s+\*", # rm -rf * + r"mkfs(\.[a-z0-9]+)?\s", # mkfs + r"dd\s+if=", # dd if= + r">\s*/dev/(sd|hd|vd|nvme)", # 블록 디바이스 덮어쓰기 + r">\s*/dev/zero", + r"shutdown\s", # shutdown + r"reboot(\s|$)", # reboot + r"halt(\s|$)", # halt + r"poweroff(\s|$)", # poweroff + r"init\s+[06]", # init 0 / init 6 + r"chmod\s+[0-9]*777\s+/", # chmod 777 / + r"passwd\s+root", # root 비밀번호 변경 + r"usermod\s+.*root", # root 계정 수정 + r"visudo", # sudoers 편집 + r"iptables\s+-F", # 방화벽 전체 삭제 + r"firewall-cmd\s+--remove", # firewall-cmd 규칙 삭제 + r"systemctl\s+(disable|mask)\s+(firewall|iptables|sshd)", + r"setenforce\s+0", # SELinux 비활성화 + r"rm\s+.*authorized_keys", # SSH 키 삭제 + r"echo\s+.*>+\s*/etc/shadow", # shadow 파일 덮어쓰기 + r"curl\s+.*\|\s*(bash|sh)", # curl | bash 패턴 + r"wget\s+.*-O\s*-\s*\|", # wget | 파이프 + r"base64\s+-d.*\|.*sh", # base64 decode | sh + r"python.*exec\(", # 동적 코드 실행 + r":(){ :|:& };:", # fork bomb + ] +] + + +def _validate_command(cmd: str) -> tuple[bool, str]: + """ + 명령어 안전성 검증. + Returns: (is_safe, reason) + """ + for pattern in BLOCKED_PATTERNS: + if pattern.search(cmd): + return False, f"차단된 명령어 패턴: {pattern.pattern}" + # 다중 명령어 내 각 부분도 검사 + for part in re.split(r"[;&|]+", cmd): + part = part.strip() + for pattern in BLOCKED_PATTERNS: + if pattern.search(part): + return False, f"차단된 명령어 패턴 (조합): {pattern.pattern}" + return True, "" + + +def _decrypt_password(enc_b64: str) -> str: + """ + AES-256-GCM 암호화된 비밀번호 복호화. + 형식: base64(nonce[12] + ciphertext + tag[16]) + """ + try: + from cryptography.hazmat.primitives.ciphers.aead import AESGCM + key_b64 = os.environ.get("AES_SECRET_KEY", "") + if not key_b64: + raise ValueError("AES_SECRET_KEY 환경변수 미설정") + key = base64.b64decode(key_b64) + data = base64.b64decode(enc_b64) + nonce, ct = data[:12], data[12:] + return AESGCM(key).decrypt(nonce, ct, None).decode() + except Exception as e: + logger.error("비밀번호 복호화 실패: %s", str(e)[:50]) + raise RuntimeError("자격증명 복호화 실패") from e + + +class SSHResult: + """SSH 실행 결과 (보안 필드 미포함).""" + def __init__(self, success: bool, stdout: str, stderr: str, + exit_code: int, elapsed: float, error: str = ""): + self.success = success + self.stdout = stdout[:10000] # 최대 10KB + self.stderr = stderr[:2000] # 최대 2KB + self.exit_code = exit_code + self.elapsed = round(elapsed, 2) + self.error = error # 연결/실행 오류 요약 + + def to_dict(self) -> dict: + return { + "success": self.success, + "stdout": self.stdout, + "stderr": self.stderr, + "exit_code": self.exit_code, + "elapsed": self.elapsed, + "error": self.error, + } + + +async def exec_command( + server_name: str, + command: str, + timeout: int = 300, + *, + db=None, + actor: str = "GUARDiA-AI", + sr_id: Optional[str] = None, +) -> SSHResult: + """ + 지정 서버에 SSH 접속 후 명령어 실행. + + Args: + server_name: tb_server.server_name + command: 실행할 셸 명령어 + timeout: 실행 타임아웃 (초) + db: AsyncSession (None 이면 새 세션 생성) + actor: 감사 로그 기록자 + sr_id: 연관 SR ID (감사 로그용) + """ + import asyncssh + from sqlalchemy import select + from database import SessionLocal + from models import Server, AuditLog, compute_log_hash + + # ── 1. 명령어 안전성 검증 ────────────────────────────── + is_safe, reason = _validate_command(command) + if not is_safe: + logger.warning("[SSH] 차단된 명령: %s — %s", command[:80], reason) + await _write_audit_safe( + db, sr_id, actor, "SSH_BLOCKED", + f"차단: {reason} | CMD: {command[:100]}" + ) + return SSHResult( + success=False, stdout="", stderr="", + exit_code=-1, elapsed=0.0, + error=f"보안 정책에 의해 차단된 명령입니다: {reason}" + ) + + # ── 2. 서버 자격증명 조회 ────────────────────────────── + own_db = db is None + _db = SessionLocal() if own_db else db + server_obj = None + try: + r = await _db.execute( + select(Server).where(Server.server_name == server_name) + ) + server_obj = r.scalars().first() + finally: + if own_db: + await _db.close() + + if not server_obj: + return SSHResult( + success=False, stdout="", stderr="", + exit_code=-1, elapsed=0.0, + error=f"서버를 찾을 수 없습니다: {server_name}" + ) + + # root 직접 접속 차단 + ssh_user = getattr(server_obj, "ssh_user", "") or "" + if ssh_user.strip() == "root": + await _write_audit_safe( + db, sr_id, actor, "SSH_BLOCKED", + f"root 직접 접속 차단: {server_name}" + ) + return SSHResult( + success=False, stdout="", stderr="", + exit_code=-1, elapsed=0.0, + error="root 직접 SSH 접속은 보안 정책에 의해 금지됩니다." + ) + + # 비밀번호 복호화 + enc_pw = getattr(server_obj, "os_pw_enc", "") or "" + try: + password = _decrypt_password(enc_pw) if enc_pw else "" + except RuntimeError as e: + return SSHResult( + success=False, stdout="", stderr="", + exit_code=-1, elapsed=0.0, error=str(e) + ) + + ip_addr = getattr(server_obj, "ip_addr", "") + ssh_port = getattr(server_obj, "ssh_port", 22) or 22 + + # ── 3. 감사 로그 — 실행 시작 ───────────────────────── + await _write_audit_safe( + db, sr_id, actor, "SSH_EXEC_START", + f"서버: {server_name} | CMD: {command[:200]}" + ) + + # ── 4. asyncssh 실행 ───────────────────────────────── + start = asyncio.get_event_loop().time() + try: + connect_timeout = int(os.environ.get("SSH_CONNECT_TIMEOUT", "10")) + known_hosts = os.environ.get("SSH_KNOWN_HOSTS", None) + + conn_kwargs: dict = { + "host": ip_addr, + "port": ssh_port, + "username": ssh_user, + "connect_timeout": connect_timeout, + } + if password: + conn_kwargs["password"] = password + # 운영환경: known_hosts 검증 / 개발환경: 비활성화 + if known_hosts: + conn_kwargs["known_hosts"] = known_hosts + else: + conn_kwargs["known_hosts"] = None # 개발/테스트용 + + async with asyncssh.connect(**conn_kwargs) as conn: + result = await asyncio.wait_for( + conn.run(command, check=False), + timeout=timeout + ) + + elapsed = asyncio.get_event_loop().time() - start + stdout = (result.stdout or "").strip() + stderr = (result.stderr or "").strip() + exit_code = result.exit_status or 0 + success = (exit_code == 0) + + # ── 5. 감사 로그 — 실행 완료 ───────────────────── + summary = stdout[:200] if success else stderr[:200] + await _write_audit_safe( + db, sr_id, actor, "SSH_EXEC_DONE", + f"서버: {server_name} | exit={exit_code} | {summary}" + ) + + return SSHResult( + success=success, + stdout=stdout, + stderr=stderr, + exit_code=exit_code, + elapsed=elapsed, + ) + + except asyncio.TimeoutError: + elapsed = asyncio.get_event_loop().time() - start + await _write_audit_safe( + db, sr_id, actor, "SSH_EXEC_TIMEOUT", + f"서버: {server_name} | timeout={timeout}s" + ) + return SSHResult( + success=False, stdout="", stderr="", + exit_code=-1, elapsed=elapsed, + error=f"명령 실행 타임아웃 ({timeout}초)" + ) + except Exception as e: + elapsed = asyncio.get_event_loop().time() - start + # 에러 메시지에서 IP/계정 제거 후 로깅 + safe_err = _sanitize_error(str(e)) + logger.error("[SSH] 실행 오류 — 서버: %s | %s", server_name, safe_err) + await _write_audit_safe( + db, sr_id, actor, "SSH_EXEC_ERROR", + f"서버: {server_name} | 오류: {safe_err}" + ) + return SSHResult( + success=False, stdout="", stderr="", + exit_code=-1, elapsed=elapsed, + error=f"SSH 연결/실행 오류 (서버 관리자에게 문의)" + ) + + +async def exec_script( + server_name: str, + script_path: str, + env_vars: Optional[dict] = None, + timeout: int = 600, + *, + db=None, + actor: str = "GUARDiA-AI", + sr_id: Optional[str] = None, +) -> SSHResult: + """ + 지정 서버에서 SM 쉘 스크립트 실행. + 서버에 스크립트를 전송 후 실행 — SCP + bash. + """ + import asyncssh + from sqlalchemy import select + from database import SessionLocal + from models import Server + + # 스크립트 경로 안전성 검사 + safe_path = os.path.realpath(script_path) + scripts_root = os.path.realpath( + os.path.join(os.path.dirname(__file__), "..", "scripts", "sm") + ) + if not safe_path.startswith(scripts_root): + return SSHResult( + success=False, stdout="", stderr="", + exit_code=-1, elapsed=0.0, + error="허용되지 않은 스크립트 경로입니다." + ) + if not os.path.isfile(safe_path): + return SSHResult( + success=False, stdout="", stderr="", + exit_code=-1, elapsed=0.0, + error=f"스크립트 파일이 존재하지 않습니다: {os.path.basename(script_path)}" + ) + + # 서버 정보 조회 + own_db = db is None + _db = SessionLocal() if own_db else db + server_obj = None + try: + r = await _db.execute( + select(Server).where(Server.server_name == server_name) + ) + server_obj = r.scalars().first() + finally: + if own_db: + await _db.close() + + if not server_obj: + return SSHResult( + success=False, stdout="", stderr="", + exit_code=-1, elapsed=0.0, + error=f"서버를 찾을 수 없습니다: {server_name}" + ) + + ssh_user = getattr(server_obj, "ssh_user", "") or "" + if ssh_user.strip() == "root": + return SSHResult( + success=False, stdout="", stderr="", + exit_code=-1, elapsed=0.0, + error="root 직접 SSH 접속은 보안 정책에 의해 금지됩니다." + ) + + enc_pw = getattr(server_obj, "os_pw_enc", "") or "" + ip_addr = getattr(server_obj, "ip_addr", "") or "" + ssh_port = getattr(server_obj, "ssh_port", 22) or 22 + try: + password = _decrypt_password(enc_pw) if enc_pw else "" + except RuntimeError as e: + return SSHResult(success=False, stdout="", stderr="", + exit_code=-1, elapsed=0.0, error=str(e)) + + connect_timeout = int(os.environ.get("SSH_CONNECT_TIMEOUT", "10")) + known_hosts = os.environ.get("SSH_KNOWN_HOSTS", None) + + conn_kwargs: dict = { + "host": ip_addr, "port": ssh_port, "username": ssh_user, + "connect_timeout": connect_timeout, + "known_hosts": known_hosts, + } + if password: + conn_kwargs["password"] = password + + remote_tmp = f"/tmp/guardia_sm_{os.path.basename(script_path)}" + env_str = " ".join(f"{k}={v}" for k, v in (env_vars or {}).items()) + + await _write_audit_safe( + db, sr_id, actor, "SSH_SCRIPT_START", + f"서버: {server_name} | 스크립트: {os.path.basename(script_path)}" + ) + + start = asyncio.get_event_loop().time() + try: + async with asyncssh.connect(**conn_kwargs) as conn: + # SCP 전송 + async with conn.start_sftp_client() as sftp: + await sftp.put(safe_path, remote_tmp) + # 실행 권한 + 실행 + run_cmd = f"chmod +x {remote_tmp} && {env_str} bash {remote_tmp}; rm -f {remote_tmp}" + result = await asyncio.wait_for( + conn.run(run_cmd, check=False), + timeout=timeout + ) + + elapsed = asyncio.get_event_loop().time() - start + stdout = (result.stdout or "").strip() + stderr = (result.stderr or "").strip() + exit_code = result.exit_status or 0 + + await _write_audit_safe( + db, sr_id, actor, "SSH_SCRIPT_DONE", + f"서버: {server_name} | script: {os.path.basename(script_path)} | exit={exit_code}" + ) + return SSHResult( + success=(exit_code == 0), + stdout=stdout, stderr=stderr, + exit_code=exit_code, elapsed=elapsed + ) + + except asyncio.TimeoutError: + elapsed = asyncio.get_event_loop().time() - start + return SSHResult( + success=False, stdout="", stderr="", + exit_code=-1, elapsed=elapsed, + error=f"스크립트 실행 타임아웃 ({timeout}초)" + ) + except Exception as e: + elapsed = asyncio.get_event_loop().time() - start + safe_err = _sanitize_error(str(e)) + return SSHResult( + success=False, stdout="", stderr="", + exit_code=-1, elapsed=elapsed, + error=f"SSH 스크립트 실행 오류: {safe_err}" + ) + + +def _sanitize_error(msg: str) -> str: + """에러 메시지에서 IP/계정/비밀번호 패턴 제거.""" + msg = re.sub(r"\b(?:\d{1,3}\.){3}\d{1,3}\b", "", msg) + msg = re.sub(r"password[=:\s]+\S+", "password=", msg, flags=re.IGNORECASE) + msg = re.sub(r"user(?:name)?[=:\s]+\S+", "user=", msg, flags=re.IGNORECASE) + return msg[:200] + + +async def _write_audit_safe(db, sr_id, actor, action, detail): + """감사 로그 안전 기록 — 독립 세션 사용.""" + try: + from database import SessionLocal + from models import AuditLog, compute_log_hash + from sqlalchemy import select + + async with SessionLocal() as _db: + r = await _db.execute( + select(AuditLog) + .where(AuditLog.sr_id == sr_id) + .order_by(AuditLog.id.desc()) + .limit(1) + ) + last = r.scalars().first() + prev_hash = last.log_hash if last else None + ts = datetime.now().isoformat() + log_hash = compute_log_hash(prev_hash, actor, action, detail, ts) + _db.add(AuditLog( + sr_id=sr_id, actor=actor, action=action, + detail=detail, prev_hash=prev_hash, log_hash=log_hash + )) + await _db.commit() + except Exception as e: + logger.warning("[SSH] 감사 로그 기록 실패: %s", str(e)[:80]) diff --git a/certification/source/02_core_license_engine.py b/certification/source/02_core_license_engine.py new file mode 100644 index 00000000..0201d042 --- /dev/null +++ b/certification/source/02_core_license_engine.py @@ -0,0 +1,455 @@ +""" +GUARDiA 라이선스 엔진 — 생성/검증/관리. + +라이선스 키 구조: + GRD-{base64url(iv[12] + ciphertext + gcm_tag[16] + hmac_sig[8])} + +보안 설계: + - AES-256-GCM 암호화 (iv 12B + tag 16B) + - HMAC-SHA256 서명 (8B prefix — 위변조 즉시 탐지) + - 완전 오프라인 검증 (외부 API 호출 없음) + - 환경변수 GUARDIA_LICENSE_KEY (64 hex chars = 32 bytes) 필수 + +라이선스 에디션: + TRIAL — 7일 무료 체험: 기관 1개, 사용자 10명, 서버 20대 (설치당 1회) + COMMUNITY — 무료: 기관 1개, 사용자 10명 + STANDARD — 유료: 기관 50개, 사용자 200명 + ENTERPRISE — 유료: 무제한 +""" +from __future__ import annotations + +import base64 +import hashlib +import hmac as _hmac +import json +import os +import secrets +from datetime import datetime, timedelta, timezone +from enum import Enum +from typing import Optional + +from cryptography.hazmat.primitives.ciphers.aead import AESGCM + +# ── 환경 설정 ────────────────────────────────────────────────────────────────── + +LICENSE_MASTER_KEY: str = os.environ.get("GUARDIA_LICENSE_KEY", "") +_HMAC_SUFFIX = b"guardia-license-hmac-v1" +_IV_LEN = 12 +_SIG_LEN = 8 # HMAC-SHA256 중 앞 8바이트 + +# 체험판 전용 내장 마스터 키 (프로덕션 키와 완전히 분리) +# TRIAL 에디션 키만 발급 가능 — 설치당 1회 제한으로 남용 방지 +_TRIAL_MASTER_KEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" + +TRIAL_DURATION_DAYS = int(os.getenv("TRIAL_DURATION_DAYS", "7")) # 환경변수로 조정 가능 + + +# ── 에디션 정의 ──────────────────────────────────────────────────────────────── + +class LicenseEdition(str, Enum): + TRIAL = "TRIAL" + COMMUNITY = "COMMUNITY" + STANDARD = "STANDARD" + ENTERPRISE = "ENTERPRISE" + + +EDITION_LIMITS: dict[str, dict] = { + LicenseEdition.TRIAL: { + "max_institutions": 1, + "max_users": 10, + "max_servers": 20, + "features": ["MFA"], + "trial": True, + }, + LicenseEdition.COMMUNITY: { + "max_institutions": 1, + "max_users": 10, + "max_servers": 20, + "features": ["MFA"], + }, + LicenseEdition.STANDARD: { + "max_institutions": 50, + "max_users": 200, + "max_servers": 500, + "features": ["MFA", "LDAP", "PAM", "AI_AGENTS"], + }, + LicenseEdition.ENTERPRISE: { + "max_institutions": -1, # -1 = 무제한 + "max_users": -1, + "max_servers": -1, + "features": ["MFA", "LDAP", "PAM", "AI_AGENTS", + "VULN_SCAN", "CICD", "ANALYTICS", "FINOPS"], + }, +} + +# 만료 경고 기준 (일) +EXPIRY_WARN_DAYS = 30 + +# ── 내부 유틸 ────────────────────────────────────────────────────────────────── + +def _require_master_key(override: Optional[str] = None) -> str: + mk = override or LICENSE_MASTER_KEY + if not mk: + raise RuntimeError( + "GUARDIA_LICENSE_KEY 환경변수가 설정되지 않았습니다. " + ".env 파일에 64자리 hex 값(32바이트)을 설정하세요." + ) + if len(mk) != 64: + raise ValueError(f"GUARDIA_LICENSE_KEY는 64자리 hex여야 합니다 (현재: {len(mk)}자)") + return mk + + +def _derive_keys(master_hex: str) -> tuple[bytes, bytes]: + """master_hex → (aes_key: 32B, hmac_key: 32B).""" + master = bytes.fromhex(master_hex) + aes_key = hashlib.sha256(master + b"guardia-aes-v1").digest() + hmac_key = hashlib.sha256(master + _HMAC_SUFFIX).digest() + return aes_key, hmac_key + + +# ── 라이선스 생성 ─────────────────────────────────────────────────────────────── + +def generate_license_key( + customer: str, + edition: LicenseEdition, + expires_at: datetime, + license_id: Optional[str] = None, + custom_limits: Optional[dict] = None, + master_key_hex: Optional[str] = None, +) -> str: + """ + 라이선스 키 생성 (벤더 내부 도구 전용). + + Args: + customer: 고객/기관 이름 + edition: COMMUNITY | STANDARD | ENTERPRISE + expires_at: 만료일시 (UTC) + license_id: 지정 라이선스 ID (미지정 시 자동 생성) + custom_limits: 에디션 기본 제한 재정의 (선택) + master_key_hex: 마스터 키 (미지정 시 환경변수 사용) + + Returns: + "GRD-{base64url}" 형태의 라이선스 키 문자열 + """ + mk = _require_master_key(master_key_hex) + lid = license_id or f"GRD-{secrets.token_hex(6).upper()}" + limits = custom_limits or EDITION_LIMITS[edition] + + if expires_at.tzinfo is None: + expires_at = expires_at.replace(tzinfo=timezone.utc) + + payload = json.dumps({ + "license_id": lid, + "edition": edition.value, + "customer": customer, + "issued_at": datetime.now(timezone.utc).isoformat(), + "expires_at": expires_at.isoformat(), + "limits": limits, + }, ensure_ascii=False, separators=(",", ":")) + + aes_key, hmac_key = _derive_keys(mk) + iv = secrets.token_bytes(_IV_LEN) + ct = AESGCM(aes_key).encrypt(iv, payload.encode(), None) # ct includes 16B GCM tag + + blob = iv + ct + sig = _hmac.new(hmac_key, blob, hashlib.sha256).digest()[:_SIG_LEN] + + encoded = base64.urlsafe_b64encode(blob + sig).decode().rstrip("=") + return f"GRD-{encoded}" + + +# ── 체험판 라이선스 생성 ──────────────────────────────────────────────────────── + +def generate_trial_key(customer: str, license_id: Optional[str] = None, + days: Optional[int] = None) -> str: + """ + 체험 라이선스 키 생성. + + - 내장 Trial 마스터 키 사용 (GUARDIA_LICENSE_KEY 불필요) + - TRIAL 에디션 고정 + - 만료: 생성 시점 + days일 (기본: TRIAL_DURATION_DAYS) + + Args: + customer: 고객사/사용자명 + license_id: 라이선스 ID (None이면 자동 생성) + days: 체험 기간 (일). None이면 TRIAL_DURATION_DAYS 사용 + + Returns: + "GRD-{base64url}" 형태의 체험 라이선스 키 + """ + trial_days = days if days is not None else TRIAL_DURATION_DAYS + expires_at = datetime.now(timezone.utc) + timedelta(days=trial_days) + lid = license_id or f"TRL-{secrets.token_hex(6).upper()}" + limits = EDITION_LIMITS[LicenseEdition.TRIAL] + + payload = json.dumps({ + "license_id": lid, + "edition": LicenseEdition.TRIAL.value, + "customer": customer, + "issued_at": datetime.now(timezone.utc).isoformat(), + "expires_at": expires_at.isoformat(), + "limits": limits, + }, ensure_ascii=False, separators=(",", ":")) + + aes_key, hmac_key = _derive_keys(_TRIAL_MASTER_KEY) + iv = secrets.token_bytes(_IV_LEN) + ct = AESGCM(aes_key).encrypt(iv, payload.encode(), None) + + blob = iv + ct + sig = _hmac.new(hmac_key, blob, hashlib.sha256).digest()[:_SIG_LEN] + encoded = base64.urlsafe_b64encode(blob + sig).decode().rstrip("=") + return f"GRD-{encoded}" + + +def decode_trial_key(key: str) -> dict: + """체험판 키 전용 복호화 (내장 Trial 마스터 키 사용).""" + if not key.startswith("GRD-"): + raise ValueError("잘못된 라이선스 키 형식") + try: + raw = base64.urlsafe_b64decode(key[4:] + "==") + except Exception: + raise ValueError("라이선스 키 base64 디코딩 실패") + + min_len = _IV_LEN + 16 + _SIG_LEN + if len(raw) < min_len: + raise ValueError("라이선스 키 길이 오류") + + blob, sig = raw[:-_SIG_LEN], raw[-_SIG_LEN:] + aes_key, hmac_key = _derive_keys(_TRIAL_MASTER_KEY) + + expected_sig = _hmac.new(hmac_key, blob, hashlib.sha256).digest()[:_SIG_LEN] + if not _hmac.compare_digest(sig, expected_sig): + raise ValueError("체험 라이선스 서명 검증 실패") + + iv, ct = blob[:_IV_LEN], blob[_IV_LEN:] + try: + plaintext = AESGCM(aes_key).decrypt(iv, ct, None) + except Exception: + raise ValueError("체험 라이선스 복호화 실패") + + return json.loads(plaintext) + + +# ── 라이선스 복호화 ───────────────────────────────────────────────────────────── + +def decode_license_key(key: str, master_key_hex: Optional[str] = None) -> dict: + """ + 라이선스 키 복호화 및 서명 검증. + + Returns: + payload dict (license_id, edition, customer, issued_at, expires_at, limits) + + Raises: + ValueError: 키 형식/서명/복호화 오류 시 + """ + mk = _require_master_key(master_key_hex) + + if not key.startswith("GRD-"): + raise ValueError("잘못된 라이선스 키 형식 (GRD- 접두사 필요)") + + try: + raw = base64.urlsafe_b64decode(key[4:] + "==") + except Exception: + raise ValueError("라이선스 키 base64 디코딩 실패") + + min_len = _IV_LEN + 16 + _SIG_LEN # iv + gcm_tag + sig + if len(raw) < min_len: + raise ValueError("라이선스 키 길이 오류") + + blob, sig = raw[:-_SIG_LEN], raw[-_SIG_LEN:] + aes_key, hmac_key = _derive_keys(mk) + + expected_sig = _hmac.new(hmac_key, blob, hashlib.sha256).digest()[:_SIG_LEN] + if not _hmac.compare_digest(sig, expected_sig): + raise ValueError("라이선스 서명 검증 실패 — 위변조 또는 잘못된 키") + + iv, ct = blob[:_IV_LEN], blob[_IV_LEN:] + try: + plaintext = AESGCM(aes_key).decrypt(iv, ct, None) + except Exception: + raise ValueError("라이선스 복호화 실패 — 마스터 키 불일치") + + try: + return json.loads(plaintext) + except json.JSONDecodeError: + raise ValueError("라이선스 페이로드 파싱 실패") + + +# ── 라이선스 검증 ─────────────────────────────────────────────────────────────── + +def validate_license(key: str, master_key_hex: Optional[str] = None) -> dict: + """ + 라이선스 키 검증 후 상태 dict 반환. + + Returns: { + "valid": bool, # True = 유효하고 미만료 + "expired": bool, + "expiry_warning": bool, # 만료 30일 이내 경고 + "license_id": str, + "edition": str, + "customer": str, + "issued_at": str, + "expires_at": str, + "limits": dict, + "days_remaining": int, + "error": str, # 오류 시에만 + } + """ + # TRIAL 키는 내장 Trial 마스터 키로 먼저 시도, 실패 시 일반 마스터 키로 재시도 + try: + info = decode_trial_key(key) + if info.get("edition") != LicenseEdition.TRIAL.value: + raise ValueError("not trial") + except Exception: + try: + info = decode_license_key(key, master_key_hex) + except Exception as e: + return {"valid": False, "expired": False, "error": str(e)} + + now = datetime.now(timezone.utc) + expires = datetime.fromisoformat(info["expires_at"]) + if expires.tzinfo is None: + expires = expires.replace(tzinfo=timezone.utc) + + expired = now > expires + days_remaining = max(0, (expires - now).days) + expiry_warning = not expired and days_remaining <= EXPIRY_WARN_DAYS + + is_trial = info.get("edition") == LicenseEdition.TRIAL.value + + return { + "valid": not expired, + "expired": expired, + "expiry_warning": expiry_warning, + "is_trial": is_trial, + "license_id": info["license_id"], + "edition": info["edition"], + "customer": info["customer"], + "issued_at": info["issued_at"], + "expires_at": info["expires_at"], + "limits": info["limits"], + "days_remaining": days_remaining, + } + + +# ── 인메모리 캐시 ─────────────────────────────────────────────────────────────── + +_license_cache: Optional[dict] = None +_cache_refreshed_at: Optional[datetime] = None +_CACHE_TTL_SECONDS = 3600 # 1시간 + + +def get_cached_license() -> Optional[dict]: + """캐시된 라이선스 상태 반환 (TTL 초과 시 None).""" + global _license_cache, _cache_refreshed_at + if _license_cache is None or _cache_refreshed_at is None: + return None + age = (datetime.now(timezone.utc) - _cache_refreshed_at).total_seconds() + if age > _CACHE_TTL_SECONDS: + return None + return _license_cache + + +def set_cached_license(status: dict) -> None: + global _license_cache, _cache_refreshed_at + _license_cache = status + _cache_refreshed_at = datetime.now(timezone.utc) + + +def invalidate_license_cache() -> None: + global _license_cache, _cache_refreshed_at + _license_cache = None + _cache_refreshed_at = None + + +# ── 비밀번호 복잡도 검증 ──────────────────────────────────────────────────────── + +class PasswordStrength(str, Enum): + WEAK = "WEAK" + MEDIUM = "MEDIUM" + STRONG = "STRONG" + + +def check_password_complexity(password: str) -> tuple[bool, str]: + """ + 비밀번호 복잡도 검증. + + 규칙: + - 최소 8자 + - 대문자 1개 이상 + - 소문자 1개 이상 + - 숫자 1개 이상 + - 특수문자(!@#$%^&*...) 1개 이상 + + Returns: + (ok: bool, message: str) + """ + errors = [] + if len(password) < 8: + errors.append("최소 8자 이상") + if not any(c.isupper() for c in password): + errors.append("대문자 1자 이상") + if not any(c.islower() for c in password): + errors.append("소문자 1자 이상") + if not any(c.isdigit() for c in password): + errors.append("숫자 1자 이상") + specials = set("!@#$%^&*()-_=+[]{}|;:',.<>?/`~") + if not any(c in specials for c in password): + errors.append("특수문자(!@#$%^&* 등) 1자 이상") + + if errors: + return False, "비밀번호 복잡도 미충족: " + ", ".join(errors) + return True, "OK" + + +# ── CLI 진입점 (python -m core.license) ──────────────────────────────────────── + +if __name__ == "__main__": + import argparse + import sys + + parser = argparse.ArgumentParser( + description="GUARDiA 라이선스 키 생성 도구", + formatter_class=argparse.RawDescriptionHelpFormatter, + epilog=""" +사용 예: + python -m core.license --customer "서울시청" --edition ENTERPRISE --days 365 + python -m core.license --customer "테스트기관" --edition COMMUNITY --days 30 --key 64자리hex + """ + ) + parser.add_argument("--customer", required=True, help="고객/기관 이름") + parser.add_argument("--edition", required=True, + choices=["COMMUNITY", "STANDARD", "ENTERPRISE"], + help="라이선스 에디션") + parser.add_argument("--days", type=int, required=True, help="유효 기간(일)") + parser.add_argument("--lid", default=None, help="라이선스 ID (기본: 자동생성)") + parser.add_argument("--key", default=None, + help="마스터 키 (기본: GUARDIA_LICENSE_KEY 환경변수)") + + args = parser.parse_args() + + expires = datetime.now(timezone.utc) + timedelta(days=args.days) + try: + lic_key = generate_license_key( + customer = args.customer, + edition = LicenseEdition(args.edition), + expires_at = expires, + license_id = args.lid, + master_key_hex = args.key, + ) + except Exception as e: + print(f"[오류] {e}", file=sys.stderr) + sys.exit(1) + + info = validate_license(lic_key, master_key_hex=args.key) + print("\n" + "=" * 60) + print(" GUARDiA 라이선스 키 생성 완료") + print("=" * 60) + print(f" 고객명 : {info['customer']}") + print(f" 에디션 : {info['edition']}") + print(f" 라이선스ID: {info['license_id']}") + print(f" 발급일시 : {info['issued_at']}") + print(f" 만료일시 : {info['expires_at']}") + print(f" 유효기간 : {args.days}일") + print("=" * 60) + print(f"\n라이선스 키:\n{lic_key}\n") diff --git a/certification/source/03_router_sr_management.py b/certification/source/03_router_sr_management.py new file mode 100644 index 00000000..899091b0 --- /dev/null +++ b/certification/source/03_router_sr_management.py @@ -0,0 +1,501 @@ +"""SR / Task CRUD + status transition endpoints.""" +from datetime import datetime +from typing import Any, Dict, List, Optional +from uuid import uuid4 + +from fastapi import APIRouter, Depends, HTTPException, Query +from pydantic import BaseModel +from sqlalchemy import select, func +from sqlalchemy.ext.asyncio import AsyncSession + +from core.auth import get_current_user +from core.events import broadcast +from database import get_db +from models import ( + AuditLog, Institution, SRCreate, SROut, SRRequest, SRStatus, + SRStatusUpdate, SRType, User, compute_log_hash +) + +router = APIRouter(prefix="/api/tasks", tags=["tasks"]) + +# Valid state transitions +_TRANSITIONS: dict[str, list[str]] = { + SRStatus.RECEIVED: [SRStatus.PARSED, SRStatus.REJECTED], + SRStatus.PARSED: [SRStatus.PENDING_APPROVAL, SRStatus.REJECTED], + SRStatus.PENDING_APPROVAL: [SRStatus.APPROVED, SRStatus.REJECTED], + SRStatus.APPROVED: [SRStatus.IN_PROGRESS, SRStatus.REJECTED], + SRStatus.IN_PROGRESS: [SRStatus.PENDING_PM_VALIDATION, SRStatus.FAILED_ROLLBACK], + SRStatus.PENDING_PM_VALIDATION:[SRStatus.COMPLETED, SRStatus.FAILED_ROLLBACK], + SRStatus.COMPLETED: [], + SRStatus.FAILED_ROLLBACK: [], + SRStatus.REJECTED: [], +} + + +def _new_sr_id() -> str: + return f"SR-{datetime.now().strftime('%Y%m%d')}-{str(uuid4())[:6].upper()}" + + +async def _write_audit(db: AsyncSession, sr_id: str, actor: str, + action: str, detail: str) -> None: + from sqlalchemy import select as sel + result = await db.execute( + sel(AuditLog).where(AuditLog.sr_id == sr_id) + .order_by(AuditLog.id.desc()).limit(1) + ) + last = result.scalars().first() + prev_hash = last.log_hash if last else None + ts = datetime.now().isoformat() + log_hash = compute_log_hash(prev_hash, actor, action, detail, ts) + db.add(AuditLog( + sr_id=sr_id, actor=actor, action=action, detail=detail, + prev_hash=prev_hash, log_hash=log_hash + )) + + +async def _apply_role_filter(q, current_user: User, db: AsyncSession): + """CUSTOMER 역할이면 자신의 기관 SR만 조회되도록 필터링.""" + from models import UserRole + if current_user.role == UserRole.CUSTOMER and current_user.inst_code: + inst_r = await db.execute( + select(Institution).where(Institution.inst_code == current_user.inst_code) + ) + inst = inst_r.scalars().first() + if inst: + q = q.where(SRRequest.inst_id == inst.id) + else: + # 기관 정보 없으면 빈 결과 보장 + q = q.where(SRRequest.id == -1) + return q + + +@router.get("", response_model=List[SROut]) +async def list_tasks( + status: Optional[str] = Query(None), + sr_type: Optional[str] = Query(None), + priority: Optional[str]= Query(None), + keyword: Optional[str] = Query(None), + skip: int = 0, + limit: int = 50, + db: AsyncSession = Depends(get_db), + current_user: User = Depends(get_current_user), +): + q = select(SRRequest).order_by(SRRequest.created_at.desc()) + q = await _apply_role_filter(q, current_user, db) + if status: + q = q.where(SRRequest.status == status) + if sr_type: + q = q.where(SRRequest.sr_type == sr_type) + if priority: + q = q.where(SRRequest.priority == priority) + if keyword: + q = q.where(SRRequest.title.contains(keyword)) + q = q.offset(skip).limit(limit) + result = await db.execute(q) + return result.scalars().all() + + +@router.get("/stats") +async def get_stats(db: AsyncSession = Depends(get_db), + current_user: User = Depends(get_current_user)): + # 기관 필터 (CUSTOMER) + base_q = select(func.count(SRRequest.id)) + filtered = await _apply_role_filter(select(SRRequest), current_user, db) + # subquery approach: get allowed sr ids + from sqlalchemy import and_ + inst_filter = None + from models import UserRole + if current_user.role == UserRole.CUSTOMER and current_user.inst_code: + inst_r = await db.execute( + select(Institution).where(Institution.inst_code == current_user.inst_code) + ) + inst = inst_r.scalars().first() + inst_filter = (SRRequest.inst_id == inst.id) if inst else (SRRequest.id == -1) + + def _cnt(extra=None): + q = base_q + if inst_filter is not None: + q = q.where(inst_filter) + if extra is not None: + q = q.where(extra) + return q + + total = (await db.execute(_cnt())).scalar() or 0 + by_status: dict[str, int] = {} + for s in SRStatus: + cnt = (await db.execute(_cnt(SRRequest.status == s))).scalar() or 0 + if cnt: + by_status[s.value] = cnt + by_type: dict[str, int] = {} + for t in SRType: + cnt = (await db.execute(_cnt(SRRequest.sr_type == t))).scalar() or 0 + if cnt: + by_type[t.value] = cnt + return {"total": total, "by_status": by_status, "by_type": by_type} + + +@router.get("/{sr_id}", response_model=SROut) +async def get_task(sr_id: str, db: AsyncSession = Depends(get_db)): + result = await db.execute(select(SRRequest).where(SRRequest.sr_id == sr_id)) + sr = result.scalars().first() + if not sr: + raise HTTPException(404, detail="SR을 찾을 수 없습니다.") + return sr + + +@router.post("", response_model=SROut, status_code=201) +async def create_task(payload: SRCreate, db: AsyncSession = Depends(get_db)): + inst_id = None + if payload.inst_code: + r = await db.execute( + select(Institution).where(Institution.inst_code == payload.inst_code) + ) + inst = r.scalars().first() + if inst: + inst_id = inst.id + + sr = SRRequest( + sr_id=_new_sr_id(), + inst_id=inst_id, + sr_type=payload.sr_type, + title=payload.title, + description=payload.description, + status=SRStatus.RECEIVED, + priority=payload.priority, + requested_by=payload.requested_by, + assigned_to=payload.assigned_to, + target_server=payload.target_server, + ) + db.add(sr) + await db.flush() + await _write_audit(db, sr.sr_id, payload.requested_by, "SR_CREATED", f"SR 생성: {payload.title}") + + # 담당자가 미지정이면 자동 배정 시도 + if not sr.assigned_to: + from routers.assign import auto_assign_engine + assigned = await auto_assign_engine(db, sr) + if assigned: + sr.assigned_to = assigned + await _write_audit(db, sr.sr_id, "SYSTEM", "ENGINEER_ASSIGNED", + f"자동 배정: {assigned}") + + # A-2: SLA 마감 시각 계산·저장 + from core.sla import set_sla_on_create + await set_sla_on_create(sr.sr_id, db) + await db.refresh(sr) + + await db.commit() + await db.refresh(sr) + # 실시간 이벤트 브로드캐스트 + await broadcast("sr_created", { + "sr_id": sr.sr_id, + "title": sr.title, + "sr_type": sr.sr_type, + "priority": sr.priority, + "status": sr.status, + "sla_deadline": sr.sla_deadline.isoformat() if sr.sla_deadline else None, + }) + # 알림 발송 (이메일 + 메신저) — 비동기 fire-and-forget + import asyncio as _asyncio + from core.notify import notify_sr_created as _notify_created + _asyncio.create_task(_notify_created(sr)) + + # 학습 루프: 재발 패턴 감지 — fire-and-forget + async def _detect_recurrence_bg(): + from database import SessionLocal + from core.learning import detect_recurrence + try: + async with SessionLocal() as _db: + result = await detect_recurrence( + db = _db, + sr_id = sr.sr_id, + title = sr.title, + description = sr.description or "", + sr_type = sr.sr_type or "OTHER", + inst_id = sr.inst_id, + ) + if result.get("recurrence_found"): + import logging + logging.getLogger(__name__).info( + "재발 감지: SR=%s 패턴=%d 횟수=%d%s", + sr.sr_id, + result["pattern_id"], + result["occurrence_count"], + " → Problem 격상" if result.get("escalated") else "", + ) + except Exception as _e: + import logging + logging.getLogger(__name__).debug("재발 감지 오류 (무시): %s", _e) + + _asyncio.create_task(_detect_recurrence_bg()) + + # G-7: AI 자동 분류 — fire-and-forget + async def _apply_ai_classification_bg(): + from database import SessionLocal + from core.ticket_classifier import classify_ticket + import json as _json + try: + suggestion = await classify_ticket(sr.title, sr.description or "") + async with SessionLocal() as _db: + _sr = (await _db.execute( + select(SRRequest).where(SRRequest.sr_id == sr.sr_id) + )).scalars().first() + if _sr: + _sr.ai_suggestion = _json.dumps(suggestion, ensure_ascii=False) + await _db.commit() + except Exception: + pass + + _asyncio.create_task(_apply_ai_classification_bg()) + + return sr + + +@router.patch("/{sr_id}/status", response_model=SROut) +async def update_status(sr_id: str, payload: SRStatusUpdate, + db: AsyncSession = Depends(get_db), + _u: User = Depends(get_current_user)): + result = await db.execute(select(SRRequest).where(SRRequest.sr_id == sr_id)) + sr = result.scalars().first() + if not sr: + raise HTTPException(404, detail="SR을 찾을 수 없습니다.") + + allowed = _TRANSITIONS.get(SRStatus(sr.status), []) + if payload.status not in allowed: + raise HTTPException(400, detail=f"'{sr.status}' → '{payload.status}' 전이는 허용되지 않습니다.") + + old_status = sr.status + sr.status = payload.status + sr.updated_at = datetime.now() + detail = payload.comment or f"상태 변경: {old_status} → {payload.status}" + await _write_audit(db, sr_id, payload.actor, "STATUS_CHANGED", detail) + await db.commit() + await db.refresh(sr) + # 실시간 이벤트 브로드캐스트 + await broadcast("sr_updated", { + "sr_id": sr_id, + "title": sr.title, + "old_status": old_status, + "new_status": sr.status, + "actor": payload.actor, + }) + # 알림 발송 (COMPLETED / REJECTED / FAILED_ROLLBACK 시) + import asyncio as _asyncio + from core.notify import notify_sr_status_changed as _notify_changed + _asyncio.create_task(_notify_changed(sr, sr.status, payload.comment or "")) + return sr + + +# ── A-2: SLA 조회 엔드포인트 ────────────────────────────────────────────────── + +@router.get("/{sr_id}/sla") +async def get_sla_status( + sr_id: str, + db: AsyncSession = Depends(get_db), + _u: User = Depends(get_current_user), +): + """ + 특정 SR의 SLA 현황 조회. + + Returns: + { + "sr_id": "SR-...", + "priority": "HIGH", + "sla_deadline": "2026-05-26T14:00:00", + "sla_breached": false, + "remaining_minutes": 47, + "escalated_at": null, + "escalated_to": null + } + """ + from core.sla import sla_remaining_minutes + result = await db.execute(select(SRRequest).where(SRRequest.sr_id == sr_id)) + sr = result.scalars().first() + if not sr: + raise HTTPException(404, "SR을 찾을 수 없습니다.") + + remaining = sla_remaining_minutes(sr.sla_deadline) + return { + "sr_id": sr.sr_id, + "priority": sr.priority, + "sla_deadline": sr.sla_deadline.isoformat() if sr.sla_deadline else None, + "sla_breached": sr.sla_breached, + "remaining_minutes": remaining, + "escalated_at": sr.escalated_at.isoformat() if sr.escalated_at else None, + "escalated_to": sr.escalated_to, + } + + +@router.get("/sla/violations") +async def list_sla_violations( + skip: int = 0, + limit: int = 50, + db: AsyncSession = Depends(get_db), + current_user: User = Depends(get_current_user), +): + """ + SLA 위반 중인 SR 목록. + ADMIN / PM / ENGINEER 만 접근 가능. + """ + from models import UserRole + from sqlalchemy import and_ + from core.sla import sla_remaining_minutes + + if current_user.role == UserRole.CUSTOMER: + raise HTTPException(403, "권한이 없습니다.") + + terminal = ["COMPLETED", "REJECTED", "FAILED_ROLLBACK"] + now = datetime.now() + q = ( + select(SRRequest) + .where( + and_( + SRRequest.sla_deadline.isnot(None), + SRRequest.sla_deadline < now, + SRRequest.status.notin_(terminal), + ) + ) + .order_by(SRRequest.sla_deadline.asc()) + .offset(skip).limit(limit) + ) + rows = (await db.execute(q)).scalars().all() + + return [ + { + "sr_id": r.sr_id, + "title": r.title, + "priority": r.priority, + "status": r.status, + "assigned_to": r.assigned_to, + "sla_deadline": r.sla_deadline.isoformat() if r.sla_deadline else None, + "overdue_minutes": abs(sla_remaining_minutes(r.sla_deadline) or 0), + "sla_breached": r.sla_breached, + "escalated_to": r.escalated_to, + } + for r in rows + ] + + +# ── G-7: AI 분류 결과 조회 ──────────────────────────────────────────────────── + +@router.get("/{sr_id}/ai-suggestion") +async def get_ai_suggestion( + sr_id: str, + db: AsyncSession = Depends(get_db), + _u: User = Depends(get_current_user), +): + """SR의 AI 자동 분류 제안 조회.""" + import json as _json + r = await db.execute(select(SRRequest).where(SRRequest.sr_id == sr_id)) + sr = r.scalars().first() + if not sr: + raise HTTPException(404, "SR을 찾을 수 없습니다.") + + if not sr.ai_suggestion: + # 즉시 분류 요청 + from core.ticket_classifier import classify_ticket + try: + suggestion = await classify_ticket(sr.title, sr.description or "") + sr.ai_suggestion = _json.dumps(suggestion, ensure_ascii=False) + await db.commit() + except Exception as e: + return {"sr_id": sr_id, "suggestion": None, "message": f"AI 분류 실패: {str(e)[:100]}"} + + try: + return {"sr_id": sr_id, "suggestion": _json.loads(sr.ai_suggestion)} + except Exception: + return {"sr_id": sr_id, "suggestion": None} + + +# ── G-2: SR 대량 처리 ───────────────────────────────────────────────────────── + +class BulkActionRequest(BaseModel): + sr_ids: List[str] + action: str # STATUS_CHANGE | ASSIGN | CLOSE | PRIORITY_CHANGE + params: Dict[str, Any] = {} + + +@router.post("/bulk") +async def bulk_sr_action( + payload: BulkActionRequest, + db: AsyncSession = Depends(get_db), + current_user: User = Depends(get_current_user), +): + """ + SR 대량 작업 (최대 100건). + action: STATUS_CHANGE | ASSIGN | CLOSE | PRIORITY_CHANGE + """ + from models import UserRole + if current_user.role == UserRole.CUSTOMER: + raise HTTPException(403, "대량 작업은 ADMIN/PM/ENGINEER만 가능합니다.") + if not payload.sr_ids: + raise HTTPException(400, "sr_ids가 비어 있습니다. 처리할 SR ID를 입력하세요.") + if len(payload.sr_ids) > 100: + raise HTTPException(400, "한 번에 최대 100건까지 처리 가능합니다.") + + results = [] + success = 0 + for sr_id in payload.sr_ids: + try: + r = await db.execute(select(SRRequest).where(SRRequest.sr_id == sr_id)) + sr = r.scalars().first() + if not sr: + results.append({"sr_id": sr_id, "ok": False, "error": "SR을 찾을 수 없습니다."}) + continue + + action = payload.action.upper() + if action == "STATUS_CHANGE": + new_status = payload.params.get("status") + if not new_status: + raise ValueError("status 파라미터 필요") + allowed = _TRANSITIONS.get(SRStatus(sr.status), []) + if new_status not in allowed: + raise ValueError(f"'{sr.status}' → '{new_status}' 전이 불가") + sr.status = new_status + sr.updated_at = datetime.now() + note = payload.params.get("note", f"대량 상태변경: {new_status}") + await _write_audit(db, sr_id, current_user.username, "BULK_STATUS_CHANGE", note) + + elif action == "ASSIGN": + assignee = payload.params.get("assignee") + if not assignee: + raise ValueError("assignee 파라미터 필요") + sr.assigned_to = assignee + sr.updated_at = datetime.now() + await _write_audit(db, sr_id, current_user.username, "BULK_ASSIGN", + f"대량 배정: {assignee}") + + elif action == "CLOSE": + if sr.status in (SRStatus.COMPLETED, SRStatus.REJECTED, SRStatus.FAILED_ROLLBACK): + raise ValueError(f"이미 종료된 SR: {sr.status}") + sr.status = SRStatus.COMPLETED + sr.updated_at = datetime.now() + note = payload.params.get("note", "대량 완료 처리") + await _write_audit(db, sr_id, current_user.username, "BULK_CLOSE", note) + + elif action == "PRIORITY_CHANGE": + new_prio = payload.params.get("priority") + if not new_prio: + raise ValueError("priority 파라미터 필요") + sr.priority = new_prio + sr.updated_at = datetime.now() + await _write_audit(db, sr_id, current_user.username, "BULK_PRIORITY_CHANGE", + f"우선순위 변경: {new_prio}") + else: + raise ValueError(f"알 수 없는 action: {action}") + + await db.flush() + results.append({"sr_id": sr_id, "ok": True, "error": None}) + success += 1 + + except Exception as e: + results.append({"sr_id": sr_id, "ok": False, "error": str(e)}) + + await db.commit() + return { + "total": len(payload.sr_ids), + "success": success, + "failed": len(payload.sr_ids) - success, + "results": results, + } + diff --git a/certification/source/04_core_ai_classifier.py b/certification/source/04_core_ai_classifier.py new file mode 100644 index 00000000..db765496 --- /dev/null +++ b/certification/source/04_core_ai_classifier.py @@ -0,0 +1,90 @@ +"""AI 자동 티켓 분류 — SR 타이틀/설명에서 우선순위, 카테고리, 담당팀 제안.""" +from __future__ import annotations + +import json +import logging + +logger = logging.getLogger(__name__) + +CLASSIFY_PROMPT = """다음 IT 서비스 요청을 분석하여 JSON으로 분류하세요. + +제목: {title} +설명: {description} + +다음 필드를 포함하는 JSON만 출력하세요: +{{ + "priority": "CRITICAL|HIGH|MEDIUM|LOW", + "category": "HARDWARE|SOFTWARE|NETWORK|DATABASE|SECURITY|DEPLOYMENT|OTHER", + "team": "INFRA|DEV|DBA|SECURITY|HELPDESK", + "urgency_reason": "우선순위 판단 이유", + "keywords": ["핵심키워드1", "핵심키워드2", "핵심키워드3"], + "confidence": 0.85 +}}""" + + +async def classify_ticket(title: str, description: str) -> dict: + """SR 제목과 설명으로 AI 분류 제안 생성.""" + prompt = CLASSIFY_PROMPT.format( + title=title, + description=(description or "")[:500], + ) + + try: + from core.llm_client import get_llm_client + client = get_llm_client() + resp = await client.chat(prompt) + raw = resp.content.strip() + if "```" in raw: + raw = raw.split("```")[1] + if raw.startswith("json"): + raw = raw[4:] + result = json.loads(raw) + # 필수 필드 보정 + result.setdefault("priority", "MEDIUM") + result.setdefault("category", "OTHER") + result.setdefault("team", "HELPDESK") + result.setdefault("urgency_reason", "") + result.setdefault("keywords", []) + result.setdefault("confidence", 0.5) + return result + except Exception as e: + logger.warning("AI 티켓 분류 실패 (Fail-Safe): %s", e) + # 키워드 기반 규칙 폴백 + return _rule_based_classify(title, description) + + +def _rule_based_classify(title: str, description: str) -> dict: + """LLM 실패 시 키워드 규칙 기반 분류.""" + text = f"{title} {description}".lower() + priority = "MEDIUM" + category = "OTHER" + team = "HELPDESK" + + if any(k in text for k in ["긴급", "critical", "서비스 중단", "장애", "접속 불가"]): + priority = "CRITICAL" + elif any(k in text for k in ["오류", "error", "실패", "배포", "deploy"]): + priority = "HIGH" + elif any(k in text for k in ["설치", "변경", "업그레이드"]): + priority = "MEDIUM" + + if any(k in text for k in ["서버", "cpu", "메모리", "디스크", "하드웨어"]): + category, team = "HARDWARE", "INFRA" + elif any(k in text for k in ["db", "데이터베이스", "oracle", "mysql", "postgresql"]): + category, team = "DATABASE", "DBA" + elif any(k in text for k in ["네트워크", "방화벽", "포트", "ip", "dns"]): + category, team = "NETWORK", "INFRA" + elif any(k in text for k in ["보안", "취약점", "cve", "패치"]): + category, team = "SECURITY", "SECURITY" + elif any(k in text for k in ["배포", "deploy", "jenkins", "빌드"]): + category, team = "DEPLOYMENT", "DEV" + elif any(k in text for k in ["소프트웨어", "애플리케이션", "app", "버그"]): + category, team = "SOFTWARE", "DEV" + + return { + "priority": priority, + "category": category, + "team": team, + "urgency_reason": "키워드 규칙 기반 분류 (LLM 미사용)", + "keywords": [], + "confidence": 0.3, + } diff --git a/certification/source/05_frontend_dashboard.js b/certification/source/05_frontend_dashboard.js new file mode 100644 index 00000000..9202cef8 --- /dev/null +++ b/certification/source/05_frontend_dashboard.js @@ -0,0 +1,200 @@ +/* ══════════════════════════════════════════════════ + F-4: PWA Service Worker 등록 +══════════════════════════════════════════════════ */ +if ('serviceWorker' in navigator) { + window.addEventListener('load', () => { + navigator.serviceWorker.register('/static/sw.js', { scope: '/' }) + .then(reg => { + console.log('[GUARDiA PWA] SW 등록 성공:', reg.scope); + // 새 버전 감지 시 사용자에게 알림 + reg.addEventListener('updatefound', () => { + const newSW = reg.installing; + newSW.addEventListener('statechange', () => { + if (newSW.state === 'installed' && navigator.serviceWorker.controller) { + console.log('[GUARDiA PWA] 새 버전 사용 가능 — 새로고침하면 업데이트됩니다.'); + } + }); + }); + }) + .catch(err => console.warn('[GUARDiA PWA] SW 등록 실패:', err)); + }); +} + +/* ══════════════════════════════════════════════════ + Nifty 사이드바 계층 메뉴 토글 +══════════════════════════════════════════════════ */ +function toggleNavGroup(header) { + const body = header.nextElementSibling; + const isOpen = body.classList.contains('open'); + body.classList.toggle('open', !isOpen); + header.setAttribute('aria-expanded', String(!isOpen)); +} + +// 현재 URL에 해당하는 메뉴 자동 열기 +(function autoOpenNavGroup() { + document.querySelectorAll('.nav-group-body .nav-sub-item').forEach(item => { + const href = item.getAttribute('href') || ''; + if (href && location.pathname.startsWith(href.split('?')[0])) { + const body = item.closest('.nav-group-body'); + const header = body?.previousElementSibling; + if (body && header) { + body.classList.add('open'); + header.setAttribute('aria-expanded', 'true'); + item.classList.add('active'); + } + } + }); +})(); + +/* ══════════════════════════════════════════════════ + 테마 관리 (스크립트 최상단 — FOUC 방지) +══════════════════════════════════════════════════ */ +function applyTheme(key) { + document.body.dataset.theme = key; + localStorage.setItem("guardia_theme", key); + document.querySelectorAll(".theme-swatch").forEach(b => + b.classList.toggle("active", b.dataset.theme === key) + ); +} + +/* ─── Auth ───────────────────────────────────────── */ +const _token = localStorage.getItem("guardia_token"); +const _userInfo = JSON.parse(localStorage.getItem("guardia_userinfo") || "{}"); + +// 로그인 안 된 경우 → /login으로 +if (!_token) { + window.location.replace("/login"); +} +// 비밀번호 변경 필요 → /change-password로 +if (_userInfo.must_change_pw) { + window.location.replace("/change-password"); +} + +/** + * Bearer 토큰을 자동으로 포함하는 fetch 래퍼. + * 401 응답 시 로그인 페이지로 리다이렉트. + */ +async function authFetch(url, opts = {}) { + const headers = { "Content-Type": "application/json", ...(opts.headers || {}) }; + if (_token) headers["Authorization"] = `Bearer ${_token}`; + const res = await fetch(url, { ...opts, headers }); + if (res.status === 401) { + localStorage.removeItem("guardia_token"); + localStorage.removeItem("guardia_userinfo"); + window.location.replace("/login"); + throw new Error("Unauthorized"); + } + return res; +} + +/** 로그아웃 */ +function logout() { + localStorage.removeItem("guardia_token"); + localStorage.removeItem("guardia_userinfo"); + window.location.replace("/login"); +} + +/* ─── State ─────────────────────────────────────── */ +let currentView = "dashboard"; +let srCache = []; +let statsCache = {}; +let workloadCache = []; +let dashCache = {}; // 역할별 대시보드 데이터 + +/* ─── Status labels ─────────────────────────────── */ +const STATUS_LABEL = { + RECEIVED: "접수", + PARSED: "파싱 완료", + PENDING_APPROVAL: "승인 대기", + APPROVED: "승인됨", + IN_PROGRESS: "진행 중", + PENDING_PM_VALIDATION: "PM 검증 대기", + COMPLETED: "완료", + FAILED_ROLLBACK: "롤백 실패", + REJECTED: "반려", +}; + +const TYPE_LABEL = { + DEPLOY: "배포", RESTART: "재기동", LOG: "로그", + INQUIRY: "문의", OTHER: "기타", +}; + +const PRIORITY_LABEL = { CRITICAL: "긴급", HIGH: "높음", MEDIUM: "보통", LOW: "낮음" }; + +const KANBAN_COLS = [ + { key: "RECEIVED", label: "접수" }, + { key: "PENDING_APPROVAL", label: "승인 대기" }, + { key: "APPROVED", label: "승인됨" }, + { key: "IN_PROGRESS", label: "진행 중" }, + { key: "PENDING_PM_VALIDATION", label: "PM 검증" }, + { key: "COMPLETED", label: "완료" }, + { key: "FAILED_ROLLBACK", label: "롤백 실패" }, + { key: "REJECTED", label: "반려" }, +]; + +const STATUS_COLORS = { + RECEIVED: "#8b949e", + PARSED: "#79c0ff", + PENDING_APPROVAL: "#e3b341", + APPROVED: "#56d364", + IN_PROGRESS: "#58a6ff", + PENDING_PM_VALIDATION: "#bc8cff", + COMPLETED: "#3fb950", + FAILED_ROLLBACK: "#f85149", + REJECTED: "#da3633", +}; + +/* ─── Init ──────────────────────────────────────── */ +window.addEventListener("DOMContentLoaded", async () => { + // 사용자 정보 표시 + const roleLabel = { ADMIN:"관리자", ENGINEER:"엔지니어", PM:"PM", CUSTOMER:"고객" }; + const roleColor = { + ADMIN:"#818cf8", ENGINEER:"#34d399", PM:"#fbbf24", CUSTOMER:"#a78bfa" + }; + const role = _userInfo.role || ""; + document.getElementById("user-display-name").textContent = + _userInfo.display_name || _userInfo.username || "사용자"; + const roleBadge = document.getElementById("user-role-badge"); + roleBadge.textContent = roleLabel[role] || role; + roleBadge.style.background = (roleColor[role] || "#64748b") + "22"; + roleBadge.style.color = roleColor[role] || "#64748b"; + + // 테마 버튼 active 상태 동기화 + applyTheme(document.body.dataset.theme || "dark"); + + setupNav(); + setupNewSR(); + setupListFilters(); + initChat(); + await loadAll(); + initSSE(); // 실시간 이벤트 연결 + startPoll(); // 30초 폴백 폴링 +}); + +async function loadAll() { + await Promise.all([loadDashboardMe(), loadSRs(), loadWorkload()]); + renderCurrentView(); +} + +/* ══════════════════════════════════════════════════ + SSE 실시간 연결 +══════════════════════════════════════════════════ */ +let _sseSource = null; +let _sseRetry = 0; +let _refreshPending = false; +let _pollTimer = null; + +function initSSE() { + if (!_token) return; + if (_sseSource) { _sseSource.close(); _sseSource = null; } + + const url = `/api/dashboard/events?token=${encodeURIComponent(_token)}`; + _sseSource = new EventSource(url); + + _sseSource.onopen = () => { + _sseRetry = 0; + setSseDot(true); + }; + + _sseSource.onmessage = (e) => { + if (!e.data || e.data.trim() === "") return; \ No newline at end of file diff --git a/certification/source/README.md b/certification/source/README.md new file mode 100644 index 00000000..2dbcc1a4 --- /dev/null +++ b/certification/source/README.md @@ -0,0 +1,31 @@ +# GUARDiA ITSM v2.0 — 저작권 등록용 소스코드 + +> **제출처:** 한국저작권위원회 +> **저작물명:** GUARDiA ITSM (가이더) +> **저작자:** (주)지오정보기술 +> **버전:** 2.0.0 + +--- + +## 소스코드 제출 안내 + +저작권 등록 시 소스코드 전체를 제출할 필요는 없습니다. +핵심 기능을 보여주는 일부 소스코드(200줄 이상)를 제출합니다. + +**제출 파일 목록:** +1. `01_core_ssh_agentless.py` — 에이전트리스 SSH 핵심 로직 +2. `02_core_license_engine.py` — 라이선스 엔진 (AES-256-GCM) +3. `03_router_sr_management.py` — SR 서비스 요청 관리 API +4. `04_core_ai_classifier.py` — AI 티켓 자동 분류 +5. `05_frontend_dashboard.jsx` — 대시보드 React 컴포넌트 + +> ※ 영업비밀에 해당하는 암호화 키 값은 XXXXXXXXXX로 마스킹 처리되었습니다. + +--- + +## 독창성 설명 + +1. **에이전트리스 자동화**: 대상 서버에 소프트웨어 설치 없이 SSH/SFTP만으로 레거시 WAS를 자동화 (국내 최초) +2. **온프레미스 AI ChatOps**: 외부 클라우드 의존 없이 내부 Ollama LLM으로 자연어 명령을 처리 +3. **해시체인 감사로그**: SHA-256 불변 체인으로 로그 위변조를 실시간 탐지 +4. **멀티 플랫폼 메신저 통합**: 카카오워크/네이버웍스/슬랙 등에서 동일한 25개 명령어로 인프라 제어 diff --git a/jdbc/edb-jdbc18.jar b/jdbc/edb-jdbc18.jar deleted file mode 100644 index 2815be5d..00000000 Binary files a/jdbc/edb-jdbc18.jar and /dev/null differ diff --git a/zioinfo/common/arrow_image2.gif b/zioinfo/common/arrow_image2.gif deleted file mode 100644 index a5d40e45..00000000 Binary files a/zioinfo/common/arrow_image2.gif and /dev/null differ diff --git a/zioinfo/common/error/404.html b/zioinfo/common/error/404.html deleted file mode 100644 index b36ba03b..00000000 --- a/zioinfo/common/error/404.html +++ /dev/null @@ -1,37 +0,0 @@ - - - -Ȳý - - - - - - - - -
- - - - - - -
ǥ - ϴ.
- ã ų DNS Դϴ
-
- - \ No newline at end of file diff --git a/zioinfo/common/error/500.jsp b/zioinfo/common/error/500.jsp deleted file mode 100644 index 116caaba..00000000 --- a/zioinfo/common/error/500.jsp +++ /dev/null @@ -1,66 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<%@ page isErrorPage = "true"%> -<% - response.setStatus(HttpServletResponse.SC_OK); - String contextPath = request.getContextPath(); -%> -<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> -<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %> -<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %> -<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %> -<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %> -<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %> - - - - - - - Ȳý - - - - - - - - - - - - - - - - -
- - - - - - - -
- <% if (exception.getMessage().equals("NotAuthorized")) { %> - ϴ. (IP : <%=request.getLocalAddr()%>)
- <% } else {%> - ̿뿡 ˼մϴ.
- ð ذϵ ϰڽϴ. - <% exception.printStackTrace(); } %> -
-
- -
diff --git a/zioinfo/common/flash.js b/zioinfo/common/flash.js deleted file mode 100644 index cce459fc..00000000 --- a/zioinfo/common/flash.js +++ /dev/null @@ -1,17 +0,0 @@ -function FlashImp(fileUrl,sWidth,sHeight){ - var sTag; - - sTag="" - - document.write(sTag); - - sTag= ""; - - document.write(sTag); - document.write(''); - document.write(''); - sTag= "" - document.write(''); - document.write(''); - -} \ No newline at end of file diff --git a/zioinfo/common/selectbox.htc b/zioinfo/common/selectbox.htc deleted file mode 100644 index 82477a71..00000000 --- a/zioinfo/common/selectbox.htc +++ /dev/null @@ -1,549 +0,0 @@ - - - - - - - - - - - - diff --git a/zioinfo/community/Scripts/AC_RunActiveContent.js b/zioinfo/community/Scripts/AC_RunActiveContent.js deleted file mode 100644 index 4ad64803..00000000 --- a/zioinfo/community/Scripts/AC_RunActiveContent.js +++ /dev/null @@ -1,292 +0,0 @@ -//v1.7 -// Flash Player Version Detection -// Detect Client Browser type -// Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved. -var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; -var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; -var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; - -function ControlVersion() -{ - var version; - var axo; - var e; - - // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry - - try { - // version will be set for 7.X or greater players - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); - version = axo.GetVariable("$version"); - } catch (e) { - } - - if (!version) - { - try { - // version will be set for 6.X players only - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); - - // installed player is some revision of 6.0 - // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, - // so we have to be careful. - - // default to the first public version - version = "WIN 6,0,21,0"; - - // throws if AllowScripAccess does not exist (introduced in 6.0r47) - axo.AllowScriptAccess = "always"; - - // safe to call for 6.0r47 or greater - version = axo.GetVariable("$version"); - - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 4.X or 5.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = axo.GetVariable("$version"); - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 3.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = "WIN 3,0,18,0"; - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 2.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); - version = "WIN 2,0,0,11"; - } catch (e) { - version = -1; - } - } - - return version; -} - -// JavaScript helper required to detect Flash Player PlugIn version information -function GetSwfVer(){ - // NS/Opera version >= 3 check for Flash plugin in plugin array - var flashVer = -1; - - if (navigator.plugins != null && navigator.plugins.length > 0) { - if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { - var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; - var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; - var descArray = flashDescription.split(" "); - var tempArrayMajor = descArray[2].split("."); - var versionMajor = tempArrayMajor[0]; - var versionMinor = tempArrayMajor[1]; - var versionRevision = descArray[3]; - if (versionRevision == "") { - versionRevision = descArray[4]; - } - if (versionRevision[0] == "d") { - versionRevision = versionRevision.substring(1); - } else if (versionRevision[0] == "r") { - versionRevision = versionRevision.substring(1); - if (versionRevision.indexOf("d") > 0) { - versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); - } - } - var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; - } - } - // MSN/WebTV 2.6 supports Flash 4 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; - // WebTV 2.5 supports Flash 3 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; - // older WebTV supports Flash 2 - else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; - else if ( isIE && isWin && !isOpera ) { - flashVer = ControlVersion(); - } - return flashVer; -} - -// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available -function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) -{ - versionStr = GetSwfVer(); - if (versionStr == -1 ) { - return false; - } else if (versionStr != 0) { - if(isIE && isWin && !isOpera) { - // Given "WIN 2,0,0,11" - tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] - tempString = tempArray[1]; // "2,0,0,11" - versionArray = tempString.split(","); // ['2', '0', '0', '11'] - } else { - versionArray = versionStr.split("."); - } - var versionMajor = versionArray[0]; - var versionMinor = versionArray[1]; - var versionRevision = versionArray[2]; - - // is the major.revision >= requested major.revision AND the minor version >= requested minor - if (versionMajor > parseFloat(reqMajorVer)) { - return true; - } else if (versionMajor == parseFloat(reqMajorVer)) { - if (versionMinor > parseFloat(reqMinorVer)) - return true; - else if (versionMinor == parseFloat(reqMinorVer)) { - if (versionRevision >= parseFloat(reqRevision)) - return true; - } - } - return false; - } -} - -function AC_AddExtension(src, ext) -{ - if (src.indexOf('?') != -1) - return src.replace(/\?/, ext+'?'); - else - return src + ext; -} - -function AC_Generateobj(objAttrs, params, embedAttrs) -{ - var str = ''; - if (isIE && isWin && !isOpera) - { - str += ' '; - } - str += ''; - } - else - { - str += ' - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > Ŀ´Ƽ >
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1Ե ԽԴϴ.ȫ浿2008/07/02100
2 Ե ԽԴϴ.ȫ浿2008/07/02100
3Ե ԽԴϴ.ȫ浿2008/07/02100
4 Ե ԽԴϴ.ȫ浿2008/07/02100
5Ե ԽԴϴ.ȫ浿2008/07/02100
6 Ե ԽԴϴ.ȫ浿2008/07/02100
7Ե ԽԴϴ.ȫ浿2008/07/02100
8 Ե ԽԴϴ.ȫ浿2008/07/02100
9Ե ԽԴϴ.ȫ浿2008/07/02100
10 Ե () ԽԴϴ.ȫ浿2008/07/02100
- - - - - - - - - - - - -
   1  2  3  4  5  6  7  8  9  10   
- - - - -
- - - - - -
-
- - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/community/event.htm b/zioinfo/community/event.htm deleted file mode 100644 index 9ea48c6e..00000000 --- a/zioinfo/community/event.htm +++ /dev/null @@ -1,357 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > Ŀ´Ƽ >
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1Ե ԽԴϴ.ȫ浿2008/07/02100
2 Ե ԽԴϴ.ȫ浿2008/07/02100
3Ե ԽԴϴ.ȫ浿2008/07/02100
4 Ե ԽԴϴ.ȫ浿2008/07/02100
5Ե ԽԴϴ.ȫ浿2008/07/02100
6 Ե ԽԴϴ.ȫ浿2008/07/02100
7Ե ԽԴϴ.ȫ浿2008/07/02100
8 Ե ԽԴϴ.ȫ浿2008/07/02100
9Ե ԽԴϴ.ȫ浿2008/07/02100
10 Ե () ԽԴϴ.ȫ浿2008/07/02100
- - - - - - - - - - - - -
   1  2  3  4  5  6  7  8  9  10   
- - - - -
- - - - - -
-
- - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/community/freeboard.htm b/zioinfo/community/freeboard.htm deleted file mode 100644 index 9ea48c6e..00000000 --- a/zioinfo/community/freeboard.htm +++ /dev/null @@ -1,357 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > Ŀ´Ƽ >
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1Ե ԽԴϴ.ȫ浿2008/07/02100
2 Ե ԽԴϴ.ȫ浿2008/07/02100
3Ե ԽԴϴ.ȫ浿2008/07/02100
4 Ե ԽԴϴ.ȫ浿2008/07/02100
5Ե ԽԴϴ.ȫ浿2008/07/02100
6 Ե ԽԴϴ.ȫ浿2008/07/02100
7Ե ԽԴϴ.ȫ浿2008/07/02100
8 Ե ԽԴϴ.ȫ浿2008/07/02100
9Ե ԽԴϴ.ȫ浿2008/07/02100
10 Ե () ԽԴϴ.ȫ浿2008/07/02100
- - - - - - - - - - - - -
   1  2  3  4  5  6  7  8  9  10   
- - - - -
- - - - - -
-
- - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/community/image/img.jpg b/zioinfo/community/image/img.jpg deleted file mode 100644 index 2f9f9e64..00000000 Binary files a/zioinfo/community/image/img.jpg and /dev/null differ diff --git a/zioinfo/community/image/left_menu01.gif b/zioinfo/community/image/left_menu01.gif deleted file mode 100644 index 54262da1..00000000 Binary files a/zioinfo/community/image/left_menu01.gif and /dev/null differ diff --git a/zioinfo/community/image/left_menu01.jpg b/zioinfo/community/image/left_menu01.jpg deleted file mode 100644 index 2817e183..00000000 Binary files a/zioinfo/community/image/left_menu01.jpg and /dev/null differ diff --git a/zioinfo/community/image/left_menu02.gif b/zioinfo/community/image/left_menu02.gif deleted file mode 100644 index 989da333..00000000 Binary files a/zioinfo/community/image/left_menu02.gif and /dev/null differ diff --git a/zioinfo/community/image/left_menu02.jpg b/zioinfo/community/image/left_menu02.jpg deleted file mode 100644 index c76144fa..00000000 Binary files a/zioinfo/community/image/left_menu02.jpg and /dev/null differ diff --git a/zioinfo/community/image/left_menu03.gif b/zioinfo/community/image/left_menu03.gif deleted file mode 100644 index 5f75112b..00000000 Binary files a/zioinfo/community/image/left_menu03.gif and /dev/null differ diff --git a/zioinfo/community/image/left_menu03.jpg b/zioinfo/community/image/left_menu03.jpg deleted file mode 100644 index 05c23806..00000000 Binary files a/zioinfo/community/image/left_menu03.jpg and /dev/null differ diff --git a/zioinfo/community/image/left_menu04.gif b/zioinfo/community/image/left_menu04.gif deleted file mode 100644 index 9c735028..00000000 Binary files a/zioinfo/community/image/left_menu04.gif and /dev/null differ diff --git a/zioinfo/community/image/left_menu04.jpg b/zioinfo/community/image/left_menu04.jpg deleted file mode 100644 index f7444f7a..00000000 Binary files a/zioinfo/community/image/left_menu04.jpg and /dev/null differ diff --git a/zioinfo/community/image/left_menu05.gif b/zioinfo/community/image/left_menu05.gif deleted file mode 100644 index f3960dc7..00000000 Binary files a/zioinfo/community/image/left_menu05.gif and /dev/null differ diff --git a/zioinfo/community/image/left_menu05.jpg b/zioinfo/community/image/left_menu05.jpg deleted file mode 100644 index 255e08a4..00000000 Binary files a/zioinfo/community/image/left_menu05.jpg and /dev/null differ diff --git a/zioinfo/community/image/left_menu_title.gif b/zioinfo/community/image/left_menu_title.gif deleted file mode 100644 index 3df93da2..00000000 Binary files a/zioinfo/community/image/left_menu_title.gif and /dev/null differ diff --git a/zioinfo/community/image/left_menu_title.jpg b/zioinfo/community/image/left_menu_title.jpg deleted file mode 100644 index a5910b57..00000000 Binary files a/zioinfo/community/image/left_menu_title.jpg and /dev/null differ diff --git a/zioinfo/community/image/menu01.jpg b/zioinfo/community/image/menu01.jpg deleted file mode 100644 index 99673877..00000000 Binary files a/zioinfo/community/image/menu01.jpg and /dev/null differ diff --git a/zioinfo/community/image/menu02.jpg b/zioinfo/community/image/menu02.jpg deleted file mode 100644 index aee860de..00000000 Binary files a/zioinfo/community/image/menu02.jpg and /dev/null differ diff --git a/zioinfo/community/image/menu03.jpg b/zioinfo/community/image/menu03.jpg deleted file mode 100644 index 742163de..00000000 Binary files a/zioinfo/community/image/menu03.jpg and /dev/null differ diff --git a/zioinfo/community/image/menu04.jpg b/zioinfo/community/image/menu04.jpg deleted file mode 100644 index 4ab1db85..00000000 Binary files a/zioinfo/community/image/menu04.jpg and /dev/null differ diff --git a/zioinfo/community/image/menu05.jpg b/zioinfo/community/image/menu05.jpg deleted file mode 100644 index adcc6cc6..00000000 Binary files a/zioinfo/community/image/menu05.jpg and /dev/null differ diff --git a/zioinfo/community/image/next_btn01.gif b/zioinfo/community/image/next_btn01.gif deleted file mode 100644 index f45419cf..00000000 Binary files a/zioinfo/community/image/next_btn01.gif and /dev/null differ diff --git a/zioinfo/community/image/next_btn01.jpg b/zioinfo/community/image/next_btn01.jpg deleted file mode 100644 index 058b1175..00000000 Binary files a/zioinfo/community/image/next_btn01.jpg and /dev/null differ diff --git a/zioinfo/community/image/next_btn02.gif b/zioinfo/community/image/next_btn02.gif deleted file mode 100644 index 9f6b19e5..00000000 Binary files a/zioinfo/community/image/next_btn02.gif and /dev/null differ diff --git a/zioinfo/community/image/next_btn02.jpg b/zioinfo/community/image/next_btn02.jpg deleted file mode 100644 index bedfea1b..00000000 Binary files a/zioinfo/community/image/next_btn02.jpg and /dev/null differ diff --git a/zioinfo/community/image/prev_btn01.gif b/zioinfo/community/image/prev_btn01.gif deleted file mode 100644 index c9ba603a..00000000 Binary files a/zioinfo/community/image/prev_btn01.gif and /dev/null differ diff --git a/zioinfo/community/image/prev_btn01.jpg b/zioinfo/community/image/prev_btn01.jpg deleted file mode 100644 index d36f22c2..00000000 Binary files a/zioinfo/community/image/prev_btn01.jpg and /dev/null differ diff --git a/zioinfo/community/image/prev_btn02.gif b/zioinfo/community/image/prev_btn02.gif deleted file mode 100644 index 39e723e9..00000000 Binary files a/zioinfo/community/image/prev_btn02.gif and /dev/null differ diff --git a/zioinfo/community/image/prev_btn02.jpg b/zioinfo/community/image/prev_btn02.jpg deleted file mode 100644 index 00fc678b..00000000 Binary files a/zioinfo/community/image/prev_btn02.jpg and /dev/null differ diff --git a/zioinfo/community/image/reply_icon.gif b/zioinfo/community/image/reply_icon.gif deleted file mode 100644 index f3f691f7..00000000 Binary files a/zioinfo/community/image/reply_icon.gif and /dev/null differ diff --git a/zioinfo/community/image/reply_icon.jpg b/zioinfo/community/image/reply_icon.jpg deleted file mode 100644 index dbcbf989..00000000 Binary files a/zioinfo/community/image/reply_icon.jpg and /dev/null differ diff --git a/zioinfo/community/image/s_title.jpg b/zioinfo/community/image/s_title.jpg deleted file mode 100644 index cd158f6d..00000000 Binary files a/zioinfo/community/image/s_title.jpg and /dev/null differ diff --git a/zioinfo/community/image/search_btn.gif b/zioinfo/community/image/search_btn.gif deleted file mode 100644 index ff688078..00000000 Binary files a/zioinfo/community/image/search_btn.gif and /dev/null differ diff --git a/zioinfo/community/image/search_btn.jpg b/zioinfo/community/image/search_btn.jpg deleted file mode 100644 index 8ed6986d..00000000 Binary files a/zioinfo/community/image/search_btn.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_02.jpg b/zioinfo/community/image/sub05_02.jpg deleted file mode 100644 index 4fbbcc80..00000000 Binary files a/zioinfo/community/image/sub05_02.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_03.jpg b/zioinfo/community/image/sub05_03.jpg deleted file mode 100644 index 1a11c523..00000000 Binary files a/zioinfo/community/image/sub05_03.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_09.jpg b/zioinfo/community/image/sub05_09.jpg deleted file mode 100644 index c0e19e5a..00000000 Binary files a/zioinfo/community/image/sub05_09.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_15.jpg b/zioinfo/community/image/sub05_15.jpg deleted file mode 100644 index a85911e1..00000000 Binary files a/zioinfo/community/image/sub05_15.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_16.jpg b/zioinfo/community/image/sub05_16.jpg deleted file mode 100644 index 34be0c82..00000000 Binary files a/zioinfo/community/image/sub05_16.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_17.jpg b/zioinfo/community/image/sub05_17.jpg deleted file mode 100644 index a4ce30bd..00000000 Binary files a/zioinfo/community/image/sub05_17.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_19.jpg b/zioinfo/community/image/sub05_19.jpg deleted file mode 100644 index a4ce30bd..00000000 Binary files a/zioinfo/community/image/sub05_19.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_21.jpg b/zioinfo/community/image/sub05_21.jpg deleted file mode 100644 index 5f85e964..00000000 Binary files a/zioinfo/community/image/sub05_21.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_22.jpg b/zioinfo/community/image/sub05_22.jpg deleted file mode 100644 index 4d6726d0..00000000 Binary files a/zioinfo/community/image/sub05_22.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_24.jpg b/zioinfo/community/image/sub05_24.jpg deleted file mode 100644 index 6fd01df6..00000000 Binary files a/zioinfo/community/image/sub05_24.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_26.jpg b/zioinfo/community/image/sub05_26.jpg deleted file mode 100644 index a1054e83..00000000 Binary files a/zioinfo/community/image/sub05_26.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_31.jpg b/zioinfo/community/image/sub05_31.jpg deleted file mode 100644 index b952f0e3..00000000 Binary files a/zioinfo/community/image/sub05_31.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_32.jpg b/zioinfo/community/image/sub05_32.jpg deleted file mode 100644 index f65430a1..00000000 Binary files a/zioinfo/community/image/sub05_32.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_33.jpg b/zioinfo/community/image/sub05_33.jpg deleted file mode 100644 index 4adaf226..00000000 Binary files a/zioinfo/community/image/sub05_33.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_35.jpg b/zioinfo/community/image/sub05_35.jpg deleted file mode 100644 index 9a199a2b..00000000 Binary files a/zioinfo/community/image/sub05_35.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_37.jpg b/zioinfo/community/image/sub05_37.jpg deleted file mode 100644 index b2746943..00000000 Binary files a/zioinfo/community/image/sub05_37.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_39.jpg b/zioinfo/community/image/sub05_39.jpg deleted file mode 100644 index dce43d08..00000000 Binary files a/zioinfo/community/image/sub05_39.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_41.jpg b/zioinfo/community/image/sub05_41.jpg deleted file mode 100644 index e5787951..00000000 Binary files a/zioinfo/community/image/sub05_41.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_43.jpg b/zioinfo/community/image/sub05_43.jpg deleted file mode 100644 index 9669dd14..00000000 Binary files a/zioinfo/community/image/sub05_43.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_45.jpg b/zioinfo/community/image/sub05_45.jpg deleted file mode 100644 index 3e1433db..00000000 Binary files a/zioinfo/community/image/sub05_45.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_46.jpg b/zioinfo/community/image/sub05_46.jpg deleted file mode 100644 index 4231d417..00000000 Binary files a/zioinfo/community/image/sub05_46.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_47.jpg b/zioinfo/community/image/sub05_47.jpg deleted file mode 100644 index bc92bb28..00000000 Binary files a/zioinfo/community/image/sub05_47.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_48.jpg b/zioinfo/community/image/sub05_48.jpg deleted file mode 100644 index 56417057..00000000 Binary files a/zioinfo/community/image/sub05_48.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_49.jpg b/zioinfo/community/image/sub05_49.jpg deleted file mode 100644 index e7cdfc29..00000000 Binary files a/zioinfo/community/image/sub05_49.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_50.jpg b/zioinfo/community/image/sub05_50.jpg deleted file mode 100644 index df0a4810..00000000 Binary files a/zioinfo/community/image/sub05_50.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_51.jpg b/zioinfo/community/image/sub05_51.jpg deleted file mode 100644 index 83bebb57..00000000 Binary files a/zioinfo/community/image/sub05_51.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_53.jpg b/zioinfo/community/image/sub05_53.jpg deleted file mode 100644 index e059d897..00000000 Binary files a/zioinfo/community/image/sub05_53.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_54.jpg b/zioinfo/community/image/sub05_54.jpg deleted file mode 100644 index f601ee04..00000000 Binary files a/zioinfo/community/image/sub05_54.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_55.jpg b/zioinfo/community/image/sub05_55.jpg deleted file mode 100644 index d8296960..00000000 Binary files a/zioinfo/community/image/sub05_55.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_57.jpg b/zioinfo/community/image/sub05_57.jpg deleted file mode 100644 index 54834d8b..00000000 Binary files a/zioinfo/community/image/sub05_57.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_58.jpg b/zioinfo/community/image/sub05_58.jpg deleted file mode 100644 index a89fb0f6..00000000 Binary files a/zioinfo/community/image/sub05_58.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_60.jpg b/zioinfo/community/image/sub05_60.jpg deleted file mode 100644 index 5181fc48..00000000 Binary files a/zioinfo/community/image/sub05_60.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_62.jpg b/zioinfo/community/image/sub05_62.jpg deleted file mode 100644 index 5039ffa7..00000000 Binary files a/zioinfo/community/image/sub05_62.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_64.jpg b/zioinfo/community/image/sub05_64.jpg deleted file mode 100644 index 6948080a..00000000 Binary files a/zioinfo/community/image/sub05_64.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_66.jpg b/zioinfo/community/image/sub05_66.jpg deleted file mode 100644 index 185bcb88..00000000 Binary files a/zioinfo/community/image/sub05_66.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_67.jpg b/zioinfo/community/image/sub05_67.jpg deleted file mode 100644 index ab98838a..00000000 Binary files a/zioinfo/community/image/sub05_67.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_68.jpg b/zioinfo/community/image/sub05_68.jpg deleted file mode 100644 index b56524db..00000000 Binary files a/zioinfo/community/image/sub05_68.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_69.jpg b/zioinfo/community/image/sub05_69.jpg deleted file mode 100644 index 5dc2bbd1..00000000 Binary files a/zioinfo/community/image/sub05_69.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_70.jpg b/zioinfo/community/image/sub05_70.jpg deleted file mode 100644 index 5dc2bbd1..00000000 Binary files a/zioinfo/community/image/sub05_70.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_71.jpg b/zioinfo/community/image/sub05_71.jpg deleted file mode 100644 index 5e757c47..00000000 Binary files a/zioinfo/community/image/sub05_71.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_73.jpg b/zioinfo/community/image/sub05_73.jpg deleted file mode 100644 index b9a04f8a..00000000 Binary files a/zioinfo/community/image/sub05_73.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub05_74.jpg b/zioinfo/community/image/sub05_74.jpg deleted file mode 100644 index 061e51ec..00000000 Binary files a/zioinfo/community/image/sub05_74.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub_img.jpg b/zioinfo/community/image/sub_img.jpg deleted file mode 100644 index 0a0804b0..00000000 Binary files a/zioinfo/community/image/sub_img.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub_img_bg.gif b/zioinfo/community/image/sub_img_bg.gif deleted file mode 100644 index eefcb737..00000000 Binary files a/zioinfo/community/image/sub_img_bg.gif and /dev/null differ diff --git a/zioinfo/community/image/sub_menu.gif b/zioinfo/community/image/sub_menu.gif deleted file mode 100644 index 1f59d2f3..00000000 Binary files a/zioinfo/community/image/sub_menu.gif and /dev/null differ diff --git a/zioinfo/community/image/sub_menu01.gif b/zioinfo/community/image/sub_menu01.gif deleted file mode 100644 index b7d5b325..00000000 Binary files a/zioinfo/community/image/sub_menu01.gif and /dev/null differ diff --git a/zioinfo/community/image/sub_menu01.jpg b/zioinfo/community/image/sub_menu01.jpg deleted file mode 100644 index 6a6739e0..00000000 Binary files a/zioinfo/community/image/sub_menu01.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub_menu02.gif b/zioinfo/community/image/sub_menu02.gif deleted file mode 100644 index e24c3a4b..00000000 Binary files a/zioinfo/community/image/sub_menu02.gif and /dev/null differ diff --git a/zioinfo/community/image/sub_menu02.jpg b/zioinfo/community/image/sub_menu02.jpg deleted file mode 100644 index 52b78b18..00000000 Binary files a/zioinfo/community/image/sub_menu02.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub_menu03.gif b/zioinfo/community/image/sub_menu03.gif deleted file mode 100644 index 2b3baa69..00000000 Binary files a/zioinfo/community/image/sub_menu03.gif and /dev/null differ diff --git a/zioinfo/community/image/sub_menu03.jpg b/zioinfo/community/image/sub_menu03.jpg deleted file mode 100644 index 0752b70d..00000000 Binary files a/zioinfo/community/image/sub_menu03.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub_menu04.gif b/zioinfo/community/image/sub_menu04.gif deleted file mode 100644 index a6bf4bcf..00000000 Binary files a/zioinfo/community/image/sub_menu04.gif and /dev/null differ diff --git a/zioinfo/community/image/sub_menu04.jpg b/zioinfo/community/image/sub_menu04.jpg deleted file mode 100644 index d5e837bd..00000000 Binary files a/zioinfo/community/image/sub_menu04.jpg and /dev/null differ diff --git a/zioinfo/community/image/sub_menu05.gif b/zioinfo/community/image/sub_menu05.gif deleted file mode 100644 index 821da010..00000000 Binary files a/zioinfo/community/image/sub_menu05.gif and /dev/null differ diff --git a/zioinfo/community/image/sub_service_img.jpg b/zioinfo/community/image/sub_service_img.jpg deleted file mode 100644 index ef3afca0..00000000 Binary files a/zioinfo/community/image/sub_service_img.jpg and /dev/null differ diff --git a/zioinfo/community/image/title.gif b/zioinfo/community/image/title.gif deleted file mode 100644 index 2974f424..00000000 Binary files a/zioinfo/community/image/title.gif and /dev/null differ diff --git a/zioinfo/community/image/title.jpg b/zioinfo/community/image/title.jpg deleted file mode 100644 index dac43454..00000000 Binary files a/zioinfo/community/image/title.jpg and /dev/null differ diff --git a/zioinfo/community/image/txt_date.gif b/zioinfo/community/image/txt_date.gif deleted file mode 100644 index eb079d1d..00000000 Binary files a/zioinfo/community/image/txt_date.gif and /dev/null differ diff --git a/zioinfo/community/image/txt_date.jpg b/zioinfo/community/image/txt_date.jpg deleted file mode 100644 index 7dde4037..00000000 Binary files a/zioinfo/community/image/txt_date.jpg and /dev/null differ diff --git a/zioinfo/community/image/txt_hits.gif b/zioinfo/community/image/txt_hits.gif deleted file mode 100644 index 417d16fe..00000000 Binary files a/zioinfo/community/image/txt_hits.gif and /dev/null differ diff --git a/zioinfo/community/image/txt_hits.jpg b/zioinfo/community/image/txt_hits.jpg deleted file mode 100644 index 0e306278..00000000 Binary files a/zioinfo/community/image/txt_hits.jpg and /dev/null differ diff --git a/zioinfo/community/image/txt_name.gif b/zioinfo/community/image/txt_name.gif deleted file mode 100644 index b48ebddd..00000000 Binary files a/zioinfo/community/image/txt_name.gif and /dev/null differ diff --git a/zioinfo/community/image/txt_name.jpg b/zioinfo/community/image/txt_name.jpg deleted file mode 100644 index c4752ff8..00000000 Binary files a/zioinfo/community/image/txt_name.jpg and /dev/null differ diff --git a/zioinfo/community/image/txt_num.gif b/zioinfo/community/image/txt_num.gif deleted file mode 100644 index 731441d8..00000000 Binary files a/zioinfo/community/image/txt_num.gif and /dev/null differ diff --git a/zioinfo/community/image/txt_num.jpg b/zioinfo/community/image/txt_num.jpg deleted file mode 100644 index 472b84d8..00000000 Binary files a/zioinfo/community/image/txt_num.jpg and /dev/null differ diff --git a/zioinfo/community/image/txt_title.gif b/zioinfo/community/image/txt_title.gif deleted file mode 100644 index ebe1c8eb..00000000 Binary files a/zioinfo/community/image/txt_title.gif and /dev/null differ diff --git a/zioinfo/community/image/txt_title.jpg b/zioinfo/community/image/txt_title.jpg deleted file mode 100644 index 14044e86..00000000 Binary files a/zioinfo/community/image/txt_title.jpg and /dev/null differ diff --git a/zioinfo/community/image/write_btn.gif b/zioinfo/community/image/write_btn.gif deleted file mode 100644 index d55774bb..00000000 Binary files a/zioinfo/community/image/write_btn.gif and /dev/null differ diff --git a/zioinfo/community/image/write_btn.jpg b/zioinfo/community/image/write_btn.jpg deleted file mode 100644 index f2bd92ee..00000000 Binary files a/zioinfo/community/image/write_btn.jpg and /dev/null differ diff --git a/zioinfo/community/news.htm b/zioinfo/community/news.htm deleted file mode 100644 index 9ea48c6e..00000000 --- a/zioinfo/community/news.htm +++ /dev/null @@ -1,357 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > Ŀ´Ƽ >
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1Ե ԽԴϴ.ȫ浿2008/07/02100
2 Ե ԽԴϴ.ȫ浿2008/07/02100
3Ե ԽԴϴ.ȫ浿2008/07/02100
4 Ե ԽԴϴ.ȫ浿2008/07/02100
5Ե ԽԴϴ.ȫ浿2008/07/02100
6 Ե ԽԴϴ.ȫ浿2008/07/02100
7Ե ԽԴϴ.ȫ浿2008/07/02100
8 Ե ԽԴϴ.ȫ浿2008/07/02100
9Ե ԽԴϴ.ȫ浿2008/07/02100
10 Ե () ԽԴϴ.ȫ浿2008/07/02100
- - - - - - - - - - - - -
   1  2  3  4  5  6  7  8  9  10   
- - - - -
- - - - - -
-
- - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/community/notice.htm b/zioinfo/community/notice.htm deleted file mode 100644 index 9ea48c6e..00000000 --- a/zioinfo/community/notice.htm +++ /dev/null @@ -1,357 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > Ŀ´Ƽ >
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1Ե ԽԴϴ.ȫ浿2008/07/02100
2 Ե ԽԴϴ.ȫ浿2008/07/02100
3Ե ԽԴϴ.ȫ浿2008/07/02100
4 Ե ԽԴϴ.ȫ浿2008/07/02100
5Ե ԽԴϴ.ȫ浿2008/07/02100
6 Ե ԽԴϴ.ȫ浿2008/07/02100
7Ե ԽԴϴ.ȫ浿2008/07/02100
8 Ե ԽԴϴ.ȫ浿2008/07/02100
9Ե ԽԴϴ.ȫ浿2008/07/02100
10 Ե () ԽԴϴ.ȫ浿2008/07/02100
- - - - - - - - - - - - -
   1  2  3  4  5  6  7  8  9  10   
- - - - -
- - - - - -
-
- - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/community/qna.htm b/zioinfo/community/qna.htm deleted file mode 100644 index 9ea48c6e..00000000 --- a/zioinfo/community/qna.htm +++ /dev/null @@ -1,357 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > Ŀ´Ƽ >
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1Ե ԽԴϴ.ȫ浿2008/07/02100
2 Ե ԽԴϴ.ȫ浿2008/07/02100
3Ե ԽԴϴ.ȫ浿2008/07/02100
4 Ե ԽԴϴ.ȫ浿2008/07/02100
5Ե ԽԴϴ.ȫ浿2008/07/02100
6 Ե ԽԴϴ.ȫ浿2008/07/02100
7Ե ԽԴϴ.ȫ浿2008/07/02100
8 Ե ԽԴϴ.ȫ浿2008/07/02100
9Ե ԽԴϴ.ȫ浿2008/07/02100
10 Ե () ԽԴϴ.ȫ浿2008/07/02100
- - - - - - - - - - - - -
   1  2  3  4  5  6  7  8  9  10   
- - - - -
- - - - - -
-
- - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/company/Scripts/AC_RunActiveContent.js b/zioinfo/company/Scripts/AC_RunActiveContent.js deleted file mode 100644 index 4ad64803..00000000 --- a/zioinfo/company/Scripts/AC_RunActiveContent.js +++ /dev/null @@ -1,292 +0,0 @@ -//v1.7 -// Flash Player Version Detection -// Detect Client Browser type -// Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved. -var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; -var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; -var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; - -function ControlVersion() -{ - var version; - var axo; - var e; - - // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry - - try { - // version will be set for 7.X or greater players - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); - version = axo.GetVariable("$version"); - } catch (e) { - } - - if (!version) - { - try { - // version will be set for 6.X players only - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); - - // installed player is some revision of 6.0 - // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, - // so we have to be careful. - - // default to the first public version - version = "WIN 6,0,21,0"; - - // throws if AllowScripAccess does not exist (introduced in 6.0r47) - axo.AllowScriptAccess = "always"; - - // safe to call for 6.0r47 or greater - version = axo.GetVariable("$version"); - - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 4.X or 5.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = axo.GetVariable("$version"); - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 3.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = "WIN 3,0,18,0"; - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 2.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); - version = "WIN 2,0,0,11"; - } catch (e) { - version = -1; - } - } - - return version; -} - -// JavaScript helper required to detect Flash Player PlugIn version information -function GetSwfVer(){ - // NS/Opera version >= 3 check for Flash plugin in plugin array - var flashVer = -1; - - if (navigator.plugins != null && navigator.plugins.length > 0) { - if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { - var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; - var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; - var descArray = flashDescription.split(" "); - var tempArrayMajor = descArray[2].split("."); - var versionMajor = tempArrayMajor[0]; - var versionMinor = tempArrayMajor[1]; - var versionRevision = descArray[3]; - if (versionRevision == "") { - versionRevision = descArray[4]; - } - if (versionRevision[0] == "d") { - versionRevision = versionRevision.substring(1); - } else if (versionRevision[0] == "r") { - versionRevision = versionRevision.substring(1); - if (versionRevision.indexOf("d") > 0) { - versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); - } - } - var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; - } - } - // MSN/WebTV 2.6 supports Flash 4 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; - // WebTV 2.5 supports Flash 3 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; - // older WebTV supports Flash 2 - else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; - else if ( isIE && isWin && !isOpera ) { - flashVer = ControlVersion(); - } - return flashVer; -} - -// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available -function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) -{ - versionStr = GetSwfVer(); - if (versionStr == -1 ) { - return false; - } else if (versionStr != 0) { - if(isIE && isWin && !isOpera) { - // Given "WIN 2,0,0,11" - tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] - tempString = tempArray[1]; // "2,0,0,11" - versionArray = tempString.split(","); // ['2', '0', '0', '11'] - } else { - versionArray = versionStr.split("."); - } - var versionMajor = versionArray[0]; - var versionMinor = versionArray[1]; - var versionRevision = versionArray[2]; - - // is the major.revision >= requested major.revision AND the minor version >= requested minor - if (versionMajor > parseFloat(reqMajorVer)) { - return true; - } else if (versionMajor == parseFloat(reqMajorVer)) { - if (versionMinor > parseFloat(reqMinorVer)) - return true; - else if (versionMinor == parseFloat(reqMinorVer)) { - if (versionRevision >= parseFloat(reqRevision)) - return true; - } - } - return false; - } -} - -function AC_AddExtension(src, ext) -{ - if (src.indexOf('?') != -1) - return src.replace(/\?/, ext+'?'); - else - return src + ext; -} - -function AC_Generateobj(objAttrs, params, embedAttrs) -{ - var str = ''; - if (isIE && isWin && !isOpera) - { - str += ' '; - } - str += ''; - } - else - { - str += ' - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > ȸҰ > CEO λ縻
- - - - - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  ȸ  (ZIOINFOTECH)  ȸּ  ⵵ Ȼ ܿ ܵ 772
    2008 07 02    25(2008 11 )
  ǥ̻    ֿ  α׷, ַ , SI/ERP/CRM/KMS
  ǥȭ  031-403-2250  ѽ  031-403-2260
  ǥ  home@zioinfo.com    10
-
- -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/company/greeting.htm b/zioinfo/company/greeting.htm deleted file mode 100644 index 0f73a069..00000000 --- a/zioinfo/company/greeting.htm +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > ȸҰ > CEO λ縻
- - - - - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  ȸ  (ZIOINFOTECH)  ȸּ  ⵵ Ȼ ܿ ܵ 772
    2008 07 02    25(2008 11 )
  ǥ̻    ֿ  α׷, ַ , SI/ERP/CRM/KMS
  ǥȭ  031-403-2250  ѽ  031-403-2260
  ǥ  home@zioinfo.com    10
-
- -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/company/history.htm b/zioinfo/company/history.htm deleted file mode 100644 index 0f73a069..00000000 --- a/zioinfo/company/history.htm +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > ȸҰ > CEO λ縻
- - - - - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  ȸ  (ZIOINFOTECH)  ȸּ  ⵵ Ȼ ܿ ܵ 772
    2008 07 02    25(2008 11 )
  ǥ̻    ֿ  α׷, ַ , SI/ERP/CRM/KMS
  ǥȭ  031-403-2250  ѽ  031-403-2260
  ǥ  home@zioinfo.com    10
-
- -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/company/idea.htm b/zioinfo/company/idea.htm deleted file mode 100644 index 0f73a069..00000000 --- a/zioinfo/company/idea.htm +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > ȸҰ > CEO λ縻
- - - - - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  ȸ  (ZIOINFOTECH)  ȸּ  ⵵ Ȼ ܿ ܵ 772
    2008 07 02    25(2008 11 )
  ǥ̻    ֿ  α׷, ַ , SI/ERP/CRM/KMS
  ǥȭ  031-403-2250  ѽ  031-403-2260
  ǥ  home@zioinfo.com    10
-
- -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/company/image/company_txt.jpg b/zioinfo/company/image/company_txt.jpg deleted file mode 100644 index d8fd56f8..00000000 Binary files a/zioinfo/company/image/company_txt.jpg and /dev/null differ diff --git a/zioinfo/company/image/dot02.jpg b/zioinfo/company/image/dot02.jpg deleted file mode 100644 index 1d59dde1..00000000 Binary files a/zioinfo/company/image/dot02.jpg and /dev/null differ diff --git a/zioinfo/company/image/left_menu01.gif b/zioinfo/company/image/left_menu01.gif deleted file mode 100644 index a50620bf..00000000 Binary files a/zioinfo/company/image/left_menu01.gif and /dev/null differ diff --git a/zioinfo/company/image/left_menu01.jpg b/zioinfo/company/image/left_menu01.jpg deleted file mode 100644 index 3b9b9ba8..00000000 Binary files a/zioinfo/company/image/left_menu01.jpg and /dev/null differ diff --git a/zioinfo/company/image/left_menu02.gif b/zioinfo/company/image/left_menu02.gif deleted file mode 100644 index 462b545e..00000000 Binary files a/zioinfo/company/image/left_menu02.gif and /dev/null differ diff --git a/zioinfo/company/image/left_menu02.jpg b/zioinfo/company/image/left_menu02.jpg deleted file mode 100644 index 54fd7102..00000000 Binary files a/zioinfo/company/image/left_menu02.jpg and /dev/null differ diff --git a/zioinfo/company/image/left_menu03.gif b/zioinfo/company/image/left_menu03.gif deleted file mode 100644 index 76dec0df..00000000 Binary files a/zioinfo/company/image/left_menu03.gif and /dev/null differ diff --git a/zioinfo/company/image/left_menu03.jpg b/zioinfo/company/image/left_menu03.jpg deleted file mode 100644 index 6d290402..00000000 Binary files a/zioinfo/company/image/left_menu03.jpg and /dev/null differ diff --git a/zioinfo/company/image/left_menu04.gif b/zioinfo/company/image/left_menu04.gif deleted file mode 100644 index 36e2b726..00000000 Binary files a/zioinfo/company/image/left_menu04.gif and /dev/null differ diff --git a/zioinfo/company/image/left_menu04.jpg b/zioinfo/company/image/left_menu04.jpg deleted file mode 100644 index 194f6bf9..00000000 Binary files a/zioinfo/company/image/left_menu04.jpg and /dev/null differ diff --git a/zioinfo/company/image/left_menu05.gif b/zioinfo/company/image/left_menu05.gif deleted file mode 100644 index 5585162c..00000000 Binary files a/zioinfo/company/image/left_menu05.gif and /dev/null differ diff --git a/zioinfo/company/image/left_menu05.jpg b/zioinfo/company/image/left_menu05.jpg deleted file mode 100644 index aaf7eff5..00000000 Binary files a/zioinfo/company/image/left_menu05.jpg and /dev/null differ diff --git a/zioinfo/company/image/left_menu06.gif b/zioinfo/company/image/left_menu06.gif deleted file mode 100644 index a7e68074..00000000 Binary files a/zioinfo/company/image/left_menu06.gif and /dev/null differ diff --git a/zioinfo/company/image/left_menu06.jpg b/zioinfo/company/image/left_menu06.jpg deleted file mode 100644 index 28f64997..00000000 Binary files a/zioinfo/company/image/left_menu06.jpg and /dev/null differ diff --git a/zioinfo/company/image/left_menu_title.gif b/zioinfo/company/image/left_menu_title.gif deleted file mode 100644 index 51f56551..00000000 Binary files a/zioinfo/company/image/left_menu_title.gif and /dev/null differ diff --git a/zioinfo/company/image/left_menu_title.jpg b/zioinfo/company/image/left_menu_title.jpg deleted file mode 100644 index a61bb2cf..00000000 Binary files a/zioinfo/company/image/left_menu_title.jpg and /dev/null differ diff --git a/zioinfo/company/image/menu01.jpg b/zioinfo/company/image/menu01.jpg deleted file mode 100644 index 99673877..00000000 Binary files a/zioinfo/company/image/menu01.jpg and /dev/null differ diff --git a/zioinfo/company/image/menu02.jpg b/zioinfo/company/image/menu02.jpg deleted file mode 100644 index aee860de..00000000 Binary files a/zioinfo/company/image/menu02.jpg and /dev/null differ diff --git a/zioinfo/company/image/menu03.jpg b/zioinfo/company/image/menu03.jpg deleted file mode 100644 index 742163de..00000000 Binary files a/zioinfo/company/image/menu03.jpg and /dev/null differ diff --git a/zioinfo/company/image/menu04.jpg b/zioinfo/company/image/menu04.jpg deleted file mode 100644 index 4ab1db85..00000000 Binary files a/zioinfo/company/image/menu04.jpg and /dev/null differ diff --git a/zioinfo/company/image/menu05.jpg b/zioinfo/company/image/menu05.jpg deleted file mode 100644 index adcc6cc6..00000000 Binary files a/zioinfo/company/image/menu05.jpg and /dev/null differ diff --git a/zioinfo/company/image/s_title.gif b/zioinfo/company/image/s_title.gif deleted file mode 100644 index 662e8022..00000000 Binary files a/zioinfo/company/image/s_title.gif and /dev/null differ diff --git a/zioinfo/company/image/s_title.jpg b/zioinfo/company/image/s_title.jpg deleted file mode 100644 index cd158f6d..00000000 Binary files a/zioinfo/company/image/s_title.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_02.jpg b/zioinfo/company/image/sub01_02.jpg deleted file mode 100644 index aad3dd61..00000000 Binary files a/zioinfo/company/image/sub01_02.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_03.jpg b/zioinfo/company/image/sub01_03.jpg deleted file mode 100644 index 1a11c523..00000000 Binary files a/zioinfo/company/image/sub01_03.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_09.jpg b/zioinfo/company/image/sub01_09.jpg deleted file mode 100644 index f55e9acf..00000000 Binary files a/zioinfo/company/image/sub01_09.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_16.jpg b/zioinfo/company/image/sub01_16.jpg deleted file mode 100644 index 5086a55c..00000000 Binary files a/zioinfo/company/image/sub01_16.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_17.jpg b/zioinfo/company/image/sub01_17.jpg deleted file mode 100644 index 1518dc4d..00000000 Binary files a/zioinfo/company/image/sub01_17.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_18.jpg b/zioinfo/company/image/sub01_18.jpg deleted file mode 100644 index 7f74c488..00000000 Binary files a/zioinfo/company/image/sub01_18.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_20.jpg b/zioinfo/company/image/sub01_20.jpg deleted file mode 100644 index 7f74c488..00000000 Binary files a/zioinfo/company/image/sub01_20.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_22.jpg b/zioinfo/company/image/sub01_22.jpg deleted file mode 100644 index 515c0499..00000000 Binary files a/zioinfo/company/image/sub01_22.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_23.jpg b/zioinfo/company/image/sub01_23.jpg deleted file mode 100644 index ba91c524..00000000 Binary files a/zioinfo/company/image/sub01_23.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_25.jpg b/zioinfo/company/image/sub01_25.jpg deleted file mode 100644 index 840ae6fb..00000000 Binary files a/zioinfo/company/image/sub01_25.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_26.jpg b/zioinfo/company/image/sub01_26.jpg deleted file mode 100644 index 9e393c85..00000000 Binary files a/zioinfo/company/image/sub01_26.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_27.jpg b/zioinfo/company/image/sub01_27.jpg deleted file mode 100644 index a34a9428..00000000 Binary files a/zioinfo/company/image/sub01_27.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_29.jpg b/zioinfo/company/image/sub01_29.jpg deleted file mode 100644 index 41e99ace..00000000 Binary files a/zioinfo/company/image/sub01_29.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_31.jpg b/zioinfo/company/image/sub01_31.jpg deleted file mode 100644 index 653b80c6..00000000 Binary files a/zioinfo/company/image/sub01_31.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_37.jpg b/zioinfo/company/image/sub01_37.jpg deleted file mode 100644 index b952f0e3..00000000 Binary files a/zioinfo/company/image/sub01_37.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_39.jpg b/zioinfo/company/image/sub01_39.jpg deleted file mode 100644 index 1e02d3b1..00000000 Binary files a/zioinfo/company/image/sub01_39.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_41.jpg b/zioinfo/company/image/sub01_41.jpg deleted file mode 100644 index 9bbe0e50..00000000 Binary files a/zioinfo/company/image/sub01_41.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_43.jpg b/zioinfo/company/image/sub01_43.jpg deleted file mode 100644 index 0fb84e04..00000000 Binary files a/zioinfo/company/image/sub01_43.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_44.jpg b/zioinfo/company/image/sub01_44.jpg deleted file mode 100644 index adce9eb4..00000000 Binary files a/zioinfo/company/image/sub01_44.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub01_46.jpg b/zioinfo/company/image/sub01_46.jpg deleted file mode 100644 index 0463191c..00000000 Binary files a/zioinfo/company/image/sub01_46.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub_img.jpg b/zioinfo/company/image/sub_img.jpg deleted file mode 100644 index d48613a6..00000000 Binary files a/zioinfo/company/image/sub_img.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub_img_bg.gif b/zioinfo/company/image/sub_img_bg.gif deleted file mode 100644 index 5a35d67d..00000000 Binary files a/zioinfo/company/image/sub_img_bg.gif and /dev/null differ diff --git a/zioinfo/company/image/sub_menu.gif b/zioinfo/company/image/sub_menu.gif deleted file mode 100644 index 9a9486ed..00000000 Binary files a/zioinfo/company/image/sub_menu.gif and /dev/null differ diff --git a/zioinfo/company/image/sub_menu01.gif b/zioinfo/company/image/sub_menu01.gif deleted file mode 100644 index 4127f2ed..00000000 Binary files a/zioinfo/company/image/sub_menu01.gif and /dev/null differ diff --git a/zioinfo/company/image/sub_menu01.jpg b/zioinfo/company/image/sub_menu01.jpg deleted file mode 100644 index 45051fee..00000000 Binary files a/zioinfo/company/image/sub_menu01.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub_menu02.gif b/zioinfo/company/image/sub_menu02.gif deleted file mode 100644 index 569ce543..00000000 Binary files a/zioinfo/company/image/sub_menu02.gif and /dev/null differ diff --git a/zioinfo/company/image/sub_menu02.jpg b/zioinfo/company/image/sub_menu02.jpg deleted file mode 100644 index a1895fa2..00000000 Binary files a/zioinfo/company/image/sub_menu02.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub_menu03.gif b/zioinfo/company/image/sub_menu03.gif deleted file mode 100644 index ba3b73a8..00000000 Binary files a/zioinfo/company/image/sub_menu03.gif and /dev/null differ diff --git a/zioinfo/company/image/sub_menu03.jpg b/zioinfo/company/image/sub_menu03.jpg deleted file mode 100644 index 62c9c5fe..00000000 Binary files a/zioinfo/company/image/sub_menu03.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub_menu04.gif b/zioinfo/company/image/sub_menu04.gif deleted file mode 100644 index 402451a5..00000000 Binary files a/zioinfo/company/image/sub_menu04.gif and /dev/null differ diff --git a/zioinfo/company/image/sub_menu04.jpg b/zioinfo/company/image/sub_menu04.jpg deleted file mode 100644 index e623c111..00000000 Binary files a/zioinfo/company/image/sub_menu04.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub_menu05.gif b/zioinfo/company/image/sub_menu05.gif deleted file mode 100644 index 2df67fc6..00000000 Binary files a/zioinfo/company/image/sub_menu05.gif and /dev/null differ diff --git a/zioinfo/company/image/sub_menu05.jpg b/zioinfo/company/image/sub_menu05.jpg deleted file mode 100644 index 0cf674e3..00000000 Binary files a/zioinfo/company/image/sub_menu05.jpg and /dev/null differ diff --git a/zioinfo/company/image/sub_menu06.gif b/zioinfo/company/image/sub_menu06.gif deleted file mode 100644 index 07b932a4..00000000 Binary files a/zioinfo/company/image/sub_menu06.gif and /dev/null differ diff --git a/zioinfo/company/image/sub_service_img.jpg b/zioinfo/company/image/sub_service_img.jpg deleted file mode 100644 index ef3afca0..00000000 Binary files a/zioinfo/company/image/sub_service_img.jpg and /dev/null differ diff --git a/zioinfo/company/image/table_bg.gif b/zioinfo/company/image/table_bg.gif deleted file mode 100644 index 7636a18b..00000000 Binary files a/zioinfo/company/image/table_bg.gif and /dev/null differ diff --git a/zioinfo/company/image/table_bottom.gif b/zioinfo/company/image/table_bottom.gif deleted file mode 100644 index 35fe4ef3..00000000 Binary files a/zioinfo/company/image/table_bottom.gif and /dev/null differ diff --git a/zioinfo/company/image/table_bottom.jpg b/zioinfo/company/image/table_bottom.jpg deleted file mode 100644 index 85560fc2..00000000 Binary files a/zioinfo/company/image/table_bottom.jpg and /dev/null differ diff --git a/zioinfo/company/image/table_top.gif b/zioinfo/company/image/table_top.gif deleted file mode 100644 index 1b20b634..00000000 Binary files a/zioinfo/company/image/table_top.gif and /dev/null differ diff --git a/zioinfo/company/image/table_top.jpg b/zioinfo/company/image/table_top.jpg deleted file mode 100644 index 85ed4df6..00000000 Binary files a/zioinfo/company/image/table_top.jpg and /dev/null differ diff --git a/zioinfo/company/image/title.gif b/zioinfo/company/image/title.gif deleted file mode 100644 index 9391d2eb..00000000 Binary files a/zioinfo/company/image/title.gif and /dev/null differ diff --git a/zioinfo/company/image/title.jpg b/zioinfo/company/image/title.jpg deleted file mode 100644 index bb3abfdd..00000000 Binary files a/zioinfo/company/image/title.jpg and /dev/null differ diff --git a/zioinfo/company/organization.htm b/zioinfo/company/organization.htm deleted file mode 100644 index 0f73a069..00000000 --- a/zioinfo/company/organization.htm +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > ȸҰ > CEO λ縻
- - - - - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  ȸ  (ZIOINFOTECH)  ȸּ  ⵵ Ȼ ܿ ܵ 772
    2008 07 02    25(2008 11 )
  ǥ̻    ֿ  α׷, ַ , SI/ERP/CRM/KMS
  ǥȭ  031-403-2250  ѽ  031-403-2260
  ǥ  home@zioinfo.com    10
-
- -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/company/partner.htm b/zioinfo/company/partner.htm deleted file mode 100644 index 0f73a069..00000000 --- a/zioinfo/company/partner.htm +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > ȸҰ > CEO λ縻
- - - - - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  ȸ  (ZIOINFOTECH)  ȸּ  ⵵ Ȼ ܿ ܵ 772
    2008 07 02    25(2008 11 )
  ǥ̻    ֿ  α׷, ַ , SI/ERP/CRM/KMS
  ǥȭ  031-403-2250  ѽ  031-403-2260
  ǥ  home@zioinfo.com    10
-
- -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/company/road.htm b/zioinfo/company/road.htm deleted file mode 100644 index 0f73a069..00000000 --- a/zioinfo/company/road.htm +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > ȸҰ > CEO λ縻
- - - - - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  ȸ  (ZIOINFOTECH)  ȸּ  ⵵ Ȼ ܿ ܵ 772
    2008 07 02    25(2008 11 )
  ǥ̻    ֿ  α׷, ַ , SI/ERP/CRM/KMS
  ǥȭ  031-403-2250  ѽ  031-403-2260
  ǥ  home@zioinfo.com    10
-
- -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/css/analysis.css b/zioinfo/css/analysis.css deleted file mode 100644 index da47e7bd..00000000 --- a/zioinfo/css/analysis.css +++ /dev/null @@ -1,45 +0,0 @@ -td { - line-height:17px; - font-size:9pt; - color:#606164; - font-family: ""; - letter-spacing:0px; -} -select{ - line-height:17px; - font-size:9pt; - color:#606164; - font-family: ""; - letter-spacing:0px; -} - -a:hover { - text-decoration: none; - color:464646; -} -a { - text-decoration: none; - color:464646 -} -/*****************************************************************************/ -/* û Ÿ */ -/*****************************************************************************/ -.stat_title_subject -{ - color:#000000; - line-height:25px; - font-size:15pt; - font-family: ""; - letter-spacing:0px; - font-weight:700; -} -.TD_ELE -{ - cursor:hand; - color:#FF0000; - border-bottom:10px solid pink; -} -/*****************************************************************************/ -/* Ÿ(Ż) */ -/*****************************************************************************/ -.domestic_3d_F { font-family: "";LETTER-SPACING: -1px;font-size:15px;font-weight:bold;color: #284CA4;} diff --git a/zioinfo/css/analysis/table1.css b/zioinfo/css/analysis/table1.css deleted file mode 100644 index 8296d8d4..00000000 --- a/zioinfo/css/analysis/table1.css +++ /dev/null @@ -1,114 +0,0 @@ -@CHARSET "EUC-KR"; - -/* [jsp/sample/*.jsp] ̿Ǵ cssԴϴ. */ - - -/* ̳ ǥϴ ̺ */ -div.tableZone { -} - -table.list, table.view { - width: 100%; - table-layout: fixed; -} - -table.list th, -table.list td, -table.view th, -table.view td { - white-space: nowrap; - height: 18pt; -} - -/* ǥ */ -table.list th, -table.view th { - background-color: #EFF9ED; - font-family: Gulim, "", Verdana ; - font-size:9pt; - font-weight:normal; - color:#1F8F13; - text-align: center; - border-top: 1px solid #A8DA9E; - border-bottom: 1px solid #A8DA9E; -} -/* ǥ ü */ -table.list td, -table.view td { - font-family: Gulim, "", Verdana ; - font-size: 9pt; - padding-left:3px; - padding-right:3px; - color: #666666; - background-color: #FFFFFF; - border-right: 1px solid #EDEDED; - border-bottom: 1px solid #EDEDED; -} - -.bar { - background-image:url(../../images/board/bbs_cap01.gif); - background-repeat:no-repeat - -} - -/* ش id border ۴ϴ.*/ -td#lastcolumn { - border-right: 0px; -} - -table.view { - border-top: 2px solid #A8DA9E; -/* border-bottom: 1px solid #EDEDED;*/ -} - -table.view th { - border-bottom: 1px solid #EDEDED; - border-top: none; - width: 100px; -} - -table.view td input { - height: 15px; - width: 100%; -} - - -table.view input.readonly { background: #EFEFEF; } - -/* ư */ -/* Ϲιư */ -button.normal { - font-size: 9pt; - cursor:pointer; - background:#72C261; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} -/*ư 콺 ɶ Ŭ*/ -button.over { - font-size: 9pt; - cursor:pointer; - background:#53A941; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} - -button.small { - width: 35px; -} - -button.tiny { - font-size: 8pt; - padding: 2px 0 0 1px; - width: 29px; -} diff --git a/zioinfo/css/common.css b/zioinfo/css/common.css deleted file mode 100644 index 5a9d3fd7..00000000 --- a/zioinfo/css/common.css +++ /dev/null @@ -1,295 +0,0 @@ -@CHARSET "EUC-KR"; -/* CSS Document */ -body, table { - font-family: Gulim, "", sans-serif;*/ - margin: 0; - padding: 0; - font-size: 9pt; - color: #666666; -} - -img { - border: 0; - vertical-align: center; - margin: 0px; - padding: 0px; -} -img.hand {cursor:pointer;} - -#hand { - cursor:pointer; -} - -h1 { - font-size: 17px; - color: #666666; - font-weight : bold; - width: 100%; - margin: 0 0 5px 0; - padding-left: 25px; - text-align: left; - background: transparent url(../images/common/subtitle_bu02.gif) no-repeat 0 1px; -} - -h2 { - font-size: 10pt; - font-weight:bold; - color: #666666; - width: 100%; - margin: 0px 0 0 0px; - text-align: left; - padding-left: 19px; - padding-top: 0px; - background: transparent url(../images/common//menu_bu01.gif) no-repeat 0 1px; -} - -h3 { - font-size: 10pt; - font-weight:normal; - width: 100%; - margin: 0 0 2px; - text-align: left; - color: #666666; - padding-left: 20px; - background: transparent url(../images/common/menu_bu01.gif) no-repeat 0 1px; -} - -h4 { - font-size: 10pt; - font-weight:normal; - width: 100%; - margin: 0 0 2px; - text-align: left; - color: #666666; - padding-left: 20px; - background: transparent url(../images/common/menu_bu02.gif) no-repeat 0 1px; -} - -a { - color: #666666; - text-decoration: none; - cursor: pointer; -} - -a:hover { - color: #86B553; - text-decoration: underline; -} - -form { - margin: 0; - padding: 0; -} - - -input, select, textarea { - font-size: 9pt; - color: #666; - padding: 1px 2px 2px 2px; - margin: 0px; - border: 1px solid #EEEEEE; - background: white; -} - -input, select { - height: 18px; -} - -textarea { - width: 100%; - line-height: 1.5em; -} - -input.radio { - border: 0; -} - -input.checkbox { - border: 0; -} - -/* б . */ -input.readonly { - color: #444; - border: 1px solid #CDCDCD; - background-color: transparent; -} - - -table.outline { margin: 0; padding: 0; border: 0; background-color: transparent; } -table.outline td { margin: 0; padding: 0; border: 0; background-color: transparent; font-size: 10pt;} - - -/* */ -div.container { - padding-top: 5px; -/* padding-left: 15px;*/ - width: 675px; -} - -/* div */ -div.container div { - width: 100%; -} - -/* ¡ TAG */ -div.pageNaviZone { - text-align:center; -/* padding-top: px;*/ - padding-bottom: 3px; - /*border-bottom: 1px solid #4BB32D;*/ -} - -/* ¡ǥÿ */ -div.pageingInfoZone { -/* text-align:right;*/ - margin-left: 10px; - margin-right: 10px; - padding-top: 5px; - padding-bottom: 3px; - font-size: 8pt; - color: #707070; -} - -/* ư */ -div.buttonZone { - text-align:right; - padding-top: 10px; - padding-right:5px; -/* padding-bottom: 10px;*/ -} - -/* ˻ */ -div.searchZone { - margin: 0 0 0 0px; - text-align:center; - background: #EFEFEF; - vertical-align:top; -} - - -/* */ -div.blockZone { - top: 10; - left: 10; - width: 10; - height:10; - position: absolute; - visibility: hidden; - overflow: hidden; - text-overflow: ellipsis; - background:red; -} - - -div#menuItems { - line-height: 150%; - cursor:pointer; - padding-top: 3px; - padding-bottom: 3px; - border-bottom: 1px dashed #EDEDED; -} - - -/*****************************************˻ /stat/searchStatTable.do */ -div.searchcontainer { - width: 900px; - font-size: 9pt; -} - -/* ˻ */ -div.statSearchZone { - margin: 0 0 0 0px; - text-align:center; - background: #EFEFEF; - vertical-align:top; -} -/*[]*/ -div.statSearchInfoZone { - background: #F6F6F6; - padding: 0 0 0 30; - border-top: 1px solid #DCDCDC; - -} -/*****************************************˻END*/ - - -/* scrollbar */ -.scrollbar { - scrollbar-arrow-color: #808080; - scrollbar-face-color: #E5E5E5; - scrollbar-highlight-color: #FFFFFF; - scrollbar-3dlight-color: #E5E5E5; - scrollbar-shadow-color: #E5E5E5; - scrollbar-darkshadow-color: #E5E5E5; - scrollbar-track-color: #FFFFFF; -} - -/* ¡ Ÿ */ -.nav_linkPageNo { - color: black; -} -.nav_nextGroup { - color: black; -} -.nav_prevGroup { - color: black; -} -.nav_lastPage { - color: black; -} -.nav_firstPage { - color: black; -} - -#blankspace { - margin-left: 10px; -} - - -/* */ - -.h_line01{ width:605px; border-top: 1px solid #E5E5E5; padding: 0px; margin: 0px; font-size:1px; } -.h_line02{ width:605px; border-top: 1px solid #4BB32D; padding: 0px; margin: 0px; font-size:1px; } -.dotline01{ background: url(/images/dot01.gif) repeat-x; height:1px; font-size:1px; padding: 0px; margin: 0px;} /* Ʈ ̹ */ - -/* */ -.align_l { text-align: left; padding-left: 10px;} -.align_2 { text-align: center;} - - -/* , */ -.e { font-family: verdana; font-size:11px; } /* , */ -.e a:link { font-size: 11px; color: #666666; text-decoration: none; } -.e a:visited { font-size: 11px; color: #666666; text-decoration: none; } -.e a:active { font-size: 11px; color: #4BB32D; text-decoration: underline; } -.e a:hover { font-size: 11px; color: #4BB32D; text-decoration: underline; } - -/* */ -#strong { - font-weight:bold; -} - -/*˻ α⵵ ׷*/ -span.popular-bar { - width:8;height:4;font-size:6pt;margin-left: 2px; -} - -span#popular01 {background:#A9D2EF;} -span#popular02 {background:#92C6EB;} -span#popular03 {background:#6AB0E2;} -span#popular04 {background:#3A96D8;} -span#popular05 {background:#1180CF;} - -/*˻Ű */ -span#searchKeyword { - background: #FEF7E9; - color: #F97C0D; -} - -/*Ʈ*/ -div.chartZone { - padding-top:5px; - text-align:center; -} - diff --git a/zioinfo/css/custom/table1.css b/zioinfo/css/custom/table1.css deleted file mode 100644 index c64dce65..00000000 --- a/zioinfo/css/custom/table1.css +++ /dev/null @@ -1,120 +0,0 @@ -@CHARSET "EUC-KR"; - -/* [jsp/sample/*.jsp] ̿Ǵ cssԴϴ. */ - - -/* ̳ ǥϴ ̺ */ -div.tableZone { -} - -table.list, table.view { - width: 100%; - table-layout: fixed; -} - -table.list th, -table.list td, -table.view th, -table.view td { - white-space: nowrap; - height: 18pt; -} - -/* ǥ */ -table.list th, -table.view th { - background-color: #EFF9ED; - font-family: Gulim, "", Verdana ; - font-size:9pt; - font-weight:normal; - color:#1F8F13; - text-align: center; - border-top: 1px solid #A8DA9E; - border-bottom: 1px solid #A8DA9E; -} -/* ǥ ü */ -table.list td, -table.view td { - font-family: Gulim, "", Verdana ; - font-size: 9pt; - padding-left:3px; - padding-right:3px; - color: #666666; - background-color: #FFFFFF; - border-right: 1px solid #EDEDED; - border-bottom: 1px solid #EDEDED; -} - -.bar { - background-image:url(../../images/board/bbs_cap01.gif); - background-repeat:no-repeat - -} - -/* ش id border ۴ϴ.*/ -td#lastcolumn { - border-right: 0px; -} - -table.view { - border-top: 2px solid #A8DA9E; -/* border-bottom: 1px solid #EDEDED;*/ -} - -table.view th { - border-bottom: 1px solid #EDEDED; - border-top: none; - width: 100px; -} - -table.view td input { - height: 15px; - width: 100%; -} - - -table.view input.readonly { background: #EFEFEF; } - -/* ư */ -/* Ϲιư */ -button.normal { - font-size: 9pt; - cursor:pointer; - background:#72C261; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} -/*ư 콺 ɶ Ŭ*/ -button.over { - font-size: 9pt; - cursor:pointer; - background:#53A941; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} - -button.small { - width: 35px; -} - -button.tiny { - font-size: 8pt; - padding: 2px 0 0 1px; - width: 29px; -} - -#reply1 {padding-left:10px;} -#reply2 {padding-left:20px;} -#reply3 {padding-left:30px;} -#reply4 {padding-left:40px;} -#reply5 {padding-left:50px;} diff --git a/zioinfo/css/dtree.css b/zioinfo/css/dtree.css deleted file mode 100644 index b201c2fd..00000000 --- a/zioinfo/css/dtree.css +++ /dev/null @@ -1,34 +0,0 @@ -/*--------------------------------------------------| -| dTree 2.05 | www.destroydrop.com/javascript/tree/ | -|---------------------------------------------------| -| Copyright (c) 2002-2003 Geir Landr | -|--------------------------------------------------*/ - -.dtree { - font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size: 11px; - color: #666; - white-space: nowrap; -} -.dtree img { - border: 0px; - vertical-align: middle; -} -.dtree a { - color: #333; - text-decoration: none; -} -.dtree a.node, .dtree a.nodeSel { - white-space: nowrap; - padding: 1px 2px 1px 2px; -} -.dtree a.node:hover, .dtree a.nodeSel:hover { - color: #333; - text-decoration: underline; -} -.dtree a.nodeSel { - background-color: #c0d2ec; -} -.dtree .clip { - overflow: hidden; -} \ No newline at end of file diff --git a/zioinfo/css/global.css b/zioinfo/css/global.css deleted file mode 100644 index 3ce0ca05..00000000 --- a/zioinfo/css/global.css +++ /dev/null @@ -1,120 +0,0 @@ -/* body */ -td {font-family: ""; font-size: 11px; color: #333333; line-height: 150%;} -body {margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;} -img {Border : 0px;} -a {selector-dummy : expression(this.hideFocus=true);} - -/* ⺻ */ -A:link {COLOR: #666666; FONT-SIZE: 8pt; TEXT-DECORATION: none} -A:active {COLOR: #666666; FONT-SIZE: 8pt; TEXT-DECORATION: none} -A:visited {COLOR: #666666; FONT-SIZE: 8pt; TEXT-DECORATION: none} -A:hover {COLOR: #000000; FONT-SIZE: 8pt; TEXT-DECORATION: none} -A.s:link {COLOR: #a862b5; FONT-SIZE: 11px; TEXT-DECORATION:none} -A.s2:link {COLOR: #1e59b2; FONT-SIZE: 11px; TEXT-DECORATION:none} -A.s3:link {COLOR: #c67ce1; FONT-SIZE: 11px; TEXT-DECORATION:none} -A.s4:link {COLOR: #b85587; FONT-SIZE: 11px; TEXT-DECORATION:none} -/* Body Navigation ⺻ */ - -.body_navigation {COLOR: #2f2f2f; font-family: ""; font-size: 8pt; vertical-align:bottom; text-align:right;} - -/* Input : , ũ, , Boarder, Color, Background Color, */ - -.input_text { - font-family: ""; - font-size: 11px; - height:20px; - border:1px solid #CCCCCC; - color: #000000; - background-color: #FFFFFF; - padding:3px; -} -/* Input : , ũ, , Boarder, Color, Background Color, */ -.input_coupon { - font-family: ""; - font-size: 11px; - height:16px; - border:1px solid #CCCCCC; - color: #000000; - background-color: #FFFFFF; - padding:3px; -} - -/* Input Scroll Area : , ũ, , Boarder, Color, Background Color, */ - -.input_area { - font-family: ""; - font-size: 11px; - line-height: 125%; - background-color: #FFFFFF; - border: 1px solid #CCCCCC; - color: #666666; - padding-top: 3px; -} -/* check : Boarder, Color, Background Color */ -.input_check { - - line-height: 125%; - background-color: #FFFFFF; - border: 1px solid #FFFFFF; - color: #666666; - padding-top: 2px; -} - -/* scroll */ -.scr{ - scrollbar-face-color: #efefef; - scrollbar-arrow-color: #cccccc; - scrollbar-track-color: #ffffff; - scrollbar-highlight-color: #cccccc; - scrollbar-3dlight-color: #ffffff; - scrollbar-shadow-color: #ffffff; - scrollbar-darkshadow-color: #ffffff; - } - -/* td */ -.td_margine{padding:3px;} - -/* ޷ */ -.t1{font-family: ; font-size: 11px; color: #666666; text-decoration: none; font-weight:bold;} /**/ -.t2{font-family: ; font-size: 11px; color: #FF3300; text-decoration: none;} /*Ͽ*/ -.t3{font-family: ; font-size: 11px; color: #0066CC; text-decoration: none;} /**/ - -/* īװ */ -.t4{font-family: ; font-size: 11px; color: #de686b; text-decoration: none; font-weight:bold;} -.t5{font-family: ; font-size: 11px; color: #7d89df; text-decoration: none; font-weight:bold;} -.t6{font-family: ; font-size: 11px; color: #34b9b7; text-decoration: none; font-weight:bold;} -.t7{font-family: ; font-size: 11px; color: #ab8157; text-decoration: none; font-weight:bold;} -.t8{font-family: ; font-size: 11px; color: #64a773; text-decoration: none; font-weight:bold;} - -/* ׵θ */ -td.line1 {border-width:1px; border-color:#CCCCCC; border-style:solid;} /* Ұ, ׵θ */ -td.line2 {border-width:2px; border-color:#CCCCCC; border-style:solid;} /* ǰ, ū׵θ */ - -/* ̺ κ */ -td.td1 {color: #666666; background-color:#EBE5F3; text-align: center} /*, Ʈ ׸*/ -td.td2 {color: #666666; background-color:#f5f5f5;} /*̾ ȸ*/ -td.td3 {color: #666666; background-color:#EBE5F3; text-align: left; padding-left:10px;} /*, ׸*/ -td.td4 {color: #666666; background-color:#e3edf3; text-align: center} /* Ʈ ׸*/ -td.td5 {color: #666666; background-color:#f3e9f5; text-align: center} /*ȭ Ʈ ׸*/ -td.td6 {color: #666666; background-color:#ebe5f3; text-align: center} /*-ı,1:1,,̴Ư ׸*/ - -/* Ʈ κ */ -.S1{font-family: ; font-size: 11px; color: #a862b5; text-decoration: none; font-weight:bold; line-height: 170%;} -.S2{font-family: ; font-size: 11px; color: #1e59b2; text-decoration: none; font-weight:bold; line-height: 170%;} -.S3{font-family: ; font-size: 11px; color: #c67ce1; text-decoration: none; font-weight:bold; line-height: 170%;} -.S4{font-family: ; font-size: 11px; color: #b85587; text-decoration: none; font-weight:bold; line-height: 170%;} -/* ׵θ */ -td.line1 {border-width:1px; border-color:#CCCCCC; border-style:solid;} - -/* ̺ κ */ -td.td1 {color: #666666; background-color:#EBE5F3; text-align: center} /*, */ - -/*̾*/ -.table1 { font-family: ; font-size: 11px; cellpadding:2px; cellspacing:2px; border-style: solid; border-width: 2px; border-color:#c1acde; background-color:#FFFFFF; width: 530;} -td.td2 {color: #666666; background-color:#f5f5f5;} - /*ʵ*/ -select {behavior: url('/jsp/inc/selectBox.htc');font-size:11px; color: #666666;} -check {border:0} -/* point color */ -.org{color:#FF6600;} -.pup{color:#663399;} diff --git a/zioinfo/css/jbss/table1.css b/zioinfo/css/jbss/table1.css deleted file mode 100644 index 8296d8d4..00000000 --- a/zioinfo/css/jbss/table1.css +++ /dev/null @@ -1,114 +0,0 @@ -@CHARSET "EUC-KR"; - -/* [jsp/sample/*.jsp] ̿Ǵ cssԴϴ. */ - - -/* ̳ ǥϴ ̺ */ -div.tableZone { -} - -table.list, table.view { - width: 100%; - table-layout: fixed; -} - -table.list th, -table.list td, -table.view th, -table.view td { - white-space: nowrap; - height: 18pt; -} - -/* ǥ */ -table.list th, -table.view th { - background-color: #EFF9ED; - font-family: Gulim, "", Verdana ; - font-size:9pt; - font-weight:normal; - color:#1F8F13; - text-align: center; - border-top: 1px solid #A8DA9E; - border-bottom: 1px solid #A8DA9E; -} -/* ǥ ü */ -table.list td, -table.view td { - font-family: Gulim, "", Verdana ; - font-size: 9pt; - padding-left:3px; - padding-right:3px; - color: #666666; - background-color: #FFFFFF; - border-right: 1px solid #EDEDED; - border-bottom: 1px solid #EDEDED; -} - -.bar { - background-image:url(../../images/board/bbs_cap01.gif); - background-repeat:no-repeat - -} - -/* ش id border ۴ϴ.*/ -td#lastcolumn { - border-right: 0px; -} - -table.view { - border-top: 2px solid #A8DA9E; -/* border-bottom: 1px solid #EDEDED;*/ -} - -table.view th { - border-bottom: 1px solid #EDEDED; - border-top: none; - width: 100px; -} - -table.view td input { - height: 15px; - width: 100%; -} - - -table.view input.readonly { background: #EFEFEF; } - -/* ư */ -/* Ϲιư */ -button.normal { - font-size: 9pt; - cursor:pointer; - background:#72C261; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} -/*ư 콺 ɶ Ŭ*/ -button.over { - font-size: 9pt; - cursor:pointer; - background:#53A941; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} - -button.small { - width: 35px; -} - -button.tiny { - font-size: 8pt; - padding: 2px 0 0 1px; - width: 29px; -} diff --git a/zioinfo/css/link.css b/zioinfo/css/link.css deleted file mode 100644 index 9c6ccddf..00000000 --- a/zioinfo/css/link.css +++ /dev/null @@ -1,55 +0,0 @@ -BODY {scrollbar-face-color: #F2F2F2; -scrollbar-shadow-color: #999999; -scrollbar-highlight-color: #FFFFFF; -scrollbar-3dlight-color: #999999; -scrollbar-darkshadow-color: #FFFFFF; -scrollbar-track-color: #FFFFFF; -scrollbar-arrow-color: #999999} - -form {margin:0; color: #5E5E5D;FONT-FAMILY:, arial; FONT-SIZE: 9pt;;letter-spacing:-0.02em; text-decoration:none;line-height:12pt;} - -A:link {color:#666666; text-decoration:none; font-size:9pt;} -A:visited {color:#666666; text-decoration:none; font-size:9pt;} -A:active {color:#4169e1; text-decoration:none; font-size:9pt;} -A:hover {color:#3333FF; text-decoration:underline; font-size:9pt;} - -font {font-family:; font-size:9pt; line-height:18px;} -.b { font-size:8pt ; line-height: 14px ; font-face:;} -.text01 { font-family: "ü"; font-size: 9pt; color: #FFFFFF; line-height: 14pt; font-weight:bold; letter-spacing:-1pt;} -.numbersjackpot { font-family: "ü"; font-size: 21pt; color: #FFFFFF; line-height: 22pt; font-weight:bold; letter-spacing:-1pt;} -.size {font-family:; font-size:12pt; line-height:18px; font-weight:bold;} -.s {font-family:; font-size:8pt; line-height:15px;} -.size_ {font-family:; font-size:11pt; line-height:18px; font-weight:bold;} -.ten {font-family:; font-size:10pt; line-height:18px; font-weight:bold;} - -.support {font-family:; font-size:9pt; line-height:15px;} - - -td {font-family:; font-size:9pt; color:#666666;} -.a {font-family:; font-size:9pt; color:#0000FF;line-height:25px; text-decoration:underline} - -.sample { background-color: #E8F0FC; border-color: #798EAE 798EAE 798EAE 798EAE; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px} - -a.blue:link {color:#1e90ff; text-decoration:none; font-size:10pt;} -a.blue:visited {color:#1e90ff; text-decoration:none; font-size:10pt;} -a.blue:active {color:#1e90ff; text-decoration:none; font-size:10pt;} -a.blue:hover {color:#4169e1; text-decoration:underline; font-size:10pt;} - -td.submenu {color:#000000; text-decoration:none; font-size:9pt;} -a.submenu:link {color:#000000; text-decoration:none; font-size:9pt;} -a.submenu:visited {color:#000000; text-decoration:none; font-size:9pt;} -a.submenu:active {color:#000000; text-decoration:none; font-size:9pt;} -a.submenu:hover {color:#000000; text-decoration:none; font-size:9pt;} - -.form {border:1px solid #CDCDCD;font-family:;font-size:12px; color:#555555;} -.form4 {border:1px solid #6D6D6D;font-family:;font-size:12px; color:#B1B1B1;} -.form2 {border:1px solid #E4DCBA;font-family:;font-size:12px; color:#555555;} -.form3 {border:1px solid #CDCDCD;font-family:;font-size:12px; color:#555555; background-color:#F8F8F8; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:5px;} - -.txt{font-family:; color:#666666; text-decoration:none; font-size:9pt;} - -.com { font-family: "ü"; font-size: 9pt; color: #666666; line-height: 12pt; letter-spacing:-1pt;} - -.consult_input { BORDER-RIGHT: #CCCCCC 1px solid; BORDER-TOP: #CCCCCC 1px solid; BORDER-LEFT: #CCCCCC 1px solid; BORDER-BOTTOM: #CCCCCC 1px solid; BACKGROUND-COLOR: #ffffff; font-size:9pt; color:#666666; } -.consult_textarea { BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #ffffff } - diff --git a/zioinfo/css/mypage/table1.css b/zioinfo/css/mypage/table1.css deleted file mode 100644 index a855ef67..00000000 --- a/zioinfo/css/mypage/table1.css +++ /dev/null @@ -1,121 +0,0 @@ -@CHARSET "EUC-KR"; - -/* [jsp/mypage/*.jsp] ̿Ǵ cssԴϴ. */ - - -/* ̳ ǥϴ ̺ */ -div.tableZone { -} - -table.list, table.view { - width: 100%; - table-layout: fixed; -} - -table.list th, -table.list td, -table.view th, -table.view td { - white-space: nowrap; - height: 18pt; -} - -/* ǥ */ -table.list th, -table.view th { - background-color: #EFF9ED; - font-family: Gulim, "", Verdana ; - font-size:9pt; - font-weight:normal; - color:#1F8F13; - text-align: center; - border-top: 1px solid #A8DA9E; - border-bottom: 1px solid #A8DA9E; -} -/* ǥ ü */ -table.list td, -table.view td { - font-family: Gulim, "", Verdana ; - font-size: 9pt; - padding-left:3px; - padding-right:3px; - color: #666666; - background-color: #FFFFFF; - border-right: 1px solid #EDEDED; - border-bottom: 1px solid #EDEDED; -} - -.bar { - background-image:url(../../images/board/bbs_cap01.gif); - background-repeat:no-repeat - -} - -/* ش id border ۴ϴ.*/ -td#lastcolumn { - border-right: 0px; -} - -table.view { - border-top: 2px solid #A8DA9E; -/* border-bottom: 1px solid #EDEDED;*/ -} - -table.view th { - border-bottom: 1px solid #EDEDED; - border-top: none; - width: 100px; -} - -table.view td input { - height: 15px; - width: 100%; -} - - -table.view input.readonly { background: #EFEFEF; } - -/* ư */ -/* Ϲιư */ -button.normal { - font-size: 9pt; - cursor:pointer; - background:#72C261; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} -/*ư 콺 ɶ Ŭ*/ -button.over { - font-size: 9pt; - cursor:pointer; - background:#53A941; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} - -button.small { - width: 35px; -} - -button.tiny { - font-size: 8pt; - padding: 2px 0 0 1px; - width: 29px; -} - - -#reply1 {padding-left:10px;} -#reply2 {padding-left:20px;} -#reply3 {padding-left:30px;} -#reply4 {padding-left:40px;} -#reply5 {padding-left:50px;} diff --git a/zioinfo/css/sample/table1.css b/zioinfo/css/sample/table1.css deleted file mode 100644 index 8296d8d4..00000000 --- a/zioinfo/css/sample/table1.css +++ /dev/null @@ -1,114 +0,0 @@ -@CHARSET "EUC-KR"; - -/* [jsp/sample/*.jsp] ̿Ǵ cssԴϴ. */ - - -/* ̳ ǥϴ ̺ */ -div.tableZone { -} - -table.list, table.view { - width: 100%; - table-layout: fixed; -} - -table.list th, -table.list td, -table.view th, -table.view td { - white-space: nowrap; - height: 18pt; -} - -/* ǥ */ -table.list th, -table.view th { - background-color: #EFF9ED; - font-family: Gulim, "", Verdana ; - font-size:9pt; - font-weight:normal; - color:#1F8F13; - text-align: center; - border-top: 1px solid #A8DA9E; - border-bottom: 1px solid #A8DA9E; -} -/* ǥ ü */ -table.list td, -table.view td { - font-family: Gulim, "", Verdana ; - font-size: 9pt; - padding-left:3px; - padding-right:3px; - color: #666666; - background-color: #FFFFFF; - border-right: 1px solid #EDEDED; - border-bottom: 1px solid #EDEDED; -} - -.bar { - background-image:url(../../images/board/bbs_cap01.gif); - background-repeat:no-repeat - -} - -/* ش id border ۴ϴ.*/ -td#lastcolumn { - border-right: 0px; -} - -table.view { - border-top: 2px solid #A8DA9E; -/* border-bottom: 1px solid #EDEDED;*/ -} - -table.view th { - border-bottom: 1px solid #EDEDED; - border-top: none; - width: 100px; -} - -table.view td input { - height: 15px; - width: 100%; -} - - -table.view input.readonly { background: #EFEFEF; } - -/* ư */ -/* Ϲιư */ -button.normal { - font-size: 9pt; - cursor:pointer; - background:#72C261; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} -/*ư 콺 ɶ Ŭ*/ -button.over { - font-size: 9pt; - cursor:pointer; - background:#53A941; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} - -button.small { - width: 35px; -} - -button.tiny { - font-size: 8pt; - padding: 2px 0 0 1px; - width: 29px; -} diff --git a/zioinfo/css/stat/table1.css b/zioinfo/css/stat/table1.css deleted file mode 100644 index e16dd1b4..00000000 --- a/zioinfo/css/stat/table1.css +++ /dev/null @@ -1,116 +0,0 @@ -@CHARSET "EUC-KR"; - -/* [jsp/sample/*.jsp] ̿Ǵ cssԴϴ. */ - - -/* ̳ ǥϴ ̺ */ -div.tableZone { -} - -table.list, table.view { - width: 100%; - table-layout: fixed; -} - -table.list th, -table.list td, -table.view th, -table.view td { - white-space: nowrap; - height: 18pt; -} - -/* ǥ */ -table.list th, -table.view th { - background-color: #FBF4F1; - font-family: Gulim, "", Verdana ; - font-size:9pt; - font-weight:normal; - color:#9B6748; - text-align: center; - border-top: 1px solid #EAD2C7; - border-bottom: 1px solid #EAD2C7; -} -/* ǥ ü */ -table.list td, -table.view td { - font-family: Gulim, "", Verdana ; - font-size: 9pt; - padding-left:3px; - padding-right:3px; - color: #666666; - background-color: #FFFFFF; - border-right: 1px solid #EDEDED; - border-bottom: 1px solid #EDEDED; -} - -.bar { - background-image:url(../../images/board/bbs_cap03.gif); - background-repeat:no-repeat - -} - -/* ش id border ۴ϴ.*/ -td#lastcolumn { - border-right: 0px; -} - -table.view { - border-top: 2px solid #A8DA9E; -/* border-bottom: 1px solid #EDEDED;*/ -} - -table.view th { - border-bottom: 1px solid #EDEDED; - border-top: none; - width: 100px; -} - -table.view td input { - height: 15px; - width: 100%; -} - - -table.view input.readonly { background: #EFEFEF; } - -/* ư */ -/* Ϲιư */ -button.normal { - font-size: 9pt; - cursor:pointer; - background:#72C261; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} -/*ư 콺 ɶ Ŭ*/ -button.over { - font-size: 9pt; - cursor:pointer; - background:#53A941; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} - -button.small { - width: 35px; - height: 22px; -} - -button.tiny { - font-size: 8pt; - padding: 2px 0 0 1px; - width: 29px; - height: 20px; -} diff --git a/zioinfo/css/stat/table2.css b/zioinfo/css/stat/table2.css deleted file mode 100644 index 07ec45b0..00000000 --- a/zioinfo/css/stat/table2.css +++ /dev/null @@ -1,116 +0,0 @@ -@CHARSET "EUC-KR"; - -/* [jsp/sample/*.jsp] ̿Ǵ cssԴϴ. */ - - -/* ̳ ǥϴ ̺ */ -div.tableZone { -} - -table.list, table.view { - width: 100%; - table-layout: fixed; -} - -table.list th, -table.list td, -table.view th, -table.view td { - white-space: nowrap; - height: 18pt; -} - -/* ǥ */ -table.list th, -table.view th { - background-color: #EBFCF1; - font-family: Gulim, "", Verdana ; - font-size:9pt; - font-weight:normal; - color:#1F5299; - text-align: center; - border-top: 1px solid #A8DA8E; - border-bottom: 1px solid #A8DA8E; -} -/* ǥ ü */ -table.list td, -table.view td { - font-family: Gulim, "", Verdana ; - font-size: 9pt; - padding-left:3px; - padding-right:3px; - color: #666666; - background-color: #FFFFFF; - border-right: 1px solid #EDEDED; - border-bottom: 1px solid #EDEDED; -} - -.bar { - background-image:url(../../images/board/bbs_cap01.gif); - background-repeat:no-repeat - -} - -/* ش id border ۴ϴ.*/ -td#lastcolumn { - border-right: 0px; -} - -table.view { - border-top: 2px solid #A8DA9E; -/* border-bottom: 1px solid #EDEDED;*/ -} - -table.view th { - border-bottom: 1px solid #EDEDED; - border-top: none; - width: 100px; -} - -table.view td input { - height: 15px; - width: 100%; -} - - -table.view input.readonly { background: #EFEFEF; } - -/* ư */ -/* Ϲιư */ -button.normal { - font-size: 9pt; - cursor:pointer; - background:#72C261; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} -/*ư 콺 ɶ Ŭ*/ -button.over { - font-size: 9pt; - cursor:pointer; - background:#53A941; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} - -button.small { - width: 35px; - height: 22px; -} - -button.tiny { - font-size: 8pt; - padding: 2px 0 0 1px; - width: 29px; - height: 20px; -} diff --git a/zioinfo/css/stat/table3.css b/zioinfo/css/stat/table3.css deleted file mode 100644 index d157f296..00000000 --- a/zioinfo/css/stat/table3.css +++ /dev/null @@ -1,116 +0,0 @@ -@CHARSET "EUC-KR"; - -/* [jsp/sample/*.jsp] ̿Ǵ cssԴϴ. */ - - -/* ̳ ǥϴ ̺ */ -div.tableZone { -} - -table.list, table.view { - width: 100%; - table-layout: fixed; -} - -table.list th, -table.list td, -table.view th, -table.view td { - white-space: nowrap; - height: 18pt; -} - -/* ǥ */ -table.list th, -table.view th { - background-color: #EDF4FA; - font-family: Gulim, "", Verdana ; - font-size:9pt; - font-weight:normal; - color:#1F5299; - text-align: center; - border-top: 1px solid #B8CFE5; - border-bottom: 1px solid #B8CFE5; -} -/* ǥ ü */ -table.list td, -table.view td { - font-family: Gulim, "", Verdana ; - font-size: 9pt; - padding-left:3px; - padding-right:3px; - color: #666666; - background-color: #FFFFFF; - border-right: 1px solid #EDEDED; - border-bottom: 1px solid #EDEDED; -} - -.bar { - background-image:url(../../images/board/bbs_cap02.gif); - background-repeat:no-repeat - -} - -/* ش id border ۴ϴ.*/ -td#lastcolumn { - border-right: 0px; -} - -table.view { - border-top: 2px solid #A8DA9E; -/* border-bottom: 1px solid #EDEDED;*/ -} - -table.view th { - border-bottom: 1px solid #EDEDED; - border-top: none; - width: 100px; -} - -table.view td input { - height: 15px; - width: 100%; -} - - -table.view input.readonly { background: #EFEFEF; } - -/* ư */ -/* Ϲιư */ -button.normal { - font-size: 9pt; - cursor:pointer; - background:#72C261; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} -/*ư 콺 ɶ Ŭ*/ -button.over { - font-size: 9pt; - cursor:pointer; - background:#53A941; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} - -button.small { - width: 35px; - height: 22px; -} - -button.tiny { - font-size: 8pt; - padding: 2px 0 0 1px; - width: 29px; - height: 20px; -} diff --git a/zioinfo/css/stat/table4.css b/zioinfo/css/stat/table4.css deleted file mode 100644 index e034dc08..00000000 --- a/zioinfo/css/stat/table4.css +++ /dev/null @@ -1,116 +0,0 @@ -@CHARSET "EUC-KR"; - -/* [jsp/sample/*.jsp] ̿Ǵ cssԴϴ. */ - - -/* ̳ ǥϴ ̺ */ -div.tableZone { -} - -table.list, table.view { - width: 100%; - table-layout: fixed; -} - -table.list th, -table.list td, -table.view th, -table.view td { - white-space: nowrap; - height: 18pt; -} - -/* ǥ */ -table.list th, -table.view th { - background-color: #EDFAFA; - font-family: Gulim, "", Verdana ; - font-size:9pt; - font-weight:normal; - color:#1F5299; - text-align: center; - border-top: 1px solid #B8CFE5; - border-bottom: 1px solid #B8CFE5; -} -/* ǥ ü */ -table.list td, -table.view td { - font-family: Gulim, "", Verdana ; - font-size: 9pt; - padding-left:3px; - padding-right:3px; - color: #666666; - background-color: #FFFFFF; - border-right: 1px solid #EDEDED; - border-bottom: 1px solid #EDEDED; -} - -.bar { - background-image:url(../../images/board/bbs_cap02.gif); - background-repeat:no-repeat - -} - -/* ش id border ۴ϴ.*/ -td#lastcolumn { - border-right: 0px; -} - -table.view { - border-top: 2px solid #A8DA9E; -/* border-bottom: 1px solid #EDEDED;*/ -} - -table.view th { - border-bottom: 1px solid #EDEDED; - border-top: none; - width: 100px; -} - -table.view td input { - height: 15px; - width: 100%; -} - - -table.view input.readonly { background: #EFEFEF; } - -/* ư */ -/* Ϲιư */ -button.normal { - font-size: 9pt; - cursor:pointer; - background:#72C261; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} -/*ư 콺 ɶ Ŭ*/ -button.over { - font-size: 9pt; - cursor:pointer; - background:#53A941; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} - -button.small { - width: 35px; - height: 22px; -} - -button.tiny { - font-size: 8pt; - padding: 2px 0 0 1px; - width: 29px; - height: 20px; -} diff --git a/zioinfo/css/stat/table5.css b/zioinfo/css/stat/table5.css deleted file mode 100644 index 96fdfb04..00000000 --- a/zioinfo/css/stat/table5.css +++ /dev/null @@ -1,116 +0,0 @@ -@CHARSET "EUC-KR"; - -/* [jsp/sample/*.jsp] ̿Ǵ cssԴϴ. */ - - -/* ̳ ǥϴ ̺ */ -div.tableZone { -} - -table.list, table.view { - width: 100%; - table-layout: fixed; -} - -table.list th, -table.list td, -table.view th, -table.view td { - white-space: nowrap; - height: 18pt; -} - -/* ǥ */ -table.list th, -table.view th { - background-color: #EFF9ED; - font-family: Gulim, "", Verdana ; - font-size:9pt; - font-weight:normal; - color:#1F5299; - text-align: center; - border-top: 1px solid #A8DA8E; - border-bottom: 1px solid #A8DA8E; -} -/* ǥ ü */ -table.list td, -table.view td { - font-family: Gulim, "", Verdana ; - font-size: 9pt; - padding-left:3px; - padding-right:3px; - color: #666666; - background-color: #FFFFFF; - border-right: 1px solid #EDEDED; - border-bottom: 1px solid #EDEDED; -} - -.bar { - background-image:url(../../images/board/bbs_cap01.gif); - background-repeat:no-repeat - -} - -/* ش id border ۴ϴ.*/ -td#lastcolumn { - border-right: 0px; -} - -table.view { - border-top: 2px solid #A8DA9E; -/* border-bottom: 1px solid #EDEDED;*/ -} - -table.view th { - border-bottom: 1px solid #EDEDED; - border-top: none; - width: 100px; -} - -table.view td input { - height: 15px; - width: 100%; -} - - -table.view input.readonly { background: #EFEFEF; } - -/* ư */ -/* Ϲιư */ -button.normal { - font-size: 9pt; - cursor:pointer; - background:#72C261; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} -/*ư 콺 ɶ Ŭ*/ -button.over { - font-size: 9pt; - cursor:pointer; - background:#53A941; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} - -button.small { - width: 35px; - height: 22px; -} - -button.tiny { - font-size: 8pt; - padding: 2px 0 0 1px; - width: 29px; - height: 20px; -} diff --git a/zioinfo/css/stat/table6.css b/zioinfo/css/stat/table6.css deleted file mode 100644 index 25933aa9..00000000 --- a/zioinfo/css/stat/table6.css +++ /dev/null @@ -1,116 +0,0 @@ -@CHARSET "EUC-KR"; - -/* [jsp/sample/*.jsp] ̿Ǵ cssԴϴ. */ - - -/* ̳ ǥϴ ̺ */ -div.tableZone { -} - -table.list, table.view { - width: 100%; - table-layout: fixed; -} - -table.list th, -table.list td, -table.view th, -table.view td { - white-space: nowrap; - height: 18pt; -} - -/* ǥ */ -table.list th, -table.view th { - background-color: #F8F1FA; - font-family: Gulim, "", Verdana ; - font-size:9pt; - font-weight:normal; - color:#9F62A6; - text-align: center; - border-top: 1px solid #D5B1E1; - border-bottom: 1px solid #D5B1E1; -} -/* ǥ ü */ -table.list td, -table.view td { - font-family: Gulim, "", Verdana ; - font-size: 9pt; - padding-left:3px; - padding-right:3px; - color: #666666; - background-color: #FFFFFF; - border-right: 1px solid #EDEDED; - border-bottom: 1px solid #EDEDED; -} - -.bar { - background-image:url(../../images/board/bbs_cap04.gif); - background-repeat:no-repeat - -} - -/* ش id border ۴ϴ.*/ -td#lastcolumn { - border-right: 0px; -} - -table.view { - border-top: 2px solid #A8DA9E; -/* border-bottom: 1px solid #EDEDED;*/ -} - -table.view th { - border-bottom: 1px solid #EDEDED; - border-top: none; - width: 100px; -} - -table.view td input { - height: 15px; - width: 100%; -} - - -table.view input.readonly { background: #EFEFEF; } - -/* ư */ -/* Ϲιư */ -button.normal { - font-size: 9pt; - cursor:pointer; - background:#72C261; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} -/*ư 콺 ɶ Ŭ*/ -button.over { - font-size: 9pt; - cursor:pointer; - background:#53A941; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} - -button.small { - width: 35px; - height: 22px; -} - -button.tiny { - font-size: 8pt; - padding: 2px 0 0 1px; - width: 29px; - height: 20px; -} diff --git a/zioinfo/css/user/table1.css b/zioinfo/css/user/table1.css deleted file mode 100644 index 5b922bb3..00000000 --- a/zioinfo/css/user/table1.css +++ /dev/null @@ -1,116 +0,0 @@ -@CHARSET "EUC-KR"; - -/* [jsp/sample/*.jsp] ̿Ǵ cssԴϴ. */ - - -/* ̳ ǥϴ ̺ */ -div.tableZone { -} - -table.list, table.view { - width: 100%; - table-layout: fixed; -} - -table.list th, -table.list td, -table.view th, -table.view td { - white-space: nowrap; - height: 18pt; -} - -/* ǥ */ -table.list th, -table.view th { - background-color: #EFF9ED; - font-family: Gulim, "", Verdana ; - font-size:9pt; - font-weight:normal; - color:#1F8F13; - text-align: center; - border-top: 1px solid #A8DA9E; - border-bottom: 1px solid #A8DA9E; -} -/* ǥ ü */ -table.list td, -table.view td { - font-family: Gulim, "", Verdana ; - font-size: 9pt; - padding-left:3px; - padding-right:3px; - color: #666666; - background-color: #FFFFFF; - border-right: 1px solid #EDEDED; - border-bottom: 1px solid #EDEDED; -} - -.bar { - background-image:url(../../images/board/bbs_cap01.gif); - background-repeat:no-repeat - -} - -/* ش id border ۴ϴ.*/ -td#lastcolumn { - border-right: 0px; -} - -table.view { - border-top: 2px solid #A8DA9E; -/* border-bottom: 1px solid #EDEDED;*/ -} - -table.view th { - border-bottom: 1px solid #EDEDED; - border-top: none; - width: 100px; -} - -table.view td input { - height: 15px; - width: 100%; -} - - -table.view input.readonly { background: #EFEFEF; } - -/* ư */ -/* Ϲιư */ -button.normal { - font-size: 9pt; - cursor:pointer; - background:#72C261; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} -/*ư 콺 ɶ Ŭ*/ -button.over { - font-size: 9pt; - cursor:pointer; - background:#53A941; - color:white; - width: 45px; - height: 17px; - text-align:center; - padding-top:3px; - border: 0px none; - margin: 0 3 0 0; -} - -button.small { - width: 35px; - height: 22px; -} - -button.tiny { - font-size: 8pt; - padding: 2px 0 0 1px; - width: 29px; - height: 20px; -} diff --git a/zioinfo/customer/Scripts/AC_RunActiveContent.js b/zioinfo/customer/Scripts/AC_RunActiveContent.js deleted file mode 100644 index 4ad64803..00000000 --- a/zioinfo/customer/Scripts/AC_RunActiveContent.js +++ /dev/null @@ -1,292 +0,0 @@ -//v1.7 -// Flash Player Version Detection -// Detect Client Browser type -// Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved. -var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; -var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; -var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; - -function ControlVersion() -{ - var version; - var axo; - var e; - - // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry - - try { - // version will be set for 7.X or greater players - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); - version = axo.GetVariable("$version"); - } catch (e) { - } - - if (!version) - { - try { - // version will be set for 6.X players only - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); - - // installed player is some revision of 6.0 - // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, - // so we have to be careful. - - // default to the first public version - version = "WIN 6,0,21,0"; - - // throws if AllowScripAccess does not exist (introduced in 6.0r47) - axo.AllowScriptAccess = "always"; - - // safe to call for 6.0r47 or greater - version = axo.GetVariable("$version"); - - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 4.X or 5.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = axo.GetVariable("$version"); - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 3.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = "WIN 3,0,18,0"; - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 2.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); - version = "WIN 2,0,0,11"; - } catch (e) { - version = -1; - } - } - - return version; -} - -// JavaScript helper required to detect Flash Player PlugIn version information -function GetSwfVer(){ - // NS/Opera version >= 3 check for Flash plugin in plugin array - var flashVer = -1; - - if (navigator.plugins != null && navigator.plugins.length > 0) { - if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { - var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; - var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; - var descArray = flashDescription.split(" "); - var tempArrayMajor = descArray[2].split("."); - var versionMajor = tempArrayMajor[0]; - var versionMinor = tempArrayMajor[1]; - var versionRevision = descArray[3]; - if (versionRevision == "") { - versionRevision = descArray[4]; - } - if (versionRevision[0] == "d") { - versionRevision = versionRevision.substring(1); - } else if (versionRevision[0] == "r") { - versionRevision = versionRevision.substring(1); - if (versionRevision.indexOf("d") > 0) { - versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); - } - } - var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; - } - } - // MSN/WebTV 2.6 supports Flash 4 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; - // WebTV 2.5 supports Flash 3 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; - // older WebTV supports Flash 2 - else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; - else if ( isIE && isWin && !isOpera ) { - flashVer = ControlVersion(); - } - return flashVer; -} - -// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available -function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) -{ - versionStr = GetSwfVer(); - if (versionStr == -1 ) { - return false; - } else if (versionStr != 0) { - if(isIE && isWin && !isOpera) { - // Given "WIN 2,0,0,11" - tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] - tempString = tempArray[1]; // "2,0,0,11" - versionArray = tempString.split(","); // ['2', '0', '0', '11'] - } else { - versionArray = versionStr.split("."); - } - var versionMajor = versionArray[0]; - var versionMinor = versionArray[1]; - var versionRevision = versionArray[2]; - - // is the major.revision >= requested major.revision AND the minor version >= requested minor - if (versionMajor > parseFloat(reqMajorVer)) { - return true; - } else if (versionMajor == parseFloat(reqMajorVer)) { - if (versionMinor > parseFloat(reqMinorVer)) - return true; - else if (versionMinor == parseFloat(reqMinorVer)) { - if (versionRevision >= parseFloat(reqRevision)) - return true; - } - } - return false; - } -} - -function AC_AddExtension(src, ext) -{ - if (src.indexOf('?') != -1) - return src.replace(/\?/, ext+'?'); - else - return src + ext; -} - -function AC_Generateobj(objAttrs, params, embedAttrs) -{ - var str = ''; - if (isIE && isWin && !isOpera) - { - str += ' '; - } - str += ''; - } - else - { - str += ' -<%@ include file="/jsp/include/commonVariable.jspf" %> -<% - String returnUrl = parameterMap.getValue("returnUrl", null); - returnUrl = returnUrl == null ? contextPath + "/index.do" : contextPath + "/menu/gotoMenu.do?menu=11&contentPage=" + returnUrl; -%> - - - - -<%@ include file="/jsp/include/header.jspf" %> -<%@ include file="/jsp/include/css.jspf" %> - - - - - - - - - - - -
  - - - - - - - - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - - - -
-
- - - - - - - - - - - - - - - -
̵ - - - -
йȣ - -
  - - - - -
-
-
- - - - -

 
 
- - - - -
  - - - - - - - - - -
- - - - - - - -
  ǥ ֱ ˻ - Ѵ ִ
- ϰ ǥ ȰϽ ֽϴ.
- - - - - - - -
 پ з ˻ Ȯϰ 踦 ˻Ͻ ֽϴ.
 
- - \ No newline at end of file diff --git a/zioinfo/customer/advertisement.htm b/zioinfo/customer/advertisement.htm deleted file mode 100644 index 1c643746..00000000 --- a/zioinfo/customer/advertisement.htm +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > > Ҹ
- - - - - - -
- - - - - - - -
- - - - - - - - - - -
- - - - - - -
    ޹  λ/ä  ġ  Ÿ
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   
    - - - - - - -
 @ 
亯 ̸Ϸ ðڽϱ?    ƴϿ
-
    -  - 
   
   
- - -
- - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/customer/catalog.htm b/zioinfo/customer/catalog.htm deleted file mode 100644 index 1c643746..00000000 --- a/zioinfo/customer/catalog.htm +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > > Ҹ
- - - - - - -
- - - - - - - -
- - - - - - - - - - -
- - - - - - -
    ޹  λ/ä  ġ  Ÿ
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   
    - - - - - - -
 @ 
亯 ̸Ϸ ðڽϱ?    ƴϿ
-
    -  - 
   
   
- - -
- - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/customer/customer.htm b/zioinfo/customer/customer.htm deleted file mode 100644 index 1c643746..00000000 --- a/zioinfo/customer/customer.htm +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > > Ҹ
- - - - - - -
- - - - - - - -
- - - - - - - - - - -
- - - - - - -
    ޹  λ/ä  ġ  Ÿ
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   
    - - - - - - -
 @ 
亯 ̸Ϸ ðڽϱ?    ƴϿ
-
    -  - 
   
   
- - -
- - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/customer/faq.htm b/zioinfo/customer/faq.htm deleted file mode 100644 index 1857829c..00000000 --- a/zioinfo/customer/faq.htm +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > > Ҹ
- - - - - - -
- - - - - - - -
- - - - - - - - - - -
- - - - - - -
    ޹  λ/ä  ġ  Ÿ
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   
    - - - - - - -
 @ 
亯 ̸Ϸ ðڽϱ?    ƴϿ
-
    -  - 
   
   
- - -
- - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/customer/image/cancle_btn.gif b/zioinfo/customer/image/cancle_btn.gif deleted file mode 100644 index e9538e12..00000000 Binary files a/zioinfo/customer/image/cancle_btn.gif and /dev/null differ diff --git a/zioinfo/customer/image/cancle_btn.jpg b/zioinfo/customer/image/cancle_btn.jpg deleted file mode 100644 index 1c3c4f7e..00000000 Binary files a/zioinfo/customer/image/cancle_btn.jpg and /dev/null differ diff --git a/zioinfo/customer/image/img01.gif b/zioinfo/customer/image/img01.gif deleted file mode 100644 index be98402a..00000000 Binary files a/zioinfo/customer/image/img01.gif and /dev/null differ diff --git a/zioinfo/customer/image/img01.jpg b/zioinfo/customer/image/img01.jpg deleted file mode 100644 index da872512..00000000 Binary files a/zioinfo/customer/image/img01.jpg and /dev/null differ diff --git a/zioinfo/customer/image/img02.gif b/zioinfo/customer/image/img02.gif deleted file mode 100644 index 6e24d0b9..00000000 Binary files a/zioinfo/customer/image/img02.gif and /dev/null differ diff --git a/zioinfo/customer/image/img02.jpg b/zioinfo/customer/image/img02.jpg deleted file mode 100644 index 73703bea..00000000 Binary files a/zioinfo/customer/image/img02.jpg and /dev/null differ diff --git a/zioinfo/customer/image/left_menu01.gif b/zioinfo/customer/image/left_menu01.gif deleted file mode 100644 index f8b2d113..00000000 Binary files a/zioinfo/customer/image/left_menu01.gif and /dev/null differ diff --git a/zioinfo/customer/image/left_menu01.jpg b/zioinfo/customer/image/left_menu01.jpg deleted file mode 100644 index 666c14c9..00000000 Binary files a/zioinfo/customer/image/left_menu01.jpg and /dev/null differ diff --git a/zioinfo/customer/image/left_menu02.gif b/zioinfo/customer/image/left_menu02.gif deleted file mode 100644 index 3de70986..00000000 Binary files a/zioinfo/customer/image/left_menu02.gif and /dev/null differ diff --git a/zioinfo/customer/image/left_menu02.jpg b/zioinfo/customer/image/left_menu02.jpg deleted file mode 100644 index f28f62b0..00000000 Binary files a/zioinfo/customer/image/left_menu02.jpg and /dev/null differ diff --git a/zioinfo/customer/image/left_menu03.gif b/zioinfo/customer/image/left_menu03.gif deleted file mode 100644 index 2518d548..00000000 Binary files a/zioinfo/customer/image/left_menu03.gif and /dev/null differ diff --git a/zioinfo/customer/image/left_menu03.jpg b/zioinfo/customer/image/left_menu03.jpg deleted file mode 100644 index 740df3b4..00000000 Binary files a/zioinfo/customer/image/left_menu03.jpg and /dev/null differ diff --git a/zioinfo/customer/image/left_menu04.gif b/zioinfo/customer/image/left_menu04.gif deleted file mode 100644 index 05ecd42b..00000000 Binary files a/zioinfo/customer/image/left_menu04.gif and /dev/null differ diff --git a/zioinfo/customer/image/left_menu04.jpg b/zioinfo/customer/image/left_menu04.jpg deleted file mode 100644 index e20333b6..00000000 Binary files a/zioinfo/customer/image/left_menu04.jpg and /dev/null differ diff --git a/zioinfo/customer/image/left_menu05.gif b/zioinfo/customer/image/left_menu05.gif deleted file mode 100644 index 141e8c70..00000000 Binary files a/zioinfo/customer/image/left_menu05.gif and /dev/null differ diff --git a/zioinfo/customer/image/left_menu05.jpg b/zioinfo/customer/image/left_menu05.jpg deleted file mode 100644 index 5fdcc499..00000000 Binary files a/zioinfo/customer/image/left_menu05.jpg and /dev/null differ diff --git a/zioinfo/customer/image/left_menu06.gif b/zioinfo/customer/image/left_menu06.gif deleted file mode 100644 index a892ef72..00000000 Binary files a/zioinfo/customer/image/left_menu06.gif and /dev/null differ diff --git a/zioinfo/customer/image/left_menu06.jpg b/zioinfo/customer/image/left_menu06.jpg deleted file mode 100644 index b3407dcd..00000000 Binary files a/zioinfo/customer/image/left_menu06.jpg and /dev/null differ diff --git a/zioinfo/customer/image/left_menu_title.gif b/zioinfo/customer/image/left_menu_title.gif deleted file mode 100644 index 84783410..00000000 Binary files a/zioinfo/customer/image/left_menu_title.gif and /dev/null differ diff --git a/zioinfo/customer/image/left_menu_title.jpg b/zioinfo/customer/image/left_menu_title.jpg deleted file mode 100644 index e5daaeb6..00000000 Binary files a/zioinfo/customer/image/left_menu_title.jpg and /dev/null differ diff --git a/zioinfo/customer/image/menu01.jpg b/zioinfo/customer/image/menu01.jpg deleted file mode 100644 index c5c59a52..00000000 Binary files a/zioinfo/customer/image/menu01.jpg and /dev/null differ diff --git a/zioinfo/customer/image/menu02.jpg b/zioinfo/customer/image/menu02.jpg deleted file mode 100644 index 8b0db8a6..00000000 Binary files a/zioinfo/customer/image/menu02.jpg and /dev/null differ diff --git a/zioinfo/customer/image/menu03.jpg b/zioinfo/customer/image/menu03.jpg deleted file mode 100644 index 17eac39b..00000000 Binary files a/zioinfo/customer/image/menu03.jpg and /dev/null differ diff --git a/zioinfo/customer/image/menu04.jpg b/zioinfo/customer/image/menu04.jpg deleted file mode 100644 index 5bf2d48f..00000000 Binary files a/zioinfo/customer/image/menu04.jpg and /dev/null differ diff --git a/zioinfo/customer/image/menu05.jpg b/zioinfo/customer/image/menu05.jpg deleted file mode 100644 index adcc6cc6..00000000 Binary files a/zioinfo/customer/image/menu05.jpg and /dev/null differ diff --git a/zioinfo/customer/image/ok_btn.gif b/zioinfo/customer/image/ok_btn.gif deleted file mode 100644 index 7e66d130..00000000 Binary files a/zioinfo/customer/image/ok_btn.gif and /dev/null differ diff --git a/zioinfo/customer/image/ok_btn.jpg b/zioinfo/customer/image/ok_btn.jpg deleted file mode 100644 index d911bffa..00000000 Binary files a/zioinfo/customer/image/ok_btn.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_02.jpg b/zioinfo/customer/image/sub03_02.jpg deleted file mode 100644 index 1da651a1..00000000 Binary files a/zioinfo/customer/image/sub03_02.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_03.jpg b/zioinfo/customer/image/sub03_03.jpg deleted file mode 100644 index 1a11c523..00000000 Binary files a/zioinfo/customer/image/sub03_03.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_09.jpg b/zioinfo/customer/image/sub03_09.jpg deleted file mode 100644 index b509daa8..00000000 Binary files a/zioinfo/customer/image/sub03_09.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_16.jpg b/zioinfo/customer/image/sub03_16.jpg deleted file mode 100644 index a0dfb418..00000000 Binary files a/zioinfo/customer/image/sub03_16.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_17.jpg b/zioinfo/customer/image/sub03_17.jpg deleted file mode 100644 index f94df31d..00000000 Binary files a/zioinfo/customer/image/sub03_17.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_18.jpg b/zioinfo/customer/image/sub03_18.jpg deleted file mode 100644 index 85d369a3..00000000 Binary files a/zioinfo/customer/image/sub03_18.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_20.jpg b/zioinfo/customer/image/sub03_20.jpg deleted file mode 100644 index 85d369a3..00000000 Binary files a/zioinfo/customer/image/sub03_20.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_22.jpg b/zioinfo/customer/image/sub03_22.jpg deleted file mode 100644 index 9777aac4..00000000 Binary files a/zioinfo/customer/image/sub03_22.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_23.jpg b/zioinfo/customer/image/sub03_23.jpg deleted file mode 100644 index a34a9428..00000000 Binary files a/zioinfo/customer/image/sub03_23.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_25.jpg b/zioinfo/customer/image/sub03_25.jpg deleted file mode 100644 index a37643ed..00000000 Binary files a/zioinfo/customer/image/sub03_25.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_27.jpg b/zioinfo/customer/image/sub03_27.jpg deleted file mode 100644 index bd0bc49a..00000000 Binary files a/zioinfo/customer/image/sub03_27.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_33.jpg b/zioinfo/customer/image/sub03_33.jpg deleted file mode 100644 index d9edda24..00000000 Binary files a/zioinfo/customer/image/sub03_33.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_35.jpg b/zioinfo/customer/image/sub03_35.jpg deleted file mode 100644 index 34490763..00000000 Binary files a/zioinfo/customer/image/sub03_35.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_36.jpg b/zioinfo/customer/image/sub03_36.jpg deleted file mode 100644 index 09762258..00000000 Binary files a/zioinfo/customer/image/sub03_36.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_37.jpg b/zioinfo/customer/image/sub03_37.jpg deleted file mode 100644 index de0a3520..00000000 Binary files a/zioinfo/customer/image/sub03_37.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_39.jpg b/zioinfo/customer/image/sub03_39.jpg deleted file mode 100644 index 559a5336..00000000 Binary files a/zioinfo/customer/image/sub03_39.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_40.jpg b/zioinfo/customer/image/sub03_40.jpg deleted file mode 100644 index 920c6113..00000000 Binary files a/zioinfo/customer/image/sub03_40.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_42.jpg b/zioinfo/customer/image/sub03_42.jpg deleted file mode 100644 index 1a65ca54..00000000 Binary files a/zioinfo/customer/image/sub03_42.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_43.jpg b/zioinfo/customer/image/sub03_43.jpg deleted file mode 100644 index 23e1ccc6..00000000 Binary files a/zioinfo/customer/image/sub03_43.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_44.jpg b/zioinfo/customer/image/sub03_44.jpg deleted file mode 100644 index 1c13a9a3..00000000 Binary files a/zioinfo/customer/image/sub03_44.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_45.jpg b/zioinfo/customer/image/sub03_45.jpg deleted file mode 100644 index e337e8a8..00000000 Binary files a/zioinfo/customer/image/sub03_45.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_47.jpg b/zioinfo/customer/image/sub03_47.jpg deleted file mode 100644 index 76a82c3f..00000000 Binary files a/zioinfo/customer/image/sub03_47.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_48.jpg b/zioinfo/customer/image/sub03_48.jpg deleted file mode 100644 index 577acd1a..00000000 Binary files a/zioinfo/customer/image/sub03_48.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_50.jpg b/zioinfo/customer/image/sub03_50.jpg deleted file mode 100644 index 983261f3..00000000 Binary files a/zioinfo/customer/image/sub03_50.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_52.jpg b/zioinfo/customer/image/sub03_52.jpg deleted file mode 100644 index 32c2b5ce..00000000 Binary files a/zioinfo/customer/image/sub03_52.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_54.jpg b/zioinfo/customer/image/sub03_54.jpg deleted file mode 100644 index 8f4521a4..00000000 Binary files a/zioinfo/customer/image/sub03_54.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_55.jpg b/zioinfo/customer/image/sub03_55.jpg deleted file mode 100644 index 4672cc12..00000000 Binary files a/zioinfo/customer/image/sub03_55.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_57.jpg b/zioinfo/customer/image/sub03_57.jpg deleted file mode 100644 index 4ebf7840..00000000 Binary files a/zioinfo/customer/image/sub03_57.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_58.jpg b/zioinfo/customer/image/sub03_58.jpg deleted file mode 100644 index 5ee62cba..00000000 Binary files a/zioinfo/customer/image/sub03_58.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_59.jpg b/zioinfo/customer/image/sub03_59.jpg deleted file mode 100644 index fdd70529..00000000 Binary files a/zioinfo/customer/image/sub03_59.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_61.jpg b/zioinfo/customer/image/sub03_61.jpg deleted file mode 100644 index 82d74c8f..00000000 Binary files a/zioinfo/customer/image/sub03_61.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_63.jpg b/zioinfo/customer/image/sub03_63.jpg deleted file mode 100644 index f2fee26c..00000000 Binary files a/zioinfo/customer/image/sub03_63.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_64.jpg b/zioinfo/customer/image/sub03_64.jpg deleted file mode 100644 index ea31ca59..00000000 Binary files a/zioinfo/customer/image/sub03_64.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub03_65.jpg b/zioinfo/customer/image/sub03_65.jpg deleted file mode 100644 index 3b8c3d40..00000000 Binary files a/zioinfo/customer/image/sub03_65.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub_img.jpg b/zioinfo/customer/image/sub_img.jpg deleted file mode 100644 index 02b7c090..00000000 Binary files a/zioinfo/customer/image/sub_img.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub_img_bg.gif b/zioinfo/customer/image/sub_img_bg.gif deleted file mode 100644 index f8697400..00000000 Binary files a/zioinfo/customer/image/sub_img_bg.gif and /dev/null differ diff --git a/zioinfo/customer/image/sub_menu.gif b/zioinfo/customer/image/sub_menu.gif deleted file mode 100644 index 370ca6eb..00000000 Binary files a/zioinfo/customer/image/sub_menu.gif and /dev/null differ diff --git a/zioinfo/customer/image/sub_menu01.gif b/zioinfo/customer/image/sub_menu01.gif deleted file mode 100644 index 071b7d3d..00000000 Binary files a/zioinfo/customer/image/sub_menu01.gif and /dev/null differ diff --git a/zioinfo/customer/image/sub_menu01.jpg b/zioinfo/customer/image/sub_menu01.jpg deleted file mode 100644 index d4f66625..00000000 Binary files a/zioinfo/customer/image/sub_menu01.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub_menu02.gif b/zioinfo/customer/image/sub_menu02.gif deleted file mode 100644 index a59e4e64..00000000 Binary files a/zioinfo/customer/image/sub_menu02.gif and /dev/null differ diff --git a/zioinfo/customer/image/sub_menu02.jpg b/zioinfo/customer/image/sub_menu02.jpg deleted file mode 100644 index e49cc185..00000000 Binary files a/zioinfo/customer/image/sub_menu02.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub_menu03.gif b/zioinfo/customer/image/sub_menu03.gif deleted file mode 100644 index 08ee8f03..00000000 Binary files a/zioinfo/customer/image/sub_menu03.gif and /dev/null differ diff --git a/zioinfo/customer/image/sub_menu03.jpg b/zioinfo/customer/image/sub_menu03.jpg deleted file mode 100644 index 65cc9a74..00000000 Binary files a/zioinfo/customer/image/sub_menu03.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub_menu04.gif b/zioinfo/customer/image/sub_menu04.gif deleted file mode 100644 index cd3ef2c2..00000000 Binary files a/zioinfo/customer/image/sub_menu04.gif and /dev/null differ diff --git a/zioinfo/customer/image/sub_menu04.jpg b/zioinfo/customer/image/sub_menu04.jpg deleted file mode 100644 index 52453836..00000000 Binary files a/zioinfo/customer/image/sub_menu04.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub_menu05.gif b/zioinfo/customer/image/sub_menu05.gif deleted file mode 100644 index ddb8427b..00000000 Binary files a/zioinfo/customer/image/sub_menu05.gif and /dev/null differ diff --git a/zioinfo/customer/image/sub_menu05.jpg b/zioinfo/customer/image/sub_menu05.jpg deleted file mode 100644 index b7538149..00000000 Binary files a/zioinfo/customer/image/sub_menu05.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub_menu06.gif b/zioinfo/customer/image/sub_menu06.gif deleted file mode 100644 index f2dc79bb..00000000 Binary files a/zioinfo/customer/image/sub_menu06.gif and /dev/null differ diff --git a/zioinfo/customer/image/sub_service_img.jpg b/zioinfo/customer/image/sub_service_img.jpg deleted file mode 100644 index faea257b..00000000 Binary files a/zioinfo/customer/image/sub_service_img.jpg and /dev/null differ diff --git a/zioinfo/customer/image/sub_title.jpg b/zioinfo/customer/image/sub_title.jpg deleted file mode 100644 index c26631aa..00000000 Binary files a/zioinfo/customer/image/sub_title.jpg and /dev/null differ diff --git a/zioinfo/customer/image/title.gif b/zioinfo/customer/image/title.gif deleted file mode 100644 index d7ef05b1..00000000 Binary files a/zioinfo/customer/image/title.gif and /dev/null differ diff --git a/zioinfo/customer/image/txt.gif b/zioinfo/customer/image/txt.gif deleted file mode 100644 index ae9eadf5..00000000 Binary files a/zioinfo/customer/image/txt.gif and /dev/null differ diff --git a/zioinfo/customer/image/txt.jpg b/zioinfo/customer/image/txt.jpg deleted file mode 100644 index 1d4ad841..00000000 Binary files a/zioinfo/customer/image/txt.jpg and /dev/null differ diff --git a/zioinfo/customer/image/txt_email.gif b/zioinfo/customer/image/txt_email.gif deleted file mode 100644 index 9fb89ddc..00000000 Binary files a/zioinfo/customer/image/txt_email.gif and /dev/null differ diff --git a/zioinfo/customer/image/txt_email.jpg b/zioinfo/customer/image/txt_email.jpg deleted file mode 100644 index 180af5df..00000000 Binary files a/zioinfo/customer/image/txt_email.jpg and /dev/null differ diff --git a/zioinfo/customer/image/txt_memo.gif b/zioinfo/customer/image/txt_memo.gif deleted file mode 100644 index d1b85cb6..00000000 Binary files a/zioinfo/customer/image/txt_memo.gif and /dev/null differ diff --git a/zioinfo/customer/image/txt_memo.jpg b/zioinfo/customer/image/txt_memo.jpg deleted file mode 100644 index 419d2520..00000000 Binary files a/zioinfo/customer/image/txt_memo.jpg and /dev/null differ diff --git a/zioinfo/customer/image/txt_name.gif b/zioinfo/customer/image/txt_name.gif deleted file mode 100644 index fa7ead75..00000000 Binary files a/zioinfo/customer/image/txt_name.gif and /dev/null differ diff --git a/zioinfo/customer/image/txt_name.jpg b/zioinfo/customer/image/txt_name.jpg deleted file mode 100644 index 9554c2c7..00000000 Binary files a/zioinfo/customer/image/txt_name.jpg and /dev/null differ diff --git a/zioinfo/customer/image/txt_tel.gif b/zioinfo/customer/image/txt_tel.gif deleted file mode 100644 index d0260b53..00000000 Binary files a/zioinfo/customer/image/txt_tel.gif and /dev/null differ diff --git a/zioinfo/customer/image/txt_tel.jpg b/zioinfo/customer/image/txt_tel.jpg deleted file mode 100644 index c70ff7e9..00000000 Binary files a/zioinfo/customer/image/txt_tel.jpg and /dev/null differ diff --git a/zioinfo/customer/image/txt_title.gif b/zioinfo/customer/image/txt_title.gif deleted file mode 100644 index 429604bf..00000000 Binary files a/zioinfo/customer/image/txt_title.gif and /dev/null differ diff --git a/zioinfo/customer/image/txt_title.jpg b/zioinfo/customer/image/txt_title.jpg deleted file mode 100644 index bf5a65a1..00000000 Binary files a/zioinfo/customer/image/txt_title.jpg and /dev/null differ diff --git a/zioinfo/customer/information.htm b/zioinfo/customer/information.htm deleted file mode 100644 index 1857829c..00000000 --- a/zioinfo/customer/information.htm +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > > Ҹ
- - - - - - -
- - - - - - - -
- - - - - - - - - - -
- - - - - - -
    ޹  λ/ä  ġ  Ÿ
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   
    - - - - - - -
 @ 
亯 ̸Ϸ ðڽϱ?    ƴϿ
-
    -  - 
   
   
- - -
- - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/customer/marketing.htm b/zioinfo/customer/marketing.htm deleted file mode 100644 index 1857829c..00000000 --- a/zioinfo/customer/marketing.htm +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > > Ҹ
- - - - - - -
- - - - - - - -
- - - - - - - - - - -
- - - - - - -
    ޹  λ/ä  ġ  Ÿ
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   
    - - - - - - -
 @ 
亯 ̸Ϸ ðڽϱ?    ƴϿ
-
    -  - 
   
   
- - -
- - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/customer/service.htm b/zioinfo/customer/service.htm deleted file mode 100644 index 1857829c..00000000 --- a/zioinfo/customer/service.htm +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - -
-
 
- - - - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
home@zioinfo.com
-
- -
- - - - - - - -
 HOME > > Ҹ
- - - - - - -
- - - - - - - -
- - - - - - - - - - -
- - - - - - -
    ޹  λ/ä  ġ  Ÿ
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   
    - - - - - - -
 @ 
亯 ̸Ϸ ðڽϱ?    ƴϿ
-
    -  - 
   
   
- - -
- - - -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
۱Ƿΰ۱
- - - - - -
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/image/banner01.gif b/zioinfo/image/banner01.gif deleted file mode 100644 index cf54bf7f..00000000 Binary files a/zioinfo/image/banner01.gif and /dev/null differ diff --git a/zioinfo/image/banner01.jpg b/zioinfo/image/banner01.jpg deleted file mode 100644 index 387561b5..00000000 Binary files a/zioinfo/image/banner01.jpg and /dev/null differ diff --git a/zioinfo/image/banner02.gif b/zioinfo/image/banner02.gif deleted file mode 100644 index 24d3c971..00000000 Binary files a/zioinfo/image/banner02.gif and /dev/null differ diff --git a/zioinfo/image/banner02.jpg b/zioinfo/image/banner02.jpg deleted file mode 100644 index 0794ff27..00000000 Binary files a/zioinfo/image/banner02.jpg and /dev/null differ diff --git a/zioinfo/image/btn01.gif b/zioinfo/image/btn01.gif deleted file mode 100644 index 80f48734..00000000 Binary files a/zioinfo/image/btn01.gif and /dev/null differ diff --git a/zioinfo/image/btn01.jpg b/zioinfo/image/btn01.jpg deleted file mode 100644 index f52d121d..00000000 Binary files a/zioinfo/image/btn01.jpg and /dev/null differ diff --git a/zioinfo/image/btn02.gif b/zioinfo/image/btn02.gif deleted file mode 100644 index 718eeb6c..00000000 Binary files a/zioinfo/image/btn02.gif and /dev/null differ diff --git a/zioinfo/image/btn02.jpg b/zioinfo/image/btn02.jpg deleted file mode 100644 index 542b1671..00000000 Binary files a/zioinfo/image/btn02.jpg and /dev/null differ diff --git a/zioinfo/image/btn03.gif b/zioinfo/image/btn03.gif deleted file mode 100644 index 67edb0de..00000000 Binary files a/zioinfo/image/btn03.gif and /dev/null differ diff --git a/zioinfo/image/btn03.jpg b/zioinfo/image/btn03.jpg deleted file mode 100644 index 17e14725..00000000 Binary files a/zioinfo/image/btn03.jpg and /dev/null differ diff --git a/zioinfo/image/businessman_img.gif b/zioinfo/image/businessman_img.gif deleted file mode 100644 index 36db4593..00000000 Binary files a/zioinfo/image/businessman_img.gif and /dev/null differ diff --git a/zioinfo/image/businessman_img.jpg b/zioinfo/image/businessman_img.jpg deleted file mode 100644 index ee46b62b..00000000 Binary files a/zioinfo/image/businessman_img.jpg and /dev/null differ diff --git a/zioinfo/image/copyright.gif b/zioinfo/image/copyright.gif deleted file mode 100644 index 9d8ea56c..00000000 Binary files a/zioinfo/image/copyright.gif and /dev/null differ diff --git a/zioinfo/image/copyright.jpg b/zioinfo/image/copyright.jpg deleted file mode 100644 index 22f39082..00000000 Binary files a/zioinfo/image/copyright.jpg and /dev/null differ diff --git a/zioinfo/image/copyright_line.gif b/zioinfo/image/copyright_line.gif deleted file mode 100644 index b89f0f6d..00000000 Binary files a/zioinfo/image/copyright_line.gif and /dev/null differ diff --git a/zioinfo/image/dot01.gif b/zioinfo/image/dot01.gif deleted file mode 100644 index 958184f0..00000000 Binary files a/zioinfo/image/dot01.gif and /dev/null differ diff --git a/zioinfo/image/dot02.gif b/zioinfo/image/dot02.gif deleted file mode 100644 index 04d0b93e..00000000 Binary files a/zioinfo/image/dot02.gif and /dev/null differ diff --git a/zioinfo/image/logo_bottom.png b/zioinfo/image/logo_bottom.png deleted file mode 100644 index 3172df20..00000000 Binary files a/zioinfo/image/logo_bottom.png and /dev/null differ diff --git a/zioinfo/image/main_46.jpg b/zioinfo/image/main_46.jpg deleted file mode 100644 index 4ef801f7..00000000 Binary files a/zioinfo/image/main_46.jpg and /dev/null differ diff --git a/zioinfo/image/main_img.jpg b/zioinfo/image/main_img.jpg deleted file mode 100644 index 8dd6df5e..00000000 Binary files a/zioinfo/image/main_img.jpg and /dev/null differ diff --git a/zioinfo/image/main_img02.jpg b/zioinfo/image/main_img02.jpg deleted file mode 100644 index 6a68d8cf..00000000 Binary files a/zioinfo/image/main_img02.jpg and /dev/null differ diff --git a/zioinfo/image/main_img_bg.gif b/zioinfo/image/main_img_bg.gif deleted file mode 100644 index 9e894b3e..00000000 Binary files a/zioinfo/image/main_img_bg.gif and /dev/null differ diff --git a/zioinfo/image/menu01.gif b/zioinfo/image/menu01.gif deleted file mode 100644 index 0d450cfd..00000000 Binary files a/zioinfo/image/menu01.gif and /dev/null differ diff --git a/zioinfo/image/menu02.gif b/zioinfo/image/menu02.gif deleted file mode 100644 index 5ef810be..00000000 Binary files a/zioinfo/image/menu02.gif and /dev/null differ diff --git a/zioinfo/image/menu03.gif b/zioinfo/image/menu03.gif deleted file mode 100644 index 47eada0b..00000000 Binary files a/zioinfo/image/menu03.gif and /dev/null differ diff --git a/zioinfo/image/menu04.gif b/zioinfo/image/menu04.gif deleted file mode 100644 index b5ee4726..00000000 Binary files a/zioinfo/image/menu04.gif and /dev/null differ diff --git a/zioinfo/image/menu05.gif b/zioinfo/image/menu05.gif deleted file mode 100644 index 07ed574a..00000000 Binary files a/zioinfo/image/menu05.gif and /dev/null differ diff --git a/zioinfo/image/menu_bg.gif b/zioinfo/image/menu_bg.gif deleted file mode 100644 index 617d412c..00000000 Binary files a/zioinfo/image/menu_bg.gif and /dev/null differ diff --git a/zioinfo/image/more_btn.gif b/zioinfo/image/more_btn.gif deleted file mode 100644 index a5c85c8a..00000000 Binary files a/zioinfo/image/more_btn.gif and /dev/null differ diff --git a/zioinfo/image/new_icon.gif b/zioinfo/image/new_icon.gif deleted file mode 100644 index e4ab2a9d..00000000 Binary files a/zioinfo/image/new_icon.gif and /dev/null differ diff --git a/zioinfo/image/news_bg.gif b/zioinfo/image/news_bg.gif deleted file mode 100644 index 7175c07d..00000000 Binary files a/zioinfo/image/news_bg.gif and /dev/null differ diff --git a/zioinfo/image/news_title.gif b/zioinfo/image/news_title.gif deleted file mode 100644 index a325d0e1..00000000 Binary files a/zioinfo/image/news_title.gif and /dev/null differ diff --git a/zioinfo/image/news_title.jpg b/zioinfo/image/news_title.jpg deleted file mode 100644 index 0e7a91bb..00000000 Binary files a/zioinfo/image/news_title.jpg and /dev/null differ diff --git a/zioinfo/image/service_btn01.gif b/zioinfo/image/service_btn01.gif deleted file mode 100644 index 584a749f..00000000 Binary files a/zioinfo/image/service_btn01.gif and /dev/null differ diff --git a/zioinfo/image/service_btn01.jpg b/zioinfo/image/service_btn01.jpg deleted file mode 100644 index 8b8af374..00000000 Binary files a/zioinfo/image/service_btn01.jpg and /dev/null differ diff --git a/zioinfo/image/service_btn02.gif b/zioinfo/image/service_btn02.gif deleted file mode 100644 index a237d104..00000000 Binary files a/zioinfo/image/service_btn02.gif and /dev/null differ diff --git a/zioinfo/image/service_btn02.jpg b/zioinfo/image/service_btn02.jpg deleted file mode 100644 index 502dbfe6..00000000 Binary files a/zioinfo/image/service_btn02.jpg and /dev/null differ diff --git a/zioinfo/image/service_img.gif b/zioinfo/image/service_img.gif deleted file mode 100644 index 02f496f4..00000000 Binary files a/zioinfo/image/service_img.gif and /dev/null differ diff --git a/zioinfo/image/service_num.jpg b/zioinfo/image/service_num.jpg deleted file mode 100644 index 423c39cc..00000000 Binary files a/zioinfo/image/service_num.jpg and /dev/null differ diff --git a/zioinfo/image/service_title.gif b/zioinfo/image/service_title.gif deleted file mode 100644 index 8dd6f791..00000000 Binary files a/zioinfo/image/service_title.gif and /dev/null differ diff --git a/zioinfo/image/service_title.jpg b/zioinfo/image/service_title.jpg deleted file mode 100644 index 03f214dd..00000000 Binary files a/zioinfo/image/service_title.jpg and /dev/null differ diff --git a/zioinfo/image/service_txt.jpg b/zioinfo/image/service_txt.jpg deleted file mode 100644 index 1316409f..00000000 Binary files a/zioinfo/image/service_txt.jpg and /dev/null differ diff --git a/zioinfo/image/service_txt01.gif b/zioinfo/image/service_txt01.gif deleted file mode 100644 index 936fa9b1..00000000 Binary files a/zioinfo/image/service_txt01.gif and /dev/null differ diff --git a/zioinfo/image/service_txt01.jpg b/zioinfo/image/service_txt01.jpg deleted file mode 100644 index 7ca49de7..00000000 Binary files a/zioinfo/image/service_txt01.jpg and /dev/null differ diff --git a/zioinfo/image/solution_img01.jpg b/zioinfo/image/solution_img01.jpg deleted file mode 100644 index aff8b991..00000000 Binary files a/zioinfo/image/solution_img01.jpg and /dev/null differ diff --git a/zioinfo/image/solution_img02.jpg b/zioinfo/image/solution_img02.jpg deleted file mode 100644 index 9d360332..00000000 Binary files a/zioinfo/image/solution_img02.jpg and /dev/null differ diff --git a/zioinfo/image/solution_left_btn.gif b/zioinfo/image/solution_left_btn.gif deleted file mode 100644 index 2fff452e..00000000 Binary files a/zioinfo/image/solution_left_btn.gif and /dev/null differ diff --git a/zioinfo/image/solution_right_btn.gif b/zioinfo/image/solution_right_btn.gif deleted file mode 100644 index 1c87f2bf..00000000 Binary files a/zioinfo/image/solution_right_btn.gif and /dev/null differ diff --git a/zioinfo/image/solution_title.jpg b/zioinfo/image/solution_title.jpg deleted file mode 100644 index 4d3b7a7e..00000000 Binary files a/zioinfo/image/solution_title.jpg and /dev/null differ diff --git a/zioinfo/image/sub_service_img.gif b/zioinfo/image/sub_service_img.gif deleted file mode 100644 index 6681edb1..00000000 Binary files a/zioinfo/image/sub_service_img.gif and /dev/null differ diff --git a/zioinfo/image/sub_service_img.jpg b/zioinfo/image/sub_service_img.jpg deleted file mode 100644 index ef3afca0..00000000 Binary files a/zioinfo/image/sub_service_img.jpg and /dev/null differ diff --git a/zioinfo/index.htm b/zioinfo/index.htm deleted file mode 100644 index 54475fd4..00000000 --- a/zioinfo/index.htm +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - - - - - - - - - - - -
-
 
- - - - - - -
- - - - - - - - - - - -
- - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ƻ Ȩ Ӱ .. 2006/00/00
DC äǴ..2006/00/00
KF , Ȱ ..2006/00/00
ȣ TSD, ǰ !!2006/00/00
ASA Ȩ, ѱǥ Ȩ2006/00/00
- -
- - - - -
- - - -
- -
- -
- - - - -
- -
- - - - - - -
- - - - - - - - - - - -
- - - - - -
-
- - - -
- - - - - - - - - -
  
asaweb@asaweb.com
-
- -
- - - - - - -
- -
- - - - - - - - -
- -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
-
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/index1.htm b/zioinfo/index1.htm deleted file mode 100644 index 9fe6c1df..00000000 --- a/zioinfo/index1.htm +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
 
- - - - - - - - -
  - - - - -
-
 
- - - - - - -
- - - - - - - - - - - -
- - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ȩ Ӱ .. 2008/07/02
DC äǴ..2008/07/02
KF , Ȱ ..2008/07/02
ȣ TSD, ǰ !!2008/07/02
ASA Ȩ, ѱǥ Ȩ2008/07/02
- -
- - - - -
-
- - - -
- - -
- -
- - - - -
-
- -
- - - - - - -
- - - - - - - - - - - -
- - - - - -
- -
- - - -
- - - - - - - - - - - - -
  
home@zioinfo.com
-
- -
- - - - - - - -
- -
- - - - - - - - - - -
- -
- - - - - - - -
- - - - - - - - - - - -
- - - - - - -
-
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/index2.htm b/zioinfo/index2.htm deleted file mode 100644 index 0216cffa..00000000 --- a/zioinfo/index2.htm +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - -
 
- - - - - - - - - - - - - - - - - -
  - - - - - - - - - - - - - -
-
 
- - - - - - -
- - - - - - - - - - - -
- - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ƻ Ȩ Ӱ .. 2006/00/00
DC äǴ..2006/00/00
KF , Ȱ ..2006/00/00
ȣ TSD, ǰ !!2006/00/00
ASA Ȩ, ѱǥ Ȩ2006/00/00
- -
- - - - -
- - - -
- -
- -
- - - - -
- -
- - - - - - -
- - - - - - - - - - - -
- - - - - -
-
- - - -
- - - - - - - - - -
  
asaweb@asaweb.com
-
- -
- - - - - - -
- -
- - - - - - - - -
- -
- - - - - - -
- - - - - - - - - - -
- - - - - - -
-
 
- - - - - - - - - \ No newline at end of file diff --git a/zioinfo/js/AC_RunActiveContent.js b/zioinfo/js/AC_RunActiveContent.js deleted file mode 100644 index 4ad64803..00000000 --- a/zioinfo/js/AC_RunActiveContent.js +++ /dev/null @@ -1,292 +0,0 @@ -//v1.7 -// Flash Player Version Detection -// Detect Client Browser type -// Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved. -var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; -var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; -var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; - -function ControlVersion() -{ - var version; - var axo; - var e; - - // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry - - try { - // version will be set for 7.X or greater players - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); - version = axo.GetVariable("$version"); - } catch (e) { - } - - if (!version) - { - try { - // version will be set for 6.X players only - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); - - // installed player is some revision of 6.0 - // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, - // so we have to be careful. - - // default to the first public version - version = "WIN 6,0,21,0"; - - // throws if AllowScripAccess does not exist (introduced in 6.0r47) - axo.AllowScriptAccess = "always"; - - // safe to call for 6.0r47 or greater - version = axo.GetVariable("$version"); - - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 4.X or 5.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = axo.GetVariable("$version"); - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 3.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = "WIN 3,0,18,0"; - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 2.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); - version = "WIN 2,0,0,11"; - } catch (e) { - version = -1; - } - } - - return version; -} - -// JavaScript helper required to detect Flash Player PlugIn version information -function GetSwfVer(){ - // NS/Opera version >= 3 check for Flash plugin in plugin array - var flashVer = -1; - - if (navigator.plugins != null && navigator.plugins.length > 0) { - if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { - var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; - var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; - var descArray = flashDescription.split(" "); - var tempArrayMajor = descArray[2].split("."); - var versionMajor = tempArrayMajor[0]; - var versionMinor = tempArrayMajor[1]; - var versionRevision = descArray[3]; - if (versionRevision == "") { - versionRevision = descArray[4]; - } - if (versionRevision[0] == "d") { - versionRevision = versionRevision.substring(1); - } else if (versionRevision[0] == "r") { - versionRevision = versionRevision.substring(1); - if (versionRevision.indexOf("d") > 0) { - versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); - } - } - var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; - } - } - // MSN/WebTV 2.6 supports Flash 4 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; - // WebTV 2.5 supports Flash 3 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; - // older WebTV supports Flash 2 - else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; - else if ( isIE && isWin && !isOpera ) { - flashVer = ControlVersion(); - } - return flashVer; -} - -// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available -function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) -{ - versionStr = GetSwfVer(); - if (versionStr == -1 ) { - return false; - } else if (versionStr != 0) { - if(isIE && isWin && !isOpera) { - // Given "WIN 2,0,0,11" - tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] - tempString = tempArray[1]; // "2,0,0,11" - versionArray = tempString.split(","); // ['2', '0', '0', '11'] - } else { - versionArray = versionStr.split("."); - } - var versionMajor = versionArray[0]; - var versionMinor = versionArray[1]; - var versionRevision = versionArray[2]; - - // is the major.revision >= requested major.revision AND the minor version >= requested minor - if (versionMajor > parseFloat(reqMajorVer)) { - return true; - } else if (versionMajor == parseFloat(reqMajorVer)) { - if (versionMinor > parseFloat(reqMinorVer)) - return true; - else if (versionMinor == parseFloat(reqMinorVer)) { - if (versionRevision >= parseFloat(reqRevision)) - return true; - } - } - return false; - } -} - -function AC_AddExtension(src, ext) -{ - if (src.indexOf('?') != -1) - return src.replace(/\?/, ext+'?'); - else - return src + ext; -} - -function AC_Generateobj(objAttrs, params, embedAttrs) -{ - var str = ''; - if (isIE && isWin && !isOpera) - { - str += ' '; - } - str += ''; - } - else - { - str += ' 550){ - winH = 550; - } - window.resizeTo(winW,winH+30); - -} - -function resizepopup2(wid) { - var winW = wid, winH = 200; - winW = wid; - winH = document.body.scrollHeight; - - if(winH > 550){ - winH = 550; - } - window.resizeTo(winW,winH+40); - -} - diff --git a/zioinfo/js/TreeMenu.js b/zioinfo/js/TreeMenu.js deleted file mode 100644 index f713d873..00000000 --- a/zioinfo/js/TreeMenu.js +++ /dev/null @@ -1,374 +0,0 @@ -function wsTreeCtrl() -{ - // Methods - this.initializeDocument = initializeDocument; - this.InsItem = InsItem; - this.GenerateCode = GenerateCode; - this.ToggleTree = ToggleTree; - this.ResetItem = ResetItem; - this.ExpandAllTree = ExpandAllTree; - this.RecudeAllTree = RecudeAllTree; - - // constant - var nCount = 0; - var LastRootItem = 0; - var ImgDir = "../images/Analysis/"; - var ItemImg = "../images/Analysis/html.gif"; - - // variable - var Doc; - var browserVersion; - var id = ""; - var Item = new Array(); - - - function initializeDocument() - { - if (document.all) { //IE4 - Doc = document.all; - browserVersion = 1; - - }else if (document.layers) { //NS4 - Doc = document.layers; - browserVersion = 2; - - }else if(document.getElementById) { //NS6 - Doc = document; - browserVersion = 3; - - }else { //other - Doc = document.all; - browserVersion = 0; - } - } - - function InsItem(parentItem, description, hreference, target) - { - var iDepth = 0; - var iLength = Item.length; - - if(parentItem == null) { - parentItem = iLength; - } - - if(Item[parentItem] != null) { - iDepth = Item[parentItem][4]; - iDepth++; - } - - Item[iLength] = new Array(); - Item[iLength][0] = parentItem; - Item[iLength][1] = description; - Item[iLength][2] = hreference; - Item[iLength][3] = target; - Item[iLength][4] = iDepth; - Item[iLength][5] = true; - - nCount++; - - return iLength; - } - - function GenerateCode() - { - var NextItemDepth = 0; - var CurItemDepth = 0; - - DocWrite(""); - - for(var i=0; i"); - } - DocWrite("
"); - - DocWrite("
"); - DocWrite(GetSpace(i, Item[i][4], false)); - DocWrite(""); - - DocWrite(""); - - var TempNodeImg; - if(GetItemCount(i, Item[i][4]) == 1) { - if(Item.length == 1) { TempNodeImg = "r.gif"; } - else { TempNodeImg = "L.gif"; } - - } else { - if(i == 0) { TempNodeImg = "f.gif"; } - else { TempNodeImg = "T.gif"; } - } - - - DocWrite(""); - DocWrite(""); - - DocWrite(""); - DocWrite(""); - DocWrite(""); - DocWrite(" "); - - if(Item[i][2] != "" && Item[i][2] != null) { - DocWrite(""); - } - - DocWrite(Item[i][1]); - - if(Item[i][2] != "" && Item[i][2] != null) { - DocWrite(""); - } - - DocWrite("
"); - DocWrite("
"); - - LastRootItem = GetRootItem(nCount-1); - } - - function GetSpace(CurItem, Depth, bBlank) - { - var Space = ""; - - for(var i=0; i"; - }else { - Space += ""; - } - - }else { - Space += ""; - } - } - - //alert("Space===["+Space+"]"); - return Space; - } - - function bHaveSameDepthChildItem(CurItem, Depth) - { - if(CurItem < 0 || CurItem > Item.length) { return false; } - - var PItem = Item[CurItem][0]; - var RootItem = GetRootItemEx(PItem, Depth); - - if(GetItemCount(RootItem, Depth) >= 2) { - //alert("true"); - return true; - }else { - return false; - } - } - - function GetChildItems(iNode) - { - var ChildItems = ""; - var CurDepth = Item[iNode][4]; - - for(var i=iNode+1; i= Item[i][4]) { return ChildItems; } - - if(Item[i][4] > Item[iNode][4]) { - ChildItems += i + ";" - } - } - - return ChildItems; - } - - function ToggleTree(CurNode, NodeItem) - { - if(NodeItem == "") { return; } - - var NodeStatus; - var arr = new Array(); - - arr = NodeItem.split(";"); - - if(Item[CurNode][5] == true) { - ToggleDisplayLayer(arr, CurNode, "none"); - Item[CurNode][5] = false; - }else { - ToggleDisplayLayer(arr, CurNode, ""); - Item[CurNode][5] = true; - ResetItem(CurNode); - } - } - - function ToggleDisplayLayer(ItemArray, CurNode, Display) - { - var NodeImg; - var ItemImg; - var bShow; - - if(Display == "none") { bShow = false; } - else{ bShow = true; } - - if(!bShow) { - ItemImg = ImgDir + "folder.gif"; - - if(GetItemCount(CurNode,Item[CurNode][4]) == 1) { - if(GetItemCount(GetRootItemEx(CurNode, 0),0) == 1 && CurNode == 0) { - NodeImg = ImgDir + "Rplus.gif"; - }else { - NodeImg = ImgDir + "Lplus.gif"; - } - - }else { - if(CurNode == 0) { - NodeImg = ImgDir + "fplus.gif"; - }else { - NodeImg = ImgDir + "Tplus.gif"; - } - } - - } - else { - ItemImg = ImgDir + "folderopen.gif"; - - if(GetItemCount(CurNode,Item[CurNode][4]) == 1) { - if(GetItemCount(GetRootItemEx(CurNode, 0),0) == 1 && CurNode == 0) { - NodeImg = ImgDir + "Rminus.gif"; - }else { - NodeImg = ImgDir + "Lminus.gif"; - } - - }else { - if(CurNode == 0) { - NodeImg = ImgDir + "fminus.gif"; - }else { - NodeImg = ImgDir + "Tminus.gif"; - } - } - } - - for(var i=0; i=0; i--) { - Item[i][5] = false; - ToggleTree(i, GetChildItems(i)); - } - } - - function RecudeAllTree() - { - for(var i=Item.length-1; i>=0; i--) { - Item[i][5] = true; - ToggleTree(i, GetChildItems(i)); - } - } - - function GetRootItem(ChildItem) - { - if(Item[ChildItem][4] == 0) { - return ChildItem; - }else { - return GetRootItem(Item[ChildItem][0]); - } - } - - function GetRootItemEx(ChildItem, Depth) - { - if(Item[ChildItem][4] == Depth) { - return ChildItem; - }else { - return GetRootItemEx(Item[ChildItem][0], Depth); - } - } - - function GetItemCount(CurItem, Depth) - { - var nRet = 0; - for(var i=CurItem; i"); \ No newline at end of file diff --git a/zioinfo/js/ajax.js b/zioinfo/js/ajax.js deleted file mode 100644 index 2b7c6e03..00000000 --- a/zioinfo/js/ajax.js +++ /dev/null @@ -1,184 +0,0 @@ -/*------------------------------------------------------------------------------ - * 1. ϸ: ajax.js - * 2. : AJAX ̿ ó õ Լ Ѵ. - * 3. : - * 4. ۼ: - * 5. ۼ: 2006.12.15. - -----------------------------------------------------------------------------*/ - - - -/** - * XMLHttpRequest ó ûѴ. - * ó sync. ϰ Ͼ Ѵ. - */ -function send(url) { - var res = null; - - /* XMLHttpRequest ´. */ - var xmlHttp = getXMLHttpRequest(); - - if ( xmlHttp != null ) { - xmlHttp.open("GET", url, false); // ȣ. - xmlHttp.send(null); - - res = eval("(" + xmlHttp.responseText + ")"); - } - - /* XMLHttpRequest ش. */ - returnXMLHttpRequest(xmlHttp); - - return res; -} - - -/** - * XMLHttpRequest ̿Ͽ POST ó ûѴ. - * ó sync. ϰ Ͼ. - */ -function sendForm(form) { - var res = null; - - var url = form.action; - var xmlHttp = getXMLHttpRequest(); - - if ( xmlHttp != null ) { - xmlHttp.open("POST", url, false); // ȣ. - - /* POST Content-Type Ѵ. */ - var contentType = "application/x-www-form-urlencoded; charset=UTF-8"; - xmlHttp.setRequestHeader("Content-Type", contentType); - - /* POST Ÿ Ѵ. */ - var postData = makePostData(form); - - xmlHttp.send(postData); - - res = eval("(" + xmlHttp.responseText + ")"); - } - - /* XMLHttpRequest ش. */ - returnXMLHttpRequest(xmlHttp); - - return res; -} - - -/** - * ־ Form ִ POST Ǿ - * ڷ ش. - */ -function makePostData(form) { - var data = ""; - - var length = form.elements.length; - for ( var i = 0; i < length; i++ ) { - if ( i > 0 ) data += "&"; - - var elem = form.elements[i]; - - /* Disabled ׸ ʴ´. */ - if ( elem.disabled ) continue; - - /* ڷ° radio checkbox check ׸ . - value ׸ ǵǾ true . */ - if ( ( elem.type == "radio" || elem.type == "checkbox" ) - && elem.checked ) { - data += elem.name + "=" + ( isEmpty(elem.value) ? "true" : encodeURIComponent(elem.value) ); - } - else { - /* type text select-single . select-multi ϴ Ѵ. */ - data += elem.name + "=" + encodeURIComponent(elem.value); - } - } - - return data; -} - - -/** - * XMLHttpRequest ü ش. - * ̹ Ǿ ̸ ְ - * ƴ ش. - */ -var httpReqStack = new Array(); - -function getXMLHttpRequest() { - var httpReq = null; - - if ( httpReqStack.length > 0 ) { - httpReq = httpReqStack.pop(); - } - else { - httpReq = newXMLHttpRequest(); - } - - return httpReq; -} - - -/** - * ̹ XMLHttpRequest ޴´. - */ -function returnXMLHttpRequest(httpReq) { - httpReqStack.push(httpReq); -} - - -/** - * ° XMLHttpRequest ü Ͽ - * ش. - */ -function newXMLHttpRequest() { - var reqHttp; - - if ( window.ActiveXObject ) { // IE - try { - reqHttp = new ActiveXObject("Msxml2.XMLHTTP"); - } - catch (e) { - try { - reqHttp = new ActiveXObject("Microsoft.XMLHTTP"); - } - catch (e1) { - reqHttp = null; - } - } - } - else if ( window.XMLHttpRequest ) { // IE ̿ - try { - reqHttp = new XMLHttpRequest(); - } - catch (e) { - } - } - - if ( reqHttp == null ) { - alert("XMLHttpRequest ü ϴµ Ͽϴ."); - } - - return reqHttp; -} - - -function deleteAllRow(obj) { - var childCount = obj.childNodes.length; - - for ( var i = (childCount - 1); i >= 0; i-- ) { - obj.deleteRow(i); - } -} - -function makeTableRow(dataArray) { - var rowObj = document.createElement("tr"); - - for ( var i = 0; i < dataArray.length; i++ ) { - var dataObj = document.createElement("td"); - - dataObj.innerHTML = dataArray[i]; - - rowObj.appendChild(dataObj); - } - - return rowObj; -} \ No newline at end of file diff --git a/zioinfo/js/biz.js b/zioinfo/js/biz.js deleted file mode 100644 index 5a7d2ff9..00000000 --- a/zioinfo/js/biz.js +++ /dev/null @@ -1,95 +0,0 @@ -/*------------------------------------------------------------------------------ - * 1. ϸ: biz.js - * 2. : ڸ ⺻ڷ ڷ óϴ - * Լ Ѵ. - * 3. : string.js - * 4. ۼ: - * 5. ۼ: 2006.10.16. - -----------------------------------------------------------------------------*/ - - - -/** - * ȭȣ ȭѴ. - */ -function formatTelNo(phoneNo) { - if ( isEmpty(phoneNo) ) return ""; - - var hasLocalNo = ( phoneNo.length >= 9 && phoneNo.length <= 11 ); - - var formattedNo = ""; // ȭ ȣ. - - /* ȣ ó. */ - if ( hasLocalNo ) { - /* ȣ . */ - - /* ȣ 02ΰ? */ - if ( phoneNo.indexOf("02") == 0 ) { - formattedNo = "02-" - + ( phoneNo.length == 9 - ? phoneNo.substr(2, 3) : phoneNo.substr(2, 4) ) + "-" - + phoneNo.substr(phoneNo.length - 4); - } - else { - formattedNo = phoneNo.substr(0, 3) + "-" - + ( phoneNo.length == 10 - ? phoneNo.substr(3, 3) : phoneNo.substr(3, 4) ) + "-" - + phoneNo.substr(phoneNo.length - 4); - } - } - else { - /* ȣ . */ - formattedNo = ( phoneNo.length == 7 - ? phoneNo.substr(0, 3) : phoneNo.substr(0, 4) ) + "-" - + phoneNo.substr(phoneNo.length - 4); - } - - return formattedNo; -} - - -/** - * ־ Object ȭȣ ϰ ȭѴ. - */ -function formatTelNoObj(obj) { - obj.value = formatTelNo(obj.value); -} - - - -/** - * ڵ ȣ ȭѴ. - * Ѿ ȣ ȿ ص ȣ Ѵ. - */ -function formatHpNo(phoneNo) { - /* 쵵 ȿ ̴. */ - if ( isEmpty(phoneNo) ) return ""; - - /* ׷ Ȥ 𸣴 ̸ Ȯ . */ - var hpNo = removeChar(phoneNo, "-"); - - if ( hpNo.length != 10 && hpNo.length != 11 ) { - showSysMessage("hpNo [" + phoneNo + "] - ̰ 10̳ 11̾ մϴ."); - return phoneNo; - } - - /* տ 3ڸ ȣ. */ - var formattedNo = hpNo.substr(0, 3) + "-"; - - /* ü ̰ 10̸ 3ڸ , 11̸ 4ڸ . */ - formattedNo += ( hpNo.length == 10 ? hpNo.substr(3, 3) : hpNo.substr(3, 4) ) + "-"; - - /* 4ڸ ȣ. */ - formattedNo += hpNo.substring(hpNo.length - 4); - - - return formattedNo; -} - - -/** - * ־ Object ڵ ȣ ϰ ȭѴ. - */ -function formatHpNoObj(obj) { - obj.value = formatHpNo(obj.value); -} diff --git a/zioinfo/js/builder.js b/zioinfo/js/builder.js deleted file mode 100644 index 199afc12..00000000 --- a/zioinfo/js/builder.js +++ /dev/null @@ -1,131 +0,0 @@ -// script.aculo.us builder.js v1.7.0, Fri Jan 19 19:16:36 CET 2007 - -// Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) -// -// script.aculo.us is freely distributable under the terms of an MIT-style license. -// For details, see the script.aculo.us web site: http://script.aculo.us/ - -var Builder = { - NODEMAP: { - AREA: 'map', - CAPTION: 'table', - COL: 'table', - COLGROUP: 'table', - LEGEND: 'fieldset', - OPTGROUP: 'select', - OPTION: 'select', - PARAM: 'object', - TBODY: 'table', - TD: 'table', - TFOOT: 'table', - TH: 'table', - THEAD: 'table', - TR: 'table' - }, - // note: For Firefox < 1.5, OPTION and OPTGROUP tags are currently broken, - // due to a Firefox bug - node: function(elementName) { - elementName = elementName.toUpperCase(); - - // try innerHTML approach - var parentTag = this.NODEMAP[elementName] || 'div'; - var parentElement = document.createElement(parentTag); - try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707 - parentElement.innerHTML = "<" + elementName + ">"; - } catch(e) {} - var element = parentElement.firstChild || null; - - // see if browser added wrapping tags - if(element && (element.tagName.toUpperCase() != elementName)) - element = element.getElementsByTagName(elementName)[0]; - - // fallback to createElement approach - if(!element) element = document.createElement(elementName); - - // abort if nothing could be created - if(!element) return; - - // attributes (or text) - if(arguments[1]) - if(this._isStringOrNumber(arguments[1]) || - (arguments[1] instanceof Array)) { - this._children(element, arguments[1]); - } else { - var attrs = this._attributes(arguments[1]); - if(attrs.length) { - try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707 - parentElement.innerHTML = "<" +elementName + " " + - attrs + ">"; - } catch(e) {} - element = parentElement.firstChild || null; - // workaround firefox 1.0.X bug - if(!element) { - element = document.createElement(elementName); - for(attr in arguments[1]) - element[attr == 'class' ? 'className' : attr] = arguments[1][attr]; - } - if(element.tagName.toUpperCase() != elementName) - element = parentElement.getElementsByTagName(elementName)[0]; - } - } - - // text, or array of children - if(arguments[2]) - this._children(element, arguments[2]); - - return element; - }, - _text: function(text) { - return document.createTextNode(text); - }, - - ATTR_MAP: { - 'className': 'class', - 'htmlFor': 'for' - }, - - _attributes: function(attributes) { - var attrs = []; - for(attribute in attributes) - attrs.push((attribute in this.ATTR_MAP ? this.ATTR_MAP[attribute] : attribute) + - '="' + attributes[attribute].toString().escapeHTML() + '"'); - return attrs.join(" "); - }, - _children: function(element, children) { - if(typeof children=='object') { // array can hold nodes and text - children.flatten().each( function(e) { - if(typeof e=='object') - element.appendChild(e) - else - if(Builder._isStringOrNumber(e)) - element.appendChild(Builder._text(e)); - }); - } else - if(Builder._isStringOrNumber(children)) - element.appendChild(Builder._text(children)); - }, - _isStringOrNumber: function(param) { - return(typeof param=='string' || typeof param=='number'); - }, - build: function(html) { - var element = this.node('div'); - $(element).update(html.strip()); - return element.down(); - }, - dump: function(scope) { - if(typeof scope != 'object' && typeof scope != 'function') scope = window; //global scope - - var tags = ("A ABBR ACRONYM ADDRESS APPLET AREA B BASE BASEFONT BDO BIG BLOCKQUOTE BODY " + - "BR BUTTON CAPTION CENTER CITE CODE COL COLGROUP DD DEL DFN DIR DIV DL DT EM FIELDSET " + - "FONT FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HR HTML I IFRAME IMG INPUT INS ISINDEX "+ - "KBD LABEL LEGEND LI LINK MAP MENU META NOFRAMES NOSCRIPT OBJECT OL OPTGROUP OPTION P "+ - "PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG STYLE SUB SUP TABLE TBODY TD "+ - "TEXTAREA TFOOT TH THEAD TITLE TR TT U UL VAR").split(/\s+/); - - tags.each( function(tag){ - scope[tag] = function() { - return Builder.node.apply(Builder, [tag].concat($A(arguments))); - } - }); - } -} diff --git a/zioinfo/js/controls.js b/zioinfo/js/controls.js deleted file mode 100644 index 46f2cc18..00000000 --- a/zioinfo/js/controls.js +++ /dev/null @@ -1,835 +0,0 @@ -// script.aculo.us controls.js v1.7.0, Fri Jan 19 19:16:36 CET 2007 - -// Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) -// (c) 2005, 2006 Ivan Krstic (http://blogs.law.harvard.edu/ivan) -// (c) 2005, 2006 Jon Tirsen (http://www.tirsen.com) -// Contributors: -// Richard Livsey -// Rahul Bhargava -// Rob Wills -// -// script.aculo.us is freely distributable under the terms of an MIT-style license. -// For details, see the script.aculo.us web site: http://script.aculo.us/ - -// Autocompleter.Base handles all the autocompletion functionality -// that's independent of the data source for autocompletion. This -// includes drawing the autocompletion menu, observing keyboard -// and mouse events, and similar. -// -// Specific autocompleters need to provide, at the very least, -// a getUpdatedChoices function that will be invoked every time -// the text inside the monitored textbox changes. This method -// should get the text for which to provide autocompletion by -// invoking this.getToken(), NOT by directly accessing -// this.element.value. This is to allow incremental tokenized -// autocompletion. Specific auto-completion logic (AJAX, etc) -// belongs in getUpdatedChoices. -// -// Tokenized incremental autocompletion is enabled automatically -// when an autocompleter is instantiated with the 'tokens' option -// in the options parameter, e.g.: -// new Ajax.Autocompleter('id','upd', '/url/', { tokens: ',' }); -// will incrementally autocomplete with a comma as the token. -// Additionally, ',' in the above example can be replaced with -// a token array, e.g. { tokens: [',', '\n'] } which -// enables autocompletion on multiple tokens. This is most -// useful when one of the tokens is \n (a newline), as it -// allows smart autocompletion after linebreaks. - -if(typeof Effect == 'undefined') - throw("controls.js requires including script.aculo.us' effects.js library"); - -var Autocompleter = {} -Autocompleter.Base = function() {}; -Autocompleter.Base.prototype = { - baseInitialize: function(element, update, options) { - this.element = $(element); - this.update = $(update); - this.hasFocus = false; - this.changed = false; - this.active = false; - this.index = 0; - this.entryCount = 0; - - if(this.setOptions) - this.setOptions(options); - else - this.options = options || {}; - - this.options.paramName = this.options.paramName || this.element.name; - this.options.tokens = this.options.tokens || []; - this.options.frequency = this.options.frequency || 0.4; - this.options.minChars = this.options.minChars || 1; - this.options.onShow = this.options.onShow || - function(element, update){ - if(!update.style.position || update.style.position=='absolute') { - update.style.position = 'absolute'; - Position.clone(element, update, { - setHeight: false, - offsetTop: element.offsetHeight - }); - } - Effect.Appear(update,{duration:0.15}); - }; - this.options.onHide = this.options.onHide || - function(element, update){ new Effect.Fade(update,{duration:0.15}) }; - - if(typeof(this.options.tokens) == 'string') - this.options.tokens = new Array(this.options.tokens); - - this.observer = null; - - this.element.setAttribute('autocomplete','off'); - - Element.hide(this.update); - - Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this)); - Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); - }, - - show: function() { - if(Element.getStyle(this.update, 'display')=='none') this.options.onShow(this.element, this.update); - if(!this.iefix && - (navigator.appVersion.indexOf('MSIE')>0) && - (navigator.userAgent.indexOf('Opera')<0) && - (Element.getStyle(this.update, 'position')=='absolute')) { - new Insertion.After(this.update, - ''); - this.iefix = $(this.update.id+'_iefix'); - } - if(this.iefix) setTimeout(this.fixIEOverlapping.bind(this), 50); - }, - - fixIEOverlapping: function() { - Position.clone(this.update, this.iefix, {setTop:(!this.update.style.height)}); - this.iefix.style.zIndex = 1; - this.update.style.zIndex = 2; - Element.show(this.iefix); - }, - - hide: function() { - this.stopIndicator(); - if(Element.getStyle(this.update, 'display')!='none') this.options.onHide(this.element, this.update); - if(this.iefix) Element.hide(this.iefix); - }, - - startIndicator: function() { - if(this.options.indicator) Element.show(this.options.indicator); - }, - - stopIndicator: function() { - if(this.options.indicator) Element.hide(this.options.indicator); - }, - - onKeyPress: function(event) { - if(this.active) - switch(event.keyCode) { - case Event.KEY_TAB: - case Event.KEY_RETURN: - this.selectEntry(); - Event.stop(event); - case Event.KEY_ESC: - this.hide(); - this.active = false; - Event.stop(event); - return; - case Event.KEY_LEFT: - case Event.KEY_RIGHT: - return; - case Event.KEY_UP: - this.markPrevious(); - this.render(); - if(navigator.appVersion.indexOf('AppleWebKit')>0) Event.stop(event); - return; - case Event.KEY_DOWN: - this.markNext(); - this.render(); - if(navigator.appVersion.indexOf('AppleWebKit')>0) Event.stop(event); - return; - } - else - if(event.keyCode==Event.KEY_TAB || event.keyCode==Event.KEY_RETURN || - (navigator.appVersion.indexOf('AppleWebKit') > 0 && event.keyCode == 0)) return; - - this.changed = true; - this.hasFocus = true; - - if(this.observer) clearTimeout(this.observer); - this.observer = - setTimeout(this.onObserverEvent.bind(this), this.options.frequency*1000); - }, - - activate: function() { - this.changed = false; - this.hasFocus = true; - this.getUpdatedChoices(); - }, - - onHover: function(event) { - var element = Event.findElement(event, 'LI'); - if(this.index != element.autocompleteIndex) - { - this.index = element.autocompleteIndex; - this.render(); - } - Event.stop(event); - }, - - onClick: function(event) { - var element = Event.findElement(event, 'LI'); - this.index = element.autocompleteIndex; - this.selectEntry(); - this.hide(); - }, - - onBlur: function(event) { - // needed to make click events working - setTimeout(this.hide.bind(this), 250); - this.hasFocus = false; - this.active = false; - }, - - render: function() { - if(this.entryCount > 0) { - for (var i = 0; i < this.entryCount; i++) - this.index==i ? - Element.addClassName(this.getEntry(i),"selected") : - Element.removeClassName(this.getEntry(i),"selected"); - - if(this.hasFocus) { - this.show(); - this.active = true; - } - } else { - this.active = false; - this.hide(); - } - }, - - markPrevious: function() { - if(this.index > 0) this.index-- - else this.index = this.entryCount-1; - this.getEntry(this.index).scrollIntoView(true); - }, - - markNext: function() { - if(this.index < this.entryCount-1) this.index++ - else this.index = 0; - this.getEntry(this.index).scrollIntoView(false); - }, - - getEntry: function(index) { - return this.update.firstChild.childNodes[index]; - }, - - getCurrentEntry: function() { - return this.getEntry(this.index); - }, - - selectEntry: function() { - this.active = false; - this.updateElement(this.getCurrentEntry()); - }, - - updateElement: function(selectedElement) { - if (this.options.updateElement) { - this.options.updateElement(selectedElement); - return; - } - var value = ''; - if (this.options.select) { - var nodes = document.getElementsByClassName(this.options.select, selectedElement) || []; - if(nodes.length>0) value = Element.collectTextNodes(nodes[0], this.options.select); - } else - value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal'); - - var lastTokenPos = this.findLastToken(); - if (lastTokenPos != -1) { - var newValue = this.element.value.substr(0, lastTokenPos + 1); - var whitespace = this.element.value.substr(lastTokenPos + 1).match(/^\s+/); - if (whitespace) - newValue += whitespace[0]; - this.element.value = newValue + value; - } else { - this.element.value = value; - } - this.element.focus(); - - if (this.options.afterUpdateElement) - this.options.afterUpdateElement(this.element, selectedElement); - }, - - updateChoices: function(choices) { - if(!this.changed && this.hasFocus) { - this.update.innerHTML = choices; - Element.cleanWhitespace(this.update); - Element.cleanWhitespace(this.update.down()); - - if(this.update.firstChild && this.update.down().childNodes) { - this.entryCount = - this.update.down().childNodes.length; - for (var i = 0; i < this.entryCount; i++) { - var entry = this.getEntry(i); - entry.autocompleteIndex = i; - this.addObservers(entry); - } - } else { - this.entryCount = 0; - } - - this.stopIndicator(); - this.index = 0; - - if(this.entryCount==1 && this.options.autoSelect) { - this.selectEntry(); - this.hide(); - } else { - this.render(); - } - } - }, - - addObservers: function(element) { - Event.observe(element, "mouseover", this.onHover.bindAsEventListener(this)); - Event.observe(element, "click", this.onClick.bindAsEventListener(this)); - }, - - onObserverEvent: function() { - this.changed = false; - if(this.getToken().length>=this.options.minChars) { - this.startIndicator(); - this.getUpdatedChoices(); - } else { - this.active = false; - this.hide(); - } - }, - - getToken: function() { - var tokenPos = this.findLastToken(); - if (tokenPos != -1) - var ret = this.element.value.substr(tokenPos + 1).replace(/^\s+/,'').replace(/\s+$/,''); - else - var ret = this.element.value; - - return /\n/.test(ret) ? '' : ret; - }, - - findLastToken: function() { - var lastTokenPos = -1; - - for (var i=0; i lastTokenPos) - lastTokenPos = thisTokenPos; - } - return lastTokenPos; - } -} - -Ajax.Autocompleter = Class.create(); -Object.extend(Object.extend(Ajax.Autocompleter.prototype, Autocompleter.Base.prototype), { - initialize: function(element, update, url, options) { - this.baseInitialize(element, update, options); - this.options.asynchronous = true; - this.options.onComplete = this.onComplete.bind(this); - this.options.defaultParams = this.options.parameters || null; - this.url = url; - }, - - getUpdatedChoices: function() { - entry = encodeURIComponent(this.options.paramName) + '=' + - encodeURIComponent(this.getToken()); - - this.options.parameters = this.options.callback ? - this.options.callback(this.element, entry) : entry; - - if(this.options.defaultParams) - this.options.parameters += '&' + this.options.defaultParams; - - new Ajax.Request(this.url, this.options); - }, - - onComplete: function(request) { - this.updateChoices(request.responseText); - } - -}); - -// The local array autocompleter. Used when you'd prefer to -// inject an array of autocompletion options into the page, rather -// than sending out Ajax queries, which can be quite slow sometimes. -// -// The constructor takes four parameters. The first two are, as usual, -// the id of the monitored textbox, and id of the autocompletion menu. -// The third is the array you want to autocomplete from, and the fourth -// is the options block. -// -// Extra local autocompletion options: -// - choices - How many autocompletion choices to offer -// -// - partialSearch - If false, the autocompleter will match entered -// text only at the beginning of strings in the -// autocomplete array. Defaults to true, which will -// match text at the beginning of any *word* in the -// strings in the autocomplete array. If you want to -// search anywhere in the string, additionally set -// the option fullSearch to true (default: off). -// -// - fullSsearch - Search anywhere in autocomplete array strings. -// -// - partialChars - How many characters to enter before triggering -// a partial match (unlike minChars, which defines -// how many characters are required to do any match -// at all). Defaults to 2. -// -// - ignoreCase - Whether to ignore case when autocompleting. -// Defaults to true. -// -// It's possible to pass in a custom function as the 'selector' -// option, if you prefer to write your own autocompletion logic. -// In that case, the other options above will not apply unless -// you support them. - -Autocompleter.Local = Class.create(); -Autocompleter.Local.prototype = Object.extend(new Autocompleter.Base(), { - initialize: function(element, update, array, options) { - this.baseInitialize(element, update, options); - this.options.array = array; - }, - - getUpdatedChoices: function() { - this.updateChoices(this.options.selector(this)); - }, - - setOptions: function(options) { - this.options = Object.extend({ - choices: 10, - partialSearch: true, - partialChars: 2, - ignoreCase: true, - fullSearch: false, - selector: function(instance) { - var ret = []; // Beginning matches - var partial = []; // Inside matches - var entry = instance.getToken(); - var count = 0; - - for (var i = 0; i < instance.options.array.length && - ret.length < instance.options.choices ; i++) { - - var elem = instance.options.array[i]; - var foundPos = instance.options.ignoreCase ? - elem.toLowerCase().indexOf(entry.toLowerCase()) : - elem.indexOf(entry); - - while (foundPos != -1) { - if (foundPos == 0 && elem.length != entry.length) { - ret.push("
  • " + elem.substr(0, entry.length) + "" + - elem.substr(entry.length) + "
  • "); - break; - } else if (entry.length >= instance.options.partialChars && - instance.options.partialSearch && foundPos != -1) { - if (instance.options.fullSearch || /\s/.test(elem.substr(foundPos-1,1))) { - partial.push("
  • " + elem.substr(0, foundPos) + "" + - elem.substr(foundPos, entry.length) + "" + elem.substr( - foundPos + entry.length) + "
  • "); - break; - } - } - - foundPos = instance.options.ignoreCase ? - elem.toLowerCase().indexOf(entry.toLowerCase(), foundPos + 1) : - elem.indexOf(entry, foundPos + 1); - - } - } - if (partial.length) - ret = ret.concat(partial.slice(0, instance.options.choices - ret.length)) - return "
      " + ret.join('') + "
    "; - } - }, options || {}); - } -}); - -// AJAX in-place editor -// -// see documentation on http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor - -// Use this if you notice weird scrolling problems on some browsers, -// the DOM might be a bit confused when this gets called so do this -// waits 1 ms (with setTimeout) until it does the activation -Field.scrollFreeActivate = function(field) { - setTimeout(function() { - Field.activate(field); - }, 1); -} - -Ajax.InPlaceEditor = Class.create(); -Ajax.InPlaceEditor.defaultHighlightColor = "#FFFF99"; -Ajax.InPlaceEditor.prototype = { - initialize: function(element, url, options) { - this.url = url; - this.element = $(element); - - this.options = Object.extend({ - paramName: "value", - okButton: true, - okText: "ok", - cancelLink: true, - cancelText: "cancel", - savingText: "Saving...", - clickToEditText: "Click to edit", - okText: "ok", - rows: 1, - onComplete: function(transport, element) { - new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); - }, - onFailure: function(transport) { - alert("Error communicating with the server: " + transport.responseText.stripTags()); - }, - callback: function(form) { - return Form.serialize(form); - }, - handleLineBreaks: true, - loadingText: 'Loading...', - savingClassName: 'inplaceeditor-saving', - loadingClassName: 'inplaceeditor-loading', - formClassName: 'inplaceeditor-form', - highlightcolor: Ajax.InPlaceEditor.defaultHighlightColor, - highlightendcolor: "#FFFFFF", - externalControl: null, - submitOnBlur: false, - ajaxOptions: {}, - evalScripts: false - }, options || {}); - - if(!this.options.formId && this.element.id) { - this.options.formId = this.element.id + "-inplaceeditor"; - if ($(this.options.formId)) { - // there's already a form with that name, don't specify an id - this.options.formId = null; - } - } - - if (this.options.externalControl) { - this.options.externalControl = $(this.options.externalControl); - } - - this.originalBackground = Element.getStyle(this.element, 'background-color'); - if (!this.originalBackground) { - this.originalBackground = "transparent"; - } - - this.element.title = this.options.clickToEditText; - - this.onclickListener = this.enterEditMode.bindAsEventListener(this); - this.mouseoverListener = this.enterHover.bindAsEventListener(this); - this.mouseoutListener = this.leaveHover.bindAsEventListener(this); - Event.observe(this.element, 'click', this.onclickListener); - Event.observe(this.element, 'mouseover', this.mouseoverListener); - Event.observe(this.element, 'mouseout', this.mouseoutListener); - if (this.options.externalControl) { - Event.observe(this.options.externalControl, 'click', this.onclickListener); - Event.observe(this.options.externalControl, 'mouseover', this.mouseoverListener); - Event.observe(this.options.externalControl, 'mouseout', this.mouseoutListener); - } - }, - enterEditMode: function(evt) { - if (this.saving) return; - if (this.editing) return; - this.editing = true; - this.onEnterEditMode(); - if (this.options.externalControl) { - Element.hide(this.options.externalControl); - } - Element.hide(this.element); - this.createForm(); - this.element.parentNode.insertBefore(this.form, this.element); - if (!this.options.loadTextURL) Field.scrollFreeActivate(this.editField); - // stop the event to avoid a page refresh in Safari - if (evt) { - Event.stop(evt); - } - return false; - }, - createForm: function() { - this.form = document.createElement("form"); - this.form.id = this.options.formId; - Element.addClassName(this.form, this.options.formClassName) - this.form.onsubmit = this.onSubmit.bind(this); - - this.createEditField(); - - if (this.options.textarea) { - var br = document.createElement("br"); - this.form.appendChild(br); - } - - if (this.options.okButton) { - okButton = document.createElement("input"); - okButton.type = "submit"; - okButton.value = this.options.okText; - okButton.className = 'editor_ok_button'; - this.form.appendChild(okButton); - } - - if (this.options.cancelLink) { - cancelLink = document.createElement("a"); - cancelLink.href = "#"; - cancelLink.appendChild(document.createTextNode(this.options.cancelText)); - cancelLink.onclick = this.onclickCancel.bind(this); - cancelLink.className = 'editor_cancel'; - this.form.appendChild(cancelLink); - } - }, - hasHTMLLineBreaks: function(string) { - if (!this.options.handleLineBreaks) return false; - return string.match(/
    /i); - }, - convertHTMLLineBreaks: function(string) { - return string.replace(/
    /gi, "\n").replace(//gi, "\n").replace(/<\/p>/gi, "\n").replace(/

    /gi, ""); - }, - createEditField: function() { - var text; - if(this.options.loadTextURL) { - text = this.options.loadingText; - } else { - text = this.getText(); - } - - var obj = this; - - if (this.options.rows == 1 && !this.hasHTMLLineBreaks(text)) { - this.options.textarea = false; - var textField = document.createElement("input"); - textField.obj = this; - textField.type = "text"; - textField.name = this.options.paramName; - textField.value = text; - textField.style.backgroundColor = this.options.highlightcolor; - textField.className = 'editor_field'; - var size = this.options.size || this.options.cols || 0; - if (size != 0) textField.size = size; - if (this.options.submitOnBlur) - textField.onblur = this.onSubmit.bind(this); - this.editField = textField; - } else { - this.options.textarea = true; - var textArea = document.createElement("textarea"); - textArea.obj = this; - textArea.name = this.options.paramName; - textArea.value = this.convertHTMLLineBreaks(text); - textArea.rows = this.options.rows; - textArea.cols = this.options.cols || 40; - textArea.className = 'editor_field'; - if (this.options.submitOnBlur) - textArea.onblur = this.onSubmit.bind(this); - this.editField = textArea; - } - - if(this.options.loadTextURL) { - this.loadExternalText(); - } - this.form.appendChild(this.editField); - }, - getText: function() { - return this.element.innerHTML; - }, - loadExternalText: function() { - Element.addClassName(this.form, this.options.loadingClassName); - this.editField.disabled = true; - new Ajax.Request( - this.options.loadTextURL, - Object.extend({ - asynchronous: true, - onComplete: this.onLoadedExternalText.bind(this) - }, this.options.ajaxOptions) - ); - }, - onLoadedExternalText: function(transport) { - Element.removeClassName(this.form, this.options.loadingClassName); - this.editField.disabled = false; - this.editField.value = transport.responseText.stripTags(); - Field.scrollFreeActivate(this.editField); - }, - onclickCancel: function() { - this.onComplete(); - this.leaveEditMode(); - return false; - }, - onFailure: function(transport) { - this.options.onFailure(transport); - if (this.oldInnerHTML) { - this.element.innerHTML = this.oldInnerHTML; - this.oldInnerHTML = null; - } - return false; - }, - onSubmit: function() { - // onLoading resets these so we need to save them away for the Ajax call - var form = this.form; - var value = this.editField.value; - - // do this first, sometimes the ajax call returns before we get a chance to switch on Saving... - // which means this will actually switch on Saving... *after* we've left edit mode causing Saving... - // to be displayed indefinitely - this.onLoading(); - - if (this.options.evalScripts) { - new Ajax.Request( - this.url, Object.extend({ - parameters: this.options.callback(form, value), - onComplete: this.onComplete.bind(this), - onFailure: this.onFailure.bind(this), - asynchronous:true, - evalScripts:true - }, this.options.ajaxOptions)); - } else { - new Ajax.Updater( - { success: this.element, - // don't update on failure (this could be an option) - failure: null }, - this.url, Object.extend({ - parameters: this.options.callback(form, value), - onComplete: this.onComplete.bind(this), - onFailure: this.onFailure.bind(this) - }, this.options.ajaxOptions)); - } - // stop the event to avoid a page refresh in Safari - if (arguments.length > 1) { - Event.stop(arguments[0]); - } - return false; - }, - onLoading: function() { - this.saving = true; - this.removeForm(); - this.leaveHover(); - this.showSaving(); - }, - showSaving: function() { - this.oldInnerHTML = this.element.innerHTML; - this.element.innerHTML = this.options.savingText; - Element.addClassName(this.element, this.options.savingClassName); - this.element.style.backgroundColor = this.originalBackground; - Element.show(this.element); - }, - removeForm: function() { - if(this.form) { - if (this.form.parentNode) Element.remove(this.form); - this.form = null; - } - }, - enterHover: function() { - if (this.saving) return; - this.element.style.backgroundColor = this.options.highlightcolor; - if (this.effect) { - this.effect.cancel(); - } - Element.addClassName(this.element, this.options.hoverClassName) - }, - leaveHover: function() { - if (this.options.backgroundColor) { - this.element.style.backgroundColor = this.oldBackground; - } - Element.removeClassName(this.element, this.options.hoverClassName) - if (this.saving) return; - this.effect = new Effect.Highlight(this.element, { - startcolor: this.options.highlightcolor, - endcolor: this.options.highlightendcolor, - restorecolor: this.originalBackground - }); - }, - leaveEditMode: function() { - Element.removeClassName(this.element, this.options.savingClassName); - this.removeForm(); - this.leaveHover(); - this.element.style.backgroundColor = this.originalBackground; - Element.show(this.element); - if (this.options.externalControl) { - Element.show(this.options.externalControl); - } - this.editing = false; - this.saving = false; - this.oldInnerHTML = null; - this.onLeaveEditMode(); - }, - onComplete: function(transport) { - this.leaveEditMode(); - this.options.onComplete.bind(this)(transport, this.element); - }, - onEnterEditMode: function() {}, - onLeaveEditMode: function() {}, - dispose: function() { - if (this.oldInnerHTML) { - this.element.innerHTML = this.oldInnerHTML; - } - this.leaveEditMode(); - Event.stopObserving(this.element, 'click', this.onclickListener); - Event.stopObserving(this.element, 'mouseover', this.mouseoverListener); - Event.stopObserving(this.element, 'mouseout', this.mouseoutListener); - if (this.options.externalControl) { - Event.stopObserving(this.options.externalControl, 'click', this.onclickListener); - Event.stopObserving(this.options.externalControl, 'mouseover', this.mouseoverListener); - Event.stopObserving(this.options.externalControl, 'mouseout', this.mouseoutListener); - } - } -}; - -Ajax.InPlaceCollectionEditor = Class.create(); -Object.extend(Ajax.InPlaceCollectionEditor.prototype, Ajax.InPlaceEditor.prototype); -Object.extend(Ajax.InPlaceCollectionEditor.prototype, { - createEditField: function() { - if (!this.cached_selectTag) { - var selectTag = document.createElement("select"); - var collection = this.options.collection || []; - var optionTag; - collection.each(function(e,i) { - optionTag = document.createElement("option"); - optionTag.value = (e instanceof Array) ? e[0] : e; - if((typeof this.options.value == 'undefined') && - ((e instanceof Array) ? this.element.innerHTML == e[1] : e == optionTag.value)) optionTag.selected = true; - if(this.options.value==optionTag.value) optionTag.selected = true; - optionTag.appendChild(document.createTextNode((e instanceof Array) ? e[1] : e)); - selectTag.appendChild(optionTag); - }.bind(this)); - this.cached_selectTag = selectTag; - } - - this.editField = this.cached_selectTag; - if(this.options.loadTextURL) this.loadExternalText(); - this.form.appendChild(this.editField); - this.options.callback = function(form, value) { - return "value=" + encodeURIComponent(value); - } - } -}); - -// Delayed observer, like Form.Element.Observer, -// but waits for delay after last key input -// Ideal for live-search fields - -Form.Element.DelayedObserver = Class.create(); -Form.Element.DelayedObserver.prototype = { - initialize: function(element, delay, callback) { - this.delay = delay || 0.5; - this.element = $(element); - this.callback = callback; - this.timer = null; - this.lastValue = $F(this.element); - Event.observe(this.element,'keyup',this.delayedListener.bindAsEventListener(this)); - }, - delayedListener: function(event) { - if(this.lastValue == $F(this.element)) return; - if(this.timer) clearTimeout(this.timer); - this.timer = setTimeout(this.onTimerEvent.bind(this), this.delay * 1000); - this.lastValue = $F(this.element); - }, - onTimerEvent: function() { - this.timer = null; - this.callback(this.element, $F(this.element)); - } -}; diff --git a/zioinfo/js/date.js b/zioinfo/js/date.js deleted file mode 100644 index 2ce3101e..00000000 --- a/zioinfo/js/date.js +++ /dev/null @@ -1,147 +0,0 @@ -/*------------------------------------------------------------------------------ - * 1. ϸ: date.js - * 2. : (Ȯ ڿ) ϱ Լ Ѵ. - * 3. : string.js - * 4. ۼ: - * 5. ۼ: 2006.10.11. - -----------------------------------------------------------------------------*/ - - - - -var DATE_DELIMETER = "-"; - - -function splitDateStr(dateStr) { - var dateStr = formatDateStr(removeChar(dateStr, DATE_DELIMETER)); - - var arr = dateStr.split(DATE_DELIMETER); - - arr[0] = parseInt(arr[0], 10); - arr[1] = parseInt(arr[1], 10) - 1; - arr[2] = parseInt(arr[2], 10); - - return arr; -} - -/** - * ־ ¥ ڿ - * ¥ ڿ ش. - */ -function afterYears(dateStr, addYear) { - addYear = parseInt(addYear); - - var dateArr = splitDateStr(dateStr); - - var date = new Date(dateArr[0], dateArr[1], dateArr[2]); - - date.setFullYear(date.getFullYear() + addYear); - - return formatDate(date); -} - - -/** - * ־ ¥ ڿ - * ¥ ڿ ش. - */ -function afterMonths(dateStr, addMonth) { - addMonth = parseInt(addMonth); - - var dateArr = splitDateStr(dateStr); - - var date = new Date(dateArr[0], dateArr[1], dateArr[2]); - - date.setMonth(date.getMonth() + addMonth); - - return formatDate(date); -} - - -/** - * ־ ¥ ڿ - * ¥ ڿ ش. - */ -function afterDays(dateStr, addDay) { - addDay = parseInt(addDay); - - var dateArr = splitDateStr(dateStr); - - var date = new Date(dateArr[0], dateArr[1], dateArr[2]); - - date.setDate(date.getDate() + addDay); - - return formatDate(date); -} - - -/** - * ־ ¥ ڿ ȭѴ. - */ -function formatDateStr(dateStr) { - /* ڿ ش. */ - if ( isEmpty(dateStr) ) return ""; - - dateStr = removeChar(dateStr, DATE_DELIMETER); - - var result = ""; - - var len = dateStr.length; - - if (len >= 4) { - result += dateStr.substr(0, 4); - if (len >= 6) { - result += DATE_DELIMETER + dateStr.substr(4, 2); - if (len >= 8) { - result += DATE_DELIMETER + dateStr.substr(6, 2); - } - } - } - - /* - return dateStr.substr(0, 4) + DATE_DELIMETER - + dateStr.substr(4, 2) + DATE_DELIMETER - + dateStr.substr(6, 2);*/ - - return result; -} - - -/** - * ־ ü ¥ ڿ̶ - * ϰ ȭѴ. - */ -function formatDateStrObj(obj) { - obj.value = formatDateStr(obj.value); -} - - -/** - * ־ Date ü ȭѴ. - */ -function formatDate(date) { - var year = date.getFullYear(); - var month = date.getMonth() + 1; - var day = date.getDate(); - - return ateStr = year + DATE_DELIMETER - + (month < 10 ? "0" : "" ) + month + DATE_DELIMETER - + (day < 10 ? "0" : "" ) + day; -} - -/** - * ý ȭϿ ش. - */ -function getSysDateStr() { - return formatDate(new Date()); -} - - -/** - * ־ ü Focus ڸ Ѵ. - */ -function removeDateDelimOnFocus(obj) { - removeCharObj(obj, DATE_DELIMETER); - - obj.select(); -} diff --git a/zioinfo/js/dragdrop.js b/zioinfo/js/dragdrop.js deleted file mode 100644 index 32c91bc3..00000000 --- a/zioinfo/js/dragdrop.js +++ /dev/null @@ -1,944 +0,0 @@ -// script.aculo.us dragdrop.js v1.7.0, Fri Jan 19 19:16:36 CET 2007 - -// Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) -// (c) 2005, 2006 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz) -// -// script.aculo.us is freely distributable under the terms of an MIT-style license. -// For details, see the script.aculo.us web site: http://script.aculo.us/ - -if(typeof Effect == 'undefined') - throw("dragdrop.js requires including script.aculo.us' effects.js library"); - -var Droppables = { - drops: [], - - remove: function(element) { - this.drops = this.drops.reject(function(d) { return d.element==$(element) }); - }, - - add: function(element) { - element = $(element); - var options = Object.extend({ - greedy: true, - hoverclass: null, - tree: false - }, arguments[1] || {}); - - // cache containers - if(options.containment) { - options._containers = []; - var containment = options.containment; - if((typeof containment == 'object') && - (containment.constructor == Array)) { - containment.each( function(c) { options._containers.push($(c)) }); - } else { - options._containers.push($(containment)); - } - } - - if(options.accept) options.accept = [options.accept].flatten(); - - Element.makePositioned(element); // fix IE - options.element = element; - - this.drops.push(options); - }, - - findDeepestChild: function(drops) { - deepest = drops[0]; - - for (i = 1; i < drops.length; ++i) - if (Element.isParent(drops[i].element, deepest.element)) - deepest = drops[i]; - - return deepest; - }, - - isContained: function(element, drop) { - var containmentNode; - if(drop.tree) { - containmentNode = element.treeNode; - } else { - containmentNode = element.parentNode; - } - return drop._containers.detect(function(c) { return containmentNode == c }); - }, - - isAffected: function(point, element, drop) { - return ( - (drop.element!=element) && - ((!drop._containers) || - this.isContained(element, drop)) && - ((!drop.accept) || - (Element.classNames(element).detect( - function(v) { return drop.accept.include(v) } ) )) && - Position.within(drop.element, point[0], point[1]) ); - }, - - deactivate: function(drop) { - if(drop.hoverclass) - Element.removeClassName(drop.element, drop.hoverclass); - this.last_active = null; - }, - - activate: function(drop) { - if(drop.hoverclass) - Element.addClassName(drop.element, drop.hoverclass); - this.last_active = drop; - }, - - show: function(point, element) { - if(!this.drops.length) return; - var affected = []; - - if(this.last_active) this.deactivate(this.last_active); - this.drops.each( function(drop) { - if(Droppables.isAffected(point, element, drop)) - affected.push(drop); - }); - - if(affected.length>0) { - drop = Droppables.findDeepestChild(affected); - Position.within(drop.element, point[0], point[1]); - if(drop.onHover) - drop.onHover(element, drop.element, Position.overlap(drop.overlap, drop.element)); - - Droppables.activate(drop); - } - }, - - fire: function(event, element) { - if(!this.last_active) return; - Position.prepare(); - - if (this.isAffected([Event.pointerX(event), Event.pointerY(event)], element, this.last_active)) - if (this.last_active.onDrop) - this.last_active.onDrop(element, this.last_active.element, event); - }, - - reset: function() { - if(this.last_active) - this.deactivate(this.last_active); - } -} - -var Draggables = { - drags: [], - observers: [], - - register: function(draggable) { - if(this.drags.length == 0) { - this.eventMouseUp = this.endDrag.bindAsEventListener(this); - this.eventMouseMove = this.updateDrag.bindAsEventListener(this); - this.eventKeypress = this.keyPress.bindAsEventListener(this); - - Event.observe(document, "mouseup", this.eventMouseUp); - Event.observe(document, "mousemove", this.eventMouseMove); - Event.observe(document, "keypress", this.eventKeypress); - } - this.drags.push(draggable); - }, - - unregister: function(draggable) { - this.drags = this.drags.reject(function(d) { return d==draggable }); - if(this.drags.length == 0) { - Event.stopObserving(document, "mouseup", this.eventMouseUp); - Event.stopObserving(document, "mousemove", this.eventMouseMove); - Event.stopObserving(document, "keypress", this.eventKeypress); - } - }, - - activate: function(draggable) { - if(draggable.options.delay) { - this._timeout = setTimeout(function() { - Draggables._timeout = null; - window.focus(); - Draggables.activeDraggable = draggable; - }.bind(this), draggable.options.delay); - } else { - window.focus(); // allows keypress events if window isn't currently focused, fails for Safari - this.activeDraggable = draggable; - } - }, - - deactivate: function() { - this.activeDraggable = null; - }, - - updateDrag: function(event) { - if(!this.activeDraggable) return; - var pointer = [Event.pointerX(event), Event.pointerY(event)]; - // Mozilla-based browsers fire successive mousemove events with - // the same coordinates, prevent needless redrawing (moz bug?) - if(this._lastPointer && (this._lastPointer.inspect() == pointer.inspect())) return; - this._lastPointer = pointer; - - this.activeDraggable.updateDrag(event, pointer); - }, - - endDrag: function(event) { - if(this._timeout) { - clearTimeout(this._timeout); - this._timeout = null; - } - if(!this.activeDraggable) return; - this._lastPointer = null; - this.activeDraggable.endDrag(event); - this.activeDraggable = null; - }, - - keyPress: function(event) { - if(this.activeDraggable) - this.activeDraggable.keyPress(event); - }, - - addObserver: function(observer) { - this.observers.push(observer); - this._cacheObserverCallbacks(); - }, - - removeObserver: function(element) { // element instead of observer fixes mem leaks - this.observers = this.observers.reject( function(o) { return o.element==element }); - this._cacheObserverCallbacks(); - }, - - notify: function(eventName, draggable, event) { // 'onStart', 'onEnd', 'onDrag' - if(this[eventName+'Count'] > 0) - this.observers.each( function(o) { - if(o[eventName]) o[eventName](eventName, draggable, event); - }); - if(draggable.options[eventName]) draggable.options[eventName](draggable, event); - }, - - _cacheObserverCallbacks: function() { - ['onStart','onEnd','onDrag'].each( function(eventName) { - Draggables[eventName+'Count'] = Draggables.observers.select( - function(o) { return o[eventName]; } - ).length; - }); - } -} - -/*--------------------------------------------------------------------------*/ - -var Draggable = Class.create(); -Draggable._dragging = {}; - -Draggable.prototype = { - initialize: function(element) { - var defaults = { - handle: false, - reverteffect: function(element, top_offset, left_offset) { - var dur = Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02; - new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur, - queue: {scope:'_draggable', position:'end'} - }); - }, - endeffect: function(element) { - var toOpacity = typeof element._opacity == 'number' ? element._opacity : 1.0; - new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity, - queue: {scope:'_draggable', position:'end'}, - afterFinish: function(){ - Draggable._dragging[element] = false - } - }); - }, - zindex: 1000, - revert: false, - scroll: false, - scrollSensitivity: 20, - scrollSpeed: 15, - snap: false, // false, or xy or [x,y] or function(x,y){ return [x,y] } - delay: 0 - }; - - if(!arguments[1] || typeof arguments[1].endeffect == 'undefined') - Object.extend(defaults, { - starteffect: function(element) { - element._opacity = Element.getOpacity(element); - Draggable._dragging[element] = true; - new Effect.Opacity(element, {duration:0.2, from:element._opacity, to:0.7}); - } - }); - - var options = Object.extend(defaults, arguments[1] || {}); - - this.element = $(element); - - if(options.handle && (typeof options.handle == 'string')) - this.handle = this.element.down('.'+options.handle, 0); - - if(!this.handle) this.handle = $(options.handle); - if(!this.handle) this.handle = this.element; - - if(options.scroll && !options.scroll.scrollTo && !options.scroll.outerHTML) { - options.scroll = $(options.scroll); - this._isScrollChild = Element.childOf(this.element, options.scroll); - } - - Element.makePositioned(this.element); // fix IE - - this.delta = this.currentDelta(); - this.options = options; - this.dragging = false; - - this.eventMouseDown = this.initDrag.bindAsEventListener(this); - Event.observe(this.handle, "mousedown", this.eventMouseDown); - - Draggables.register(this); - }, - - destroy: function() { - Event.stopObserving(this.handle, "mousedown", this.eventMouseDown); - Draggables.unregister(this); - }, - - currentDelta: function() { - return([ - parseInt(Element.getStyle(this.element,'left') || '0'), - parseInt(Element.getStyle(this.element,'top') || '0')]); - }, - - initDrag: function(event) { - if(typeof Draggable._dragging[this.element] != 'undefined' && - Draggable._dragging[this.element]) return; - if(Event.isLeftClick(event)) { - // abort on form elements, fixes a Firefox issue - var src = Event.element(event); - if((tag_name = src.tagName.toUpperCase()) && ( - tag_name=='INPUT' || - tag_name=='SELECT' || - tag_name=='OPTION' || - tag_name=='BUTTON' || - tag_name=='TEXTAREA')) return; - - var pointer = [Event.pointerX(event), Event.pointerY(event)]; - var pos = Position.cumulativeOffset(this.element); - this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) }); - - Draggables.activate(this); - Event.stop(event); - } - }, - - startDrag: function(event) { - this.dragging = true; - - if(this.options.zindex) { - this.originalZ = parseInt(Element.getStyle(this.element,'z-index') || 0); - this.element.style.zIndex = this.options.zindex; - } - - if(this.options.ghosting) { - this._clone = this.element.cloneNode(true); - Position.absolutize(this.element); - this.element.parentNode.insertBefore(this._clone, this.element); - } - - if(this.options.scroll) { - if (this.options.scroll == window) { - var where = this._getWindowScroll(this.options.scroll); - this.originalScrollLeft = where.left; - this.originalScrollTop = where.top; - } else { - this.originalScrollLeft = this.options.scroll.scrollLeft; - this.originalScrollTop = this.options.scroll.scrollTop; - } - } - - Draggables.notify('onStart', this, event); - - if(this.options.starteffect) this.options.starteffect(this.element); - }, - - updateDrag: function(event, pointer) { - if(!this.dragging) this.startDrag(event); - Position.prepare(); - Droppables.show(pointer, this.element); - Draggables.notify('onDrag', this, event); - - this.draw(pointer); - if(this.options.change) this.options.change(this); - - if(this.options.scroll) { - this.stopScrolling(); - - var p; - if (this.options.scroll == window) { - with(this._getWindowScroll(this.options.scroll)) { p = [ left, top, left+width, top+height ]; } - } else { - p = Position.page(this.options.scroll); - p[0] += this.options.scroll.scrollLeft + Position.deltaX; - p[1] += this.options.scroll.scrollTop + Position.deltaY; - p.push(p[0]+this.options.scroll.offsetWidth); - p.push(p[1]+this.options.scroll.offsetHeight); - } - var speed = [0,0]; - if(pointer[0] < (p[0]+this.options.scrollSensitivity)) speed[0] = pointer[0]-(p[0]+this.options.scrollSensitivity); - if(pointer[1] < (p[1]+this.options.scrollSensitivity)) speed[1] = pointer[1]-(p[1]+this.options.scrollSensitivity); - if(pointer[0] > (p[2]-this.options.scrollSensitivity)) speed[0] = pointer[0]-(p[2]-this.options.scrollSensitivity); - if(pointer[1] > (p[3]-this.options.scrollSensitivity)) speed[1] = pointer[1]-(p[3]-this.options.scrollSensitivity); - this.startScrolling(speed); - } - - // fix AppleWebKit rendering - if(navigator.appVersion.indexOf('AppleWebKit')>0) window.scrollBy(0,0); - - Event.stop(event); - }, - - finishDrag: function(event, success) { - this.dragging = false; - - if(this.options.ghosting) { - Position.relativize(this.element); - Element.remove(this._clone); - this._clone = null; - } - - if(success) Droppables.fire(event, this.element); - Draggables.notify('onEnd', this, event); - - var revert = this.options.revert; - if(revert && typeof revert == 'function') revert = revert(this.element); - - var d = this.currentDelta(); - if(revert && this.options.reverteffect) { - this.options.reverteffect(this.element, - d[1]-this.delta[1], d[0]-this.delta[0]); - } else { - this.delta = d; - } - - if(this.options.zindex) - this.element.style.zIndex = this.originalZ; - - if(this.options.endeffect) - this.options.endeffect(this.element); - - Draggables.deactivate(this); - Droppables.reset(); - }, - - keyPress: function(event) { - if(event.keyCode!=Event.KEY_ESC) return; - this.finishDrag(event, false); - Event.stop(event); - }, - - endDrag: function(event) { - if(!this.dragging) return; - this.stopScrolling(); - this.finishDrag(event, true); - Event.stop(event); - }, - - draw: function(point) { - var pos = Position.cumulativeOffset(this.element); - if(this.options.ghosting) { - var r = Position.realOffset(this.element); - pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY; - } - - var d = this.currentDelta(); - pos[0] -= d[0]; pos[1] -= d[1]; - - if(this.options.scroll && (this.options.scroll != window && this._isScrollChild)) { - pos[0] -= this.options.scroll.scrollLeft-this.originalScrollLeft; - pos[1] -= this.options.scroll.scrollTop-this.originalScrollTop; - } - - var p = [0,1].map(function(i){ - return (point[i]-pos[i]-this.offset[i]) - }.bind(this)); - - if(this.options.snap) { - if(typeof this.options.snap == 'function') { - p = this.options.snap(p[0],p[1],this); - } else { - if(this.options.snap instanceof Array) { - p = p.map( function(v, i) { - return Math.round(v/this.options.snap[i])*this.options.snap[i] }.bind(this)) - } else { - p = p.map( function(v) { - return Math.round(v/this.options.snap)*this.options.snap }.bind(this)) - } - }} - - var style = this.element.style; - if((!this.options.constraint) || (this.options.constraint=='horizontal')) - style.left = p[0] + "px"; - if((!this.options.constraint) || (this.options.constraint=='vertical')) - style.top = p[1] + "px"; - - if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering - }, - - stopScrolling: function() { - if(this.scrollInterval) { - clearInterval(this.scrollInterval); - this.scrollInterval = null; - Draggables._lastScrollPointer = null; - } - }, - - startScrolling: function(speed) { - if(!(speed[0] || speed[1])) return; - this.scrollSpeed = [speed[0]*this.options.scrollSpeed,speed[1]*this.options.scrollSpeed]; - this.lastScrolled = new Date(); - this.scrollInterval = setInterval(this.scroll.bind(this), 10); - }, - - scroll: function() { - var current = new Date(); - var delta = current - this.lastScrolled; - this.lastScrolled = current; - if(this.options.scroll == window) { - with (this._getWindowScroll(this.options.scroll)) { - if (this.scrollSpeed[0] || this.scrollSpeed[1]) { - var d = delta / 1000; - this.options.scroll.scrollTo( left + d*this.scrollSpeed[0], top + d*this.scrollSpeed[1] ); - } - } - } else { - this.options.scroll.scrollLeft += this.scrollSpeed[0] * delta / 1000; - this.options.scroll.scrollTop += this.scrollSpeed[1] * delta / 1000; - } - - Position.prepare(); - Droppables.show(Draggables._lastPointer, this.element); - Draggables.notify('onDrag', this); - if (this._isScrollChild) { - Draggables._lastScrollPointer = Draggables._lastScrollPointer || $A(Draggables._lastPointer); - Draggables._lastScrollPointer[0] += this.scrollSpeed[0] * delta / 1000; - Draggables._lastScrollPointer[1] += this.scrollSpeed[1] * delta / 1000; - if (Draggables._lastScrollPointer[0] < 0) - Draggables._lastScrollPointer[0] = 0; - if (Draggables._lastScrollPointer[1] < 0) - Draggables._lastScrollPointer[1] = 0; - this.draw(Draggables._lastScrollPointer); - } - - if(this.options.change) this.options.change(this); - }, - - _getWindowScroll: function(w) { - var T, L, W, H; - with (w.document) { - if (w.document.documentElement && documentElement.scrollTop) { - T = documentElement.scrollTop; - L = documentElement.scrollLeft; - } else if (w.document.body) { - T = body.scrollTop; - L = body.scrollLeft; - } - if (w.innerWidth) { - W = w.innerWidth; - H = w.innerHeight; - } else if (w.document.documentElement && documentElement.clientWidth) { - W = documentElement.clientWidth; - H = documentElement.clientHeight; - } else { - W = body.offsetWidth; - H = body.offsetHeight - } - } - return { top: T, left: L, width: W, height: H }; - } -} - -/*--------------------------------------------------------------------------*/ - -var SortableObserver = Class.create(); -SortableObserver.prototype = { - initialize: function(element, observer) { - this.element = $(element); - this.observer = observer; - this.lastValue = Sortable.serialize(this.element); - }, - - onStart: function() { - this.lastValue = Sortable.serialize(this.element); - }, - - onEnd: function() { - Sortable.unmark(); - if(this.lastValue != Sortable.serialize(this.element)) - this.observer(this.element) - } -} - -var Sortable = { - SERIALIZE_RULE: /^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/, - - sortables: {}, - - _findRootElement: function(element) { - while (element.tagName.toUpperCase() != "BODY") { - if(element.id && Sortable.sortables[element.id]) return element; - element = element.parentNode; - } - }, - - options: function(element) { - element = Sortable._findRootElement($(element)); - if(!element) return; - return Sortable.sortables[element.id]; - }, - - destroy: function(element){ - var s = Sortable.options(element); - - if(s) { - Draggables.removeObserver(s.element); - s.droppables.each(function(d){ Droppables.remove(d) }); - s.draggables.invoke('destroy'); - - delete Sortable.sortables[s.element.id]; - } - }, - - create: function(element) { - element = $(element); - var options = Object.extend({ - element: element, - tag: 'li', // assumes li children, override with tag: 'tagname' - dropOnEmpty: false, - tree: false, - treeTag: 'ul', - overlap: 'vertical', // one of 'vertical', 'horizontal' - constraint: 'vertical', // one of 'vertical', 'horizontal', false - containment: element, // also takes array of elements (or id's); or false - handle: false, // or a CSS class - only: false, - delay: 0, - hoverclass: null, - ghosting: false, - scroll: false, - scrollSensitivity: 20, - scrollSpeed: 15, - format: this.SERIALIZE_RULE, - onChange: Prototype.emptyFunction, - onUpdate: Prototype.emptyFunction - }, arguments[1] || {}); - - // clear any old sortable with same element - this.destroy(element); - - // build options for the draggables - var options_for_draggable = { - revert: true, - scroll: options.scroll, - scrollSpeed: options.scrollSpeed, - scrollSensitivity: options.scrollSensitivity, - delay: options.delay, - ghosting: options.ghosting, - constraint: options.constraint, - handle: options.handle }; - - if(options.starteffect) - options_for_draggable.starteffect = options.starteffect; - - if(options.reverteffect) - options_for_draggable.reverteffect = options.reverteffect; - else - if(options.ghosting) options_for_draggable.reverteffect = function(element) { - element.style.top = 0; - element.style.left = 0; - }; - - if(options.endeffect) - options_for_draggable.endeffect = options.endeffect; - - if(options.zindex) - options_for_draggable.zindex = options.zindex; - - // build options for the droppables - var options_for_droppable = { - overlap: options.overlap, - containment: options.containment, - tree: options.tree, - hoverclass: options.hoverclass, - onHover: Sortable.onHover - } - - var options_for_tree = { - onHover: Sortable.onEmptyHover, - overlap: options.overlap, - containment: options.containment, - hoverclass: options.hoverclass - } - - // fix for gecko engine - Element.cleanWhitespace(element); - - options.draggables = []; - options.droppables = []; - - // drop on empty handling - if(options.dropOnEmpty || options.tree) { - Droppables.add(element, options_for_tree); - options.droppables.push(element); - } - - (this.findElements(element, options) || []).each( function(e) { - // handles are per-draggable - var handle = options.handle ? - $(e).down('.'+options.handle,0) : e; - options.draggables.push( - new Draggable(e, Object.extend(options_for_draggable, { handle: handle }))); - Droppables.add(e, options_for_droppable); - if(options.tree) e.treeNode = element; - options.droppables.push(e); - }); - - if(options.tree) { - (Sortable.findTreeElements(element, options) || []).each( function(e) { - Droppables.add(e, options_for_tree); - e.treeNode = element; - options.droppables.push(e); - }); - } - - // keep reference - this.sortables[element.id] = options; - - // for onupdate - Draggables.addObserver(new SortableObserver(element, options.onUpdate)); - - }, - - // return all suitable-for-sortable elements in a guaranteed order - findElements: function(element, options) { - return Element.findChildren( - element, options.only, options.tree ? true : false, options.tag); - }, - - findTreeElements: function(element, options) { - return Element.findChildren( - element, options.only, options.tree ? true : false, options.treeTag); - }, - - onHover: function(element, dropon, overlap) { - if(Element.isParent(dropon, element)) return; - - if(overlap > .33 && overlap < .66 && Sortable.options(dropon).tree) { - return; - } else if(overlap>0.5) { - Sortable.mark(dropon, 'before'); - if(dropon.previousSibling != element) { - var oldParentNode = element.parentNode; - element.style.visibility = "hidden"; // fix gecko rendering - dropon.parentNode.insertBefore(element, dropon); - if(dropon.parentNode!=oldParentNode) - Sortable.options(oldParentNode).onChange(element); - Sortable.options(dropon.parentNode).onChange(element); - } - } else { - Sortable.mark(dropon, 'after'); - var nextElement = dropon.nextSibling || null; - if(nextElement != element) { - var oldParentNode = element.parentNode; - element.style.visibility = "hidden"; // fix gecko rendering - dropon.parentNode.insertBefore(element, nextElement); - if(dropon.parentNode!=oldParentNode) - Sortable.options(oldParentNode).onChange(element); - Sortable.options(dropon.parentNode).onChange(element); - } - } - }, - - onEmptyHover: function(element, dropon, overlap) { - var oldParentNode = element.parentNode; - var droponOptions = Sortable.options(dropon); - - if(!Element.isParent(dropon, element)) { - var index; - - var children = Sortable.findElements(dropon, {tag: droponOptions.tag, only: droponOptions.only}); - var child = null; - - if(children) { - var offset = Element.offsetSize(dropon, droponOptions.overlap) * (1.0 - overlap); - - for (index = 0; index < children.length; index += 1) { - if (offset - Element.offsetSize (children[index], droponOptions.overlap) >= 0) { - offset -= Element.offsetSize (children[index], droponOptions.overlap); - } else if (offset - (Element.offsetSize (children[index], droponOptions.overlap) / 2) >= 0) { - child = index + 1 < children.length ? children[index + 1] : null; - break; - } else { - child = children[index]; - break; - } - } - } - - dropon.insertBefore(element, child); - - Sortable.options(oldParentNode).onChange(element); - droponOptions.onChange(element); - } - }, - - unmark: function() { - if(Sortable._marker) Sortable._marker.hide(); - }, - - mark: function(dropon, position) { - // mark on ghosting only - var sortable = Sortable.options(dropon.parentNode); - if(sortable && !sortable.ghosting) return; - - if(!Sortable._marker) { - Sortable._marker = - ($('dropmarker') || Element.extend(document.createElement('DIV'))). - hide().addClassName('dropmarker').setStyle({position:'absolute'}); - document.getElementsByTagName("body").item(0).appendChild(Sortable._marker); - } - var offsets = Position.cumulativeOffset(dropon); - Sortable._marker.setStyle({left: offsets[0]+'px', top: offsets[1] + 'px'}); - - if(position=='after') - if(sortable.overlap == 'horizontal') - Sortable._marker.setStyle({left: (offsets[0]+dropon.clientWidth) + 'px'}); - else - Sortable._marker.setStyle({top: (offsets[1]+dropon.clientHeight) + 'px'}); - - Sortable._marker.show(); - }, - - _tree: function(element, options, parent) { - var children = Sortable.findElements(element, options) || []; - - for (var i = 0; i < children.length; ++i) { - var match = children[i].id.match(options.format); - - if (!match) continue; - - var child = { - id: encodeURIComponent(match ? match[1] : null), - element: element, - parent: parent, - children: [], - position: parent.children.length, - container: $(children[i]).down(options.treeTag) - } - - /* Get the element containing the children and recurse over it */ - if (child.container) - this._tree(child.container, options, child) - - parent.children.push (child); - } - - return parent; - }, - - tree: function(element) { - element = $(element); - var sortableOptions = this.options(element); - var options = Object.extend({ - tag: sortableOptions.tag, - treeTag: sortableOptions.treeTag, - only: sortableOptions.only, - name: element.id, - format: sortableOptions.format - }, arguments[1] || {}); - - var root = { - id: null, - parent: null, - children: [], - container: element, - position: 0 - } - - return Sortable._tree(element, options, root); - }, - - /* Construct a [i] index for a particular node */ - _constructIndex: function(node) { - var index = ''; - do { - if (node.id) index = '[' + node.position + ']' + index; - } while ((node = node.parent) != null); - return index; - }, - - sequence: function(element) { - element = $(element); - var options = Object.extend(this.options(element), arguments[1] || {}); - - return $(this.findElements(element, options) || []).map( function(item) { - return item.id.match(options.format) ? item.id.match(options.format)[1] : ''; - }); - }, - - setSequence: function(element, new_sequence) { - element = $(element); - var options = Object.extend(this.options(element), arguments[2] || {}); - - var nodeMap = {}; - this.findElements(element, options).each( function(n) { - if (n.id.match(options.format)) - nodeMap[n.id.match(options.format)[1]] = [n, n.parentNode]; - n.parentNode.removeChild(n); - }); - - new_sequence.each(function(ident) { - var n = nodeMap[ident]; - if (n) { - n[1].appendChild(n[0]); - delete nodeMap[ident]; - } - }); - }, - - serialize: function(element) { - element = $(element); - var options = Object.extend(Sortable.options(element), arguments[1] || {}); - var name = encodeURIComponent( - (arguments[1] && arguments[1].name) ? arguments[1].name : element.id); - - if (options.tree) { - return Sortable.tree(element, arguments[1]).children.map( function (item) { - return [name + Sortable._constructIndex(item) + "[id]=" + - encodeURIComponent(item.id)].concat(item.children.map(arguments.callee)); - }).flatten().join('&'); - } else { - return Sortable.sequence(element, arguments[1]).map( function(item) { - return name + "[]=" + encodeURIComponent(item); - }).join('&'); - } - } -} - -// Returns true if child is contained within element -Element.isParent = function(child, element) { - if (!child.parentNode || child == element) return false; - if (child.parentNode == element) return true; - return Element.isParent(child.parentNode, element); -} - -Element.findChildren = function(element, only, recursive, tagName) { - if(!element.hasChildNodes()) return null; - tagName = tagName.toUpperCase(); - if(only) only = [only].flatten(); - var elements = []; - $A(element.childNodes).each( function(e) { - if(e.tagName && e.tagName.toUpperCase()==tagName && - (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) - elements.push(e); - if(recursive) { - var grandchildren = Element.findChildren(e, only, recursive, tagName); - if(grandchildren) elements.push(grandchildren); - } - }); - - return (elements.length>0 ? elements.flatten() : []); -} - -Element.offsetSize = function (element, type) { - return element['offset' + ((type=='vertical' || type=='height') ? 'Height' : 'Width')]; -} diff --git a/zioinfo/js/dtree.js b/zioinfo/js/dtree.js deleted file mode 100644 index 8583b3a3..00000000 --- a/zioinfo/js/dtree.js +++ /dev/null @@ -1,351 +0,0 @@ -/*--------------------------------------------------| -| dTree 2.05 | www.destroydrop.com/javascript/tree/ | -|---------------------------------------------------| -| Copyright (c) 2002-2003 Geir Landr? | -| | -| This script can be used freely as long as all | -| copyright messages are intact. | -| | -| Updated: 17.04.2003 | -|--------------------------------------------------*/ -var contextPath = '/jbss'; - -// Node object -function Node(id, pid, name, url, title, target, icon, iconOpen, open) { - this.id = id; - this.pid = pid; - this.name = name; - this.url = url; - this.title = title; - this.target = target; - this.icon = icon; - this.iconOpen = iconOpen; - this._io = open || false; - this._is = false; - this._ls = false; - this._hc = false; - this._ai = 0; - this._p; -}; - -// Tree object -function dTree(objName) { - this.config = { - target : null, - folderLinks : true, - useSelection : true, - useCookies : true, - useLines : true, - useIcons : true, - useStatusText : false, - closeSameLevel : false, - inOrder : false - } - this.icon = { - root : contextPath + '/images/tree/base.gif', - folder : contextPath +'/images/tree/folder.gif', - folderOpen : contextPath +'/images/tree/folderopen.gif', - node : contextPath +'/images/tree/page.gif', - empty : contextPath +'/images/tree/empty.gif', - line :contextPath + '/images/tree/line.gif', - join :contextPath + '/images/tree/join.gif', - joinBottom :contextPath + '/images/tree/joinbottom.gif', - plus : contextPath +'/images/tree/plus.gif', - plusBottom : contextPath +'/images/tree/plusbottom.gif', - minus : contextPath +'/images/tree/minus.gif', - minusBottom :contextPath + '/images/tree/minusbottom.gif', - nlPlus : contextPath +'/images/tree/nolines_plus.gif', - nlMinus : contextPath +'/images/tree/nolines_minus.gif' - }; - this.obj = objName; - this.aNodes = []; - this.aIndent = []; - this.root = new Node(-1); - this.selectedNode = null; - this.selectedFound = false; - this.completed = false; -}; - -// Adds a new node to the node array -dTree.prototype.add = function(id, pid, name, url, title, target, icon, iconOpen, open) { - this.aNodes[this.aNodes.length] = new Node(id, pid, name, url, title, target, icon, iconOpen, open); -}; - -// Open/close all nodes -dTree.prototype.openAll = function() { - this.oAll(true); -}; -dTree.prototype.closeAll = function() { - this.oAll(false); -}; - -// Outputs the tree to the page -dTree.prototype.toString = function() { - var str = '

    \n'; - if (document.getElementById) { - if (this.config.useCookies) this.selectedNode = this.getSelected(); - str += this.addNode(this.root); - } else str += 'Browser not supported.'; - str += '
    '; - if (!this.selectedFound) this.selectedNode = null; - this.completed = true; - return str; -}; - -// Creates the tree structure -dTree.prototype.addNode = function(pNode) { - var str = ''; - var n=0; - if (this.config.inOrder) n = pNode._ai; - for (n; n'; - } - if (node.url) { - str += ''; - str += node.name; - if (node.url || ((!this.config.folderLinks || !node.url) && node._hc)) str += ''; - str += ''; - if (node._hc) { - str += '
    '; - str += this.addNode(node); - str += '
    '; - } - this.aIndent.pop(); - return str; -}; - -// Adds the empty and line icons -dTree.prototype.indent = function(node, nodeId) { - var str = ''; - if (this.root.id != node.pid) { - for (var n=0; n'; - (node._ls) ? this.aIndent.push(0) : this.aIndent.push(1); - if (node._hc) { - str += ''; - } else str += ''; - } - return str; -}; - -// Checks if a node has any children and if it is the last sibling -dTree.prototype.setCS = function(node) { - var lastId; - for (var n=0; n0) window.scrollBy(0,0); - return element; -} - -Element.getOpacity = function(element){ - return $(element).getStyle('opacity'); -} - -Element.setOpacity = function(element, value){ - return $(element).setStyle({opacity:value}); -} - -Element.getInlineOpacity = function(element){ - return $(element).style.opacity || ''; -} - -Element.forceRerendering = function(element) { - try { - element = $(element); - var n = document.createTextNode(' '); - element.appendChild(n); - element.removeChild(n); - } catch(e) { } -}; - -/*--------------------------------------------------------------------------*/ - -Array.prototype.call = function() { - var args = arguments; - this.each(function(f){ f.apply(this, args) }); -} - -/*--------------------------------------------------------------------------*/ - -var Effect = { - _elementDoesNotExistError: { - name: 'ElementDoesNotExistError', - message: 'The specified DOM element does not exist, but is required for this effect to operate' - }, - tagifyText: function(element) { - if(typeof Builder == 'undefined') - throw("Effect.tagifyText requires including script.aculo.us' builder.js library"); - - var tagifyStyle = 'position:relative'; - if(/MSIE/.test(navigator.userAgent) && !window.opera) tagifyStyle += ';zoom:1'; - - element = $(element); - $A(element.childNodes).each( function(child) { - if(child.nodeType==3) { - child.nodeValue.toArray().each( function(character) { - element.insertBefore( - Builder.node('span',{style: tagifyStyle}, - character == ' ' ? String.fromCharCode(160) : character), - child); - }); - Element.remove(child); - } - }); - }, - multiple: function(element, effect) { - var elements; - if(((typeof element == 'object') || - (typeof element == 'function')) && - (element.length)) - elements = element; - else - elements = $(element).childNodes; - - var options = Object.extend({ - speed: 0.1, - delay: 0.0 - }, arguments[2] || {}); - var masterDelay = options.delay; - - $A(elements).each( function(element, index) { - new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay })); - }); - }, - PAIRS: { - 'slide': ['SlideDown','SlideUp'], - 'blind': ['BlindDown','BlindUp'], - 'appear': ['Appear','Fade'] - }, - toggle: function(element, effect) { - element = $(element); - effect = (effect || 'appear').toLowerCase(); - var options = Object.extend({ - queue: { position:'end', scope:(element.id || 'global'), limit: 1 } - }, arguments[2] || {}); - Effect[element.visible() ? - Effect.PAIRS[effect][1] : Effect.PAIRS[effect][0]](element, options); - } -}; - -var Effect2 = Effect; // deprecated - -/* ------------- transitions ------------- */ - -Effect.Transitions = { - linear: Prototype.K, - sinoidal: function(pos) { - return (-Math.cos(pos*Math.PI)/2) + 0.5; - }, - reverse: function(pos) { - return 1-pos; - }, - flicker: function(pos) { - return ((-Math.cos(pos*Math.PI)/4) + 0.75) + Math.random()/4; - }, - wobble: function(pos) { - return (-Math.cos(pos*Math.PI*(9*pos))/2) + 0.5; - }, - pulse: function(pos, pulses) { - pulses = pulses || 5; - return ( - Math.round((pos % (1/pulses)) * pulses) == 0 ? - ((pos * pulses * 2) - Math.floor(pos * pulses * 2)) : - 1 - ((pos * pulses * 2) - Math.floor(pos * pulses * 2)) - ); - }, - none: function(pos) { - return 0; - }, - full: function(pos) { - return 1; - } -}; - -/* ------------- core effects ------------- */ - -Effect.ScopedQueue = Class.create(); -Object.extend(Object.extend(Effect.ScopedQueue.prototype, Enumerable), { - initialize: function() { - this.effects = []; - this.interval = null; - }, - _each: function(iterator) { - this.effects._each(iterator); - }, - add: function(effect) { - var timestamp = new Date().getTime(); - - var position = (typeof effect.options.queue == 'string') ? - effect.options.queue : effect.options.queue.position; - - switch(position) { - case 'front': - // move unstarted effects after this effect - this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) { - e.startOn += effect.finishOn; - e.finishOn += effect.finishOn; - }); - break; - case 'with-last': - timestamp = this.effects.pluck('startOn').max() || timestamp; - break; - case 'end': - // start effect after last queued effect has finished - timestamp = this.effects.pluck('finishOn').max() || timestamp; - break; - } - - effect.startOn += timestamp; - effect.finishOn += timestamp; - - if(!effect.options.queue.limit || (this.effects.length < effect.options.queue.limit)) - this.effects.push(effect); - - if(!this.interval) - this.interval = setInterval(this.loop.bind(this), 15); - }, - remove: function(effect) { - this.effects = this.effects.reject(function(e) { return e==effect }); - if(this.effects.length == 0) { - clearInterval(this.interval); - this.interval = null; - } - }, - loop: function() { - var timePos = new Date().getTime(); - for(var i=0, len=this.effects.length;i= this.startOn) { - if(timePos >= this.finishOn) { - this.render(1.0); - this.cancel(); - this.event('beforeFinish'); - if(this.finish) this.finish(); - this.event('afterFinish'); - return; - } - var pos = (timePos - this.startOn) / (this.finishOn - this.startOn); - var frame = Math.round(pos * this.options.fps * this.options.duration); - if(frame > this.currentFrame) { - this.render(pos); - this.currentFrame = frame; - } - } - }, - render: function(pos) { - if(this.state == 'idle') { - this.state = 'running'; - this.event('beforeSetup'); - if(this.setup) this.setup(); - this.event('afterSetup'); - } - if(this.state == 'running') { - if(this.options.transition) pos = this.options.transition(pos); - pos *= (this.options.to-this.options.from); - pos += this.options.from; - this.position = pos; - this.event('beforeUpdate'); - if(this.update) this.update(pos); - this.event('afterUpdate'); - } - }, - cancel: function() { - if(!this.options.sync) - Effect.Queues.get(typeof this.options.queue == 'string' ? - 'global' : this.options.queue.scope).remove(this); - this.state = 'finished'; - }, - event: function(eventName) { - if(this.options[eventName + 'Internal']) this.options[eventName + 'Internal'](this); - if(this.options[eventName]) this.options[eventName](this); - }, - inspect: function() { - var data = $H(); - for(property in this) - if(typeof this[property] != 'function') data[property] = this[property]; - return '#'; - } -} - -Effect.Parallel = Class.create(); -Object.extend(Object.extend(Effect.Parallel.prototype, Effect.Base.prototype), { - initialize: function(effects) { - this.effects = effects || []; - this.start(arguments[1]); - }, - update: function(position) { - this.effects.invoke('render', position); - }, - finish: function(position) { - this.effects.each( function(effect) { - effect.render(1.0); - effect.cancel(); - effect.event('beforeFinish'); - if(effect.finish) effect.finish(position); - effect.event('afterFinish'); - }); - } -}); - -Effect.Event = Class.create(); -Object.extend(Object.extend(Effect.Event.prototype, Effect.Base.prototype), { - initialize: function() { - var options = Object.extend({ - duration: 0 - }, arguments[0] || {}); - this.start(options); - }, - update: Prototype.emptyFunction -}); - -Effect.Opacity = Class.create(); -Object.extend(Object.extend(Effect.Opacity.prototype, Effect.Base.prototype), { - initialize: function(element) { - this.element = $(element); - if(!this.element) throw(Effect._elementDoesNotExistError); - // make this work on IE on elements without 'layout' - if(/MSIE/.test(navigator.userAgent) && !window.opera && (!this.element.currentStyle.hasLayout)) - this.element.setStyle({zoom: 1}); - var options = Object.extend({ - from: this.element.getOpacity() || 0.0, - to: 1.0 - }, arguments[1] || {}); - this.start(options); - }, - update: function(position) { - this.element.setOpacity(position); - } -}); - -Effect.Move = Class.create(); -Object.extend(Object.extend(Effect.Move.prototype, Effect.Base.prototype), { - initialize: function(element) { - this.element = $(element); - if(!this.element) throw(Effect._elementDoesNotExistError); - var options = Object.extend({ - x: 0, - y: 0, - mode: 'relative' - }, arguments[1] || {}); - this.start(options); - }, - setup: function() { - // Bug in Opera: Opera returns the "real" position of a static element or - // relative element that does not have top/left explicitly set. - // ==> Always set top and left for position relative elements in your stylesheets - // (to 0 if you do not need them) - this.element.makePositioned(); - this.originalLeft = parseFloat(this.element.getStyle('left') || '0'); - this.originalTop = parseFloat(this.element.getStyle('top') || '0'); - if(this.options.mode == 'absolute') { - // absolute movement, so we need to calc deltaX and deltaY - this.options.x = this.options.x - this.originalLeft; - this.options.y = this.options.y - this.originalTop; - } - }, - update: function(position) { - this.element.setStyle({ - left: Math.round(this.options.x * position + this.originalLeft) + 'px', - top: Math.round(this.options.y * position + this.originalTop) + 'px' - }); - } -}); - -// for backwards compatibility -Effect.MoveBy = function(element, toTop, toLeft) { - return new Effect.Move(element, - Object.extend({ x: toLeft, y: toTop }, arguments[3] || {})); -}; - -Effect.Scale = Class.create(); -Object.extend(Object.extend(Effect.Scale.prototype, Effect.Base.prototype), { - initialize: function(element, percent) { - this.element = $(element); - if(!this.element) throw(Effect._elementDoesNotExistError); - var options = Object.extend({ - scaleX: true, - scaleY: true, - scaleContent: true, - scaleFromCenter: false, - scaleMode: 'box', // 'box' or 'contents' or {} with provided values - scaleFrom: 100.0, - scaleTo: percent - }, arguments[2] || {}); - this.start(options); - }, - setup: function() { - this.restoreAfterFinish = this.options.restoreAfterFinish || false; - this.elementPositioning = this.element.getStyle('position'); - - this.originalStyle = {}; - ['top','left','width','height','fontSize'].each( function(k) { - this.originalStyle[k] = this.element.style[k]; - }.bind(this)); - - this.originalTop = this.element.offsetTop; - this.originalLeft = this.element.offsetLeft; - - var fontSize = this.element.getStyle('font-size') || '100%'; - ['em','px','%','pt'].each( function(fontSizeType) { - if(fontSize.indexOf(fontSizeType)>0) { - this.fontSize = parseFloat(fontSize); - this.fontSizeType = fontSizeType; - } - }.bind(this)); - - this.factor = (this.options.scaleTo - this.options.scaleFrom)/100; - - this.dims = null; - if(this.options.scaleMode=='box') - this.dims = [this.element.offsetHeight, this.element.offsetWidth]; - if(/^content/.test(this.options.scaleMode)) - this.dims = [this.element.scrollHeight, this.element.scrollWidth]; - if(!this.dims) - this.dims = [this.options.scaleMode.originalHeight, - this.options.scaleMode.originalWidth]; - }, - update: function(position) { - var currentScale = (this.options.scaleFrom/100.0) + (this.factor * position); - if(this.options.scaleContent && this.fontSize) - this.element.setStyle({fontSize: this.fontSize * currentScale + this.fontSizeType }); - this.setDimensions(this.dims[0] * currentScale, this.dims[1] * currentScale); - }, - finish: function(position) { - if(this.restoreAfterFinish) this.element.setStyle(this.originalStyle); - }, - setDimensions: function(height, width) { - var d = {}; - if(this.options.scaleX) d.width = Math.round(width) + 'px'; - if(this.options.scaleY) d.height = Math.round(height) + 'px'; - if(this.options.scaleFromCenter) { - var topd = (height - this.dims[0])/2; - var leftd = (width - this.dims[1])/2; - if(this.elementPositioning == 'absolute') { - if(this.options.scaleY) d.top = this.originalTop-topd + 'px'; - if(this.options.scaleX) d.left = this.originalLeft-leftd + 'px'; - } else { - if(this.options.scaleY) d.top = -topd + 'px'; - if(this.options.scaleX) d.left = -leftd + 'px'; - } - } - this.element.setStyle(d); - } -}); - -Effect.Highlight = Class.create(); -Object.extend(Object.extend(Effect.Highlight.prototype, Effect.Base.prototype), { - initialize: function(element) { - this.element = $(element); - if(!this.element) throw(Effect._elementDoesNotExistError); - var options = Object.extend({ startcolor: '#ffff99' }, arguments[1] || {}); - this.start(options); - }, - setup: function() { - // Prevent executing on elements not in the layout flow - if(this.element.getStyle('display')=='none') { this.cancel(); return; } - // Disable background image during the effect - this.oldStyle = {}; - if (!this.options.keepBackgroundImage) { - this.oldStyle.backgroundImage = this.element.getStyle('background-image'); - this.element.setStyle({backgroundImage: 'none'}); - } - if(!this.options.endcolor) - this.options.endcolor = this.element.getStyle('background-color').parseColor('#ffffff'); - if(!this.options.restorecolor) - this.options.restorecolor = this.element.getStyle('background-color'); - // init color calculations - this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this)); - this._delta = $R(0,2).map(function(i){ return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i] }.bind(this)); - }, - update: function(position) { - this.element.setStyle({backgroundColor: $R(0,2).inject('#',function(m,v,i){ - return m+(Math.round(this._base[i]+(this._delta[i]*position)).toColorPart()); }.bind(this)) }); - }, - finish: function() { - this.element.setStyle(Object.extend(this.oldStyle, { - backgroundColor: this.options.restorecolor - })); - } -}); - -Effect.ScrollTo = Class.create(); -Object.extend(Object.extend(Effect.ScrollTo.prototype, Effect.Base.prototype), { - initialize: function(element) { - this.element = $(element); - this.start(arguments[1] || {}); - }, - setup: function() { - Position.prepare(); - var offsets = Position.cumulativeOffset(this.element); - if(this.options.offset) offsets[1] += this.options.offset; - var max = window.innerHeight ? - window.height - window.innerHeight : - document.body.scrollHeight - - (document.documentElement.clientHeight ? - document.documentElement.clientHeight : document.body.clientHeight); - this.scrollStart = Position.deltaY; - this.delta = (offsets[1] > max ? max : offsets[1]) - this.scrollStart; - }, - update: function(position) { - Position.prepare(); - window.scrollTo(Position.deltaX, - this.scrollStart + (position*this.delta)); - } -}); - -/* ------------- combination effects ------------- */ - -Effect.Fade = function(element) { - element = $(element); - var oldOpacity = element.getInlineOpacity(); - var options = Object.extend({ - from: element.getOpacity() || 1.0, - to: 0.0, - afterFinishInternal: function(effect) { - if(effect.options.to!=0) return; - effect.element.hide().setStyle({opacity: oldOpacity}); - }}, arguments[1] || {}); - return new Effect.Opacity(element,options); -} - -Effect.Appear = function(element) { - element = $(element); - var options = Object.extend({ - from: (element.getStyle('display') == 'none' ? 0.0 : element.getOpacity() || 0.0), - to: 1.0, - // force Safari to render floated elements properly - afterFinishInternal: function(effect) { - effect.element.forceRerendering(); - }, - beforeSetup: function(effect) { - effect.element.setOpacity(effect.options.from).show(); - }}, arguments[1] || {}); - return new Effect.Opacity(element,options); -} - -Effect.Puff = function(element) { - element = $(element); - var oldStyle = { - opacity: element.getInlineOpacity(), - position: element.getStyle('position'), - top: element.style.top, - left: element.style.left, - width: element.style.width, - height: element.style.height - }; - return new Effect.Parallel( - [ new Effect.Scale(element, 200, - { sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }), - new Effect.Opacity(element, { sync: true, to: 0.0 } ) ], - Object.extend({ duration: 1.0, - beforeSetupInternal: function(effect) { - Position.absolutize(effect.effects[0].element) - }, - afterFinishInternal: function(effect) { - effect.effects[0].element.hide().setStyle(oldStyle); } - }, arguments[1] || {}) - ); -} - -Effect.BlindUp = function(element) { - element = $(element); - element.makeClipping(); - return new Effect.Scale(element, 0, - Object.extend({ scaleContent: false, - scaleX: false, - restoreAfterFinish: true, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping(); - } - }, arguments[1] || {}) - ); -} - -Effect.BlindDown = function(element) { - element = $(element); - var elementDimensions = element.getDimensions(); - return new Effect.Scale(element, 100, Object.extend({ - scaleContent: false, - scaleX: false, - scaleFrom: 0, - scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, - restoreAfterFinish: true, - afterSetup: function(effect) { - effect.element.makeClipping().setStyle({height: '0px'}).show(); - }, - afterFinishInternal: function(effect) { - effect.element.undoClipping(); - } - }, arguments[1] || {})); -} - -Effect.SwitchOff = function(element) { - element = $(element); - var oldOpacity = element.getInlineOpacity(); - return new Effect.Appear(element, Object.extend({ - duration: 0.4, - from: 0, - transition: Effect.Transitions.flicker, - afterFinishInternal: function(effect) { - new Effect.Scale(effect.element, 1, { - duration: 0.3, scaleFromCenter: true, - scaleX: false, scaleContent: false, restoreAfterFinish: true, - beforeSetup: function(effect) { - effect.element.makePositioned().makeClipping(); - }, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping().undoPositioned().setStyle({opacity: oldOpacity}); - } - }) - } - }, arguments[1] || {})); -} - -Effect.DropOut = function(element) { - element = $(element); - var oldStyle = { - top: element.getStyle('top'), - left: element.getStyle('left'), - opacity: element.getInlineOpacity() }; - return new Effect.Parallel( - [ new Effect.Move(element, {x: 0, y: 100, sync: true }), - new Effect.Opacity(element, { sync: true, to: 0.0 }) ], - Object.extend( - { duration: 0.5, - beforeSetup: function(effect) { - effect.effects[0].element.makePositioned(); - }, - afterFinishInternal: function(effect) { - effect.effects[0].element.hide().undoPositioned().setStyle(oldStyle); - } - }, arguments[1] || {})); -} - -Effect.Shake = function(element) { - element = $(element); - var oldStyle = { - top: element.getStyle('top'), - left: element.getStyle('left') }; - return new Effect.Move(element, - { x: 20, y: 0, duration: 0.05, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: -40, y: 0, duration: 0.1, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: 40, y: 0, duration: 0.1, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: -40, y: 0, duration: 0.1, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: 40, y: 0, duration: 0.1, afterFinishInternal: function(effect) { - new Effect.Move(effect.element, - { x: -20, y: 0, duration: 0.05, afterFinishInternal: function(effect) { - effect.element.undoPositioned().setStyle(oldStyle); - }}) }}) }}) }}) }}) }}); -} - -Effect.SlideDown = function(element) { - element = $(element).cleanWhitespace(); - // SlideDown need to have the content of the element wrapped in a container element with fixed height! - var oldInnerBottom = element.down().getStyle('bottom'); - var elementDimensions = element.getDimensions(); - return new Effect.Scale(element, 100, Object.extend({ - scaleContent: false, - scaleX: false, - scaleFrom: window.opera ? 0 : 1, - scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, - restoreAfterFinish: true, - afterSetup: function(effect) { - effect.element.makePositioned(); - effect.element.down().makePositioned(); - if(window.opera) effect.element.setStyle({top: ''}); - effect.element.makeClipping().setStyle({height: '0px'}).show(); - }, - afterUpdateInternal: function(effect) { - effect.element.down().setStyle({bottom: - (effect.dims[0] - effect.element.clientHeight) + 'px' }); - }, - afterFinishInternal: function(effect) { - effect.element.undoClipping().undoPositioned(); - effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom}); } - }, arguments[1] || {}) - ); -} - -Effect.SlideUp = function(element) { - element = $(element).cleanWhitespace(); - var oldInnerBottom = element.down().getStyle('bottom'); - return new Effect.Scale(element, window.opera ? 0 : 1, - Object.extend({ scaleContent: false, - scaleX: false, - scaleMode: 'box', - scaleFrom: 100, - restoreAfterFinish: true, - beforeStartInternal: function(effect) { - effect.element.makePositioned(); - effect.element.down().makePositioned(); - if(window.opera) effect.element.setStyle({top: ''}); - effect.element.makeClipping().show(); - }, - afterUpdateInternal: function(effect) { - effect.element.down().setStyle({bottom: - (effect.dims[0] - effect.element.clientHeight) + 'px' }); - }, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping().undoPositioned().setStyle({bottom: oldInnerBottom}); - effect.element.down().undoPositioned(); - } - }, arguments[1] || {}) - ); -} - -// Bug in opera makes the TD containing this element expand for a instance after finish -Effect.Squish = function(element) { - return new Effect.Scale(element, window.opera ? 1 : 0, { - restoreAfterFinish: true, - beforeSetup: function(effect) { - effect.element.makeClipping(); - }, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping(); - } - }); -} - -Effect.Grow = function(element) { - element = $(element); - var options = Object.extend({ - direction: 'center', - moveTransition: Effect.Transitions.sinoidal, - scaleTransition: Effect.Transitions.sinoidal, - opacityTransition: Effect.Transitions.full - }, arguments[1] || {}); - var oldStyle = { - top: element.style.top, - left: element.style.left, - height: element.style.height, - width: element.style.width, - opacity: element.getInlineOpacity() }; - - var dims = element.getDimensions(); - var initialMoveX, initialMoveY; - var moveX, moveY; - - switch (options.direction) { - case 'top-left': - initialMoveX = initialMoveY = moveX = moveY = 0; - break; - case 'top-right': - initialMoveX = dims.width; - initialMoveY = moveY = 0; - moveX = -dims.width; - break; - case 'bottom-left': - initialMoveX = moveX = 0; - initialMoveY = dims.height; - moveY = -dims.height; - break; - case 'bottom-right': - initialMoveX = dims.width; - initialMoveY = dims.height; - moveX = -dims.width; - moveY = -dims.height; - break; - case 'center': - initialMoveX = dims.width / 2; - initialMoveY = dims.height / 2; - moveX = -dims.width / 2; - moveY = -dims.height / 2; - break; - } - - return new Effect.Move(element, { - x: initialMoveX, - y: initialMoveY, - duration: 0.01, - beforeSetup: function(effect) { - effect.element.hide().makeClipping().makePositioned(); - }, - afterFinishInternal: function(effect) { - new Effect.Parallel( - [ new Effect.Opacity(effect.element, { sync: true, to: 1.0, from: 0.0, transition: options.opacityTransition }), - new Effect.Move(effect.element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition }), - new Effect.Scale(effect.element, 100, { - scaleMode: { originalHeight: dims.height, originalWidth: dims.width }, - sync: true, scaleFrom: window.opera ? 1 : 0, transition: options.scaleTransition, restoreAfterFinish: true}) - ], Object.extend({ - beforeSetup: function(effect) { - effect.effects[0].element.setStyle({height: '0px'}).show(); - }, - afterFinishInternal: function(effect) { - effect.effects[0].element.undoClipping().undoPositioned().setStyle(oldStyle); - } - }, options) - ) - } - }); -} - -Effect.Shrink = function(element) { - element = $(element); - var options = Object.extend({ - direction: 'center', - moveTransition: Effect.Transitions.sinoidal, - scaleTransition: Effect.Transitions.sinoidal, - opacityTransition: Effect.Transitions.none - }, arguments[1] || {}); - var oldStyle = { - top: element.style.top, - left: element.style.left, - height: element.style.height, - width: element.style.width, - opacity: element.getInlineOpacity() }; - - var dims = element.getDimensions(); - var moveX, moveY; - - switch (options.direction) { - case 'top-left': - moveX = moveY = 0; - break; - case 'top-right': - moveX = dims.width; - moveY = 0; - break; - case 'bottom-left': - moveX = 0; - moveY = dims.height; - break; - case 'bottom-right': - moveX = dims.width; - moveY = dims.height; - break; - case 'center': - moveX = dims.width / 2; - moveY = dims.height / 2; - break; - } - - return new Effect.Parallel( - [ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, transition: options.opacityTransition }), - new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, transition: options.scaleTransition, restoreAfterFinish: true}), - new Effect.Move(element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition }) - ], Object.extend({ - beforeStartInternal: function(effect) { - effect.effects[0].element.makePositioned().makeClipping(); - }, - afterFinishInternal: function(effect) { - effect.effects[0].element.hide().undoClipping().undoPositioned().setStyle(oldStyle); } - }, options) - ); -} - -Effect.Pulsate = function(element) { - element = $(element); - var options = arguments[1] || {}; - var oldOpacity = element.getInlineOpacity(); - var transition = options.transition || Effect.Transitions.sinoidal; - var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos, options.pulses)) }; - reverser.bind(transition); - return new Effect.Opacity(element, - Object.extend(Object.extend({ duration: 2.0, from: 0, - afterFinishInternal: function(effect) { effect.element.setStyle({opacity: oldOpacity}); } - }, options), {transition: reverser})); -} - -Effect.Fold = function(element) { - element = $(element); - var oldStyle = { - top: element.style.top, - left: element.style.left, - width: element.style.width, - height: element.style.height }; - element.makeClipping(); - return new Effect.Scale(element, 5, Object.extend({ - scaleContent: false, - scaleX: false, - afterFinishInternal: function(effect) { - new Effect.Scale(element, 1, { - scaleContent: false, - scaleY: false, - afterFinishInternal: function(effect) { - effect.element.hide().undoClipping().setStyle(oldStyle); - } }); - }}, arguments[1] || {})); -}; - -Effect.Morph = Class.create(); -Object.extend(Object.extend(Effect.Morph.prototype, Effect.Base.prototype), { - initialize: function(element) { - this.element = $(element); - if(!this.element) throw(Effect._elementDoesNotExistError); - var options = Object.extend({ - style: {} - }, arguments[1] || {}); - if (typeof options.style == 'string') { - if(options.style.indexOf(':') == -1) { - var cssText = '', selector = '.' + options.style; - $A(document.styleSheets).reverse().each(function(styleSheet) { - if (styleSheet.cssRules) cssRules = styleSheet.cssRules; - else if (styleSheet.rules) cssRules = styleSheet.rules; - $A(cssRules).reverse().each(function(rule) { - if (selector == rule.selectorText) { - cssText = rule.style.cssText; - throw $break; - } - }); - if (cssText) throw $break; - }); - this.style = cssText.parseStyle(); - options.afterFinishInternal = function(effect){ - effect.element.addClassName(effect.options.style); - effect.transforms.each(function(transform) { - if(transform.style != 'opacity') - effect.element.style[transform.style.camelize()] = ''; - }); - } - } else this.style = options.style.parseStyle(); - } else this.style = $H(options.style) - this.start(options); - }, - setup: function(){ - function parseColor(color){ - if(!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) color = '#ffffff'; - color = color.parseColor(); - return $R(0,2).map(function(i){ - return parseInt( color.slice(i*2+1,i*2+3), 16 ) - }); - } - this.transforms = this.style.map(function(pair){ - var property = pair[0].underscore().dasherize(), value = pair[1], unit = null; - - if(value.parseColor('#zzzzzz') != '#zzzzzz') { - value = value.parseColor(); - unit = 'color'; - } else if(property == 'opacity') { - value = parseFloat(value); - if(/MSIE/.test(navigator.userAgent) && !window.opera && (!this.element.currentStyle.hasLayout)) - this.element.setStyle({zoom: 1}); - } else if(Element.CSS_LENGTH.test(value)) - var components = value.match(/^([\+\-]?[0-9\.]+)(.*)$/), - value = parseFloat(components[1]), unit = (components.length == 3) ? components[2] : null; - - var originalValue = this.element.getStyle(property); - return $H({ - style: property, - originalValue: unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0), - targetValue: unit=='color' ? parseColor(value) : value, - unit: unit - }); - }.bind(this)).reject(function(transform){ - return ( - (transform.originalValue == transform.targetValue) || - ( - transform.unit != 'color' && - (isNaN(transform.originalValue) || isNaN(transform.targetValue)) - ) - ) - }); - }, - update: function(position) { - var style = $H(), value = null; - this.transforms.each(function(transform){ - value = transform.unit=='color' ? - $R(0,2).inject('#',function(m,v,i){ - return m+(Math.round(transform.originalValue[i]+ - (transform.targetValue[i] - transform.originalValue[i])*position)).toColorPart() }) : - transform.originalValue + Math.round( - ((transform.targetValue - transform.originalValue) * position) * 1000)/1000 + transform.unit; - style[transform.style] = value; - }); - this.element.setStyle(style); - } -}); - -Effect.Transform = Class.create(); -Object.extend(Effect.Transform.prototype, { - initialize: function(tracks){ - this.tracks = []; - this.options = arguments[1] || {}; - this.addTracks(tracks); - }, - addTracks: function(tracks){ - tracks.each(function(track){ - var data = $H(track).values().first(); - this.tracks.push($H({ - ids: $H(track).keys().first(), - effect: Effect.Morph, - options: { style: data } - })); - }.bind(this)); - return this; - }, - play: function(){ - return new Effect.Parallel( - this.tracks.map(function(track){ - var elements = [$(track.ids) || $$(track.ids)].flatten(); - return elements.map(function(e){ return new track.effect(e, Object.extend({ sync:true }, track.options)) }); - }).flatten(), - this.options - ); - } -}); - -Element.CSS_PROPERTIES = $w( - 'backgroundColor backgroundPosition borderBottomColor borderBottomStyle ' + - 'borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth ' + - 'borderRightColor borderRightStyle borderRightWidth borderSpacing ' + - 'borderTopColor borderTopStyle borderTopWidth bottom clip color ' + - 'fontSize fontWeight height left letterSpacing lineHeight ' + - 'marginBottom marginLeft marginRight marginTop markerOffset maxHeight '+ - 'maxWidth minHeight minWidth opacity outlineColor outlineOffset ' + - 'outlineWidth paddingBottom paddingLeft paddingRight paddingTop ' + - 'right textIndent top width wordSpacing zIndex'); - -Element.CSS_LENGTH = /^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/; - -String.prototype.parseStyle = function(){ - var element = Element.extend(document.createElement('div')); - element.innerHTML = '
    '; - var style = element.down().style, styleRules = $H(); - - Element.CSS_PROPERTIES.each(function(property){ - if(style[property]) styleRules[property] = style[property]; - }); - if(/MSIE/.test(navigator.userAgent) && !window.opera && this.indexOf('opacity') > -1) { - styleRules.opacity = this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]; - } - return styleRules; -}; - -Element.morph = function(element, style) { - new Effect.Morph(element, Object.extend({ style: style }, arguments[2] || {})); - return element; -}; - -['setOpacity','getOpacity','getInlineOpacity','forceRerendering','setContentZoom', - 'collectTextNodes','collectTextNodesIgnoreClass','morph'].each( - function(f) { Element.Methods[f] = Element[f]; } -); - -Element.Methods.visualEffect = function(element, effect, options) { - s = effect.gsub(/_/, '-').camelize(); - effect_class = s.charAt(0).toUpperCase() + s.substring(1); - new Effect[effect_class](element, options); - return $(element); -}; - -Element.addMethods(); \ No newline at end of file diff --git a/zioinfo/js/flash.js b/zioinfo/js/flash.js deleted file mode 100644 index a5cccd45..00000000 --- a/zioinfo/js/flash.js +++ /dev/null @@ -1,9 +0,0 @@ -function ShowFlash(url, width, height) { - document.write(''); - document.write(''); - document.write(''); - document.write(''); - document.write(''); - document.write(''); - document.write(''); -} diff --git a/zioinfo/js/form.js b/zioinfo/js/form.js deleted file mode 100644 index 877bd7e0..00000000 --- a/zioinfo/js/form.js +++ /dev/null @@ -1,123 +0,0 @@ -/*------------------------------------------------------------------------------ - * 1. ϸ: form.js - * 2. : Form ó õ Լ Ѵ. - * 3. : - * 4. ۼ: - * 5. ۼ: 2006.10.11. - -----------------------------------------------------------------------------*/ - -function getSelectedValue(selectObj) { - var selectObj = ref(selectObj); - var selectedIndex = selectObj.selectedIndex; - - return selectObj.options[selectedIndex].value; -} - - -/** - * Select ü 迭 ִ Option ü - * Ѵ. ־ insertIndex - * ä Ƿ insertIndex ׸ - * ´. - * - * @param selectObj Option ׸ Select ü Ȥ ID. - * @param optionArr Option ׸ ִ 2 迭 ü. - * 迭 迭 index 0ΰ value - * 1 text Ѵ. - * @param insertIndex Option ߰ Index. - * ִ Index ׸ ȴ. - */ -function setOption(selectObj, optionArr, insertIndex) { - if ( typeof(selectObj) == "string" ) selectObj = document.getElementById(selectObj); - - if ( insertIndex == undefined ) insertIndex = 0; - - selectObj.options.length = insertIndex ; - - if ( optionArr == undefined || optionArr == null || optionArr.length == 0 ) return; - - for ( var i = 0; i < optionArr.length; i++ ) { - var text = "(" + optionArr[i][0] + ") " + optionArr[i][1]; - - selectObj.options[i + 1] = new Option(text, optionArr[i][0]); - } -} - - -/** - * Select ü ־ ִ ã - * Index ش. -1 ش. - * - * @param selectObj Select ü Ȥ ID. - * @param value Index ã ϴ . - * - * @return selectObj Option ׸ value Ӽ ־ ׸ Index. - * -1. - */ -function indexOfSelect(selectObj, value) { - if ( typeof(selectObj) == "string" ) selectObj = document.getElementById(selectObj); - - var index = -1; - - for ( var i = 0; i < selectObj.length; i++ ) { - if ( selectObj.options[i].value == value ) { - index = i; - break; - } - } - - return index; -} - - -/** - * Select option value ׸ - * option õ Ѵ. - * - * @param selectObj Select ü Ȥ ID. - * @param value õ Ϸ . - */ -function setSelect(selectObj, value) { - if ( typeof(selectObj) == "string" ) selectObj = document.getElementById(selectObj); - - if ( value == undefined ) value = ""; - - selectObj.selectedIndex = indexOfSelect(selectObj, value); -} - - -var ENABLED_BGCOLOR = ""; -var DISABLED_BGCOLOR = "#CDCDCD"; - -/** - * ־ ü Disable θ disabled ϰ - * Ѵ. - * - * @param obj Disabled θ ü Ȥ ID. - * @param disabled Disabled . Disable Ű true, Enable Ű false. - */ -function setDisabled(obj, disabled) { - if ( typeof(obj) == "string" ) obj = document.getElementById(obj); - - obj.disabled = disabled; - - obj.style.backgroundColor = disabled ? DISABLED_BGCOLOR : ""; -} - - -var READONLY_BGCOLOR = "#EFEFEF"; - -/** - * ־ ü ReadOnly θ disabled ϰ - * Ѵ. - * - * @param obj readOnly θ ü Ȥ ID. - * @param readOnly ReadOnly . readOnly Ű true, Enable Ű false. - */ -function setReadOnly(obj, readonly) { - if ( typeof(obj) == "string" ) obj = document.getElementById(obj); - - obj.readOnly = readonly; - - obj.style.backgroundColor = readonly ? READONLY_BGCOLOR : ""; -} diff --git a/zioinfo/js/jscalendar-1.0/ChangeLog b/zioinfo/js/jscalendar-1.0/ChangeLog deleted file mode 100644 index 712f7737..00000000 --- a/zioinfo/js/jscalendar-1.0/ChangeLog +++ /dev/null @@ -1,761 +0,0 @@ -2005-03-07 Mihai Bazon - - * skins/aqua/theme.css: *** empty log message *** - - * release-notes.html: updated release notes - - * calendar-setup.js: - use a better approach to initialize the calendar--don't call _init twice, - it's the most time consuming function in the calendar. Instead, determine - the date beforehand if possible and pass it to the calendar at constructor. - - * calendar.js: - avoid keyboard operation when 'multiple dates' is set (very buggy for now) - - * calendar.js: - fixed keyboard handling problems: now it works fine when "showsOtherMonths" - is passed; it also seems to be fine with disabled dates (won't normally - allow selection)--however this area is still likely to be buggy, i.e. in a - month that has all the dates disabled. - - * calendar.js: - some trivial performance improvements in the _init function - Added Date.parseDate (old Calendar.prototype.parseDate now calls this one) - -2005-03-05 Mihai Bazon - - * release-notes.html: updated release notes - - * dayinfo.html: *** empty log message *** - - * calendar-setup.js: - bugfix--update an inputField even if flat calendar is selected - - * calendar.js: - fixed bugs in parseDate function (if for some reason the input string is - totally broken, then check numbers for NaN and use values from the current - date instead) - - * make-release.pl: copy the skins subdirectory and all skins - - * index.html: added Aqua skin - - * skins/aqua/active-bg.gif, skins/aqua/dark-bg.gif, skins/aqua/hover-bg.gif, skins/aqua/menuarrow.gif, skins/aqua/normal-bg.gif, skins/aqua/rowhover-bg.gif, skins/aqua/status-bg.gif, skins/aqua/theme.css, skins/aqua/title-bg.gif, skins/aqua/today-bg.gif: - in the future, skins will go to this directory, each in a separate subdir; for now there's only Aqua, an excellent new skin - - * calendar.js: workaround IE bug, needed in the Aqua theme - don't hide select elements unless browser is IE or Opera - - * lang/calendar-bg.js, lang/calendar-big5-utf8.js, lang/calendar-big5.js, lang/calendar-br.js, lang/calendar-ca.js, lang/calendar-cs-utf8.js, lang/calendar-cs-win.js, lang/calendar-da.js, lang/calendar-de.js, lang/calendar-el.js, lang/calendar-en.js, lang/calendar-es.js, lang/calendar-fi.js, lang/calendar-fr.js, lang/calendar-he-utf8.js, lang/calendar-hu.js, lang/calendar-it.js, lang/calendar-ko-utf8.js, lang/calendar-ko.js, lang/calendar-lt-utf8.js, lang/calendar-lt.js, lang/calendar-lv.js, lang/calendar-nl.js, lang/calendar-no.js, lang/calendar-pl-utf8.js, lang/calendar-pl.js, lang/calendar-pt.js, lang/calendar-ro.js, lang/calendar-ru.js, lang/calendar-ru_win_.js, lang/calendar-si.js, lang/calendar-sk.js, lang/calendar-sp.js, lang/calendar-sv.js, lang/calendar-zh.js, lang/cn_utf8.js: - updated urls, copyright notices - - * doc/reference.tex: updated documentation - - * calendar.js, index.html: - renamed the global variable to _dynarch_popupCalendar to avoid name clashes - - * multiple-dates.html: start with an empty array - - * calendar.js: - fixed bugs in the time selector (12:XX pm was wrongfully understood as 12:XX am) - - * calendar.js: - using innerHTML instead of text nodes; works better in Safari and also makes - a smaller, cleaner code - -2005-03-04 Mihai Bazon - - * calendar.js: - fixed a performance regression that occurred after adding support for multiple dates - fixed the time selection bug (now it keeps time correctly) - clicking today will close the calendar if "today" is already selected - - * lang/cn_utf8.js: new translation - -2005-02-17 Mihai Bazon - - * lang/calendar-ar-utf8.zip: Added arabic translation - -2004-10-19 Mihai Bazon - - * lang/calendar-zh.js: updated - -2004-09-20 Mihai Bazon - - * lang/calendar-no.js: updated (Daniel Holmen) - -2004-09-20 Mihai Bazon - - * lang/calendar-no.js: updated (Daniel Holmen) - -2004-08-11 Mihai Bazon - - * lang/calendar-nl.js: updated language file (thanks to Arjen Duursma) - - * lang/calendar-sp.js: updated (thanks to Rafael Velasco) - -2004-07-21 Mihai Bazon - - * lang/calendar-br.js: updated - - * calendar-setup.js: fixed bug (dateText) - -2004-07-21 Mihai Bazon - - * lang/calendar-br.js: updated - - * calendar-setup.js: fixed bug (dateText) - -2004-07-04 Mihai Bazon - - * lang/calendar-lv.js: - added LV translation (thanks to Juris Valdovskis) - -2004-06-25 Mihai Bazon - - * calendar.js: - fixed bug in IE (el.calendar.tooltips is null or not an object) - -2004-06-24 Mihai Bazon - - * doc/reference.tex: fixed latex compilation - - * index.html: linking other sample files - - * calendar-setup.js, calendar.js, dayinfo.html: - ability to display day info (dateText parameter) + sample file - -2004-06-23 Mihai Bazon - - * doc/reference.tex, lang/calendar-bg.js, lang/calendar-br.js, lang/calendar-ca.js, lang/calendar-en.js, lang/calendar-es.js, lang/calendar-fr.js, lang/calendar-it.js, lang/calendar-ko-utf8.js, lang/calendar-ko.js, lang/calendar-nl.js, lang/calendar-sv.js, README, calendar.js, index.html: - email address changed - -2004-06-14 Mihai Bazon - - * lang/calendar-cs-utf8.js, lang/calendar-cs-win.js: - updated translations - - * calendar-system.css: added z-index to drop downs - - * lang/calendar-en.js: - first day of week can now be part of the language file - - * lang/calendar-es.js: - updated language file (thanks to Servilio Afre Puentes) - - * calendar-blue2.css, calendar-brown.css, calendar-green.css, calendar-tas.css, calendar-win2k-1.css, calendar-win2k-2.css, calendar-win2k-cold-1.css, calendar-win2k-cold-2.css, calendar-blue.css: - added z-index property to drop downs (fixes bug) - -2004-06-13 Mihai Bazon - - * calendar-setup.js: fixed bug (apply showOthers to flat calendars too) - -2004-06-06 Mihai Bazon - - * calendar-setup.js: - firstDay defaults to "null", in which case the value in the language file - will be used - - * calendar.js: - firstDayOfWeek can now default to a value specified in the language definition file - - * index.html: first day of week is now numeric - -2004-06-02 Mihai Bazon - - * calendar.js: added date tooltip function - -2004-05-28 Mihai Bazon - - * lang/calendar-br.js: updated (thanks to Marcos Pont) - - * calendar-setup.js: fixed small bug - -2004-05-01 Mihai Bazon - - * calendar-setup.js: returns the calendar object - -2004-04-28 Mihai Bazon - - * calendar-setup.js: - patch to read the date value from the inputField, according to ifFormat (if - both are passed), for flat calendars. (thanks Colin T. Hill) - -2004-04-20 Mihai Bazon - - * calendar-setup.js, calendar.js, multiple-dates.html: - added support for multiple dates selection - - * lang/calendar-nl.js: - updated Dutch translation, thanks to Jeroen Wolsink - - * lang/calendar-big5-utf8.js, lang/calendar-big5.js: - Traditional Chinese language (thanks GaryFu) - -2004-03-26 Mihai Bazon - - * lang/calendar-fr.js, lang/calendar-pt.js: updated - - * lang/calendar-ru_win_.js, lang/calendar-ru.js: - updated, thanks to Sly Golovanov - -2004-03-25 Mihai Bazon - - * lang/calendar-fr.js: updated (thanks to David Duret) - -2004-03-24 Mihai Bazon - - * lang/calendar-da.js: updated (thanks to Michael Thingmand Henriksen) - -2004-03-21 Mihai Bazon - - * lang/calendar-ca.js: updated (thanks to David Valls) - -2004-03-17 Mihai Bazon - - * lang/calendar-de.js: updated to UTF8 (thanks to Jack (tR)) - -2004-03-09 Mihai Bazon - - * lang/calendar-bg.js: Bulgarian translation - -2004-03-08 Mihai Bazon - - * lang/calendar-he-utf8.js: Hebrew translation (thanks to Idan Sofer) - - * lang/calendar-hu.js: updated (thanks to Istvan Karaszi) - -2004-02-27 Mihai Bazon - - * lang/calendar-it.js: updated (thanks to Fabio Di Bernardini) - -2004-02-25 Mihai Bazon - - * calendar.js: fix for Safari (thanks to Olivier Chirouze / XPWeb) - -2004-02-22 Mihai Bazon - - * lang/calendar-al.js: Albanian language file - -2004-02-17 Mihai Bazon - - * lang/calendar-fr.js: fixed - - * lang/calendar-fr.js: - FR translation updated (thanks to SIMON Alexandre) - - * lang/calendar-es.js: ES translation updated, thanks to David Gonzales - -2004-02-10 Mihai Bazon - - * lang/calendar-pt.js: - updated Portugese translation, thanks to Elcio Ferreira - -2004-02-09 Mihai Bazon - - * TODO: updated - -2004-02-06 Mihai Bazon - - * README: describe the PHP files - - * make-release.pl: includes php files - - * make-release.pl: ChangeLog included in the distribution (if found) - - * calendar.js, doc/reference.tex, index.html: switched to version 0.9.6 - - * doc/Calendar.setup.tex, doc/reference.tex: updated documentation - - * release-notes.html: updated release notes - - * calendar.js: Fixed bug: Feb/29 and year change now keeps Feb in view - - * calendar.js: fixed the "ESC" problem (call the close handler) - - * calendar.js: fixed day of year range (1 to 366 instead of 0 to 365) - - * calendar.js: fixed week number calculations - - * doc/reference.tex: fixed (date input format) - - * calendar.php: removed comment - - * calendar-blue.css, calendar-blue2.css, calendar-brown.css, calendar-green.css, calendar-system.css, calendar-tas.css, calendar-win2k-1.css, calendar-win2k-2.css, calendar-win2k-cold-1.css, calendar-win2k-cold-2.css, calendar.js: - workaround for IE bug (you can't normally specify through CSS the style for - an element having two classes or more; we had to change a classname) - - * calendar-blue.css, calendar-blue2.css, calendar-brown.css, calendar-green.css, calendar-system.css, calendar-tas.css, calendar-win2k-1.css, calendar-win2k-2.css, calendar-win2k-cold-1.css, calendar-win2k-cold-2.css: - smaller fonts on days that are in neighbor months - -2004-02-04 Mihai Bazon - - * index.html: first demo shows the "showOtherMonths" capability - - * calendar-setup.js: support new parameters in the calendar. - added: firstDay, showOthers, cache. - - * calendar-blue.css, calendar-blue2.css, calendar-brown.css, calendar-green.css, calendar-system.css, calendar-win2k-1.css, calendar-win2k-2.css, calendar-win2k-cold-1.css, calendar-win2k-cold-2.css, calendar.js, lang/calendar-en.js, lang/calendar-ro.js: - new parameters: firstDayOfWeek, showsOtherMonths; removed mondayFirst. - This adds support for setting any day to be the first day of week (by just - clicking the day name in the display); also, if showsOtherMonths is enabled - then dates belonging to adjacent months that are in the current view will be - displayed and the calendar will have a fixed height. - - all themes updated. - - * test.php: test for calendar.php - - * calendar.php: fixed bug (pass numeric values as numbers) - -2004-02-01 Mihai Bazon - - * calendar.php: added PHP wrapper - - * img.gif: icon updated - - * TODO: updated TODO list - -2004-01-27 Mihai Bazon - - * calendar.js: - Janusz Piwowarski sent over a patch for IE5 compatibility which is much more - elegant than the atrocities that I had wrote :-D I'm gettin' old.. Thanks Janusz! - - * lang/calendar-fi.js: updated - -2004-01-15 Mihai Bazon - - * TODO: updated TODO list - - * calendar-setup.js: default align changed to "Br" - - * doc/reference.tex: changed default value for "align" - - * calendar-setup.js: calling onchange event handler, if available - - * calendar-setup.js: added "position" option - - * simple-1.html: demonstrates "step" option - - * calendar-setup.js: added "step" option - - * calendar.js: added yearStep config parameter - - * calendar.js: - fixed parseDate routine (the NaN bug which occurred when there was a space - after the date and no time) - -2004-01-14 Mihai Bazon - - * lang/calendar-en.js: added "Time:" - - * test-position.html: test for the new position algorithm - - * index.html: do not destroy() the calendar - avoid bug in parseDate (%p must be separated by non-word characters) - - * menuarrow2.gif: for calendar-blue2.css - - * calendar-setup.js: honor "date" parameter if passed - - * calendar.js: IE5 support is back - performance improvements in IE6 (mouseover combo boxes) - display "Time:" beside the clock area, if defined in the language file - new positioning algorithm (try to keep the calendar in page) - rewrote parseDate a little cleaner - - * lang/calendar-el.js: - updated Greek translation (thanks Alexandros Pappas) - -2004-01-13 Mihai Bazon - - * index.html: added style blue2, using utf-8 instead of iso-8859-2 - - * calendar.js: performance under IE (which sucks, by the way) - - * doc/reference.tex: Sunny added to sponsor list - - * doc/Calendar.setup.tex: documenting parameter 'electric' - - * calendar-blue.css, calendar-blue2.css, calendar-brown.css, calendar-green.css, calendar-system.css, calendar-win2k-1.css, calendar-win2k-2.css, calendar-win2k-cold-1.css, calendar-win2k-cold-2.css: - fixed IE text size problems - -2004-01-08 Mihai Bazon - - * lang/calendar-pl.js: - Polish translation updated to UTF-8 (thanks to Artur Filipiak) - -2004-01-07 Mihai Bazon - - * lang/calendar-si.js: updated (David Milost) - - * lang/calendar-si.js: Slovenian translation (thanks to David Milost) - -2003-12-21 Mihai Bazon - - * TODO: updated TODO list - - * lang/calendar-de.js: German translation (thanks to Peter Strotmann) - -2003-12-19 Mihai Bazon - - * doc/reference.tex: Thank you, Ian Barrak - -2003-12-18 Mihai Bazon - - * doc/reference.tex: fixed documentation bug (thanks Mike) - -2003-12-05 Mihai Bazon - - * lang/calendar-ko-utf8.js: - UTF8 version of the Korean language (hopefully correct) - - * lang/calendar-pl-utf8.js, lang/calendar-pl.js: - updated Polish translation (thanks to Janusz Piwowarski) - -2003-12-04 Mihai Bazon - - * lang/calendar-fr.js: - French translation updated (thanks to Angiras Rama) - -2003-11-22 Mihai Bazon - - * lang/calendar-da.js: updated (thanks to Jesper M. Christensen) - -2003-11-20 Mihai Bazon - - * calendar-blue2.css, calendar-tas.css: - new styles (thanks to Wendall Mosemann for blue2, Mark Lynch for tas) - - * lang/calendar-lt-utf8.js, lang/calendar-lt.js: - Lithuanian translation (thanks to Martynas Majeris) - - * lang/calendar-sp.js: updated - -2003-11-17 Mihai Bazon - - * TODO: added TODO list - -2003-11-14 Mihai Bazon - - * lang/calendar-ko.js: Korean translation (thanks to Yourim Yi) - -2003-11-12 Mihai Bazon - - * lang/calendar-jp.js: small bug fixed (thanks to TAHARA Yusei) - -2003-11-10 Mihai Bazon - - * lang/calendar-fr.js: translation updated, thanks to Florent Ramiere - - * calendar-setup.js: - added new parameter: electric (if false then the field will not get updated on each move) - - * index.html: fixed DOCTYPE - -2003-11-07 Mihai Bazon - - * calendar-setup.js: - fixed minor problem (maybe we're passing object reference instead of ID for - the flat calendar parent) - -2003-11-06 Mihai Bazon - - * lang/calendar-fi.js: - added Finnish translation (thanks to Antti Tuppurainen) - -2003-11-05 Mihai Bazon - - * release-notes.html: fixed typo - - * doc/reference.tex, index.html, calendar.js: 0.9.5 - - * README: fixed license statement - - * release-notes.html: updated release notes (0.9.5) - -2003-11-03 Mihai Bazon - - * lang/calendar-de.js: - updated German translation (thanks to Gerhard Neiner) - - * calendar-setup.js: fixed license statement - - * calendar.js: whitespace - - * calendar.js: fixed license statement - - * calendar.js: - fixed positioning problem when input field is inside scrolled divs - -2003-11-01 Mihai Bazon - - * lang/calendar-af.js: Afrikaan language (thanks to Derick Olivier) - -2003-10-31 Mihai Bazon - - * lang/calendar-it.js: - updated IT translation (thanks to Christian Blaser) - - * lang/calendar-es.js: updated ES translation, thanks to Raul - -2003-10-30 Mihai Bazon - - * lang/calendar-hu.js: updated thanks to Istvan Karaszi - - * index.html, simple-1.html, simple-2.html, simple-3.html: - switched to utf-8 all encodings - - * lang/calendar-sk.js: - added Slovak translation (thanks to Peter Valach) - - * lang/calendar-ro.js: switched to utf-8 - -2003-10-29 Mihai Bazon - - * lang/calendar-es.js: - updated translation, thanks to Jose Ma. Martinez Miralles - - * doc/reference.tex: - fixed the footnote problem (thanks Dominique de Waleffe for the tip) - - * lang/calendar-ro.js: fixed typo - - * lang/calendar-sv.js: oops, license should be LGPL - - * lang/calendar-sw.js: new swedish translation is calendar-sv.js - - * menuarrow.gif, menuarrow.png: - oops, forgot little drop-down menu arrows - - * lang/calendar-sv.js: swedish translation thanks to Leonard Norrgard - - * index.html: oops, some other minor changes - - * index.html, release-notes.html: - latest changes in release-notes and index page for 0.9.4 - - * doc/reference.tex, calendar.js: - added %s date format (# of seconds since Epoch) - - * calendar.js: - A click on TODAY will not close the calendar, even in single-click mode - -2003-10-28 Mihai Bazon - - * index.html: previous cal.html - - * cal.html: moved to index.html - - * README, cal.html, doc/reference.tex, lang/calendar-de.js, lang/calendar-en.js, lang/calendar-ro.js, release-notes.html: - LGPL license, forever. - - * doc/Calendar.setup.tex, simple-1.html: - doc updated for the onUpdate parameter to Calendar.setup - -2003-10-26 Mihai Bazon - - * calendar.js: fixed bug (correct display of the dropdown menus) - - * doc/Calendar.setup.tex, doc/reference.tex, lang/calendar-de.js, lang/calendar-en.js, lang/calendar-ro.js, README, cal.html, calendar-blue.css, calendar-brown.css, calendar-green.css, calendar-setup.js, calendar-system.css, calendar-win2k-1.css, calendar-win2k-2.css, calendar-win2k-cold-1.css, calendar-win2k-cold-2.css, calendar.js, release-notes.html, simple-1.html, simple-3.html: - lots of changes for the 0.9.4 release (see the release-notes.html) - -2003-10-15 Mihai Bazon - - * doc/reference.tex: - documentation updated for 0.9.4 (not yet finished though) - -2003-10-07 Mihai Bazon - - * calendar.js, doc/reference.tex, release-notes.html, README, cal.html, calendar-setup.js: - modified project website - -2003-10-06 Mihai Bazon - - * calendar-setup.js: - added some properties (onSelect, onClose, date) (thanks altblue) - -2003-09-24 Mihai Bazon - - * simple-3.html: dateIsSpecial does not need the "date" argument ;-) - -2003-09-24 fsoft - - * calendar.js, simple-3.html: - added year, month, day to getDateStatus() function - -2003-09-24 Mihai Bazon - - * simple-3.html: example on how to use special dates - - * calendar-setup.js, calendar.js, simple-1.html: - support for special dates (thanks fabio) - -2003-09-17 Mihai Bazon - - * doc/reference.tex: fixed error in section 3. - -2003-08-01 Mihai Bazon - - * lang/calendar-jp.js: added Japanese translation - -2003-07-16 Mihai Bazon - - * simple-1.html: fixed problem with first example [IE,Opera] - -2003-07-09 Mihai Bazon - - * doc/Calendar.setup.tex: fixed typo (closing parenthesis) - - * lang/calendar-de.js: - added German translation, thanks to Hartwig Weinkauf - -2003-07-08 Mihai Bazon - - * cal.html: added link to release-notes - - * release-notes.html: 0.9.3 release notes - - * make-release.pl: - Script to create distribution archive. It needs some additional packages: - - - LaTeX - - tex2page - - jscrunch (JS compressor) - - * doc/html/makedoc.sh, doc/html/reference.css, doc/reference.tex, doc/makedoc.sh: - documentation updates... - - * calendar.js: added semicolon to make the code "compressible" - -2003-07-06 Mihai Bazon - - * doc/reference.tex: spell checked - - * doc/reference.tex: [minor] changed credits order - - * doc/reference.tex: various improvements and additions - - * doc/html/reference.css: minor eye-candy tweaks - -2003-07-05 Mihai Bazon - - * doc/html/Calendar.setup.html.tex, doc/html/makedoc.sh, doc/html/reference.css, doc/html/reference.t2p, doc/hyperref.cfg, doc/makedoc.sh, doc/reference.tex, doc/Calendar.setup.tex, doc/Calendar.setup.pdf.tex: - full documentation in LaTeX, for PDF and HTML formats - - * simple-2.html: - added demonstration of flat calendar with Calendar.setup - - * simple-1.html: - modified some links, added link to documentation, added demonstration of - disableFunc property - - * calendar-setup.js: added the ability to create flat calendar too - - * cal.html: added links to documentation and simple-[12].html pages - - * README: up-to-date... - - * calendar-setup.html: removed: the documentation is unified - -2003-07-03 Mihai Bazon - - * cal.html: some links to newly added files - - * calendar-setup.html, calendar-setup.js, img.gif, simple-1.html: - added some files to simplify calendar creation for non-(JS)-programmers - - * lang/calendar-zh.js: added simplified chinese (thanks ATang) - -2003-07-02 Mihai Bazon - - * calendar.js: * "yy"-related... [small fix] - - * calendar.js: - * #721833 fixed (yy format will understand years prior to 29 as 20xx) - - * calendar.js: * added refresh() function - - * calendar.js: * fixed bug when in single click mode - * added alignment options to "showAtElement" member function - -2003-06-25 Mihai Bazon - - * lang/calendar-pt.js: - added portugese translation (thanks Nuno Barreto) - -2003-06-24 Mihai Bazon - - * calendar.js: - call user handler when the date was changed using the keyboard - - * bugtest-hidden-selects.html: - file to test bug with hidden select-s (thanks Ying Zhang for reporting and for this test file) - - * lang/calendar-hr-utf8.js: - added croatian translation in utf8 (thanks Krunoslav Zubrinic) - -2003-06-23 Mihai Bazon - - * lang/calendar-hu.js: added hungarian translation - - * lang/calendar-hr.js: - added croatian translation (thanks to Krunoslav Zubrinic) - -2003-06-22 Mihai Bazon - - * calendar.js: - * #723335 fixed (clicking TODAY will not select the today date if the - disabledHandler rejects it) - - * cal.html: * new code for to work with fix for bug #703238 - * switch to new version - - * calendar.js: - * some patches to make code compatible with Opera 7 (well, almost compatible) - * bug #703238 fixed (fix breaks compatibility with older code that uses - calendar in single-click mode) - * bug #703814 fixed - -2003-04-09 Mihai Bazon - - * lang/calendar-tr.js: added turkish lang file - -2003-03-19 Mihai Bazon - - * lang/calendar-ru.js: russian translation added - - * lang/calendar-no.js: norwegian translation added - -2003-03-15 Mihai Bazon - - * lang/calendar-no.js: norwegian translation - -2003-03-12 Mihai Bazon - - * lang/calendar-pl.js: added polish translation - -2003-03-11 Mihai Bazon - - * calendar.js: - bugfix in parseDate (added base to parseInt, thanks Alan!) - -2003-03-05 Mihai Bazon - - * calendar.js, lang/calendar-br.js, lang/calendar-ca.js, lang/calendar-cs-win.js, lang/calendar-da.js, lang/calendar-du.js, lang/calendar-el.js, lang/calendar-en.js, lang/calendar-es.js, lang/calendar-fr.js, lang/calendar-it.js, lang/calendar-nl.js, lang/calendar-ro.js, lang/calendar-sp.js, lang/calendar-sw.js: - New file. - - * calendar.js, lang/calendar-br.js, lang/calendar-ca.js, lang/calendar-cs-win.js, lang/calendar-da.js, lang/calendar-du.js, lang/calendar-el.js, lang/calendar-en.js, lang/calendar-es.js, lang/calendar-fr.js, lang/calendar-it.js, lang/calendar-nl.js, lang/calendar-ro.js, lang/calendar-sp.js, lang/calendar-sw.js: - moved to CVS at sourceforge.net - release: 0.9.2 + new language packs - - - * README, cal.html, calendar-blue.css, calendar-brown.css, calendar-green.css, calendar-system.css, calendar-win2k-1.css, calendar-win2k-2.css, calendar-win2k-cold-1.css, calendar-win2k-cold-2.css: - New file. - - * README, cal.html, calendar-blue.css, calendar-brown.css, calendar-green.css, calendar-system.css, calendar-win2k-1.css, calendar-win2k-2.css, calendar-win2k-cold-1.css, calendar-win2k-cold-2.css: - moved to CVS at sourceforge.net - release: 0.9.2 + new language packs - - diff --git a/zioinfo/js/jscalendar-1.0/README b/zioinfo/js/jscalendar-1.0/README deleted file mode 100644 index 455ab3d4..00000000 --- a/zioinfo/js/jscalendar-1.0/README +++ /dev/null @@ -1,33 +0,0 @@ -The DHTML Calendar -------------------- - - Author: Mihai Bazon, - http://dynarch.com/mishoo/ - - This program is free software published under the - terms of the GNU Lesser General Public License. - - For the entire license text please refer to - http://www.gnu.org/licenses/lgpl.html - -Contents ---------- - - calendar.js -- the main program file - lang/*.js -- internalization files - *.css -- color themes - cal.html -- example usage file - doc/ -- documentation, in PDF and HTML - simple-1.html -- quick setup examples [popup calendars] - simple-2.html -- quick setup example for flat calendar - calendar.php -- PHP wrapper - test.php -- test file for the PHP wrapper - -Homepage ---------- - - For details and latest versions please refer to calendar - homepage, located on my website: - - http://dynarch.com/mishoo/calendar.epl - diff --git a/zioinfo/js/jscalendar-1.0/bugtest-hidden-selects.html b/zioinfo/js/jscalendar-1.0/bugtest-hidden-selects.html deleted file mode 100644 index 900bc17e..00000000 --- a/zioinfo/js/jscalendar-1.0/bugtest-hidden-selects.html +++ /dev/null @@ -1,108 +0,0 @@ - - - -Bug - - - - - - - - - - - - - -
    -Date: -
    - - -

    -
    -
    Visible <select>, hides and unhides as expected -
    - - -

    -
    Hidden <select>, it should stay hidden (but doesn't) -
    - - -

    -
    Hidden textbox below, it stays hidden as expected -
    - -

    - diff --git a/zioinfo/js/jscalendar-1.0/calendar-blue.css b/zioinfo/js/jscalendar-1.0/calendar-blue.css deleted file mode 100644 index 4875bf94..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar-blue.css +++ /dev/null @@ -1,232 +0,0 @@ -/* The main calendar widget. DIV containing a table. */ - -div.calendar { position: relative; width: 200px; } - -.calendar, .calendar table { - border: 1px solid #556; - font-size: 11px; - color: #000; - cursor: default; - background: #eef; - font-family: tahoma,verdana,sans-serif; -} - -/* Header part -- contains navigation buttons and day names. */ - -.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ - text-align: center; /* They are the navigation buttons */ - padding: 2px; /* Make the buttons seem like they're pressing */ -} - -.calendar .nav { - background: #778 url(menuarrow.gif) no-repeat 100% 100%; -} - -.calendar thead .title { /* This holds the current "month, year" */ - font-weight: bold; /* Pressing it will take you to the current date */ - text-align: center; - background: #fff; - color: #000; - padding: 2px; -} - -.calendar thead .headrow { /* Row containing navigation buttons */ - background: #778; - color: #fff; -} - -.calendar thead .daynames { /* Row containing the day names */ - background: #bdf; -} - -.calendar thead .name { /* Cells containing the day names */ - border-bottom: 1px solid #556; - padding: 2px; - text-align: center; - color: #000; -} - -.calendar thead .weekend { /* How a weekend day name shows in header */ - color: #a66; -} - -.calendar thead .hilite { /* How do the buttons in header appear when hover */ - background-color: #aaf; - color: #000; - border: 1px solid #04f; - padding: 1px; -} - -.calendar thead .active { /* Active (pressed) buttons in header */ - background-color: #77c; - padding: 2px 0px 0px 2px; -} - -/* The body part -- contains all the days in month. */ - -.calendar tbody .day { /* Cells containing month days dates */ - width: 2em; - color: #456; - text-align: right; - padding: 2px 4px 2px 2px; -} -.calendar tbody .day.othermonth { - font-size: 80%; - color: #bbb; -} -.calendar tbody .day.othermonth.oweekend { - color: #fbb; -} - -.calendar table .wn { - padding: 2px 3px 2px 2px; - border-right: 1px solid #000; - background: #bdf; -} - -.calendar tbody .rowhilite td { - background: #def; -} - -.calendar tbody .rowhilite td.wn { - background: #eef; -} - -.calendar tbody td.hilite { /* Hovered cells */ - background: #def; - padding: 1px 3px 1px 1px; - border: 1px solid #bbb; -} - -.calendar tbody td.active { /* Active (pressed) cells */ - background: #cde; - padding: 2px 2px 0px 2px; -} - -.calendar tbody td.selected { /* Cell showing today date */ - font-weight: bold; - border: 1px solid #000; - padding: 1px 3px 1px 1px; - background: #fff; - color: #000; -} - -.calendar tbody td.weekend { /* Cells showing weekend days */ - color: #a66; -} - -.calendar tbody td.today { /* Cell showing selected date */ - font-weight: bold; - color: #00f; -} - -.calendar tbody .disabled { color: #999; } - -.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ - visibility: hidden; -} - -.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ - display: none; -} - -/* The footer part -- status bar and "Close" button */ - -.calendar tfoot .footrow { /* The in footer (only one right now) */ - text-align: center; - background: #556; - color: #fff; -} - -.calendar tfoot .ttip { /* Tooltip (status bar) cell */ - background: #fff; - color: #445; - border-top: 1px solid #556; - padding: 1px; -} - -.calendar tfoot .hilite { /* Hover style for buttons in footer */ - background: #aaf; - border: 1px solid #04f; - color: #000; - padding: 1px; -} - -.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ - background: #77c; - padding: 2px 0px 0px 2px; -} - -/* Combo boxes (menus that display months/years for direct selection) */ - -.calendar .combo { - position: absolute; - display: none; - top: 0px; - left: 0px; - width: 4em; - cursor: default; - border: 1px solid #655; - background: #def; - color: #000; - font-size: 90%; - z-index: 100; -} - -.calendar .combo .label, -.calendar .combo .label-IEfix { - text-align: center; - padding: 1px; -} - -.calendar .combo .label-IEfix { - width: 4em; -} - -.calendar .combo .hilite { - background: #acf; -} - -.calendar .combo .active { - border-top: 1px solid #46a; - border-bottom: 1px solid #46a; - background: #eef; - font-weight: bold; -} - -.calendar td.time { - border-top: 1px solid #000; - padding: 1px 0px; - text-align: center; - background-color: #f4f0e8; -} - -.calendar td.time .hour, -.calendar td.time .minute, -.calendar td.time .ampm { - padding: 0px 3px 0px 4px; - border: 1px solid #889; - font-weight: bold; - background-color: #fff; -} - -.calendar td.time .ampm { - text-align: center; -} - -.calendar td.time .colon { - padding: 0px 2px 0px 3px; - font-weight: bold; -} - -.calendar td.time span.hilite { - border-color: #000; - background-color: #667; - color: #fff; -} - -.calendar td.time span.active { - border-color: #f00; - background-color: #000; - color: #0f0; -} diff --git a/zioinfo/js/jscalendar-1.0/calendar-blue2.css b/zioinfo/js/jscalendar-1.0/calendar-blue2.css deleted file mode 100644 index 47128ecb..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar-blue2.css +++ /dev/null @@ -1,236 +0,0 @@ -/* The main calendar widget. DIV containing a table. */ - -div.calendar { position: relative; } - -.calendar, .calendar table { - border: 1px solid #206A9B; - font-size: 11px; - color: #000; - cursor: default; - background: #F1F8FC; - font-family: tahoma,verdana,sans-serif; -} - -/* Header part -- contains navigation buttons and day names. */ - -.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ - text-align: center; /* They are the navigation buttons */ - padding: 2px; /* Make the buttons seem like they're pressing */ -} - -.calendar .nav { - background: #007ED1 url(menuarrow2.gif) no-repeat 100% 100%; -} - -.calendar thead .title { /* This holds the current "month, year" */ - font-weight: bold; /* Pressing it will take you to the current date */ - text-align: center; - background: #000; - color: #fff; - padding: 2px; -} - -.calendar thead tr { /* Row containing navigation buttons */ - background: #007ED1; - color: #fff; -} - -.calendar thead .daynames { /* Row containing the day names */ - background: #C7E1F3; -} - -.calendar thead .name { /* Cells containing the day names */ - border-bottom: 1px solid #206A9B; - padding: 2px; - text-align: center; - color: #000; -} - -.calendar thead .weekend { /* How a weekend day name shows in header */ - color: #a66; -} - -.calendar thead .hilite { /* How do the buttons in header appear when hover */ - background-color: #34ABFA; - color: #000; - border: 1px solid #016DC5; - padding: 1px; -} - -.calendar thead .active { /* Active (pressed) buttons in header */ - background-color: #006AA9; - border: 1px solid #008AFF; - padding: 2px 0px 0px 2px; -} - -/* The body part -- contains all the days in month. */ - -.calendar tbody .day { /* Cells containing month days dates */ - width: 2em; - color: #456; - text-align: right; - padding: 2px 4px 2px 2px; -} -.calendar tbody .day.othermonth { - font-size: 80%; - color: #bbb; -} -.calendar tbody .day.othermonth.oweekend { - color: #fbb; -} - -.calendar table .wn { - padding: 2px 3px 2px 2px; - border-right: 1px solid #000; - background: #C7E1F3; -} - -.calendar tbody .rowhilite td { - background: #def; -} - -.calendar tbody .rowhilite td.wn { - background: #F1F8FC; -} - -.calendar tbody td.hilite { /* Hovered cells */ - background: #def; - padding: 1px 3px 1px 1px; - border: 1px solid #8FC4E8; -} - -.calendar tbody td.active { /* Active (pressed) cells */ - background: #cde; - padding: 2px 2px 0px 2px; -} - -.calendar tbody td.selected { /* Cell showing today date */ - font-weight: bold; - border: 1px solid #000; - padding: 1px 3px 1px 1px; - background: #fff; - color: #000; -} - -.calendar tbody td.weekend { /* Cells showing weekend days */ - color: #a66; -} - -.calendar tbody td.today { /* Cell showing selected date */ - font-weight: bold; - color: #D50000; -} - -.calendar tbody .disabled { color: #999; } - -.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ - visibility: hidden; -} - -.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ - display: none; -} - -/* The footer part -- status bar and "Close" button */ - -.calendar tfoot .footrow { /* The in footer (only one right now) */ - text-align: center; - background: #206A9B; - color: #fff; -} - -.calendar tfoot .ttip { /* Tooltip (status bar) cell */ - background: #000; - color: #fff; - border-top: 1px solid #206A9B; - padding: 1px; -} - -.calendar tfoot .hilite { /* Hover style for buttons in footer */ - background: #B8DAF0; - border: 1px solid #178AEB; - color: #000; - padding: 1px; -} - -.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ - background: #006AA9; - padding: 2px 0px 0px 2px; -} - -/* Combo boxes (menus that display months/years for direct selection) */ - -.calendar .combo { - position: absolute; - display: none; - top: 0px; - left: 0px; - width: 4em; - cursor: default; - border: 1px solid #655; - background: #def; - color: #000; - font-size: 90%; - z-index: 100; -} - -.calendar .combo .label, -.calendar .combo .label-IEfix { - text-align: center; - padding: 1px; -} - -.calendar .combo .label-IEfix { - width: 4em; -} - -.calendar .combo .hilite { - background: #34ABFA; - border-top: 1px solid #46a; - border-bottom: 1px solid #46a; - font-weight: bold; -} - -.calendar .combo .active { - border-top: 1px solid #46a; - border-bottom: 1px solid #46a; - background: #F1F8FC; - font-weight: bold; -} - -.calendar td.time { - border-top: 1px solid #000; - padding: 1px 0px; - text-align: center; - background-color: #E3F0F9; -} - -.calendar td.time .hour, -.calendar td.time .minute, -.calendar td.time .ampm { - padding: 0px 3px 0px 4px; - border: 1px solid #889; - font-weight: bold; - background-color: #F1F8FC; -} - -.calendar td.time .ampm { - text-align: center; -} - -.calendar td.time .colon { - padding: 0px 2px 0px 3px; - font-weight: bold; -} - -.calendar td.time span.hilite { - border-color: #000; - background-color: #267DB7; - color: #fff; -} - -.calendar td.time span.active { - border-color: red; - background-color: #000; - color: #A5FF00; -} diff --git a/zioinfo/js/jscalendar-1.0/calendar-brown.css b/zioinfo/js/jscalendar-1.0/calendar-brown.css deleted file mode 100644 index c42da5e0..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar-brown.css +++ /dev/null @@ -1,225 +0,0 @@ -/* The main calendar widget. DIV containing a table. */ - -div.calendar { position: relative; } - -.calendar, .calendar table { - border: 1px solid #655; - font-size: 11px; - color: #000; - cursor: default; - background: #ffd; - font-family: tahoma,verdana,sans-serif; -} - -/* Header part -- contains navigation buttons and day names. */ - -.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ - text-align: center; /* They are the navigation buttons */ - padding: 2px; /* Make the buttons seem like they're pressing */ -} - -.calendar .nav { - background: #edc url(menuarrow.gif) no-repeat 100% 100%; -} - -.calendar thead .title { /* This holds the current "month, year" */ - font-weight: bold; /* Pressing it will take you to the current date */ - text-align: center; - background: #654; - color: #fed; - padding: 2px; -} - -.calendar thead .headrow { /* Row containing navigation buttons */ - background: #edc; - color: #000; -} - -.calendar thead .name { /* Cells containing the day names */ - border-bottom: 1px solid #655; - padding: 2px; - text-align: center; - color: #000; -} - -.calendar thead .weekend { /* How a weekend day name shows in header */ - color: #f00; -} - -.calendar thead .hilite { /* How do the buttons in header appear when hover */ - background-color: #faa; - color: #000; - border: 1px solid #f40; - padding: 1px; -} - -.calendar thead .active { /* Active (pressed) buttons in header */ - background-color: #c77; - padding: 2px 0px 0px 2px; -} - -.calendar thead .daynames { /* Row containing the day names */ - background: #fed; -} - -/* The body part -- contains all the days in month. */ - -.calendar tbody .day { /* Cells containing month days dates */ - width: 2em; - text-align: right; - padding: 2px 4px 2px 2px; -} -.calendar tbody .day.othermonth { - font-size: 80%; - color: #bbb; -} -.calendar tbody .day.othermonth.oweekend { - color: #fbb; -} - -.calendar table .wn { - padding: 2px 3px 2px 2px; - border-right: 1px solid #000; - background: #fed; -} - -.calendar tbody .rowhilite td { - background: #ddf; -} - -.calendar tbody .rowhilite td.wn { - background: #efe; -} - -.calendar tbody td.hilite { /* Hovered cells */ - background: #ffe; - padding: 1px 3px 1px 1px; - border: 1px solid #bbb; -} - -.calendar tbody td.active { /* Active (pressed) cells */ - background: #ddc; - padding: 2px 2px 0px 2px; -} - -.calendar tbody td.selected { /* Cell showing today date */ - font-weight: bold; - border: 1px solid #000; - padding: 1px 3px 1px 1px; - background: #fea; -} - -.calendar tbody td.weekend { /* Cells showing weekend days */ - color: #f00; -} - -.calendar tbody td.today { font-weight: bold; } - -.calendar tbody .disabled { color: #999; } - -.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ - visibility: hidden; -} - -.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ - display: none; -} - -/* The footer part -- status bar and "Close" button */ - -.calendar tfoot .footrow { /* The in footer (only one right now) */ - text-align: center; - background: #988; - color: #000; -} - -.calendar tfoot .ttip { /* Tooltip (status bar) cell */ - border-top: 1px solid #655; - background: #dcb; - color: #840; -} - -.calendar tfoot .hilite { /* Hover style for buttons in footer */ - background: #faa; - border: 1px solid #f40; - padding: 1px; -} - -.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ - background: #c77; - padding: 2px 0px 0px 2px; -} - -/* Combo boxes (menus that display months/years for direct selection) */ - -.calendar .combo { - position: absolute; - display: none; - top: 0px; - left: 0px; - width: 4em; - cursor: default; - border: 1px solid #655; - background: #ffe; - color: #000; - font-size: 90%; - z-index: 100; -} - -.calendar .combo .label, -.calendar .combo .label-IEfix { - text-align: center; - padding: 1px; -} - -.calendar .combo .label-IEfix { - width: 4em; -} - -.calendar .combo .hilite { - background: #fc8; -} - -.calendar .combo .active { - border-top: 1px solid #a64; - border-bottom: 1px solid #a64; - background: #fee; - font-weight: bold; -} - -.calendar td.time { - border-top: 1px solid #a88; - padding: 1px 0px; - text-align: center; - background-color: #fed; -} - -.calendar td.time .hour, -.calendar td.time .minute, -.calendar td.time .ampm { - padding: 0px 3px 0px 4px; - border: 1px solid #988; - font-weight: bold; - background-color: #fff; -} - -.calendar td.time .ampm { - text-align: center; -} - -.calendar td.time .colon { - padding: 0px 2px 0px 3px; - font-weight: bold; -} - -.calendar td.time span.hilite { - border-color: #000; - background-color: #866; - color: #fff; -} - -.calendar td.time span.active { - border-color: #f00; - background-color: #000; - color: #0f0; -} diff --git a/zioinfo/js/jscalendar-1.0/calendar-green.css b/zioinfo/js/jscalendar-1.0/calendar-green.css deleted file mode 100644 index 2e1867a0..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar-green.css +++ /dev/null @@ -1,229 +0,0 @@ -/* The main calendar widget. DIV containing a table. */ - -div.calendar { position: relative; } - -.calendar, .calendar table { - border: 1px solid #565; - font-size: 11px; - color: #000; - cursor: default; - background: #efe; - font-family: tahoma,verdana,sans-serif; -} - -/* Header part -- contains navigation buttons and day names. */ - -.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ - text-align: center; /* They are the navigation buttons */ - padding: 2px; /* Make the buttons seem like they're pressing */ - background: #676; - color: #fff; - font-size: 90%; -} - -.calendar .nav { - background: #676 url(menuarrow.gif) no-repeat 100% 100%; -} - -.calendar thead .title { /* This holds the current "month, year" */ - font-weight: bold; /* Pressing it will take you to the current date */ - text-align: center; - padding: 2px; - background: #250; - color: #efa; -} - -.calendar thead .headrow { /* Row containing navigation buttons */ -} - -.calendar thead .name { /* Cells containing the day names */ - border-bottom: 1px solid #565; - padding: 2px; - text-align: center; - color: #000; -} - -.calendar thead .weekend { /* How a weekend day name shows in header */ - color: #a66; -} - -.calendar thead .hilite { /* How do the buttons in header appear when hover */ - background-color: #afa; - color: #000; - border: 1px solid #084; - padding: 1px; -} - -.calendar thead .active { /* Active (pressed) buttons in header */ - background-color: #7c7; - padding: 2px 0px 0px 2px; -} - -.calendar thead .daynames { /* Row containing the day names */ - background: #dfb; -} - -/* The body part -- contains all the days in month. */ - -.calendar tbody .day { /* Cells containing month days dates */ - width: 2em; - color: #564; - text-align: right; - padding: 2px 4px 2px 2px; -} -.calendar tbody .day.othermonth { - font-size: 80%; - color: #bbb; -} -.calendar tbody .day.othermonth.oweekend { - color: #fbb; -} - -.calendar table .wn { - padding: 2px 3px 2px 2px; - border-right: 1px solid #8a8; - background: #dfb; -} - -.calendar tbody .rowhilite td { - background: #dfd; -} - -.calendar tbody .rowhilite td.wn { - background: #efe; -} - -.calendar tbody td.hilite { /* Hovered cells */ - background: #efd; - padding: 1px 3px 1px 1px; - border: 1px solid #bbb; -} - -.calendar tbody td.active { /* Active (pressed) cells */ - background: #dec; - padding: 2px 2px 0px 2px; -} - -.calendar tbody td.selected { /* Cell showing today date */ - font-weight: bold; - border: 1px solid #000; - padding: 1px 3px 1px 1px; - background: #f8fff8; - color: #000; -} - -.calendar tbody td.weekend { /* Cells showing weekend days */ - color: #a66; -} - -.calendar tbody td.today { font-weight: bold; color: #0a0; } - -.calendar tbody .disabled { color: #999; } - -.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ - visibility: hidden; -} - -.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ - display: none; -} - -/* The footer part -- status bar and "Close" button */ - -.calendar tfoot .footrow { /* The in footer (only one right now) */ - text-align: center; - background: #565; - color: #fff; -} - -.calendar tfoot .ttip { /* Tooltip (status bar) cell */ - padding: 2px; - background: #250; - color: #efa; -} - -.calendar tfoot .hilite { /* Hover style for buttons in footer */ - background: #afa; - border: 1px solid #084; - color: #000; - padding: 1px; -} - -.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ - background: #7c7; - padding: 2px 0px 0px 2px; -} - -/* Combo boxes (menus that display months/years for direct selection) */ - -.calendar .combo { - position: absolute; - display: none; - top: 0px; - left: 0px; - width: 4em; - cursor: default; - border: 1px solid #565; - background: #efd; - color: #000; - font-size: 90%; - z-index: 100; -} - -.calendar .combo .label, -.calendar .combo .label-IEfix { - text-align: center; - padding: 1px; -} - -.calendar .combo .label-IEfix { - width: 4em; -} - -.calendar .combo .hilite { - background: #af8; -} - -.calendar .combo .active { - border-top: 1px solid #6a4; - border-bottom: 1px solid #6a4; - background: #efe; - font-weight: bold; -} - -.calendar td.time { - border-top: 1px solid #8a8; - padding: 1px 0px; - text-align: center; - background-color: #dfb; -} - -.calendar td.time .hour, -.calendar td.time .minute, -.calendar td.time .ampm { - padding: 0px 3px 0px 4px; - border: 1px solid #898; - font-weight: bold; - background-color: #fff; -} - -.calendar td.time .ampm { - text-align: center; -} - -.calendar td.time .colon { - padding: 0px 2px 0px 3px; - font-weight: bold; -} - -.calendar td.time span.hilite { - border-color: #000; - background-color: #686; - color: #fff; -} - -.calendar td.time span.active { - border-color: #f00; - background-color: #000; - color: #0f0; -} diff --git a/zioinfo/js/jscalendar-1.0/calendar-setup.js b/zioinfo/js/jscalendar-1.0/calendar-setup.js deleted file mode 100644 index d91fdd1c..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar-setup.js +++ /dev/null @@ -1,200 +0,0 @@ -/* Copyright Mihai Bazon, 2002, 2003 | http://dynarch.com/mishoo/ - * --------------------------------------------------------------------------- - * - * The DHTML Calendar - * - * Details and latest version at: - * http://dynarch.com/mishoo/calendar.epl - * - * This script is distributed under the GNU Lesser General Public License. - * Read the entire license text here: http://www.gnu.org/licenses/lgpl.html - * - * This file defines helper functions for setting up the calendar. They are - * intended to help non-programmers get a working calendar on their site - * quickly. This script should not be seen as part of the calendar. It just - * shows you what one can do with the calendar, while in the same time - * providing a quick and simple method for setting it up. If you need - * exhaustive customization of the calendar creation process feel free to - * modify this code to suit your needs (this is recommended and much better - * than modifying calendar.js itself). - */ - -// $Id: calendar-setup.js,v 1.1 2007/05/21 11:51:55 bangmaroo Exp $ - -/** - * This function "patches" an input field (or other element) to use a calendar - * widget for date selection. - * - * The "params" is a single object that can have the following properties: - * - * prop. name | description - * ------------------------------------------------------------------------------------------------- - * inputField | the ID of an input field to store the date - * displayArea | the ID of a DIV or other element to show the date - * button | ID of a button or other element that will trigger the calendar - * eventName | event that will trigger the calendar, without the "on" prefix (default: "click") - * ifFormat | date format that will be stored in the input field - * daFormat | the date format that will be used to display the date in displayArea - * singleClick | (true/false) wether the calendar is in single click mode or not (default: true) - * firstDay | numeric: 0 to 6. "0" means display Sunday first, "1" means display Monday first, etc. - * align | alignment (default: "Br"); if you don't know what's this see the calendar documentation - * range | array with 2 elements. Default: [1900, 2999] -- the range of years available - * weekNumbers | (true/false) if it's true (default) the calendar will display week numbers - * flat | null or element ID; if not null the calendar will be a flat calendar having the parent with the given ID - * flatCallback | function that receives a JS Date object and returns an URL to point the browser to (for flat calendar) - * disableFunc | function that receives a JS Date object and should return true if that date has to be disabled in the calendar - * onSelect | function that gets called when a date is selected. You don't _have_ to supply this (the default is generally okay) - * onClose | function that gets called when the calendar is closed. [default] - * onUpdate | function that gets called after the date is updated in the input field. Receives a reference to the calendar. - * date | the date that the calendar will be initially displayed to - * showsTime | default: false; if true the calendar will include a time selector - * timeFormat | the time format; can be "12" or "24", default is "12" - * electric | if true (default) then given fields/date areas are updated for each move; otherwise they're updated only on close - * step | configures the step of the years in drop-down boxes; default: 2 - * position | configures the calendar absolute position; default: null - * cache | if "true" (but default: "false") it will reuse the same calendar object, where possible - * showOthers | if "true" (but default: "false") it will show days from other months too - * - * None of them is required, they all have default values. However, if you - * pass none of "inputField", "displayArea" or "button" you'll get a warning - * saying "nothing to setup". - */ -Calendar.setup = function (params) { - function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } }; - - param_default("inputField", null); - param_default("displayArea", null); - param_default("button", null); - param_default("eventName", "click"); - param_default("ifFormat", "%Y/%m/%d"); - param_default("daFormat", "%Y/%m/%d"); - param_default("singleClick", true); - param_default("disableFunc", null); - param_default("dateStatusFunc", params["disableFunc"]); // takes precedence if both are defined - param_default("dateText", null); - param_default("firstDay", null); - param_default("align", "Br"); - param_default("range", [1900, 2999]); - param_default("weekNumbers", true); - param_default("flat", null); - param_default("flatCallback", null); - param_default("onSelect", null); - param_default("onClose", null); - param_default("onUpdate", null); - param_default("date", null); - param_default("showsTime", false); - param_default("timeFormat", "24"); - param_default("electric", true); - param_default("step", 2); - param_default("position", null); - param_default("cache", false); - param_default("showOthers", false); - param_default("multiple", null); - - var tmp = ["inputField", "displayArea", "button"]; - for (var i in tmp) { - if (typeof params[tmp[i]] == "string") { - params[tmp[i]] = document.getElementById(params[tmp[i]]); - } - } - if (!(params.flat || params.multiple || params.inputField || params.displayArea || params.button)) { - alert("Calendar.setup:\n Nothing to setup (no fields found). Please check your code"); - return false; - } - - function onSelect(cal) { - var p = cal.params; - var update = (cal.dateClicked || p.electric); - if (update && p.inputField) { - p.inputField.value = cal.date.print(p.ifFormat); - if (typeof p.inputField.onchange == "function") - p.inputField.onchange(); - } - if (update && p.displayArea) - p.displayArea.innerHTML = cal.date.print(p.daFormat); - if (update && typeof p.onUpdate == "function") - p.onUpdate(cal); - if (update && p.flat) { - if (typeof p.flatCallback == "function") - p.flatCallback(cal); - } - if (update && p.singleClick && cal.dateClicked) - cal.callCloseHandler(); - }; - - if (params.flat != null) { - if (typeof params.flat == "string") - params.flat = document.getElementById(params.flat); - if (!params.flat) { - alert("Calendar.setup:\n Flat specified but can't find parent."); - return false; - } - var cal = new Calendar(params.firstDay, params.date, params.onSelect || onSelect); - cal.showsOtherMonths = params.showOthers; - cal.showsTime = params.showsTime; - cal.time24 = (params.timeFormat == "24"); - cal.params = params; - cal.weekNumbers = params.weekNumbers; - cal.setRange(params.range[0], params.range[1]); - cal.setDateStatusHandler(params.dateStatusFunc); - cal.getDateText = params.dateText; - if (params.ifFormat) { - cal.setDateFormat(params.ifFormat); - } - if (params.inputField && typeof params.inputField.value == "string") { - cal.parseDate(params.inputField.value); - } - cal.create(params.flat); - cal.show(); - return false; - } - - var triggerEl = params.button || params.displayArea || params.inputField; - triggerEl["on" + params.eventName] = function() { - var dateEl = params.inputField || params.displayArea; - var dateFmt = params.inputField ? params.ifFormat : params.daFormat; - var mustCreate = false; - var cal = window.calendar; - if (dateEl) - params.date = Date.parseDate(dateEl.value || dateEl.innerHTML, dateFmt); - if (!(cal && params.cache)) { - window.calendar = cal = new Calendar(params.firstDay, - params.date, - params.onSelect || onSelect, - params.onClose || function(cal) { cal.hide(); }); - cal.showsTime = params.showsTime; - cal.time24 = (params.timeFormat == "24"); - cal.weekNumbers = params.weekNumbers; - mustCreate = true; - } else { - if (params.date) - cal.setDate(params.date); - cal.hide(); - } - if (params.multiple) { - cal.multiple = {}; - for (var i = params.multiple.length; --i >= 0;) { - var d = params.multiple[i]; - var ds = d.print("%Y%m%d"); - cal.multiple[ds] = d; - } - } - cal.showsOtherMonths = params.showOthers; - cal.yearStep = params.step; - cal.setRange(params.range[0], params.range[1]); - cal.params = params; - cal.setDateStatusHandler(params.dateStatusFunc); - cal.getDateText = params.dateText; - cal.setDateFormat(dateFmt); - if (mustCreate) - cal.create(); - cal.refresh(); - if (!params.position) - cal.showAtElement(params.button || params.displayArea || params.inputField, params.align); - else - cal.showAt(params.position[0], params.position[1]); - return false; - }; - - return cal; -}; diff --git a/zioinfo/js/jscalendar-1.0/calendar-setup_stripped.js b/zioinfo/js/jscalendar-1.0/calendar-setup_stripped.js deleted file mode 100644 index 91c927f8..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar-setup_stripped.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright Mihai Bazon, 2002, 2003 | http://dynarch.com/mishoo/ - * --------------------------------------------------------------------------- - * - * The DHTML Calendar - * - * Details and latest version at: - * http://dynarch.com/mishoo/calendar.epl - * - * This script is distributed under the GNU Lesser General Public License. - * Read the entire license text here: http://www.gnu.org/licenses/lgpl.html - * - * This file defines helper functions for setting up the calendar. They are - * intended to help non-programmers get a working calendar on their site - * quickly. This script should not be seen as part of the calendar. It just - * shows you what one can do with the calendar, while in the same time - * providing a quick and simple method for setting it up. If you need - * exhaustive customization of the calendar creation process feel free to - * modify this code to suit your needs (this is recommended and much better - * than modifying calendar.js itself). - */ - Calendar.setup=function(params){function param_default(pname,def){if(typeof params[pname]=="undefined"){params[pname]=def;}};param_default("inputField",null);param_default("displayArea",null);param_default("button",null);param_default("eventName","click");param_default("ifFormat","%Y/%m/%d");param_default("daFormat","%Y/%m/%d");param_default("singleClick",true);param_default("disableFunc",null);param_default("dateStatusFunc",params["disableFunc"]);param_default("dateText",null);param_default("firstDay",null);param_default("align","Br");param_default("range",[1900,2999]);param_default("weekNumbers",true);param_default("flat",null);param_default("flatCallback",null);param_default("onSelect",null);param_default("onClose",null);param_default("onUpdate",null);param_default("date",null);param_default("showsTime",false);param_default("timeFormat","24");param_default("electric",true);param_default("step",2);param_default("position",null);param_default("cache",false);param_default("showOthers",false);param_default("multiple",null);var tmp=["inputField","displayArea","button"];for(var i in tmp){if(typeof params[tmp[i]]=="string"){params[tmp[i]]=document.getElementById(params[tmp[i]]);}}if(!(params.flat||params.multiple||params.inputField||params.displayArea||params.button)){alert("Calendar.setup:\n Nothing to setup (no fields found). Please check your code");return false;}function onSelect(cal){var p=cal.params;var update=(cal.dateClicked||p.electric);if(update&&p.inputField){p.inputField.value=cal.date.print(p.ifFormat);if(typeof p.inputField.onchange=="function")p.inputField.onchange();}if(update&&p.displayArea)p.displayArea.innerHTML=cal.date.print(p.daFormat);if(update&&typeof p.onUpdate=="function")p.onUpdate(cal);if(update&&p.flat){if(typeof p.flatCallback=="function")p.flatCallback(cal);}if(update&&p.singleClick&&cal.dateClicked)cal.callCloseHandler();};if(params.flat!=null){if(typeof params.flat=="string")params.flat=document.getElementById(params.flat);if(!params.flat){alert("Calendar.setup:\n Flat specified but can't find parent.");return false;}var cal=new Calendar(params.firstDay,params.date,params.onSelect||onSelect);cal.showsOtherMonths=params.showOthers;cal.showsTime=params.showsTime;cal.time24=(params.timeFormat=="24");cal.params=params;cal.weekNumbers=params.weekNumbers;cal.setRange(params.range[0],params.range[1]);cal.setDateStatusHandler(params.dateStatusFunc);cal.getDateText=params.dateText;if(params.ifFormat){cal.setDateFormat(params.ifFormat);}if(params.inputField&&typeof params.inputField.value=="string"){cal.parseDate(params.inputField.value);}cal.create(params.flat);cal.show();return false;}var triggerEl=params.button||params.displayArea||params.inputField;triggerEl["on"+params.eventName]=function(){var dateEl=params.inputField||params.displayArea;var dateFmt=params.inputField?params.ifFormat:params.daFormat;var mustCreate=false;var cal=window.calendar;if(dateEl)params.date=Date.parseDate(dateEl.value||dateEl.innerHTML,dateFmt);if(!(cal&¶ms.cache)){window.calendar=cal=new Calendar(params.firstDay,params.date,params.onSelect||onSelect,params.onClose||function(cal){cal.hide();});cal.showsTime=params.showsTime;cal.time24=(params.timeFormat=="24");cal.weekNumbers=params.weekNumbers;mustCreate=true;}else{if(params.date)cal.setDate(params.date);cal.hide();}if(params.multiple){cal.multiple={};for(var i=params.multiple.length;--i>=0;){var d=params.multiple[i];var ds=d.print("%Y%m%d");cal.multiple[ds]=d;}}cal.showsOtherMonths=params.showOthers;cal.yearStep=params.step;cal.setRange(params.range[0],params.range[1]);cal.params=params;cal.setDateStatusHandler(params.dateStatusFunc);cal.getDateText=params.dateText;cal.setDateFormat(dateFmt);if(mustCreate)cal.create();cal.refresh();if(!params.position)cal.showAtElement(params.button||params.displayArea||params.inputField,params.align);else cal.showAt(params.position[0],params.position[1]);return false;};return cal;}; \ No newline at end of file diff --git a/zioinfo/js/jscalendar-1.0/calendar-system.css b/zioinfo/js/jscalendar-1.0/calendar-system.css deleted file mode 100644 index b2248857..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar-system.css +++ /dev/null @@ -1,251 +0,0 @@ -/* The main calendar widget. DIV containing a table. */ - -.calendar { - position: relative; - display: none; - border: 1px solid; - border-color: #fff #000 #000 #fff; - font-size: 11px; - cursor: default; - background: Window; - color: WindowText; - font-family: tahoma,verdana,sans-serif; -} - -.calendar table { - border: 1px solid; - border-color: #fff #000 #000 #fff; - font-size: 11px; - cursor: default; - background: Window; - color: WindowText; - font-family: tahoma,verdana,sans-serif; -} - -/* Header part -- contains navigation buttons and day names. */ - -.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ - text-align: center; - padding: 1px; - border: 1px solid; - border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight; - background: ButtonFace; -} - -.calendar .nav { - background: ButtonFace url(menuarrow.gif) no-repeat 100% 100%; -} - -.calendar thead .title { /* This holds the current "month, year" */ - font-weight: bold; - padding: 1px; - border: 1px solid #000; - background: ActiveCaption; - color: CaptionText; - text-align: center; -} - -.calendar thead .headrow { /* Row containing navigation buttons */ -} - -.calendar thead .daynames { /* Row containing the day names */ -} - -.calendar thead .name { /* Cells containing the day names */ - border-bottom: 1px solid ButtonShadow; - padding: 2px; - text-align: center; - background: ButtonFace; - color: ButtonText; -} - -.calendar thead .weekend { /* How a weekend day name shows in header */ - color: #f00; -} - -.calendar thead .hilite { /* How do the buttons in header appear when hover */ - border: 2px solid; - padding: 0px; - border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight; -} - -.calendar thead .active { /* Active (pressed) buttons in header */ - border-width: 1px; - padding: 2px 0px 0px 2px; - border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow; -} - -/* The body part -- contains all the days in month. */ - -.calendar tbody .day { /* Cells containing month days dates */ - width: 2em; - text-align: right; - padding: 2px 4px 2px 2px; -} -.calendar tbody .day.othermonth { - font-size: 80%; - color: #aaa; -} -.calendar tbody .day.othermonth.oweekend { - color: #faa; -} - -.calendar table .wn { - padding: 2px 3px 2px 2px; - border-right: 1px solid ButtonShadow; - background: ButtonFace; - color: ButtonText; -} - -.calendar tbody .rowhilite td { - background: Highlight; - color: HighlightText; -} - -.calendar tbody td.hilite { /* Hovered cells */ - padding: 1px 3px 1px 1px; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; -} - -.calendar tbody td.active { /* Active (pressed) cells */ - padding: 2px 2px 0px 2px; - border: 1px solid; - border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow; -} - -.calendar tbody td.selected { /* Cell showing selected date */ - font-weight: bold; - border: 1px solid; - border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow; - padding: 2px 2px 0px 2px; - background: ButtonFace; - color: ButtonText; -} - -.calendar tbody td.weekend { /* Cells showing weekend days */ - color: #f00; -} - -.calendar tbody td.today { /* Cell showing today date */ - font-weight: bold; - color: #00f; -} - -.calendar tbody td.disabled { color: GrayText; } - -.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ - visibility: hidden; -} - -.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ - display: none; -} - -/* The footer part -- status bar and "Close" button */ - -.calendar tfoot .footrow { /* The in footer (only one right now) */ -} - -.calendar tfoot .ttip { /* Tooltip (status bar) cell */ - background: ButtonFace; - padding: 1px; - border: 1px solid; - border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow; - color: ButtonText; - text-align: center; -} - -.calendar tfoot .hilite { /* Hover style for buttons in footer */ - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; - padding: 1px; - background: #e4e0d8; -} - -.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ - padding: 2px 0px 0px 2px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; -} - -/* Combo boxes (menus that display months/years for direct selection) */ - -.calendar .combo { - position: absolute; - display: none; - width: 4em; - top: 0px; - left: 0px; - cursor: default; - border: 1px solid; - border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight; - background: Menu; - color: MenuText; - font-size: 90%; - padding: 1px; - z-index: 100; -} - -.calendar .combo .label, -.calendar .combo .label-IEfix { - text-align: center; - padding: 1px; -} - -.calendar .combo .label-IEfix { - width: 4em; -} - -.calendar .combo .active { - padding: 0px; - border: 1px solid #000; -} - -.calendar .combo .hilite { - background: Highlight; - color: HighlightText; -} - -.calendar td.time { - border-top: 1px solid ButtonShadow; - padding: 1px 0px; - text-align: center; - background-color: ButtonFace; -} - -.calendar td.time .hour, -.calendar td.time .minute, -.calendar td.time .ampm { - padding: 0px 3px 0px 4px; - border: 1px solid #889; - font-weight: bold; - background-color: Menu; -} - -.calendar td.time .ampm { - text-align: center; -} - -.calendar td.time .colon { - padding: 0px 2px 0px 3px; - font-weight: bold; -} - -.calendar td.time span.hilite { - border-color: #000; - background-color: Highlight; - color: HighlightText; -} - -.calendar td.time span.active { - border-color: #f00; - background-color: #000; - color: #0f0; -} diff --git a/zioinfo/js/jscalendar-1.0/calendar-tas.css b/zioinfo/js/jscalendar-1.0/calendar-tas.css deleted file mode 100644 index c2f87216..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar-tas.css +++ /dev/null @@ -1,239 +0,0 @@ -/* The main calendar widget. DIV containing a table. */ - -div.calendar { position: relative; } - -.calendar, .calendar table { - border: 1px solid #655; - font-size: 11px; - color: #000; - cursor: default; - background: #ffd; - font-family: tahoma,verdana,sans-serif; - filter: -progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#DDDCCC,EndColorStr=#FFFFFF); -} - -/* Header part -- contains navigation buttons and day names. */ - -.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ - text-align: center; /* They are the navigation buttons */ - padding: 2px; /* Make the buttons seem like they're pressing */ - color:#363636; -} - -.calendar .nav { - background: #edc url(menuarrow.gif) no-repeat 100% 100%; -} - -.calendar thead .title { /* This holds the current "month, year" */ - font-weight: bold; /* Pressing it will take you to the current date */ - text-align: center; - background: #654; - color: #363636; - padding: 2px; - filter: -progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#ffffff,EndColorStr=#dddccc); -} - -.calendar thead .headrow { /* Row containing navigation buttons */ - /*background: #3B86A0;*/ - color: #363636; - font-weight: bold; -filter: -progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#ffffff,EndColorStr=#3b86a0); -} - -.calendar thead .name { /* Cells containing the day names */ - border-bottom: 1px solid #655; - padding: 2px; - text-align: center; - color: #363636; - filter: -progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#DDDCCC,EndColorStr=#FFFFFF); -} - -.calendar thead .weekend { /* How a weekend day name shows in header */ - color: #f00; -} - -.calendar thead .hilite { /* How do the buttons in header appear when hover */ - background-color: #ffcc86; - color: #000; - border: 1px solid #b59345; - padding: 1px; -} - -.calendar thead .active { /* Active (pressed) buttons in header */ - background-color: #c77; - padding: 2px 0px 0px 2px; -} - -.calendar thead .daynames { /* Row containing the day names */ - background: #fed; -} - -/* The body part -- contains all the days in month. */ - -.calendar tbody .day { /* Cells containing month days dates */ - width: 2em; - text-align: right; - padding: 2px 4px 2px 2px; -} -.calendar tbody .day.othermonth { - font-size: 80%; - color: #aaa; -} -.calendar tbody .day.othermonth.oweekend { - color: #faa; -} - -.calendar table .wn { - padding: 2px 3px 2px 2px; - border-right: 1px solid #000; - background: #fed; -} - -.calendar tbody .rowhilite td { - background: #ddf; - -} - -.calendar tbody .rowhilite td.wn { - background: #efe; -} - -.calendar tbody td.hilite { /* Hovered cells */ - background: #ffe; - padding: 1px 3px 1px 1px; - border: 1px solid #bbb; -} - -.calendar tbody td.active { /* Active (pressed) cells */ - background: #ddc; - padding: 2px 2px 0px 2px; -} - -.calendar tbody td.selected { /* Cell showing today date */ - font-weight: bold; - border: 1px solid #000; - padding: 1px 3px 1px 1px; - background: #fea; -} - -.calendar tbody td.weekend { /* Cells showing weekend days */ - color: #f00; -} - -.calendar tbody td.today { font-weight: bold; } - -.calendar tbody .disabled { color: #999; } - -.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ - visibility: hidden; -} - -.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ - display: none; -} - -/* The footer part -- status bar and "Close" button */ - -.calendar tfoot .footrow { /* The in footer (only one right now) */ - text-align: center; - background: #988; - color: #000; - -} - -.calendar tfoot .ttip { /* Tooltip (status bar) cell */ - border-top: 1px solid #655; - background: #dcb; - color: #363636; - font-weight: bold; - filter: -progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#FFFFFF,EndColorStr=#DDDCCC); -} -.calendar tfoot .hilite { /* Hover style for buttons in footer */ - background: #faa; - border: 1px solid #f40; - padding: 1px; -} - -.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ - background: #c77; - padding: 2px 0px 0px 2px; -} - -/* Combo boxes (menus that display months/years for direct selection) */ - -.combo { - position: absolute; - display: none; - top: 0px; - left: 0px; - width: 4em; - cursor: default; - border: 1px solid #655; - background: #ffe; - color: #000; - font-size: smaller; - z-index: 100; -} - -.combo .label, -.combo .label-IEfix { - text-align: center; - padding: 1px; -} - -.combo .label-IEfix { - width: 4em; -} - -.combo .hilite { - background: #fc8; -} - -.combo .active { - border-top: 1px solid #a64; - border-bottom: 1px solid #a64; - background: #fee; - font-weight: bold; -} - -.calendar td.time { - border-top: 1px solid #a88; - padding: 1px 0px; - text-align: center; - background-color: #fed; -} - -.calendar td.time .hour, -.calendar td.time .minute, -.calendar td.time .ampm { - padding: 0px 3px 0px 4px; - border: 1px solid #988; - font-weight: bold; - background-color: #fff; -} - -.calendar td.time .ampm { - text-align: center; -} - -.calendar td.time .colon { - padding: 0px 2px 0px 3px; - font-weight: bold; -} - -.calendar td.time span.hilite { - border-color: #000; - background-color: #866; - color: #fff; -} - -.calendar td.time span.active { - border-color: #f00; - background-color: #000; - color: #0f0; -} diff --git a/zioinfo/js/jscalendar-1.0/calendar-win2k-1.css b/zioinfo/js/jscalendar-1.0/calendar-win2k-1.css deleted file mode 100644 index 8c5d0266..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar-win2k-1.css +++ /dev/null @@ -1,271 +0,0 @@ -/* The main calendar widget. DIV containing a table. */ - -.calendar { - position: relative; - display: none; - border-top: 2px solid #fff; - border-right: 2px solid #000; - border-bottom: 2px solid #000; - border-left: 2px solid #fff; - font-size: 11px; - color: #000; - cursor: default; - background: #d4d0c8; - font-family: tahoma,verdana,sans-serif; -} - -.calendar table { - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; - font-size: 11px; - color: #000; - cursor: default; - background: #d4d0c8; - font-family: tahoma,verdana,sans-serif; -} - -/* Header part -- contains navigation buttons and day names. */ - -.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ - text-align: center; - padding: 1px; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; -} - -.calendar .nav { - background: transparent url(menuarrow.gif) no-repeat 100% 100%; -} - -.calendar thead .title { /* This holds the current "month, year" */ - font-weight: bold; - padding: 1px; - border: 1px solid #000; - background: #848078; - color: #fff; - text-align: center; -} - -.calendar thead .headrow { /* Row containing navigation buttons */ -} - -.calendar thead .daynames { /* Row containing the day names */ -} - -.calendar thead .name { /* Cells containing the day names */ - border-bottom: 1px solid #000; - padding: 2px; - text-align: center; - background: #f4f0e8; -} - -.calendar thead .weekend { /* How a weekend day name shows in header */ - color: #f00; -} - -.calendar thead .hilite { /* How do the buttons in header appear when hover */ - border-top: 2px solid #fff; - border-right: 2px solid #000; - border-bottom: 2px solid #000; - border-left: 2px solid #fff; - padding: 0px; - background-color: #e4e0d8; -} - -.calendar thead .active { /* Active (pressed) buttons in header */ - padding: 2px 0px 0px 2px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; - background-color: #c4c0b8; -} - -/* The body part -- contains all the days in month. */ - -.calendar tbody .day { /* Cells containing month days dates */ - width: 2em; - text-align: right; - padding: 2px 4px 2px 2px; -} -.calendar tbody .day.othermonth { - font-size: 80%; - color: #aaa; -} -.calendar tbody .day.othermonth.oweekend { - color: #faa; -} - -.calendar table .wn { - padding: 2px 3px 2px 2px; - border-right: 1px solid #000; - background: #f4f0e8; -} - -.calendar tbody .rowhilite td { - background: #e4e0d8; -} - -.calendar tbody .rowhilite td.wn { - background: #d4d0c8; -} - -.calendar tbody td.hilite { /* Hovered cells */ - padding: 1px 3px 1px 1px; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; -} - -.calendar tbody td.active { /* Active (pressed) cells */ - padding: 2px 2px 0px 2px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; -} - -.calendar tbody td.selected { /* Cell showing selected date */ - font-weight: bold; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; - padding: 2px 2px 0px 2px; - background: #e4e0d8; -} - -.calendar tbody td.weekend { /* Cells showing weekend days */ - color: #f00; -} - -.calendar tbody td.today { /* Cell showing today date */ - font-weight: bold; - color: #00f; -} - -.calendar tbody .disabled { color: #999; } - -.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ - visibility: hidden; -} - -.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ - display: none; -} - -/* The footer part -- status bar and "Close" button */ - -.calendar tfoot .footrow { /* The in footer (only one right now) */ -} - -.calendar tfoot .ttip { /* Tooltip (status bar) cell */ - background: #f4f0e8; - padding: 1px; - border: 1px solid #000; - background: #848078; - color: #fff; - text-align: center; -} - -.calendar tfoot .hilite { /* Hover style for buttons in footer */ - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; - padding: 1px; - background: #e4e0d8; -} - -.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ - padding: 2px 0px 0px 2px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; -} - -/* Combo boxes (menus that display months/years for direct selection) */ - -.calendar .combo { - position: absolute; - display: none; - width: 4em; - top: 0px; - left: 0px; - cursor: default; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; - background: #e4e0d8; - font-size: 90%; - padding: 1px; - z-index: 100; -} - -.calendar .combo .label, -.calendar .combo .label-IEfix { - text-align: center; - padding: 1px; -} - -.calendar .combo .label-IEfix { - width: 4em; -} - -.calendar .combo .active { - background: #c4c0b8; - padding: 0px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; -} - -.calendar .combo .hilite { - background: #048; - color: #fea; -} - -.calendar td.time { - border-top: 1px solid #000; - padding: 1px 0px; - text-align: center; - background-color: #f4f0e8; -} - -.calendar td.time .hour, -.calendar td.time .minute, -.calendar td.time .ampm { - padding: 0px 3px 0px 4px; - border: 1px solid #889; - font-weight: bold; - background-color: #fff; -} - -.calendar td.time .ampm { - text-align: center; -} - -.calendar td.time .colon { - padding: 0px 2px 0px 3px; - font-weight: bold; -} - -.calendar td.time span.hilite { - border-color: #000; - background-color: #766; - color: #fff; -} - -.calendar td.time span.active { - border-color: #f00; - background-color: #000; - color: #0f0; -} diff --git a/zioinfo/js/jscalendar-1.0/calendar-win2k-2.css b/zioinfo/js/jscalendar-1.0/calendar-win2k-2.css deleted file mode 100644 index 6f37b7dc..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar-win2k-2.css +++ /dev/null @@ -1,271 +0,0 @@ -/* The main calendar widget. DIV containing a table. */ - -.calendar { - position: relative; - display: none; - border-top: 2px solid #fff; - border-right: 2px solid #000; - border-bottom: 2px solid #000; - border-left: 2px solid #fff; - font-size: 11px; - color: #000; - cursor: default; - background: #d4c8d0; - font-family: tahoma,verdana,sans-serif; -} - -.calendar table { - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; - font-size: 11px; - color: #000; - cursor: default; - background: #d4c8d0; - font-family: tahoma,verdana,sans-serif; -} - -/* Header part -- contains navigation buttons and day names. */ - -.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ - text-align: center; - padding: 1px; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; -} - -.calendar .nav { - background: transparent url(menuarrow.gif) no-repeat 100% 100%; -} - -.calendar thead .title { /* This holds the current "month, year" */ - font-weight: bold; - padding: 1px; - border: 1px solid #000; - background: #847880; - color: #fff; - text-align: center; -} - -.calendar thead .headrow { /* Row containing navigation buttons */ -} - -.calendar thead .daynames { /* Row containing the day names */ -} - -.calendar thead .name { /* Cells containing the day names */ - border-bottom: 1px solid #000; - padding: 2px; - text-align: center; - background: #f4e8f0; -} - -.calendar thead .weekend { /* How a weekend day name shows in header */ - color: #f00; -} - -.calendar thead .hilite { /* How do the buttons in header appear when hover */ - border-top: 2px solid #fff; - border-right: 2px solid #000; - border-bottom: 2px solid #000; - border-left: 2px solid #fff; - padding: 0px; - background-color: #e4d8e0; -} - -.calendar thead .active { /* Active (pressed) buttons in header */ - padding: 2px 0px 0px 2px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; - background-color: #c4b8c0; -} - -/* The body part -- contains all the days in month. */ - -.calendar tbody .day { /* Cells containing month days dates */ - width: 2em; - text-align: right; - padding: 2px 4px 2px 2px; -} -.calendar tbody .day.othermonth { - font-size: 80%; - color: #aaa; -} -.calendar tbody .day.othermonth.oweekend { - color: #faa; -} - -.calendar table .wn { - padding: 2px 3px 2px 2px; - border-right: 1px solid #000; - background: #f4e8f0; -} - -.calendar tbody .rowhilite td { - background: #e4d8e0; -} - -.calendar tbody .rowhilite td.wn { - background: #d4c8d0; -} - -.calendar tbody td.hilite { /* Hovered cells */ - padding: 1px 3px 1px 1px; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; -} - -.calendar tbody td.active { /* Active (pressed) cells */ - padding: 2px 2px 0px 2px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; -} - -.calendar tbody td.selected { /* Cell showing selected date */ - font-weight: bold; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; - padding: 2px 2px 0px 2px; - background: #e4d8e0; -} - -.calendar tbody td.weekend { /* Cells showing weekend days */ - color: #f00; -} - -.calendar tbody td.today { /* Cell showing today date */ - font-weight: bold; - color: #00f; -} - -.calendar tbody .disabled { color: #999; } - -.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ - visibility: hidden; -} - -.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ - display: none; -} - -/* The footer part -- status bar and "Close" button */ - -.calendar tfoot .footrow { /* The in footer (only one right now) */ -} - -.calendar tfoot .ttip { /* Tooltip (status bar) cell */ - background: #f4e8f0; - padding: 1px; - border: 1px solid #000; - background: #847880; - color: #fff; - text-align: center; -} - -.calendar tfoot .hilite { /* Hover style for buttons in footer */ - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; - padding: 1px; - background: #e4d8e0; -} - -.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ - padding: 2px 0px 0px 2px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; -} - -/* Combo boxes (menus that display months/years for direct selection) */ - -.calendar .combo { - position: absolute; - display: none; - width: 4em; - top: 0px; - left: 0px; - cursor: default; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; - background: #e4d8e0; - font-size: 90%; - padding: 1px; - z-index: 100; -} - -.calendar .combo .label, -.calendar .combo .label-IEfix { - text-align: center; - padding: 1px; -} - -.calendar .combo .label-IEfix { - width: 4em; -} - -.calendar .combo .active { - background: #d4c8d0; - padding: 0px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; -} - -.calendar .combo .hilite { - background: #408; - color: #fea; -} - -.calendar td.time { - border-top: 1px solid #000; - padding: 1px 0px; - text-align: center; - background-color: #f4f0e8; -} - -.calendar td.time .hour, -.calendar td.time .minute, -.calendar td.time .ampm { - padding: 0px 3px 0px 4px; - border: 1px solid #889; - font-weight: bold; - background-color: #fff; -} - -.calendar td.time .ampm { - text-align: center; -} - -.calendar td.time .colon { - padding: 0px 2px 0px 3px; - font-weight: bold; -} - -.calendar td.time span.hilite { - border-color: #000; - background-color: #766; - color: #fff; -} - -.calendar td.time span.active { - border-color: #f00; - background-color: #000; - color: #0f0; -} diff --git a/zioinfo/js/jscalendar-1.0/calendar-win2k-cold-1.css b/zioinfo/js/jscalendar-1.0/calendar-win2k-cold-1.css deleted file mode 100644 index fa5c0932..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar-win2k-cold-1.css +++ /dev/null @@ -1,265 +0,0 @@ -/* The main calendar widget. DIV containing a table. */ - -.calendar { - position: relative; - display: none; - border-top: 2px solid #fff; - border-right: 2px solid #000; - border-bottom: 2px solid #000; - border-left: 2px solid #fff; - font-size: 11px; - color: #000; - cursor: default; - background: #c8d0d4; - font-family: tahoma,verdana,sans-serif; -} - -.calendar table { - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; - font-size: 11px; - color: #000; - cursor: default; - background: #c8d0d4; - font-family: tahoma,verdana,sans-serif; -} - -/* Header part -- contains navigation buttons and day names. */ - -.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ - text-align: center; - padding: 1px; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; -} - -.calendar .nav { - background: transparent url(menuarrow.gif) no-repeat 100% 100%; -} - -.calendar thead .title { /* This holds the current "month, year" */ - font-weight: bold; - padding: 1px; - border: 1px solid #000; - background: #788084; - color: #fff; - text-align: center; -} - -.calendar thead .headrow { /* Row containing navigation buttons */ -} - -.calendar thead .daynames { /* Row containing the day names */ -} - -.calendar thead .name { /* Cells containing the day names */ - border-bottom: 1px solid #000; - padding: 2px; - text-align: center; - background: #e8f0f4; -} - -.calendar thead .weekend { /* How a weekend day name shows in header */ - color: #f00; -} - -.calendar thead .hilite { /* How do the buttons in header appear when hover */ - border-top: 2px solid #fff; - border-right: 2px solid #000; - border-bottom: 2px solid #000; - border-left: 2px solid #fff; - padding: 0px; - background-color: #d8e0e4; -} - -.calendar thead .active { /* Active (pressed) buttons in header */ - padding: 2px 0px 0px 2px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; - background-color: #b8c0c4; -} - -/* The body part -- contains all the days in month. */ - -.calendar tbody .day { /* Cells containing month days dates */ - width: 2em; - text-align: right; - padding: 2px 4px 2px 2px; -} -.calendar tbody .day.othermonth { - font-size: 80%; - color: #aaa; -} -.calendar tbody .day.othermonth.oweekend { - color: #faa; -} - -.calendar table .wn { - padding: 2px 3px 2px 2px; - border-right: 1px solid #000; - background: #e8f4f0; -} - -.calendar tbody .rowhilite td { - background: #d8e4e0; -} - -.calendar tbody .rowhilite td.wn { - background: #c8d4d0; -} - -.calendar tbody td.hilite { /* Hovered cells */ - padding: 1px 3px 1px 1px; - border: 1px solid; - border-color: #fff #000 #000 #fff; -} - -.calendar tbody td.active { /* Active (pressed) cells */ - padding: 2px 2px 0px 2px; - border: 1px solid; - border-color: #000 #fff #fff #000; -} - -.calendar tbody td.selected { /* Cell showing selected date */ - font-weight: bold; - padding: 2px 2px 0px 2px; - border: 1px solid; - border-color: #000 #fff #fff #000; - background: #d8e0e4; -} - -.calendar tbody td.weekend { /* Cells showing weekend days */ - color: #f00; -} - -.calendar tbody td.today { /* Cell showing today date */ - font-weight: bold; - color: #00f; -} - -.calendar tbody .disabled { color: #999; } - -.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ - visibility: hidden; -} - -.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ - display: none; -} - -/* The footer part -- status bar and "Close" button */ - -.calendar tfoot .footrow { /* The in footer (only one right now) */ -} - -.calendar tfoot .ttip { /* Tooltip (status bar) cell */ - background: #e8f0f4; - padding: 1px; - border: 1px solid #000; - background: #788084; - color: #fff; - text-align: center; -} - -.calendar tfoot .hilite { /* Hover style for buttons in footer */ - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; - padding: 1px; - background: #d8e0e4; -} - -.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ - padding: 2px 0px 0px 2px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; -} - -/* Combo boxes (menus that display months/years for direct selection) */ - -.calendar .combo { - position: absolute; - display: none; - width: 4em; - top: 0px; - left: 0px; - cursor: default; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; - background: #d8e0e4; - font-size: 90%; - padding: 1px; - z-index: 100; -} - -.calendar .combo .label, -.calendar .combo .label-IEfix { - text-align: center; - padding: 1px; -} - -.calendar .combo .label-IEfix { - width: 4em; -} - -.calendar .combo .active { - background: #c8d0d4; - padding: 0px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; -} - -.calendar .combo .hilite { - background: #048; - color: #aef; -} - -.calendar td.time { - border-top: 1px solid #000; - padding: 1px 0px; - text-align: center; - background-color: #e8f0f4; -} - -.calendar td.time .hour, -.calendar td.time .minute, -.calendar td.time .ampm { - padding: 0px 3px 0px 4px; - border: 1px solid #889; - font-weight: bold; - background-color: #fff; -} - -.calendar td.time .ampm { - text-align: center; -} - -.calendar td.time .colon { - padding: 0px 2px 0px 3px; - font-weight: bold; -} - -.calendar td.time span.hilite { - border-color: #000; - background-color: #667; - color: #fff; -} - -.calendar td.time span.active { - border-color: #f00; - background-color: #000; - color: #0f0; -} diff --git a/zioinfo/js/jscalendar-1.0/calendar-win2k-cold-2.css b/zioinfo/js/jscalendar-1.0/calendar-win2k-cold-2.css deleted file mode 100644 index 8e930c8f..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar-win2k-cold-2.css +++ /dev/null @@ -1,271 +0,0 @@ -/* The main calendar widget. DIV containing a table. */ - -.calendar { - position: relative; - display: none; - border-top: 2px solid #fff; - border-right: 2px solid #000; - border-bottom: 2px solid #000; - border-left: 2px solid #fff; - font-size: 11px; - color: #000; - cursor: default; - background: #c8d4d0; - font-family: tahoma,verdana,sans-serif; -} - -.calendar table { - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; - font-size: 11px; - color: #000; - cursor: default; - background: #c8d4d0; - font-family: tahoma,verdana,sans-serif; -} - -/* Header part -- contains navigation buttons and day names. */ - -.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ - text-align: center; - padding: 1px; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; -} - -.calendar .nav { - background: transparent url(menuarrow.gif) no-repeat 100% 100%; -} - -.calendar thead .title { /* This holds the current "month, year" */ - font-weight: bold; - padding: 1px; - border: 1px solid #000; - background: #788480; - color: #fff; - text-align: center; -} - -.calendar thead .headrow { /* Row containing navigation buttons */ -} - -.calendar thead .daynames { /* Row containing the day names */ -} - -.calendar thead .name { /* Cells containing the day names */ - border-bottom: 1px solid #000; - padding: 2px; - text-align: center; - background: #e8f4f0; -} - -.calendar thead .weekend { /* How a weekend day name shows in header */ - color: #f00; -} - -.calendar thead .hilite { /* How do the buttons in header appear when hover */ - border-top: 2px solid #fff; - border-right: 2px solid #000; - border-bottom: 2px solid #000; - border-left: 2px solid #fff; - padding: 0px; - background-color: #d8e4e0; -} - -.calendar thead .active { /* Active (pressed) buttons in header */ - padding: 2px 0px 0px 2px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; - background-color: #b8c4c0; -} - -/* The body part -- contains all the days in month. */ - -.calendar tbody .day { /* Cells containing month days dates */ - width: 2em; - text-align: right; - padding: 2px 4px 2px 2px; -} -.calendar tbody .day.othermonth { - font-size: 80%; - color: #aaa; -} -.calendar tbody .day.othermonth.oweekend { - color: #faa; -} - -.calendar table .wn { - padding: 2px 3px 2px 2px; - border-right: 1px solid #000; - background: #e8f4f0; -} - -.calendar tbody .rowhilite td { - background: #d8e4e0; -} - -.calendar tbody .rowhilite td.wn { - background: #c8d4d0; -} - -.calendar tbody td.hilite { /* Hovered cells */ - padding: 1px 3px 1px 1px; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; -} - -.calendar tbody td.active { /* Active (pressed) cells */ - padding: 2px 2px 0px 2px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; -} - -.calendar tbody td.selected { /* Cell showing selected date */ - font-weight: bold; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; - padding: 2px 2px 0px 2px; - background: #d8e4e0; -} - -.calendar tbody td.weekend { /* Cells showing weekend days */ - color: #f00; -} - -.calendar tbody td.today { /* Cell showing today date */ - font-weight: bold; - color: #00f; -} - -.calendar tbody .disabled { color: #999; } - -.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ - visibility: hidden; -} - -.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ - display: none; -} - -/* The footer part -- status bar and "Close" button */ - -.calendar tfoot .footrow { /* The in footer (only one right now) */ -} - -.calendar tfoot .ttip { /* Tooltip (status bar) cell */ - background: #e8f4f0; - padding: 1px; - border: 1px solid #000; - background: #788480; - color: #fff; - text-align: center; -} - -.calendar tfoot .hilite { /* Hover style for buttons in footer */ - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; - padding: 1px; - background: #d8e4e0; -} - -.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ - padding: 2px 0px 0px 2px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; -} - -/* Combo boxes (menus that display months/years for direct selection) */ - -.calendar .combo { - position: absolute; - display: none; - width: 4em; - top: 0px; - left: 0px; - cursor: default; - border-top: 1px solid #fff; - border-right: 1px solid #000; - border-bottom: 1px solid #000; - border-left: 1px solid #fff; - background: #d8e4e0; - font-size: 90%; - padding: 1px; - z-index: 100; -} - -.calendar .combo .label, -.calendar .combo .label-IEfix { - text-align: center; - padding: 1px; -} - -.calendar .combo .label-IEfix { - width: 4em; -} - -.calendar .combo .active { - background: #c8d4d0; - padding: 0px; - border-top: 1px solid #000; - border-right: 1px solid #fff; - border-bottom: 1px solid #fff; - border-left: 1px solid #000; -} - -.calendar .combo .hilite { - background: #048; - color: #aef; -} - -.calendar td.time { - border-top: 1px solid #000; - padding: 1px 0px; - text-align: center; - background-color: #e8f0f4; -} - -.calendar td.time .hour, -.calendar td.time .minute, -.calendar td.time .ampm { - padding: 0px 3px 0px 4px; - border: 1px solid #889; - font-weight: bold; - background-color: #fff; -} - -.calendar td.time .ampm { - text-align: center; -} - -.calendar td.time .colon { - padding: 0px 2px 0px 3px; - font-weight: bold; -} - -.calendar td.time span.hilite { - border-color: #000; - background-color: #667; - color: #fff; -} - -.calendar td.time span.active { - border-color: #f00; - background-color: #000; - color: #0f0; -} diff --git a/zioinfo/js/jscalendar-1.0/calendar.js b/zioinfo/js/jscalendar-1.0/calendar.js deleted file mode 100644 index c0bb5b62..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar.js +++ /dev/null @@ -1,1806 +0,0 @@ -/* Copyright Mihai Bazon, 2002-2005 | www.bazon.net/mishoo - * ----------------------------------------------------------- - * - * The DHTML Calendar, version 1.0 "It is happening again" - * - * Details and latest version at: - * www.dynarch.com/projects/calendar - * - * This script is developed by Dynarch.com. Visit us at www.dynarch.com. - * - * This script is distributed under the GNU Lesser General Public License. - * Read the entire license text here: http://www.gnu.org/licenses/lgpl.html - */ - -// $Id: calendar.js,v 1.1 2007/05/21 11:51:55 bangmaroo Exp $ - -/** The Calendar object constructor. */ -Calendar = function (firstDayOfWeek, dateStr, onSelected, onClose) { - // member variables - this.activeDiv = null; - this.currentDateEl = null; - this.getDateStatus = null; - this.getDateToolTip = null; - this.getDateText = null; - this.timeout = null; - this.onSelected = onSelected || null; - this.onClose = onClose || null; - this.dragging = false; - this.hidden = false; - this.minYear = 1970; - this.maxYear = 2050; - this.dateFormat = Calendar._TT["DEF_DATE_FORMAT"]; - this.ttDateFormat = Calendar._TT["TT_DATE_FORMAT"]; - this.isPopup = true; - this.weekNumbers = true; - this.firstDayOfWeek = typeof firstDayOfWeek == "number" ? firstDayOfWeek : Calendar._FD; // 0 for Sunday, 1 for Monday, etc. - this.showsOtherMonths = false; - this.dateStr = dateStr; - this.ar_days = null; - this.showsTime = false; - this.time24 = true; - this.yearStep = 2; - this.hiliteToday = true; - this.multiple = null; - // HTML elements - this.table = null; - this.element = null; - this.tbody = null; - this.firstdayname = null; - // Combo boxes - this.monthsCombo = null; - this.yearsCombo = null; - this.hilitedMonth = null; - this.activeMonth = null; - this.hilitedYear = null; - this.activeYear = null; - // Information - this.dateClicked = false; - - // one-time initializations - if (typeof Calendar._SDN == "undefined") { - // table of short day names - if (typeof Calendar._SDN_len == "undefined") - Calendar._SDN_len = 3; - var ar = new Array(); - for (var i = 8; i > 0;) { - ar[--i] = Calendar._DN[i].substr(0, Calendar._SDN_len); - } - Calendar._SDN = ar; - // table of short month names - if (typeof Calendar._SMN_len == "undefined") - Calendar._SMN_len = 3; - ar = new Array(); - for (var i = 12; i > 0;) { - ar[--i] = Calendar._MN[i].substr(0, Calendar._SMN_len); - } - Calendar._SMN = ar; - } -}; - -// ** constants - -/// "static", needed for event handlers. -Calendar._C = null; - -/// detect a special case of "web browser" -Calendar.is_ie = ( /msie/i.test(navigator.userAgent) && - !/opera/i.test(navigator.userAgent) ); - -Calendar.is_ie5 = ( Calendar.is_ie && /msie 5\.0/i.test(navigator.userAgent) ); - -/// detect Opera browser -Calendar.is_opera = /opera/i.test(navigator.userAgent); - -/// detect KHTML-based browsers -Calendar.is_khtml = /Konqueror|Safari|KHTML/i.test(navigator.userAgent); - -// BEGIN: UTILITY FUNCTIONS; beware that these might be moved into a separate -// library, at some point. - -Calendar.getAbsolutePos = function(el) { - var SL = 0, ST = 0; - var is_div = /^div$/i.test(el.tagName); - if (is_div && el.scrollLeft) - SL = el.scrollLeft; - if (is_div && el.scrollTop) - ST = el.scrollTop; - var r = { x: el.offsetLeft - SL, y: el.offsetTop - ST }; - if (el.offsetParent) { - var tmp = this.getAbsolutePos(el.offsetParent); - r.x += tmp.x; - r.y += tmp.y; - } - return r; -}; - -Calendar.isRelated = function (el, evt) { - var related = evt.relatedTarget; - if (!related) { - var type = evt.type; - if (type == "mouseover") { - related = evt.fromElement; - } else if (type == "mouseout") { - related = evt.toElement; - } - } - while (related) { - if (related == el) { - return true; - } - related = related.parentNode; - } - return false; -}; - -Calendar.removeClass = function(el, className) { - if (!(el && el.className)) { - return; - } - var cls = el.className.split(" "); - var ar = new Array(); - for (var i = cls.length; i > 0;) { - if (cls[--i] != className) { - ar[ar.length] = cls[i]; - } - } - el.className = ar.join(" "); -}; - -Calendar.addClass = function(el, className) { - Calendar.removeClass(el, className); - el.className += " " + className; -}; - -// FIXME: the following 2 functions totally suck, are useless and should be replaced immediately. -Calendar.getElement = function(ev) { - var f = Calendar.is_ie ? window.event.srcElement : ev.currentTarget; - while (f.nodeType != 1 || /^div$/i.test(f.tagName)) - f = f.parentNode; - return f; -}; - -Calendar.getTargetElement = function(ev) { - var f = Calendar.is_ie ? window.event.srcElement : ev.target; - while (f.nodeType != 1) - f = f.parentNode; - return f; -}; - -Calendar.stopEvent = function(ev) { - ev || (ev = window.event); - if (Calendar.is_ie) { - ev.cancelBubble = true; - ev.returnValue = false; - } else { - ev.preventDefault(); - ev.stopPropagation(); - } - return false; -}; - -Calendar.addEvent = function(el, evname, func) { - if (el.attachEvent) { // IE - el.attachEvent("on" + evname, func); - } else if (el.addEventListener) { // Gecko / W3C - el.addEventListener(evname, func, true); - } else { - el["on" + evname] = func; - } -}; - -Calendar.removeEvent = function(el, evname, func) { - if (el.detachEvent) { // IE - el.detachEvent("on" + evname, func); - } else if (el.removeEventListener) { // Gecko / W3C - el.removeEventListener(evname, func, true); - } else { - el["on" + evname] = null; - } -}; - -Calendar.createElement = function(type, parent) { - var el = null; - if (document.createElementNS) { - // use the XHTML namespace; IE won't normally get here unless - // _they_ "fix" the DOM2 implementation. - el = document.createElementNS("http://www.w3.org/1999/xhtml", type); - } else { - el = document.createElement(type); - } - if (typeof parent != "undefined") { - parent.appendChild(el); - } - return el; -}; - -// END: UTILITY FUNCTIONS - -// BEGIN: CALENDAR STATIC FUNCTIONS - -/** Internal -- adds a set of events to make some element behave like a button. */ -Calendar._add_evs = function(el) { - with (Calendar) { - addEvent(el, "mouseover", dayMouseOver); - addEvent(el, "mousedown", dayMouseDown); - addEvent(el, "mouseout", dayMouseOut); - if (is_ie) { - addEvent(el, "dblclick", dayMouseDblClick); - el.setAttribute("unselectable", true); - } - } -}; - -Calendar.findMonth = function(el) { - if (typeof el.month != "undefined") { - return el; - } else if (typeof el.parentNode.month != "undefined") { - return el.parentNode; - } - return null; -}; - -Calendar.findYear = function(el) { - if (typeof el.year != "undefined") { - return el; - } else if (typeof el.parentNode.year != "undefined") { - return el.parentNode; - } - return null; -}; - -Calendar.showMonthsCombo = function () { - var cal = Calendar._C; - if (!cal) { - return false; - } - var cal = cal; - var cd = cal.activeDiv; - var mc = cal.monthsCombo; - if (cal.hilitedMonth) { - Calendar.removeClass(cal.hilitedMonth, "hilite"); - } - if (cal.activeMonth) { - Calendar.removeClass(cal.activeMonth, "active"); - } - var mon = cal.monthsCombo.getElementsByTagName("div")[cal.date.getMonth()]; - Calendar.addClass(mon, "active"); - cal.activeMonth = mon; - var s = mc.style; - s.display = "block"; - if (cd.navtype < 0) - s.left = cd.offsetLeft + "px"; - else { - var mcw = mc.offsetWidth; - if (typeof mcw == "undefined") - // Konqueror brain-dead techniques - mcw = 50; - s.left = (cd.offsetLeft + cd.offsetWidth - mcw) + "px"; - } - s.top = (cd.offsetTop + cd.offsetHeight) + "px"; -}; - -Calendar.showYearsCombo = function (fwd) { - var cal = Calendar._C; - if (!cal) { - return false; - } - var cal = cal; - var cd = cal.activeDiv; - var yc = cal.yearsCombo; - if (cal.hilitedYear) { - Calendar.removeClass(cal.hilitedYear, "hilite"); - } - if (cal.activeYear) { - Calendar.removeClass(cal.activeYear, "active"); - } - cal.activeYear = null; - var Y = cal.date.getFullYear() + (fwd ? 1 : -1); - var yr = yc.firstChild; - var show = false; - for (var i = 12; i > 0; --i) { - if (Y >= cal.minYear && Y <= cal.maxYear) { - yr.innerHTML = Y; - yr.year = Y; - yr.style.display = "block"; - show = true; - } else { - yr.style.display = "none"; - } - yr = yr.nextSibling; - Y += fwd ? cal.yearStep : -cal.yearStep; - } - if (show) { - var s = yc.style; - s.display = "block"; - if (cd.navtype < 0) - s.left = cd.offsetLeft + "px"; - else { - var ycw = yc.offsetWidth; - if (typeof ycw == "undefined") - // Konqueror brain-dead techniques - ycw = 50; - s.left = (cd.offsetLeft + cd.offsetWidth - ycw) + "px"; - } - s.top = (cd.offsetTop + cd.offsetHeight) + "px"; - } -}; - -// event handlers - -Calendar.tableMouseUp = function(ev) { - var cal = Calendar._C; - if (!cal) { - return false; - } - if (cal.timeout) { - clearTimeout(cal.timeout); - } - var el = cal.activeDiv; - if (!el) { - return false; - } - var target = Calendar.getTargetElement(ev); - ev || (ev = window.event); - Calendar.removeClass(el, "active"); - if (target == el || target.parentNode == el) { - Calendar.cellClick(el, ev); - } - var mon = Calendar.findMonth(target); - var date = null; - if (mon) { - date = new Date(cal.date); - if (mon.month != date.getMonth()) { - date.setMonth(mon.month); - cal.setDate(date); - cal.dateClicked = false; - cal.callHandler(); - } - } else { - var year = Calendar.findYear(target); - if (year) { - date = new Date(cal.date); - if (year.year != date.getFullYear()) { - date.setFullYear(year.year); - cal.setDate(date); - cal.dateClicked = false; - cal.callHandler(); - } - } - } - with (Calendar) { - removeEvent(document, "mouseup", tableMouseUp); - removeEvent(document, "mouseover", tableMouseOver); - removeEvent(document, "mousemove", tableMouseOver); - cal._hideCombos(); - _C = null; - return stopEvent(ev); - } -}; - -Calendar.tableMouseOver = function (ev) { - var cal = Calendar._C; - if (!cal) { - return; - } - var el = cal.activeDiv; - var target = Calendar.getTargetElement(ev); - if (target == el || target.parentNode == el) { - Calendar.addClass(el, "hilite active"); - Calendar.addClass(el.parentNode, "rowhilite"); - } else { - if (typeof el.navtype == "undefined" || (el.navtype != 50 && (el.navtype == 0 || Math.abs(el.navtype) > 2))) - Calendar.removeClass(el, "active"); - Calendar.removeClass(el, "hilite"); - Calendar.removeClass(el.parentNode, "rowhilite"); - } - ev || (ev = window.event); - if (el.navtype == 50 && target != el) { - var pos = Calendar.getAbsolutePos(el); - var w = el.offsetWidth; - var x = ev.clientX; - var dx; - var decrease = true; - if (x > pos.x + w) { - dx = x - pos.x - w; - decrease = false; - } else - dx = pos.x - x; - - if (dx < 0) dx = 0; - var range = el._range; - var current = el._current; - var count = Math.floor(dx / 10) % range.length; - for (var i = range.length; --i >= 0;) - if (range[i] == current) - break; - while (count-- > 0) - if (decrease) { - if (--i < 0) - i = range.length - 1; - } else if ( ++i >= range.length ) - i = 0; - var newval = range[i]; - el.innerHTML = newval; - - cal.onUpdateTime(); - } - var mon = Calendar.findMonth(target); - if (mon) { - if (mon.month != cal.date.getMonth()) { - if (cal.hilitedMonth) { - Calendar.removeClass(cal.hilitedMonth, "hilite"); - } - Calendar.addClass(mon, "hilite"); - cal.hilitedMonth = mon; - } else if (cal.hilitedMonth) { - Calendar.removeClass(cal.hilitedMonth, "hilite"); - } - } else { - if (cal.hilitedMonth) { - Calendar.removeClass(cal.hilitedMonth, "hilite"); - } - var year = Calendar.findYear(target); - if (year) { - if (year.year != cal.date.getFullYear()) { - if (cal.hilitedYear) { - Calendar.removeClass(cal.hilitedYear, "hilite"); - } - Calendar.addClass(year, "hilite"); - cal.hilitedYear = year; - } else if (cal.hilitedYear) { - Calendar.removeClass(cal.hilitedYear, "hilite"); - } - } else if (cal.hilitedYear) { - Calendar.removeClass(cal.hilitedYear, "hilite"); - } - } - return Calendar.stopEvent(ev); -}; - -Calendar.tableMouseDown = function (ev) { - if (Calendar.getTargetElement(ev) == Calendar.getElement(ev)) { - return Calendar.stopEvent(ev); - } -}; - -Calendar.calDragIt = function (ev) { - var cal = Calendar._C; - if (!(cal && cal.dragging)) { - return false; - } - var posX; - var posY; - if (Calendar.is_ie) { - posY = window.event.clientY + document.body.scrollTop; - posX = window.event.clientX + document.body.scrollLeft; - } else { - posX = ev.pageX; - posY = ev.pageY; - } - cal.hideShowCovered(); - var st = cal.element.style; - st.left = (posX - cal.xOffs) + "px"; - st.top = (posY - cal.yOffs) + "px"; - return Calendar.stopEvent(ev); -}; - -Calendar.calDragEnd = function (ev) { - var cal = Calendar._C; - if (!cal) { - return false; - } - cal.dragging = false; - with (Calendar) { - removeEvent(document, "mousemove", calDragIt); - removeEvent(document, "mouseup", calDragEnd); - tableMouseUp(ev); - } - cal.hideShowCovered(); -}; - -Calendar.dayMouseDown = function(ev) { - var el = Calendar.getElement(ev); - if (el.disabled) { - return false; - } - var cal = el.calendar; - cal.activeDiv = el; - Calendar._C = cal; - if (el.navtype != 300) with (Calendar) { - if (el.navtype == 50) { - el._current = el.innerHTML; - addEvent(document, "mousemove", tableMouseOver); - } else - addEvent(document, Calendar.is_ie5 ? "mousemove" : "mouseover", tableMouseOver); - addClass(el, "hilite active"); - addEvent(document, "mouseup", tableMouseUp); - } else if (cal.isPopup) { - cal._dragStart(ev); - } - if (el.navtype == -1 || el.navtype == 1) { - if (cal.timeout) clearTimeout(cal.timeout); - cal.timeout = setTimeout("Calendar.showMonthsCombo()", 250); - } else if (el.navtype == -2 || el.navtype == 2) { - if (cal.timeout) clearTimeout(cal.timeout); - cal.timeout = setTimeout((el.navtype > 0) ? "Calendar.showYearsCombo(true)" : "Calendar.showYearsCombo(false)", 250); - } else { - cal.timeout = null; - } - return Calendar.stopEvent(ev); -}; - -Calendar.dayMouseDblClick = function(ev) { - Calendar.cellClick(Calendar.getElement(ev), ev || window.event); - if (Calendar.is_ie) { - document.selection.empty(); - } -}; - -Calendar.dayMouseOver = function(ev) { - var el = Calendar.getElement(ev); - if (Calendar.isRelated(el, ev) || Calendar._C || el.disabled) { - return false; - } - if (el.ttip) { - if (el.ttip.substr(0, 1) == "_") { - el.ttip = el.caldate.print(el.calendar.ttDateFormat) + el.ttip.substr(1); - } - el.calendar.tooltips.innerHTML = el.ttip; - } - if (el.navtype != 300) { - Calendar.addClass(el, "hilite"); - if (el.caldate) { - Calendar.addClass(el.parentNode, "rowhilite"); - } - } - return Calendar.stopEvent(ev); -}; - -Calendar.dayMouseOut = function(ev) { - with (Calendar) { - var el = getElement(ev); - if (isRelated(el, ev) || _C || el.disabled) - return false; - removeClass(el, "hilite"); - if (el.caldate) - removeClass(el.parentNode, "rowhilite"); - if (el.calendar) - el.calendar.tooltips.innerHTML = _TT["SEL_DATE"]; - return stopEvent(ev); - } -}; - -/** - * A generic "click" handler :) handles all types of buttons defined in this - * calendar. - */ -Calendar.cellClick = function(el, ev) { - var cal = el.calendar; - var closing = false; - var newdate = false; - var date = null; - if (typeof el.navtype == "undefined") { - if (cal.currentDateEl) { - Calendar.removeClass(cal.currentDateEl, "selected"); - Calendar.addClass(el, "selected"); - closing = (cal.currentDateEl == el); - if (!closing) { - cal.currentDateEl = el; - } - } - cal.date.setDateOnly(el.caldate); - date = cal.date; - var other_month = !(cal.dateClicked = !el.otherMonth); - if (!other_month && !cal.currentDateEl) - cal._toggleMultipleDate(new Date(date)); - else - newdate = !el.disabled; - // a date was clicked - if (other_month) - cal._init(cal.firstDayOfWeek, date); - } else { - if (el.navtype == 200) { - Calendar.removeClass(el, "hilite"); - cal.callCloseHandler(); - return; - } - date = new Date(cal.date); - if (el.navtype == 0) - date.setDateOnly(new Date()); // TODAY - // unless "today" was clicked, we assume no date was clicked so - // the selected handler will know not to close the calenar when - // in single-click mode. - // cal.dateClicked = (el.navtype == 0); - cal.dateClicked = false; - var year = date.getFullYear(); - var mon = date.getMonth(); - function setMonth(m) { - var day = date.getDate(); - var max = date.getMonthDays(m); - if (day > max) { - date.setDate(max); - } - date.setMonth(m); - }; - switch (el.navtype) { - case 400: - Calendar.removeClass(el, "hilite"); - var text = Calendar._TT["ABOUT"]; - if (typeof text != "undefined") { - text += cal.showsTime ? Calendar._TT["ABOUT_TIME"] : ""; - } else { - // FIXME: this should be removed as soon as lang files get updated! - text = "Help and about box text is not translated into this language.\n" + - "If you know this language and you feel generous please update\n" + - "the corresponding file in \"lang\" subdir to match calendar-en.js\n" + - "and send it back to to get it into the distribution ;-)\n\n" + - "Thank you!\n" + - "http://dynarch.com/mishoo/calendar.epl\n"; - } - alert(text); - return; - case -2: - if (year > cal.minYear) { - date.setFullYear(year - 1); - } - break; - case -1: - if (mon > 0) { - setMonth(mon - 1); - } else if (year-- > cal.minYear) { - date.setFullYear(year); - setMonth(11); - } - break; - case 1: - if (mon < 11) { - setMonth(mon + 1); - } else if (year < cal.maxYear) { - date.setFullYear(year + 1); - setMonth(0); - } - break; - case 2: - if (year < cal.maxYear) { - date.setFullYear(year + 1); - } - break; - case 100: - cal.setFirstDayOfWeek(el.fdow); - return; - case 50: - var range = el._range; - var current = el.innerHTML; - for (var i = range.length; --i >= 0;) - if (range[i] == current) - break; - if (ev && ev.shiftKey) { - if (--i < 0) - i = range.length - 1; - } else if ( ++i >= range.length ) - i = 0; - var newval = range[i]; - el.innerHTML = newval; - cal.onUpdateTime(); - return; - case 0: - // TODAY will bring us here - if ((typeof cal.getDateStatus == "function") && - cal.getDateStatus(date, date.getFullYear(), date.getMonth(), date.getDate())) { - return false; - } - break; - } - if (!date.equalsTo(cal.date)) { - cal.setDate(date); - newdate = true; - } else if (el.navtype == 0) - newdate = closing = true; - } - if (newdate) { - ev && cal.callHandler(); - } - if (closing) { - Calendar.removeClass(el, "hilite"); - ev && cal.callCloseHandler(); - } -}; - -// END: CALENDAR STATIC FUNCTIONS - -// BEGIN: CALENDAR OBJECT FUNCTIONS - -/** - * This function creates the calendar inside the given parent. If _par is - * null than it creates a popup calendar inside the BODY element. If _par is - * an element, be it BODY, then it creates a non-popup calendar (still - * hidden). Some properties need to be set before calling this function. - */ -Calendar.prototype.create = function (_par) { - var parent = null; - if (! _par) { - // default parent is the document body, in which case we create - // a popup calendar. - parent = document.getElementsByTagName("body")[0]; - this.isPopup = true; - } else { - parent = _par; - this.isPopup = false; - } - this.date = this.dateStr ? new Date(this.dateStr) : new Date(); - - var table = Calendar.createElement("table"); - this.table = table; - table.cellSpacing = 0; - table.cellPadding = 0; - table.calendar = this; - Calendar.addEvent(table, "mousedown", Calendar.tableMouseDown); - - var div = Calendar.createElement("div"); - this.element = div; - div.className = "calendar"; - if (this.isPopup) { - div.style.position = "absolute"; - div.style.display = "none"; - } - div.appendChild(table); - - var thead = Calendar.createElement("thead", table); - var cell = null; - var row = null; - - var cal = this; - var hh = function (text, cs, navtype) { - cell = Calendar.createElement("td", row); - cell.colSpan = cs; - cell.className = "button"; - if (navtype != 0 && Math.abs(navtype) <= 2) - cell.className += " nav"; - Calendar._add_evs(cell); - cell.calendar = cal; - cell.navtype = navtype; - cell.innerHTML = "
    " + text + "
    "; - return cell; - }; - - row = Calendar.createElement("tr", thead); - var title_length = 6; - (this.isPopup) && --title_length; - (this.weekNumbers) && ++title_length; - - hh("?", 1, 400).ttip = Calendar._TT["INFO"]; - this.title = hh("", title_length, 300); - this.title.className = "title"; - if (this.isPopup) { - this.title.ttip = Calendar._TT["DRAG_TO_MOVE"]; - this.title.style.cursor = "move"; - hh("×", 1, 200).ttip = Calendar._TT["CLOSE"]; - } - - row = Calendar.createElement("tr", thead); - row.className = "headrow"; - - this._nav_py = hh("«", 1, -2); - this._nav_py.ttip = Calendar._TT["PREV_YEAR"]; - - this._nav_pm = hh("‹", 1, -1); - this._nav_pm.ttip = Calendar._TT["PREV_MONTH"]; - - this._nav_now = hh(Calendar._TT["TODAY"], this.weekNumbers ? 4 : 3, 0); - this._nav_now.ttip = Calendar._TT["GO_TODAY"]; - - this._nav_nm = hh("›", 1, 1); - this._nav_nm.ttip = Calendar._TT["NEXT_MONTH"]; - - this._nav_ny = hh("»", 1, 2); - this._nav_ny.ttip = Calendar._TT["NEXT_YEAR"]; - - // day names - row = Calendar.createElement("tr", thead); - row.className = "daynames"; - if (this.weekNumbers) { - cell = Calendar.createElement("td", row); - cell.className = "name wn"; - cell.innerHTML = Calendar._TT["WK"]; - } - for (var i = 7; i > 0; --i) { - cell = Calendar.createElement("td", row); - if (!i) { - cell.navtype = 100; - cell.calendar = this; - Calendar._add_evs(cell); - } - } - this.firstdayname = (this.weekNumbers) ? row.firstChild.nextSibling : row.firstChild; - this._displayWeekdays(); - - var tbody = Calendar.createElement("tbody", table); - this.tbody = tbody; - - for (i = 6; i > 0; --i) { - row = Calendar.createElement("tr", tbody); - if (this.weekNumbers) { - cell = Calendar.createElement("td", row); - } - for (var j = 7; j > 0; --j) { - cell = Calendar.createElement("td", row); - cell.calendar = this; - Calendar._add_evs(cell); - } - } - - if (this.showsTime) { - row = Calendar.createElement("tr", tbody); - row.className = "time"; - - cell = Calendar.createElement("td", row); - cell.className = "time"; - cell.colSpan = 2; - cell.innerHTML = Calendar._TT["TIME"] || " "; - - cell = Calendar.createElement("td", row); - cell.className = "time"; - cell.colSpan = this.weekNumbers ? 4 : 3; - - (function(){ - function makeTimePart(className, init, range_start, range_end) { - var part = Calendar.createElement("span", cell); - part.className = className; - part.innerHTML = init; - part.calendar = cal; - part.ttip = Calendar._TT["TIME_PART"]; - part.navtype = 50; - part._range = []; - if (typeof range_start != "number") - part._range = range_start; - else { - for (var i = range_start; i <= range_end; ++i) { - var txt; - if (i < 10 && range_end >= 10) txt = '0' + i; - else txt = '' + i; - part._range[part._range.length] = txt; - } - } - Calendar._add_evs(part); - return part; - }; - var hrs = cal.date.getHours(); - var mins = cal.date.getMinutes(); - var t12 = !cal.time24; - var pm = (hrs > 12); - if (t12 && pm) hrs -= 12; - var H = makeTimePart("hour", hrs, t12 ? 1 : 0, t12 ? 12 : 23); - var span = Calendar.createElement("span", cell); - span.innerHTML = ":"; - span.className = "colon"; - var M = makeTimePart("minute", mins, 0, 59); - var AP = null; - cell = Calendar.createElement("td", row); - cell.className = "time"; - cell.colSpan = 2; - if (t12) - AP = makeTimePart("ampm", pm ? "pm" : "am", ["am", "pm"]); - else - cell.innerHTML = " "; - - cal.onSetTime = function() { - var pm, hrs = this.date.getHours(), - mins = this.date.getMinutes(); - if (t12) { - pm = (hrs >= 12); - if (pm) hrs -= 12; - if (hrs == 0) hrs = 12; - AP.innerHTML = pm ? "pm" : "am"; - } - H.innerHTML = (hrs < 10) ? ("0" + hrs) : hrs; - M.innerHTML = (mins < 10) ? ("0" + mins) : mins; - }; - - cal.onUpdateTime = function() { - var date = this.date; - var h = parseInt(H.innerHTML, 10); - if (t12) { - if (/pm/i.test(AP.innerHTML) && h < 12) - h += 12; - else if (/am/i.test(AP.innerHTML) && h == 12) - h = 0; - } - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); - date.setHours(h); - date.setMinutes(parseInt(M.innerHTML, 10)); - date.setFullYear(y); - date.setMonth(m); - date.setDate(d); - this.dateClicked = false; - this.callHandler(); - }; - })(); - } else { - this.onSetTime = this.onUpdateTime = function() {}; - } - - var tfoot = Calendar.createElement("tfoot", table); - - row = Calendar.createElement("tr", tfoot); - row.className = "footrow"; - - cell = hh(Calendar._TT["SEL_DATE"], this.weekNumbers ? 8 : 7, 300); - cell.className = "ttip"; - if (this.isPopup) { - cell.ttip = Calendar._TT["DRAG_TO_MOVE"]; - cell.style.cursor = "move"; - } - this.tooltips = cell; - - div = Calendar.createElement("div", this.element); - this.monthsCombo = div; - div.className = "combo"; - for (i = 0; i < Calendar._MN.length; ++i) { - var mn = Calendar.createElement("div"); - mn.className = Calendar.is_ie ? "label-IEfix" : "label"; - mn.month = i; - mn.innerHTML = Calendar._SMN[i]; - div.appendChild(mn); - } - - div = Calendar.createElement("div", this.element); - this.yearsCombo = div; - div.className = "combo"; - for (i = 12; i > 0; --i) { - var yr = Calendar.createElement("div"); - yr.className = Calendar.is_ie ? "label-IEfix" : "label"; - div.appendChild(yr); - } - - this._init(this.firstDayOfWeek, this.date); - parent.appendChild(this.element); -}; - -/** keyboard navigation, only for popup calendars */ -Calendar._keyEvent = function(ev) { - var cal = window._dynarch_popupCalendar; - if (!cal || cal.multiple) - return false; - (Calendar.is_ie) && (ev = window.event); - var act = (Calendar.is_ie || ev.type == "keypress"), - K = ev.keyCode; - if (ev.ctrlKey) { - switch (K) { - case 37: // KEY left - act && Calendar.cellClick(cal._nav_pm); - break; - case 38: // KEY up - act && Calendar.cellClick(cal._nav_py); - break; - case 39: // KEY right - act && Calendar.cellClick(cal._nav_nm); - break; - case 40: // KEY down - act && Calendar.cellClick(cal._nav_ny); - break; - default: - return false; - } - } else switch (K) { - case 32: // KEY space (now) - Calendar.cellClick(cal._nav_now); - break; - case 27: // KEY esc - act && cal.callCloseHandler(); - break; - case 37: // KEY left - case 38: // KEY up - case 39: // KEY right - case 40: // KEY down - if (act) { - var prev, x, y, ne, el, step; - prev = K == 37 || K == 38; - step = (K == 37 || K == 39) ? 1 : 7; - function setVars() { - el = cal.currentDateEl; - var p = el.pos; - x = p & 15; - y = p >> 4; - ne = cal.ar_days[y][x]; - };setVars(); - function prevMonth() { - var date = new Date(cal.date); - date.setDate(date.getDate() - step); - cal.setDate(date); - }; - function nextMonth() { - var date = new Date(cal.date); - date.setDate(date.getDate() + step); - cal.setDate(date); - }; - while (1) { - switch (K) { - case 37: // KEY left - if (--x >= 0) - ne = cal.ar_days[y][x]; - else { - x = 6; - K = 38; - continue; - } - break; - case 38: // KEY up - if (--y >= 0) - ne = cal.ar_days[y][x]; - else { - prevMonth(); - setVars(); - } - break; - case 39: // KEY right - if (++x < 7) - ne = cal.ar_days[y][x]; - else { - x = 0; - K = 40; - continue; - } - break; - case 40: // KEY down - if (++y < cal.ar_days.length) - ne = cal.ar_days[y][x]; - else { - nextMonth(); - setVars(); - } - break; - } - break; - } - if (ne) { - if (!ne.disabled) - Calendar.cellClick(ne); - else if (prev) - prevMonth(); - else - nextMonth(); - } - } - break; - case 13: // KEY enter - if (act) - Calendar.cellClick(cal.currentDateEl, ev); - break; - default: - return false; - } - return Calendar.stopEvent(ev); -}; - -/** - * (RE)Initializes the calendar to the given date and firstDayOfWeek - */ -Calendar.prototype._init = function (firstDayOfWeek, date) { - var today = new Date(), - TY = today.getFullYear(), - TM = today.getMonth(), - TD = today.getDate(); - this.table.style.visibility = "hidden"; - var year = date.getFullYear(); - if (year < this.minYear) { - year = this.minYear; - date.setFullYear(year); - } else if (year > this.maxYear) { - year = this.maxYear; - date.setFullYear(year); - } - this.firstDayOfWeek = firstDayOfWeek; - this.date = new Date(date); - var month = date.getMonth(); - var mday = date.getDate(); - var no_days = date.getMonthDays(); - - // calendar voodoo for computing the first day that would actually be - // displayed in the calendar, even if it's from the previous month. - // WARNING: this is magic. ;-) - date.setDate(1); - var day1 = (date.getDay() - this.firstDayOfWeek) % 7; - if (day1 < 0) - day1 += 7; - date.setDate(-day1); - date.setDate(date.getDate() + 1); - - var row = this.tbody.firstChild; - var MN = Calendar._SMN[month]; - var ar_days = this.ar_days = new Array(); - var weekend = Calendar._TT["WEEKEND"]; - var dates = this.multiple ? (this.datesCells = {}) : null; - for (var i = 0; i < 6; ++i, row = row.nextSibling) { - var cell = row.firstChild; - if (this.weekNumbers) { - cell.className = "day wn"; - cell.innerHTML = date.getWeekNumber(); - cell = cell.nextSibling; - } - row.className = "daysrow"; - var hasdays = false, iday, dpos = ar_days[i] = []; - for (var j = 0; j < 7; ++j, cell = cell.nextSibling, date.setDate(iday + 1)) { - iday = date.getDate(); - var wday = date.getDay(); - cell.className = "day"; - cell.pos = i << 4 | j; - dpos[j] = cell; - var current_month = (date.getMonth() == month); - if (!current_month) { - if (this.showsOtherMonths) { - cell.className += " othermonth"; - cell.otherMonth = true; - } else { - cell.className = "emptycell"; - cell.innerHTML = " "; - cell.disabled = true; - continue; - } - } else { - cell.otherMonth = false; - hasdays = true; - } - cell.disabled = false; - cell.innerHTML = this.getDateText ? this.getDateText(date, iday) : iday; - if (dates) - dates[date.print("%Y%m%d")] = cell; - if (this.getDateStatus) { - var status = this.getDateStatus(date, year, month, iday); - if (this.getDateToolTip) { - var toolTip = this.getDateToolTip(date, year, month, iday); - if (toolTip) - cell.title = toolTip; - } - if (status === true) { - cell.className += " disabled"; - cell.disabled = true; - } else { - if (/disabled/i.test(status)) - cell.disabled = true; - cell.className += " " + status; - } - } - if (!cell.disabled) { - cell.caldate = new Date(date); - cell.ttip = "_"; - if (!this.multiple && current_month - && iday == mday && this.hiliteToday) { - cell.className += " selected"; - this.currentDateEl = cell; - } - if (date.getFullYear() == TY && - date.getMonth() == TM && - iday == TD) { - cell.className += " today"; - cell.ttip += Calendar._TT["PART_TODAY"]; - } - if (weekend.indexOf(wday.toString()) != -1) - cell.className += cell.otherMonth ? " oweekend" : " weekend"; - } - } - if (!(hasdays || this.showsOtherMonths)) - row.className = "emptyrow"; - } - this.title.innerHTML = Calendar._MN[month] + ", " + year; - this.onSetTime(); - this.table.style.visibility = "visible"; - this._initMultipleDates(); - // PROFILE - // this.tooltips.innerHTML = "Generated in " + ((new Date()) - today) + " ms"; -}; - -Calendar.prototype._initMultipleDates = function() { - if (this.multiple) { - for (var i in this.multiple) { - var cell = this.datesCells[i]; - var d = this.multiple[i]; - if (!d) - continue; - if (cell) - cell.className += " selected"; - } - } -}; - -Calendar.prototype._toggleMultipleDate = function(date) { - if (this.multiple) { - var ds = date.print("%Y%m%d"); - var cell = this.datesCells[ds]; - if (cell) { - var d = this.multiple[ds]; - if (!d) { - Calendar.addClass(cell, "selected"); - this.multiple[ds] = date; - } else { - Calendar.removeClass(cell, "selected"); - delete this.multiple[ds]; - } - } - } -}; - -Calendar.prototype.setDateToolTipHandler = function (unaryFunction) { - this.getDateToolTip = unaryFunction; -}; - -/** - * Calls _init function above for going to a certain date (but only if the - * date is different than the currently selected one). - */ -Calendar.prototype.setDate = function (date) { - if (!date.equalsTo(this.date)) { - this._init(this.firstDayOfWeek, date); - } -}; - -/** - * Refreshes the calendar. Useful if the "disabledHandler" function is - * dynamic, meaning that the list of disabled date can change at runtime. - * Just * call this function if you think that the list of disabled dates - * should * change. - */ -Calendar.prototype.refresh = function () { - this._init(this.firstDayOfWeek, this.date); -}; - -/** Modifies the "firstDayOfWeek" parameter (pass 0 for Synday, 1 for Monday, etc.). */ -Calendar.prototype.setFirstDayOfWeek = function (firstDayOfWeek) { - this._init(firstDayOfWeek, this.date); - this._displayWeekdays(); -}; - -/** - * Allows customization of what dates are enabled. The "unaryFunction" - * parameter must be a function object that receives the date (as a JS Date - * object) and returns a boolean value. If the returned value is true then - * the passed date will be marked as disabled. - */ -Calendar.prototype.setDateStatusHandler = Calendar.prototype.setDisabledHandler = function (unaryFunction) { - this.getDateStatus = unaryFunction; -}; - -/** Customization of allowed year range for the calendar. */ -Calendar.prototype.setRange = function (a, z) { - this.minYear = a; - this.maxYear = z; -}; - -/** Calls the first user handler (selectedHandler). */ -Calendar.prototype.callHandler = function () { - if (this.onSelected) { - this.onSelected(this, this.date.print(this.dateFormat)); - } -}; - -/** Calls the second user handler (closeHandler). */ -Calendar.prototype.callCloseHandler = function () { - if (this.onClose) { - this.onClose(this); - } - this.hideShowCovered(); -}; - -/** Removes the calendar object from the DOM tree and destroys it. */ -Calendar.prototype.destroy = function () { - var el = this.element.parentNode; - el.removeChild(this.element); - Calendar._C = null; - window._dynarch_popupCalendar = null; -}; - -/** - * Moves the calendar element to a different section in the DOM tree (changes - * its parent). - */ -Calendar.prototype.reparent = function (new_parent) { - var el = this.element; - el.parentNode.removeChild(el); - new_parent.appendChild(el); -}; - -// This gets called when the user presses a mouse button anywhere in the -// document, if the calendar is shown. If the click was outside the open -// calendar this function closes it. -Calendar._checkCalendar = function(ev) { - var calendar = window._dynarch_popupCalendar; - if (!calendar) { - return false; - } - var el = Calendar.is_ie ? Calendar.getElement(ev) : Calendar.getTargetElement(ev); - for (; el != null && el != calendar.element; el = el.parentNode); - if (el == null) { - // calls closeHandler which should hide the calendar. - window._dynarch_popupCalendar.callCloseHandler(); - return Calendar.stopEvent(ev); - } -}; - -/** Shows the calendar. */ -Calendar.prototype.show = function () { - var rows = this.table.getElementsByTagName("tr"); - for (var i = rows.length; i > 0;) { - var row = rows[--i]; - Calendar.removeClass(row, "rowhilite"); - var cells = row.getElementsByTagName("td"); - for (var j = cells.length; j > 0;) { - var cell = cells[--j]; - Calendar.removeClass(cell, "hilite"); - Calendar.removeClass(cell, "active"); - } - } - this.element.style.display = "block"; - this.hidden = false; - if (this.isPopup) { - window._dynarch_popupCalendar = this; - Calendar.addEvent(document, "keydown", Calendar._keyEvent); - Calendar.addEvent(document, "keypress", Calendar._keyEvent); - Calendar.addEvent(document, "mousedown", Calendar._checkCalendar); - } - this.hideShowCovered(); -}; - -/** - * Hides the calendar. Also removes any "hilite" from the class of any TD - * element. - */ -Calendar.prototype.hide = function () { - if (this.isPopup) { - Calendar.removeEvent(document, "keydown", Calendar._keyEvent); - Calendar.removeEvent(document, "keypress", Calendar._keyEvent); - Calendar.removeEvent(document, "mousedown", Calendar._checkCalendar); - } - this.element.style.display = "none"; - this.hidden = true; - this.hideShowCovered(); -}; - -/** - * Shows the calendar at a given absolute position (beware that, depending on - * the calendar element style -- position property -- this might be relative - * to the parent's containing rectangle). - */ -Calendar.prototype.showAt = function (x, y) { - var s = this.element.style; - s.left = x + "px"; - s.top = y + "px"; - this.show(); -}; - -/** Shows the calendar near a given element. */ -Calendar.prototype.showAtElement = function (el, opts) { - var self = this; - var p = Calendar.getAbsolutePos(el); - if (!opts || typeof opts != "string") { - this.showAt(p.x, p.y + el.offsetHeight); - return true; - } - function fixPosition(box) { - if (box.x < 0) - box.x = 0; - if (box.y < 0) - box.y = 0; - var cp = document.createElement("div"); - var s = cp.style; - s.position = "absolute"; - s.right = s.bottom = s.width = s.height = "0px"; - document.body.appendChild(cp); - var br = Calendar.getAbsolutePos(cp); - document.body.removeChild(cp); - if (Calendar.is_ie) { - br.y += document.body.scrollTop; - br.x += document.body.scrollLeft; - } else { - br.y += window.scrollY; - br.x += window.scrollX; - } - var tmp = box.x + box.width - br.x; - if (tmp > 0) box.x -= tmp; - tmp = box.y + box.height - br.y; - if (tmp > 0) box.y -= tmp; - }; - this.element.style.display = "block"; - Calendar.continuation_for_the_fucking_khtml_browser = function() { - var w = self.element.offsetWidth; - var h = self.element.offsetHeight; - self.element.style.display = "none"; - var valign = opts.substr(0, 1); - var halign = "l"; - if (opts.length > 1) { - halign = opts.substr(1, 1); - } - // vertical alignment - switch (valign) { - case "T": p.y -= h; break; - case "B": p.y += el.offsetHeight; break; - case "C": p.y += (el.offsetHeight - h) / 2; break; - case "t": p.y += el.offsetHeight - h; break; - case "b": break; // already there - } - // horizontal alignment - switch (halign) { - case "L": p.x -= w; break; - case "R": p.x += el.offsetWidth; break; - case "C": p.x += (el.offsetWidth - w) / 2; break; - case "l": p.x += el.offsetWidth - w; break; - case "r": break; // already there - } - p.width = w; - p.height = h + 40; - self.monthsCombo.style.display = "none"; - fixPosition(p); - self.showAt(p.x, p.y); - }; - if (Calendar.is_khtml) - setTimeout("Calendar.continuation_for_the_fucking_khtml_browser()", 10); - else - Calendar.continuation_for_the_fucking_khtml_browser(); -}; - -/** Customizes the date format. */ -Calendar.prototype.setDateFormat = function (str) { - this.dateFormat = str; -}; - -/** Customizes the tooltip date format. */ -Calendar.prototype.setTtDateFormat = function (str) { - this.ttDateFormat = str; -}; - -/** - * Tries to identify the date represented in a string. If successful it also - * calls this.setDate which moves the calendar to the given date. - */ -Calendar.prototype.parseDate = function(str, fmt) { - if (!fmt) - fmt = this.dateFormat; - this.setDate(Date.parseDate(str, fmt)); -}; - -Calendar.prototype.hideShowCovered = function () { - if (!Calendar.is_ie && !Calendar.is_opera) - return; - function getVisib(obj){ - var value = obj.style.visibility; - if (!value) { - if (document.defaultView && typeof (document.defaultView.getComputedStyle) == "function") { // Gecko, W3C - if (!Calendar.is_khtml) - value = document.defaultView. - getComputedStyle(obj, "").getPropertyValue("visibility"); - else - value = ''; - } else if (obj.currentStyle) { // IE - value = obj.currentStyle.visibility; - } else - value = ''; - } - return value; - }; - - var tags = new Array("applet", "iframe", "select"); - var el = this.element; - - var p = Calendar.getAbsolutePos(el); - var EX1 = p.x; - var EX2 = el.offsetWidth + EX1; - var EY1 = p.y; - var EY2 = el.offsetHeight + EY1; - - for (var k = tags.length; k > 0; ) { - var ar = document.getElementsByTagName(tags[--k]); - var cc = null; - - for (var i = ar.length; i > 0;) { - cc = ar[--i]; - - p = Calendar.getAbsolutePos(cc); - var CX1 = p.x; - var CX2 = cc.offsetWidth + CX1; - var CY1 = p.y; - var CY2 = cc.offsetHeight + CY1; - - if (this.hidden || (CX1 > EX2) || (CX2 < EX1) || (CY1 > EY2) || (CY2 < EY1)) { - if (!cc.__msh_save_visibility) { - cc.__msh_save_visibility = getVisib(cc); - } - cc.style.visibility = cc.__msh_save_visibility; - } else { - if (!cc.__msh_save_visibility) { - cc.__msh_save_visibility = getVisib(cc); - } - cc.style.visibility = "hidden"; - } - } - } -}; - -/** Internal function; it displays the bar with the names of the weekday. */ -Calendar.prototype._displayWeekdays = function () { - var fdow = this.firstDayOfWeek; - var cell = this.firstdayname; - var weekend = Calendar._TT["WEEKEND"]; - for (var i = 0; i < 7; ++i) { - cell.className = "day name"; - var realday = (i + fdow) % 7; - if (i) { - cell.ttip = Calendar._TT["DAY_FIRST"].replace("%s", Calendar._DN[realday]); - cell.navtype = 100; - cell.calendar = this; - cell.fdow = realday; - Calendar._add_evs(cell); - } - if (weekend.indexOf(realday.toString()) != -1) { - Calendar.addClass(cell, "weekend"); - } - cell.innerHTML = Calendar._SDN[(i + fdow) % 7]; - cell = cell.nextSibling; - } -}; - -/** Internal function. Hides all combo boxes that might be displayed. */ -Calendar.prototype._hideCombos = function () { - this.monthsCombo.style.display = "none"; - this.yearsCombo.style.display = "none"; -}; - -/** Internal function. Starts dragging the element. */ -Calendar.prototype._dragStart = function (ev) { - if (this.dragging) { - return; - } - this.dragging = true; - var posX; - var posY; - if (Calendar.is_ie) { - posY = window.event.clientY + document.body.scrollTop; - posX = window.event.clientX + document.body.scrollLeft; - } else { - posY = ev.clientY + window.scrollY; - posX = ev.clientX + window.scrollX; - } - var st = this.element.style; - this.xOffs = posX - parseInt(st.left); - this.yOffs = posY - parseInt(st.top); - with (Calendar) { - addEvent(document, "mousemove", calDragIt); - addEvent(document, "mouseup", calDragEnd); - } -}; - -// BEGIN: DATE OBJECT PATCHES - -/** Adds the number of days array to the Date object. */ -Date._MD = new Array(31,28,31,30,31,30,31,31,30,31,30,31); - -/** Constants used for time computations */ -Date.SECOND = 1000 /* milliseconds */; -Date.MINUTE = 60 * Date.SECOND; -Date.HOUR = 60 * Date.MINUTE; -Date.DAY = 24 * Date.HOUR; -Date.WEEK = 7 * Date.DAY; - -Date.parseDate = function(str, fmt) { - var today = new Date(); - var y = 0; - var m = -1; - var d = 0; - var a = str.split(/\W+/); - var b = fmt.match(/%./g); - var i = 0, j = 0; - var hr = 0; - var min = 0; - for (i = 0; i < a.length; ++i) { - if (!a[i]) - continue; - switch (b[i]) { - case "%d": - case "%e": - d = parseInt(a[i], 10); - break; - - case "%m": - m = parseInt(a[i], 10) - 1; - break; - - case "%Y": - case "%y": - y = parseInt(a[i], 10); - (y < 100) && (y += (y > 29) ? 1900 : 2000); - break; - - case "%b": - case "%B": - for (j = 0; j < 12; ++j) { - if (Calendar._MN[j].substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) { m = j; break; } - } - break; - - case "%H": - case "%I": - case "%k": - case "%l": - hr = parseInt(a[i], 10); - break; - - case "%P": - case "%p": - if (/pm/i.test(a[i]) && hr < 12) - hr += 12; - else if (/am/i.test(a[i]) && hr >= 12) - hr -= 12; - break; - - case "%M": - min = parseInt(a[i], 10); - break; - } - } - if (isNaN(y)) y = today.getFullYear(); - if (isNaN(m)) m = today.getMonth(); - if (isNaN(d)) d = today.getDate(); - if (isNaN(hr)) hr = today.getHours(); - if (isNaN(min)) min = today.getMinutes(); - if (y != 0 && m != -1 && d != 0) - return new Date(y, m, d, hr, min, 0); - y = 0; m = -1; d = 0; - for (i = 0; i < a.length; ++i) { - if (a[i].search(/[a-zA-Z]+/) != -1) { - var t = -1; - for (j = 0; j < 12; ++j) { - if (Calendar._MN[j].substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) { t = j; break; } - } - if (t != -1) { - if (m != -1) { - d = m+1; - } - m = t; - } - } else if (parseInt(a[i], 10) <= 12 && m == -1) { - m = a[i]-1; - } else if (parseInt(a[i], 10) > 31 && y == 0) { - y = parseInt(a[i], 10); - (y < 100) && (y += (y > 29) ? 1900 : 2000); - } else if (d == 0) { - d = a[i]; - } - } - if (y == 0) - y = today.getFullYear(); - if (m != -1 && d != 0) - return new Date(y, m, d, hr, min, 0); - return today; -}; - -/** Returns the number of days in the current month */ -Date.prototype.getMonthDays = function(month) { - var year = this.getFullYear(); - if (typeof month == "undefined") { - month = this.getMonth(); - } - if (((0 == (year%4)) && ( (0 != (year%100)) || (0 == (year%400)))) && month == 1) { - return 29; - } else { - return Date._MD[month]; - } -}; - -/** Returns the number of day in the year. */ -Date.prototype.getDayOfYear = function() { - var now = new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0); - var then = new Date(this.getFullYear(), 0, 0, 0, 0, 0); - var time = now - then; - return Math.floor(time / Date.DAY); -}; - -/** Returns the number of the week in year, as defined in ISO 8601. */ -Date.prototype.getWeekNumber = function() { - var d = new Date(this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0); - var DoW = d.getDay(); - d.setDate(d.getDate() - (DoW + 6) % 7 + 3); // Nearest Thu - var ms = d.valueOf(); // GMT - d.setMonth(0); - d.setDate(4); // Thu in Week 1 - return Math.round((ms - d.valueOf()) / (7 * 864e5)) + 1; -}; - -/** Checks date and time equality */ -Date.prototype.equalsTo = function(date) { - return ((this.getFullYear() == date.getFullYear()) && - (this.getMonth() == date.getMonth()) && - (this.getDate() == date.getDate()) && - (this.getHours() == date.getHours()) && - (this.getMinutes() == date.getMinutes())); -}; - -/** Set only the year, month, date parts (keep existing time) */ -Date.prototype.setDateOnly = function(date) { - var tmp = new Date(date); - this.setDate(1); - this.setFullYear(tmp.getFullYear()); - this.setMonth(tmp.getMonth()); - this.setDate(tmp.getDate()); -}; - -/** Prints the date in a string according to the given format. */ -Date.prototype.print = function (str) { - var m = this.getMonth(); - var d = this.getDate(); - var y = this.getFullYear(); - var wn = this.getWeekNumber(); - var w = this.getDay(); - var s = {}; - var hr = this.getHours(); - var pm = (hr >= 12); - var ir = (pm) ? (hr - 12) : hr; - var dy = this.getDayOfYear(); - if (ir == 0) - ir = 12; - var min = this.getMinutes(); - var sec = this.getSeconds(); - s["%a"] = Calendar._SDN[w]; // abbreviated weekday name [FIXME: I18N] - s["%A"] = Calendar._DN[w]; // full weekday name - s["%b"] = Calendar._SMN[m]; // abbreviated month name [FIXME: I18N] - s["%B"] = Calendar._MN[m]; // full month name - // FIXME: %c : preferred date and time representation for the current locale - s["%C"] = 1 + Math.floor(y / 100); // the century number - s["%d"] = (d < 10) ? ("0" + d) : d; // the day of the month (range 01 to 31) - s["%e"] = d; // the day of the month (range 1 to 31) - // FIXME: %D : american date style: %m/%d/%y - // FIXME: %E, %F, %G, %g, %h (man strftime) - s["%H"] = (hr < 10) ? ("0" + hr) : hr; // hour, range 00 to 23 (24h format) - s["%I"] = (ir < 10) ? ("0" + ir) : ir; // hour, range 01 to 12 (12h format) - s["%j"] = (dy < 100) ? ((dy < 10) ? ("00" + dy) : ("0" + dy)) : dy; // day of the year (range 001 to 366) - s["%k"] = hr; // hour, range 0 to 23 (24h format) - s["%l"] = ir; // hour, range 1 to 12 (12h format) - s["%m"] = (m < 9) ? ("0" + (1+m)) : (1+m); // month, range 01 to 12 - s["%M"] = (min < 10) ? ("0" + min) : min; // minute, range 00 to 59 - s["%n"] = "\n"; // a newline character - s["%p"] = pm ? "PM" : "AM"; - s["%P"] = pm ? "pm" : "am"; - // FIXME: %r : the time in am/pm notation %I:%M:%S %p - // FIXME: %R : the time in 24-hour notation %H:%M - s["%s"] = Math.floor(this.getTime() / 1000); - s["%S"] = (sec < 10) ? ("0" + sec) : sec; // seconds, range 00 to 59 - s["%t"] = "\t"; // a tab character - // FIXME: %T : the time in 24-hour notation (%H:%M:%S) - s["%U"] = s["%W"] = s["%V"] = (wn < 10) ? ("0" + wn) : wn; - s["%u"] = w + 1; // the day of the week (range 1 to 7, 1 = MON) - s["%w"] = w; // the day of the week (range 0 to 6, 0 = SUN) - // FIXME: %x : preferred date representation for the current locale without the time - // FIXME: %X : preferred time representation for the current locale without the date - s["%y"] = ('' + y).substr(2, 2); // year without the century (range 00 to 99) - s["%Y"] = y; // year with the century - s["%%"] = "%"; // a literal '%' character - - var re = /%./g; - if (!Calendar.is_ie5 && !Calendar.is_khtml) - return str.replace(re, function (par) { return s[par] || par; }); - - var a = str.match(re); - for (var i = 0; i < a.length; i++) { - var tmp = s[a[i]]; - if (tmp) { - re = new RegExp(a[i], 'g'); - str = str.replace(re, tmp); - } - } - - return str; -}; - -Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear; -Date.prototype.setFullYear = function(y) { - var d = new Date(this); - d.__msh_oldSetFullYear(y); - if (d.getMonth() != this.getMonth()) - this.setDate(28); - this.__msh_oldSetFullYear(y); -}; - -// END: DATE OBJECT PATCHES - - -// global object that remembers the calendar -window._dynarch_popupCalendar = null; diff --git a/zioinfo/js/jscalendar-1.0/calendar.php b/zioinfo/js/jscalendar-1.0/calendar.php deleted file mode 100644 index 5b9120d6..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar.php +++ /dev/null @@ -1,119 +0,0 @@ -calendar_file = 'calendar_stripped.js'; - $this->calendar_setup_file = 'calendar-setup_stripped.js'; - } else { - $this->calendar_file = 'calendar.js'; - $this->calendar_setup_file = 'calendar-setup.js'; - } - $this->calendar_lang_file = 'lang/calendar-' . $lang . '.js'; - $this->calendar_theme_file = $theme.'.css'; - $this->calendar_lib_path = preg_replace('/\/+$/', '/', $calendar_lib_path); - $this->calendar_options = array('ifFormat' => '%Y/%m/%d', - 'daFormat' => '%Y/%m/%d'); - } - - function set_option($name, $value) { - $this->calendar_options[$name] = $value; - } - - function load_files() { - echo $this->get_load_files_code(); - } - - function get_load_files_code() { - $code = ( '' . NEWLINE ); - $code .= ( '' . NEWLINE ); - $code .= ( '' . NEWLINE ); - $code .= ( '' ); - return $code; - } - - function _make_calendar($other_options = array()) { - $js_options = $this->_make_js_hash(array_merge($this->calendar_options, $other_options)); - $code = ( '' ); - return $code; - } - - function make_input_field($cal_options = array(), $field_attributes = array()) { - $id = $this->_gen_id(); - $attrstr = $this->_make_html_attr(array_merge($field_attributes, - array('id' => $this->_field_id($id), - 'type' => 'text'))); - echo ''; - echo '' . - ''; - - $options = array_merge($cal_options, - array('inputField' => $this->_field_id($id), - 'button' => $this->_trigger_id($id))); - echo $this->_make_calendar($options); - } - - /// PRIVATE SECTION - - function _field_id($id) { return 'f-calendar-field-' . $id; } - function _trigger_id($id) { return 'f-calendar-trigger-' . $id; } - function _gen_id() { static $id = 0; return ++$id; } - - function _make_js_hash($array) { - $jstr = ''; - reset($array); - while (list($key, $val) = each($array)) { - if (is_bool($val)) - $val = $val ? 'true' : 'false'; - else if (!is_numeric($val)) - $val = '"'.$val.'"'; - if ($jstr) $jstr .= ','; - $jstr .= '"' . $key . '":' . $val; - } - return $jstr; - } - - function _make_html_attr($array) { - $attrstr = ''; - reset($array); - while (list($key, $val) = each($array)) { - $attrstr .= $key . '="' . $val . '" '; - } - return $attrstr; - } -}; - -?> \ No newline at end of file diff --git a/zioinfo/js/jscalendar-1.0/calendar_stripped.js b/zioinfo/js/jscalendar-1.0/calendar_stripped.js deleted file mode 100644 index 4fe03f1e..00000000 --- a/zioinfo/js/jscalendar-1.0/calendar_stripped.js +++ /dev/null @@ -1,14 +0,0 @@ -/* Copyright Mihai Bazon, 2002-2005 | www.bazon.net/mishoo - * ----------------------------------------------------------- - * - * The DHTML Calendar, version 1.0 "It is happening again" - * - * Details and latest version at: - * www.dynarch.com/projects/calendar - * - * This script is developed by Dynarch.com. Visit us at www.dynarch.com. - * - * This script is distributed under the GNU Lesser General Public License. - * Read the entire license text here: http://www.gnu.org/licenses/lgpl.html - */ - Calendar=function(firstDayOfWeek,dateStr,onSelected,onClose){this.activeDiv=null;this.currentDateEl=null;this.getDateStatus=null;this.getDateToolTip=null;this.getDateText=null;this.timeout=null;this.onSelected=onSelected||null;this.onClose=onClose||null;this.dragging=false;this.hidden=false;this.minYear=1970;this.maxYear=2050;this.dateFormat=Calendar._TT["DEF_DATE_FORMAT"];this.ttDateFormat=Calendar._TT["TT_DATE_FORMAT"];this.isPopup=true;this.weekNumbers=true;this.firstDayOfWeek=typeof firstDayOfWeek=="number"?firstDayOfWeek:Calendar._FD;this.showsOtherMonths=false;this.dateStr=dateStr;this.ar_days=null;this.showsTime=false;this.time24=true;this.yearStep=2;this.hiliteToday=true;this.multiple=null;this.table=null;this.element=null;this.tbody=null;this.firstdayname=null;this.monthsCombo=null;this.yearsCombo=null;this.hilitedMonth=null;this.activeMonth=null;this.hilitedYear=null;this.activeYear=null;this.dateClicked=false;if(typeof Calendar._SDN=="undefined"){if(typeof Calendar._SDN_len=="undefined")Calendar._SDN_len=3;var ar=new Array();for(var i=8;i>0;){ar[--i]=Calendar._DN[i].substr(0,Calendar._SDN_len);}Calendar._SDN=ar;if(typeof Calendar._SMN_len=="undefined")Calendar._SMN_len=3;ar=new Array();for(var i=12;i>0;){ar[--i]=Calendar._MN[i].substr(0,Calendar._SMN_len);}Calendar._SMN=ar;}};Calendar._C=null;Calendar.is_ie=(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent));Calendar.is_ie5=(Calendar.is_ie&&/msie 5\.0/i.test(navigator.userAgent));Calendar.is_opera=/opera/i.test(navigator.userAgent);Calendar.is_khtml=/Konqueror|Safari|KHTML/i.test(navigator.userAgent);Calendar.getAbsolutePos=function(el){var SL=0,ST=0;var is_div=/^div$/i.test(el.tagName);if(is_div&&el.scrollLeft)SL=el.scrollLeft;if(is_div&&el.scrollTop)ST=el.scrollTop;var r={x:el.offsetLeft-SL,y:el.offsetTop-ST};if(el.offsetParent){var tmp=this.getAbsolutePos(el.offsetParent);r.x+=tmp.x;r.y+=tmp.y;}return r;};Calendar.isRelated=function(el,evt){var related=evt.relatedTarget;if(!related){var type=evt.type;if(type=="mouseover"){related=evt.fromElement;}else if(type=="mouseout"){related=evt.toElement;}}while(related){if(related==el){return true;}related=related.parentNode;}return false;};Calendar.removeClass=function(el,className){if(!(el&&el.className)){return;}var cls=el.className.split(" ");var ar=new Array();for(var i=cls.length;i>0;){if(cls[--i]!=className){ar[ar.length]=cls[i];}}el.className=ar.join(" ");};Calendar.addClass=function(el,className){Calendar.removeClass(el,className);el.className+=" "+className;};Calendar.getElement=function(ev){var f=Calendar.is_ie?window.event.srcElement:ev.currentTarget;while(f.nodeType!=1||/^div$/i.test(f.tagName))f=f.parentNode;return f;};Calendar.getTargetElement=function(ev){var f=Calendar.is_ie?window.event.srcElement:ev.target;while(f.nodeType!=1)f=f.parentNode;return f;};Calendar.stopEvent=function(ev){ev||(ev=window.event);if(Calendar.is_ie){ev.cancelBubble=true;ev.returnValue=false;}else{ev.preventDefault();ev.stopPropagation();}return false;};Calendar.addEvent=function(el,evname,func){if(el.attachEvent){el.attachEvent("on"+evname,func);}else if(el.addEventListener){el.addEventListener(evname,func,true);}else{el["on"+evname]=func;}};Calendar.removeEvent=function(el,evname,func){if(el.detachEvent){el.detachEvent("on"+evname,func);}else if(el.removeEventListener){el.removeEventListener(evname,func,true);}else{el["on"+evname]=null;}};Calendar.createElement=function(type,parent){var el=null;if(document.createElementNS){el=document.createElementNS("http://www.w3.org/1999/xhtml",type);}else{el=document.createElement(type);}if(typeof parent!="undefined"){parent.appendChild(el);}return el;};Calendar._add_evs=function(el){with(Calendar){addEvent(el,"mouseover",dayMouseOver);addEvent(el,"mousedown",dayMouseDown);addEvent(el,"mouseout",dayMouseOut);if(is_ie){addEvent(el,"dblclick",dayMouseDblClick);el.setAttribute("unselectable",true);}}};Calendar.findMonth=function(el){if(typeof el.month!="undefined"){return el;}else if(typeof el.parentNode.month!="undefined"){return el.parentNode;}return null;};Calendar.findYear=function(el){if(typeof el.year!="undefined"){return el;}else if(typeof el.parentNode.year!="undefined"){return el.parentNode;}return null;};Calendar.showMonthsCombo=function(){var cal=Calendar._C;if(!cal){return false;}var cal=cal;var cd=cal.activeDiv;var mc=cal.monthsCombo;if(cal.hilitedMonth){Calendar.removeClass(cal.hilitedMonth,"hilite");}if(cal.activeMonth){Calendar.removeClass(cal.activeMonth,"active");}var mon=cal.monthsCombo.getElementsByTagName("div")[cal.date.getMonth()];Calendar.addClass(mon,"active");cal.activeMonth=mon;var s=mc.style;s.display="block";if(cd.navtype<0)s.left=cd.offsetLeft+"px";else{var mcw=mc.offsetWidth;if(typeof mcw=="undefined")mcw=50;s.left=(cd.offsetLeft+cd.offsetWidth-mcw)+"px";}s.top=(cd.offsetTop+cd.offsetHeight)+"px";};Calendar.showYearsCombo=function(fwd){var cal=Calendar._C;if(!cal){return false;}var cal=cal;var cd=cal.activeDiv;var yc=cal.yearsCombo;if(cal.hilitedYear){Calendar.removeClass(cal.hilitedYear,"hilite");}if(cal.activeYear){Calendar.removeClass(cal.activeYear,"active");}cal.activeYear=null;var Y=cal.date.getFullYear()+(fwd?1:-1);var yr=yc.firstChild;var show=false;for(var i=12;i>0;--i){if(Y>=cal.minYear&&Y<=cal.maxYear){yr.innerHTML=Y;yr.year=Y;yr.style.display="block";show=true;}else{yr.style.display="none";}yr=yr.nextSibling;Y+=fwd?cal.yearStep:-cal.yearStep;}if(show){var s=yc.style;s.display="block";if(cd.navtype<0)s.left=cd.offsetLeft+"px";else{var ycw=yc.offsetWidth;if(typeof ycw=="undefined")ycw=50;s.left=(cd.offsetLeft+cd.offsetWidth-ycw)+"px";}s.top=(cd.offsetTop+cd.offsetHeight)+"px";}};Calendar.tableMouseUp=function(ev){var cal=Calendar._C;if(!cal){return false;}if(cal.timeout){clearTimeout(cal.timeout);}var el=cal.activeDiv;if(!el){return false;}var target=Calendar.getTargetElement(ev);ev||(ev=window.event);Calendar.removeClass(el,"active");if(target==el||target.parentNode==el){Calendar.cellClick(el,ev);}var mon=Calendar.findMonth(target);var date=null;if(mon){date=new Date(cal.date);if(mon.month!=date.getMonth()){date.setMonth(mon.month);cal.setDate(date);cal.dateClicked=false;cal.callHandler();}}else{var year=Calendar.findYear(target);if(year){date=new Date(cal.date);if(year.year!=date.getFullYear()){date.setFullYear(year.year);cal.setDate(date);cal.dateClicked=false;cal.callHandler();}}}with(Calendar){removeEvent(document,"mouseup",tableMouseUp);removeEvent(document,"mouseover",tableMouseOver);removeEvent(document,"mousemove",tableMouseOver);cal._hideCombos();_C=null;return stopEvent(ev);}};Calendar.tableMouseOver=function(ev){var cal=Calendar._C;if(!cal){return;}var el=cal.activeDiv;var target=Calendar.getTargetElement(ev);if(target==el||target.parentNode==el){Calendar.addClass(el,"hilite active");Calendar.addClass(el.parentNode,"rowhilite");}else{if(typeof el.navtype=="undefined"||(el.navtype!=50&&(el.navtype==0||Math.abs(el.navtype)>2)))Calendar.removeClass(el,"active");Calendar.removeClass(el,"hilite");Calendar.removeClass(el.parentNode,"rowhilite");}ev||(ev=window.event);if(el.navtype==50&&target!=el){var pos=Calendar.getAbsolutePos(el);var w=el.offsetWidth;var x=ev.clientX;var dx;var decrease=true;if(x>pos.x+w){dx=x-pos.x-w;decrease=false;}else dx=pos.x-x;if(dx<0)dx=0;var range=el._range;var current=el._current;var count=Math.floor(dx/10)%range.length;for(var i=range.length;--i>=0;)if(range[i]==current)break;while(count-->0)if(decrease){if(--i<0)i=range.length-1;}else if(++i>=range.length)i=0;var newval=range[i];el.innerHTML=newval;cal.onUpdateTime();}var mon=Calendar.findMonth(target);if(mon){if(mon.month!=cal.date.getMonth()){if(cal.hilitedMonth){Calendar.removeClass(cal.hilitedMonth,"hilite");}Calendar.addClass(mon,"hilite");cal.hilitedMonth=mon;}else if(cal.hilitedMonth){Calendar.removeClass(cal.hilitedMonth,"hilite");}}else{if(cal.hilitedMonth){Calendar.removeClass(cal.hilitedMonth,"hilite");}var year=Calendar.findYear(target);if(year){if(year.year!=cal.date.getFullYear()){if(cal.hilitedYear){Calendar.removeClass(cal.hilitedYear,"hilite");}Calendar.addClass(year,"hilite");cal.hilitedYear=year;}else if(cal.hilitedYear){Calendar.removeClass(cal.hilitedYear,"hilite");}}else if(cal.hilitedYear){Calendar.removeClass(cal.hilitedYear,"hilite");}}return Calendar.stopEvent(ev);};Calendar.tableMouseDown=function(ev){if(Calendar.getTargetElement(ev)==Calendar.getElement(ev)){return Calendar.stopEvent(ev);}};Calendar.calDragIt=function(ev){var cal=Calendar._C;if(!(cal&&cal.dragging)){return false;}var posX;var posY;if(Calendar.is_ie){posY=window.event.clientY+document.body.scrollTop;posX=window.event.clientX+document.body.scrollLeft;}else{posX=ev.pageX;posY=ev.pageY;}cal.hideShowCovered();var st=cal.element.style;st.left=(posX-cal.xOffs)+"px";st.top=(posY-cal.yOffs)+"px";return Calendar.stopEvent(ev);};Calendar.calDragEnd=function(ev){var cal=Calendar._C;if(!cal){return false;}cal.dragging=false;with(Calendar){removeEvent(document,"mousemove",calDragIt);removeEvent(document,"mouseup",calDragEnd);tableMouseUp(ev);}cal.hideShowCovered();};Calendar.dayMouseDown=function(ev){var el=Calendar.getElement(ev);if(el.disabled){return false;}var cal=el.calendar;cal.activeDiv=el;Calendar._C=cal;if(el.navtype!=300)with(Calendar){if(el.navtype==50){el._current=el.innerHTML;addEvent(document,"mousemove",tableMouseOver);}else addEvent(document,Calendar.is_ie5?"mousemove":"mouseover",tableMouseOver);addClass(el,"hilite active");addEvent(document,"mouseup",tableMouseUp);}else if(cal.isPopup){cal._dragStart(ev);}if(el.navtype==-1||el.navtype==1){if(cal.timeout)clearTimeout(cal.timeout);cal.timeout=setTimeout("Calendar.showMonthsCombo()",250);}else if(el.navtype==-2||el.navtype==2){if(cal.timeout)clearTimeout(cal.timeout);cal.timeout=setTimeout((el.navtype>0)?"Calendar.showYearsCombo(true)":"Calendar.showYearsCombo(false)",250);}else{cal.timeout=null;}return Calendar.stopEvent(ev);};Calendar.dayMouseDblClick=function(ev){Calendar.cellClick(Calendar.getElement(ev),ev||window.event);if(Calendar.is_ie){document.selection.empty();}};Calendar.dayMouseOver=function(ev){var el=Calendar.getElement(ev);if(Calendar.isRelated(el,ev)||Calendar._C||el.disabled){return false;}if(el.ttip){if(el.ttip.substr(0,1)=="_"){el.ttip=el.caldate.print(el.calendar.ttDateFormat)+el.ttip.substr(1);}el.calendar.tooltips.innerHTML=el.ttip;}if(el.navtype!=300){Calendar.addClass(el,"hilite");if(el.caldate){Calendar.addClass(el.parentNode,"rowhilite");}}return Calendar.stopEvent(ev);};Calendar.dayMouseOut=function(ev){with(Calendar){var el=getElement(ev);if(isRelated(el,ev)||_C||el.disabled)return false;removeClass(el,"hilite");if(el.caldate)removeClass(el.parentNode,"rowhilite");if(el.calendar)el.calendar.tooltips.innerHTML=_TT["SEL_DATE"];return stopEvent(ev);}};Calendar.cellClick=function(el,ev){var cal=el.calendar;var closing=false;var newdate=false;var date=null;if(typeof el.navtype=="undefined"){if(cal.currentDateEl){Calendar.removeClass(cal.currentDateEl,"selected");Calendar.addClass(el,"selected");closing=(cal.currentDateEl==el);if(!closing){cal.currentDateEl=el;}}cal.date.setDateOnly(el.caldate);date=cal.date;var other_month=!(cal.dateClicked=!el.otherMonth);if(!other_month&&!cal.currentDateEl)cal._toggleMultipleDate(new Date(date));else newdate=!el.disabled;if(other_month)cal._init(cal.firstDayOfWeek,date);}else{if(el.navtype==200){Calendar.removeClass(el,"hilite");cal.callCloseHandler();return;}date=new Date(cal.date);if(el.navtype==0)date.setDateOnly(new Date());cal.dateClicked=false;var year=date.getFullYear();var mon=date.getMonth();function setMonth(m){var day=date.getDate();var max=date.getMonthDays(m);if(day>max){date.setDate(max);}date.setMonth(m);};switch(el.navtype){case 400:Calendar.removeClass(el,"hilite");var text=Calendar._TT["ABOUT"];if(typeof text!="undefined"){text+=cal.showsTime?Calendar._TT["ABOUT_TIME"]:"";}else{text="Help and about box text is not translated into this language.\n"+"If you know this language and you feel generous please update\n"+"the corresponding file in \"lang\" subdir to match calendar-en.js\n"+"and send it back to to get it into the distribution ;-)\n\n"+"Thank you!\n"+"http://dynarch.com/mishoo/calendar.epl\n";}alert(text);return;case-2:if(year>cal.minYear){date.setFullYear(year-1);}break;case-1:if(mon>0){setMonth(mon-1);}else if(year-->cal.minYear){date.setFullYear(year);setMonth(11);}break;case 1:if(mon<11){setMonth(mon+1);}else if(year=0;)if(range[i]==current)break;if(ev&&ev.shiftKey){if(--i<0)i=range.length-1;}else if(++i>=range.length)i=0;var newval=range[i];el.innerHTML=newval;cal.onUpdateTime();return;case 0:if((typeof cal.getDateStatus=="function")&&cal.getDateStatus(date,date.getFullYear(),date.getMonth(),date.getDate())){return false;}break;}if(!date.equalsTo(cal.date)){cal.setDate(date);newdate=true;}else if(el.navtype==0)newdate=closing=true;}if(newdate){ev&&cal.callHandler();}if(closing){Calendar.removeClass(el,"hilite");ev&&cal.callCloseHandler();}};Calendar.prototype.create=function(_par){var parent=null;if(!_par){parent=document.getElementsByTagName("body")[0];this.isPopup=true;}else{parent=_par;this.isPopup=false;}this.date=this.dateStr?new Date(this.dateStr):new Date();var table=Calendar.createElement("table");this.table=table;table.cellSpacing=0;table.cellPadding=0;table.calendar=this;Calendar.addEvent(table,"mousedown",Calendar.tableMouseDown);var div=Calendar.createElement("div");this.element=div;div.className="calendar";if(this.isPopup){div.style.position="absolute";div.style.display="none";}div.appendChild(table);var thead=Calendar.createElement("thead",table);var cell=null;var row=null;var cal=this;var hh=function(text,cs,navtype){cell=Calendar.createElement("td",row);cell.colSpan=cs;cell.className="button";if(navtype!=0&&Math.abs(navtype)<=2)cell.className+=" nav";Calendar._add_evs(cell);cell.calendar=cal;cell.navtype=navtype;cell.innerHTML="
    "+text+"
    ";return cell;};row=Calendar.createElement("tr",thead);var title_length=6;(this.isPopup)&&--title_length;(this.weekNumbers)&&++title_length;hh("?",1,400).ttip=Calendar._TT["INFO"];this.title=hh("",title_length,300);this.title.className="title";if(this.isPopup){this.title.ttip=Calendar._TT["DRAG_TO_MOVE"];this.title.style.cursor="move";hh("×",1,200).ttip=Calendar._TT["CLOSE"];}row=Calendar.createElement("tr",thead);row.className="headrow";this._nav_py=hh("«",1,-2);this._nav_py.ttip=Calendar._TT["PREV_YEAR"];this._nav_pm=hh("‹",1,-1);this._nav_pm.ttip=Calendar._TT["PREV_MONTH"];this._nav_now=hh(Calendar._TT["TODAY"],this.weekNumbers?4:3,0);this._nav_now.ttip=Calendar._TT["GO_TODAY"];this._nav_nm=hh("›",1,1);this._nav_nm.ttip=Calendar._TT["NEXT_MONTH"];this._nav_ny=hh("»",1,2);this._nav_ny.ttip=Calendar._TT["NEXT_YEAR"];row=Calendar.createElement("tr",thead);row.className="daynames";if(this.weekNumbers){cell=Calendar.createElement("td",row);cell.className="name wn";cell.innerHTML=Calendar._TT["WK"];}for(var i=7;i>0;--i){cell=Calendar.createElement("td",row);if(!i){cell.navtype=100;cell.calendar=this;Calendar._add_evs(cell);}}this.firstdayname=(this.weekNumbers)?row.firstChild.nextSibling:row.firstChild;this._displayWeekdays();var tbody=Calendar.createElement("tbody",table);this.tbody=tbody;for(i=6;i>0;--i){row=Calendar.createElement("tr",tbody);if(this.weekNumbers){cell=Calendar.createElement("td",row);}for(var j=7;j>0;--j){cell=Calendar.createElement("td",row);cell.calendar=this;Calendar._add_evs(cell);}}if(this.showsTime){row=Calendar.createElement("tr",tbody);row.className="time";cell=Calendar.createElement("td",row);cell.className="time";cell.colSpan=2;cell.innerHTML=Calendar._TT["TIME"]||" ";cell=Calendar.createElement("td",row);cell.className="time";cell.colSpan=this.weekNumbers?4:3;(function(){function makeTimePart(className,init,range_start,range_end){var part=Calendar.createElement("span",cell);part.className=className;part.innerHTML=init;part.calendar=cal;part.ttip=Calendar._TT["TIME_PART"];part.navtype=50;part._range=[];if(typeof range_start!="number")part._range=range_start;else{for(var i=range_start;i<=range_end;++i){var txt;if(i<10&&range_end>=10)txt='0'+i;else txt=''+i;part._range[part._range.length]=txt;}}Calendar._add_evs(part);return part;};var hrs=cal.date.getHours();var mins=cal.date.getMinutes();var t12=!cal.time24;var pm=(hrs>12);if(t12&&pm)hrs-=12;var H=makeTimePart("hour",hrs,t12?1:0,t12?12:23);var span=Calendar.createElement("span",cell);span.innerHTML=":";span.className="colon";var M=makeTimePart("minute",mins,0,59);var AP=null;cell=Calendar.createElement("td",row);cell.className="time";cell.colSpan=2;if(t12)AP=makeTimePart("ampm",pm?"pm":"am",["am","pm"]);else cell.innerHTML=" ";cal.onSetTime=function(){var pm,hrs=this.date.getHours(),mins=this.date.getMinutes();if(t12){pm=(hrs>=12);if(pm)hrs-=12;if(hrs==0)hrs=12;AP.innerHTML=pm?"pm":"am";}H.innerHTML=(hrs<10)?("0"+hrs):hrs;M.innerHTML=(mins<10)?("0"+mins):mins;};cal.onUpdateTime=function(){var date=this.date;var h=parseInt(H.innerHTML,10);if(t12){if(/pm/i.test(AP.innerHTML)&&h<12)h+=12;else if(/am/i.test(AP.innerHTML)&&h==12)h=0;}var d=date.getDate();var m=date.getMonth();var y=date.getFullYear();date.setHours(h);date.setMinutes(parseInt(M.innerHTML,10));date.setFullYear(y);date.setMonth(m);date.setDate(d);this.dateClicked=false;this.callHandler();};})();}else{this.onSetTime=this.onUpdateTime=function(){};}var tfoot=Calendar.createElement("tfoot",table);row=Calendar.createElement("tr",tfoot);row.className="footrow";cell=hh(Calendar._TT["SEL_DATE"],this.weekNumbers?8:7,300);cell.className="ttip";if(this.isPopup){cell.ttip=Calendar._TT["DRAG_TO_MOVE"];cell.style.cursor="move";}this.tooltips=cell;div=Calendar.createElement("div",this.element);this.monthsCombo=div;div.className="combo";for(i=0;i0;--i){var yr=Calendar.createElement("div");yr.className=Calendar.is_ie?"label-IEfix":"label";div.appendChild(yr);}this._init(this.firstDayOfWeek,this.date);parent.appendChild(this.element);};Calendar._keyEvent=function(ev){var cal=window._dynarch_popupCalendar;if(!cal||cal.multiple)return false;(Calendar.is_ie)&&(ev=window.event);var act=(Calendar.is_ie||ev.type=="keypress"),K=ev.keyCode;if(ev.ctrlKey){switch(K){case 37:act&&Calendar.cellClick(cal._nav_pm);break;case 38:act&&Calendar.cellClick(cal._nav_py);break;case 39:act&&Calendar.cellClick(cal._nav_nm);break;case 40:act&&Calendar.cellClick(cal._nav_ny);break;default:return false;}}else switch(K){case 32:Calendar.cellClick(cal._nav_now);break;case 27:act&&cal.callCloseHandler();break;case 37:case 38:case 39:case 40:if(act){var prev,x,y,ne,el,step;prev=K==37||K==38;step=(K==37||K==39)?1:7;function setVars(){el=cal.currentDateEl;var p=el.pos;x=p&15;y=p>>4;ne=cal.ar_days[y][x];};setVars();function prevMonth(){var date=new Date(cal.date);date.setDate(date.getDate()-step);cal.setDate(date);};function nextMonth(){var date=new Date(cal.date);date.setDate(date.getDate()+step);cal.setDate(date);};while(1){switch(K){case 37:if(--x>=0)ne=cal.ar_days[y][x];else{x=6;K=38;continue;}break;case 38:if(--y>=0)ne=cal.ar_days[y][x];else{prevMonth();setVars();}break;case 39:if(++x<7)ne=cal.ar_days[y][x];else{x=0;K=40;continue;}break;case 40:if(++ythis.maxYear){year=this.maxYear;date.setFullYear(year);}this.firstDayOfWeek=firstDayOfWeek;this.date=new Date(date);var month=date.getMonth();var mday=date.getDate();var no_days=date.getMonthDays();date.setDate(1);var day1=(date.getDay()-this.firstDayOfWeek)%7;if(day1<0)day1+=7;date.setDate(-day1);date.setDate(date.getDate()+1);var row=this.tbody.firstChild;var MN=Calendar._SMN[month];var ar_days=this.ar_days=new Array();var weekend=Calendar._TT["WEEKEND"];var dates=this.multiple?(this.datesCells={}):null;for(var i=0;i<6;++i,row=row.nextSibling){var cell=row.firstChild;if(this.weekNumbers){cell.className="day wn";cell.innerHTML=date.getWeekNumber();cell=cell.nextSibling;}row.className="daysrow";var hasdays=false,iday,dpos=ar_days[i]=[];for(var j=0;j<7;++j,cell=cell.nextSibling,date.setDate(iday+1)){iday=date.getDate();var wday=date.getDay();cell.className="day";cell.pos=i<<4|j;dpos[j]=cell;var current_month=(date.getMonth()==month);if(!current_month){if(this.showsOtherMonths){cell.className+=" othermonth";cell.otherMonth=true;}else{cell.className="emptycell";cell.innerHTML=" ";cell.disabled=true;continue;}}else{cell.otherMonth=false;hasdays=true;}cell.disabled=false;cell.innerHTML=this.getDateText?this.getDateText(date,iday):iday;if(dates)dates[date.print("%Y%m%d")]=cell;if(this.getDateStatus){var status=this.getDateStatus(date,year,month,iday);if(this.getDateToolTip){var toolTip=this.getDateToolTip(date,year,month,iday);if(toolTip)cell.title=toolTip;}if(status===true){cell.className+=" disabled";cell.disabled=true;}else{if(/disabled/i.test(status))cell.disabled=true;cell.className+=" "+status;}}if(!cell.disabled){cell.caldate=new Date(date);cell.ttip="_";if(!this.multiple&¤t_month&&iday==mday&&this.hiliteToday){cell.className+=" selected";this.currentDateEl=cell;}if(date.getFullYear()==TY&&date.getMonth()==TM&&iday==TD){cell.className+=" today";cell.ttip+=Calendar._TT["PART_TODAY"];}if(weekend.indexOf(wday.toString())!=-1)cell.className+=cell.otherMonth?" oweekend":" weekend";}}if(!(hasdays||this.showsOtherMonths))row.className="emptyrow";}this.title.innerHTML=Calendar._MN[month]+", "+year;this.onSetTime();this.table.style.visibility="visible";this._initMultipleDates();};Calendar.prototype._initMultipleDates=function(){if(this.multiple){for(var i in this.multiple){var cell=this.datesCells[i];var d=this.multiple[i];if(!d)continue;if(cell)cell.className+=" selected";}}};Calendar.prototype._toggleMultipleDate=function(date){if(this.multiple){var ds=date.print("%Y%m%d");var cell=this.datesCells[ds];if(cell){var d=this.multiple[ds];if(!d){Calendar.addClass(cell,"selected");this.multiple[ds]=date;}else{Calendar.removeClass(cell,"selected");delete this.multiple[ds];}}}};Calendar.prototype.setDateToolTipHandler=function(unaryFunction){this.getDateToolTip=unaryFunction;};Calendar.prototype.setDate=function(date){if(!date.equalsTo(this.date)){this._init(this.firstDayOfWeek,date);}};Calendar.prototype.refresh=function(){this._init(this.firstDayOfWeek,this.date);};Calendar.prototype.setFirstDayOfWeek=function(firstDayOfWeek){this._init(firstDayOfWeek,this.date);this._displayWeekdays();};Calendar.prototype.setDateStatusHandler=Calendar.prototype.setDisabledHandler=function(unaryFunction){this.getDateStatus=unaryFunction;};Calendar.prototype.setRange=function(a,z){this.minYear=a;this.maxYear=z;};Calendar.prototype.callHandler=function(){if(this.onSelected){this.onSelected(this,this.date.print(this.dateFormat));}};Calendar.prototype.callCloseHandler=function(){if(this.onClose){this.onClose(this);}this.hideShowCovered();};Calendar.prototype.destroy=function(){var el=this.element.parentNode;el.removeChild(this.element);Calendar._C=null;window._dynarch_popupCalendar=null;};Calendar.prototype.reparent=function(new_parent){var el=this.element;el.parentNode.removeChild(el);new_parent.appendChild(el);};Calendar._checkCalendar=function(ev){var calendar=window._dynarch_popupCalendar;if(!calendar){return false;}var el=Calendar.is_ie?Calendar.getElement(ev):Calendar.getTargetElement(ev);for(;el!=null&&el!=calendar.element;el=el.parentNode);if(el==null){window._dynarch_popupCalendar.callCloseHandler();return Calendar.stopEvent(ev);}};Calendar.prototype.show=function(){var rows=this.table.getElementsByTagName("tr");for(var i=rows.length;i>0;){var row=rows[--i];Calendar.removeClass(row,"rowhilite");var cells=row.getElementsByTagName("td");for(var j=cells.length;j>0;){var cell=cells[--j];Calendar.removeClass(cell,"hilite");Calendar.removeClass(cell,"active");}}this.element.style.display="block";this.hidden=false;if(this.isPopup){window._dynarch_popupCalendar=this;Calendar.addEvent(document,"keydown",Calendar._keyEvent);Calendar.addEvent(document,"keypress",Calendar._keyEvent);Calendar.addEvent(document,"mousedown",Calendar._checkCalendar);}this.hideShowCovered();};Calendar.prototype.hide=function(){if(this.isPopup){Calendar.removeEvent(document,"keydown",Calendar._keyEvent);Calendar.removeEvent(document,"keypress",Calendar._keyEvent);Calendar.removeEvent(document,"mousedown",Calendar._checkCalendar);}this.element.style.display="none";this.hidden=true;this.hideShowCovered();};Calendar.prototype.showAt=function(x,y){var s=this.element.style;s.left=x+"px";s.top=y+"px";this.show();};Calendar.prototype.showAtElement=function(el,opts){var self=this;var p=Calendar.getAbsolutePos(el);if(!opts||typeof opts!="string"){this.showAt(p.x,p.y+el.offsetHeight);return true;}function fixPosition(box){if(box.x<0)box.x=0;if(box.y<0)box.y=0;var cp=document.createElement("div");var s=cp.style;s.position="absolute";s.right=s.bottom=s.width=s.height="0px";document.body.appendChild(cp);var br=Calendar.getAbsolutePos(cp);document.body.removeChild(cp);if(Calendar.is_ie){br.y+=document.body.scrollTop;br.x+=document.body.scrollLeft;}else{br.y+=window.scrollY;br.x+=window.scrollX;}var tmp=box.x+box.width-br.x;if(tmp>0)box.x-=tmp;tmp=box.y+box.height-br.y;if(tmp>0)box.y-=tmp;};this.element.style.display="block";Calendar.continuation_for_the_fucking_khtml_browser=function(){var w=self.element.offsetWidth;var h=self.element.offsetHeight;self.element.style.display="none";var valign=opts.substr(0,1);var halign="l";if(opts.length>1){halign=opts.substr(1,1);}switch(valign){case "T":p.y-=h;break;case "B":p.y+=el.offsetHeight;break;case "C":p.y+=(el.offsetHeight-h)/2;break;case "t":p.y+=el.offsetHeight-h;break;case "b":break;}switch(halign){case "L":p.x-=w;break;case "R":p.x+=el.offsetWidth;break;case "C":p.x+=(el.offsetWidth-w)/2;break;case "l":p.x+=el.offsetWidth-w;break;case "r":break;}p.width=w;p.height=h+40;self.monthsCombo.style.display="none";fixPosition(p);self.showAt(p.x,p.y);};if(Calendar.is_khtml)setTimeout("Calendar.continuation_for_the_fucking_khtml_browser()",10);else Calendar.continuation_for_the_fucking_khtml_browser();};Calendar.prototype.setDateFormat=function(str){this.dateFormat=str;};Calendar.prototype.setTtDateFormat=function(str){this.ttDateFormat=str;};Calendar.prototype.parseDate=function(str,fmt){if(!fmt)fmt=this.dateFormat;this.setDate(Date.parseDate(str,fmt));};Calendar.prototype.hideShowCovered=function(){if(!Calendar.is_ie&&!Calendar.is_opera)return;function getVisib(obj){var value=obj.style.visibility;if(!value){if(document.defaultView&&typeof(document.defaultView.getComputedStyle)=="function"){if(!Calendar.is_khtml)value=document.defaultView. getComputedStyle(obj,"").getPropertyValue("visibility");else value='';}else if(obj.currentStyle){value=obj.currentStyle.visibility;}else value='';}return value;};var tags=new Array("applet","iframe","select");var el=this.element;var p=Calendar.getAbsolutePos(el);var EX1=p.x;var EX2=el.offsetWidth+EX1;var EY1=p.y;var EY2=el.offsetHeight+EY1;for(var k=tags.length;k>0;){var ar=document.getElementsByTagName(tags[--k]);var cc=null;for(var i=ar.length;i>0;){cc=ar[--i];p=Calendar.getAbsolutePos(cc);var CX1=p.x;var CX2=cc.offsetWidth+CX1;var CY1=p.y;var CY2=cc.offsetHeight+CY1;if(this.hidden||(CX1>EX2)||(CX2EY2)||(CY229)?1900:2000);break;case "%b":case "%B":for(j=0;j<12;++j){if(Calendar._MN[j].substr(0,a[i].length).toLowerCase()==a[i].toLowerCase()){m=j;break;}}break;case "%H":case "%I":case "%k":case "%l":hr=parseInt(a[i],10);break;case "%P":case "%p":if(/pm/i.test(a[i])&&hr<12)hr+=12;else if(/am/i.test(a[i])&&hr>=12)hr-=12;break;case "%M":min=parseInt(a[i],10);break;}}if(isNaN(y))y=today.getFullYear();if(isNaN(m))m=today.getMonth();if(isNaN(d))d=today.getDate();if(isNaN(hr))hr=today.getHours();if(isNaN(min))min=today.getMinutes();if(y!=0&&m!=-1&&d!=0)return new Date(y,m,d,hr,min,0);y=0;m=-1;d=0;for(i=0;i31&&y==0){y=parseInt(a[i],10);(y<100)&&(y+=(y>29)?1900:2000);}else if(d==0){d=a[i];}}if(y==0)y=today.getFullYear();if(m!=-1&&d!=0)return new Date(y,m,d,hr,min,0);return today;};Date.prototype.getMonthDays=function(month){var year=this.getFullYear();if(typeof month=="undefined"){month=this.getMonth();}if(((0==(year%4))&&((0!=(year%100))||(0==(year%400))))&&month==1){return 29;}else{return Date._MD[month];}};Date.prototype.getDayOfYear=function(){var now=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var then=new Date(this.getFullYear(),0,0,0,0,0);var time=now-then;return Math.floor(time/Date.DAY);};Date.prototype.getWeekNumber=function(){var d=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var DoW=d.getDay();d.setDate(d.getDate()-(DoW+6)%7+3);var ms=d.valueOf();d.setMonth(0);d.setDate(4);return Math.round((ms-d.valueOf())/(7*864e5))+1;};Date.prototype.equalsTo=function(date){return((this.getFullYear()==date.getFullYear())&&(this.getMonth()==date.getMonth())&&(this.getDate()==date.getDate())&&(this.getHours()==date.getHours())&&(this.getMinutes()==date.getMinutes()));};Date.prototype.setDateOnly=function(date){var tmp=new Date(date);this.setDate(1);this.setFullYear(tmp.getFullYear());this.setMonth(tmp.getMonth());this.setDate(tmp.getDate());};Date.prototype.print=function(str){var m=this.getMonth();var d=this.getDate();var y=this.getFullYear();var wn=this.getWeekNumber();var w=this.getDay();var s={};var hr=this.getHours();var pm=(hr>=12);var ir=(pm)?(hr-12):hr;var dy=this.getDayOfYear();if(ir==0)ir=12;var min=this.getMinutes();var sec=this.getSeconds();s["%a"]=Calendar._SDN[w];s["%A"]=Calendar._DN[w];s["%b"]=Calendar._SMN[m];s["%B"]=Calendar._MN[m];s["%C"]=1+Math.floor(y/100);s["%d"]=(d<10)?("0"+d):d;s["%e"]=d;s["%H"]=(hr<10)?("0"+hr):hr;s["%I"]=(ir<10)?("0"+ir):ir;s["%j"]=(dy<100)?((dy<10)?("00"+dy):("0"+dy)):dy;s["%k"]=hr;s["%l"]=ir;s["%m"]=(m<9)?("0"+(1+m)):(1+m);s["%M"]=(min<10)?("0"+min):min;s["%n"]="\n";s["%p"]=pm?"PM":"AM";s["%P"]=pm?"pm":"am";s["%s"]=Math.floor(this.getTime()/1000);s["%S"]=(sec<10)?("0"+sec):sec;s["%t"]="\t";s["%U"]=s["%W"]=s["%V"]=(wn<10)?("0"+wn):wn;s["%u"]=w+1;s["%w"]=w;s["%y"]=(''+y).substr(2,2);s["%Y"]=y;s["%%"]="%";var re=/%./g;if(!Calendar.is_ie5&&!Calendar.is_khtml)return str.replace(re,function(par){return s[par]||par;});var a=str.match(re);for(var i=0;i - -How to include additional info in day cells - - - - - - - - -

    How to include additional info in day cells

    - -
    - - - -

    The idea is simple:

    - -
      -
    1. -

      Define a callback that takes two parameters like this:

      -
      function getDateText(date, d)
      -

      - This function will receive the date object as the first - parameter and the current date number (1..31) as the second (you - can get it as well by calling date.getDate() but since it's very - probably useful I thought I'd pass it too so that we can avoid a - function call). -

      -

      - This function must return the text to be inserted in - the cell of the passed date. That is, one should at least - "return d;". -

      -
    2. -
    3. - Pass the above function as the "dateText" parameter to - Calendar.setup. -
    4. -
    - -

    - The function could simply look like: -

    - -
      function getDateText(date, d) {
    -    if (d == 12) {
    -      return "12th";
    -    } else if (d == 13) {
    -      return "bad luck";
    -    } /* ... etc ... */
    -  }
    - -

    - but it's easy to imagine that this approach sucks. For a better - way, see the source of this page and note the usage of an externally - defined "dateText" object which maps "date" to "date info", also - taking into account the year and month. This object can be easily - generated from a database, and the getDateText function becomes - extremely simple (and static). -

    - -

    - Cheers! -

    - -
    -
    mishoo
    - Last modified: Sat Mar 5 17:18:06 EET 2005 - diff --git a/zioinfo/js/jscalendar-1.0/doc/html/field-button.jpg b/zioinfo/js/jscalendar-1.0/doc/html/field-button.jpg deleted file mode 100644 index ecbe9d8d..00000000 Binary files a/zioinfo/js/jscalendar-1.0/doc/html/field-button.jpg and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/doc/html/reference-Z-S.css b/zioinfo/js/jscalendar-1.0/doc/html/reference-Z-S.css deleted file mode 100644 index 02a6f88f..00000000 --- a/zioinfo/js/jscalendar-1.0/doc/html/reference-Z-S.css +++ /dev/null @@ -1,193 +0,0 @@ - - body { - color: black; - /* background-color: #e5e5e5;*/ - background-color: #ffffff; - /*background-color: beige;*/ - margin-top: 2em; - margin-left: 8%; - margin-right: 8%; - } - - h1,h2,h3,h4,h5,h6 { - margin-top: .5em; - } - - .title { - font-size: 200%; - font-weight: normal; - } - - .partheading { - font-size: 100%; - } - - .chapterheading { - font-size: 100%; - } - - .beginsection { - font-size: 110%; - } - - .tiny { - font-size: 40%; - } - - .scriptsize { - font-size: 60%; - } - - .footnotesize { - font-size: 75%; - } - - .small { - font-size: 90%; - } - - .normalsize { - font-size: 100%; - } - - .large { - font-size: 120%; - } - - .largecap { - font-size: 150%; - } - - .largeup { - font-size: 200%; - } - - .huge { - font-size: 300%; - } - - .hugecap { - font-size: 350%; - } - - pre { - margin-left: 2em; - } - - blockquote { - margin-left: 2em; - } - - ol { - list-style-type: decimal; - } - - ol ol { - list-style-type: lower-alpha; - } - - ol ol ol { - list-style-type: lower-roman; - } - - ol ol ol ol { - list-style-type: upper-alpha; - } - - /* - .verbatim { - color: #4d0000; - } - */ - - tt i { - font-family: serif; - } - - .verbatim em { - font-family: serif; - } - - .scheme em { - font-family: serif; - color: black; - } - - .scheme { - color: brown; - } - - .scheme .keyword { - color: #990000; - font-weight: bold; - } - - .scheme .builtin { - color: #990000; - } - - .scheme .variable { - color: navy; - } - - .scheme .global { - color: purple; - } - - .scheme .selfeval { - color: green; - } - - .scheme .comment { - color: teal; - } - - .schemeresponse { - color: green; - } - - .navigation { - color: red; - text-align: right; - font-size: medium; - font-style: italic; - } - - .disable { - /* color: #e5e5e5; */ - color: gray; - } - - .smallcaps { - font-size: 75%; - } - - .smallprint { - color: gray; - font-size: 75%; - text-align: right; - } - - /* - .smallprint hr { - text-align: left; - width: 40%; - } - */ - - .footnoterule { - text-align: left; - width: 40%; - } - - .colophon { - color: gray; - font-size: 80%; - text-align: right; - } - - .colophon a { - color: gray; - } - - \ No newline at end of file diff --git a/zioinfo/js/jscalendar-1.0/doc/html/reference.css b/zioinfo/js/jscalendar-1.0/doc/html/reference.css deleted file mode 100644 index 42e92835..00000000 --- a/zioinfo/js/jscalendar-1.0/doc/html/reference.css +++ /dev/null @@ -1,34 +0,0 @@ -html { margin: 0px; padding: 0px; background-color: #08f; color: #444; font-family: georgia,serif; } -body { margin: 2em 8%; background-color: #fff; padding: 1em; border: 2px ridge #048; } - -a:link, a:visited { text-decoration: none; color: #00f; } -a:hover { color: #f00; text-decoration: underline; } -a:active { color: #f84; } - -h1, h2, h3, h4, h5, h6 { font-family: tahoma,verdana,sans-serif; } - -h2, h3 { font-weight: normal; } - -h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover { text-decoration: none; } - -h1 { font-size: 170%; border: 2px ridge #048; letter-spacing: 2px; color: #000; margin-left: -2em; margin-right: -2em; -background-color: #fff; padding: 2px 1em; background-color: #def; } -h2 { font-size: 140%; color: #222; } -h3 { font-size: 120%; color: #444; } - -h1.title { font-size: 300%; font-family: georgia,serif; font-weight: normal; color: #846; letter-spacing: -1px; -border: none; -padding: none; -background-color: #fff; -border-bottom: 3px double #624; padding-bottom: 2px; margin-left: 8%; margin-right: 8%; } - -.colophon { padding-top: 2em; color: #999; font-size: 90%; font-family: georgia,"times new roman",serif; } -.colophon a:link, .colophon a:visited { color: #755; } -.colophon a:hover { color: #422; text-decoration: underline; } - -.footnote { font-size: 90%; font-style: italic; font-family: georgia,"times new roman",serif; margin: 0px 3em; } -.footnote sup { font-size: 120%; padding: 0px 0.3em; position: relative; top: -0.2em; } - -.small { font-size: 90%; } - -.verbatim { background-color: #eee; padding: 0.2em 1em; border: 1px solid #aaa; } diff --git a/zioinfo/js/jscalendar-1.0/doc/html/reference.html b/zioinfo/js/jscalendar-1.0/doc/html/reference.html deleted file mode 100644 index 95f3644d..00000000 --- a/zioinfo/js/jscalendar-1.0/doc/html/reference.html +++ /dev/null @@ -1,1738 +0,0 @@ - - - - - -DHTML Calendar Widget - - - - - - -

    -

    -

    -

    -

    -

    -

    -

    -

    -

    -

    -

    -

    - - - - -

    -

    - - -

    -

    -

    -

    -

    -



    DHTML Calendar Widget

    -

    -
    -Mihai Bazon, <mihai_bazon@yahoo.com>
    -© Dynarch.com 2002-2005, www.dynarch.com

    March 7, 2005

    -

    -

    -calendar version: 1.0 ``It is happening again'' -

    -
    -

    -

    -$Id: reference.html,v 1.1 2007/05/21 11:51:56 bangmaroo Exp $ -

    -
    -
    - -
    - -
    - -

    Contents

    -

    -

    -    1  Overview
    -        1.1  How does this thing work?
    -        1.2  Project files
    -        1.3  License
    -

    -

    -    2  Quick startup
    -        2.1  Installing a popup calendar
    -        2.2  Installing a flat calendar
    -        2.3  Calendar.setup in detail
    -

    -

    -    3  Recipes
    -        3.1  Popup calendars
    -            3.1.1  Simple text field with calendar attached to a button
    -            3.1.2  Simple field with calendar attached to an image
    -            3.1.3  Hidden field, plain text triggers
    -            3.1.4  2 Linked fields, no trigger buttons
    -        3.2  Flat calendars
    -        3.3  Highlight special dates
    -        3.4  Select multiple dates
    -

    -

    -    4  The Calendar object overview
    -        4.1  Creating a calendar
    -        4.2  Order does matter ;-)
    -        4.3  Caching the object
    -        4.4  Callback functions
    -

    -

    -    5  The Calendar object API reference
    -        5.1  Calendar constructor
    -        5.2  Useful member variables (properties)
    -        5.3  Public methods
    -            5.3.1  Calendar.create
    -            5.3.2  Calendar.callHandler
    -            5.3.3  Calendar.callCloseHandler
    -            5.3.4  Calendar.hide
    -            5.3.5  Calendar.setDateFormat
    -            5.3.6  Calendar.setTtDateFormat
    -            5.3.7  Calendar.setDisabledHandler
    -            5.3.8  Calendar.setDateStatusHandler
    -            5.3.9  Calendar.show
    -            5.3.10  Calendar.showAt
    -            5.3.11  Calendar.showAtElement
    -            5.3.12  Calendar.setDate
    -            5.3.13  Calendar.setFirstDayOfWeek
    -            5.3.14  Calendar.parseDate
    -            5.3.15  Calendar.setRange
    -

    -

    -    6  Side effects
    -

    -

    -    7  Credits
    -

    -

    -

    -

    -

    - -

    1  Overview

    -

    The DHTML Calendar widget1 -is an (HTML) user interface element that gives end-users a friendly way to -select date and time. It works in a web browser. The first versions only provided -support for popup calendars, while starting with version 0.9 it also supports -``flat'' display. A ``flat'' calendar is a calendar that stays visible in the -page all the time. In this mode it could be very useful for ``blog'' pages and -other pages that require the calendar to be always present.

    -

    -The calendar is compatible with most popular browsers nowadays. While it's -created using web standards and it should generally work with any compliant -browser, the following browsers were found to work: Mozilla/Firefox (the -development platform), Netscape 6.0 or better, all other Gecko-based browsers, -Internet Explorer 5.0 or better for Windows2, Opera 73, Konqueror 3.1.2 and Apple Safari for -MacOSX.

    -

    -You can find the latest info and version at the calendar homepage:

    -

    -

    - -

    -

    - -

    1.1  How does this thing work?

    -

    DHTML is not ``another kind of HTML''. It's merely a naming convention. DHTML -refers to the combination of HTML, CSS, JavaScript and DOM. DOM (Document -Object Model) is a set of interfaces that glues the other three together. In -other words, DOM allows dynamic modification of an HTML page through a program. -JavaScript is our programming language, since that's what browsers like. CSS -is a way to make it look good ;-). So all this soup is generically known as -DHTML.

    -

    -Using DOM calls, the program dynamically creates a <table> element -that contains a calendar for the given date and then inserts it in the document -body. Then it shows this table at a specified position. Usually the position -is related to some element in which the date needs to be displayed/entered, -such as an input field.

    -

    -By assigning a certain CSS class to the table we can control the look of the -calendar through an external CSS file; therefore, in order to change the -colors, backgrounds, rollover effects and other stuff, you can only change a -CSS file -- modification of the program itself is not necessary.

    -

    -

    - -

    1.2  Project files

    -

    Here's a description of the project files, excluding documentation and example -files.

    -

    -

    -

      -

      -
    • the main program file (calendar.js). This defines all the logic -behind the calendar widget.

      -

      -

      -
    • the CSS files (calendar-*.css). Loading one of them is -necessary in order to see the calendar as intended.

      -

      -

      -
    • the language definition files (lang/calendar-*.js). They are -plain JavaScript files that contain all texts that are displayed by the -calendar. Loading one of them is necessary.

      -

      -

      -
    • helper functions for quick setup of the calendar -(calendar-setup.js). You can do fine without it, but starting with -version 0.9.3 this is the recommended way to setup a calendar.

      -

      -

      -

    -

    -

    - -

    1.3  License

    -

    -
    - -© Dynarch.com 2002-2005, -www.dynarch.com -Author: Mihai Bazon -
    -

    -The calendar is released under the -GNU Lesser General Public License.

    -

    -

    - -

    2  Quick startup

    -

    -

    -Installing the calendar used to be quite a task until version 0.9.3. Starting -with 0.9.3 I have included the file calendar-setup.js whose goal is to -assist you to setup a popup or flat calendar in minutes. You are -encouraged to modify this file and not calendar.js if you need -extra customization, but you're on your own.

    -

    -First you have to include the needed scripts and style-sheet. Make sure you do -this in your document's <head> section, also make sure you put the -correct paths to the scripts.

    -

    -

    -
    <style type="text/css">@import url(calendar-win2k-1.css);</style>
    -<script type="text/javascript" src="calendar.js"></script>
    -<script type="text/javascript" src="lang/calendar-en.js"></script>
    -<script type="text/javascript" src="calendar-setup.js"></script>
    -

    -

    -

    - -

    2.1  Installing a popup calendar

    -

    -

    -Now suppose you have the following HTML:

    -

    -

    -
    <form ...>
    -  <input type="text" id="data" name="data" />
    -  <button id="trigger">...</button>
    -</form>
    -

    -

    -You want the button to popup a calendar widget when clicked? Just -insert the following code immediately after the HTML form:

    -

    -

    -
    <script type="text/javascript">
    -  Calendar.setup(
    -    {
    -      inputField  : "data",         // ID of the input field
    -      ifFormat    : "%m %d, %Y",    // the date format
    -      button      : "trigger"       // ID of the button
    -    }
    -  );
    -</script>
    -

    -

    -The Calendar.setup function, defined in calendar-setup.js -takes care of ``patching'' the button to display a calendar when clicked. The -calendar is by default in single-click mode and linked with the given input -field, so that when the end-user selects a date it will update the input field -with the date in the given format and close the calendar. If you are a -long-term user of the calendar you probably remember that for doing this you -needed to write a couple functions and add an ``onclick'' handler for the -button by hand.

    -

    -By looking at the example above we can see that the function -Calendar.setup receives only one parameter: a JavaScript object. -Further, that object can have lots of properties that tell to the setup -function how would we like to have the calendar. For instance, if we would -like a calendar that closes at double-click instead of single-click we would -also include the following: singleClick:false.

    -

    -For a list of all supported parameters please see the section -2.3.

    -

    -

    - -

    2.2  Installing a flat calendar

    -

    -

    -Here's how to configure a flat calendar, using the same Calendar.setup -function. First, you should have an empty element with an ID. This element -will act as a container for the calendar. It can be any block-level element, -such as DIV, TABLE, etc. We will use a DIV in this example.

    -

    -

    -
    <div id="calendar-container"></div>
    -

    -

    -Then there is the JavaScript code that sets up the calendar into the -``calendar-container'' DIV. The code can occur anywhere in HTML -after the DIV element.

    -

    -

    -
    <script type="text/javascript">
    -  function dateChanged(calendar) {
    -    // Beware that this function is called even if the end-user only
    -    // changed the month/year.  In order to determine if a date was
    -    // clicked you can use the dateClicked property of the calendar:
    -    if (calendar.dateClicked) {
    -      // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
    -      var y = calendar.date.getFullYear();
    -      var m = calendar.date.getMonth();     // integer, 0..11
    -      var d = calendar.date.getDate();      // integer, 1..31
    -      // redirect...
    -      window.location = "/" + y + "/" + m + "/" + d + "/index.php";
    -    }
    -  };
    -
    -  Calendar.setup(
    -    {
    -      flat         : "calendar-container", // ID of the parent element
    -      flatCallback : dateChanged           // our callback function
    -    }
    -  );
    -</script>
    -

    -

    -

    - -

    2.3  Calendar.setup in detail

    -

    -

    -Following there is the complete list of properties interpreted by -Calendar.setup. All of them have default values, so you can pass only those -which you would like to customize. Anyway, you must pass at least one -of inputField, displayArea or button, for a popup -calendar, or flat for a flat calendar. Otherwise you will get a -warning message saying that there's nothing to setup.

    -

    -

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    property type description default -
    inputField -string The ID of your input field. -null -
    displayArea -string This is the ID of a <span>, <div>, or any other element that you would like to use to display the current date. This is generally useful only if the input field is hidden, as an area to display the date. -null -
    button -string The ID of the calendar ``trigger''. This is an element (ordinarily a button or an image) that will dispatch a certain event (usually ``click'') to the function that creates and displays the calendar. -null -
    eventName -string The name of the event that will trigger the calendar. The name should be without the ``on'' prefix, such as ``click'' instead of ``onclick''. Virtually all users will want to let this have the default value (``click''). Anyway, it could be useful if, say, you want the calendar to appear when the input field is focused and have no trigger button (in this case use ``focus'' as the event name). -``click'' -
    ifFormat -string The format string that will be used to enter the date in the input field. This format will be honored even if the input field is hidden. -``%Y/%m/%d'' -
    daFormat -string Format of the date displayed in the displayArea (if specified). -``%Y/%m/%d'' -
    singleClick -boolean Wether the calendar is in ``single-click mode'' or ``double-click mode''. If true (the default) the calendar will be created in single-click mode. -true -
    disableFunc -function A function that receives a JS Date object. It should return -true if that date has to be disabled, false otherwise. -DEPRECATED (see below). -null -
    dateStatusFunc -function A function that receives a JS Date object and returns a boolean -or a string. This function allows one to set a certain CSS class to some -date, therefore making it look different. If it returns true then -the date will be disabled. If it returns false nothing special -happens with the given date. If it returns a string then that will be taken -as a CSS class and appended to the date element. If this string is -``disabled'' then the date is also disabled (therefore is like returning -true). For more information please also refer to section -5.3.8. -null -
    firstDay -integer Specifies which day is to be displayed as the first day of -week. Possible values are 0 to 6; 0 means Sunday, 1 means Monday, ..., 6 -means Saturday. The end user can easily change this too, by clicking on the -day name in the calendar header. -0 -
    weekNumbers -boolean If ``true'' then the calendar will display week numbers. -true -
    align -string Alignment of the calendar, relative to the reference element. The -reference element is dynamically chosen like this: if a displayArea is -specified then it will be the reference element. Otherwise, the input field -is the reference element. For the meaning of the alignment characters -please section 5.3.11. -``Bl'' -
    range -array An array having exactly 2 elements, integers. (!) The first [0] element is the minimum year that is available, and the second [1] element is the maximum year that the calendar will allow. -[1900, 2999] -
    flat -string If you want a flat calendar, pass the ID of the parent object in -this property. If not, pass null here (or nothing at all as -null is the default value). -null -
    flatCallback -function You should provide this function if the calendar is flat. It -will be called when the date in the calendar is changed with a reference to -the calendar object. See section 2.2 for an example -of how to setup a flat calendar. -null -
    onSelect -function If you provide a function handler here then you have to manage -the ``click-on-date'' event by yourself. Look in the calendar-setup.js and -take as an example the onSelect handler that you can see there. -null -
    onClose -function This handler will be called when the calendar needs to close. -You don't need to provide one, but if you do it's your responsibility to -hide/destroy the calendar. You're on your own. Check the calendar-setup.js -file for an example. -null -
    onUpdate -function If you supply a function handler here, it will be called right -after the target field is updated with a new date. You can use this to -chain 2 calendars, for instance to setup a default date in the second just -after a date was selected in the first. -null -
    date -date This allows you to setup an initial date where the calendar will be -positioned to. If absent then the calendar will open to the today date. -null -
    showsTime -boolean If this is set to true then the calendar will also -allow time selection. -false -
    timeFormat -string Set this to ``12'' or ``24'' to configure the way that the -calendar will display time. -``24'' -
    electric -boolean Set this to ``false'' if you want the calendar to update the -field only when closed (by default it updates the field at each date change, -even if the calendar is not closed) true -
    position -array Specifies the [x, y] position, relative to page's top-left corner, -where the calendar will be displayed. If not passed then the position will -be computed based on the ``align'' parameter. Defaults to ``null'' (not -used). null -
    cache -boolean Set this to ``true'' if you want to cache the calendar object. -This means that a single calendar object will be used for all fields that -require a popup calendar false -
    showOthers -boolean If set to ``true'' then days belonging to months overlapping -with the currently displayed month will also be displayed in the calendar -(but in a ``faded-out'' color) false - -
    - -

    -

    - -

    3  Recipes

    -

    This section presents some common ways to setup a calendar using the -Calendar.setup function detailed in the previous section.

    -

    -We don't discuss here about loading the JS or CSS code -- so make sure you -add the proper <script> and <style> or <link> elements in your -HTML code. Also, when we present input fields, please note that they should -be embedded in some form in order for data to be actually sent to server; we -don't discuss these things here because they are not related to our -calendar.

    -

    -

    - -

    3.1  Popup calendars

    -

    These samples can be found in the file “simple-1.html” from the -calendar package.

    -

    -

    - -

    3.1.1  Simple text field with calendar attached to a button

    -

    -

    -This piece of code will create a calendar for a simple input field with a -button that will open the calendar when clicked.

    -

    -

    -
    <input type="text" name="date" id="f_date_b"
    -       /><button type="reset" id="f_trigger_b"
    -       >...</button>
    -<script type="text/javascript">
    -    Calendar.setup({
    -        inputField     :    "f_date_b",           //*
    -        ifFormat       :    "%m/%d/%Y %I:%M %p",
    -        showsTime      :    true,
    -        button         :    "f_trigger_b",        //*
    -        step           :    1
    -    });
    -</script>
    -

    -

    -Note that this code does more actually; the only required fields are -those marked with “//*” -- that is, the ID of the input field and the ID of -the button need to be passed to Calendar.setup in order for the -calendar to be properly assigned to this input field. As one can easily -guess from the argument names, the other arguments configure a certain date -format, instruct the calendar to also include a time selector and display -every year in the drop-down boxes (the “step” parameter) -- instead of showing -every other year as the default calendar does.

    -

    -

    - -

    3.1.2  Simple field with calendar attached to an image

    -

    Same as the above, but the element that triggers the calendar is this time -an image, not a button.

    -

    -

    -
    <input type="text" name="date" id="f_date_c" readonly="1" />
    -<img src="img.gif" id="f_trigger_c"
    -     style="cursor: pointer; border: 1px solid red;"
    -     title="Date selector"
    -     onmouseover="this.style.background='red';"
    -     onmouseout="this.style.background=''" />
    -<script type="text/javascript">
    -    Calendar.setup({
    -        inputField     :    "f_date_c",
    -        ifFormat       :    "%B %e, %Y",
    -        button         :    "f_trigger_c",
    -        align          :    "Tl",
    -        singleClick    :    false
    -    });
    -</script>
    -

    -

    -Note that the same 2 parameters are required as in the previous case; the -difference is that the 'button' parameter now gets the ID of the image -instead of the ID of the button. But the event is the same: at 'onclick' on -the element that is passed as 'button', the calendar will be shown.

    -

    -The above code additionally sets an alignment mode -- the parameters are -described in 5.3.11.

    -

    -

    - -

    3.1.3  Hidden field, plain text triggers

    -

    Sometimes, to assure that the date is well formatted, you might want not to -allow the end user to write a date manually. This can easily be achieved -with an input field by setting its readonly attribute, which is -defined by the HTML4 standard; however, here's an even nicer approach: our -calendar widget allows you to use a hidden field as the way to pass data to -server, and a “display area” to show the end user the selected date. The -“display area” can be any HTML element, such as a DIV or a SPAN or -whatever -- we will use a SPAN in our sample.

    -

    -

    -
    <input type="hidden" name="date" id="f_date_d" />
    -
    -<p>Your birthday:
    -   <span style="background-color: #ff8; cursor: default;"
    -         onmouseover="this.style.backgroundColor='#ff0';"
    -         onmouseout="this.style.backgroundColor='#ff8';"
    -         id="show_d"
    -   >Click to open date selector</span>.</p>
    -
    -<script type="text/javascript">
    -    Calendar.setup({
    -        inputField     :    "f_date_d",
    -        ifFormat       :    "%Y/%d/%m",
    -        displayArea    :    "show_d",
    -        daFormat       :    "%A, %B %d, %Y",
    -    });
    -</script>
    -

    -

    -The above code will configure a calendar attached to the hidden field and to -the SPAN having the id=“show_d”. When the SPAN element is clicked, the -calendar opens and allows the end user to chose a date. When the date is -chosen, the input field will be updated with the value in the format -“%Y/%d/%m”, and the SPAN element will display the date in a -friendlier format (defined by “daFormat”).

    -

    -Beware that using this approach will make your page unfunctional in browsers -that do not support JavaScript or our calendar.

    -

    -

    - -

    3.1.4  2 Linked fields, no trigger buttons

    -

    Supposing you want to create 2 fields that hold an interval of exactly one -week. The first is the starting date, and the second is the ending date. -You want the fields to be automatically updated when some date is clicked in -one or the other, in order to keep exactly one week difference between them.

    -

    -

    -
    <input type="text" name="date" id="f_date_a" />
    -<input type="text" name="date" id="f_calcdate" />
    -
    -<script type="text/javascript">
    -    function catcalc(cal) {
    -        var date = cal.date;
    -        var time = date.getTime()
    -        // use the _other_ field
    -        var field = document.getElementById("f_calcdate");
    -        if (field == cal.params.inputField) {
    -            field = document.getElementById("f_date_a");
    -            time -= Date.WEEK; // substract one week
    -        } else {
    -            time += Date.WEEK; // add one week
    -        }
    -        var date2 = new Date(time);
    -        field.value = date2.print("%Y-%m-%d %H:%M");
    -    }
    -    Calendar.setup({
    -        inputField     :    "f_date_a",
    -        ifFormat       :    "%Y-%m-%d %H:%M",
    -        showsTime      :    true,
    -        timeFormat     :    "24",
    -        onUpdate       :    catcalc
    -    });
    -    Calendar.setup({
    -        inputField     :    "f_calcdate",
    -        ifFormat       :    "%Y-%m-%d %H:%M",
    -        showsTime      :    true,
    -        timeFormat     :    "24",
    -        onUpdate       :    catcalc
    -    });
    -</script>
    -

    -

    -The above code will configure 2 input fields with calendars attached, as -usual. The first thing to note is that there's no trigger button -- in such -case, the calendar will popup when one clicks into the input field. Using -the onUpdate parameter, we pass a reference to a function of ours -that will get called after a date was selected. In that function we -determine what field was updated and we compute the date in the other input -field such that it keeps a one week difference between the two. Enjoy! :-)

    -

    -

    - -

    3.2  Flat calendars

    -

    This sample can be found in “simple-2.html”. It will configure a -flat calendar that is always displayed in the page, in the DIV having the -id=“calendar-container”. When a date is clicked our function hander gets -called (dateChanged) and it will compute an URL to jump to based on -the selected date, then use window.location to visit the new link.

    -

    -

    -
    <div style="float: right; margin-left: 1em; margin-bottom: 1em;"
    -id="calendar-container"></div>
    -
    -<script type="text/javascript">
    -  function dateChanged(calendar) {
    -    // Beware that this function is called even if the end-user only
    -    // changed the month/year.  In order to determine if a date was
    -    // clicked you can use the dateClicked property of the calendar:
    -    if (calendar.dateClicked) {
    -      // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
    -      var y = calendar.date.getFullYear();
    -      var m = calendar.date.getMonth();     // integer, 0..11
    -      var d = calendar.date.getDate();      // integer, 1..31
    -      // redirect...
    -      window.location = "/" + y + "/" + m + "/" + d + "/index.php";
    -    }
    -  };
    -
    -  Calendar.setup(
    -    {
    -      flat         : "calendar-container", // ID of the parent element
    -      flatCallback : dateChanged           // our callback function
    -    }
    -  );
    -</script>
    -

    -

    -

    - -

    3.3  Highlight special dates

    -

    So you want to display certain dates in a different color, or with bold -font, or whatever, right? Well, no problem -- our calendar can do this as -well. It doesn't matter if it's a flat or popup calendar -- we'll use a flat -one for this sample. The idea, however, is that you need to have the dates -in an array or a JavaScript object -- whatever is suitable for your way of -thinking -- and use it from a function that returns a value, telling the -calendar what kind of date is the passed one.

    -

    -Too much talking, here's the code ;-)

    -

    -

    -
    <!-- this goes into the <head> tag -->
    -<style type="text/css">
    -  .special { background-color: #000; color: #fff; }
    -</style>
    -
    -<!-- and the rest inside the <body> -->
    -<div style="float: right; margin-left: 1em; margin-bottom: 1em;"
    -id="calendar-container"></div>
    -
    -<script type="text/javascript">
    -  var SPECIAL_DAYS = {
    -    0 : [ 13, 24 ],		// special days in January
    -    2 : [ 1, 6, 8, 12, 18 ],	// special days in March
    -    8 : [ 21, 11 ]		// special days in September
    -  };
    -
    -  function dateIsSpecial(year, month, day) {
    -    var m = SPECIAL_DAYS[month];
    -    if (!m) return false;
    -    for (var i in m) if (m[i] == day) return true;
    -    return false;
    -  };
    -
    -  function dateChanged(calendar) {
    -    // Beware that this function is called even if the end-user only
    -    // changed the month/year.  In order to determine if a date was
    -    // clicked you can use the dateClicked property of the calendar:
    -    if (calendar.dateClicked) {
    -      // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
    -      var y = calendar.date.getFullYear();
    -      var m = calendar.date.getMonth();     // integer, 0..11
    -      var d = calendar.date.getDate();      // integer, 1..31
    -      // redirect...
    -      window.location = "/" + y + "/" + m + "/" + d + "/index.php";
    -    }
    -  };
    -
    -  function ourDateStatusFunc(date, y, m, d) {
    -    if (dateIsSpecial(y, m, d))
    -      return "special";
    -    else
    -      return false; // other dates are enabled
    -      // return true if you want to disable other dates
    -  };
    -
    -  Calendar.setup(
    -    {
    -      flat         : "calendar-container", // ID of the parent element
    -      flatCallback : dateChanged,          // our callback function
    -      dateStatusFunc : ourDateStatusFunc
    -    }
    -  );
    -</script>
    -

    -

    -So the above code creates a normal flat calendar, like in the previous -sample. We hook into it with the function “ourDateStatusFunc”, -which receives a date object as the first argument, and also the year, -month, date as the next 3 arguments (normally, you can extract year, month, -date from the first parameter too, but we pass them separately for -convenience, as it's very likely that they are going to be used in this -function).

    -

    -So, this function receives a date. It can return false if you want -no special action to be taken on that date, true if that date -should be disabled (unselectable), or a string if you want to assign a -special CSS class to that date. We return “special” for the dates that we -want to highlight -- and note that we defined a “special” look for them in -the CSS section.

    -

    -I used a simple approach here to define what dates are special. There's a -JavaScript object (the SPECIAL_DAYS global variable) which holds an array -of dates for each month. Month numbers start at zero (January). Months -that don't contain special dates can be absent from this object. Note that -the way to implement this is completely separated from the calendar -code -- therefore, feel free to use your imagination if you have better -ideas. :-)

    -

    -

    - -

    3.4  Select multiple dates

    -

    Starting version 1.0, the calendar is able to handle multiple dates -selection. You just need to pass the “multiple” parameter to -Calendar.setup and add some special code that interprets the -selection once the calendar is closed.

    -

    -

    -
    <a id="trigger" href="#">[open calendar...]</a>
    -<div id="output"></div>
    -<script type="text/javascript">//<![CDATA[
    -    // the default multiple dates selected,
    -    // first time the calendar is displayed
    -    var MA = [];
    -
    -    function closed(cal) {
    -
    -      // here we'll write the output; this is only for example.  You
    -      // will normally fill an input field or something with the dates.
    -      var el = document.getElementById("output");
    -
    -      // reset initial content.
    -      el.innerHTML = "";
    -
    -      // Reset the "MA", in case one triggers the calendar again.
    -      // CAREFUL!  You don't want to do "MA = [];".  We need to modify
    -      // the value of the current array, instead of creating a new one.
    -      // Calendar.setup is called only once! :-)  So be careful.
    -      MA.length = 0;
    -
    -      // walk the calendar's multiple dates selection hash
    -      for (var i in cal.multiple) {
    -        var d = cal.multiple[i];
    -        // sometimes the date is not actually selected,
    -        // so let's check
    -        if (d) {
    -          // OK, selected.  Fill an input field or something.
    -          el.innerHTML += d.print("%A, %Y %B %d") + "<br />";
    -          // and push it in the "MA", in case one triggers the calendar again.
    -          MA[MA.length] = d;
    -        }
    -      }
    -      cal.hide();
    -      return true;
    -    };
    -
    -    Calendar.setup({
    -      align      : "BR",
    -      showOthers : true,
    -      multiple   : MA, // pass the initial or computed array of multiple dates
    -      onClose    : closed,
    -      button     : "trigger"
    -    });
    -//]]></script>
    -

    -

    -The above code creates a popup calendar and passes to it an array of dates, -which is initially empty, in the “multiple” argument. When the calendar is -closed it will call our “closed” function handler; in this handler -we determine what dates were actually selected, inspecting the -“cal.multiple” property, we display them in a DIV element right -next to the <a> element that opens the calendar, and we reinitialize the -global array of selected dates (which will be used if the end user opens the -calendar again). I guess the code speaks for itself, right? :-)

    -

    -

    - -

    4  The Calendar object overview

    -

    -

    -Basically you should be able to setup the calendar with the function presented -in the previous section. However, if for some reason Calendar.setup -doesn't provide all the functionality that you need and you want to tweak into -the process of creating and configuring the calendar ``by hand'', then this -section is the way to go.

    -

    -The file calendar.js implements the functionality of the calendar. -All (well, almost all) functions and variables are embedded in the JavaScript -object ``Calendar''.

    -

    -You can instantiate a Calendar object by calling the constructor, like -this: var cal = new Calendar(...). We will discuss the parameters -later. After creating the object, the variable cal will contain a -reference to it. You can use this reference to access further options of the -calendar, for instance:

    -

    -

    -
    cal.weekNumbers = false; // do not display week numbers
    -cal.showsTime = true;    // include a time selector
    -cal.setDateFormat("%Y.%m.%d %H:%M"); // set this format: 2003.12.31 23:59
    -cal.setDisabledHandler(function(date, year, month, day) {
    -  // verify date and return true if it has to be disabled
    -  // ``date'' is a JS Date object, but if you only need the
    -  // year, month and/or day you can get them separately as
    -  // next 3 parameters, as you can see in the declaration
    -  if (year == 2004) {
    -    // disable all dates from 2004
    -    return true;
    -  }
    -  return false;
    -});
    -

    -

    -etc. Prior to version -0.9.3 this was the only way to configure it. The Calendar.setup -function, documented in section 2, basically does the same -things (actually more) in order to setup the calendar, based on the parameters -that you provided.

    -

    -

    - -

    4.1  Creating a calendar

    -

    The calendar is created by following some steps (even the function -Calendar.setup, described in section 2, does the -same). While you can skip optional (marked ``opt'') steps if you're happy with -the defaults, please respect the order below.

    -

    -

    -

      -

      -
    1. Instantiate a Calendar object. Details about this in -section 5.1.

      -

      -

      -
    2. opt   Set the weekNumbers property to false if you don't want -the calendar to display week numbers.

      -

      -

      -
    3. opt   Set the showsTime property to true if you -want the calendar to also provide a time selector.

      -

      -

      -
    4. opt   Set the time24 property to false if you want -the time selector to be in 12-hour format. Default is 24-hour format. This -property only has effect if you also set showsTime to -true.

      -

      -

      -
    5. opt   Set the range of years available for selection (see section -5.3.15). The default range is [1970..2050].

      -

      -

      -
    6. opt   Set the getDateStatus property. You should pass -here a function that receives a JavaScript Date object and returns -true if the given date should be disabled, false otherwise (details in -section 5.3.7).

      -

      -

      -
    7. opt   Set a date format. Your handler function, passed to the -calendar constructor, will be called when a date is selected with a reference -to the calendar and a date string in this format.

      -

      -

      -
    8. Create the HTML elements related to the calendar. This step -practically puts the calendar in your HTML page. You simply call -Calendar.create(). You can give an optional parameter if you wanna -create a flat calendar (details in section 5.3.1).

      -

      -

      -
    9. opt   Initialize the calendar to a certain date, for instance from -the input field.

      -

      -

      -
    10. Show the calendar (details in section 5.3.9).

      -

      -

      -

    -

    -

    - -

    4.2  Order does matter ;-)

    -

    As you could see in the previous section, there are more steps to be followed -in order to setup the calendar. This happens because there are two different -things that need to be accomplished: first there is the JavaScript object, that -is created with new Calendar(...). Secondly there are the HTML -elements that actually lets you see and manipulate the calendar.

    -

    -

    -[ Those that did UI4 programming, no matter in what -language and on what platform, may be familiar with this concept. First there -is the object in memory that lets you manipulate the UI element, and secondly -there is the UI element (known as ``control'', ``window'', ``widget'', etc.), -also in memory but you don't usually access it directly. ] -

    -By instantiating the calendar we create the JavaScript object. It lets us -configure some properties and it also knows how to create the UI element (the -HTML elements actually) that will eventually be what the end-user sees on -screen. Creation of the HTML element is accomplished by the function -Calendar.create. It knows how to create popup or flat calendars. -This function is described in section 5.3.1.

    -

    -Some properties need to be set prior to creating the HTML elements, because -otherwise they wouldn't have any effect. Such a property is -weekNumbers -- it has the default value ``true'', and if you don't -want the calendar to display the week numbers you have to set it to false. If, -however, you do that after calling Calendar.create the calendar -would still display the week numbers, because the HTML elements are already -created (including the <td>-s in the <table> element that -should contain the week numbers). For this reason the order of the steps above -is important.

    -

    -Another example is when you want to show the calendar. The ``create'' function -does create the HTML elements, but they are initially hidden (have the style -``display: none'') unless the calendar is a flat calendar that should be always -visible in the page. Obviously, the Calendar.show function should be -called after calling Calendar.create.

    -

    -

    - -

    4.3  Caching the object

    -

    Suppose the end-user has popped up a calendar and selects a date. The calendar -then closes. What really happens now?

    -

    -There are two approaches. The first (used in very old versions of the -calendar) was to drop completely the Calendar object and when the end-user pops -up the calendar again to create another one. This approach is bad for more -reasons:

    -

    -

    -

      -

      -
    • creating the JavaScript object and HTML elements is time-consuming

      -

      -

      -
    • we may loose some end-user preferences (i.e. he might prefer to have -Monday for the first day of week and probably already clicked it the first time -when the calendar was opened, but now he has to do it again)

      -

      -

      -

    -

    -The second approach, implemented by the Calendar.setup function, is to -cache the JavaScript object. It does this by checking the global variable -window.calendar and if it is not null it assumes it is the created -Calendar object. When the end-user closes the calendar, our code will only -call ``hide'' on it, therefore keeping the JavaScript object and the -HTML elements in place.

    -

    -CAVEAT:     Since time selection support was introduced, this -``object caching'' mechanism has the following drawback: if you once created -the calendar with the time selection support, then other items that may not -require this functionality will still get a calendar with the time selection -support enabled. And reciprocal. ;-) Hopefully this will be corrected in a -later version, but for now it doesn't seem such a big problem.

    -

    -

    - -

    4.4  Callback functions

    -

    You might rightfully wonder how is the calendar related to the input field? -Who tells it that it has to update that input field when a date is -selected, or that it has to jump to that URL when a date is clicked in -flat mode?

    -

    -All this magic is done through callback functions. The calendar doesn't know -anything about the existence of an input field, nor does it know where to -redirect the browser when a date is clicked in flat mode. It just calls your -callback when a particular event is happening, and you're responsible to handle -it from there. For a general purpose library I think this is the best model of -making a truly reusable thing.

    -

    -The calendar supports the following user callbacks:

    -

    -

    -

      -

      -
    • onSelect   -- this gets called when the end-user changes the date in the -calendar. Documented in section 5.1.

      -

      -

      -
    • onClose   -- this gets called when the calendar should close. It's -user's responsibility to close the calendar. Details in section -5.1.

      -

      -

      -
    • getDateStatus   -- this function gets called for any day in a month, -just before displaying the month. It is called with a JavaScript Date -object and should return true if that date should be disabled, false -if it's an ordinary date and no action should be taken, or it can return a -string in which case the returned value will be appended to the element's CSS -class (this way it provides a powerful way to make some dates ``special'', -i.e. highlight them differently). Details in section -5.3.8.

      -

      -

      -

    -

    -

    - -

    5  The Calendar object API reference

    -

    -

    -

    - -

    5.1  Calendar constructor

    -

    -

    -Synopsis:

    -

    -

    -
    var calendar = Calendar(firstDayOfWeek, date, onSelect, onClose);
    -

    -

    -Parameters are as follows:

    -

    -

    -

      -

      -
    • firstDayOfWeek   -- specifies which day is to be displayed as the first -day of week. Possible values are 0 to 6; 0 means Sunday, 1 means Monday, -..., 6 means Saturday.

      -

      -

      -
    • date   -- a JavaScript Date object or null. If null -is passed then the calendar will default to today date. Otherwise it will -initialize on the given date.

      -

      -

      -
    • onSelect   -- your callback for the ``onChange'' event. See above.

      -

      -

      -
    • onClose   -- your callback for the ``onClose'' event. See above.

      -

      -

      -

    -

    -

    - -

    The onSelect event

    -

    -

    -Here is a typical implementation of this function:

    -

    -

    -
    function onSelect(calendar, date) {
    -  var input_field = document.getElementById("date");
    -  input_field.value = date;
    -};
    -

    -

    -date is in the format selected with calendar.setDateFormat -(see section 5.3.5). This code simply updates the -input field. If you want the calendar to be in single-click mode then you -should also close the calendar after you updated the input field, so we come to -the following version:

    -

    -

    -
    function onSelect(calendar, date) {
    -  var input_field = document.getElementById("date");
    -  input_field.value = date;
    -  if (calendar.dateClicked) {
    -    calendar.callCloseHandler(); // this calls "onClose" (see above)
    -  }
    -};
    -

    -

    -Note that we checked the member variable dateClicked and -only hide the calendar if it's true. If this variable is false it -means that no date was actually selected, but the user only changed the -month/year using the navigation buttons or the menus. We don't want to hide -the calendar in that case.

    -

    -

    - -

    The onClose event

    -

    -

    -This event is triggered when the calendar should close. It should hide or -destroy the calendar object -- the calendar itself just triggers the event, but -it won't close itself.

    -

    -A typical implementation of this function is the following:

    -

    -

    -
    function onClose(calendar) {
    -  calendar.hide();
    -  // or calendar.destroy();
    -};
    -

    -

    -

    - -

    5.2  Useful member variables (properties)

    -

    -

    -After creating the Calendar object you can access the following properties:

    -

    -

    -

      -

      -
    • date -- is a JavaScript Date object. It will always -reflect the date shown in the calendar (yes, even if the calendar is hidden).

      -

      -

      -
    • isPopup -- if this is true then the current Calendar object is -a popup calendar. Otherwise (false) we have a flat calendar. This variable is -set from Calendar.create and has no meaning before this function was -called.

      -

      -

      -
    • dateClicked -- particularly useful in the onSelect -handler, this variable tells us if a date was really clicked. That's because -the onSelect handler is called even if the end-user only changed the -month/year but did not select a date. We don't want to close the calendar in -that case.

      -

      -

      -
    • weekNumbers -- if true (default) then the calendar -displays week numbers. If you don't want week numbers you have to set this -variable to false before calling Calendar.create.

      -

      -

      -
    • showsTime - if you set this to true (it is -false by default) then the calendar will also include a time selector.

      -

      -

      -
    • time24 - if you set this to false then the time -selector will be in 12-hour format. It is in 24-hour format by default.

      -

      -

      -
    • firstDayOfWeek -- specifies the first day of week (0 to 6, pass -0 for Sunday, 1 for Monday, ..., 6 for Saturday). This variable is set from -constructor, but you still have a chance to modify it before calling -Calendar.create.

      -

      -

      -

    -

    -There are lots of other member variables, but one should access them only -through member functions so I won't document them here.

    -

    -

    - -

    5.3  Public methods

    -

    - -

    5.3.1  Calendar.create

    -

    -

    -This function creates the afferent HTML elements that are needed to display the -calendar. You should call it after setting the calendar properties. Synopsis: -

    -
    calendar.create(); // creates a popup calendar
    -  // -- or --
    -calendar.create(document.getElementById(parent_id)); // makes a flat calendar
    -

    -

    -It can create a popup calendar or a flat calendar. If the ``parent'' argument -is present (it should be a reference -- not ID -- to an HTML element) then -a flat calendar is created and it is inserted in the given element.

    -

    -At any moment, given a reference to a calendar object, we can inspect if it's a -popup or a flat calendar by checking the boolean member variable -isPopup:

    -

    -

    -
    if (calendar.isPopup) {
    -   // this is a popup calendar
    -} else {
    -   // this is a flat calendar
    -}
    -

    -

    -

    - -

    5.3.2  Calendar.callHandler

    -

    -

    -This function calls the first user callback (the -onSelect handler) with the required parameters.

    -

    -

    - -

    5.3.3  Calendar.callCloseHandler

    -

    -

    -This function calls the second user callback (the -onClose handler). It's useful when you want to have a -``single-click'' calendar -- just call this in your onSelect handler, -if a date was clicked.

    -

    -

    - -

    5.3.4  Calendar.hide

    -

    -

    -Call this function to hide the calendar. The calendar object and HTML elements -will not be destroyed, thus you can later call one of the show -functions on the same element.

    -

    -

    - -

    5.3.5  Calendar.setDateFormat

    -

    -

    -This function configures the format in which the calendar reports the date to -your ``onSelect'' handler. Call it like this:

    -

    -

    -
    calendar.setDateFormat("%y/%m/%d");
    -

    -

    -As you can see, it receives only one parameter, the required format. The magic -characters are the following:

    -

    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    %a abbreviated weekday name
    %A full weekday name
    %b abbreviated month name
    %B full month name
    %C century number
    %d the day of the month ( 00 .. 31 )
    %e the day of the month ( 0 .. 31 )
    %H hour ( 00 .. 23 )
    %I hour ( 01 .. 12 )
    %j day of the year ( 000 .. 366 )
    %k hour ( 0 .. 23 )
    %l hour ( 1 .. 12 )
    %m month ( 01 .. 12 )
    %M minute ( 00 .. 59 )
    %n a newline character
    %p ``PM'' or ``AM''
    %P ``pm'' or ``am''
    %S second ( 00 .. 59 )
    %s number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC)
    %t a tab character
    %U, %W, %V the week number
    %u the day of the week ( 1 .. 7, 1 = MON )
    %w the day of the week ( 0 .. 6, 0 = SUN )
    %y year without the century ( 00 .. 99 )
    %Y year including the century ( ex. 1979 )
    %% a literal % character -

    -There are more algorithms for computing the week number. All -three specifiers currently implement the same one, as defined by ISO 8601: -``the week 01 is the week that has the Thursday in the current year, which is -equivalent to the week that contains the fourth day of January. Weeks start on -Monday.''

    -

    -

    - -

    5.3.6  Calendar.setTtDateFormat

    -

    -

    -Has the same prototype as Calendar.setDateFormat, but refers to the -format of the date displayed in the ``status bar'' when the mouse is over some -date.

    -

    -

    - -

    5.3.7  Calendar.setDisabledHandler

    -

    -

    -This function allows you to specify a callback function that checks if a -certain date must be disabled by the calendar. You are responsible to write -the callback function. Synopsis:

    -

    -

    -
    function disallowDate(date) {
    -  // date is a JS Date object
    -  if (  date.getFullYear() == 2003 &&
    -        date.getMonth()    == 6 /* July, it's zero-based */ &&
    -        date.getDate()     == 5  ) {
    -    return true; // disable July 5 2003
    -  }
    -  return false; // enable other dates
    -};
    -
    -calendar.setDisabledHandler(disallowDate);
    -

    -

    -If you change this function in ``real-time'', meaning, without creating a new -calendar, then you have to call calendar.refresh() to make it -redisplay the month and take into account the new disabledHandler. -Calendar.setup does this, so you have no such trouble with it.

    -

    -Note that disallowDate should be very fast, as it is called for each -date in the month. Thus, it gets called, say, 30 times before displaying the -calendar, and 30 times when the month is changed. Tests I've done so far show -that it's still good, but in the future I might switch it to a different design -(for instance, to call it once per month and to return an array of dates that -must be disabled).

    -

    -This function should be considered deprecated in the favor of -Calendar.setDateStatusHandler, described below.

    -

    -

    - -

    5.3.8  Calendar.setDateStatusHandler

    -

    -

    -This function obsoletes Calendar.setDisabledHandler. You call it with -a function parameter, but this function can return a boolean -or a string. If the return value is a boolean (true or -false) then it behaves just like setDisabledHandler, -therefore disabling the date if the return value is true.

    -

    -If the returned value is a string then the given date will gain an additional -CSS class, namely the returned value. You can use this to highlight some dates -in some way. Note that you are responsible for defining the CSS class that you -return. If you return the string ``disabled'' then that date will be disabled, -just as if you returned true.

    -

    -Here is a simple scenario that shows what you can do with this function. The -following should be present in some of your styles, or in the document head in -a STYLE tag (but put it after the place where the calendar styles were -loaded):

    -

    -

    -
    .special { background-color: #000; color: #fff; }
    -

    -

    -And you would use the following code before calling Calendar.create():

    -

    -

    -
    // this table holds your special days, so that we can automatize
    -// things a bit:
    -var SPECIAL_DAYS = {
    -    0 : [ 13, 24 ],             // special days in January
    -    2 : [ 1, 6, 8, 12, 18 ],    // special days in March
    -    8 : [ 21, 11 ],             // special days in September
    -   11 : [ 25, 28 ]              // special days in December
    -};
    -
    -// this function returns true if the passed date is special
    -function dateIsSpecial(year, month, day) {
    -    var m = SPECIAL_DAYS[month];
    -    if (!m) return false;
    -    for (var i in m) if (m[i] == day) return true;
    -    return false;
    -}
    -
    -// this is the actual date status handler.  Note that it receives the
    -// date object as well as separate values of year, month and date, for
    -// your confort.
    -function dateStatusHandler(date, y, m, d) {
    -    if (dateIsSpecial(y, m, d)) return ``special'';
    -    else return false;
    -    // return true above if you want to disable other dates
    -}
    -
    -// configure it to the calendar
    -calendar.setDateStatusHandler(dateStatusHandler);
    -

    -

    -The above code adds the ``special'' class name to some dates that are defined -in the SPECIAL_DAYS table. Other dates will simply be displayed as default, -enabled.

    -

    -

    - -

    5.3.9  Calendar.show

    -

    -

    -Call this function do show the calendar. It basically sets the CSS ``display'' -property to ``block''. It doesn't modify the calendar position.

    -

    -This function only makes sense when the calendar is in popup mode.

    -

    -

    - -

    5.3.10  Calendar.showAt

    -

    -

    -Call this to show the calendar at a certain (x, y) position. Prototype:

    -

    -

    -
    calendar.showAt(x, y);
    -

    -

    -The parameters are absolute coordinates relative to the top left -corner of the page, thus they are page coordinates not screen -coordinates.

    -

    -After setting the given coordinates it calls Calendar.show. This function only -makes sense when the calendar is in popup mode.

    -

    -

    - -

    5.3.11  Calendar.showAtElement

    -

    -

    -This function is useful if you want to display the calendar near some element. -You call it like this:

    -

    -

    -
    calendar.showAtElement(element, align);
    -

    -

    -where element is a reference to your element (for instance it can be the input -field that displays the date) and align is an optional parameter, of type string, -containing one or two characters. For instance, if you pass "Br" as -align, the calendar will appear below the element and with its right -margin continuing the element's right margin.

    -

    -As stated above, align may contain one or two characters. The first character -dictates the vertical alignment, relative to the element, and the second -character dictates the horizontal alignment. If the second character is -missing it will be assumed "l" (the left margin of the calendar will -be at the same horizontal position as the left margin of the element).

    -

    -The characters given for the align parameters are case sensitive. This -function only makes sense when the calendar is in popup mode. After computing -the position it uses Calendar.showAt to display the calendar there.

    -

    -

    - -

    Vertical alignment

    -

    The first character in ``align'' can take one of the following values:

    -

    -

    -

      -

      -
    • T -- completely above the reference element (bottom margin of -the calendar aligned to the top margin of the element).

      -

      -

      -
    • t -- above the element but may overlap it (bottom margin of the calendar aligned to -the bottom margin of the element).

      -

      -

      -
    • c -- the calendar displays vertically centered to the reference -element. It might overlap it (that depends on the horizontal alignment).

      -

      -

      -
    • b -- below the element but may overlap it (top margin of the calendar aligned to -the top margin of the element).

      -

      -

      -
    • B -- completely below the element (top margin of the calendar -aligned to the bottom margin of the element).

      -

      -

      -

    -

    -

    - -

    Horizontal alignment

    -

    The second character in ``align'' can take one of the following values:

    -

    -

    -

      -

      -
    • L -- completely to the left of the reference element (right -margin of the calendar aligned to the left margin of the element).

      -

      -

      -
    • l -- to the left of the element but may overlap it (left margin -of the calendar aligned to the left margin of the element).

      -

      -

      -
    • c -- horizontally centered to the element. Might overlap it, -depending on the vertical alignment.

      -

      -

      -
    • r -- to the right of the element but may overlap it (right -margin of the calendar aligned to the right margin of the element).

      -

      -

      -
    • R -- completely to the right of the element (left margin of the -calendar aligned to the right margin of the element).

      -

      -

      -

    -

    -

    - -

    Default values

    -

    If the ``align'' parameter is missing the calendar will choose -``Br''.

    -

    -

    - -

    5.3.12  Calendar.setDate

    -

    -

    -Receives a JavaScript Date object. Sets the given date in the -calendar. If the calendar is visible the new date is displayed immediately.

    -

    -

    -
    calendar.setDate(new Date()); // go today
    -

    -

    -

    - -

    5.3.13  Calendar.setFirstDayOfWeek

    -

    -

    -Changes the first day of week. The parameter has to be a numeric value ranging -from 0 to 6. Pass 0 for Sunday, 1 for Monday, ..., 6 for Saturday.

    -

    -

    -
    calendar.setFirstDayOfWeek(5); // start weeks on Friday
    -

    -

    -

    - -

    5.3.14  Calendar.parseDate

    -

    -

    -Use this function to parse a date given as string and to move the calendar to -that date.

    -

    -The algorithm tries to parse the date according to the format that was -previously set with Calendar.setDateFormat; if that fails, it still -tries to get some valid date out of it (it doesn't read your thoughts, though).

    -

    -

    -
    calendar.parseDate("2003/07/06");
    -

    -

    -

    - -

    5.3.15  Calendar.setRange

    -

    -

    -Sets the range of years that are allowed in the calendar. Synopsis:

    -

    -

    -
    calendar.setRange(1970, 2050);
    -

    -

    -

    - -

    6  Side effects

    -

    The calendar code was intentionally embedded in an object to make it have as -less as possible side effects. However, there are some -- not harmful, after -all. Here is a list of side effects; you can count they already happened after -calendar.js was loaded.

    -

    -

    -

      -

      -
    1. The global variable window.calendar will be set to null. This -variable is used by the calendar code, especially when doing drag & drop for -moving the calendar. In the future I might get rid of it, but for now it -didn't harm anyone.

      -

      -

      -
    2. The JavaScript Date object is modified. We add some properties -and functions that are very useful to our calendar. It made more sense to add -them directly to the Date object than to the calendar itself. -Complete list:

      -

      -

      -

        -

        -
      1. Date._MD = new Array(31,28,31,30,31,30,31,31,30,31,30,31); -

        -
      2. Date.SECOND = 1000 /* milliseconds */; -

        -
      3. Date.MINUTE = 60 * Date.SECOND; -

        -
      4. Date.HOUR = 60 * Date.MINUTE; -

        -
      5. Date.DAY = 24 * Date.HOUR; -

        -
      6. Date.WEEK = 7 * Date.DAY;

        -

        -

        -
      7. Date.prototype.getMonthDays(month) -- returns the number of days -of the given month, or of the current date object if no month was given.

        -

        -

        -
      8. Date.prototype.getWeekNumber() -- returns the week number of the -date in the current object.

        -

        -

        -
      9. Date.prototype.equalsTo(other_date) -- compare the current date -object with other_date and returns true if the dates are -equal. It ignores time.

        -

        -

        -
      10. Date.prototype.print(format) -- returns a string with the -current date object represented in the given format. It implements the format -specified in section 5.3.5.

        -

        -

        -

      -

      -

      -

    -

    -

    - -

    7  Credits

    -

    The following people either sponsored, donated money to the project or bought -commercial licenses (listed in reverse chronological order). Your name could -be here too! If you wish to sponsor the project (for instance request a -feature and pay me for implementing it) or donate some money please -please contact me at mihai_bazon@yahoo.com.

    -

    -

    -

    -

    -

    -
    - -Thank you!
    - -- mihai_bazon@yahoo.com -
    -

    -

    -

    -

    1 -by the term ``widget'' I understand a single element of user interface. -But that's in Linux world. For those that did lots of Windows -programming the term ``control'' might be more familiar -

    -

    2 people report that the calendar does -not work with IE5/Mac. However, this browser was discontinued and we -believe that supporting it doesn't worth the efforts, given the fact that -it has the worst, buggiest implementation for DOM I've ever seen.

    -

    3 under Opera 7 the calendar still lacks some functionality, such as -keyboard navigation; also Opera doesn't seem to allow disabling text -selection when one drags the mouse on the page; despite all that, the -calendar is still highly functional under Opera 7 and looks as good as -in other supported browsers.

    -

    4 user interface

    -
    -
    -Last modified: Saturday, March 5th, 2005
    -HTML conversion by TeX2page 2004-09-11
    -
    - - diff --git a/zioinfo/js/jscalendar-1.0/doc/reference.pdf b/zioinfo/js/jscalendar-1.0/doc/reference.pdf deleted file mode 100644 index a09497f5..00000000 Binary files a/zioinfo/js/jscalendar-1.0/doc/reference.pdf and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/img.gif b/zioinfo/js/jscalendar-1.0/img.gif deleted file mode 100644 index cd2c4a52..00000000 Binary files a/zioinfo/js/jscalendar-1.0/img.gif and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/index.html b/zioinfo/js/jscalendar-1.0/index.html deleted file mode 100644 index 10627ddf..00000000 --- a/zioinfo/js/jscalendar-1.0/index.html +++ /dev/null @@ -1,330 +0,0 @@ - - - - - - - -The Coolest DHTML Calendar - Online Demo - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    jscalendar-1.0 -"It is happening again"

    - -

    -

    -Theme:
    -Aqua -| -winter -| -blue -| -summer -| -green -
    -win2k-1 -| -win2k-2 -| -win2k-cold-1 -| -win2k-cold-2 -
    -system - -
    -Release notes. -
    -Set it up in minutes: - popup calendar, - flat calendar. -Other samples: - special days, - day info, - multiple dates selection -
    -Documentation: - HTML, - PDF. -
    -

    - -
    - -
    - - - - - - - - -
    - -
    -
    -Popup examples -
    - -
    - -Date #1: %Y-%m-%d [%W] %H:%M -- single -click
    - -Date #2: %a, %b %e, %Y [%I:%M %p] --- double click - -

    - - -this select should hide when the calendar is above it. -

    - -Date #3: %d/%m/%Y --- single click -
    - -Date #4: %A, %B %e, %Y -- -double click - -
    - -

    This is release 1.0. Works on MSIE/Win 5.0 or better (really), -Opera 7+, Mozilla, Firefox, Netscape 6.x, 7.0 and all other Gecko-s, -Konqueror and Safari.

    - -

    Keyboard navigation

    - -

    Starting with version 0.9.2, you can also use the keyboard to select -dates (only for popup calendars; does not work with Opera -7 or Konqueror/Safari). The following keys are available:

    - -
      - -
    • , , - , -- select date
    • -
    • CTRL + , - -- select month
    • -
    • CTRL + , - -- select year
    • -
    • SPACE -- go to today date
    • -
    • ENTER -- accept the currently selected date
    • -
    • ESC -- cancel selection
    • - -
    - -
    - -
    - Flat calendar -
    - -

    A non-popup version will appear below as soon - as the page is loaded. Note that it doesn't show the week number.

    - - -
    -
     
    - -

    - The example above uses the setDisabledHandler() member function - to setup a handler that would only enable days withing a range of 10 days, - forward or backward, from the current date. -

    - - - -
    - -
    dynarch.com 2002-2005
    -Author: Mihai -Bazon
    Distributed under the GNU LGPL.
    - -

    If you use this script on a public page we -would love it if you would let us -know.

    - - diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-af.js b/zioinfo/js/jscalendar-1.0/lang/calendar-af.js deleted file mode 100644 index aeda5819..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-af.js +++ /dev/null @@ -1,39 +0,0 @@ -// ** I18N Afrikaans -Calendar._DN = new Array -("Sondag", - "Maandag", - "Dinsdag", - "Woensdag", - "Donderdag", - "Vrydag", - "Saterdag", - "Sondag"); -Calendar._MN = new Array -("Januarie", - "Februarie", - "Maart", - "April", - "Mei", - "Junie", - "Julie", - "Augustus", - "September", - "Oktober", - "November", - "Desember"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["TOGGLE"] = "Verander eerste dag van die week"; -Calendar._TT["PREV_YEAR"] = "Vorige jaar (hou vir keuselys)"; -Calendar._TT["PREV_MONTH"] = "Vorige maand (hou vir keuselys)"; -Calendar._TT["GO_TODAY"] = "Gaan na vandag"; -Calendar._TT["NEXT_MONTH"] = "Volgende maand (hou vir keuselys)"; -Calendar._TT["NEXT_YEAR"] = "Volgende jaar (hou vir keuselys)"; -Calendar._TT["SEL_DATE"] = "Kies datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Sleep om te skuif"; -Calendar._TT["PART_TODAY"] = " (vandag)"; -Calendar._TT["MON_FIRST"] = "Vertoon Maandag eerste"; -Calendar._TT["SUN_FIRST"] = "Display Sunday first"; -Calendar._TT["CLOSE"] = "Close"; -Calendar._TT["TODAY"] = "Today"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-al.js b/zioinfo/js/jscalendar-1.0/lang/calendar-al.js deleted file mode 100644 index 4f701cf7..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-al.js +++ /dev/null @@ -1,101 +0,0 @@ -// Calendar ALBANIAN language -//author Rigels Gordani rige@hotmail.com - -// ditet -Calendar._DN = new Array -("E Diele", -"E Hene", -"E Marte", -"E Merkure", -"E Enjte", -"E Premte", -"E Shtune", -"E Diele"); - -//ditet shkurt -Calendar._SDN = new Array -("Die", -"Hen", -"Mar", -"Mer", -"Enj", -"Pre", -"Sht", -"Die"); - -// muajt -Calendar._MN = new Array -("Janar", -"Shkurt", -"Mars", -"Prill", -"Maj", -"Qeshor", -"Korrik", -"Gusht", -"Shtator", -"Tetor", -"Nentor", -"Dhjetor"); - -// muajte shkurt -Calendar._SMN = new Array -("Jan", -"Shk", -"Mar", -"Pri", -"Maj", -"Qes", -"Kor", -"Gus", -"Sht", -"Tet", -"Nen", -"Dhj"); - -// ndihmesa -Calendar._TT = {}; -Calendar._TT["INFO"] = "Per kalendarin"; - -Calendar._TT["ABOUT"] = -"Zgjedhes i ores/dates ne DHTML \n" + -"\n\n" +"Zgjedhja e Dates:\n" + -"- Perdor butonat \xab, \xbb per te zgjedhur vitin\n" + -"- Perdor butonat" + String.fromCharCode(0x2039) + ", " + -String.fromCharCode(0x203a) + -" per te zgjedhur muajin\n" + -"- Mbani shtypur butonin e mousit per nje zgjedje me te shpejte."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Zgjedhja e kohes:\n" + -"- Kliko tek ndonje nga pjeset e ores per ta rritur ate\n" + -"- ose kliko me Shift per ta zvogeluar ate\n" + -"- ose cliko dhe terhiq per zgjedhje me te shpejte."; - -Calendar._TT["PREV_YEAR"] = "Viti i shkuar (prit per menune)"; -Calendar._TT["PREV_MONTH"] = "Muaji i shkuar (prit per menune)"; -Calendar._TT["GO_TODAY"] = "Sot"; -Calendar._TT["NEXT_MONTH"] = "Muaji i ardhshem (prit per menune)"; -Calendar._TT["NEXT_YEAR"] = "Viti i ardhshem (prit per menune)"; -Calendar._TT["SEL_DATE"] = "Zgjidh daten"; -Calendar._TT["DRAG_TO_MOVE"] = "Terhiqe per te levizur"; -Calendar._TT["PART_TODAY"] = " (sot)"; - -// "%s" eshte dita e pare e javes -// %s do te zevendesohet me emrin e dite -Calendar._TT["DAY_FIRST"] = "Trego te %s te paren"; - - -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Mbyll"; -Calendar._TT["TODAY"] = "Sot"; -Calendar._TT["TIME_PART"] = "Kliko me (Shift-)ose terhiqe per te ndryshuar -vleren"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "Java"; -Calendar._TT["TIME"] = "Koha:"; - diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-bg.js b/zioinfo/js/jscalendar-1.0/lang/calendar-bg.js deleted file mode 100644 index 4f4fd863..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-bg.js +++ /dev/null @@ -1,124 +0,0 @@ -// ** I18N - -// Calendar BG language -// Author: Mihai Bazon, -// Translator: Valentin Sheiretsky, -// Encoding: Windows-1251 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("", - "", - "", - "", - "", - "", - "", - ""); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("", - "", - "", - "", - "", - "", - "", - ""); - -// full month names -Calendar._MN = new Array -("", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - ""); - -// short month names -Calendar._SMN = new Array -("", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - ""); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = " "; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Date selection:\n" + -"- Use the \xab, \xbb buttons to select year\n" + -"- Use the " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " buttons to select month\n" + -"- Hold mouse button on any of the above buttons for faster selection."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Time selection:\n" + -"- Click on any of the time parts to increase it\n" + -"- or Shift-click to decrease it\n" + -"- or click and drag for faster selection."; - -Calendar._TT["PREV_YEAR"] = " ( )"; -Calendar._TT["PREV_MONTH"] = " ( )"; -Calendar._TT["GO_TODAY"] = " "; -Calendar._TT["NEXT_MONTH"] = " ( )"; -Calendar._TT["NEXT_YEAR"] = " ( )"; -Calendar._TT["SEL_DATE"] = " "; -Calendar._TT["DRAG_TO_MOVE"] = ""; -Calendar._TT["PART_TODAY"] = " ()"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "%s "; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = ""; -Calendar._TT["TODAY"] = ""; -Calendar._TT["TIME_PART"] = "(Shift-)Click drag "; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%A - %e %B %Y"; - -Calendar._TT["WK"] = ""; -Calendar._TT["TIME"] = ":"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-big5-utf8.js b/zioinfo/js/jscalendar-1.0/lang/calendar-big5-utf8.js deleted file mode 100644 index 14e0d5dd..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-big5-utf8.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar big5-utf8 language -// Author: Gary Fu, -// Encoding: utf8 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("星期日", - "星期一", - "星期二", - "星期三", - "星期四", - "星期五", - "星期六", - "星期日"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("日", - "一", - "二", - "三", - "四", - "五", - "六", - "日"); - -// full month names -Calendar._MN = new Array -("一月", - "二月", - "三月", - "四月", - "五月", - "六月", - "七月", - "八月", - "九月", - "十月", - "十一月", - "十二月"); - -// short month names -Calendar._SMN = new Array -("一月", - "二月", - "三月", - "四月", - "五月", - "六月", - "七月", - "八月", - "九月", - "十月", - "十一月", - "十二月"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "關於"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"日期選擇方法:\n" + -"- 使用 \xab, \xbb 按鈕可選擇年份\n" + -"- 使用 " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " 按鈕可選擇月份\n" + -"- 按住上面的按鈕可以加快選取"; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"時間選擇方法:\n" + -"- 點擊任何的時間部份可增加其值\n" + -"- 同時按Shift鍵再點擊可減少其值\n" + -"- 點擊並拖曳可加快改變的值"; - -Calendar._TT["PREV_YEAR"] = "上一年 (按住選單)"; -Calendar._TT["PREV_MONTH"] = "下一年 (按住選單)"; -Calendar._TT["GO_TODAY"] = "到今日"; -Calendar._TT["NEXT_MONTH"] = "上一月 (按住選單)"; -Calendar._TT["NEXT_YEAR"] = "下一月 (按住選單)"; -Calendar._TT["SEL_DATE"] = "選擇日期"; -Calendar._TT["DRAG_TO_MOVE"] = "拖曳"; -Calendar._TT["PART_TODAY"] = " (今日)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "將 %s 顯示在前"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "關閉"; -Calendar._TT["TODAY"] = "今日"; -Calendar._TT["TIME_PART"] = "點擊or拖曳可改變時間(同時按Shift為減)"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "週"; -Calendar._TT["TIME"] = "Time:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-big5.js b/zioinfo/js/jscalendar-1.0/lang/calendar-big5.js deleted file mode 100644 index a5893587..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-big5.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar big5 language -// Author: Gary Fu, -// Encoding: big5 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("P", - "P@", - "PG", - "PT", - "P|", - "P", - "P", - "P"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("", - "@", - "G", - "T", - "|", - "", - "", - ""); - -// full month names -Calendar._MN = new Array -("@", - "G", - "T", - "|", - "", - "", - "C", - "K", - "E", - "Q", - "Q@", - "QG"); - -// short month names -Calendar._SMN = new Array -("@", - "G", - "T", - "|", - "", - "", - "C", - "K", - "E", - "Q", - "Q@", - "QG"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = ""; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"ܤk:\n" + -"- ϥ \xab, \xbb siܦ~\n" + -"- ϥ " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " siܤ\n" + -"- WsiH[ֿ"; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"ɶܤk:\n" + -"- I󪺮ɶiW[\n" + -"- PɫShiftAIi֨\n" + -"- Ié즲i[֧ܪ"; - -Calendar._TT["PREV_YEAR"] = "W@~ ()"; -Calendar._TT["PREV_MONTH"] = "U@~ ()"; -Calendar._TT["GO_TODAY"] = "줵"; -Calendar._TT["NEXT_MONTH"] = "W@ ()"; -Calendar._TT["NEXT_YEAR"] = "U@ ()"; -Calendar._TT["SEL_DATE"] = "ܤ"; -Calendar._TT["DRAG_TO_MOVE"] = "즲"; -Calendar._TT["PART_TODAY"] = " ()"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "N %s ܦbe"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = ""; -Calendar._TT["TODAY"] = ""; -Calendar._TT["TIME_PART"] = "Ior즲iܮɶ(PɫShift)"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "g"; -Calendar._TT["TIME"] = "Time:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-br.js b/zioinfo/js/jscalendar-1.0/lang/calendar-br.js deleted file mode 100644 index bfb07471..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-br.js +++ /dev/null @@ -1,108 +0,0 @@ -// ** I18N - -// Calendar pt-BR language -// Author: Fernando Dourado, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Domingo", - "Segunda", - "Terça", - "Quarta", - "Quinta", - "Sexta", - "Sabádo", - "Domingo"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -// [No changes using default values] - -// full month names -Calendar._MN = new Array -("Janeiro", - "Fevereiro", - "Março", - "Abril", - "Maio", - "Junho", - "Julho", - "Agosto", - "Setembro", - "Outubro", - "Novembro", - "Dezembro"); - -// short month names -// [No changes using default values] - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Sobre o calendário"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Translate to portuguese Brazil (pt-BR) by Fernando Dourado (fernando.dourado@ig.com.br)\n" + -"Tradução para o português Brasil (pt-BR) por Fernando Dourado (fernando.dourado@ig.com.br)" + -"\n\n" + -"Selecionar data:\n" + -"- Use as teclas \xab, \xbb para selecionar o ano\n" + -"- Use as teclas " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " para selecionar o mês\n" + -"- Clique e segure com o mouse em qualquer botão para selecionar rapidamente."; - -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Selecionar hora:\n" + -"- Clique em qualquer uma das partes da hora para aumentar\n" + -"- ou Shift-clique para diminuir\n" + -"- ou clique e arraste para selecionar rapidamente."; - -Calendar._TT["PREV_YEAR"] = "Ano anterior (clique e segure para menu)"; -Calendar._TT["PREV_MONTH"] = "Mês anterior (clique e segure para menu)"; -Calendar._TT["GO_TODAY"] = "Ir para a data atual"; -Calendar._TT["NEXT_MONTH"] = "Próximo mês (clique e segure para menu)"; -Calendar._TT["NEXT_YEAR"] = "Próximo ano (clique e segure para menu)"; -Calendar._TT["SEL_DATE"] = "Selecione uma data"; -Calendar._TT["DRAG_TO_MOVE"] = "Clique e segure para mover"; -Calendar._TT["PART_TODAY"] = " (hoje)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Exibir %s primeiro"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Fechar"; -Calendar._TT["TODAY"] = "Hoje"; -Calendar._TT["TIME_PART"] = "(Shift-)Clique ou arraste para mudar o valor"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d/%m/%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%d de %B de %Y"; - -Calendar._TT["WK"] = "sem"; -Calendar._TT["TIME"] = "Hora:"; - diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-ca.js b/zioinfo/js/jscalendar-1.0/lang/calendar-ca.js deleted file mode 100644 index a2121bcb..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-ca.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar CA language -// Author: Mihai Bazon, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Diumenge", - "Dilluns", - "Dimarts", - "Dimecres", - "Dijous", - "Divendres", - "Dissabte", - "Diumenge"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Diu", - "Dil", - "Dmt", - "Dmc", - "Dij", - "Div", - "Dis", - "Diu"); - -// full month names -Calendar._MN = new Array -("Gener", - "Febrer", - "Mar", - "Abril", - "Maig", - "Juny", - "Juliol", - "Agost", - "Setembre", - "Octubre", - "Novembre", - "Desembre"); - -// short month names -Calendar._SMN = new Array -("Gen", - "Feb", - "Mar", - "Abr", - "Mai", - "Jun", - "Jul", - "Ago", - "Set", - "Oct", - "Nov", - "Des"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Sobre el calendari"; - -Calendar._TT["ABOUT"] = -"DHTML Selector de Data/Hora\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Sel.lecci de Dates:\n" + -"- Fes servir els botons \xab, \xbb per sel.leccionar l'any\n" + -"- Fes servir els botons " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " per se.lecciconar el mes\n" + -"- Mant el ratol apretat en qualsevol dels anteriors per sel.lecci rpida."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Time selection:\n" + -"- claca en qualsevol de les parts de la hora per augmentar-les\n" + -"- o Shift-click per decrementar-la\n" + -"- or click and arrastra per sel.lecci rpida."; - -Calendar._TT["PREV_YEAR"] = "Any anterior (Mantenir per menu)"; -Calendar._TT["PREV_MONTH"] = "Mes anterior (Mantenir per menu)"; -Calendar._TT["GO_TODAY"] = "Anar a avui"; -Calendar._TT["NEXT_MONTH"] = "Mes segent (Mantenir per menu)"; -Calendar._TT["NEXT_YEAR"] = "Any segent (Mantenir per menu)"; -Calendar._TT["SEL_DATE"] = "Sel.leccionar data"; -Calendar._TT["DRAG_TO_MOVE"] = "Arrastrar per moure"; -Calendar._TT["PART_TODAY"] = " (avui)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Mostra %s primer"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Tanca"; -Calendar._TT["TODAY"] = "Avui"; -Calendar._TT["TIME_PART"] = "(Shift-)Click a arrastra per canviar el valor"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "st"; -Calendar._TT["TIME"] = "Hora:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-cs-utf8.js b/zioinfo/js/jscalendar-1.0/lang/calendar-cs-utf8.js deleted file mode 100644 index f6bbbeba..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-cs-utf8.js +++ /dev/null @@ -1,65 +0,0 @@ -/* - calendar-cs-win.js - language: Czech - encoding: windows-1250 - author: Lubos Jerabek (xnet@seznam.cz) - Jan Uhlir (espinosa@centrum.cz) -*/ - -// ** I18N -Calendar._DN = new Array('Neděle','Pondělí','Úterý','Středa','Čtvrtek','Pátek','Sobota','Neděle'); -Calendar._SDN = new Array('Ne','Po','Út','St','Čt','Pá','So','Ne'); -Calendar._MN = new Array('Leden','Únor','Březen','Duben','Květen','Červen','Červenec','Srpen','Září','Říjen','Listopad','Prosinec'); -Calendar._SMN = new Array('Led','Úno','Bře','Dub','Kvě','Črv','Čvc','Srp','Zář','Říj','Lis','Pro'); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "O komponentě kalendář"; -Calendar._TT["TOGGLE"] = "Změna prvního dne v týdnu"; -Calendar._TT["PREV_YEAR"] = "Předchozí rok (přidrž pro menu)"; -Calendar._TT["PREV_MONTH"] = "Předchozí měsíc (přidrž pro menu)"; -Calendar._TT["GO_TODAY"] = "Dnešní datum"; -Calendar._TT["NEXT_MONTH"] = "Další měsíc (přidrž pro menu)"; -Calendar._TT["NEXT_YEAR"] = "Další rok (přidrž pro menu)"; -Calendar._TT["SEL_DATE"] = "Vyber datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Chyť a táhni, pro přesun"; -Calendar._TT["PART_TODAY"] = " (dnes)"; -Calendar._TT["MON_FIRST"] = "Ukaž jako první Pondělí"; -//Calendar._TT["SUN_FIRST"] = "Ukaž jako první Neděli"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Výběr datumu:\n" + -"- Use the \xab, \xbb buttons to select year\n" + -"- Použijte tlačítka " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " k výběru měsíce\n" + -"- Podržte tlačítko myši na jakémkoliv z těch tlačítek pro rychlejší výběr."; - -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Výběr času:\n" + -"- Klikněte na jakoukoliv z částí výběru času pro zvýšení.\n" + -"- nebo Shift-click pro snížení\n" + -"- nebo klikněte a táhněte pro rychlejší výběr."; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Zobraz %s první"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Zavřít"; -Calendar._TT["TODAY"] = "Dnes"; -Calendar._TT["TIME_PART"] = "(Shift-)Klikni nebo táhni pro změnu hodnoty"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "d.m.yy"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "Čas:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-cs-win.js b/zioinfo/js/jscalendar-1.0/lang/calendar-cs-win.js deleted file mode 100644 index 140dff31..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-cs-win.js +++ /dev/null @@ -1,65 +0,0 @@ -/* - calendar-cs-win.js - language: Czech - encoding: windows-1250 - author: Lubos Jerabek (xnet@seznam.cz) - Jan Uhlir (espinosa@centrum.cz) -*/ - -// ** I18N -Calendar._DN = new Array('Nedle','Pondl','ter','Steda','tvrtek','Ptek','Sobota','Nedle'); -Calendar._SDN = new Array('Ne','Po','t','St','t','P','So','Ne'); -Calendar._MN = new Array('Leden','nor','Bezen','Duben','Kvten','erven','ervenec','Srpen','Z','jen','Listopad','Prosinec'); -Calendar._SMN = new Array('Led','no','Be','Dub','Kv','rv','vc','Srp','Z','j','Lis','Pro'); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "O komponent kalend"; -Calendar._TT["TOGGLE"] = "Zmna prvnho dne v tdnu"; -Calendar._TT["PREV_YEAR"] = "Pedchoz rok (pidr pro menu)"; -Calendar._TT["PREV_MONTH"] = "Pedchoz msc (pidr pro menu)"; -Calendar._TT["GO_TODAY"] = "Dnen datum"; -Calendar._TT["NEXT_MONTH"] = "Dal msc (pidr pro menu)"; -Calendar._TT["NEXT_YEAR"] = "Dal rok (pidr pro menu)"; -Calendar._TT["SEL_DATE"] = "Vyber datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Chy a thni, pro pesun"; -Calendar._TT["PART_TODAY"] = " (dnes)"; -Calendar._TT["MON_FIRST"] = "Uka jako prvn Pondl"; -//Calendar._TT["SUN_FIRST"] = "Uka jako prvn Nedli"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Vbr datumu:\n" + -"- Use the \xab, \xbb buttons to select year\n" + -"- Pouijte tlatka " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " k vbru msce\n" + -"- Podrte tlatko myi na jakmkoliv z tch tlatek pro rychlej vbr."; - -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Vbr asu:\n" + -"- Kliknte na jakoukoliv z st vbru asu pro zven.\n" + -"- nebo Shift-click pro snen\n" + -"- nebo kliknte a thnte pro rychlej vbr."; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Zobraz %s prvn"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Zavt"; -Calendar._TT["TODAY"] = "Dnes"; -Calendar._TT["TIME_PART"] = "(Shift-)Klikni nebo thni pro zmnu hodnoty"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "d.m.yy"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "as:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-da.js b/zioinfo/js/jscalendar-1.0/lang/calendar-da.js deleted file mode 100644 index a99b598f..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-da.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar DA language -// Author: Michael Thingmand Henriksen, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Søndag", -"Mandag", -"Tirsdag", -"Onsdag", -"Torsdag", -"Fredag", -"Lørdag", -"Søndag"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Søn", -"Man", -"Tir", -"Ons", -"Tor", -"Fre", -"Lør", -"Søn"); - -// full month names -Calendar._MN = new Array -("Januar", -"Februar", -"Marts", -"April", -"Maj", -"Juni", -"Juli", -"August", -"September", -"Oktober", -"November", -"December"); - -// short month names -Calendar._SMN = new Array -("Jan", -"Feb", -"Mar", -"Apr", -"Maj", -"Jun", -"Jul", -"Aug", -"Sep", -"Okt", -"Nov", -"Dec"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Om Kalenderen"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For den seneste version besøg: http://www.dynarch.com/projects/calendar/\n"; + -"Distribueret under GNU LGPL. Se http://gnu.org/licenses/lgpl.html for detajler." + -"\n\n" + -"Valg af dato:\n" + -"- Brug \xab, \xbb knapperne for at vælge år\n" + -"- Brug " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " knapperne for at vælge måned\n" + -"- Hold knappen på musen nede på knapperne ovenfor for hurtigere valg."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Valg af tid:\n" + -"- Klik på en vilkårlig del for større værdi\n" + -"- eller Shift-klik for for mindre værdi\n" + -"- eller klik og træk for hurtigere valg."; - -Calendar._TT["PREV_YEAR"] = "Ét år tilbage (hold for menu)"; -Calendar._TT["PREV_MONTH"] = "Én måned tilbage (hold for menu)"; -Calendar._TT["GO_TODAY"] = "Gå til i dag"; -Calendar._TT["NEXT_MONTH"] = "Én måned frem (hold for menu)"; -Calendar._TT["NEXT_YEAR"] = "Ét år frem (hold for menu)"; -Calendar._TT["SEL_DATE"] = "Vælg dag"; -Calendar._TT["DRAG_TO_MOVE"] = "Træk vinduet"; -Calendar._TT["PART_TODAY"] = " (i dag)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Vis %s først"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Luk"; -Calendar._TT["TODAY"] = "I dag"; -Calendar._TT["TIME_PART"] = "(Shift-)klik eller træk for at ændre værdi"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d-%m-%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "Uge"; -Calendar._TT["TIME"] = "Tid:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-de.js b/zioinfo/js/jscalendar-1.0/lang/calendar-de.js deleted file mode 100644 index 4bc1137c..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-de.js +++ /dev/null @@ -1,124 +0,0 @@ -// ** I18N - -// Calendar DE language -// Author: Jack (tR), -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag", - "Sonntag"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("So", - "Mo", - "Di", - "Mi", - "Do", - "Fr", - "Sa", - "So"); - -// full month names -Calendar._MN = new Array -("Januar", - "Februar", - "M\u00e4rz", - "April", - "Mai", - "Juni", - "Juli", - "August", - "September", - "Oktober", - "November", - "Dezember"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Feb", - "M\u00e4r", - "Apr", - "May", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Dez"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "\u00DCber dieses Kalendarmodul"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Datum ausw\u00e4hlen:\n" + -"- Benutzen Sie die \xab, \xbb Buttons um das Jahr zu w\u00e4hlen\n" + -"- Benutzen Sie die " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " Buttons um den Monat zu w\u00e4hlen\n" + -"- F\u00fcr eine Schnellauswahl halten Sie die Maustaste \u00fcber diesen Buttons fest."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Zeit ausw\u00e4hlen:\n" + -"- Klicken Sie auf die Teile der Uhrzeit, um diese zu erh\u00F6hen\n" + -"- oder klicken Sie mit festgehaltener Shift-Taste um diese zu verringern\n" + -"- oder klicken und festhalten f\u00fcr Schnellauswahl."; - -Calendar._TT["TOGGLE"] = "Ersten Tag der Woche w\u00e4hlen"; -Calendar._TT["PREV_YEAR"] = "Voriges Jahr (Festhalten f\u00fcr Schnellauswahl)"; -Calendar._TT["PREV_MONTH"] = "Voriger Monat (Festhalten f\u00fcr Schnellauswahl)"; -Calendar._TT["GO_TODAY"] = "Heute ausw\u00e4hlen"; -Calendar._TT["NEXT_MONTH"] = "N\u00e4chst. Monat (Festhalten f\u00fcr Schnellauswahl)"; -Calendar._TT["NEXT_YEAR"] = "N\u00e4chst. Jahr (Festhalten f\u00fcr Schnellauswahl)"; -Calendar._TT["SEL_DATE"] = "Datum ausw\u00e4hlen"; -Calendar._TT["DRAG_TO_MOVE"] = "Zum Bewegen festhalten"; -Calendar._TT["PART_TODAY"] = " (Heute)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Woche beginnt mit %s "; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Schlie\u00dfen"; -Calendar._TT["TODAY"] = "Heute"; -Calendar._TT["TIME_PART"] = "(Shift-)Klick oder Festhalten und Ziehen um den Wert zu \u00e4ndern"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d.%m.%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "Zeit:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-du.js b/zioinfo/js/jscalendar-1.0/lang/calendar-du.js deleted file mode 100644 index 22004480..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-du.js +++ /dev/null @@ -1,45 +0,0 @@ -// ** I18N -Calendar._DN = new Array -("Zondag", - "Maandag", - "Dinsdag", - "Woensdag", - "Donderdag", - "Vrijdag", - "Zaterdag", - "Zondag"); -Calendar._MN = new Array -("Januari", - "Februari", - "Maart", - "April", - "Mei", - "Juni", - "Juli", - "Augustus", - "September", - "Oktober", - "November", - "December"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["TOGGLE"] = "Toggle startdag van de week"; -Calendar._TT["PREV_YEAR"] = "Vorig jaar (indrukken voor menu)"; -Calendar._TT["PREV_MONTH"] = "Vorige month (indrukken voor menu)"; -Calendar._TT["GO_TODAY"] = "Naar Vandaag"; -Calendar._TT["NEXT_MONTH"] = "Volgende Maand (indrukken voor menu)"; -Calendar._TT["NEXT_YEAR"] = "Volgend jaar (indrukken voor menu)"; -Calendar._TT["SEL_DATE"] = "Selecteer datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Sleep om te verplaatsen"; -Calendar._TT["PART_TODAY"] = " (vandaag)"; -Calendar._TT["MON_FIRST"] = "Toon Maandag eerst"; -Calendar._TT["SUN_FIRST"] = "Toon Zondag eerst"; -Calendar._TT["CLOSE"] = "Sluiten"; -Calendar._TT["TODAY"] = "Vandaag"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "y-mm-dd"; -Calendar._TT["TT_DATE_FORMAT"] = "D, M d"; - -Calendar._TT["WK"] = "wk"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-el.js b/zioinfo/js/jscalendar-1.0/lang/calendar-el.js deleted file mode 100644 index fee5575e..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-el.js +++ /dev/null @@ -1,89 +0,0 @@ -// ** I18N -Calendar._DN = new Array -("Κυριακή", - "Δευτέρα", - "Τρίτη", - "Τετάρτη", - "Πέμπτη", - "Παρασκευή", - "Σάββατο", - "Κυριακή"); - -Calendar._SDN = new Array -("Κυ", - "Δε", - "Tρ", - "Τε", - "Πε", - "Πα", - "Σα", - "Κυ"); - -Calendar._MN = new Array -("Ιανουάριος", - "Φεβρουάριος", - "Μάρτιος", - "Απρίλιος", - "Μάϊος", - "Ιούνιος", - "Ιούλιος", - "Αύγουστος", - "Σεπτέμβριος", - "Οκτώβριος", - "Νοέμβριος", - "Δεκέμβριος"); - -Calendar._SMN = new Array -("Ιαν", - "Φεβ", - "Μαρ", - "Απρ", - "Μαι", - "Ιουν", - "Ιουλ", - "Αυγ", - "Σεπ", - "Οκτ", - "Νοε", - "Δεκ"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Για το ημερολόγιο"; - -Calendar._TT["ABOUT"] = -"Επιλογέας ημερομηνίας/ώρας σε DHTML\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Για τελευταία έκδοση: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Επιλογή ημερομηνίας:\n" + -"- Χρησιμοποιείστε τα κουμπιά \xab, \xbb για επιλογή έτους\n" + -"- Χρησιμοποιείστε τα κουμπιά " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " για επιλογή μήνα\n" + -"- Κρατήστε κουμπί ποντικού πατημένο στα παραπάνω κουμπιά για πιο γρήγορη επιλογή."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Επιλογή ώρας:\n" + -"- Κάντε κλικ σε ένα από τα μέρη της ώρας για αύξηση\n" + -"- ή Shift-κλικ για μείωση\n" + -"- ή κλικ και μετακίνηση για πιο γρήγορη επιλογή."; -Calendar._TT["TOGGLE"] = "Μπάρα πρώτης ημέρας της εβδομάδας"; -Calendar._TT["PREV_YEAR"] = "Προηγ. έτος (κρατήστε για το μενού)"; -Calendar._TT["PREV_MONTH"] = "Προηγ. μήνας (κρατήστε για το μενού)"; -Calendar._TT["GO_TODAY"] = "Σήμερα"; -Calendar._TT["NEXT_MONTH"] = "Επόμενος μήνας (κρατήστε για το μενού)"; -Calendar._TT["NEXT_YEAR"] = "Επόμενο έτος (κρατήστε για το μενού)"; -Calendar._TT["SEL_DATE"] = "Επιλέξτε ημερομηνία"; -Calendar._TT["DRAG_TO_MOVE"] = "Σύρτε για να μετακινήσετε"; -Calendar._TT["PART_TODAY"] = " (σήμερα)"; -Calendar._TT["MON_FIRST"] = "Εμφάνιση Δευτέρας πρώτα"; -Calendar._TT["SUN_FIRST"] = "Εμφάνιση Κυριακής πρώτα"; -Calendar._TT["CLOSE"] = "Κλείσιμο"; -Calendar._TT["TODAY"] = "Σήμερα"; -Calendar._TT["TIME_PART"] = "(Shift-)κλικ ή μετακίνηση για αλλαγή"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "dd-mm-y"; -Calendar._TT["TT_DATE_FORMAT"] = "D, d M"; - -Calendar._TT["WK"] = "εβδ"; - diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-en.js b/zioinfo/js/jscalendar-1.0/lang/calendar-en.js deleted file mode 100644 index 0dbde793..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-en.js +++ /dev/null @@ -1,127 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Mihai Bazon, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat", - "Sun"); - -// First day of the week. "0" means display Sunday first, "1" means display -// Monday first, etc. -Calendar._FD = 0; - -// full month names -Calendar._MN = new Array -("January", - "February", - "March", - "April", - "May", - "June", - "July", - "August", - "September", - "October", - "November", - "December"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Feb", - "Mar", - "Apr", - "May", - "Jun", - "Jul", - "Aug", - "Sep", - "Oct", - "Nov", - "Dec"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "About the calendar"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Date selection:\n" + -"- Use the \xab, \xbb buttons to select year\n" + -"- Use the " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " buttons to select month\n" + -"- Hold mouse button on any of the above buttons for faster selection."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Time selection:\n" + -"- Click on any of the time parts to increase it\n" + -"- or Shift-click to decrease it\n" + -"- or click and drag for faster selection."; - -Calendar._TT["PREV_YEAR"] = "Prev. year (hold for menu)"; -Calendar._TT["PREV_MONTH"] = "Prev. month (hold for menu)"; -Calendar._TT["GO_TODAY"] = "Go Today"; -Calendar._TT["NEXT_MONTH"] = "Next month (hold for menu)"; -Calendar._TT["NEXT_YEAR"] = "Next year (hold for menu)"; -Calendar._TT["SEL_DATE"] = "Select date"; -Calendar._TT["DRAG_TO_MOVE"] = "Drag to move"; -Calendar._TT["PART_TODAY"] = " (today)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Display %s first"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Close"; -Calendar._TT["TODAY"] = "Today"; -Calendar._TT["TIME_PART"] = "(Shift-)Click or drag to change value"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "Time:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-es.js b/zioinfo/js/jscalendar-1.0/lang/calendar-es.js deleted file mode 100644 index 19c1b30b..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-es.js +++ /dev/null @@ -1,129 +0,0 @@ -// ** I18N - -// Calendar ES (spanish) language -// Author: Mihai Bazon, -// Updater: Servilio Afre Puentes -// Updated: 2004-06-03 -// Encoding: utf-8 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Domingo", - "Lunes", - "Martes", - "Mircoles", - "Jueves", - "Viernes", - "Sbado", - "Domingo"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Dom", - "Lun", - "Mar", - "Mi", - "Jue", - "Vie", - "Sb", - "Dom"); - -// First day of the week. "0" means display Sunday first, "1" means display -// Monday first, etc. -Calendar._FD = 1; - -// full month names -Calendar._MN = new Array -("Enero", - "Febrero", - "Marzo", - "Abril", - "Mayo", - "Junio", - "Julio", - "Agosto", - "Septiembre", - "Octubre", - "Noviembre", - "Diciembre"); - -// short month names -Calendar._SMN = new Array -("Ene", - "Feb", - "Mar", - "Abr", - "May", - "Jun", - "Jul", - "Ago", - "Sep", - "Oct", - "Nov", - "Dic"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Acerca del calendario"; - -Calendar._TT["ABOUT"] = -"Selector DHTML de Fecha/Hora\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Para conseguir la ltima versin visite: http://www.dynarch.com/projects/calendar/\n" + -"Distribuido bajo licencia GNU LGPL. Visite http://gnu.org/licenses/lgpl.html para ms detalles." + -"\n\n" + -"Seleccin de fecha:\n" + -"- Use los botones \xab, \xbb para seleccionar el ao\n" + -"- Use los botones " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " para seleccionar el mes\n" + -"- Mantenga pulsado el ratn en cualquiera de estos botones para una seleccin rpida."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Seleccin de hora:\n" + -"- Pulse en cualquiera de las partes de la hora para incrementarla\n" + -"- o pulse las maysculas mientras hace clic para decrementarla\n" + -"- o haga clic y arrastre el ratn para una seleccin ms rpida."; - -Calendar._TT["PREV_YEAR"] = "Ao anterior (mantener para men)"; -Calendar._TT["PREV_MONTH"] = "Mes anterior (mantener para men)"; -Calendar._TT["GO_TODAY"] = "Ir a hoy"; -Calendar._TT["NEXT_MONTH"] = "Mes siguiente (mantener para men)"; -Calendar._TT["NEXT_YEAR"] = "Ao siguiente (mantener para men)"; -Calendar._TT["SEL_DATE"] = "Seleccionar fecha"; -Calendar._TT["DRAG_TO_MOVE"] = "Arrastrar para mover"; -Calendar._TT["PART_TODAY"] = " (hoy)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Hacer %s primer da de la semana"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Cerrar"; -Calendar._TT["TODAY"] = "Hoy"; -Calendar._TT["TIME_PART"] = "(Mayscula-)Clic o arrastre para cambiar valor"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d/%m/%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%A, %e de %B de %Y"; - -Calendar._TT["WK"] = "sem"; -Calendar._TT["TIME"] = "Hora:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-fi.js b/zioinfo/js/jscalendar-1.0/lang/calendar-fi.js deleted file mode 100644 index 328eabb3..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-fi.js +++ /dev/null @@ -1,98 +0,0 @@ -// ** I18N - -// Calendar FI language (Finnish, Suomi) -// Author: Jarno Käyhkö, -// Encoding: UTF-8 -// Distributed under the same terms as the calendar itself. - -// full day names -Calendar._DN = new Array -("Sunnuntai", - "Maanantai", - "Tiistai", - "Keskiviikko", - "Torstai", - "Perjantai", - "Lauantai", - "Sunnuntai"); - -// short day names -Calendar._SDN = new Array -("Su", - "Ma", - "Ti", - "Ke", - "To", - "Pe", - "La", - "Su"); - -// full month names -Calendar._MN = new Array -("Tammikuu", - "Helmikuu", - "Maaliskuu", - "Huhtikuu", - "Toukokuu", - "Kesäkuu", - "Heinäkuu", - "Elokuu", - "Syyskuu", - "Lokakuu", - "Marraskuu", - "Joulukuu"); - -// short month names -Calendar._SMN = new Array -("Tam", - "Hel", - "Maa", - "Huh", - "Tou", - "Kes", - "Hei", - "Elo", - "Syy", - "Lok", - "Mar", - "Jou"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Tietoja kalenterista"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Uusin versio osoitteessa: http://www.dynarch.com/projects/calendar/\n" + -"Julkaistu GNU LGPL lisenssin alaisuudessa. Lisätietoja osoitteessa http://gnu.org/licenses/lgpl.html" + -"\n\n" + -"Päivämäärä valinta:\n" + -"- Käytä \xab, \xbb painikkeita valitaksesi vuosi\n" + -"- Käytä " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " painikkeita valitaksesi kuukausi\n" + -"- Pitämällä hiiren painiketta minkä tahansa yllä olevan painikkeen kohdalla, saat näkyviin valikon nopeampaan siirtymiseen."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Ajan valinta:\n" + -"- Klikkaa kellonajan numeroita lisätäksesi aikaa\n" + -"- tai pitämällä Shift-näppäintä pohjassa saat aikaa taaksepäin\n" + -"- tai klikkaa ja pidä hiiren painike pohjassa sekä liikuta hiirtä muuttaaksesi aikaa nopeasti eteen- ja taaksepäin."; - -Calendar._TT["PREV_YEAR"] = "Edell. vuosi (paina hetki, näet valikon)"; -Calendar._TT["PREV_MONTH"] = "Edell. kuukausi (paina hetki, näet valikon)"; -Calendar._TT["GO_TODAY"] = "Siirry tähän päivään"; -Calendar._TT["NEXT_MONTH"] = "Seur. kuukausi (paina hetki, näet valikon)"; -Calendar._TT["NEXT_YEAR"] = "Seur. vuosi (paina hetki, näet valikon)"; -Calendar._TT["SEL_DATE"] = "Valitse päivämäärä"; -Calendar._TT["DRAG_TO_MOVE"] = "Siirrä kalenterin paikkaa"; -Calendar._TT["PART_TODAY"] = " (tänään)"; -Calendar._TT["MON_FIRST"] = "Näytä maanantai ensimmäisenä"; -Calendar._TT["SUN_FIRST"] = "Näytä sunnuntai ensimmäisenä"; -Calendar._TT["CLOSE"] = "Sulje"; -Calendar._TT["TODAY"] = "Tänään"; -Calendar._TT["TIME_PART"] = "(Shift-) Klikkaa tai liikuta muuttaaksesi aikaa"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d.%m.%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%d.%m.%Y"; - -Calendar._TT["WK"] = "Vko"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-fr.js b/zioinfo/js/jscalendar-1.0/lang/calendar-fr.js deleted file mode 100644 index 2a9e0b20..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-fr.js +++ /dev/null @@ -1,125 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Mihai Bazon, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// Translator: David Duret, from previous french version - -// full day names -Calendar._DN = new Array -("Dimanche", - "Lundi", - "Mardi", - "Mercredi", - "Jeudi", - "Vendredi", - "Samedi", - "Dimanche"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Dim", - "Lun", - "Mar", - "Mar", - "Jeu", - "Ven", - "Sam", - "Dim"); - -// full month names -Calendar._MN = new Array -("Janvier", - "Fvrier", - "Mars", - "Avril", - "Mai", - "Juin", - "Juillet", - "Aot", - "Septembre", - "Octobre", - "Novembre", - "Dcembre"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Fev", - "Mar", - "Avr", - "Mai", - "Juin", - "Juil", - "Aout", - "Sep", - "Oct", - "Nov", - "Dec"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "A propos du calendrier"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Heure Selecteur\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Pour la derniere version visitez : http://www.dynarch.com/projects/calendar/\n" + -"Distribu par GNU LGPL. Voir http://gnu.org/licenses/lgpl.html pour les details." + -"\n\n" + -"Selection de la date :\n" + -"- Utiliser les bouttons \xab, \xbb pour selectionner l\'annee\n" + -"- Utiliser les bouttons " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " pour selectionner les mois\n" + -"- Garder la souris sur n'importe quels boutons pour une selection plus rapide"; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Selection de l\'heure :\n" + -"- Cliquer sur heures ou minutes pour incrementer\n" + -"- ou Maj-clic pour decrementer\n" + -"- ou clic et glisser-deplacer pour une selection plus rapide"; - -Calendar._TT["PREV_YEAR"] = "Anne prc. (maintenir pour menu)"; -Calendar._TT["PREV_MONTH"] = "Mois prc. (maintenir pour menu)"; -Calendar._TT["GO_TODAY"] = "Atteindre la date du jour"; -Calendar._TT["NEXT_MONTH"] = "Mois suiv. (maintenir pour menu)"; -Calendar._TT["NEXT_YEAR"] = "Anne suiv. (maintenir pour menu)"; -Calendar._TT["SEL_DATE"] = "Slectionner une date"; -Calendar._TT["DRAG_TO_MOVE"] = "Dplacer"; -Calendar._TT["PART_TODAY"] = " (Aujourd'hui)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Afficher %s en premier"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Fermer"; -Calendar._TT["TODAY"] = "Aujourd'hui"; -Calendar._TT["TIME_PART"] = "(Maj-)Clic ou glisser pour modifier la valeur"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d/%m/%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "Sem."; -Calendar._TT["TIME"] = "Heure :"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-he-utf8.js b/zioinfo/js/jscalendar-1.0/lang/calendar-he-utf8.js deleted file mode 100644 index 7861217b..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-he-utf8.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Idan Sofer, -// Encoding: UTF-8 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("ראשון", - "שני", - "שלישי", - "רביעי", - "חמישי", - "שישי", - "שבת", - "ראשון"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("א", - "ב", - "ג", - "ד", - "ה", - "ו", - "ש", - "א"); - -// full month names -Calendar._MN = new Array -("ינואר", - "פברואר", - "מרץ", - "אפריל", - "מאי", - "יוני", - "יולי", - "אוגוסט", - "ספטמבר", - "אוקטובר", - "נובמבר", - "דצמבר"); - -// short month names -Calendar._SMN = new Array -("ינא", - "פבר", - "מרץ", - "אפר", - "מאי", - "יונ", - "יול", - "אוג", - "ספט", - "אוק", - "נוב", - "דצמ"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "אודות השנתון"; - -Calendar._TT["ABOUT"] = -"בחרן תאריך/שעה DHTML\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"הגירסא האחרונה זמינה ב: http://www.dynarch.com/projects/calendar/\n" + -"מופץ תחת זיכיון ה GNU LGPL. עיין ב http://gnu.org/licenses/lgpl.html לפרטים נוספים." + -"\n\n" + -בחירת תאריך:\n" + -"- השתמש בכפתורים \xab, \xbb לבחירת שנה\n" + -"- השתמש בכפתורים " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " לבחירת חודש\n" + -"- החזק העכבר לחוץ מעל הכפתורים המוזכרים לעיל לבחירה מהירה יותר."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"בחירת זמן:\n" + -"- לחץ על כל אחד מחלקי הזמן כדי להוסיף\n" + -"- או shift בשילוב עם לחיצה כדי להחסיר\n" + -"- או לחץ וגרור לפעולה מהירה יותר."; - -Calendar._TT["PREV_YEAR"] = "שנה קודמת - החזק לקבלת תפריט"; -Calendar._TT["PREV_MONTH"] = "חודש קודם - החזק לקבלת תפריט"; -Calendar._TT["GO_TODAY"] = "עבור להיום"; -Calendar._TT["NEXT_MONTH"] = "חודש הבא - החזק לתפריט"; -Calendar._TT["NEXT_YEAR"] = "שנה הבאה - החזק לתפריט"; -Calendar._TT["SEL_DATE"] = "בחר תאריך"; -Calendar._TT["DRAG_TO_MOVE"] = "גרור להזזה"; -Calendar._TT["PART_TODAY"] = " )היום("; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "הצג %s קודם"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "6"; - -Calendar._TT["CLOSE"] = "סגור"; -Calendar._TT["TODAY"] = "היום"; -Calendar._TT["TIME_PART"] = "(שיפט-)לחץ וגרור כדי לשנות ערך"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "שעה::"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-hr-utf8.js b/zioinfo/js/jscalendar-1.0/lang/calendar-hr-utf8.js deleted file mode 100644 index baf01b17..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-hr-utf8.js +++ /dev/null @@ -1,49 +0,0 @@ -/* Croatian language file for the DHTML Calendar version 0.9.2 -* Author Krunoslav Zubrinic , June 2003. -* Feel free to use this script under the terms of the GNU Lesser General -* Public License, as long as you do not remove or alter this notice. -*/ -Calendar._DN = new Array -("Nedjelja", - "Ponedjeljak", - "Utorak", - "Srijeda", - "Četvrtak", - "Petak", - "Subota", - "Nedjelja"); -Calendar._MN = new Array -("Siječanj", - "Veljača", - "Ožujak", - "Travanj", - "Svibanj", - "Lipanj", - "Srpanj", - "Kolovoz", - "Rujan", - "Listopad", - "Studeni", - "Prosinac"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["TOGGLE"] = "Promjeni dan s kojim počinje tjedan"; -Calendar._TT["PREV_YEAR"] = "Prethodna godina (dugi pritisak za meni)"; -Calendar._TT["PREV_MONTH"] = "Prethodni mjesec (dugi pritisak za meni)"; -Calendar._TT["GO_TODAY"] = "Idi na tekući dan"; -Calendar._TT["NEXT_MONTH"] = "Slijedeći mjesec (dugi pritisak za meni)"; -Calendar._TT["NEXT_YEAR"] = "Slijedeća godina (dugi pritisak za meni)"; -Calendar._TT["SEL_DATE"] = "Izaberite datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Pritisni i povuci za promjenu pozicije"; -Calendar._TT["PART_TODAY"] = " (today)"; -Calendar._TT["MON_FIRST"] = "Prikaži ponedjeljak kao prvi dan"; -Calendar._TT["SUN_FIRST"] = "Prikaži nedjelju kao prvi dan"; -Calendar._TT["CLOSE"] = "Zatvori"; -Calendar._TT["TODAY"] = "Danas"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "dd-mm-y"; -Calendar._TT["TT_DATE_FORMAT"] = "DD, dd.mm.y"; - -Calendar._TT["WK"] = "Tje"; \ No newline at end of file diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-hr.js b/zioinfo/js/jscalendar-1.0/lang/calendar-hr.js deleted file mode 100644 index 88d4238b..00000000 Binary files a/zioinfo/js/jscalendar-1.0/lang/calendar-hr.js and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-hu.js b/zioinfo/js/jscalendar-1.0/lang/calendar-hu.js deleted file mode 100644 index f5bf057e..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-hu.js +++ /dev/null @@ -1,124 +0,0 @@ -// ** I18N - -// Calendar HU language -// Author: ??? -// Modifier: KARASZI Istvan, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Vasrnap", - "Htf", - "Kedd", - "Szerda", - "Cstrtk", - "Pntek", - "Szombat", - "Vasrnap"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("v", - "h", - "k", - "sze", - "cs", - "p", - "szo", - "v"); - -// full month names -Calendar._MN = new Array -("janur", - "februr", - "mrcius", - "prilis", - "mjus", - "jnius", - "jlius", - "augusztus", - "szeptember", - "oktber", - "november", - "december"); - -// short month names -Calendar._SMN = new Array -("jan", - "feb", - "mr", - "pr", - "mj", - "jn", - "jl", - "aug", - "sze", - "okt", - "nov", - "dec"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "A kalendriumrl"; - -Calendar._TT["ABOUT"] = -"DHTML dtum/id kivlaszt\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"a legfrissebb verzi megtallhat: http://www.dynarch.com/projects/calendar/\n" + -"GNU LGPL alatt terjesztve. Lsd a http://gnu.org/licenses/lgpl.html oldalt a rszletekhez." + -"\n\n" + -"Dtum vlaszts:\n" + -"- hasznlja a \xab, \xbb gombokat az v kivlasztshoz\n" + -"- hasznlja a " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " gombokat a hnap kivlasztshoz\n" + -"- tartsa lenyomva az egrgombot a gyors vlasztshoz."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Id vlaszts:\n" + -"- kattintva nvelheti az idt\n" + -"- shift-tel kattintva cskkentheti\n" + -"- lenyomva tartva s hzva gyorsabban kivlaszthatja."; - -Calendar._TT["PREV_YEAR"] = "Elz v (tartsa nyomva a menhz)"; -Calendar._TT["PREV_MONTH"] = "Elz hnap (tartsa nyomva a menhz)"; -Calendar._TT["GO_TODAY"] = "Mai napra ugrs"; -Calendar._TT["NEXT_MONTH"] = "Kv. hnap (tartsa nyomva a menhz)"; -Calendar._TT["NEXT_YEAR"] = "Kv. v (tartsa nyomva a menhz)"; -Calendar._TT["SEL_DATE"] = "Vlasszon dtumot"; -Calendar._TT["DRAG_TO_MOVE"] = "Hzza a mozgatshoz"; -Calendar._TT["PART_TODAY"] = " (ma)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "%s legyen a ht els napja"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Bezr"; -Calendar._TT["TODAY"] = "Ma"; -Calendar._TT["TIME_PART"] = "(Shift-)Klikk vagy hzs az rtk vltoztatshoz"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%b %e, %a"; - -Calendar._TT["WK"] = "ht"; -Calendar._TT["TIME"] = "id:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-it.js b/zioinfo/js/jscalendar-1.0/lang/calendar-it.js deleted file mode 100644 index 7f84cde0..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-it.js +++ /dev/null @@ -1,124 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Mihai Bazon, -// Translator: Fabio Di Bernardini, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Domenica", - "Lunedì", - "Martedì", - "Mercoledì", - "Giovedì", - "Venerdì", - "Sabato", - "Domenica"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Dom", - "Lun", - "Mar", - "Mer", - "Gio", - "Ven", - "Sab", - "Dom"); - -// full month names -Calendar._MN = new Array -("Gennaio", - "Febbraio", - "Marzo", - "Aprile", - "Maggio", - "Giugno", - "Luglio", - "Augosto", - "Settembre", - "Ottobre", - "Novembre", - "Dicembre"); - -// short month names -Calendar._SMN = new Array -("Gen", - "Feb", - "Mar", - "Apr", - "Mag", - "Giu", - "Lug", - "Ago", - "Set", - "Ott", - "Nov", - "Dic"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Informazioni sul calendario"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Per gli aggiornamenti: http://www.dynarch.com/projects/calendar/\n" + -"Distribuito sotto licenza GNU LGPL. Vedi http://gnu.org/licenses/lgpl.html per i dettagli." + -"\n\n" + -"Selezione data:\n" + -"- Usa \xab, \xbb per selezionare l'anno\n" + -"- Usa " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " per i mesi\n" + -"- Tieni premuto a lungo il mouse per accedere alle funzioni di selezione veloce."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Selezione orario:\n" + -"- Clicca sul numero per incrementarlo\n" + -"- o Shift+click per decrementarlo\n" + -"- o click e sinistra o destra per variarlo."; - -Calendar._TT["PREV_YEAR"] = "Anno prec.(clicca a lungo per il menù)"; -Calendar._TT["PREV_MONTH"] = "Mese prec. (clicca a lungo per il menù)"; -Calendar._TT["GO_TODAY"] = "Oggi"; -Calendar._TT["NEXT_MONTH"] = "Pross. mese (clicca a lungo per il menù)"; -Calendar._TT["NEXT_YEAR"] = "Pross. anno (clicca a lungo per il menù)"; -Calendar._TT["SEL_DATE"] = "Seleziona data"; -Calendar._TT["DRAG_TO_MOVE"] = "Trascina per spostarlo"; -Calendar._TT["PART_TODAY"] = " (oggi)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Mostra prima %s"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Chiudi"; -Calendar._TT["TODAY"] = "Oggi"; -Calendar._TT["TIME_PART"] = "(Shift-)Click o trascina per cambiare il valore"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d-%m-%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a:%b:%e"; - -Calendar._TT["WK"] = "set"; -Calendar._TT["TIME"] = "Ora:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-jp.js b/zioinfo/js/jscalendar-1.0/lang/calendar-jp.js deleted file mode 100644 index 3bca7ebf..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-jp.js +++ /dev/null @@ -1,45 +0,0 @@ -// ** I18N -Calendar._DN = new Array -("", - "", - "", - "", - "", - "", - "y", - ""); -Calendar._MN = new Array -("1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["TOGGLE"] = "T̍ŏ̗j؂ւ"; -Calendar._TT["PREV_YEAR"] = "ON"; -Calendar._TT["PREV_MONTH"] = "O"; -Calendar._TT["GO_TODAY"] = ""; -Calendar._TT["NEXT_MONTH"] = ""; -Calendar._TT["NEXT_YEAR"] = "N"; -Calendar._TT["SEL_DATE"] = "tI"; -Calendar._TT["DRAG_TO_MOVE"] = "EBhËړ"; -Calendar._TT["PART_TODAY"] = " ()"; -Calendar._TT["MON_FIRST"] = "j擪"; -Calendar._TT["SUN_FIRST"] = "j擪"; -Calendar._TT["CLOSE"] = "‚"; -Calendar._TT["TODAY"] = ""; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "y-mm-dd"; -Calendar._TT["TT_DATE_FORMAT"] = "%m %d (%a)"; - -Calendar._TT["WK"] = "T"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-ko-utf8.js b/zioinfo/js/jscalendar-1.0/lang/calendar-ko-utf8.js deleted file mode 100644 index dfaf3891..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-ko-utf8.js +++ /dev/null @@ -1,133 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Mihai Bazon, -// Translation: Yourim Yi -// Encoding: EUC-KR -// lang : ko -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names - -Calendar._DN = new Array -("일요일", - "월요일", - "화요일", - "수요일", - "목요일", - "금요일", - "토요일", - "일요일"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("일", - "월", - "화", - "수", - "목", - "금", - "토", - "일"); - -// First day of the week. "0" means display Sunday first, "1" means display -// Monday first, etc. -Calendar._FD = 0; - -// full month names -Calendar._MN = new Array -("1월", - "2월", - "3월", - "4월", - "5월", - "6월", - "7월", - "8월", - "9월", - "10월", - "11월", - "12월"); - -// short month names -Calendar._SMN = new Array -("1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "calendar 에 대해서"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"\n"+ -"최신 버전을 받으시려면 http://www.dynarch.com/projects/calendar/ 에 방문하세요\n" + -"\n"+ -"GNU LGPL 라이센스로 배포됩니다. \n"+ -"라이센스에 대한 자세한 내용은 http://gnu.org/licenses/lgpl.html 을 읽으세요." + -"\n\n" + -"날짜 선택:\n" + -"- 연도를 선택하려면 \xab, \xbb 버튼을 사용합니다\n" + -"- 달을 선택하려면 " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " 버튼을 누르세요\n" + -"- 계속 누르고 있으면 위 값들을 빠르게 선택하실 수 있습니다."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"시간 선택:\n" + -"- 마우스로 누르면 시간이 증가합니다\n" + -"- Shift 키와 함께 누르면 감소합니다\n" + -"- 누른 상태에서 마우스를 움직이면 좀 더 빠르게 값이 변합니다.\n"; - -Calendar._TT["PREV_YEAR"] = "지난 해 (길게 누르면 목록)"; -Calendar._TT["PREV_MONTH"] = "지난 달 (길게 누르면 목록)"; -Calendar._TT["GO_TODAY"] = "오늘 날짜로"; -Calendar._TT["NEXT_MONTH"] = "다음 달 (길게 누르면 목록)"; -Calendar._TT["NEXT_YEAR"] = "다음 해 (길게 누르면 목록)"; -Calendar._TT["SEL_DATE"] = "날짜를 선택하세요"; -Calendar._TT["DRAG_TO_MOVE"] = "마우스 드래그로 이동 하세요"; -Calendar._TT["PART_TODAY"] = " (오늘)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "%s을 시작 요일로"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "닫기"; -Calendar._TT["TODAY"] = "오늘"; -Calendar._TT["TIME_PART"] = "(Shift-)클릭 또는 드래그 하세요"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "주"; -Calendar._TT["TIME"] = "시간:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-ko.js b/zioinfo/js/jscalendar-1.0/lang/calendar-ko.js deleted file mode 100644 index 14dfa7ba..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-ko.js +++ /dev/null @@ -1,133 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Mihai Bazon, -// Translation: Yourim Yi -// Encoding: EUC-KR -// lang : ko -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names - -Calendar._DN = new Array -("Ͽ", - "", - "ȭ", - "", - "", - "ݿ", - "", - "Ͽ"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("", - "", - "ȭ", - "", - "", - "", - "", - ""); - -// First day of the week. "0" means display Sunday first, "1" means display -// Monday first, etc. -Calendar._FD = 0; - -// full month names -Calendar._MN = new Array -("1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12"); - -// short month names -Calendar._SMN = new Array -("1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "calendar ؼ"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"\n"+ -"ֽ ÷ http://www.dynarch.com/projects/calendar/ 湮ϼ\n" + -"\n"+ -"GNU LGPL ̼ ˴ϴ. \n"+ -"̼ ڼ http://gnu.org/licenses/lgpl.html ." + -"\n\n" + -"¥ :\n" + -"- Ϸ \xab, \xbb ư մϴ\n" + -"- Ϸ " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " ư \n" + -"- Ͻ ֽϴ."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"ð :\n" + -"- 콺 ð մϴ\n" + -"- Shift Ű Բ մϴ\n" + -"- ¿ 콺 ̸ մϴ.\n"; - -Calendar._TT["PREV_YEAR"] = " ( )"; -Calendar._TT["PREV_MONTH"] = " ( )"; -Calendar._TT["GO_TODAY"] = " ¥"; -Calendar._TT["NEXT_MONTH"] = " ( )"; -Calendar._TT["NEXT_YEAR"] = " ( )"; -Calendar._TT["SEL_DATE"] = "¥ ϼ"; -Calendar._TT["DRAG_TO_MOVE"] = "콺 巡׷ ̵ ϼ"; -Calendar._TT["PART_TODAY"] = " ()"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "%s Ϸ"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "ݱ"; -Calendar._TT["TODAY"] = ""; -Calendar._TT["TIME_PART"] = "(Shift-)Ŭ Ǵ 巡 ϼ"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = ""; -Calendar._TT["TIME"] = "ð:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-lt-utf8.js b/zioinfo/js/jscalendar-1.0/lang/calendar-lt-utf8.js deleted file mode 100644 index d39653be..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-lt-utf8.js +++ /dev/null @@ -1,114 +0,0 @@ -// ** I18N - -// Calendar LT language -// Author: Martynas Majeris, -// Encoding: UTF-8 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Sekmadienis", - "Pirmadienis", - "Antradienis", - "Trečiadienis", - "Ketvirtadienis", - "Pentadienis", - "Šeštadienis", - "Sekmadienis"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Sek", - "Pir", - "Ant", - "Tre", - "Ket", - "Pen", - "Šeš", - "Sek"); - -// full month names -Calendar._MN = new Array -("Sausis", - "Vasaris", - "Kovas", - "Balandis", - "Gegužė", - "Birželis", - "Liepa", - "Rugpjūtis", - "Rugsėjis", - "Spalis", - "Lapkritis", - "Gruodis"); - -// short month names -Calendar._SMN = new Array -("Sau", - "Vas", - "Kov", - "Bal", - "Geg", - "Bir", - "Lie", - "Rgp", - "Rgs", - "Spa", - "Lap", - "Gru"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Apie kalendorių"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Naujausią versiją rasite: http://www.dynarch.com/projects/calendar/\n" + -"Platinamas pagal GNU LGPL licenciją. Aplankykite http://gnu.org/licenses/lgpl.html" + -"\n\n" + -"Datos pasirinkimas:\n" + -"- Metų pasirinkimas: \xab, \xbb\n" + -"- Mėnesio pasirinkimas: " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + "\n" + -"- Nuspauskite ir laikykite pelės klavišą greitesniam pasirinkimui."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Laiko pasirinkimas:\n" + -"- Spustelkite ant valandų arba minučių - skaičius padidės vienetu.\n" + -"- Jei spausite kartu su Shift, skaičius sumažės.\n" + -"- Greitam pasirinkimui spustelkite ir pajudinkite pelę."; - -Calendar._TT["PREV_YEAR"] = "Ankstesni metai (laikykite, jei norite meniu)"; -Calendar._TT["PREV_MONTH"] = "Ankstesnis mėnuo (laikykite, jei norite meniu)"; -Calendar._TT["GO_TODAY"] = "Pasirinkti šiandieną"; -Calendar._TT["NEXT_MONTH"] = "Kitas mėnuo (laikykite, jei norite meniu)"; -Calendar._TT["NEXT_YEAR"] = "Kiti metai (laikykite, jei norite meniu)"; -Calendar._TT["SEL_DATE"] = "Pasirinkite datą"; -Calendar._TT["DRAG_TO_MOVE"] = "Tempkite"; -Calendar._TT["PART_TODAY"] = " (šiandien)"; -Calendar._TT["MON_FIRST"] = "Pirma savaitės diena - pirmadienis"; -Calendar._TT["SUN_FIRST"] = "Pirma savaitės diena - sekmadienis"; -Calendar._TT["CLOSE"] = "Uždaryti"; -Calendar._TT["TODAY"] = "Šiandien"; -Calendar._TT["TIME_PART"] = "Spustelkite arba tempkite jei norite pakeisti"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%A, %Y-%m-%d"; - -Calendar._TT["WK"] = "sav"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-lt.js b/zioinfo/js/jscalendar-1.0/lang/calendar-lt.js deleted file mode 100644 index 43b93d68..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-lt.js +++ /dev/null @@ -1,114 +0,0 @@ -// ** I18N - -// Calendar LT language -// Author: Martynas Majeris, -// Encoding: Windows-1257 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Sekmadienis", - "Pirmadienis", - "Antradienis", - "Treiadienis", - "Ketvirtadienis", - "Pentadienis", - "etadienis", - "Sekmadienis"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Sek", - "Pir", - "Ant", - "Tre", - "Ket", - "Pen", - "e", - "Sek"); - -// full month names -Calendar._MN = new Array -("Sausis", - "Vasaris", - "Kovas", - "Balandis", - "Gegu", - "Birelis", - "Liepa", - "Rugpjtis", - "Rugsjis", - "Spalis", - "Lapkritis", - "Gruodis"); - -// short month names -Calendar._SMN = new Array -("Sau", - "Vas", - "Kov", - "Bal", - "Geg", - "Bir", - "Lie", - "Rgp", - "Rgs", - "Spa", - "Lap", - "Gru"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Apie kalendori"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Naujausi versij rasite: http://www.dynarch.com/projects/calendar/\n" + -"Platinamas pagal GNU LGPL licencij. Aplankykite http://gnu.org/licenses/lgpl.html" + -"\n\n" + -"Datos pasirinkimas:\n" + -"- Met pasirinkimas: \xab, \xbb\n" + -"- Mnesio pasirinkimas: " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + "\n" + -"- Nuspauskite ir laikykite pels klavi greitesniam pasirinkimui."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Laiko pasirinkimas:\n" + -"- Spustelkite ant valand arba minui - skaius padids vienetu.\n" + -"- Jei spausite kartu su Shift, skaiius sumas.\n" + -"- Greitam pasirinkimui spustelkite ir pajudinkite pel."; - -Calendar._TT["PREV_YEAR"] = "Ankstesni metai (laikykite, jei norite meniu)"; -Calendar._TT["PREV_MONTH"] = "Ankstesnis mnuo (laikykite, jei norite meniu)"; -Calendar._TT["GO_TODAY"] = "Pasirinkti iandien"; -Calendar._TT["NEXT_MONTH"] = "Kitas mnuo (laikykite, jei norite meniu)"; -Calendar._TT["NEXT_YEAR"] = "Kiti metai (laikykite, jei norite meniu)"; -Calendar._TT["SEL_DATE"] = "Pasirinkite dat"; -Calendar._TT["DRAG_TO_MOVE"] = "Tempkite"; -Calendar._TT["PART_TODAY"] = " (iandien)"; -Calendar._TT["MON_FIRST"] = "Pirma savaits diena - pirmadienis"; -Calendar._TT["SUN_FIRST"] = "Pirma savaits diena - sekmadienis"; -Calendar._TT["CLOSE"] = "Udaryti"; -Calendar._TT["TODAY"] = "iandien"; -Calendar._TT["TIME_PART"] = "Spustelkite arba tempkite jei norite pakeisti"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%A, %Y-%m-%d"; - -Calendar._TT["WK"] = "sav"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-lv.js b/zioinfo/js/jscalendar-1.0/lang/calendar-lv.js deleted file mode 100644 index 407699d3..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-lv.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar LV language -// Author: Juris Valdovskis, -// Encoding: cp1257 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Svtdiena", - "Pirmdiena", - "Otrdiena", - "Trediena", - "Ceturdiena", - "Piektdiena", - "Sestdiena", - "Svtdiena"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Sv", - "Pr", - "Ot", - "Tr", - "Ce", - "Pk", - "Se", - "Sv"); - -// full month names -Calendar._MN = new Array -("Janvris", - "Februris", - "Marts", - "Aprlis", - "Maijs", - "Jnijs", - "Jlijs", - "Augusts", - "Septembris", - "Oktobris", - "Novembris", - "Decembris"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Feb", - "Mar", - "Apr", - "Mai", - "Jn", - "Jl", - "Aug", - "Sep", - "Okt", - "Nov", - "Dec"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Par kalendru"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Datuma izvle:\n" + -"- Izmanto \xab, \xbb pogas, lai izvltos gadu\n" + -"- Izmanto " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + "pogas, lai izvltos mnesi\n" + -"- Turi nospiestu peles pogu uz jebkuru no augstk mintajm pogm, lai patrintu izvli."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Laika izvle:\n" + -"- Uzklikini uz jebkuru no laika dam, lai palielintu to\n" + -"- vai Shift-klikis, lai samazintu to\n" + -"- vai noklikini un velc uz attiecgo virzienu lai maintu trk."; - -Calendar._TT["PREV_YEAR"] = "Iepr. gads (turi izvlnei)"; -Calendar._TT["PREV_MONTH"] = "Iepr. mnesis (turi izvlnei)"; -Calendar._TT["GO_TODAY"] = "odien"; -Calendar._TT["NEXT_MONTH"] = "Nkoais mnesis (turi izvlnei)"; -Calendar._TT["NEXT_YEAR"] = "Nkoais gads (turi izvlnei)"; -Calendar._TT["SEL_DATE"] = "Izvlies datumu"; -Calendar._TT["DRAG_TO_MOVE"] = "Velc, lai prvietotu"; -Calendar._TT["PART_TODAY"] = " (odien)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Attlot %s k pirmo"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "1,7"; - -Calendar._TT["CLOSE"] = "Aizvrt"; -Calendar._TT["TODAY"] = "odien"; -Calendar._TT["TIME_PART"] = "(Shift-)Klikis vai prvieto, lai maintu"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d-%m-%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %e %b"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "Laiks:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-nl.js b/zioinfo/js/jscalendar-1.0/lang/calendar-nl.js deleted file mode 100644 index a1dea94b..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-nl.js +++ /dev/null @@ -1,73 +0,0 @@ -// ** I18N -Calendar._DN = new Array -("Zondag", - "Maandag", - "Dinsdag", - "Woensdag", - "Donderdag", - "Vrijdag", - "Zaterdag", - "Zondag"); - -Calendar._SDN_len = 2; - -Calendar._MN = new Array -("Januari", - "Februari", - "Maart", - "April", - "Mei", - "Juni", - "Juli", - "Augustus", - "September", - "Oktober", - "November", - "December"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Info"; - -Calendar._TT["ABOUT"] = -"DHTML Datum/Tijd Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + -"Ga voor de meest recente versie naar: http://www.dynarch.com/projects/calendar/\n" + -"Verspreid onder de GNU LGPL. Zie http://gnu.org/licenses/lgpl.html voor details." + -"\n\n" + -"Datum selectie:\n" + -"- Gebruik de \xab \xbb knoppen om een jaar te selecteren\n" + -"- Gebruik de " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " knoppen om een maand te selecteren\n" + -"- Houd de muis ingedrukt op de genoemde knoppen voor een snellere selectie."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Tijd selectie:\n" + -"- Klik op een willekeurig onderdeel van het tijd gedeelte om het te verhogen\n" + -"- of Shift-klik om het te verlagen\n" + -"- of klik en sleep voor een snellere selectie."; - -//Calendar._TT["TOGGLE"] = "Selecteer de eerste week-dag"; -Calendar._TT["PREV_YEAR"] = "Vorig jaar (ingedrukt voor menu)"; -Calendar._TT["PREV_MONTH"] = "Vorige maand (ingedrukt voor menu)"; -Calendar._TT["GO_TODAY"] = "Ga naar Vandaag"; -Calendar._TT["NEXT_MONTH"] = "Volgende maand (ingedrukt voor menu)"; -Calendar._TT["NEXT_YEAR"] = "Volgend jaar (ingedrukt voor menu)"; -Calendar._TT["SEL_DATE"] = "Selecteer datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Klik en sleep om te verplaatsen"; -Calendar._TT["PART_TODAY"] = " (vandaag)"; -//Calendar._TT["MON_FIRST"] = "Toon Maandag eerst"; -//Calendar._TT["SUN_FIRST"] = "Toon Zondag eerst"; - -Calendar._TT["DAY_FIRST"] = "Toon %s eerst"; - -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Sluiten"; -Calendar._TT["TODAY"] = "(vandaag)"; -Calendar._TT["TIME_PART"] = "(Shift-)Klik of sleep om de waarde te veranderen"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d-%m-%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %e %b %Y"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "Tijd:"; \ No newline at end of file diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-no.js b/zioinfo/js/jscalendar-1.0/lang/calendar-no.js deleted file mode 100644 index d9297d17..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-no.js +++ /dev/null @@ -1,114 +0,0 @@ -// ** I18N - -// Calendar NO language -// Author: Daniel Holmen, -// Encoding: UTF-8 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Søndag", - "Mandag", - "Tirsdag", - "Onsdag", - "Torsdag", - "Fredag", - "Lørdag", - "Søndag"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Søn", - "Man", - "Tir", - "Ons", - "Tor", - "Fre", - "Lør", - "Søn"); - -// full month names -Calendar._MN = new Array -("Januar", - "Februar", - "Mars", - "April", - "Mai", - "Juni", - "Juli", - "August", - "September", - "Oktober", - "November", - "Desember"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Feb", - "Mar", - "Apr", - "Mai", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Des"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Om kalenderen"; - -Calendar._TT["ABOUT"] = -"DHTML Dato-/Tidsvelger\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For nyeste versjon, gå til: http://www.dynarch.com/projects/calendar/\n" + -"Distribuert under GNU LGPL. Se http://gnu.org/licenses/lgpl.html for detaljer." + -"\n\n" + -"Datovalg:\n" + -"- Bruk knappene \xab og \xbb for å velge år\n" + -"- Bruk knappene " + String.fromCharCode(0x2039) + " og " + String.fromCharCode(0x203a) + " for å velge måned\n" + -"- Hold inne musknappen eller knappene over for raskere valg."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Tidsvalg:\n" + -"- Klikk på en av tidsdelene for å øke den\n" + -"- eller Shift-klikk for å senke verdien\n" + -"- eller klikk-og-dra for raskere valg.."; - -Calendar._TT["PREV_YEAR"] = "Forrige. år (hold for meny)"; -Calendar._TT["PREV_MONTH"] = "Forrige. måned (hold for meny)"; -Calendar._TT["GO_TODAY"] = "Gå til idag"; -Calendar._TT["NEXT_MONTH"] = "Neste måned (hold for meny)"; -Calendar._TT["NEXT_YEAR"] = "Neste år (hold for meny)"; -Calendar._TT["SEL_DATE"] = "Velg dato"; -Calendar._TT["DRAG_TO_MOVE"] = "Dra for å flytte"; -Calendar._TT["PART_TODAY"] = " (idag)"; -Calendar._TT["MON_FIRST"] = "Vis mandag først"; -Calendar._TT["SUN_FIRST"] = "Vis søndag først"; -Calendar._TT["CLOSE"] = "Lukk"; -Calendar._TT["TODAY"] = "Idag"; -Calendar._TT["TIME_PART"] = "(Shift-)Klikk eller dra for å endre verdi"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d.%m.%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "uke"; \ No newline at end of file diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-pl-utf8.js b/zioinfo/js/jscalendar-1.0/lang/calendar-pl-utf8.js deleted file mode 100644 index 6b8ca67a..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-pl-utf8.js +++ /dev/null @@ -1,93 +0,0 @@ -// ** I18N - -// Calendar PL language -// Author: Dariusz Pietrzak, -// Author: Janusz Piwowarski, -// Encoding: utf-8 -// Distributed under the same terms as the calendar itself. - -Calendar._DN = new Array -("Niedziela", - "Poniedziałek", - "Wtorek", - "Środa", - "Czwartek", - "Piątek", - "Sobota", - "Niedziela"); -Calendar._SDN = new Array -("Nie", - "Pn", - "Wt", - "Śr", - "Cz", - "Pt", - "So", - "Nie"); -Calendar._MN = new Array -("Styczeń", - "Luty", - "Marzec", - "Kwiecień", - "Maj", - "Czerwiec", - "Lipiec", - "Sierpień", - "Wrzesień", - "Październik", - "Listopad", - "Grudzień"); -Calendar._SMN = new Array -("Sty", - "Lut", - "Mar", - "Kwi", - "Maj", - "Cze", - "Lip", - "Sie", - "Wrz", - "Paź", - "Lis", - "Gru"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "O kalendarzu"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Aby pobrać najnowszą wersję, odwiedź: http://www.dynarch.com/projects/calendar/\n" + -"Dostępny na licencji GNU LGPL. Zobacz szczegóły na http://gnu.org/licenses/lgpl.html." + -"\n\n" + -"Wybór daty:\n" + -"- Użyj przycisków \xab, \xbb by wybrać rok\n" + -"- Użyj przycisków " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " by wybrać miesiąc\n" + -"- Przytrzymaj klawisz myszy nad jednym z powyższych przycisków dla szybszego wyboru."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Wybór czasu:\n" + -"- Kliknij na jednym z pól czasu by zwiększyć jego wartość\n" + -"- lub kliknij trzymając Shift by zmiejszyć jego wartość\n" + -"- lub kliknij i przeciągnij dla szybszego wyboru."; - -//Calendar._TT["TOGGLE"] = "Zmień pierwszy dzień tygodnia"; -Calendar._TT["PREV_YEAR"] = "Poprzedni rok (przytrzymaj dla menu)"; -Calendar._TT["PREV_MONTH"] = "Poprzedni miesiąc (przytrzymaj dla menu)"; -Calendar._TT["GO_TODAY"] = "Idź do dzisiaj"; -Calendar._TT["NEXT_MONTH"] = "Następny miesiąc (przytrzymaj dla menu)"; -Calendar._TT["NEXT_YEAR"] = "Następny rok (przytrzymaj dla menu)"; -Calendar._TT["SEL_DATE"] = "Wybierz datę"; -Calendar._TT["DRAG_TO_MOVE"] = "Przeciągnij by przesunąć"; -Calendar._TT["PART_TODAY"] = " (dzisiaj)"; -Calendar._TT["MON_FIRST"] = "Wyświetl poniedziałek jako pierwszy"; -Calendar._TT["SUN_FIRST"] = "Wyświetl niedzielę jako pierwszą"; -Calendar._TT["CLOSE"] = "Zamknij"; -Calendar._TT["TODAY"] = "Dzisiaj"; -Calendar._TT["TIME_PART"] = "(Shift-)Kliknij lub przeciągnij by zmienić wartość"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%e %B, %A"; - -Calendar._TT["WK"] = "ty"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-pl.js b/zioinfo/js/jscalendar-1.0/lang/calendar-pl.js deleted file mode 100644 index 76e0551a..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-pl.js +++ /dev/null @@ -1,56 +0,0 @@ -// ** I18N -// Calendar PL language -// Author: Artur Filipiak, -// January, 2004 -// Encoding: UTF-8 -Calendar._DN = new Array -("Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota", "Niedziela"); - -Calendar._SDN = new Array -("N", "Pn", "Wt", "Śr", "Cz", "Pt", "So", "N"); - -Calendar._MN = new Array -("Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"); - -Calendar._SMN = new Array -("Sty", "Lut", "Mar", "Kwi", "Maj", "Cze", "Lip", "Sie", "Wrz", "Paź", "Lis", "Gru"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "O kalendarzu"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Wybór daty:\n" + -"- aby wybrać rok użyj przycisków \xab, \xbb\n" + -"- aby wybrać miesiąc użyj przycisków " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + "\n" + -"- aby przyspieszyć wybór przytrzymaj wciśnięty przycisk myszy nad ww. przyciskami."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Wybór czasu:\n" + -"- aby zwiększyć wartość kliknij na dowolnym elemencie selekcji czasu\n" + -"- aby zmniejszyć wartość użyj dodatkowo klawisza Shift\n" + -"- możesz również poruszać myszkę w lewo i prawo wraz z wciśniętym lewym klawiszem."; - -Calendar._TT["PREV_YEAR"] = "Poprz. rok (przytrzymaj dla menu)"; -Calendar._TT["PREV_MONTH"] = "Poprz. miesiąc (przytrzymaj dla menu)"; -Calendar._TT["GO_TODAY"] = "Pokaż dziś"; -Calendar._TT["NEXT_MONTH"] = "Nast. miesiąc (przytrzymaj dla menu)"; -Calendar._TT["NEXT_YEAR"] = "Nast. rok (przytrzymaj dla menu)"; -Calendar._TT["SEL_DATE"] = "Wybierz datę"; -Calendar._TT["DRAG_TO_MOVE"] = "Przesuń okienko"; -Calendar._TT["PART_TODAY"] = " (dziś)"; -Calendar._TT["MON_FIRST"] = "Pokaż Poniedziałek jako pierwszy"; -Calendar._TT["SUN_FIRST"] = "Pokaż Niedzielę jako pierwszą"; -Calendar._TT["CLOSE"] = "Zamknij"; -Calendar._TT["TODAY"] = "Dziś"; -Calendar._TT["TIME_PART"] = "(Shift-)klik | drag, aby zmienić wartość"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y.%m.%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "wk"; \ No newline at end of file diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-pt.js b/zioinfo/js/jscalendar-1.0/lang/calendar-pt.js deleted file mode 100644 index deee8a19..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-pt.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar pt_BR language -// Author: Adalberto Machado, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Domingo", - "Segunda", - "Terca", - "Quarta", - "Quinta", - "Sexta", - "Sabado", - "Domingo"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Dom", - "Seg", - "Ter", - "Qua", - "Qui", - "Sex", - "Sab", - "Dom"); - -// full month names -Calendar._MN = new Array -("Janeiro", - "Fevereiro", - "Marco", - "Abril", - "Maio", - "Junho", - "Julho", - "Agosto", - "Setembro", - "Outubro", - "Novembro", - "Dezembro"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Fev", - "Mar", - "Abr", - "Mai", - "Jun", - "Jul", - "Ago", - "Set", - "Out", - "Nov", - "Dez"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Sobre o calendario"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Ultima versao visite: http://www.dynarch.com/projects/calendar/\n" + -"Distribuido sobre GNU LGPL. Veja http://gnu.org/licenses/lgpl.html para detalhes." + -"\n\n" + -"Selecao de data:\n" + -"- Use os botoes \xab, \xbb para selecionar o ano\n" + -"- Use os botoes " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " para selecionar o mes\n" + -"- Segure o botao do mouse em qualquer um desses botoes para selecao rapida."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Selecao de hora:\n" + -"- Clique em qualquer parte da hora para incrementar\n" + -"- ou Shift-click para decrementar\n" + -"- ou clique e segure para selecao rapida."; - -Calendar._TT["PREV_YEAR"] = "Ant. ano (segure para menu)"; -Calendar._TT["PREV_MONTH"] = "Ant. mes (segure para menu)"; -Calendar._TT["GO_TODAY"] = "Hoje"; -Calendar._TT["NEXT_MONTH"] = "Prox. mes (segure para menu)"; -Calendar._TT["NEXT_YEAR"] = "Prox. ano (segure para menu)"; -Calendar._TT["SEL_DATE"] = "Selecione a data"; -Calendar._TT["DRAG_TO_MOVE"] = "Arraste para mover"; -Calendar._TT["PART_TODAY"] = " (hoje)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Mostre %s primeiro"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Fechar"; -Calendar._TT["TODAY"] = "Hoje"; -Calendar._TT["TIME_PART"] = "(Shift-)Click ou arraste para mudar valor"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d/%m/%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %e %b"; - -Calendar._TT["WK"] = "sm"; -Calendar._TT["TIME"] = "Hora:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-ro.js b/zioinfo/js/jscalendar-1.0/lang/calendar-ro.js deleted file mode 100644 index 116e358b..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-ro.js +++ /dev/null @@ -1,66 +0,0 @@ -// ** I18N -Calendar._DN = new Array -("Duminică", - "Luni", - "Marţi", - "Miercuri", - "Joi", - "Vineri", - "Sâmbătă", - "Duminică"); -Calendar._SDN_len = 2; -Calendar._MN = new Array -("Ianuarie", - "Februarie", - "Martie", - "Aprilie", - "Mai", - "Iunie", - "Iulie", - "August", - "Septembrie", - "Octombrie", - "Noiembrie", - "Decembrie"); - -// tooltips -Calendar._TT = {}; - -Calendar._TT["INFO"] = "Despre calendar"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Pentru ultima versiune vizitaţi: http://www.dynarch.com/projects/calendar/\n" + -"Distribuit sub GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Selecţia datei:\n" + -"- Folosiţi butoanele \xab, \xbb pentru a selecta anul\n" + -"- Folosiţi butoanele " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " pentru a selecta luna\n" + -"- Tineţi butonul mouse-ului apăsat pentru selecţie mai rapidă."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Selecţia orei:\n" + -"- Click pe ora sau minut pentru a mări valoarea cu 1\n" + -"- Sau Shift-Click pentru a micşora valoarea cu 1\n" + -"- Sau Click şi drag pentru a selecta mai repede."; - -Calendar._TT["PREV_YEAR"] = "Anul precedent (lung pt menu)"; -Calendar._TT["PREV_MONTH"] = "Luna precedentă (lung pt menu)"; -Calendar._TT["GO_TODAY"] = "Data de azi"; -Calendar._TT["NEXT_MONTH"] = "Luna următoare (lung pt menu)"; -Calendar._TT["NEXT_YEAR"] = "Anul următor (lung pt menu)"; -Calendar._TT["SEL_DATE"] = "Selectează data"; -Calendar._TT["DRAG_TO_MOVE"] = "Trage pentru a mişca"; -Calendar._TT["PART_TODAY"] = " (astăzi)"; -Calendar._TT["DAY_FIRST"] = "Afişează %s prima zi"; -Calendar._TT["WEEKEND"] = "0,6"; -Calendar._TT["CLOSE"] = "Închide"; -Calendar._TT["TODAY"] = "Astăzi"; -Calendar._TT["TIME_PART"] = "(Shift-)Click sau drag pentru a selecta"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d-%m-%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%A, %d %B"; - -Calendar._TT["WK"] = "spt"; -Calendar._TT["TIME"] = "Ora:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-ru.js b/zioinfo/js/jscalendar-1.0/lang/calendar-ru.js deleted file mode 100644 index 9f75a6a4..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-ru.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar RU language -// Translation: Sly Golovanov, http://golovanov.net, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("воскресенье", - "понедельник", - "вторник", - "среда", - "четверг", - "пятница", - "суббота", - "воскресенье"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("вск", - "пон", - "втр", - "срд", - "чет", - "пят", - "суб", - "вск"); - -// full month names -Calendar._MN = new Array -("январь", - "февраль", - "март", - "апрель", - "май", - "июнь", - "июль", - "август", - "сентябрь", - "октябрь", - "ноябрь", - "декабрь"); - -// short month names -Calendar._SMN = new Array -("янв", - "фев", - "мар", - "апр", - "май", - "июн", - "июл", - "авг", - "сен", - "окт", - "ноя", - "дек"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "О календаре..."; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Как выбрать дату:\n" + -"- При помощи кнопок \xab, \xbb можно выбрать год\n" + -"- При помощи кнопок " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " можно выбрать месяц\n" + -"- Подержите эти кнопки нажатыми, чтобы появилось меню быстрого выбора."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Как выбрать время:\n" + -"- При клике на часах или минутах они увеличиваются\n" + -"- при клике с нажатой клавишей Shift они уменьшаются\n" + -"- если нажать и двигать мышкой влево/вправо, они будут меняться быстрее."; - -Calendar._TT["PREV_YEAR"] = "На год назад (удерживать для меню)"; -Calendar._TT["PREV_MONTH"] = "На месяц назад (удерживать для меню)"; -Calendar._TT["GO_TODAY"] = "Сегодня"; -Calendar._TT["NEXT_MONTH"] = "На месяц вперед (удерживать для меню)"; -Calendar._TT["NEXT_YEAR"] = "На год вперед (удерживать для меню)"; -Calendar._TT["SEL_DATE"] = "Выберите дату"; -Calendar._TT["DRAG_TO_MOVE"] = "Перетаскивайте мышкой"; -Calendar._TT["PART_TODAY"] = " (сегодня)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Первый день недели будет %s"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Закрыть"; -Calendar._TT["TODAY"] = "Сегодня"; -Calendar._TT["TIME_PART"] = "(Shift-)клик или нажать и двигать"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%e %b, %a"; - -Calendar._TT["WK"] = "нед"; -Calendar._TT["TIME"] = "Время:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-ru_win_.js b/zioinfo/js/jscalendar-1.0/lang/calendar-ru_win_.js deleted file mode 100644 index de455afa..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-ru_win_.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar RU language -// Translation: Sly Golovanov, http://golovanov.net, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("", - "", - "", - "", - "", - "", - "", - ""); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("", - "", - "", - "", - "", - "", - "", - ""); - -// full month names -Calendar._MN = new Array -("", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - ""); - -// short month names -Calendar._SMN = new Array -("", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - ""); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = " ..."; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -" :\n" + -"- \xab, \xbb \n" + -"- " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " \n" + -"- , ."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -" :\n" + -"- \n" + -"- Shift \n" + -"- /, ."; - -Calendar._TT["PREV_YEAR"] = " ( )"; -Calendar._TT["PREV_MONTH"] = " ( )"; -Calendar._TT["GO_TODAY"] = ""; -Calendar._TT["NEXT_MONTH"] = " ( )"; -Calendar._TT["NEXT_YEAR"] = " ( )"; -Calendar._TT["SEL_DATE"] = " "; -Calendar._TT["DRAG_TO_MOVE"] = " "; -Calendar._TT["PART_TODAY"] = " ()"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = " %s"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = ""; -Calendar._TT["TODAY"] = ""; -Calendar._TT["TIME_PART"] = "(Shift-) "; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%e %b, %a"; - -Calendar._TT["WK"] = ""; -Calendar._TT["TIME"] = ":"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-si.js b/zioinfo/js/jscalendar-1.0/lang/calendar-si.js deleted file mode 100644 index 100c522e..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-si.js +++ /dev/null @@ -1,94 +0,0 @@ -/* Slovenian language file for the DHTML Calendar version 0.9.2 -* Author David Milost , January 2004. -* Feel free to use this script under the terms of the GNU Lesser General -* Public License, as long as you do not remove or alter this notice. -*/ - // full day names -Calendar._DN = new Array -("Nedelja", - "Ponedeljek", - "Torek", - "Sreda", - "Četrtek", - "Petek", - "Sobota", - "Nedelja"); - // short day names - Calendar._SDN = new Array -("Ned", - "Pon", - "Tor", - "Sre", - "Čet", - "Pet", - "Sob", - "Ned"); -// short month names -Calendar._SMN = new Array -("Jan", - "Feb", - "Mar", - "Apr", - "Maj", - "Jun", - "Jul", - "Avg", - "Sep", - "Okt", - "Nov", - "Dec"); - // full month names -Calendar._MN = new Array -("Januar", - "Februar", - "Marec", - "April", - "Maj", - "Junij", - "Julij", - "Avgust", - "September", - "Oktober", - "November", - "December"); - -// tooltips -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "O koledarju"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Za zadnjo verzijo pojdine na naslov: http://www.dynarch.com/projects/calendar/\n" + -"Distribuirano pod GNU LGPL. Poglejte http://gnu.org/licenses/lgpl.html za podrobnosti." + -"\n\n" + -"Izbor datuma:\n" + -"- Uporabite \xab, \xbb gumbe za izbor leta\n" + -"- Uporabite " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " gumbe za izbor meseca\n" + -"- Zadržite klik na kateremkoli od zgornjih gumbov za hiter izbor."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Izbor ćasa:\n" + -"- Kliknite na katerikoli del ćasa za poveć. le-tega\n" + -"- ali Shift-click za zmanj. le-tega\n" + -"- ali kliknite in povlecite za hiter izbor."; - -Calendar._TT["TOGGLE"] = "Spremeni dan s katerim se prićne teden"; -Calendar._TT["PREV_YEAR"] = "Predhodnje leto (dolg klik za meni)"; -Calendar._TT["PREV_MONTH"] = "Predhodnji mesec (dolg klik za meni)"; -Calendar._TT["GO_TODAY"] = "Pojdi na tekoći dan"; -Calendar._TT["NEXT_MONTH"] = "Naslednji mesec (dolg klik za meni)"; -Calendar._TT["NEXT_YEAR"] = "Naslednje leto (dolg klik za meni)"; -Calendar._TT["SEL_DATE"] = "Izberite datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Pritisni in povleci za spremembo pozicije"; -Calendar._TT["PART_TODAY"] = " (danes)"; -Calendar._TT["MON_FIRST"] = "Prikaži ponedeljek kot prvi dan"; -Calendar._TT["SUN_FIRST"] = "Prikaži nedeljo kot prvi dan"; -Calendar._TT["CLOSE"] = "Zapri"; -Calendar._TT["TODAY"] = "Danes"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "Ted"; \ No newline at end of file diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-sk.js b/zioinfo/js/jscalendar-1.0/lang/calendar-sk.js deleted file mode 100644 index 4fe6a3c8..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-sk.js +++ /dev/null @@ -1,99 +0,0 @@ -// ** I18N - -// Calendar SK language -// Author: Peter Valach (pvalach@gmx.net) -// Encoding: utf-8 -// Last update: 2003/10/29 -// Distributed under the same terms as the calendar itself. - -// full day names -Calendar._DN = new Array -("NedeÄľa", - "Pondelok", - "Utorok", - "Streda", - "Ĺ tvrtok", - "Piatok", - "Sobota", - "NedeÄľa"); - -// short day names -Calendar._SDN = new Array -("Ned", - "Pon", - "Uto", - "Str", - "Ĺ tv", - "Pia", - "Sob", - "Ned"); - -// full month names -Calendar._MN = new Array -("Január", - "Február", - "Marec", - "AprĂ­l", - "Máj", - "JĂşn", - "JĂşl", - "August", - "September", - "OktĂłber", - "November", - "December"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Feb", - "Mar", - "Apr", - "Máj", - "JĂşn", - "JĂşl", - "Aug", - "Sep", - "Okt", - "Nov", - "Dec"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "O kalendári"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + -"PoslednĂş verziu nájdete na: http://www.dynarch.com/projects/calendar/\n" + -"DistribuovanĂ© pod GNU LGPL. ViÄŹ http://gnu.org/licenses/lgpl.html pre detaily." + -"\n\n" + -"VĂ˝ber dátumu:\n" + -"- PouĹľite tlaÄŤidlá \xab, \xbb pre vĂ˝ber roku\n" + -"- PouĹľite tlaÄŤidlá " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " pre vĂ˝ber mesiaca\n" + -"- Ak ktorĂ©koÄľvek z tĂ˝chto tlaÄŤidiel podržíte dlhšie, zobrazĂ­ sa rĂ˝chly vĂ˝ber."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"VĂ˝ber ÄŤasu:\n" + -"- Kliknutie na niektorĂş poloĹľku ÄŤasu ju zvýši\n" + -"- Shift-klik ju znĂ­Ĺľi\n" + -"- Ak podržíte tlaÄŤĂ­tko stlaÄŤenĂ©, posĂşvanĂ­m menĂ­te hodnotu."; - -Calendar._TT["PREV_YEAR"] = "PredošlĂ˝ rok (podrĹľte pre menu)"; -Calendar._TT["PREV_MONTH"] = "PredošlĂ˝ mesiac (podrĹľte pre menu)"; -Calendar._TT["GO_TODAY"] = "PrejsĹĄ na dnešok"; -Calendar._TT["NEXT_MONTH"] = "Nasl. mesiac (podrĹľte pre menu)"; -Calendar._TT["NEXT_YEAR"] = "Nasl. rok (podrĹľte pre menu)"; -Calendar._TT["SEL_DATE"] = "ZvoÄľte dátum"; -Calendar._TT["DRAG_TO_MOVE"] = "PodrĹľanĂ­m tlaÄŤĂ­tka zmenĂ­te polohu"; -Calendar._TT["PART_TODAY"] = " (dnes)"; -Calendar._TT["MON_FIRST"] = "ZobraziĹĄ pondelok ako prvĂ˝"; -Calendar._TT["SUN_FIRST"] = "ZobraziĹĄ nedeÄľu ako prvĂş"; -Calendar._TT["CLOSE"] = "ZavrieĹĄ"; -Calendar._TT["TODAY"] = "Dnes"; -Calendar._TT["TIME_PART"] = "(Shift-)klik/ĹĄahanie zmenĂ­ hodnotu"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "$d. %m. %Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %e. %b"; - -Calendar._TT["WK"] = "týž"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-sp.js b/zioinfo/js/jscalendar-1.0/lang/calendar-sp.js deleted file mode 100644 index 239d1b3b..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-sp.js +++ /dev/null @@ -1,110 +0,0 @@ -// ** I18N - -// Calendar SP language -// Author: Rafael Velasco -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Domingo", - "Lunes", - "Martes", - "Miercoles", - "Jueves", - "Viernes", - "Sabado", - "Domingo"); - -Calendar._SDN = new Array -("Dom", - "Lun", - "Mar", - "Mie", - "Jue", - "Vie", - "Sab", - "Dom"); - -// full month names -Calendar._MN = new Array -("Enero", - "Febrero", - "Marzo", - "Abril", - "Mayo", - "Junio", - "Julio", - "Agosto", - "Septiembre", - "Octubre", - "Noviembre", - "Diciembre"); - -// short month names -Calendar._SMN = new Array -("Ene", - "Feb", - "Mar", - "Abr", - "May", - "Jun", - "Jul", - "Ago", - "Sep", - "Oct", - "Nov", - "Dic"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Informacin del Calendario"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Nuevas versiones en: http://www.dynarch.com/projects/calendar/\n" + -"Distribuida bajo licencia GNU LGPL. Para detalles vea http://gnu.org/licenses/lgpl.html ." + -"\n\n" + -"Seleccin de Fechas:\n" + -"- Use \xab, \xbb para seleccionar el ao\n" + -"- Use " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " para seleccionar el mes\n" + -"- Mantenga presionado el botn del ratn en cualquiera de las opciones superiores para un acceso rapido ."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Seleccin del Reloj:\n" + -"- Seleccione la hora para cambiar el reloj\n" + -"- o presione Shift-click para disminuirlo\n" + -"- o presione click y arrastre del ratn para una seleccin rapida."; - -Calendar._TT["PREV_YEAR"] = "Ao anterior (Presione para menu)"; -Calendar._TT["PREV_MONTH"] = "Mes Anterior (Presione para menu)"; -Calendar._TT["GO_TODAY"] = "Ir a Hoy"; -Calendar._TT["NEXT_MONTH"] = "Mes Siguiente (Presione para menu)"; -Calendar._TT["NEXT_YEAR"] = "Ao Siguiente (Presione para menu)"; -Calendar._TT["SEL_DATE"] = "Seleccione fecha"; -Calendar._TT["DRAG_TO_MOVE"] = "Arrastre y mueva"; -Calendar._TT["PART_TODAY"] = " (Hoy)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Mostrar %s primero"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Cerrar"; -Calendar._TT["TODAY"] = "Hoy"; -Calendar._TT["TIME_PART"] = "(Shift-)Click o arrastra para cambar el valor"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%dd-%mm-%yy"; -Calendar._TT["TT_DATE_FORMAT"] = "%A, %e de %B de %Y"; - -Calendar._TT["WK"] = "Sm"; -Calendar._TT["TIME"] = "Hora:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-sv.js b/zioinfo/js/jscalendar-1.0/lang/calendar-sv.js deleted file mode 100644 index db1f4b84..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-sv.js +++ /dev/null @@ -1,93 +0,0 @@ -// ** I18N - -// Calendar SV language (Swedish, svenska) -// Author: Mihai Bazon, -// Translation team: -// Translator: Leonard Norrgrd -// Last translator: Leonard Norrgrd -// Encoding: iso-latin-1 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("sndag", - "mndag", - "tisdag", - "onsdag", - "torsdag", - "fredag", - "lrdag", - "sndag"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. -Calendar._SDN_len = 2; -Calendar._SMN_len = 3; - -// full month names -Calendar._MN = new Array -("januari", - "februari", - "mars", - "april", - "maj", - "juni", - "juli", - "augusti", - "september", - "oktober", - "november", - "december"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Om kalendern"; - -Calendar._TT["ABOUT"] = -"DHTML Datum/tid-vljare\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Fr senaste version g till: http://www.dynarch.com/projects/calendar/\n" + -"Distribueras under GNU LGPL. Se http://gnu.org/licenses/lgpl.html fr detaljer." + -"\n\n" + -"Val av datum:\n" + -"- Anvnd knapparna \xab, \xbb fr att vlja r\n" + -"- Anvnd knapparna " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " fr att vlja mnad\n" + -"- Hll musknappen nedtryckt p ngon av ovanstende knappar fr snabbare val."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Val av tid:\n" + -"- Klicka p en del av tiden fr att ka den delen\n" + -"- eller skift-klicka fr att minska den\n" + -"- eller klicka och drag fr snabbare val."; - -Calendar._TT["PREV_YEAR"] = "Fregende r (hll fr menu)"; -Calendar._TT["PREV_MONTH"] = "Fregende mnad (hll fr menu)"; -Calendar._TT["GO_TODAY"] = "G till dagens datum"; -Calendar._TT["NEXT_MONTH"] = "Fljande mnad (hll fr menu)"; -Calendar._TT["NEXT_YEAR"] = "Fljande r (hll fr menu)"; -Calendar._TT["SEL_DATE"] = "Vlj datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Drag fr att flytta"; -Calendar._TT["PART_TODAY"] = " (idag)"; -Calendar._TT["MON_FIRST"] = "Visa mndag frst"; -Calendar._TT["SUN_FIRST"] = "Visa sndag frst"; -Calendar._TT["CLOSE"] = "Stng"; -Calendar._TT["TODAY"] = "Idag"; -Calendar._TT["TIME_PART"] = "(Skift-)klicka eller drag fr att ndra tid"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%A %d %b %Y"; - -Calendar._TT["WK"] = "vecka"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-tr.js b/zioinfo/js/jscalendar-1.0/lang/calendar-tr.js deleted file mode 100644 index f2c906c4..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-tr.js +++ /dev/null @@ -1,58 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////////////////// -// Turkish Translation by Nuri AKMAN -// Location: Ankara/TURKEY -// e-mail : nuriakman@hotmail.com -// Date : April, 9 2003 -// -// Note: if Turkish Characters does not shown on you screen -// please include falowing line your html code: -// -// -// -////////////////////////////////////////////////////////////////////////////////////////////// - -// ** I18N -Calendar._DN = new Array -("Pazar", - "Pazartesi", - "Sal", - "aramba", - "Perembe", - "Cuma", - "Cumartesi", - "Pazar"); -Calendar._MN = new Array -("Ocak", - "ubat", - "Mart", - "Nisan", - "Mays", - "Haziran", - "Temmuz", - "Austos", - "Eyll", - "Ekim", - "Kasm", - "Aralk"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["TOGGLE"] = "Haftann ilk gnn kaydr"; -Calendar._TT["PREV_YEAR"] = "nceki Yl (Men iin basl tutunuz)"; -Calendar._TT["PREV_MONTH"] = "nceki Ay (Men iin basl tutunuz)"; -Calendar._TT["GO_TODAY"] = "Bugn'e git"; -Calendar._TT["NEXT_MONTH"] = "Sonraki Ay (Men iin basl tutunuz)"; -Calendar._TT["NEXT_YEAR"] = "Sonraki Yl (Men iin basl tutunuz)"; -Calendar._TT["SEL_DATE"] = "Tarih seiniz"; -Calendar._TT["DRAG_TO_MOVE"] = "Tamak iin srkleyiniz"; -Calendar._TT["PART_TODAY"] = " (bugn)"; -Calendar._TT["MON_FIRST"] = "Takvim Pazartesi gnnden balasn"; -Calendar._TT["SUN_FIRST"] = "Takvim Pazar gnnden balasn"; -Calendar._TT["CLOSE"] = "Kapat"; -Calendar._TT["TODAY"] = "Bugn"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "dd-mm-y"; -Calendar._TT["TT_DATE_FORMAT"] = "d MM y, DD"; - -Calendar._TT["WK"] = "Hafta"; diff --git a/zioinfo/js/jscalendar-1.0/lang/calendar-zh.js b/zioinfo/js/jscalendar-1.0/lang/calendar-zh.js deleted file mode 100644 index 4a0feb6b..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/calendar-zh.js +++ /dev/null @@ -1,119 +0,0 @@ -// ** I18N - -// Calendar ZH language -// Author: muziq, -// Encoding: GB2312 or GBK -// Distributed under the same terms as the calendar itself. - -// full day names -Calendar._DN = new Array -("", - "һ", - "ڶ", - "", - "", - "", - "", - ""); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("", - "һ", - "", - "", - "", - "", - "", - ""); - -// full month names -Calendar._MN = new Array -("һ", - "", - "", - "", - "", - "", - "", - "", - "", - "ʮ", - "ʮһ", - "ʮ"); - -// short month names -Calendar._SMN = new Array -("һ", - "", - "", - "", - "", - "", - "", - "", - "", - "ʮ", - "ʮһ", - "ʮ"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = ""; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"ѡ:\n" + -"- \xab, \xbb ťѡ\n" + -"- " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " ťѡ·\n" + -"- ϰťɴӲ˵пѡݻ·"; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"ѡʱ:\n" + -"- Сʱӿʹֵһ\n" + -"- סShiftСʱӿʹֵһ\n" + -"- ϶ɽпѡ"; - -Calendar._TT["PREV_YEAR"] = "һ (ס˵)"; -Calendar._TT["PREV_MONTH"] = "һ (ס˵)"; -Calendar._TT["GO_TODAY"] = "ת"; -Calendar._TT["NEXT_MONTH"] = "һ (ס˵)"; -Calendar._TT["NEXT_YEAR"] = "һ (ס˵)"; -Calendar._TT["SEL_DATE"] = "ѡ"; -Calendar._TT["DRAG_TO_MOVE"] = "϶"; -Calendar._TT["PART_TODAY"] = " ()"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "ʾ%s"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "ر"; -Calendar._TT["TODAY"] = ""; -Calendar._TT["TIME_PART"] = "(Shift-)϶ıֵ"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%A, %b %e"; - -Calendar._TT["WK"] = ""; -Calendar._TT["TIME"] = "ʱ:"; diff --git a/zioinfo/js/jscalendar-1.0/lang/cn_utf8.js b/zioinfo/js/jscalendar-1.0/lang/cn_utf8.js deleted file mode 100644 index de61b461..00000000 --- a/zioinfo/js/jscalendar-1.0/lang/cn_utf8.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Mihai Bazon, -// Encoding: any -// Translator : Niko -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("\u5468\u65e5",//\u5468\u65e5 - "\u5468\u4e00",//\u5468\u4e00 - "\u5468\u4e8c",//\u5468\u4e8c - "\u5468\u4e09",//\u5468\u4e09 - "\u5468\u56db",//\u5468\u56db - "\u5468\u4e94",//\u5468\u4e94 - "\u5468\u516d",//\u5468\u516d - "\u5468\u65e5");//\u5468\u65e5 - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("\u5468\u65e5", - "\u5468\u4e00", - "\u5468\u4e8c", - "\u5468\u4e09", - "\u5468\u56db", - "\u5468\u4e94", - "\u5468\u516d", - "\u5468\u65e5"); - -// full month names -Calendar._MN = new Array -("\u4e00\u6708", - "\u4e8c\u6708", - "\u4e09\u6708", - "\u56db\u6708", - "\u4e94\u6708", - "\u516d\u6708", - "\u4e03\u6708", - "\u516b\u6708", - "\u4e5d\u6708", - "\u5341\u6708", - "\u5341\u4e00\u6708", - "\u5341\u4e8c\u6708"); - -// short month names -Calendar._SMN = new Array -("\u4e00\u6708", - "\u4e8c\u6708", - "\u4e09\u6708", - "\u56db\u6708", - "\u4e94\u6708", - "\u516d\u6708", - "\u4e03\u6708", - "\u516b\u6708", - "\u4e5d\u6708", - "\u5341\u6708", - "\u5341\u4e00\u6708", - "\u5341\u4e8c\u6708"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "\u5173\u4e8e"; - -Calendar._TT["ABOUT"] = -" DHTML \u65e5\u8d77/\u65f6\u95f4\u9009\u62e9\u63a7\u4ef6\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: \u6700\u65b0\u7248\u672c\u8bf7\u767b\u9646http://www.dynarch.com/projects/calendar/\u5bdf\u770b\n" + -"\u9075\u5faaGNU LGPL. \u7ec6\u8282\u53c2\u9605 http://gnu.org/licenses/lgpl.html" + -"\n\n" + -"\u65e5\u671f\u9009\u62e9:\n" + -"- \u70b9\u51fb\xab(\xbb)\u6309\u94ae\u9009\u62e9\u4e0a(\u4e0b)\u4e00\u5e74\u5ea6.\n" + -"- \u70b9\u51fb" + String.fromCharCode(0x2039) + "(" + String.fromCharCode(0x203a) + ")\u6309\u94ae\u9009\u62e9\u4e0a(\u4e0b)\u4e2a\u6708\u4efd.\n" + -"- \u957f\u65f6\u95f4\u6309\u7740\u6309\u94ae\u5c06\u51fa\u73b0\u66f4\u591a\u9009\u62e9\u9879."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"\u65f6\u95f4\u9009\u62e9:\n" + -"-\u5728\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)\u4e0a\u5355\u51fb\u9f20\u6807\u5de6\u952e\u6765\u589e\u52a0\u5f53\u524d\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)\n" + -"-\u5728\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)\u4e0a\u6309\u4f4fShift\u952e\u540e\u5355\u51fb\u9f20\u6807\u5de6\u952e\u6765\u51cf\u5c11\u5f53\u524d\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)."; - -Calendar._TT["PREV_YEAR"] = "\u4e0a\u4e00\u5e74"; -Calendar._TT["PREV_MONTH"] = "\u4e0a\u4e2a\u6708"; -Calendar._TT["GO_TODAY"] = "\u5230\u4eca\u5929"; -Calendar._TT["NEXT_MONTH"] = "\u4e0b\u4e2a\u6708"; -Calendar._TT["NEXT_YEAR"] = "\u4e0b\u4e00\u5e74"; -Calendar._TT["SEL_DATE"] = "\u9009\u62e9\u65e5\u671f"; -Calendar._TT["DRAG_TO_MOVE"] = "\u62d6\u52a8"; -Calendar._TT["PART_TODAY"] = " (\u4eca\u5929)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "%s\u4e3a\u8fd9\u5468\u7684\u7b2c\u4e00\u5929"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "\u5173\u95ed"; -Calendar._TT["TODAY"] = "\u4eca\u5929"; -Calendar._TT["TIME_PART"] = "(\u6309\u7740Shift\u952e)\u5355\u51fb\u6216\u62d6\u52a8\u6539\u53d8\u503c"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e\u65e5"; - -Calendar._TT["WK"] = "\u5468"; -Calendar._TT["TIME"] = "\u65f6\u95f4:"; diff --git a/zioinfo/js/jscalendar-1.0/menuarrow.gif b/zioinfo/js/jscalendar-1.0/menuarrow.gif deleted file mode 100644 index ed2dee0e..00000000 Binary files a/zioinfo/js/jscalendar-1.0/menuarrow.gif and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/menuarrow2.gif b/zioinfo/js/jscalendar-1.0/menuarrow2.gif deleted file mode 100644 index 40c0aadf..00000000 Binary files a/zioinfo/js/jscalendar-1.0/menuarrow2.gif and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/multiple-dates.html b/zioinfo/js/jscalendar-1.0/multiple-dates.html deleted file mode 100644 index caf1920d..00000000 --- a/zioinfo/js/jscalendar-1.0/multiple-dates.html +++ /dev/null @@ -1,82 +0,0 @@ - - - Sample for the multiple dates feature - - - - - - - - - - - - - - -

    Sample for the multiple dates feature

    - -

    - Starting version 0.9.7, - the calendar is able to handle multiple dates selection, in either - flat or popup form. For this to happen one needs to pass the - "multiple: true" parameter to - Calendar.setup and to install an onUpdate - handler that watches for modifications. -

    - - [open calendar...] - -
    - - - -
    -
    mishoo
    - Last modified: Thu Mar 3 20:17:42 EET 2005 - diff --git a/zioinfo/js/jscalendar-1.0/release-notes.html b/zioinfo/js/jscalendar-1.0/release-notes.html deleted file mode 100644 index 9addddbe..00000000 --- a/zioinfo/js/jscalendar-1.0/release-notes.html +++ /dev/null @@ -1,435 +0,0 @@ - - - - jscalendar release notes - - - - - -
    - The Coolest DHTML Calendar
    - © Dynarch.com 2002 and later. -
    -

    jscalendar release notes

    - -

    This release compiled at Monday, 7 Mar 2005 (19:06).

    - -

    1.0

    - -
      - -
    • - Added support for multiple dates selection. In this mode the - calendar will allow the user to select more than one date, and - will maintain an array of selected dates that can be - investigated from your custom handlers. Sample in multiple-dates.html. -
    • - -
    • - Support for “day info”. Using this feature you can display - custom information for certain dates. Sample in dayinfo.html. Note that if the text - is really big the calendar layout might appear somehow broken; - this is something that should be easy to fix in the CSS file. -
    • - -
    • - Clicking on “Today” will now close the calendar if the current - date is already selected. -
    • - -
    • - The “first day of week” setting can now be defined in the - language file--after all, it is locale-specific. The new - parameter is “Calendar._FD”. Language files should be - updated, but the calendar will not complain nor fail to - function if the parameter is not present. -
    • - -
    • - Some fixes to make the thing work in Safari. It now seems to - be properly supported, please let me know if you encounter any - problems. -
    • - -
    • - New skin: Aqua theme, appropriate for MacOSX fan sites :-) - This theme is located in “skins/aqua/theme.css” (in the - future, all themes will go to this directory). -
    • - -
    • - Bug fixes. -
        -
      • - Keyboard operation now functions normally when the - calendar is displaying days from adjacent months; it might - even work correctly for months containing disabled dates - :). This fix was originally developed under contract for - The - Zapatec Calendar. Zapatec kindly allowed us to - include the bugfixes back in the open source calendar. -
      • -
      • - Fixed the time selection bug: the previous version would - reset the time to current time when a new date was - clicked. -
      • -
      • - Parsing hours like "12:XX pm" would wrongfully replace - "pm" with "am"--fixed. -
      • -
      • - Fixed critical bugs in parseDate function that would - initialize the calendar with 'NaN' values in all cells if - the string to be parsed is not a valid date. -
      • -
      • - The golbal variable that we are using was renamed to - “_dynarch_popupCalendar” to minimize the risk of name - clashes. It's still difficult to get rid of it. -
      • -
      • - Added z-index property to drop-down menus style. -
      • -
      • - The calendar will update an input field even in flat mode, - if an input field was passed. Also, the “showOthers” - parameter will be effective in both popup and flat mode. -
      • -
      • - Others, probably. -
      • -
      -
    • - -
    • - Documentation & sample files updated. -
    • - -
    - -

    0.9.6

    - -
      - -
    • - "Smart" (TM :-) positioning algorithm. The new algorithm will - try to keep the calendar in the browser view, which is helpful - in situations when the input field is near the bottom or the - right edge. This code is only tested with IE and Mozilla, but - it should work with other browsers too. Many thanks to Sunny Chowdhury for sponsoring - this feature! -
    • - -
    • - Support for IE5/Win is back. I also want to thank Janusz - Piwowarski for keeping his eye on the CVS ;-) He reviewed my - IE5-related changes and sent me a much cleaner patch. -
    • - -
    • - The calendar will now allow any day of week to be "the first - day of week". This was requested long time ago, by someone - whose name I forgot (sorry). The reason was that in certain - countries weeks start on Saturday. So I thought that instead - of having a "mondayFirst" and a "saturdayFirst" parameter, - :-), it's better to have a "firstDayOfWeek" parameter; now - it's present and its meaning is: "0 for Sunday", "1 for - Monday", "2 for Tuesday", etc. The equivalent parameter for - Calendar.setup is "firstDay". The end user can also change - it very easy: click on the day name in the calendar display. -
    • - -
    • - The above feature triggered one important change: the - notion of "weekend" is now defined in the language file. - Added parameters: - -
      -          Calendar._TT["WEEKEND"] = "0,6";
      -          Calendar._TT["DAY_FIRST"] = "Display %s first";
      - - "WEEKEND" specifies a string with comma-separated numbers from - 0 to 7; they define what days are marked as "weekend". 5 and - 6 mean, of course, "Sunday" and "Saturday". Day first is the - tooltip displayed when a day name is hovered; "%s" will get - replaced with the day name. Updated languages are "en" and - "ro", which I maintain. Please note that languages wich are - not updated will not work. If yours is one of them, - please consider fixing it and sending me the fix so that I can - include it in the distro. -
    • - -
    • - The calendar can now display days from the months adjacent to - the currently displayed one. This is optional, of course, and - the parameter name is "showsOtherMonths" (or "showOthers" in - Calendar.setup). All theme files were updated. -
    • - -
    • - Displays "Time:" near the time selector, only if defined in - the language file. -
    • - -
    • - Some bugs fixed in the date parsing code (which has also been - rewritten a little bit cleaner). -
    • - -
    • - Calendar.setup will now configure the calendar to trigger the - input fields' "onchange" event, if specified, when a date is - selected. -
    • - -
    • - New parameter in Calendar.setup: "cache" (defaults to - false). If set to true then the popup calendar object - will be "cached", meaning, it will be created only once, no - matter how many input fields are there in the page. Sometimes - this is not desirable, which is why I've added this - parameter. Please note that it defaults to "false" (thus the - default behavior has changed). -
    • - -
    • - Added a simple PHP wrapper. It provides code which loads all - the required scripts and theme file, and one function which - creates and configures an input field for date input. It - takes care of creating and assigning unique ID-s for the - calendar fields and it also creates the "Calendar.setup" code. - Functions to create more specialized fields can be added very - easily. This feature was requested by the FreeMED.org project - (thanks for donating!). -
    • - -
    - -

    Wow, there were quite some changes :-D Enjoy it!

    - -

    0.9.5

    - -

    - This release's primary goal is to fix a wrong license statement which - can be found in some files from 0.9.4. For instance in README or - calendar.js, the statement was that the code is distributed under the - GNU GPL; that's because I had plans to change the license, then - changed my mind but unfortunately I committed files so. I am sorry - for this inconvenience, please use the latest (0.9.5) release which is - fully covered by LGPL. -

    - -

    Other changes:

    - -
      - -
    • - Fixed an annoying bug that prevented the calendar to display - correctly when it was configured for an input field inside a - scrolling area. Many thanks to Ian Barrack (Simban.com) who pointed it up and - donated quite some money for the Calendar project! -
    • - -
    • - All examples use UTF-8 now; the translations may not be all - up-to-date, but I strongly suggest everyone to use - UTF-8; other encodings are a plain mess. So far I know for sure - that Romanian translation will work with UTF-8 and not - anymore with ISO-8859-2. Other translations are probably - usable under UTF-8, but if your preferred language isn't... ;-) - please make it and send it to me for inclusion. -
    • - -
    • - Fixed small bug in the documentation (one footnote didn't appear - where it should have). -
    • - -
    • - Updated translations: DE, ES, HU, IT, RO. Thanks to everyone who - sent translations! -
    • - -
    - -

    0.9.4

    - -

    New stuff

    - -
      - -
    • Supports time selection. Yes. ;-) This work has been largely - sponsored by Himanshukumar Shah (thank you!). See - the docs and example files for details on how to setup.
    • - -
    • Easy to link 2 or more fields by using the new - onUpdate parameter of Calendar.setup. This - is useful, say, to automatically set a value in a second field based - on the value selected in the first field. See the documentation and - first sample in simple-1.html.
    • - -
    • Other Calendar.setup low-level parameters, for those - wanting to have the complete control: onSelect and - onClose. The handlers are called when something is - selected in the calendar or when the calendar is closed.
    • - -
    • The translation files can optionally include the short day names - and the short month names. That's because in some languages, like - German, the short form is not the first 3 letters of the entire name - but only the first 2. Also in other languages short names can't be - as easily derived from the full name by just calling substr, so this - patch solves the problem.
    • - -
    • Implemented a nice way to make some dates "special" (look - different). Specifically, the setDisabledHandler method - was replaced with the more general setDateStatusHandler - method (the old one is still available for backwards compatibility but - will be removed). More details about this in the - documentation. Also see simple-3.html - for a live sample.
    • - -
    • Date parsing and formatting engine is now rewritten and supports a - subset of strftime format specifiers from ANSI C. This - makes it possible to use dates like "YYYYMMDD" (the corresponding - format for this would be "%Y%m%d"). Details in the documentation. - Please note that the new engine is not compatibile with older - calendar releases!
    • - -
    • Along with the new date parser I workarounded an unpleasant crash - that occurred in IE when certain accented characters appeared in the - texts. I think German was one of the language with such problems, and - the workaround was to use the letter without an accent. Well, now you - can translate to whatever you want.
    • - -
    • "Fixes" (I mean, "horrible workarounds") for Konqueror (and - hopefully Safari). Unfortunately, this otherwise excellent browser - still has some bugs that keep the calendar from working - exactly as it should.. But they're going to be fixed, - right? ;-)
    • - -
    • CSS themes got pretty much modified too so if you wrote your theme - you need to update it. Aside for the time selector support, the CSS - themes contain a simple hack that makes the navigation buttons show - a little arrow in the lower-right corner which indicates that if one - holds the mouse a menu will appear.
    • - -
    - -

    Translation files

    - -

    The translation files need to be updated in order for the calendar to - work properly. Currently the only updated files are calendar-en.js - (main file) and calendar-ro.js (well, yes, I am a Romanian ;-).

    - -

    Specifically, they need the following:

    - -
      - -
    • Correct date format, according with the new format specifiers - introduced in 0.9.4. Details about the available format specifiers - in the documentation
    • - -
    • Short day or month names, if required. If they can be - derived by taking the first N letters of the full name then a simple - Calendar._SDN_len = N or Calendar._SMN_len = N will suffice. If N - is 3 then nothing needs to be done as we take it for granted if no - other option is offered ;-)
    • - -
    • We have some new texts that shows short usage information as well - as copyright information.
    • - -
    - -

    If your favorite language is not there yet, or it is but not updated - according to the main calendar-en.js file, then please consider - translating calendar-en.js and send the translation back to me so that - I include it in the official distribution.

    - -

    Bug status

    - -

    Check SourceForge, - I didn't keep track. However, there were a lot of bugfixes.

    - -

    0.9.3

    - -

    New stuff

    - -
      - -
    • Opera 7 compatibility — keyboard navigation is - still not available; text selection can't be disabled, leading to an - ugly effect when walking through the month/year menus.
    • - -
    • Ability to align the calendar relative to the input field (or any - other element). Vertical: top, center, bottom. Horizontal: left, - center, right. This is established as a new parameter for - showAtElement.
    • - -
    • Added dateClicked property (boolean). This can be - inspected in the "onSelect" handler to determine if a date was - really clicked or the user only changed month/year using the menus. - You need to check this for "single-click" calendars and - only close/hide the calendar if it's true.
    • - -
    • Full documentation in HTML - and PDF format is now available in the - distribution archive.
    • - -
    • New language definition files: HU, HR, PT, ZH. Thanks those who - submitted!
    • - -
    - -

    Bug status

    - -

    This covers only those bugs that have been reported at SourceForge.

    - -
      - -
    1. #703,238 — fixed
    2. -
    3. #703,814 — fixed
    4. -
    5. #716,777 — closed (was fixed already in 0.9.2-1)
    6. -
    7. #723,335 — fixed
    8. -
    9. #715,122 — feature request; implemented.
    10. -
    11. #721,206 — fixed (added "refresh()" function)
    12. -
    13. #721,833 — fixed (bug concerning the "yy" format - parsing)
    14. -
    15. #721,833 — won't fix (we won't set the time to - midnight; time might actually be useful when we implement support - for time selection). - -
    - -
    -
    Mihai Bazon
    - - -Last modified on Wed Oct 29 02:37:07 2003 - - - - - - diff --git a/zioinfo/js/jscalendar-1.0/simple-1.html b/zioinfo/js/jscalendar-1.0/simple-1.html deleted file mode 100644 index c2a944a1..00000000 --- a/zioinfo/js/jscalendar-1.0/simple-1.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - - -Simple calendar setups [popup calendar] - - - - - - - - - - - - - - - - - -

    DHTML Calendar — for the impatient

    - -
    -

    - This page lists some common setups for the popup calendar. In - order to see how to do any of them please see the source of this - page. For each example it's structured like this: there's the - <form> that contains the input field, and following there is - the JavaScript snippet that setups that form. An example of - flat calendar is available in another page. -

    -

    - The code in this page uses a helper function defined in - "calendar-setup.js". With it you can setup the calendar in - minutes. If you're not that impatient, ;-) complete documenation is - available. -

    -
    - - - -
    - -

    Basic setup: one input per calendar. Clicking in the input field -activates the calendar. The date format is "%m/%d/%Y %I:%M %p". The -calendar defaults to "single-click mode".

    - -

    The example below has been updated to show you how to create "linked" -fields. Basically, when some field is filled with a date, the other -is updated so that the difference between them remains one week. The -property useful here is "onUpdate".

    - -
    - - -
    - - - - - -
    - -

    Input field with a trigger button. Clicking the button activates -the calendar. Note that this one needs double-click (singleClick parameter -is explicitely set to false). Also demonstrates the "step" parameter -introduced in 0.9.6 (show all years in drop-down boxes, instead of every -other year as default).

    - -
    - -
    - - - - - -
    - -

    Input field with a trigger image. Note that the Calendar.setup -function doesn't care if the trigger is a button, image, or anything else. -Also in this example we setup a different alignment, just to show how it's -done. The input field is read-only (that is set from HTML).

    - -
    - - - -
    -
    - - - - - -
    - -

    Hidden field, display area. The calendar now puts the date into 2 -elements: one is an input field of type "hidden"—so that the user -can't directly see or modify it— and one is a <span> element in -which the date is displayed. Note that if the trigger is not specified the -calendar will use the displayArea (or inputField as in the first example). -The display area can have it's own format. This is useful if, for instance, -we need to store one format in the database (thus pass it in the input -field) but we wanna show a friendlier format to the end-user.

    - -
    - -
    - -

    Your birthday: - Click to open date selector.

    - - - - - -
    - -

    Hidden field, display area, trigger image. Very similar to the -previous example. The difference is that we also have a trigger image.

    - -
    - -
    - -

    Your birthday: -- not entered -- .

    - - - - - -
    - -

    Hidden field, display area. Very much like the previous examples, -but we now disable some dates (all weekends, that is, Saturdays and -Sundays).

    - -
    - -
    - -

    Your birthday: - Click to open date selector.

    - - - - - - diff --git a/zioinfo/js/jscalendar-1.0/simple-2.html b/zioinfo/js/jscalendar-1.0/simple-2.html deleted file mode 100644 index b55bae85..00000000 --- a/zioinfo/js/jscalendar-1.0/simple-2.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - -Simple calendar setup [flat calendar] - - - - - - - - - - - - - - - - - -

    DHTML Calendar — for the impatient

    - -
    -

    - This page demonstrates how to setup a flat calendar. Examples of - popup calendars are available in another page. -

    -

    - The code in this page uses a helper function defined in - "calendar-setup.js". With it you can setup the calendar in - minutes. If you're not that impatient, ;-) complete documenation is - available. -

    -
    - - - -
    - -
    - - - -

    The positioning of the DIV that contains the calendar is entirely your -job. For instance, the "calendar-container" DIV from this page has the -following style: "float: right; margin-left: 1em; margin-bottom: 1em".

    - -

    Following there is the code that has been used to create this calendar. -You can find the full description of the Calendar.setup() function -in the calendar documenation.

    - -
    <div style="float: right; margin-left: 1em; margin-bottom: 1em;"
    -id="calendar-container"></div>
    -
    -<script type="text/javascript">
    -  function dateChanged(calendar) {
    -    // Beware that this function is called even if the end-user only
    -    // changed the month/year.  In order to determine if a date was
    -    // clicked you can use the dateClicked property of the calendar:
    -    if (calendar.dateClicked) {
    -      // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
    -      var y = calendar.date.getFullYear();
    -      var m = calendar.date.getMonth();     // integer, 0..11
    -      var d = calendar.date.getDate();      // integer, 1..31
    -      // redirect...
    -      window.location = "/" + y + "/" + m + "/" + d + "/index.php";
    -    }
    -  };
    -
    -  Calendar.setup(
    -    {
    -      flat         : "calendar-container", // ID of the parent element
    -      flatCallback : dateChanged           // our callback function
    -    }
    -  );
    -</script>
    - - - diff --git a/zioinfo/js/jscalendar-1.0/simple-3.html b/zioinfo/js/jscalendar-1.0/simple-3.html deleted file mode 100644 index c096e872..00000000 --- a/zioinfo/js/jscalendar-1.0/simple-3.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - -Simple calendar setup [flat calendar] - - - - - - - - - - - - - - - - - - - -

    DHTML Calendar — for the impatient

    - -
    -

    - This page demonstrates how to setup a flat calendar. Examples of - popup calendars are available in another page. -

    -

    - The code in this page uses a helper function defined in - "calendar-setup.js". With it you can setup the calendar in - minutes. If you're not that impatient, ;-) complete documenation is - available. -

    -
    - - - -
    - -
    - - - -

    The positioning of the DIV that contains the calendar is entirely your -job. For instance, the "calendar-container" DIV from this page has the -following style: "float: right; margin-left: 1em; margin-bottom: 1em".

    - -

    Following there is the code that has been used to create this calendar. -You can find the full description of the Calendar.setup() function -in the calendar documenation.

    - -
    <div style="float: right; margin-left: 1em; margin-bottom: 1em;"
    -id="calendar-container"></div>
    -
    -<script type="text/javascript">
    -  function dateChanged(calendar) {
    -    // Beware that this function is called even if the end-user only
    -    // changed the month/year.  In order to determine if a date was
    -    // clicked you can use the dateClicked property of the calendar:
    -    if (calendar.dateClicked) {
    -      // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
    -      var y = calendar.date.getFullYear();
    -      var m = calendar.date.getMonth();     // integer, 0..11
    -      var d = calendar.date.getDate();      // integer, 1..31
    -      // redirect...
    -      window.location = "/" + y + "/" + m + "/" + d + "/index.php";
    -    }
    -  };
    -
    -  Calendar.setup(
    -    {
    -      flat         : "calendar-container", // ID of the parent element
    -      flatCallback : dateChanged           // our callback function
    -    }
    -  );
    -</script>
    - - - diff --git a/zioinfo/js/jscalendar-1.0/skins/aqua/active-bg.gif b/zioinfo/js/jscalendar-1.0/skins/aqua/active-bg.gif deleted file mode 100644 index d608c546..00000000 Binary files a/zioinfo/js/jscalendar-1.0/skins/aqua/active-bg.gif and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/skins/aqua/dark-bg.gif b/zioinfo/js/jscalendar-1.0/skins/aqua/dark-bg.gif deleted file mode 100644 index 1dea48a8..00000000 Binary files a/zioinfo/js/jscalendar-1.0/skins/aqua/dark-bg.gif and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/skins/aqua/hover-bg.gif b/zioinfo/js/jscalendar-1.0/skins/aqua/hover-bg.gif deleted file mode 100644 index fbf94fc2..00000000 Binary files a/zioinfo/js/jscalendar-1.0/skins/aqua/hover-bg.gif and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/skins/aqua/menuarrow.gif b/zioinfo/js/jscalendar-1.0/skins/aqua/menuarrow.gif deleted file mode 100644 index 40c0aadf..00000000 Binary files a/zioinfo/js/jscalendar-1.0/skins/aqua/menuarrow.gif and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/skins/aqua/normal-bg.gif b/zioinfo/js/jscalendar-1.0/skins/aqua/normal-bg.gif deleted file mode 100644 index bdb50686..00000000 Binary files a/zioinfo/js/jscalendar-1.0/skins/aqua/normal-bg.gif and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/skins/aqua/rowhover-bg.gif b/zioinfo/js/jscalendar-1.0/skins/aqua/rowhover-bg.gif deleted file mode 100644 index 77153424..00000000 Binary files a/zioinfo/js/jscalendar-1.0/skins/aqua/rowhover-bg.gif and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/skins/aqua/status-bg.gif b/zioinfo/js/jscalendar-1.0/skins/aqua/status-bg.gif deleted file mode 100644 index 857108c4..00000000 Binary files a/zioinfo/js/jscalendar-1.0/skins/aqua/status-bg.gif and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/skins/aqua/theme.css b/zioinfo/js/jscalendar-1.0/skins/aqua/theme.css deleted file mode 100644 index 18dd6cf6..00000000 --- a/zioinfo/js/jscalendar-1.0/skins/aqua/theme.css +++ /dev/null @@ -1,236 +0,0 @@ -/* Distributed as part of The Coolest DHTML Calendar - Author: Mihai Bazon, www.bazon.net/mishoo - Copyright Dynarch.com 2005, www.dynarch.com -*/ - -/* The main calendar widget. DIV containing a table. */ - -div.calendar { position: relative; } - -.calendar, .calendar table { - border: 1px solid #bdb2bf; - font-size: 11px; - color: #000; - cursor: default; - background: url("normal-bg.gif"); - font-family: "trebuchet ms",verdana,tahoma,sans-serif; -} - -.calendar { - border-color: #797979; -} - -/* Header part -- contains navigation buttons and day names. */ - -.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ - text-align: center; /* They are the navigation buttons */ - padding: 2px; /* Make the buttons seem like they're pressing */ - background: url("title-bg.gif") repeat-x 0 100%; color: #000; - font-weight: bold; -} - -.calendar .nav { - font-family: verdana,tahoma,sans-serif; -} - -.calendar .nav div { - background: transparent url("menuarrow.gif") no-repeat 100% 100%; -} - -.calendar thead tr { background: url("title-bg.gif") repeat-x 0 100%; color: #000; } - -.calendar thead .title { /* This holds the current "month, year" */ - font-weight: bold; /* Pressing it will take you to the current date */ - text-align: center; - padding: 2px; - background: url("title-bg.gif") repeat-x 0 100%; color: #000; -} - -.calendar thead .headrow { /* Row containing navigation buttons */ -} - -.calendar thead .name { /* Cells containing the day names */ - border-bottom: 1px solid #797979; - padding: 2px; - text-align: center; - color: #000; -} - -.calendar thead .weekend { /* How a weekend day name shows in header */ - color: #c44; -} - -.calendar thead .hilite { /* How do the buttons in header appear when hover */ - background: url("hover-bg.gif"); - border-bottom: 1px solid #797979; - padding: 2px 2px 1px 2px; -} - -.calendar thead .active { /* Active (pressed) buttons in header */ - background: url("active-bg.gif"); color: #fff; - padding: 3px 1px 0px 3px; - border-bottom: 1px solid #797979; -} - -.calendar thead .daynames { /* Row containing the day names */ - background: url("dark-bg.gif"); -} - -/* The body part -- contains all the days in month. */ - -.calendar tbody .day { /* Cells containing month days dates */ - font-family: verdana,tahoma,sans-serif; - width: 2em; - color: #000; - text-align: right; - padding: 2px 4px 2px 2px; -} -.calendar tbody .day.othermonth { - font-size: 80%; - color: #999; -} -.calendar tbody .day.othermonth.oweekend { - color: #f99; -} - -.calendar table .wn { - padding: 2px 3px 2px 2px; - border-right: 1px solid #797979; - background: url("dark-bg.gif"); -} - -.calendar tbody .rowhilite td, -.calendar tbody .rowhilite td.wn { - background: url("rowhover-bg.gif"); -} - -.calendar tbody td.today { font-weight: bold; /* background: url("today-bg.gif") no-repeat 70% 50%; */ } - -.calendar tbody td.hilite { /* Hovered cells */ - background: url("hover-bg.gif"); - padding: 1px 3px 1px 1px; - border: 1px solid #bbb; -} - -.calendar tbody td.active { /* Active (pressed) cells */ - padding: 2px 2px 0px 2px; -} - -.calendar tbody td.weekend { /* Cells showing weekend days */ - color: #c44; -} - -.calendar tbody td.selected { /* Cell showing selected date */ - font-weight: bold; - border: 1px solid #797979; - padding: 1px 3px 1px 1px; - background: url("active-bg.gif"); color: #fff; -} - -.calendar tbody .disabled { color: #999; } - -.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ - visibility: hidden; -} - -.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ - display: none; -} - -/* The footer part -- status bar and "Close" button */ - -.calendar tfoot .footrow { /* The in footer (only one right now) */ - text-align: center; - background: #565; - color: #fff; -} - -.calendar tfoot .ttip { /* Tooltip (status bar) cell */ - padding: 2px; - background: url("status-bg.gif") repeat-x 0 0; color: #000; -} - -.calendar tfoot .hilite { /* Hover style for buttons in footer */ - background: #afa; - border: 1px solid #084; - color: #000; - padding: 1px; -} - -.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ - background: #7c7; - padding: 2px 0px 0px 2px; -} - -/* Combo boxes (menus that display months/years for direct selection) */ - -.calendar .combo { - position: absolute; - display: none; - top: 0px; - left: 0px; - width: 4em; - cursor: default; - border-width: 0 1px 1px 1px; - border-style: solid; - border-color: #797979; - background: url("normal-bg.gif"); color: #000; - z-index: 100; - font-size: 90%; -} - -.calendar .combo .label, -.calendar .combo .label-IEfix { - text-align: center; - padding: 1px; -} - -.calendar .combo .label-IEfix { - width: 4em; -} - -.calendar .combo .hilite { - background: url("hover-bg.gif"); color: #000; -} - -.calendar .combo .active { - background: url("active-bg.gif"); color: #fff; - font-weight: bold; -} - -.calendar td.time { - border-top: 1px solid #797979; - padding: 1px 0px; - text-align: center; - background: url("dark-bg.gif"); -} - -.calendar td.time .hour, -.calendar td.time .minute, -.calendar td.time .ampm { - padding: 0px 5px 0px 6px; - font-weight: bold; - background: url("normal-bg.gif"); color: #000; -} - -.calendar td.time .hour, -.calendar td.time .minute { - font-family: monospace; -} - -.calendar td.time .ampm { - text-align: center; -} - -.calendar td.time .colon { - padding: 0px 2px 0px 3px; - font-weight: bold; -} - -.calendar td.time span.hilite { - background: url("hover-bg.gif"); color: #000; -} - -.calendar td.time span.active { - background: url("active-bg.gif"); color: #fff; -} diff --git a/zioinfo/js/jscalendar-1.0/skins/aqua/title-bg.gif b/zioinfo/js/jscalendar-1.0/skins/aqua/title-bg.gif deleted file mode 100644 index 6a541b3b..00000000 Binary files a/zioinfo/js/jscalendar-1.0/skins/aqua/title-bg.gif and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/skins/aqua/today-bg.gif b/zioinfo/js/jscalendar-1.0/skins/aqua/today-bg.gif deleted file mode 100644 index 7161538c..00000000 Binary files a/zioinfo/js/jscalendar-1.0/skins/aqua/today-bg.gif and /dev/null differ diff --git a/zioinfo/js/jscalendar-1.0/test-position.html b/zioinfo/js/jscalendar-1.0/test-position.html deleted file mode 100644 index 55448716..00000000 --- a/zioinfo/js/jscalendar-1.0/test-position.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - JS Calendar (positioning test) - - - - - - - - - - - - -
    - - - - - - - -
    - - - diff --git a/zioinfo/js/jscalendar-1.0/test.php b/zioinfo/js/jscalendar-1.0/test.php deleted file mode 100644 index c9c2e288..00000000 --- a/zioinfo/js/jscalendar-1.0/test.php +++ /dev/null @@ -1,116 +0,0 @@ - - - - - -Test for calendar.php - - - section; it will "echo" code that loads the calendar -// scripts and theme file. -$calendar->load_files(); - -?> - - - - - - - -

    Form submitted

    - - $val) { - echo htmlspecialchars($key) . ' = ' . htmlspecialchars($val) . '
    '; -} ?> - - - -

    Calendar.php test

    - -
    - Select language: -
    - NOTE: as of this release, 0.9.6, only "EN" and "RO", which I - maintain, function correctly. Other language files do not work - because they need to be updated. If you update some language file, - please consider sending it back to me so that I can include it in the - calendar distribution. -
    -
    - -
    - - - - - - - -
    - Date 1: - - make_input_field( - // calendar options go here; see the documentation and/or calendar-setup.js - array('firstDay' => 1, // show Monday first - 'showsTime' => true, - 'showOthers' => true, - 'ifFormat' => '%Y-%m-%d %I:%M %P', - 'timeFormat' => '12'), - // field attributes go here - array('style' => 'width: 15em; color: #840; background-color: #ff8; border: 1px solid #000; text-align: center', - 'name' => 'date1', - 'value' => strftime('%Y-%m-%d %I:%M %P', strtotime('now')))); ?> -
    - -
    - - -
    - - - - - diff --git a/zioinfo/js/key.js b/zioinfo/js/key.js deleted file mode 100644 index 304ed2f6..00000000 --- a/zioinfo/js/key.js +++ /dev/null @@ -1,223 +0,0 @@ -/*-------------------------------------------------------------------+ - * 1. ϸ: key.js - * 2. : Key Է ϱ Լ Ѵ. - * 3. : string.js - * 4. ۼ: - * 5. ۼ: 2006.10.10. - -------------------------------------------------------------------*/ - - - -/** - * Ű Control Key̸ true, ƴϸ false - */ -function isControlKey() { - var key = event.keyCode; - - return ( - key == 8 // - || key == 9 // - || key == 13 // - || key == 35 // - || key == 36 // - || key == 37 // <> - || key == 39 // <> - || key == 46 // - || key == 144 // - ); -} - - -/** - * Ű Ű true, ƴϸ false - */ -function isDigitKey() { - var key = event.keyCode; - - return ( key >= 48 && key <= 57 ) || ( key >= 96 && key <= 105 ); -} - - -/** - * Ű ƯŰ̸ true, ƴϸ false; - */ -function isSpecialCharKey() { - -} - - -/** - * ڸ Էµǰ Ѵ. - */ -function limitAsDigit() { - event.returnValue = isControlKey() || isDigitKey(); -} - - -/** - * Է¹ް ϴ onKeyDown̺Ʈ ڵ鷯 - */ -function limitAsInt(limit) { - if ( isControlKey() ) { - event.returnValue = true; - return ; - } - - var key = event.keyCode; - var str = event.srcElement.value; - - var intLengthValid = true; - - // ڸ á ˻Ͽ á - // ̻ Է Ѵ. ڸ - // տ ȣ(+/-) Ѵ. - if ( limit != undefined ) { - var intLength = removeChar(str, ',').length; - if ( str.charAt(0) == '-' || str.charAt(0) == '+' ) { - intLength--; - } - - intLengthValid = intLength < limit; - } - - event.returnValue = intLengthValid && ( - isDigitKey() - || key == 189 || key == 109 // <-> - ); -} - - -/** - * Է¹ް ϴ onKeyDown̺Ʈ ڵ鷯 - */ -function limitAsPlusInt(limit) { - if ( isControlKey() ) { - event.returnValue = true; - return ; - } - - var key = event.keyCode; - var str = event.srcElement.value; - - var intLengthValid = true; - - // ڸ á ˻Ͽ á - // ̻ Է Ѵ. - if ( limit != undefined ) { - intLengthValid = removeChar(str, ',').length < limit; - } - - event.returnValue = intLengthValid && isDigitKey(); -} - - -/** - * Ǽ Է¹ް ϴ onKeyDown̺Ʈ ڵ鷯 - */ -function limitAsFloat(limit) { - if ( isControlKey() ) { - event.returnValue = true; - return ; - } - - var str = event.srcElement.value; - var key = event.keyCode; - - var dotNoValid = true; - - // Ҽ ڸ á ˻Ͽ á - // ̻ Է Ѵ. - if ( limit != undefined ) { - var dotIndex = str.lastIndexOf('.'); - - if ( dotIndex > -1 ) { - dotNoValid = str.length - dotIndex - 1 < limit; - } - } - - var dotValid = true; - - // Ҽ ̹ Ҽ ϰ Ѵ. - if ( str.indexOf('.') > -1 && ( key == 190 || key == 229 ) ) { - dotValid = false; - } - - event.returnValue = dotValid && dotNoValid && ( - isDigitKey() - || key == 189 || key == 109 // <-> - || key == 190 || key == 229 || key == 110 // <.> - ); -} - - -/** - * Ǽ Է¹ް ϴ onKeyDown̺Ʈ - */ -function limitAsPlusFloat(limit) { - if ( isControlKey() ) { - event.returnValue = true; - return ; - } - - var str = event.srcElement.value; - var key = event.keyCode; - - var dotNoValid = true; - - // Ҽ ڸ á ˻Ͽ á - // ̻ Է Ѵ. - if ( limit != undefined ) { - var dotIndex = str.lastIndexOf('.'); - - if ( dotIndex > -1 ) { - dotNoValid = str.length - dotIndex - 1 < limit; - } - } - - var dotValid = true; - - // Ҽ ̹ Ҽ ϰ Ѵ. - if ( str.indexOf('.') > -1 && ( key == 190 || key == 229 ) ) { - dotValid = false; - } - - event.returnValue = dotValid && dotNoValid && ( - isDigitKey() - || key == 190 || key == 229 || key == 110 // <.> - ); -} - -/** - * ѱ۰ ̽ Key Ѵ. - */ -function limitAsHangul() { - if ( isControlKey() ) { - event.returnValue = true; - return ; - } - - var key = event.keyCode; - - event.returnValue = ( - key == 32 // ̽Ű - || key == 229 // ѱŰ. ٵ ѱ 229ϱ? - ); -} - - -/** - * ѱ۰ , ̽ Key Ѵ. - */ -function limitAsHangulAndNo() { - if ( isControlKey() ) { - event.returnValue = true; - return ; - } - - var key = event.keyCode; - - event.returnValue = isDigitKey() || ( - key == 32 // ̽Ű - || key == 229 // ѱŰ. ٵ ѱ 229ϱ? - ); -} diff --git a/zioinfo/js/link.js b/zioinfo/js/link.js deleted file mode 100644 index 466aa6da..00000000 --- a/zioinfo/js/link.js +++ /dev/null @@ -1,383 +0,0 @@ - - -/******************* **********************/ - - -/* >迬 */ - - //> - function link_S1B1() { - gotoServiceListPage(1, '2140214040421', ' '); - } - //>áǼ - function link_S1B2() { - gotoServiceListPage(1, '21402140404210','áǼ'); - } - //>() - function link_S1B3() { - gotoServiceListPage(1, '21402140404211', '() '); - } - //> ȸ - function link_S1B4() { - gotoServiceListPage(1, '21402140404212', ' ȸ'); - } - //>ȯ - function link_S1B5() { - gotoServiceListPage(1, '21402140404213', 'ȯ'); - } - //> ȭ - function link_S1B6() { - gotoServiceListPage(1, '21402140404214', ' ȭ'); - } - //> - function link_S1B7() { - gotoServiceListPage(1, '21402140404215', ''); - } - //>ҵ - function link_S1B8() { - gotoServiceListPage(1, '21402140404216', 'ҵ'); - } - //> - function link_S1B9() { - gotoServiceListPage(1, '21402140404217', ' '); - } - //>α - function link_S1B10() { - gotoServiceListPage(1, '2140214040422', 'α'); - } - //>뵿 - function link_S1B11() { - gotoServiceListPage(1, '2140214040423', '뵿'); - } - //>üѰ - function link_S1B12() { - gotoServiceListPage(1, '2140214040424', 'üѰ'); - } - //>  - function link_S1B13() { - gotoServiceListPage(1, '2140214040425', ' '); - } - //>󸲼 - function link_S1B14() { - gotoServiceListPage(1, '2140214040426', '󸲼'); - } - //> - function link_S1B15() { - gotoServiceListPage(1, '2140214040427', ''); - } - //>⡤ - function link_S1B16() { - gotoServiceListPage(1, '2140214040428', '⡤'); - } - //>롤 Ÿ - function link_S1B17() { - gotoServiceListPage(1, '2140214040429', '롤 Ÿ '); - } - - -/* >ϰ */ - - //> - function link_S1B21() { - gotoServiceListPage(1, '21402140401', ' '); - } - //> () - function link_S1B22() { - gotoServiceListPage(1, '21402140402', ' () '); - } - //> ֿǥ - function link_S1B23() { - gotoServiceListPage(1, '21402140403', ' ֿǥ'); - } - //>η - function link_S1B24() { - gotoServiceListPage(1, '21402140404', 'η'); - } - -/********************* Ӱ ߰ κ 2007.7.27 - ̶ *********************************/ - -/* >ֹε */ - - //>ϵ - function link_S1B31() { - gotoServiceListPage(1, '21402140701', 'ϵ'); - } - //> ñ - function link_S1B32() { - gotoServiceListPage(1, '21402140702', ' ñ'); - } - -/* >ü */ - - //>ϵ - function link_S1B41() { - gotoServiceListPage(1, '21402140801', 'ϵ'); - //gotoUrl('industry/industry_01.html'); - } - //> ñ - function link_S1B42() { - gotoServiceListPage(1, '21402140802', ' ñ'); - //gotoUrl('industry/industry_02.html'); - } - - -/******************* **********************/ - - -/* >α */ - - //>α - function link_S2B1() { - gotoServiceListPage(2, '214010001001', 'α'); - } - //>ױ - function link_S2B2() { - gotoServiceListPage(2, '214010001002', 'ױ'); - } - - - -/* >Ϲ */ - - //> (߰) - function link_S2B16() { - gotoServiceListPage(2, '21401000201', ''); - } - - //> - function link_S2B11() { - gotoServiceListPage(2, '214010002001', ''); - } - //> - function link_S2B12() { - gotoServiceListPage(2, '214010002002', ''); - } - //> - function link_S2B13() { - gotoServiceListPage(2, '214010002003', ''); - } - //>뵿 - function link_S2B14() { - gotoServiceListPage(2, '214010002005', '뵿'); - } - //>롤 - function link_S2B15() { - gotoServiceListPage(2, '214010002006', '롤'); - } - //>߹׻ȸں - function link_S2B16() { - gotoServiceListPage(2, '214010002007', '߹׻ȸں'); - } - - -/* >λȰ */ - - //> - function link_S2B21() { - gotoServiceListPage(2, '214010003001', ''); - } - //>ҵ - function link_S2B22() { - gotoServiceListPage(2, '214010003002', 'ҵ'); - } - //>ְſͱ - function link_S2B23() { - gotoServiceListPage(2, '214010003003', 'ְſͱ'); - } - //>ιڵ - function link_S2B24() { - gotoServiceListPage(2, '214010003004', 'ιڵ'); - } - //> - function link_S2B25() { - gotoServiceListPage(2, '214010003005', ''); - } - //>ǡ - function link_S2B26() { - gotoServiceListPage(2, '214010003006', 'ǡ'); - } - //>ȭͿ - function link_S2B27() { - gotoServiceListPage(2, '214010003007', 'ȭͿ'); - } - //> - function link_S2B28() { - gotoServiceListPage(2, '214010003008', ''); - } - //> - function link_S2B29() { - gotoServiceListPage(2, '214010003009', ''); - } - //>ο - function link_S2B30() { - gotoServiceListPage(2, '2140100030011', 'ο'); - } - //>ȯ - function link_S2B31() { - gotoServiceListPage(2, '2140100030012', 'ȯ'); - } - - -/* >Ϲ */ - - //> - function link_S2B41() { - gotoServiceListPage(2, '214010004001', ''); - } - //>ȸ - function link_S2B42() { - gotoServiceListPage(2, '214010004002', 'ȸ'); - } - //>Ÿ - function link_S2B43() { - gotoServiceListPage(2, '214010004003', 'Ÿ'); - } - - - - /******************* DZ **********************/ - - //DZ> - function link_S3B1() { - gotoServiceListPage(3, '214020001', ''); - } - //DZ>Ȯ - function link_S3B2() { - gotoServiceListPage(3, '214020002', 'Ȯ'); - } - //DZ>ġ - function link_S3B3() { - gotoServiceListPage(3, '214020003', 'ġ'); - } - //DZ> - function link_S3B4() { - gotoServiceListPage(3, '214020004', ''); - } - //DZ>ȭ - function link_S3B5() { - gotoServiceListPage(3, '214020005', 'ȭ'); - } - //DZ>󸲼걹 - function link_S3B6() { - gotoServiceListPage(3, '214020006', '󸲼걹'); - } - //DZ> - function link_S3B7() { - gotoServiceListPage(3, '214020007', ''); - } - //DZ>Ǽ - function link_S3B8() { - gotoServiceListPage(3, '214020008', 'Ǽ'); - } - //DZ>± - function link_S3B9() { - gotoServiceListPage(3, '214020009', '±'); - } - //DZ>ȯ汹 - function link_S3B10() { - gotoServiceListPage(3, '214020010', 'ȯ汹'); - } - - - - /******************* **********************/ - - //>ο - function link_S4B1() { - gotoServiceListPage(4, '214040001', 'ο'); - } - //>깰ǰ - function link_S4B2() { - gotoServiceListPage(4, '214040002', '깰ǰ'); - } - //>ڿ - function link_S4B3() { - gotoServiceListPage(4, '214040003', 'ڿ'); - } - //>ֻȸǼ - function link_S4B4() { - gotoServiceListPage(4, '214040004', 'ֻȸǼ'); - } - //>ö - function link_S4B5() { - gotoServiceListPage(4, '214040005', 'ö'); - } - //>繫 - function link_S4B6() { - gotoServiceListPage(4, '214040006', '繫'); - } - - - - /******************* 纰 **********************/ - - - //纰>񽺾 - function link_S5B1() { - gotoServiceListPage(5, '2140300001', '񽺾'); - } - //纰>() - function link_S5B2() { - gotoServiceListPage(5, '2140300002', '()'); - } - //纰>󸲾 - function link_S5B3() { - gotoServiceListPage(5, '2140300003', '󸲾'); - } - //纰>⺻ - function link_S5B4() { - gotoServiceListPage(5, '2140300004', '⺻'); - } - //纰>Ȱα - function link_S5B5() { - gotoServiceListPage(5, '2140300005', 'Ȱα'); - } - //纰>α - function link_S5B6() { - gotoServiceListPage(5, '214030000', 'α'); - } - - - -/******************* ֿȲ **********************/ - - //ֿȲ>ȹ - function link_S6B1() { - gotoServiceListPage(6, '214050001', 'ȹ'); - } - //ֿȲ>ġ - function link_S6B2() { - gotoServiceListPage(6, '214050002', 'ġ'); - } - //ֿȲ> - function link_S6B3() { - gotoServiceListPage(6, '214050003', ''); - } - //ֿȲ>ȭ - function link_S6B4() { - gotoServiceListPage(6, '214050004', 'ȭ'); - } - //ֿȲ>󸲼걹 - function link_S6B5() { - gotoServiceListPage(6, '214050005', '󸲼걹'); - } - //ֿȲ> - function link_S6B6() { - gotoServiceListPage(6, '214050006', ''); - } - //ֿȲ>Ǽ - function link_S6B7() { - gotoServiceListPage(6, '214050007', 'Ǽ'); - } - //ֿȲ>ҹ溻 - function link_S6B8() { - gotoServiceListPage(6, '214050008', 'ҹ溻'); - } - //ֿȲ>ȯ汹 - function link_S6B9() { - gotoServiceListPage(6, '214050009', 'ȯ汹'); - } - //ֿȲ>ȯ濬 - function link_S6B10() { - gotoServiceListPage(6, '214050010', 'ȯ濬'); - } diff --git a/zioinfo/js/main.js b/zioinfo/js/main.js deleted file mode 100644 index 0abc7505..00000000 --- a/zioinfo/js/main.js +++ /dev/null @@ -1,117 +0,0 @@ -window.defaultStatus="hq.navy.mil"; - -function go_menu(menuCode) { - parent.menu.location.replace("menu.do?selectMenuCode="+menuCode); -} - -function MM_swapImgRestore() { //v3.0 - var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { - d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} - if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0&&parent.frames.length) { - d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); - } - if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 112 && event.keyCode <= 123) ) { - event.keyCode = 0; - event.cancelBubble = true; - event.returnValue = false; - } -} -document.onkeydown=keypressed ; - -function window_center(url, name, width, height) { - var str = "height=" + height + ",innerHeight=" + height + ", scrollbars=no, "; - str += ",width=" + width + ",innerWidth=" + width; - if (window.screen) { - var ah = screen.availHeight - 30; - var aw = screen.availWidth - 10; - var xc = (aw - width) / 2; - var yc = (ah - height) / 2; - str += ",left=" + xc + ",screenX=" + xc; - str += ",top=" + yc + ",screenY=" + yc; - } - return window.open(url, name, str); -} \ No newline at end of file diff --git a/zioinfo/js/matiComm.js b/zioinfo/js/matiComm.js deleted file mode 100644 index b1b73aa6..00000000 --- a/zioinfo/js/matiComm.js +++ /dev/null @@ -1,208 +0,0 @@ -function FormChecker(checkForm) { - this.checkForm = checkForm; - this.validatorList = new Array(); -} -FormChecker.prototype.checkRequired = function(fieldName, errorMessage, focus) { - this.validatorList.push(new RequiredValidator(this.checkForm, fieldName, errorMessage, focus)); -} -FormChecker.prototype.checkMaxLength = function(fieldName, maxLength, errorMessage, focus) { - this.validatorList.push(new MaxLengthValidator(this.checkForm, fieldName, maxLength, errorMessage, focus)); -} -FormChecker.prototype.checkMaxLengthByte = function(fieldName, maxLength, errorMessage, focus) { - this.validatorList.push(new MaxLengthByteValidator(this.checkForm, fieldName, maxLength, errorMessage, focus)); -} - -FormChecker.prototype.checkMinLength = function(fieldName, minLength, errorMessage, focus) { - this.validatorList.push(new MinLengthValidator(this.checkForm, fieldName, minLength, errorMessage, focus)); -} -FormChecker.prototype.checkMinLengthByte = function(fieldName, minLength, errorMessage, focus) { - this.validatorList.push(new MinLengthByteValidator(this.checkForm, fieldName, minLength, errorMessage, focus)); -} - -FormChecker.prototype.checkRegex = function(fieldName, regex, errorMessage, focus) { - this.validatorList.push( - new RegexValidator(this.checkForm, fieldName, regex, errorMessage, focus)); -} - -FormChecker.prototype.checkAlphaNum = function(fieldName, errorMessage, focus) { - this.validatorList.push( - new RegexValidator(this.checkForm, fieldName, - /^[a-zA-Z0-9]+$/, errorMessage, focus)); -} - -FormChecker.prototype.checkOnlyNumber = function(fieldName, errorMessage, focus) { - this.validatorList.push( - new RegexValidator(this.checkForm, fieldName, - /^[0-9]+$/, errorMessage, focus)); -} - -FormChecker.prototype.checkDecimal = function(fieldName, errorMessage, focus) { - this.validatorList.push( - new RegexValidator(this.checkForm, fieldName, - /^(\-)?[0-9]*(\.[0-9]*)?$/, errorMessage, focus)); -} - -FormChecker.prototype.checkEmail = function(fieldName, errorMessage, focus) { - this.validatorList.push( - new RegexValidator(this.checkForm, fieldName, - /^((\w|[\-\.])+)@((\w|[\-\.])+)\.([A-Za-z]+)$/, errorMessage, focus)); -} - -FormChecker.prototype.checkSelected = function(fieldName, firstIdx, errorMessage, focus) { - this.validatorList.push(new SelectionValidator(this.checkForm, fieldName, firstIdx, errorMessage, focus)); -} - -FormChecker.prototype.checkAtLeastOneChecked = function(fieldName, errorMessage, focus) { - this.validatorList.push(new AtLeastOneCheckValidator(this.checkForm, fieldName, errorMessage, focus)); -} - -FormChecker.prototype.validate = function() { - for (vali = 0 ; vali < this.validatorList.length ; vali ++ ) { - validator = this.validatorList[vali]; - if (validator.validate() == false) { - alert(validator.getErrorMessage()); - if (validator.isFocus() == true) { - this.checkForm[validator.getFieldName()].focus(); - } - return false; - } - } - return true; -} - -FormChecker.prototype.getForm = function() { - return this.checkForm; -} - - -// Validator is base class of all validators -function Vaildator() { -} -Vaildator.prototype.getFieldName = function() { - return this.fieldName; -} -Vaildator.prototype.getErrorMessage = function() { - return this.errorMessage; -} -Vaildator.prototype.isFocus = function() { - return this.focus; -} - -// required validator -function RequiredValidator(form, fieldName, errorMessage, focus) { - this.form = form; - this.fieldName = fieldName; - this.errorMessage = errorMessage; - this.focus = focus; -} -RequiredValidator.prototype = new Vaildator; -RequiredValidator.prototype.validate = function() { - return this.form[this.fieldName].value != ''; -} - -// max length validator -function MaxLengthValidator(form, fieldName, maxLength, errorMessage, focus) { - this.form = form; - this.fieldName = fieldName; - this.errorMessage = errorMessage; - this.focus = focus; - this.maxLength = maxLength; -} -MaxLengthValidator.prototype = new Vaildator; -MaxLengthValidator.prototype.validate = function() { - return this.form[this.fieldName].value.length <= this.maxLength; -} - -// max length(byte) validator -function MaxLengthByteValidator(form, fieldName, maxLength, errorMessage, focus) { - this.form = form; - this.fieldName = fieldName; - this.errorMessage = errorMessage; - this.focus = focus; - this.maxLength = maxLength; -} -MaxLengthByteValidator.prototype = new Vaildator; -MaxLengthByteValidator.prototype.validate = function() { - str = this.form[this.fieldName].value; - return(str.length+(escape(str)+"%u").match(/%u/g).length-1) <= this.maxLength; -} - -// min length validator -function MinLengthValidator(form, fieldName, minLength, errorMessage, focus) { - this.form = form; - this.fieldName = fieldName; - this.errorMessage = errorMessage; - this.focus = focus; - this.minLength = minLength; -} -MinLengthValidator.prototype = new Vaildator; -MinLengthValidator.prototype.validate = function() { - return this.form[this.fieldName].value.length >= this.minLength; -} - -// min length(byte) validator -function MinLengthByteValidator(form, fieldName, minLength, errorMessage, focus) { - this.form = form; - this.fieldName = fieldName; - this.errorMessage = errorMessage; - this.focus = focus; - this.minLength = minLength; -} -MinLengthByteValidator.prototype = new Vaildator; -MinLengthByteValidator.prototype.validate = function() { - str = this.form[this.fieldName].value; - return(str.length+(escape(str)+"%u").match(/%u/g).length-1) >= this.minLength; -} - -// regex pattern validator -function RegexValidator(form, fieldName, regex, errorMessage, focus) { - this.form = form; - this.fieldName = fieldName; - this.regex = regex; - this.errorMessage = errorMessage; - this.focus = focus; -} -RegexValidator.prototype = new Vaildator; -RegexValidator.prototype.validate = function() { - var str = this.form[this.fieldName].value; - if (str.length == 0) return true; - return str.search(this.regex) != -1; -} - -// check selected -function SelectionValidator(form, fieldName, firstIdx, errorMessage, focus) { - this.form = form; - this.fieldName = fieldName; - this.firstIdx = firstIdx; - this.errorMessage = errorMessage; - this.focus = focus; -} -SelectionValidator.prototype = new Vaildator; -SelectionValidator.prototype.validate = function() { - var idx = this.form[this.fieldName].selectedIndex; - return idx >= this.firstIdx; -} - -// check checkbox checked -function AtLeastOneCheckValidator(form, fieldName, errorMessage, focus) { - this.form = form; - this.fieldName = fieldName; - this.errorMessage = errorMessage; - this.focus = focus; -} -AtLeastOneCheckValidator.prototype = new Vaildator; -AtLeastOneCheckValidator.prototype.validate = function() { - ele = this.form[this.fieldName]; - if (typeof(ele[0]) != "undefined") { - // 2~ - for (var idxe = 0 ; idxe < ele.length ; idxe++) { - if (ele[idxe].checked == true) { - return true; - } - } - return false; - } else { - // only 1 - return ele.checked == true; - } -} diff --git a/zioinfo/js/menu.js b/zioinfo/js/menu.js deleted file mode 100644 index dc9c92f9..00000000 --- a/zioinfo/js/menu.js +++ /dev/null @@ -1,12 +0,0 @@ -function layer_over() { - $('subMenuZone').style.overflowX = ""; - $('subMenuZone').style.overflowY = "auto"; - $('subMenuZone').style.border = "1px solid #eeeeee"; - $('subMenuZone').style.background = "white"; -} -function layer_out() { //v3.0 - $('subMenuZone').style.overflowX = "hidden"; - $('subMenuZone').style.overflowY = "hidden"; - $('subMenuZone').style.border = "1px solid #FFFFFF"; - $('subMenuZone').style.background = ""; -} diff --git a/zioinfo/js/mtmcode.js b/zioinfo/js/mtmcode.js deleted file mode 100644 index 9ca6d50a..00000000 --- a/zioinfo/js/mtmcode.js +++ /dev/null @@ -1,937 +0,0 @@ -function MTMenuItem(text, url, target, tooltip, icon, openIcon) { - this.text = text; - this.url = url ? url : ""; - this.target = target ? target : (MTMDefaultTarget ? MTMDefaultTarget : ""); - this.tooltip = tooltip; - this.icon = icon ? icon : ""; - this.openIcon = openIcon ? openIcon : ""; // used for addSubItem - - this.number = MTMNumber++; - - this.parentNode = null; - this.submenu = null; - this.expanded = false; - this.MTMakeSubmenu = MTMakeSubmenu; - this.makeSubmenu = MTMakeSubmenu; - this.addSubItem = MTMAddSubItem; - MTMLastItem = this; -} - -function MTMakeSubmenu(menu, isExpanded, collapseIcon, expandIcon) { - this.submenu = menu; - this.expanded = isExpanded; - this.collapseIcon = collapseIcon ? collapseIcon : "menu_folder_closed.gif"; - this.expandIcon = expandIcon ? expandIcon : "menu_folder_open.gif"; - - var i; - for(i = 0; i < this.submenu.items.length; i++) { - this.submenu.items[i].parentNode = this; - if(this.submenu.items[i].expanded) { - this.expanded = true; - } - } -} - -function MTMakeLastSubmenu(menu, isExpanded, collapseIcon, expandIcon) { - this.items[this.items.length-1].makeSubmenu(menu, isExpanded, collapseIcon, expandIcon); -} - -function MTMAddSubItem(item) { - if(this.submenu == null){ - this.MTMakeSubmenu(new MTMenu(), false, this.icon, this.openIcon); - } - this.submenu.MTMAddItem(item); -} - -/****************************************************************************** -* Define the Menu object. * -******************************************************************************/ - -function MTMenu() { - this.items = new Array(); - this.MTMAddItem = MTMAddItem; - this.addItem = MTMAddItem; - this.makeLastSubmenu = MTMakeLastSubmenu; -} - -function MTMAddItem() { - if(arguments[0].toString().indexOf("[object Object]") != -1) { - this.items[this.items.length] = arguments[0]; - } else { - this.items[this.items.length] = new MTMenuItem(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]); - } -} - -/****************************************************************************** -* Define the icon list, addIcon function and MTMIcon item. * -******************************************************************************/ - -function IconList() { - this.items = new Array(); - this.addIcon = addIcon; -} - -function addIcon(item) { - this.items[this.items.length] = item; -} - -function MTMIcon(iconfile, match, type) { - this.file = iconfile; - this.match = match; - this.type = type; -} - -/****************************************************************************** -* Define the stylesheet rules objects and methods. * -******************************************************************************/ - -function MTMstyleRuleSet() { - this.rules = new Array(); - this.addRule = MTMaddStyleRule; -} - -function MTMaddStyleRule(thisSelector, thisStyle) { - this.rules[this.rules.length] = new MTMstyleRule(thisSelector, thisStyle); -} - -function MTMstyleRule(thisSelector, thisStyle) { - this.selector = thisSelector; - this.style = thisStyle; -} - -/****************************************************************************** -* The MTMBrowser object. A custom "user agent" that'll define the browser * -* seen from the menu's point of view. * -******************************************************************************/ - -function MTMBrowser() { - // default properties and values - this.cookieEnabled = true; - this.preHREF = ""; - this.MTMable = false; - this.cssEnabled = true; - this.browserType = "other"; - this.majVersion = null; - this.DOMable = null; - - // properties concerning output document - this.menuFrame = null; - this.document = null; - this.head = null; - this.menuTable = null; - - // methods - this.setDocument = MTMsetDocument; - this.getFrames = MTMgetFrames; - this.appendElement = MTMappendElement; - this.resolveURL = MTMresolveURL; - - if(navigator.userAgent.indexOf("Opera") != -1) { - if(navigator.appName == "Opera") { - this.majVersion = parseInt(navigator.appVersion); - } else { - this.majVersion = parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("Opera")+6)); - } - if(this.majVersion >= 5) { - this.MTMable = true; - this.browserType = "O"; - } - } else if(navigator.appName == "Netscape" && navigator.userAgent.indexOf("WebTV") == -1) { - this.MTMable = true; - this.browserType = "NN"; - if(parseInt(navigator.appVersion) == 3) { - this.majVersion = 3; - this.cssEnabled = false; - } else if(parseInt(navigator.appVersion) >= 4) { - this.majVersion = parseInt(navigator.appVersion) == 4 ? 4 : 5; - if(this.majVersion >= 5) { - this.DOMable = true; - } - } - } else if(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4) { - this.MTMable = true; - if(navigator.userAgent.toLowerCase().indexOf("mac") != -1) { - this.browserType = "NN"; - this.majVersion = 4; - this.DOMable = false; - } else { - this.browserType = "IE"; - this.majVersion = navigator.appVersion.indexOf("MSIE 6.") != -1 ? 6 : (navigator.appVersion.indexOf("MSIE 5.") != -1 ? 5 : 4); - if(this.majVersion >= 5) { - this.DOMable = true; - } - } - } - this.preHREF = location.href.substring(0, location.href.lastIndexOf("/") +1) -} - -function MTMsetDocument(menuFrame) { - // called by function MTMgetFrames and sets - // properties .menuFrame and .document, and for DOMable browsers also .head - this.menuFrame = menuFrame; - this.document = menuFrame.document; - - if(this.DOMable) { - this.head = this.browserType == "IE" ? this.document.all.tags('head')[0] : this.document.getElementsByTagName('head').item(0); - } -} - -function MTMresolveURL(thisURL, testLocal) { - // resolves 'thisURL' against this.preHREF depending on whether it's an absolute - // or relative URL. if 'testLocal' is set it'll return true for local (relative) URLs. - var absoluteArray = new Array("http://", "https://", "mailto:", "ftp://", "telnet:", "news:", "gopher:", "nntp:", "javascript:", "file:"); - - var tempString = "", i; - for(i = 0; i < absoluteArray.length; i++) { - if(thisURL.indexOf(absoluteArray[i]) == 0) { - tempString = thisURL; - break; - } - } - if(testLocal) { - return(tempString == "" ? true : false); - } - - if(!tempString) { - if(thisURL.indexOf("/") == 0) { - tempString = location.protocol + "//" + location.hostname + thisURL; - } else if(thisURL.indexOf("../") == 0) { - tempString = this.preHREF; - do { - thisURL = thisURL.substr(3); - tempString = tempString.substr(0, tempString.lastIndexOf("/", tempString.length-2) +1); - } while(thisURL.indexOf("../") == 0); - tempString += thisURL; - } else { - tempString = this.preHREF + thisURL; - } - } - return(tempString); -} - -/****************************************************************************** -* Default values of all user-configurable options. * -******************************************************************************/ - -var MTMLinkedJSURL, MTMLinkedSS, MTMSSHREF, MTMLinkedInitFunction, MTMDOCTYPE, MTMcontentType, MTMHeader, MTMFooter, MTMrightClickMessage, MTMDefaultTarget, MTMTimeOut = 1; -var MTMuseScrollbarCSS, MTMscrollbarBaseColor, MTMscrollbarFaceColor, MTMscrollbarHighlightColor, MTMscrollbarShadowColor, MTMscrollbar3dLightColor, MTMscrollbarArrowColor, MTMscrollbarTrackColor, MTMscrollbarDarkShadowColor; -var MTMUseCookies, MTMCookieName, MTMCookieDays, MTMTrackedCookieName; -var MTMCodeFrame = "code", MTMenuFrame = "menu", MTMTableWidth = "100%", MTMenuImageDirectory = "../images/"; -var MTMUseToolTips = true, MTMEmulateWE, MTMAlwaysLinkIfWE = true, MTMSubsGetPlus = "Submenu", MTMSubsAutoClose; -var MTMBackground = "", MTMBGColor = "#ffffff", MTMTextColor = "#000000", MTMLinkColor = "#330099", MTMTrackColor = "#000000", MTMAhoverColor = "#990000", MTMSubExpandColor = "#666699", MTMSubClosedColor = "#666699", MTMSubTextColor = "#000000"; -var MTMenuText = "رδ", MTMRootIcon = "menu_new_root.gif", MTMRootColor = "#000000"; -var MTMRootFont = MTMenuFont = ""; -var MTMRootCSSize = MTMenuCSSize = "9pt"; -var MTMRootFontSize = MTMenuFontSize = "9pt"; - -/****************************************************************************** -* Global variables. Not to be altered unless you know what you're doing. * -* User-configurable options are found in code.html * -******************************************************************************/ - -var MTMLoaded = false; -var MTMLevel; -var MTMBar = new Array(); -var MTMIndices = new Array(); - -var MTMUA = new MTMBrowser(); - -var MTMExtraCSS = new MTMstyleRuleSet(); -var MTMstyleRules; - -var MTMLastItem; // last item added to a menu -var MTMClickedItem = false; -var MTMExpansion = false; - -var MTMNumber = 1; -var MTMTrackedItem; -var MTMTrack = false; -var MTMFrameNames; - -var MTMFirstRun = true; -var MTMCurrentTime = 0; -var MTMUpdating = false; -var MTMWinSize, MTMyval, MTMxval; -var MTMOutputString = ""; - -var MTMCookieString = ""; -var MTMCookieCharNum = 0; -var MTMTCArray, MTMTrackedCookie; - -/****************************************************************************** -* Code that picks up frame names of frames in the parent frameset. * -******************************************************************************/ - -function MTMgetFrames() { - if(this.MTMable) { - MTMFrameNames = new Array(); - for(i = 0; i < parent.frames.length; i++) { - MTMFrameNames[i] = parent.frames[i].name; - if(parent.frames[i].name == MTMenuFrame) { - this.setDocument(parent.frames[i]); - } - } - } -} - -/****************************************************************************** -* Functions to draw the menu. * -******************************************************************************/ - -function MTMSubAction(SubItem) { - - SubItem.expanded = (SubItem.expanded) ? false : true; - if(SubItem.expanded) { - MTMExpansion = true; - } - - MTMClickedItem = SubItem; - - if(MTMTrackedItem && MTMTrackedItem != SubItem.number) { - MTMTrackedItem = false; - } - - if(MTMEmulateWE || SubItem.url == "" || !SubItem.expanded) { - setTimeout("MTMDisplayMenu()", 10); - return false; - } else { - if(SubItem.target == "_blank" || !MTMUA.resolveURL(SubItem.url, true) || (SubItem.target.indexOf("_") != 0 && MTMTrackTarget(SubItem.target) == false)) { - setTimeout("MTMDisplayMenu()", 10); - } - return true; - } -} - -function MTMStartMenu(thisEvent) { - if(MTMUA.browserType == "O" && MTMUA.majVersion == 5) { - parent.onload = MTMStartMenu; - if(thisEvent) { - return; - } - } - MTMLoaded = true; - if(MTMFirstRun) { - if(MTMCurrentTime++ == MTMTimeOut) { // notice the post-increment - setTimeout("MTMDisplayMenu()",10); - } else { - setTimeout("MTMStartMenu()",100); - } - } -} - -function MTMDisplayMenu() { - if(MTMUA.MTMable && !MTMUpdating) { - MTMUpdating = true; - MTMLevel = 0; - - if(MTMFirstRun) { - MTMUA.getFrames(); - - if(MTMUseCookies) { - MTMFetchCookies(); - if(MTMTrackedCookie) { - MTMTCArray = MTMTrackedCookie.split("::"); - MTMTrackedItem = MTMTCArray[0]; - if(parent.frames[MTMTCArray[1]]) { - parent.frames[MTMTCArray[1]].location = MTMTCArray[2]; - } - MTMTCArray = null; - } - } - } - if(MTMTrack) { MTMTrackedItem = MTMTrackExpand(menu); } - - if(MTMExpansion && MTMSubsAutoClose) { MTMCloseSubs(menu); } - - if(MTMUA.DOMable) { - if(MTMFirstRun) { - MTMinitializeDOMDocument(); - } - } else if(MTMFirstRun || MTMUA.browserType != "IE") { - MTMUA.document.open("text/html", "replace"); - MTMOutputString = (MTMDOCTYPE ? (MTMDOCTYPE + "\n") : '') + "\n"; - if(MTMcontentType) { - MTMOutputString += '\n'; - } - if(MTMLinkedSS) { - MTMOutputString += '\n'; - } else { - MTMUA.document.writeln(MTMOutputString); - MTMOutputString = ""; - MTMcreateStyleSheet(); - } - if(MTMUA.browserType == "IE" && MTMrightClickMessage) { - MTMOutputString += '\nfunction MTMcatchRight() {\nif(event && (event.button == 2 || event.button == 3)) {\nalert("' + MTMrightClickMessage + '");\nreturn false;\n}\nreturn true;\n}\n\ndocument.onmousedown = MTMcatchRight;\n'; - MTMOutputString += '<\/scr' + 'ipt>\n'; - } - MTMOutputString += '\n\n'; - MTMUA.document.writeln(MTMOutputString + (MTMHeader ? MTMHeader : "") + '\n\n'); - } - - if(!MTMFirstRun && (MTMUA.DOMable || MTMUA.browserType == "IE")) { - if(!MTMUA.menuTable) { - MTMUA.menuTable = MTMUA.document.all('mtmtable'); - } - - while(MTMUA.menuTable.rows.length > 1) { - MTMUA.menuTable.deleteRow(1); - } - } - - MTMOutputString = ''; - if(MTMUA.cssEnabled) { - MTMOutputString += ' ' + MTMenuText + ''; - } else { -// MTMOutputString += '' + MTMenuText + ''; - MTMOutputString += '' + MTMenuText + ''; - } - if(MTMFirstRun || (!MTMUA.DOMable && MTMUA.browserType != "IE")) { - MTMAddCell(MTMOutputString); - } - - MTMListItems(menu); - - if(!MTMUA.DOMable && (MTMFirstRun || MTMUA.browserType != "IE")) { - MTMUA.document.writeln('
    \n' + (MTMFooter ? MTMFooter : "") + '\n'); - if(MTMLinkedJSURL && MTMUA.browserType != "IE") { - MTMUA.document.writeln(''); - } - MTMUA.document.writeln('\n\n'); - MTMUA.document.close(); - } - - if((MTMClickedItem || MTMTrackedItem) && !(MTMUA.browserType == "NN" && MTMUA.majVersion == 3)) { - MTMItemName = "sub" + (MTMClickedItem ? MTMClickedItem.number : MTMTrackedItem); - if(document.layers && MTMUA.menuFrame.scrollbars) { - var i; - for(i = 0; i < MTMUA.document.anchors.length; i++) { - if(MTMUA.document.links[i].name == MTMItemName) { - MTMyval = MTMUA.document.links[i].y; - MTMUA.document.links[i].focus(); - break; - } - } - MTMWinSize = MTMUA.menuFrame.innerHeight; - } else if(MTMUA.browserType != "O") { - if(MTMUA.browserType == "NN" && MTMUA.majVersion == 5) { - MTMUA.document.all = MTMUA.document.getElementsByTagName("*"); - } - MTMyval = MTMGetYPos(MTMUA.document.all[MTMItemName]); - MTMUA.document.all[MTMItemName].focus(); - MTMWinSize = MTMUA.browserType == "IE" ? MTMUA.document.body.offsetHeight : MTMUA.menuFrame.innerHeight; - } - if(MTMyval > (MTMWinSize - 60)) { - MTMUA.menuFrame.scrollTo(0, parseInt(MTMyval - (MTMWinSize * 1/3))); - } - } - - if(!MTMFirstRun && MTMUA.cookieEnabled) { - if(MTMCookieString != "") { - setCookie(MTMCookieName, MTMCookieString.substring(0,4000), MTMCookieDays); - if(MTMTrackedCookieName) { - if(MTMTCArray) { - setCookie(MTMTrackedCookieName, MTMTCArray.join("::"), MTMCookieDays); - } else { - setCookie(MTMTrackedCookieName, "", -1); - } - } - } else { - setCookie(MTMCookieName, "", -1); - } - } - if(MTMLinkedJSURL && MTMLinkedInitFunction && !(MTMUA.browserType == "IE" && MTMUA.majVersion == 4)) { - setTimeout('MTMUA.menuFrame.' + MTMLinkedInitFunction + '()', 10); - } - - MTMFirstRun = false; - MTMClickedItem = false; - MTMExpansion = false; - MTMTrack = false; - MTMCookieString = ""; - } -MTMUpdating = false; -} - -function MTMinitializeDOMDocument() { - var newElement; - if(MTMcontentType) { - MTMUA.appendElement('head', 'meta', 'httpEquiv', 'Content-Type', 'content', MTMcontentType); - } - MTMdisableStyleSheets(); - - if(MTMLinkedSS) { - MTMUA.appendElement('head', 'link', 'rel', 'stylesheet', 'type', 'text/css', 'href', (MTMUA.preHREF + MTMSSHREF)); - } else { - MTMcreateStyleSheet(); - } - if(MTMLinkedJSURL) { - MTMUA.appendElement('head', 'script', 'src', (MTMUA.preHREF + MTMLinkedJSURL), 'type', 'text/javascript', 'defer', true); - } - while(MTMUA.document.body.childNodes.length > 0) { - MTMUA.document.body.removeChild(MTMUA.document.body.firstChild); - } - - if(MTMHeader) { - if(MTMUA.browserType == "IE") { - MTMUA.document.body.insertAdjacentHTML("afterBegin", MTMHeader); - } else { - var myRange = MTMUA.document.createRange(); - myRange.setStart(MTMUA.document.body, 0); - var parsedHTML = myRange.createContextualFragment(MTMHeader); - MTMUA.document.body.appendChild(parsedHTML); - } - } - MTMUA.appendElement('body', 'table', 'border', '0', 'cellPadding', '0', 'cellSpacing', '0', 'width', MTMTableWidth, 'id', 'mtmtable'); - MTMUA.menuTable = MTMUA.document.getElementById('mtmtable'); - if(MTMFooter) { - if(MTMUA.browserType == "IE") { - MTMUA.document.body.insertAdjacentHTML("beforeEnd", MTMFooter); - } else { - var myRange = MTMUA.document.createRange(); - myRange.setStart(MTMUA.document.body, 0); - var parsedHTML = myRange.createContextualFragment(MTMFooter); - MTMUA.document.body.appendChild(parsedHTML); - } - } -} - -function MTMappendElement() { - var newElement = this.document.createElement(arguments[1]); - var j, newProperty; - for(j = 2; j < arguments.length; j+=2) { - newElement.setAttribute(arguments[j], arguments[j+1]); - } - if(arguments[0] == 'head') { - this.head.appendChild(newElement); - } else if(arguments[0] == 'body') { - this.document.body.appendChild(newElement); - } -} - -function MTMListItems(menu) { - var i, isLast; - for (i = 0; i < menu.items.length; i++) { - MTMIndices[MTMLevel] = i; - isLast = (i == menu.items.length -1); - MTMDisplayItem(menu.items[i], isLast); - - if(menu.items[i].submenu && menu.items[i].expanded) { - MTMBar[MTMLevel] = (isLast) ? false : true; - MTMLevel++; - MTMListItems(menu.items[i].submenu); - MTMLevel--; - } else { - MTMBar[MTMLevel] = false; - } - } -} - -function MTMDisplayItem(item, last) { - var i, img, subNoLink; - - var MTMfrm = "parent.frames['" + MTMCodeFrame + "']"; - var MTMref = '.menu.items[' + MTMIndices[0] + ']'; - - if(MTMLevel > 0) { - for(i = 1; i <= MTMLevel; i++) { - MTMref += ".submenu.items[" + MTMIndices[i] + "]"; - } - } - - if(MTMUA.cookieEnabled) { - if(MTMFirstRun && MTMCookieString != "") { - item.expanded = (MTMCookieString.charAt(MTMCookieCharNum++) == "1") ? true : false; - } else { - MTMCookieString += (item.expanded) ? "1" : "0"; - } - } - - if(item.submenu) { - var usePlusMinus = false; - if(MTMSubsGetPlus.toLowerCase() == "always" || MTMEmulateWE) { - usePlusMinus = true; - } else if(MTMSubsGetPlus.toLowerCase() == "submenu") { - for(i = 0; i < item.submenu.items.length; i++) { - if(item.submenu.items[i].submenu) { - usePlusMinus = true; break; - } - } - } - - var MTMClickCmd = "return " + MTMfrm + ".MTMSubAction(" + MTMfrm + MTMref + ");"; - var MTMouseOverCmd = "parent.status='" + (item.expanded ? "Collapse " : "Expand ") + (item.text.indexOf("'") != -1 ? MTMEscapeQuotes(item.text) : item.text) + "';return true;"; - var MTMouseOutCmd = "parent.status=parent.defaultStatus;return true;"; - } - - MTMOutputString = ""; - if(MTMLevel > 0) { - for (i = 0; i < MTMLevel; i++) { - MTMOutputString += (MTMBar[i]) ? MTMakeImage("menu_bar.gif") : MTMakeImage("menu_pixel.gif"); - } - } - - if(item.submenu && usePlusMinus) { - if(item.url == "") { - MTMOutputString += MTMakeLink(item, true, true, true, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd); - } else { - if(MTMEmulateWE) { - MTMOutputString += MTMakeLink(item, true, true, false, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd); - } else { - if(!item.expanded) { - MTMOutputString += MTMakeLink(item, false, true, true, MTMClickCmd); - } else { - MTMOutputString += MTMakeLink(item, true, true, false, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd); - } - } - } - - if(item.expanded) { - img = (last) ? "menu_corner_minus.gif" : "menu_tee_minus.gif"; - } else { - img = (last) ? "menu_corner_plus.gif" : "menu_tee_plus.gif"; - } - } else { - img = (last) ? "menu_corner.gif" : "menu_tee.gif"; - } - MTMOutputString += MTMakeImage(img); - - if(item.submenu) { - if(MTMEmulateWE) { - if(item.url != "") { - MTMOutputString += '' + MTMakeLink(item, false, false, true); - } else if(!MTMAlwaysLinkIfWE) { - subNoLink = true; - MTMOutputString += ''; - } - } else if(!usePlusMinus) { - if(item.url == "") { - MTMOutputString += MTMakeLink(item, true, true, true, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd); - } else if(!item.expanded) { - MTMOutputString += MTMakeLink(item, false, true, true, MTMClickCmd); - } else { - MTMOutputString += MTMakeLink(item, true, true, false, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd); - } - } - - img = (item.expanded) ? item.expandIcon : item.collapseIcon; - } else { - MTMOutputString += MTMakeLink(item, false, true, true); - img = (item.icon != "") ? item.icon : MTMFetchIcon(item.url); - } - - MTMOutputString += MTMakeImage(img); - - if(item.submenu && item.url != "" && item.expanded && !MTMEmulateWE) { - MTMOutputString += '' + MTMakeLink(item, false, false, true); - } - - if(MTMUA.browserType == "NN" && MTMUA.majVersion == 3 && !MTMLinkedSS) { - var stringColor; - if(item.submenu && (item.url == "") && (item.number == MTMClickedItem.number)) { - stringColor = (item.expanded) ? MTMSubExpandColor : MTMSubClosedColor; - } else if(MTMTrackedItem && MTMTrackedItem == item.number) { - stringColor = MTMTrackColor; - } else { - stringColor = MTMLinkColor; - } - MTMOutputString += ''; - } - MTMOutputString += ' ' + item.text + ((MTMUA.browserType == "NN" && MTMUA.majVersion == 3 && !MTMLinkedSS) ? '' : ''); - MTMOutputString += subNoLink ? '' : ''; - MTMAddCell(MTMOutputString); -} - -function MTMEscapeQuotes(myString) { - var newString = ""; - var cur_pos = myString.indexOf("'"); - var prev_pos = 0; - while (cur_pos != -1) { - if(cur_pos == 0) { - newString += "\\"; - } else if(myString.charAt(cur_pos-1) != "\\") { - newString += myString.substring(prev_pos, cur_pos) + "\\"; - } else if(myString.charAt(cur_pos-1) == "\\") { - newString += myString.substring(prev_pos, cur_pos); - } - prev_pos = cur_pos++; - cur_pos = myString.indexOf("'", cur_pos); - } - return(newString + myString.substring(prev_pos, myString.length)); -} - -function MTMTrackExpand(thisMenu) { - var i, targetPath, targetLocation; - var foundNumber = false; - for(i = 0; i < thisMenu.items.length; i++) { - if(thisMenu.items[i].url != "" && MTMTrackTarget(thisMenu.items[i].target)) { - targetLocation = parent.frames[thisMenu.items[i].target].location; - targetHREF = targetLocation.href; - if(targetHREF.indexOf("#") != -1) { - targetHREF = targetHREF.substr(0, targetHREF.indexOf("#")); - } - if(MTMUA.browserType == "IE" && targetLocation.protocol == "file:") { - var regExp = /\\/g; - targetHREF = targetHREF.replace(regExp, "\/"); - } - if(targetHREF == MTMUA.resolveURL(thisMenu.items[i].url)) { - return(thisMenu.items[i].number); - } - } - if(thisMenu.items[i].submenu) { - foundNumber = MTMTrackExpand(thisMenu.items[i].submenu); - if(foundNumber) { - if(!thisMenu.items[i].expanded) { - thisMenu.items[i].expanded = true; - if(!MTMClickedItem) { MTMClickedItem = thisMenu.items[i]; } - MTMExpansion = true; - } - return(foundNumber); - } - } - } -return(foundNumber); -} - -function MTMCloseSubs(thisMenu) { - var i, j; - var foundMatch = false; - for(i = 0; i < thisMenu.items.length; i++) { - if(thisMenu.items[i].submenu && thisMenu.items[i].expanded) { - if(thisMenu.items[i].number == MTMClickedItem.number) { - foundMatch = true; - for(j = 0; j < thisMenu.items[i].submenu.items.length; j++) { - if(thisMenu.items[i].submenu.items[j].expanded) { - thisMenu.items[i].submenu.items[j].expanded = false; - } - } - } else { - if(foundMatch) { - thisMenu.items[i].expanded = false; - } else { - foundMatch = MTMCloseSubs(thisMenu.items[i].submenu); - if(!foundMatch) { - thisMenu.items[i].expanded = false; - } - } - } - } - } - return(foundMatch); -} - -function MTMFetchIcon(testString) { - var i; - for(i = 0; i < MTMIconList.items.length; i++) { - if((MTMIconList.items[i].type == 'any') && (testString.indexOf(MTMIconList.items[i].match) != -1)) { - return(MTMIconList.items[i].file); - } else if((MTMIconList.items[i].type == 'pre') && (testString.indexOf(MTMIconList.items[i].match) == 0)) { - return(MTMIconList.items[i].file); - } else if((MTMIconList.items[i].type == 'post') && (testString.indexOf(MTMIconList.items[i].match) != -1)) { - if((testString.lastIndexOf(MTMIconList.items[i].match) + MTMIconList.items[i].match.length) == testString.length) { - return(MTMIconList.items[i].file); - } - } - } - return("menu_link_default.gif"); -} - -function MTMGetYPos(myObj) { - return(myObj.offsetTop + ((myObj.offsetParent) ? MTMGetYPos(myObj.offsetParent) : 0)); -} - -function MTMakeLink(thisItem, voidURL, addName, addTitle, clickEvent, mouseOverEvent, mouseOutEvent) { - var tempString = ''); -} - -function MTMakeImage(thisImage) { - return(''); -} - -function MTMakeSVG(thisImage) { - return('<\/object>'); -} - -function MTMTrackTarget(thisTarget) { - if(thisTarget.charAt(0) == "_") { - return false; - } else { - for(i = 0; i < MTMFrameNames.length; i++) { - if(thisTarget == MTMFrameNames[i]) { - return true; - } - } - } - return false; -} - -function MTMAddCell(thisHTML) { - if(MTMUA.DOMable || (MTMUA.browserType == "IE" && !MTMFirstRun)) { - var myRow = MTMUA.menuTable.insertRow(MTMUA.menuTable.rows.length); - myRow.vAlign = "top"; - var myCell = myRow.insertCell(myRow.cells.length); - myCell.noWrap = true; - myCell.innerHTML = thisHTML; - } else { - MTMUA.document.writeln('' + thisHTML + '<\/td><\/tr>'); - } -} - -function MTMcreateStyleSheet() { - var i; - - if(!MTMstyleRules) { - MTMstyleRules = new MTMstyleRuleSet(); - with(MTMstyleRules) { - addRule('body', 'color:' + MTMTextColor + ';'); - if(MTMuseScrollbarCSS && MTMUA.browserType != "NN") { - addRule('body', 'scrollbar-3dlight-color:' + MTMscrollbar3dLightColor + ';scrollbar-arrow-color:' + MTMscrollbarArrowColor + ';scrollbar-base-color:' + MTMscrollbarBaseColor + ';scrollbar-darkshadow-color:' + MTMscrollbarDarkShadowColor + ';scrollbar-face-color:' + MTMscrollbarFaceColor + ';scrollbar-highlight-color:' + MTMscrollbarHighlightColor + ';scrollbar-shadow-color:' + MTMscrollbarShadowColor + ';scrollbar-track-color:' + MTMscrollbarTrackColor + ';'); - } - addRule('#root', 'color:' + MTMRootColor + ';background:transparent;font-family:' + MTMRootFont + ';font-size:' + MTMRootCSSize + ';'); - addRule('.subtext', 'font-family:' + MTMenuFont + ';font-size:' + MTMenuCSSize + ';color:' + MTMSubTextColor + ';background: transparent;'); - addRule('a', 'font-family:' + MTMenuFont + ';font-size:' + MTMenuCSSize + ';text-decoration:none;color:' + MTMLinkColor + ';background:transparent;'); - addRule('a:hover', 'color:' + MTMAhoverColor + ';background:transparent;'); - addRule('a.tracked', 'color:' + MTMTrackColor + ';background:transparent;'); - addRule('a.subexpanded', 'color:' + MTMSubExpandColor + ';background:transparent;'); - addRule('a.subclosed', 'color:' + MTMSubClosedColor + ';background:transparent;'); - - } - } - - if(MTMUA.DOMable) { - if(MTMUA.browserType == "IE") { - MTMUA.document.createStyleSheet(); - var newStyleSheet = MTMUA.document.styleSheets(MTMUA.document.styleSheets.length-1); - } else if(MTMUA.browserType == "NN") { - var newStyleSheet = MTMUA.document.getElementById('mtmsheet'); - if(newStyleSheet) { - newStyleSheet.disabled = false; - } - } - } else { - var outputHTML = ''); - } -} - -function MTMdisableStyleSheets() { - if(MTMUA.browserType == "IE") { - for(i = 0; i < MTMUA.document.styleSheets.length; i++) { - MTMUA.document.styleSheets(i).disabled = true; - } - } else if(MTMUA.browserType == "NN") { - var myCollection = MTMUA.document.getElementsByTagName('style'); - for(i = 0; i < myCollection.length; i++) { - myCollection.item(i).disabled = true; - } - var myCollection = MTMUA.document.getElementsByTagName('link'); - for(i = 0; i < myCollection.length; i++) { - if(myCollection.item(i).getAttribute('type') == "text/css") { - myCollection.item(i).disabled = true; - } - } - } -} - -function MTMFetchCookies() { - var cookieString = getCookie(MTMCookieName); - if(cookieString == null) { - setCookie(MTMCookieName, "Say-No-If-You-Use-Confirm-Cookies"); - cookieString = getCookie(MTMCookieName); - MTMUA.cookieEnabled = (cookieString == null) ? false : true; - return; - } - - MTMCookieString = cookieString; - if(MTMTrackedCookieName) { MTMTrackedCookie = getCookie(MTMTrackedCookieName); } - MTMUA.cookieEnabled = true; -} - -// These are from Netscape's Client-Side JavaScript Guide. -// setCookie() is altered to make it easier to set expiry. - -function getCookie(Name) { - var search = Name + "=" - if (document.cookie.length > 0) { // if there are any cookies - offset = document.cookie.indexOf(search) - if (offset != -1) { // if cookie exists - offset += search.length - // set index of beginning of value - end = document.cookie.indexOf(";", offset) - // set index of end of cookie value - if (end == -1) - end = document.cookie.length - return unescape(document.cookie.substring(offset, end)) - } - } -} - -function setCookie(name, value, daysExpire) { - if(daysExpire) { - var expires = new Date(); - expires.setTime(expires.getTime() + 1000*60*60*24*daysExpire); - } - document.cookie = name + "=" + escape(value) + (daysExpire == null ? "" : (";expires=" + expires.toGMTString())) + ";path=/"; -} diff --git a/zioinfo/js/mtmtrack.js b/zioinfo/js/mtmtrack.js deleted file mode 100644 index ac703033..00000000 --- a/zioinfo/js/mtmtrack.js +++ /dev/null @@ -1,21 +0,0 @@ -// Morten's JavaScript Tree Menu Tracking Script -// version 2.3.2-macfriendly, dated 2002-06-10 -// http://www.treemenu.com/ - -// Copyright (c) 2001-2002, Morten Wang & contributors -// All rights reserved. - -// This software is released under the BSD License which should accompany -// it in the file "COPYING". If you do not have this file you can access -// the license through the WWW at http://www.treemenu.com/license.txt - -if((navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3 && navigator.userAgent.indexOf("Opera") == -1) || (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4) || (navigator.appName == "Opera" && parseInt(navigator.appVersion) >= 5)) { - var MTMCodeFrame = "code"; - for(i = 0; i < parent.frames.length; i++) { - if(parent.frames[i].name == MTMCodeFrame && parent.frames[i].MTMLoaded) { - parent.frames[i].MTMTrack = true; - setTimeout("parent.frames[" + i + "].MTMDisplayMenu()", 1); - break; - } - } -} diff --git a/zioinfo/js/number.js b/zioinfo/js/number.js deleted file mode 100644 index a6bb2669..00000000 --- a/zioinfo/js/number.js +++ /dev/null @@ -1,129 +0,0 @@ -/*-------------------------------------------------------------------+ - * 1. ϸ: number.js - * 2. : ġ ȭ(Formatting) Լ Ѵ. - * 3. : string.js - * 4. ۼ: - * 5. ۼ: 2006.10.10. - -------------------------------------------------------------------*/ - - - -var DIGIT_COMMA = ","; - -/** - * Ҽ indexڸ ݿø - * - * @param num ġ - * @param index Ҽ ȿڸ - */ -function round (num, index) { - var pow = Math.pow(10, parseInt(index)); - - return Math.round(parseFloat(num) * pow) / pow; -} - - -/** - * Ҽ indexڸ - * - * @param num ġ - * @param index Ҽ ȿڸ - */ -function floor (num, index) { - var pow = Math.pow(10, parseInt(index)); - - return Math.floor(parseFloat(num) * pow) / pow; -} - - -/** - * Ҽ indexڸ ø - * - * @param num ġ - * @param index Ҽ ȿڸ - */ -function ceil (num, index) { - var pow = Math.pow(10, parseInt(index)); - - return Math.ceil(parseFloat(num) * pow) / pow; -} - - -/** - * JavaScript - */ -function getCorrectPow(no) { - var noStr = new String(no); - - var dotIndex = noStr.lastIndexOf("."); - - var correctPow = 1; - - if ( dotIndex > -1 ) { - correctPow = Math.pow(10, noStr.length - dotIndex - 1); - } - - return correctPow; -} - - -/** - * ־ ġ ڿ, ڿ 3ڸ ĸ(,) - * Ѵ. - * - * @param noStr ĸ ڿ - */ -function formatNo(noStr) { - if ( event != undefined && isControlKey() ) return; - //if ( isControlKey() ) return true; - - var noStr = removeChar(noStr, ','); - - var signPart = ""; // ȣ - var intPart = ""; // - var floatPat = ""; // Ҽ - - // ȣ, , Ҽθ иѴ. - if ( noStr.charAt(0) == '-' ) { - signPart = "-"; - } - - var dotIndex = noStr.lastIndexOf('.'); - - if ( dotIndex == -1 ) { - dotIndex = noStr.length; - } - - intPart = noStr.substring(signPart.length, dotIndex); - floatPart = noStr.substring(dotIndex); - - // ο 3ڸ ĸ(,) Ѵ. - var buff = ""; - for (var i = 1, index = intPart.length - 1; i <= intPart.length; i++, index--) { - buff = intPart.charAt(index) + buff; - - // ڸ տ ĸ ʴ´. - if ( i % 3 == 0 && i < intPart.length ) { - buff = ',' + buff; - } - } - - // ȣ, ĸ  , Ҽθ ش. - return signPart + buff + floatPart; -} - - - -/** - * Text Է 3ڸ ĸ - * Ѵ. - * - * @param obj Text Է ü - */ -function formatNoObj(obj) { - if ( event != undefined && isControlKey() ) return; - //if ( isControlKey() ) return true; - - obj.value = formatNo(obj.value); -} - diff --git a/zioinfo/js/octagon_view.js b/zioinfo/js/octagon_view.js deleted file mode 100644 index d6160150..00000000 --- a/zioinfo/js/octagon_view.js +++ /dev/null @@ -1,43 +0,0 @@ -var OCTAGON_SERVER_IP_ADDR = "109.0.58.31"; -var WEB_SERVER_IP_ADDR = "109.0.58.31"; -var PORT = ":8080"; -//var CAB_VERSION = "2,18,61101,281"; -//var CAB_VERSION = "2,18,61113,288"; -//var CAB_VERSION = "2,18,61114,289";. -//var CAB_VERSION = "2,18,61127,295"; -//var CAB_VERSION = "2,18,61127,296"; -//var CAB_VERSION = "2,18,61201,298"; -//var CAB_VERSION = "2,18,61207,302"; -//var CAB_VERSION = "2,18,61212,303"; -//var CAB_VERSION = "2,18,61218,306"; -//var CAB_VERSION = "2,18,61229,309"; -//var CAB_VERSION = "2,18,61312,317"; -//var CAB_VERSION = "2,18,61350,116"; -//var CAB_VERSION = "2,18,61356,226"; -var CAB_VERSION = "2,18,61369,523"; - -document.write(""); - -document.write(""); - -document.write(""); -document.write(""); -document.write(""); -document.write(""); - -document.write(""); -document.write(""); -document.write(""); -document.write(""); -document.write(""); -document.write(""); -document.write(""); -document.write(""); -document.write(""); -document.write(""); -document.write(""); -document.write(""); -document.write(""); -document.write(""); -document.write(""); -document.write(""); diff --git a/zioinfo/js/overlib.js b/zioinfo/js/overlib.js deleted file mode 100644 index b239636e..00000000 --- a/zioinfo/js/overlib.js +++ /dev/null @@ -1,1222 +0,0 @@ -//\////////////////////////////////////////////////////////////////////////////////// -//\ overLIB 3.50 -- This notice must remain untouched at all times. -//\ Copyright Erik Bosrup 1998-2001. All rights reserved. -//\ -//\ By Erik Bosrup (erik@bosrup.com). Last modified 2001-08-28. -//\ Portions by Dan Steinman (dansteinman.com). Additions by other people are -//\ listed on the overLIB homepage. -//\ -//\ Get the latest version at http://www.bosrup.com/web/overlib/ -//\ -//\ This script is published under an open source license. Please read the license -//\ agreement online at: http://www.bosrup.com/web/overlib/license.html -//\ If you have questions regarding the license please contact erik@bosrup.com. -//\ -//\ This script library was originally created for personal use. By request it has -//\ later been made public. This is free software. Do not sell this as your own -//\ work, or remove this copyright notice. For full details on copying or changing -//\ this script please read the license agreement at the link above. -//\ -//\ Please give credit on sites that use overLIB and submit changes of the script -//\ so other people can use them as well. This script is free to use, don't abuse. -//\////////////////////////////////////////////////////////////////////////////////// -//\mini - - -//////////////////////////////////////////////////////////////////////////////////// -// CONSTANTS -// Don't touch these. :) -//////////////////////////////////////////////////////////////////////////////////// -var INARRAY = 1; -var CAPARRAY = 2; -var STICKY = 3; -var BACKGROUND = 4; -var NOCLOSE = 5; -var CAPTION = 6; -var LEFT = 7; -var RIGHT = 8; -var CENTER = 9; -var OFFSETX = 10; -var OFFSETY = 11; -var FGCOLOR = 12; -var BGCOLOR = 13; -var TEXTCOLOR = 14; -var CAPCOLOR = 15; -var CLOSECOLOR = 16; -var WIDTH = 17; -var BORDER = 18; -var STATUS = 19; -var AUTOSTATUS = 20; -var AUTOSTATUSCAP = 21; -var HEIGHT = 22; -var CLOSETEXT = 23; -var SNAPX = 24; -var SNAPY = 25; -var FIXX = 26; -var FIXY = 27; -var FGBACKGROUND = 28; -var BGBACKGROUND = 29; -var PADX = 30; // PADX2 out -var PADY = 31; // PADY2 out -var FULLHTML = 34; -var ABOVE = 35; -var BELOW = 36; -var CAPICON = 37; -var TEXTFONT = 38; -var CAPTIONFONT = 39; -var CLOSEFONT = 40; -var TEXTSIZE = 41; -var CAPTIONSIZE = 42; -var CLOSESIZE = 43; -var FRAME = 44; -var TIMEOUT = 45; -var FUNCTION = 46; -var DELAY = 47; -var HAUTO = 48; -var VAUTO = 49; -var CLOSECLICK = 50; -var CSSOFF = 51; -var CSSSTYLE = 52; -var CSSCLASS = 53; -var FGCLASS = 54; -var BGCLASS = 55; -var TEXTFONTCLASS = 56; -var CAPTIONFONTCLASS = 57; -var CLOSEFONTCLASS = 58; -var PADUNIT = 59; -var HEIGHTUNIT = 60; -var WIDTHUNIT = 61; -var TEXTSIZEUNIT = 62; -var TEXTDECORATION = 63; -var TEXTSTYLE = 64; -var TEXTWEIGHT = 65; -var CAPTIONSIZEUNIT = 66; -var CAPTIONDECORATION = 67; -var CAPTIONSTYLE = 68; -var CAPTIONWEIGHT = 69; -var CLOSESIZEUNIT = 70; -var CLOSEDECORATION = 71; -var CLOSESTYLE = 72; -var CLOSEWEIGHT = 73; - - -//////////////////////////////////////////////////////////////////////////////////// -// DEFAULT CONFIGURATION -// You don't have to change anything here if you don't want to. All of this can be -// changed on your html page or through an overLIB call. -//////////////////////////////////////////////////////////////////////////////////// - -// Main background color (the large area) -// Usually a bright color (white, yellow etc) -if (typeof ol_fgcolor == 'undefined') { var ol_fgcolor = "#CCCCFF";} - -// Border color and color of caption -// Usually a dark color (black, brown etc) -if (typeof ol_bgcolor == 'undefined') { var ol_bgcolor = "#333399";} - -// Text color -// Usually a dark color -if (typeof ol_textcolor == 'undefined') { var ol_textcolor = "#000000";} - -// Color of the caption text -// Usually a bright color -if (typeof ol_capcolor == 'undefined') { var ol_capcolor = "#FFFFFF";} - -// Color of "Close" when using Sticky -// Usually a semi-bright color -if (typeof ol_closecolor == 'undefined') { var ol_closecolor = "#9999FF";} - -// Font face for the main text -if (typeof ol_textfont == 'undefined') { var ol_textfont = "Verdana,Arial,Helvetica";} - -// Font face for the caption -if (typeof ol_captionfont == 'undefined') { var ol_captionfont = "Verdana,Arial,Helvetica";} - -// Font face for the close text -if (typeof ol_closefont == 'undefined') { var ol_closefont = "Verdana,Arial,Helvetica";} - -// Font size for the main text -// When using CSS this will be very small. -if (typeof ol_textsize == 'undefined') { var ol_textsize = "1";} - -// Font size for the caption -// When using CSS this will be very small. -if (typeof ol_captionsize == 'undefined') { var ol_captionsize = "1";} - -// Font size for the close text -// When using CSS this will be very small. -if (typeof ol_closesize == 'undefined') { var ol_closesize = "1";} - -// Width of the popups in pixels -// 100-300 pixels is typical -if (typeof ol_width == 'undefined') { var ol_width = "200";} - -// How thick the ol_border should be in pixels -// 1-3 pixels is typical -if (typeof ol_border == 'undefined') { var ol_border = "1";} - -// How many pixels to the right/left of the cursor to show the popup -// Values between 3 and 12 are best -if (typeof ol_offsetx == 'undefined') { var ol_offsetx = 10;} - -// How many pixels to the below the cursor to show the popup -// Values between 3 and 12 are best -if (typeof ol_offsety == 'undefined') { var ol_offsety = 10;} - -// Default text for popups -// Should you forget to pass something to overLIB this will be displayed. -if (typeof ol_text == 'undefined') { var ol_text = "Default Text"; } - -// Default caption -// You should leave this blank or you will have problems making non caps popups. -if (typeof ol_cap == 'undefined') { var ol_cap = ""; } - -// Decides if sticky popups are default. -// 0 for non, 1 for stickies. -if (typeof ol_sticky == 'undefined') { var ol_sticky = 0; } - -// Default background image. Better left empty unless you always want one. -if (typeof ol_background == 'undefined') { var ol_background = ""; } - -// Text for the closing sticky popups. -// Normal is "Close". -if (typeof ol_close == 'undefined') { var ol_close = "Close"; } - -// Default vertical alignment for popups. -// It's best to leave RIGHT here. Other options are LEFT and CENTER. -if (typeof ol_hpos == 'undefined') { var ol_hpos = RIGHT; } - -// Default status bar text when a popup is invoked. -if (typeof ol_status == 'undefined') { var ol_status = ""; } - -// If the status bar automatically should load either text or caption. -// 0=nothing, 1=text, 2=caption -if (typeof ol_autostatus == 'undefined') { var ol_autostatus = 0; } - -// Default height for popup. Often best left alone. -if (typeof ol_height == 'undefined') { var ol_height = -1; } - -// Horizontal grid spacing that popups will snap to. -// 0 makes no grid, anything else will cause a snap to that grid spacing. -if (typeof ol_snapx == 'undefined') { var ol_snapx = 0; } - -// Vertical grid spacing that popups will snap to. -// 0 makes no grid, andthing else will cause a snap to that grid spacing. -if (typeof ol_snapy == 'undefined') { var ol_snapy = 0; } - -// Sets the popups horizontal position to a fixed column. -// Anything above -1 will cause fixed position. -if (typeof ol_fixx == 'undefined') { var ol_fixx = -1; } - -// Sets the popups vertical position to a fixed row. -// Anything above -1 will cause fixed position. -if (typeof ol_fixy == 'undefined') { var ol_fixy = -1; } - -// Background image for the popups inside. -if (typeof ol_fgbackground == 'undefined') { var ol_fgbackground = ""; } - -// Background image for the popups frame. -if (typeof ol_bgbackground == 'undefined') { var ol_bgbackground = ""; } - -// How much horizontal left padding text should get by default when BACKGROUND is used. -if (typeof ol_padxl == 'undefined') { var ol_padxl = 1; } - -// How much horizontal right padding text should get by default when BACKGROUND is used. -if (typeof ol_padxr == 'undefined') { var ol_padxr = 1; } - -// How much vertical top padding text should get by default when BACKGROUND is used. -if (typeof ol_padyt == 'undefined') { var ol_padyt = 1; } - -// How much vertical bottom padding text should get by default when BACKGROUND is used. -if (typeof ol_padyb == 'undefined') { var ol_padyb = 1; } - -// If the user by default must supply all html for complete popup control. -// Set to 1 to activate, 0 otherwise. -if (typeof ol_fullhtml == 'undefined') { var ol_fullhtml = 0; } - -// Default vertical position of the popup. Default should normally be BELOW. -// ABOVE only works when HEIGHT is defined. -if (typeof ol_vpos == 'undefined') { var ol_vpos = BELOW; } - -// Default height of popup to use when placing the popup above the cursor. -if (typeof ol_aboveheight == 'undefined') { var ol_aboveheight = 0; } - -// Default icon to place next to the popups caption. -if (typeof ol_caption == 'undefined') { var ol_capicon = ""; } - -// Default frame. We default to current frame if there is no frame defined. -if (typeof ol_frame == 'undefined') { var ol_frame = self; } - -// Default timeout. By default there is no timeout. -if (typeof ol_timeout == 'undefined') { var ol_timeout = 0; } - -// Default javascript funktion. By default there is none. -if (typeof ol_function == 'undefined') { var ol_function = Function(); } - -// Default timeout. By default there is no timeout. -if (typeof ol_delay == 'undefined') { var ol_delay = 0; } - -// If overLIB should decide the horizontal placement. -if (typeof ol_hauto == 'undefined') { var ol_hauto = 0; } - -// If overLIB should decide the vertical placement. -if (typeof ol_vauto == 'undefined') { var ol_vauto = 0; } - - - -// If the user has to click to close stickies. -if (typeof ol_closeclick == 'undefined') { var ol_closeclick = 0; } - -// This variable determines if you want to use CSS or inline definitions. -// CSSOFF=no CSS CSSSTYLE=use CSS inline styles CSSCLASS=use classes -if (typeof ol_css == 'undefined') { var ol_css = CSSOFF; } - -// Main background class (eqv of fgcolor) -// This is only used if CSS is set to use classes (ol_css = CSSCLASS) -if (typeof ol_fgclass == 'undefined') { var ol_fgclass = ""; } - -// Frame background class (eqv of bgcolor) -// This is only used if CSS is set to use classes (ol_css = CSSCLASS) -if (typeof ol_bgclass == 'undefined') { var ol_bgclass = ""; } - -// Main font class -// This is only used if CSS is set to use classes (ol_css = CSSCLASS) -if (typeof ol_textfontclass == 'undefined') { var ol_textfontclass = ""; } - -// Caption font class -// This is only used if CSS is set to use classes (ol_css = CSSCLASS) -if (typeof ol_captionfontclass == 'undefined') { var ol_captionfontclass = ""; } - -// Close font class -// This is only used if CSS is set to use classes (ol_css = CSSCLASS) -if (typeof ol_closefontclass == 'undefined') { var ol_closefontclass = ""; } - -// Unit to be used for the text padding above -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -// Options include "px", "%", "in", "cm" and more -if (typeof ol_padunit == 'undefined') { var ol_padunit = "px";} - -// Unit to be used for height of popup -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -// Options include "px", "%", "in", "cm" and more -if (typeof ol_heightunit == 'undefined') { var ol_heightunit = "px";} - -// Unit to be used for width of popup -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -// Options include "px", "%", "in", "cm" and more -if (typeof ol_widthunit == 'undefined') { var ol_widthunit = "px";} - -// Font size unit for the main text -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -if (typeof ol_textsizeunit == 'undefined') { var ol_textsizeunit = "px";} - -// Decoration of the main text ("none", "underline", "line-through" or "blink") -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -if (typeof ol_textdecoration == 'undefined') { var ol_textdecoration = "none";} - -// Font style of the main text ("normal" or "italic") -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -if (typeof ol_textstyle == 'undefined') { var ol_textstyle = "normal";} - -// Font weight of the main text ("normal", "bold", "bolder", "lighter", ect.) -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -if (typeof ol_textweight == 'undefined') { var ol_textweight = "normal";} - -// Font size unit for the caption -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -if (typeof ol_captionsizeunit == 'undefined') { var ol_captionsizeunit = "px";} - -// Decoration of the caption ("none", "underline", "line-through" or "blink") -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -if (typeof ol_captiondecoration == 'undefined') { var ol_captiondecoration = "none";} - -// Font style of the caption ("normal" or "italic") -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -if (typeof ol_captionstyle == 'undefined') { var ol_captionstyle = "normal";} - -// Font weight of the caption ("normal", "bold", "bolder", "lighter", ect.) -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -if (typeof ol_captionweight == 'undefined') { var ol_captionweight = "bold";} - -// Font size unit for the close text -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -if (typeof ol_closesizeunit == 'undefined') { var ol_closesizeunit = "px";} - -// Decoration of the close text ("none", "underline", "line-through" or "blink") -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -if (typeof ol_closedecoration == 'undefined') { var ol_closedecoration = "none";} - -// Font style of the close text ("normal" or "italic") -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -if (typeof ol_closestyle == 'undefined') { var ol_closestyle = "normal";} - -// Font weight of the close text ("normal", "bold", "bolder", "lighter", ect.) -// Only used if CSS inline styles are being used (ol_css = CSSSTYLE) -if (typeof ol_closeweight == 'undefined') { var ol_closeweight = "normal";} - - - -//////////////////////////////////////////////////////////////////////////////////// -// ARRAY CONFIGURATION -// You don't have to change anything here if you don't want to. The following -// arrays can be filled with text and html if you don't wish to pass it from -// your html page. -//////////////////////////////////////////////////////////////////////////////////// - -// Array with texts. -if (typeof ol_texts == 'undefined') { var ol_texts = new Array("Text 0", "Text 1"); } - -// Array with captions. -if (typeof ol_caps == 'undefined') { var ol_caps = new Array("Caption 0", "Caption 1"); } - - -//////////////////////////////////////////////////////////////////////////////////// -// END CONFIGURATION -// Don't change anything below this line, all configuration is above. -//////////////////////////////////////////////////////////////////////////////////// - - - - - - - -//////////////////////////////////////////////////////////////////////////////////// -// INIT -//////////////////////////////////////////////////////////////////////////////////// - -// Runtime variables init. Used for runtime only, don't change, not for config! -var o3_text = ""; -var o3_cap = ""; -var o3_sticky = 0; -var o3_background = ""; -var o3_close = "Close"; -var o3_hpos = RIGHT; -var o3_offsetx = 2; -var o3_offsety = 2; -var o3_fgcolor = ""; -var o3_bgcolor = ""; -var o3_textcolor = ""; -var o3_capcolor = ""; -var o3_closecolor = ""; -var o3_width = 100; -var o3_border = 1; -var o3_status = ""; -var o3_autostatus = 0; -var o3_height = -1; -var o3_snapx = 0; -var o3_snapy = 0; -var o3_fixx = -1; -var o3_fixy = -1; -var o3_fgbackground = ""; -var o3_bgbackground = ""; -var o3_padxl = 0; -var o3_padxr = 0; -var o3_padyt = 0; -var o3_padyb = 0; -var o3_fullhtml = 0; -var o3_vpos = BELOW; -var o3_aboveheight = 0; -var o3_capicon = ""; -var o3_textfont = "Verdana,Arial,Helvetica"; -var o3_captionfont = "Verdana,Arial,Helvetica"; -var o3_closefont = "Verdana,Arial,Helvetica"; -var o3_textsize = "1"; -var o3_captionsize = "1"; -var o3_closesize = "1"; -var o3_frame = self; -var o3_timeout = 0; -var o3_timerid = 0; -var o3_allowmove = 0; -var o3_function = Function(); -var o3_delay = 0; -var o3_delayid = 0; -var o3_hauto = 0; -var o3_vauto = 0; -var o3_closeclick = 0; - -var o3_css = CSSOFF; -var o3_fgclass = ""; -var o3_bgclass = ""; -var o3_textfontclass = ""; -var o3_captionfontclass = ""; -var o3_closefontclass = ""; -var o3_padunit = "px"; -var o3_heightunit = "px"; -var o3_widthunit = "px"; -var o3_textsizeunit = "px"; -var o3_textdecoration = ""; -var o3_textstyle = ""; -var o3_textweight = ""; -var o3_captionsizeunit = "px"; -var o3_captiondecoration = ""; -var o3_captionstyle = ""; -var o3_captionweight = ""; -var o3_closesizeunit = "px"; -var o3_closedecoration = ""; -var o3_closestyle = ""; -var o3_closeweight = ""; - - - -// Display state variables -var o3_x = 0; -var o3_y = 0; -var o3_allow = 0; -var o3_showingsticky = 0; -var o3_removecounter = 0; - -// Our layer -var over = null; - - -// Decide browser version -var ns4 = (document.layers)? true:false; -var ns6 = (document.getElementById)? true:false; -var ie4 = (document.all)? true:false; -var ie5 = false; - -// Microsoft Stupidity Check(tm). -if (ie4) { - if ((navigator.userAgent.indexOf('MSIE 5') > 0) || (navigator.userAgent.indexOf('MSIE 6') > 0)) { - ie5 = true; - } - if (ns6) { - ns6 = false; - } -} - - -// Capture events, alt. diffuses the overlib function. -if ( (ns4) || (ie4) || (ns6)) { - document.onmousemove = mouseMove - if (ns4) document.captureEvents(Event.MOUSEMOVE) -} else { - overlib = no_overlib; - nd = no_overlib; - ver3fix = true; -} - - -// Fake function for 3.0 users. -function no_overlib() { - return ver3fix; -} - - - -//////////////////////////////////////////////////////////////////////////////////// -// PUBLIC FUNCTIONS -//////////////////////////////////////////////////////////////////////////////////// - - -// overlib(arg0, ..., argN) -// Loads parameters into global runtime variables. -function overlib() { - - // Load defaults to runtime. - o3_text = ol_text; - o3_cap = ol_cap; - o3_sticky = ol_sticky; - o3_background = ol_background; - o3_close = ol_close; - o3_hpos = ol_hpos; - o3_offsetx = ol_offsetx; - o3_offsety = ol_offsety; - o3_fgcolor = ol_fgcolor; - o3_bgcolor = ol_bgcolor; - o3_textcolor = ol_textcolor; - o3_capcolor = ol_capcolor; - o3_closecolor = ol_closecolor; - o3_width = ol_width; - o3_border = ol_border; - o3_status = ol_status; - o3_autostatus = ol_autostatus; - o3_height = ol_height; - o3_snapx = ol_snapx; - o3_snapy = ol_snapy; - o3_fixx = ol_fixx; - o3_fixy = ol_fixy; - o3_fgbackground = ol_fgbackground; - o3_bgbackground = ol_bgbackground; - o3_padxl = ol_padxl; - o3_padxr = ol_padxr; - o3_padyt = ol_padyt; - o3_padyb = ol_padyb; - o3_fullhtml = ol_fullhtml; - o3_vpos = ol_vpos; - o3_aboveheight = ol_aboveheight; - o3_capicon = ol_capicon; - o3_textfont = ol_textfont; - o3_captionfont = ol_captionfont; - o3_closefont = ol_closefont; - o3_textsize = ol_textsize; - o3_captionsize = ol_captionsize; - o3_closesize = ol_closesize; - o3_timeout = ol_timeout; - o3_function = ol_function; - o3_delay = ol_delay; - o3_hauto = ol_hauto; - o3_vauto = ol_vauto; - o3_closeclick = ol_closeclick; - - o3_css = ol_css; - o3_fgclass = ol_fgclass; - o3_bgclass = ol_bgclass; - o3_textfontclass = ol_textfontclass; - o3_captionfontclass = ol_captionfontclass; - o3_closefontclass = ol_closefontclass; - o3_padunit = ol_padunit; - o3_heightunit = ol_heightunit; - o3_widthunit = ol_widthunit; - o3_textsizeunit = ol_textsizeunit; - o3_textdecoration = ol_textdecoration; - o3_textstyle = ol_textstyle; - o3_textweight = ol_textweight; - o3_captionsizeunit = ol_captionsizeunit; - o3_captiondecoration = ol_captiondecoration; - o3_captionstyle = ol_captionstyle; - o3_captionweight = ol_captionweight; - o3_closesizeunit = ol_closesizeunit; - o3_closedecoration = ol_closedecoration; - o3_closestyle = ol_closestyle; - o3_closeweight = ol_closeweight; - - - // Special for frame support, over must be reset... - if ( (ns4) || (ie4) || (ns6) ) { - o3_frame = ol_frame; - if (ns4) over = o3_frame.document.overDiv - if (ie4) over = o3_frame.overDiv.style - if (ns6) over = o3_frame.document.getElementById("overDiv"); - } - - - // What the next argument is expected to be. - var parsemode = -1; - - var ar = arguments; - - for (i = 0; i < ar.length; i++) { - - if (parsemode < 0) { - // Arg is maintext, unless INARRAY - if (ar[i] == INARRAY) { - o3_text = ol_texts[ar[++i]]; - } else { - o3_text = ar[i]; - } - - parsemode = 0; - } else { - // Note: NS4 doesn't like switch cases with vars. - if (ar[i] == INARRAY) { o3_text = ol_texts[ar[++i]]; continue; } - if (ar[i] == CAPARRAY) { o3_cap = ol_caps[ar[++i]]; continue; } - if (ar[i] == STICKY) { o3_sticky = 1; continue; } - if (ar[i] == BACKGROUND) { o3_background = ar[++i]; continue; } - if (ar[i] == NOCLOSE) { o3_close = ""; continue; } - if (ar[i] == CAPTION) { o3_cap = ar[++i]; continue; } - if (ar[i] == CENTER || ar[i] == LEFT || ar[i] == RIGHT) { o3_hpos = ar[i]; continue; } - if (ar[i] == OFFSETX) { o3_offsetx = ar[++i]; continue; } - if (ar[i] == OFFSETY) { o3_offsety = ar[++i]; continue; } - if (ar[i] == FGCOLOR) { o3_fgcolor = ar[++i]; continue; } - if (ar[i] == BGCOLOR) { o3_bgcolor = ar[++i]; continue; } - if (ar[i] == TEXTCOLOR) { o3_textcolor = ar[++i]; continue; } - if (ar[i] == CAPCOLOR) { o3_capcolor = ar[++i]; continue; } - if (ar[i] == CLOSECOLOR) { o3_closecolor = ar[++i]; continue; } - if (ar[i] == WIDTH) { o3_width = ar[++i]; continue; } - if (ar[i] == BORDER) { o3_border = ar[++i]; continue; } - if (ar[i] == STATUS) { o3_status = ar[++i]; continue; } - if (ar[i] == AUTOSTATUS) { o3_autostatus = 1; continue; } - if (ar[i] == AUTOSTATUSCAP) { o3_autostatus = 2; continue; } - if (ar[i] == HEIGHT) { o3_height = ar[++i]; o3_aboveheight = ar[i]; continue; } // Same param again. - if (ar[i] == CLOSETEXT) { o3_close = ar[++i]; continue; } - if (ar[i] == SNAPX) { o3_snapx = ar[++i]; continue; } - if (ar[i] == SNAPY) { o3_snapy = ar[++i]; continue; } - if (ar[i] == FIXX) { o3_fixx = ar[++i]; continue; } - if (ar[i] == FIXY) { o3_fixy = ar[++i]; continue; } - if (ar[i] == FGBACKGROUND) { o3_fgbackground = ar[++i]; continue; } - if (ar[i] == BGBACKGROUND) { o3_bgbackground = ar[++i]; continue; } - if (ar[i] == PADX) { o3_padxl = ar[++i]; o3_padxr = ar[++i]; continue; } - if (ar[i] == PADY) { o3_padyt = ar[++i]; o3_padyb = ar[++i]; continue; } - if (ar[i] == FULLHTML) { o3_fullhtml = 1; continue; } - if (ar[i] == BELOW || ar[i] == ABOVE) { o3_vpos = ar[i]; continue; } - if (ar[i] == CAPICON) { o3_capicon = ar[++i]; continue; } - if (ar[i] == TEXTFONT) { o3_textfont = ar[++i]; continue; } - if (ar[i] == CAPTIONFONT) { o3_captionfont = ar[++i]; continue; } - if (ar[i] == CLOSEFONT) { o3_closefont = ar[++i]; continue; } - if (ar[i] == TEXTSIZE) { o3_textsize = ar[++i]; continue; } - if (ar[i] == CAPTIONSIZE) { o3_captionsize = ar[++i]; continue; } - if (ar[i] == CLOSESIZE) { o3_closesize = ar[++i]; continue; } - if (ar[i] == FRAME) { opt_FRAME(ar[++i]); continue; } - if (ar[i] == TIMEOUT) { o3_timeout = ar[++i]; continue; } - if (ar[i] == FUNCTION) { opt_FUNCTION(ar[++i]); continue; } - if (ar[i] == DELAY) { o3_delay = ar[++i]; continue; } - if (ar[i] == HAUTO) { o3_hauto = (o3_hauto == 0) ? 1 : 0; continue; } - if (ar[i] == VAUTO) { o3_vauto = (o3_vauto == 0) ? 1 : 0; continue; } - if (ar[i] == CLOSECLICK) { o3_closeclick = (o3_closeclick == 0) ? 1 : 0; continue; } - if (ar[i] == CSSOFF) { o3_css = ar[i]; continue; } - if (ar[i] == CSSSTYLE) { o3_css = ar[i]; continue; } - if (ar[i] == CSSCLASS) { o3_css = ar[i]; continue; } - if (ar[i] == FGCLASS) { o3_fgclass = ar[++i]; continue; } - if (ar[i] == BGCLASS) { o3_bgclass = ar[++i]; continue; } - if (ar[i] == TEXTFONTCLASS) { o3_textfontclass = ar[++i]; continue; } - if (ar[i] == CAPTIONFONTCLASS) { o3_captionfontclass = ar[++i]; continue; } - if (ar[i] == CLOSEFONTCLASS) { o3_closefontclass = ar[++i]; continue; } - if (ar[i] == PADUNIT) { o3_padunit = ar[++i]; continue; } - if (ar[i] == HEIGHTUNIT) { o3_heightunit = ar[++i]; continue; } - if (ar[i] == WIDTHUNIT) { o3_widthunit = ar[++i]; continue; } - if (ar[i] == TEXTSIZEUNIT) { o3_textsizeunit = ar[++i]; continue; } - if (ar[i] == TEXTDECORATION) { o3_textdecoration = ar[++i]; continue; } - if (ar[i] == TEXTSTYLE) { o3_textstyle = ar[++i]; continue; } - if (ar[i] == TEXTWEIGHT) { o3_textweight = ar[++i]; continue; } - if (ar[i] == CAPTIONSIZEUNIT) { o3_captionsizeunit = ar[++i]; continue; } - if (ar[i] == CAPTIONDECORATION) { o3_captiondecoration = ar[++i]; continue; } - if (ar[i] == CAPTIONSTYLE) { o3_captionstyle = ar[++i]; continue; } - if (ar[i] == CAPTIONWEIGHT) { o3_captionweight = ar[++i]; continue; } - if (ar[i] == CLOSESIZEUNIT) { o3_closesizeunit = ar[++i]; continue; } - if (ar[i] == CLOSEDECORATION) { o3_closedecoration = ar[++i]; continue; } - if (ar[i] == CLOSESTYLE) { o3_closestyle = ar[++i]; continue; } - if (ar[i] == CLOSEWEIGHT) { o3_closeweight = ar[++i]; continue; } - } - } - - if (o3_delay == 0) { - return overlib350(); - } else { - o3_delayid = setTimeout("overlib350()", o3_delay); - - if (o3_sticky) { - return false; - } else { - return true; - } - } -} - - - -// Clears popups if appropriate -function nd() { - if ( o3_removecounter >= 1 ) { o3_showingsticky = 0 }; - if ( (ns4) || (ie4) || (ns6) ) { - if ( o3_showingsticky == 0 ) { - o3_allowmove = 0; - if (over != null) hideObject(over); - } else { - o3_removecounter++; - } - } - - return true; -} - - - - - - - -//////////////////////////////////////////////////////////////////////////////////// -// OVERLIB 3.50 FUNCTION -//////////////////////////////////////////////////////////////////////////////////// - - -// This function decides what it is we want to display and how we want it done. -function overlib350() { - - // Make layer content - var layerhtml; - - if (o3_background != "" || o3_fullhtml) { - // Use background instead of box. - layerhtml = ol_content_background(o3_text, o3_background, o3_fullhtml); - } else { - // They want a popup box. - - // Prepare popup background - if (o3_fgbackground != "" && o3_css == CSSOFF) { - o3_fgbackground = "BACKGROUND=\""+o3_fgbackground+"\""; - } - if (o3_bgbackground != "" && o3_css == CSSOFF) { - o3_bgbackground = "BACKGROUND=\""+o3_bgbackground+"\""; - } - - // Prepare popup colors - if (o3_fgcolor != "" && o3_css == CSSOFF) { - o3_fgcolor = "BGCOLOR=\""+o3_fgcolor+"\""; - } - if (o3_bgcolor != "" && o3_css == CSSOFF) { - o3_bgcolor = "BGCOLOR=\""+o3_bgcolor+"\""; - } - - // Prepare popup height - if (o3_height > 0 && o3_css == CSSOFF) { - o3_height = "HEIGHT=" + o3_height; - } else { - o3_height = ""; - } - - // Decide which kinda box. - if (o3_cap == "") { - // Plain - layerhtml = ol_content_simple(o3_text); - } else { - // With caption - if (o3_sticky) { - // Show close text - layerhtml = ol_content_caption(o3_text, o3_cap, o3_close); - } else { - // No close text - layerhtml = ol_content_caption(o3_text, o3_cap, ""); - } - } - } - - // We want it to stick! - if (o3_sticky) { - o3_showingsticky = 1; - o3_removecounter = 0; - } - - // Write layer - layerWrite(layerhtml); - - // Prepare status bar - if (o3_autostatus > 0) { - o3_status = o3_text; - if (o3_autostatus > 1) { - o3_status = o3_cap; - } - } - - // When placing the layer the first time, even stickies may be moved. - o3_allowmove = 0; - - // Initiate a timer for timeout - if (o3_timeout > 0) { - if (o3_timerid > 0) clearTimeout(o3_timerid); - o3_timerid = setTimeout("cClick()", o3_timeout); - } - - // Show layer - disp(o3_status); - - // Stickies should stay where they are. - if (o3_sticky) { - o3_allowmove = 0; - return false; - } else { - return true; - } -} - - - -//////////////////////////////////////////////////////////////////////////////////// -// LAYER GENERATION FUNCTIONS -//////////////////////////////////////////////////////////////////////////////////// - -// Makes simple table without caption -function ol_content_simple(text) { - if (o3_css == CSSCLASS) txt = "
    "+text+"
    "; - if (o3_css == CSSSTYLE) txt = "
    "+text+"
    "; - if (o3_css == CSSOFF) txt = "
    "+text+"
    "; - - set_background(""); - return txt; -} - - - - -// Makes table with caption and optional close link -function ol_content_caption(text, title, close) { - closing = ""; - closeevent = "onMouseOver"; - - if (o3_closeclick == 1) closeevent = "onClick"; - if (o3_capicon != "") o3_capicon = " "; - - if (close != "") { - if (o3_css == CSSCLASS) closing = ""+close+""; - if (o3_css == CSSSTYLE) closing = ""+close+""; - if (o3_css == CSSOFF) closing = ""+close+""; - } - - if (o3_css == CSSCLASS) txt = "
    "+closing+"
    "+o3_capicon+title+"
    "+text+"
    "; - if (o3_css == CSSSTYLE) txt = "
    "+closing+"
    "+o3_capicon+title+"
    "+text+"
    "; - if (o3_css == CSSOFF) txt = "
    "+closing+"
    "+o3_capicon+title+"
    "+text+"
    "; - - set_background(""); - return txt; -} - -// Sets the background picture, padding and lots more. :) -function ol_content_background(text, picture, hasfullhtml) { - if (hasfullhtml) { - txt = text; - } else { - if (o3_css == CSSCLASS) txt = "
    "+text+"
    "; - if (o3_css == CSSSTYLE) txt = "
    "+text+"
    "; - if (o3_css == CSSOFF) txt = "
    "+text+"
    "; - } - set_background(picture); - return txt; -} - -// Loads a picture into the div. -function set_background(pic) { - if (pic == "") { - if (ie4) over.backgroundImage = "none"; - if (ns6) over.style.backgroundImage = "none"; - } else { - if (ns4) { - over.background.src = pic; - } else if (ie4) { - over.backgroundImage = "url("+pic+")"; - } else if (ns6) { - over.style.backgroundImage = "url("+pic+")"; - } - } -} - - - -//////////////////////////////////////////////////////////////////////////////////// -// HANDLING FUNCTIONS -//////////////////////////////////////////////////////////////////////////////////// - - -// Displays the popup -function disp(statustext) { - if ( (ns4) || (ie4) || (ns6) ) { - if (o3_allowmove == 0) { - placeLayer(); - showObject(over); - o3_allowmove = 1; - } - } - - if (statustext != "") { - self.status = statustext; - } -} - -// Decides where we want the popup. -function placeLayer() { - var placeX, placeY; - - // HORIZONTAL PLACEMENT - if (o3_fixx > -1) { - // Fixed position - placeX = o3_fixx; - } else { - winoffset = (ie4) ? o3_frame.document.body.scrollLeft : o3_frame.pageXOffset; - if (ie4) iwidth = o3_frame.document.body.clientWidth; - if (ns4) iwidth = o3_frame.innerWidth; // was screwed in mozilla, fixed now? - if (ns6) iwidth = o3_frame.outerWidth; - - // If HAUTO, decide what to use. - if (o3_hauto == 1) { - if ( (o3_x - winoffset) > ((eval(iwidth)) / 2)) { - o3_hpos = LEFT; - } else { - o3_hpos = RIGHT; - } - } - - // From mouse - if (o3_hpos == CENTER) { // Center - placeX = o3_x+o3_offsetx-(o3_width/2); - } - if (o3_hpos == RIGHT) { // Right - placeX = o3_x+o3_offsetx; - if ( (eval(placeX) + eval(o3_width)) > (winoffset + iwidth) ) { - placeX = iwidth + winoffset - o3_width; - if (placeX < 0) placeX = 0; - } - } - if (o3_hpos == LEFT) { // Left - placeX = o3_x-o3_offsetx-o3_width; - if (placeX < winoffset) placeX = winoffset; - } - - // Snapping! - if (o3_snapx > 1) { - var snapping = placeX % o3_snapx; - if (o3_hpos == LEFT) { - placeX = placeX - (o3_snapx + snapping); - } else { - // CENTER and RIGHT - placeX = placeX + (o3_snapx - snapping); - } - if (placeX < winoffset) placeX = winoffset; - } - } - - - - // VERTICAL PLACEMENT - if (o3_fixy > -1) { - // Fixed position - placeY = o3_fixy; - } else { - scrolloffset = (ie4) ? o3_frame.document.body.scrollTop : o3_frame.pageYOffset; - - // If VAUTO, decide what to use. - if (o3_vauto == 1) { - if (ie4) iheight = o3_frame.document.body.clientHeight; - if (ns4) iheight = o3_frame.innerHeight; - if (ns6) iheight = o3_frame.outerHeight; - - iheight = (eval(iheight)) / 2; - if ( (o3_y - scrolloffset) > iheight) { - o3_vpos = ABOVE; - } else { - o3_vpos = BELOW; - } - } - - - // From mouse - if (o3_vpos == ABOVE) { - if (o3_aboveheight == 0) { - var divref = (ie4) ? o3_frame.document.all['overDiv'] : over; - o3_aboveheight = (ns4) ? divref.clip.height : divref.offsetHeight; - } - - placeY = o3_y - (o3_aboveheight + o3_offsety); - if (placeY < scrolloffset) placeY = scrolloffset; - } else { - // BELOW - placeY = o3_y + o3_offsety; - } - - // Snapping! - if (o3_snapy > 1) { - var snapping = placeY % o3_snapy; - - if (o3_aboveheight > 0 && o3_vpos == ABOVE) { - placeY = placeY - (o3_snapy + snapping); - } else { - placeY = placeY + (o3_snapy - snapping); - } - - if (placeY < scrolloffset) placeY = scrolloffset; - } - } - - - // Actually move the object. - repositionTo(over, placeX, placeY); -} - - -// Moves the layer -function mouseMove(e) { - if ( (ns4) || (ns6) ) {o3_x=e.pageX; o3_y=e.pageY;} - if (ie4) {o3_x=event.x; o3_y=event.y;} - if (ie5) {o3_x=event.x+o3_frame.document.body.scrollLeft; o3_y=event.y+o3_frame.document.body.scrollTop;} - - if (o3_allowmove == 1) { - placeLayer(); - } -} - -// The Close onMouseOver function for stickies -function cClick() { - hideObject(over); - o3_showingsticky = 0; - - return false; -} - - -// Makes sure target frame has overLIB -function compatibleframe(frameid) { - if (ns4) { - if (typeof frameid.document.overDiv =='undefined') return false; - } else if (ie4) { - if (typeof frameid.document.all["overDiv"] =='undefined') return false; - } else if (ns6) { - if (frameid.document.getElementById('overDiv') == null) return false; - } - - return true; -} - - - -//////////////////////////////////////////////////////////////////////////////////// -// LAYER FUNCTIONS -//////////////////////////////////////////////////////////////////////////////////// - - -// Writes to a layer -function layerWrite(txt) { - txt += "\n"; - - if (ns4) { - var lyr = o3_frame.document.overDiv.document - - lyr.write(txt) - lyr.close() - } else if (ie4) { - o3_frame.document.all["overDiv"].innerHTML = txt - } else if (ns6) { - range = o3_frame.document.createRange(); - range.setStartBefore(over); - domfrag = range.createContextualFragment(txt); - while (over.hasChildNodes()) { - over.removeChild(over.lastChild); - } - over.appendChild(domfrag); - } -} - -// Make an object visible -function showObject(obj) { - if (ns4) obj.visibility = "show"; - else if (ie4) obj.visibility = "visible"; - else if (ns6) obj.style.visibility = "visible"; -} - -// Hides an object -function hideObject(obj) { - if (ns4) obj.visibility = "hide"; - else if (ie4) obj.visibility = "hidden"; - else if (ns6) obj.style.visibility = "hidden"; - - if (o3_timerid > 0) clearTimeout(o3_timerid); - if (o3_delayid > 0) clearTimeout(o3_delayid); - o3_timerid = 0; - o3_delayid = 0; - self.status = ""; -} - -// Move a layer -function repositionTo(obj,xL,yL) { - if ( (ns4) || (ie4) ) { - obj.left = xL; - obj.top = yL; - } else if (ns6) { - obj.style.left = xL + "px"; - obj.style.top = yL+ "px"; - } -} - - - - - -//////////////////////////////////////////////////////////////////////////////////// -// PARSER FUNCTIONS -//////////////////////////////////////////////////////////////////////////////////// - - -// Defines which frame we should point to. -function opt_FRAME(frm) { - o3_frame = compatibleframe(frm) ? frm : ol_frame; - - if ( (ns4) || (ie4 || (ns6)) ) { - if (ns4) over = o3_frame.document.overDiv; - if (ie4) over = o3_frame.overDiv.style; - if (ns6) over = o3_frame.document.getElementById("overDiv"); - } - - return 0; -} - -// Calls an external function -function opt_FUNCTION(callme) { - o3_text = callme() - return 0; -} - - - - -//end (For internal purposes.) -//////////////////////////////////////////////////////////////////////////////////// -// OVERLIB 2 COMPATABILITY FUNCTIONS -// If you aren't upgrading you can remove the below section. -//////////////////////////////////////////////////////////////////////////////////// - -// Converts old 0=left, 1=right and 2=center into constants. -function vpos_convert(d) { - if (d == 0) { - d = LEFT; - } else { - if (d == 1) { - d = RIGHT; - } else { - d = CENTER; - } - } - - return d; -} - -// Simple popup -function dts(d,text) { - o3_hpos = vpos_convert(d); - overlib(text, o3_hpos, CAPTION, ""); -} - -// Caption popup -function dtc(d,text, title) { - o3_hpos = vpos_convert(d); - overlib(text, CAPTION, title, o3_hpos); -} - -// Sticky -function stc(d,text, title) { - o3_hpos = vpos_convert(d); - overlib(text, CAPTION, title, o3_hpos, STICKY); -} - -// Simple popup right -function drs(text) { - dts(1,text); -} - -// Caption popup right -function drc(text, title) { - dtc(1,text,title); -} - -// Sticky caption right -function src(text,title) { - stc(1,text,title); -} - -// Simple popup left -function dls(text) { - dts(0,text); -} - -// Caption popup left -function dlc(text, title) { - dtc(0,text,title); -} - -// Sticky caption left -function slc(text,title) { - stc(0,text,title); -} - -// Simple popup center -function dcs(text) { - dts(2,text); -} - -// Caption popup center -function dcc(text, title) { - dtc(2,text,title); -} - -// Sticky caption center -function scc(text,title) { - stc(2,text,title); -} diff --git a/zioinfo/js/prototype.js b/zioinfo/js/prototype.js deleted file mode 100644 index 50582217..00000000 --- a/zioinfo/js/prototype.js +++ /dev/null @@ -1,2515 +0,0 @@ -/* Prototype JavaScript framework, version 1.5.0 - * (c) 2005-2007 Sam Stephenson - * - * Prototype is freely distributable under the terms of an MIT-style license. - * For details, see the Prototype web site: http://prototype.conio.net/ - * -/*--------------------------------------------------------------------------*/ - -var Prototype = { - Version: '1.5.0', - BrowserFeatures: { - XPath: !!document.evaluate - }, - - ScriptFragment: '(?:)((\n|\r|.)*?)(?:<\/script>)', - emptyFunction: function() {}, - K: function(x) { return x } -} - -var Class = { - create: function() { - return function() { - this.initialize.apply(this, arguments); - } - } -} - -var Abstract = new Object(); - -Object.extend = function(destination, source) { - for (var property in source) { - destination[property] = source[property]; - } - return destination; -} - -Object.extend(Object, { - inspect: function(object) { - try { - if (object === undefined) return 'undefined'; - if (object === null) return 'null'; - return object.inspect ? object.inspect() : object.toString(); - } catch (e) { - if (e instanceof RangeError) return '...'; - throw e; - } - }, - - keys: function(object) { - var keys = []; - for (var property in object) - keys.push(property); - return keys; - }, - - values: function(object) { - var values = []; - for (var property in object) - values.push(object[property]); - return values; - }, - - clone: function(object) { - return Object.extend({}, object); - } -}); - -Function.prototype.bind = function() { - var __method = this, args = $A(arguments), object = args.shift(); - return function() { - return __method.apply(object, args.concat($A(arguments))); - } -} - -Function.prototype.bindAsEventListener = function(object) { - var __method = this, args = $A(arguments), object = args.shift(); - return function(event) { - return __method.apply(object, [( event || window.event)].concat(args).concat($A(arguments))); - } -} - -Object.extend(Number.prototype, { - toColorPart: function() { - var digits = this.toString(16); - if (this < 16) return '0' + digits; - return digits; - }, - - succ: function() { - return this + 1; - }, - - times: function(iterator) { - $R(0, this, true).each(iterator); - return this; - } -}); - -var Try = { - these: function() { - var returnValue; - - for (var i = 0, length = arguments.length; i < length; i++) { - var lambda = arguments[i]; - try { - returnValue = lambda(); - break; - } catch (e) {} - } - - return returnValue; - } -} - -/*--------------------------------------------------------------------------*/ - -var PeriodicalExecuter = Class.create(); -PeriodicalExecuter.prototype = { - initialize: function(callback, frequency) { - this.callback = callback; - this.frequency = frequency; - this.currentlyExecuting = false; - - this.registerCallback(); - }, - - registerCallback: function() { - this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency * 1000); - }, - - stop: function() { - if (!this.timer) return; - clearInterval(this.timer); - this.timer = null; - }, - - onTimerEvent: function() { - if (!this.currentlyExecuting) { - try { - this.currentlyExecuting = true; - this.callback(this); - } finally { - this.currentlyExecuting = false; - } - } - } -} -String.interpret = function(value){ - return value == null ? '' : String(value); -} - -Object.extend(String.prototype, { - gsub: function(pattern, replacement) { - var result = '', source = this, match; - replacement = arguments.callee.prepareReplacement(replacement); - - while (source.length > 0) { - if (match = source.match(pattern)) { - result += source.slice(0, match.index); - result += String.interpret(replacement(match)); - source = source.slice(match.index + match[0].length); - } else { - result += source, source = ''; - } - } - return result; - }, - - sub: function(pattern, replacement, count) { - replacement = this.gsub.prepareReplacement(replacement); - count = count === undefined ? 1 : count; - - return this.gsub(pattern, function(match) { - if (--count < 0) return match[0]; - return replacement(match); - }); - }, - - scan: function(pattern, iterator) { - this.gsub(pattern, iterator); - return this; - }, - - truncate: function(length, truncation) { - length = length || 30; - truncation = truncation === undefined ? '...' : truncation; - return this.length > length ? - this.slice(0, length - truncation.length) + truncation : this; - }, - - strip: function() { - return this.replace(/^\s+/, '').replace(/\s+$/, ''); - }, - - stripTags: function() { - return this.replace(/<\/?[^>]+>/gi, ''); - }, - - stripScripts: function() { - return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), ''); - }, - - extractScripts: function() { - var matchAll = new RegExp(Prototype.ScriptFragment, 'img'); - var matchOne = new RegExp(Prototype.ScriptFragment, 'im'); - return (this.match(matchAll) || []).map(function(scriptTag) { - return (scriptTag.match(matchOne) || ['', ''])[1]; - }); - }, - - evalScripts: function() { - return this.extractScripts().map(function(script) { return eval(script) }); - }, - - escapeHTML: function() { - var div = document.createElement('div'); - var text = document.createTextNode(this); - div.appendChild(text); - return div.innerHTML; - }, - - unescapeHTML: function() { - var div = document.createElement('div'); - div.innerHTML = this.stripTags(); - return div.childNodes[0] ? (div.childNodes.length > 1 ? - $A(div.childNodes).inject('',function(memo,node){ return memo+node.nodeValue }) : - div.childNodes[0].nodeValue) : ''; - }, - - toQueryParams: function(separator) { - var match = this.strip().match(/([^?#]*)(#.*)?$/); - if (!match) return {}; - - return match[1].split(separator || '&').inject({}, function(hash, pair) { - if ((pair = pair.split('='))[0]) { - var name = decodeURIComponent(pair[0]); - var value = pair[1] ? decodeURIComponent(pair[1]) : undefined; - - if (hash[name] !== undefined) { - if (hash[name].constructor != Array) - hash[name] = [hash[name]]; - if (value) hash[name].push(value); - } - else hash[name] = value; - } - return hash; - }); - }, - - toArray: function() { - return this.split(''); - }, - - succ: function() { - return this.slice(0, this.length - 1) + - String.fromCharCode(this.charCodeAt(this.length - 1) + 1); - }, - - camelize: function() { - var parts = this.split('-'), len = parts.length; - if (len == 1) return parts[0]; - - var camelized = this.charAt(0) == '-' - ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1) - : parts[0]; - - for (var i = 1; i < len; i++) - camelized += parts[i].charAt(0).toUpperCase() + parts[i].substring(1); - - return camelized; - }, - - capitalize: function(){ - return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase(); - }, - - underscore: function() { - return this.gsub(/::/, '/').gsub(/([A-Z]+)([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{1}_#{2}').gsub(/-/,'_').toLowerCase(); - }, - - dasherize: function() { - return this.gsub(/_/,'-'); - }, - - inspect: function(useDoubleQuotes) { - var escapedString = this.replace(/\\/g, '\\\\'); - if (useDoubleQuotes) - return '"' + escapedString.replace(/"/g, '\\"') + '"'; - else - return "'" + escapedString.replace(/'/g, '\\\'') + "'"; - } -}); - -String.prototype.gsub.prepareReplacement = function(replacement) { - if (typeof replacement == 'function') return replacement; - var template = new Template(replacement); - return function(match) { return template.evaluate(match) }; -} - -String.prototype.parseQuery = String.prototype.toQueryParams; - -var Template = Class.create(); -Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/; -Template.prototype = { - initialize: function(template, pattern) { - this.template = template.toString(); - this.pattern = pattern || Template.Pattern; - }, - - evaluate: function(object) { - return this.template.gsub(this.pattern, function(match) { - var before = match[1]; - if (before == '\\') return match[2]; - return before + String.interpret(object[match[3]]); - }); - } -} - -var $break = new Object(); -var $continue = new Object(); - -var Enumerable = { - each: function(iterator) { - var index = 0; - try { - this._each(function(value) { - try { - iterator(value, index++); - } catch (e) { - if (e != $continue) throw e; - } - }); - } catch (e) { - if (e != $break) throw e; - } - return this; - }, - - eachSlice: function(number, iterator) { - var index = -number, slices = [], array = this.toArray(); - while ((index += number) < array.length) - slices.push(array.slice(index, index+number)); - return slices.map(iterator); - }, - - all: function(iterator) { - var result = true; - this.each(function(value, index) { - result = result && !!(iterator || Prototype.K)(value, index); - if (!result) throw $break; - }); - return result; - }, - - any: function(iterator) { - var result = false; - this.each(function(value, index) { - if (result = !!(iterator || Prototype.K)(value, index)) - throw $break; - }); - return result; - }, - - collect: function(iterator) { - var results = []; - this.each(function(value, index) { - results.push((iterator || Prototype.K)(value, index)); - }); - return results; - }, - - detect: function(iterator) { - var result; - this.each(function(value, index) { - if (iterator(value, index)) { - result = value; - throw $break; - } - }); - return result; - }, - - findAll: function(iterator) { - var results = []; - this.each(function(value, index) { - if (iterator(value, index)) - results.push(value); - }); - return results; - }, - - grep: function(pattern, iterator) { - var results = []; - this.each(function(value, index) { - var stringValue = value.toString(); - if (stringValue.match(pattern)) - results.push((iterator || Prototype.K)(value, index)); - }) - return results; - }, - - include: function(object) { - var found = false; - this.each(function(value) { - if (value == object) { - found = true; - throw $break; - } - }); - return found; - }, - - inGroupsOf: function(number, fillWith) { - fillWith = fillWith === undefined ? null : fillWith; - return this.eachSlice(number, function(slice) { - while(slice.length < number) slice.push(fillWith); - return slice; - }); - }, - - inject: function(memo, iterator) { - this.each(function(value, index) { - memo = iterator(memo, value, index); - }); - return memo; - }, - - invoke: function(method) { - var args = $A(arguments).slice(1); - return this.map(function(value) { - return value[method].apply(value, args); - }); - }, - - max: function(iterator) { - var result; - this.each(function(value, index) { - value = (iterator || Prototype.K)(value, index); - if (result == undefined || value >= result) - result = value; - }); - return result; - }, - - min: function(iterator) { - var result; - this.each(function(value, index) { - value = (iterator || Prototype.K)(value, index); - if (result == undefined || value < result) - result = value; - }); - return result; - }, - - partition: function(iterator) { - var trues = [], falses = []; - this.each(function(value, index) { - ((iterator || Prototype.K)(value, index) ? - trues : falses).push(value); - }); - return [trues, falses]; - }, - - pluck: function(property) { - var results = []; - this.each(function(value, index) { - results.push(value[property]); - }); - return results; - }, - - reject: function(iterator) { - var results = []; - this.each(function(value, index) { - if (!iterator(value, index)) - results.push(value); - }); - return results; - }, - - sortBy: function(iterator) { - return this.map(function(value, index) { - return {value: value, criteria: iterator(value, index)}; - }).sort(function(left, right) { - var a = left.criteria, b = right.criteria; - return a < b ? -1 : a > b ? 1 : 0; - }).pluck('value'); - }, - - toArray: function() { - return this.map(); - }, - - zip: function() { - var iterator = Prototype.K, args = $A(arguments); - if (typeof args.last() == 'function') - iterator = args.pop(); - - var collections = [this].concat(args).map($A); - return this.map(function(value, index) { - return iterator(collections.pluck(index)); - }); - }, - - size: function() { - return this.toArray().length; - }, - - inspect: function() { - return '#'; - } -} - -Object.extend(Enumerable, { - map: Enumerable.collect, - find: Enumerable.detect, - select: Enumerable.findAll, - member: Enumerable.include, - entries: Enumerable.toArray -}); -var $A = Array.from = function(iterable) { - if (!iterable) return []; - if (iterable.toArray) { - return iterable.toArray(); - } else { - var results = []; - for (var i = 0, length = iterable.length; i < length; i++) - results.push(iterable[i]); - return results; - } -} - -Object.extend(Array.prototype, Enumerable); - -if (!Array.prototype._reverse) - Array.prototype._reverse = Array.prototype.reverse; - -Object.extend(Array.prototype, { - _each: function(iterator) { - for (var i = 0, length = this.length; i < length; i++) - iterator(this[i]); - }, - - clear: function() { - this.length = 0; - return this; - }, - - first: function() { - return this[0]; - }, - - last: function() { - return this[this.length - 1]; - }, - - compact: function() { - return this.select(function(value) { - return value != null; - }); - }, - - flatten: function() { - return this.inject([], function(array, value) { - return array.concat(value && value.constructor == Array ? - value.flatten() : [value]); - }); - }, - - without: function() { - var values = $A(arguments); - return this.select(function(value) { - return !values.include(value); - }); - }, - - indexOf: function(object) { - for (var i = 0, length = this.length; i < length; i++) - if (this[i] == object) return i; - return -1; - }, - - reverse: function(inline) { - return (inline !== false ? this : this.toArray())._reverse(); - }, - - reduce: function() { - return this.length > 1 ? this : this[0]; - }, - - uniq: function() { - return this.inject([], function(array, value) { - return array.include(value) ? array : array.concat([value]); - }); - }, - - clone: function() { - return [].concat(this); - }, - - size: function() { - return this.length; - }, - - inspect: function() { - return '[' + this.map(Object.inspect).join(', ') + ']'; - } -}); - -Array.prototype.toArray = Array.prototype.clone; - -function $w(string){ - string = string.strip(); - return string ? string.split(/\s+/) : []; -} - -if(window.opera){ - Array.prototype.concat = function(){ - var array = []; - for(var i = 0, length = this.length; i < length; i++) array.push(this[i]); - for(var i = 0, length = arguments.length; i < length; i++) { - if(arguments[i].constructor == Array) { - for(var j = 0, arrayLength = arguments[i].length; j < arrayLength; j++) - array.push(arguments[i][j]); - } else { - array.push(arguments[i]); - } - } - return array; - } -} -var Hash = function(obj) { - Object.extend(this, obj || {}); -}; - -Object.extend(Hash, { - toQueryString: function(obj) { - var parts = []; - - this.prototype._each.call(obj, function(pair) { - if (!pair.key) return; - - if (pair.value && pair.value.constructor == Array) { - var values = pair.value.compact(); - if (values.length < 2) pair.value = values.reduce(); - else { - key = encodeURIComponent(pair.key); - values.each(function(value) { - value = value != undefined ? encodeURIComponent(value) : ''; - parts.push(key + '=' + encodeURIComponent(value)); - }); - return; - } - } - if (pair.value == undefined) pair[1] = ''; - parts.push(pair.map(encodeURIComponent).join('=')); - }); - - return parts.join('&'); - } -}); - -Object.extend(Hash.prototype, Enumerable); -Object.extend(Hash.prototype, { - _each: function(iterator) { - for (var key in this) { - var value = this[key]; - if (value && value == Hash.prototype[key]) continue; - - var pair = [key, value]; - pair.key = key; - pair.value = value; - iterator(pair); - } - }, - - keys: function() { - return this.pluck('key'); - }, - - values: function() { - return this.pluck('value'); - }, - - merge: function(hash) { - return $H(hash).inject(this, function(mergedHash, pair) { - mergedHash[pair.key] = pair.value; - return mergedHash; - }); - }, - - remove: function() { - var result; - for(var i = 0, length = arguments.length; i < length; i++) { - var value = this[arguments[i]]; - if (value !== undefined){ - if (result === undefined) result = value; - else { - if (result.constructor != Array) result = [result]; - result.push(value) - } - } - delete this[arguments[i]]; - } - return result; - }, - - toQueryString: function() { - return Hash.toQueryString(this); - }, - - inspect: function() { - return '#'; - } -}); - -function $H(object) { - if (object && object.constructor == Hash) return object; - return new Hash(object); -}; -ObjectRange = Class.create(); -Object.extend(ObjectRange.prototype, Enumerable); -Object.extend(ObjectRange.prototype, { - initialize: function(start, end, exclusive) { - this.start = start; - this.end = end; - this.exclusive = exclusive; - }, - - _each: function(iterator) { - var value = this.start; - while (this.include(value)) { - iterator(value); - value = value.succ(); - } - }, - - include: function(value) { - if (value < this.start) - return false; - if (this.exclusive) - return value < this.end; - return value <= this.end; - } -}); - -var $R = function(start, end, exclusive) { - return new ObjectRange(start, end, exclusive); -} - -var Ajax = { - getTransport: function() { - return Try.these( - function() {return new XMLHttpRequest()}, - function() {return new ActiveXObject('Msxml2.XMLHTTP')}, - function() {return new ActiveXObject('Microsoft.XMLHTTP')} - ) || false; - }, - - activeRequestCount: 0 -} - -Ajax.Responders = { - responders: [], - - _each: function(iterator) { - this.responders._each(iterator); - }, - - register: function(responder) { - if (!this.include(responder)) - this.responders.push(responder); - }, - - unregister: function(responder) { - this.responders = this.responders.without(responder); - }, - - dispatch: function(callback, request, transport, json) { - this.each(function(responder) { - if (typeof responder[callback] == 'function') { - try { - responder[callback].apply(responder, [request, transport, json]); - } catch (e) {} - } - }); - } -}; - -Object.extend(Ajax.Responders, Enumerable); - -Ajax.Responders.register({ - onCreate: function() { - Ajax.activeRequestCount++; - }, - onComplete: function() { - Ajax.activeRequestCount--; - } -}); - -Ajax.Base = function() {}; -Ajax.Base.prototype = { - setOptions: function(options) { - this.options = { - method: 'post', - asynchronous: true, - contentType: 'application/x-www-form-urlencoded', - encoding: 'UTF-8', - parameters: '' - } - Object.extend(this.options, options || {}); - - this.options.method = this.options.method.toLowerCase(); - if (typeof this.options.parameters == 'string') - this.options.parameters = this.options.parameters.toQueryParams(); - } -} - -Ajax.Request = Class.create(); -Ajax.Request.Events = - ['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete']; - -Ajax.Request.prototype = Object.extend(new Ajax.Base(), { - _complete: false, - - initialize: function(url, options) { - this.transport = Ajax.getTransport(); - this.setOptions(options); - this.request(url); - }, - - request: function(url) { - this.url = url; - this.method = this.options.method; - var params = this.options.parameters; - - if (!['get', 'post'].include(this.method)) { - // simulate other verbs over post - params['_method'] = this.method; - this.method = 'post'; - } - - params = Hash.toQueryString(params); - if (params && /Konqueror|Safari|KHTML/.test(navigator.userAgent)) params += '&_=' - - // when GET, append parameters to URL - if (this.method == 'get' && params) - this.url += (this.url.indexOf('?') > -1 ? '&' : '?') + params; - - try { - Ajax.Responders.dispatch('onCreate', this, this.transport); - - this.transport.open(this.method.toUpperCase(), this.url, - this.options.asynchronous); - - if (this.options.asynchronous) - setTimeout(function() { this.respondToReadyState(1) }.bind(this), 10); - - this.transport.onreadystatechange = this.onStateChange.bind(this); - this.setRequestHeaders(); - - var body = this.method == 'post' ? (this.options.postBody || params) : null; - - this.transport.send(body); - - /* Force Firefox to handle ready state 4 for synchronous requests */ - if (!this.options.asynchronous && this.transport.overrideMimeType) - this.onStateChange(); - - } - catch (e) { - this.dispatchException(e); - } - }, - - onStateChange: function() { - var readyState = this.transport.readyState; - if (readyState > 1 && !((readyState == 4) && this._complete)) - this.respondToReadyState(this.transport.readyState); - }, - - setRequestHeaders: function() { - var headers = { - 'X-Requested-With': 'XMLHttpRequest', - 'X-Prototype-Version': Prototype.Version, - 'Accept': 'text/javascript, text/html, application/xml, text/xml, */*' - }; - - if (this.method == 'post') { - headers['Content-type'] = this.options.contentType + - (this.options.encoding ? '; charset=' + this.options.encoding : ''); - - /* Force "Connection: close" for older Mozilla browsers to work - * around a bug where XMLHttpRequest sends an incorrect - * Content-length header. See Mozilla Bugzilla #246651. - */ - if (this.transport.overrideMimeType && - (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0,2005])[1] < 2005) - headers['Connection'] = 'close'; - } - - // user-defined headers - if (typeof this.options.requestHeaders == 'object') { - var extras = this.options.requestHeaders; - - if (typeof extras.push == 'function') - for (var i = 0, length = extras.length; i < length; i += 2) - headers[extras[i]] = extras[i+1]; - else - $H(extras).each(function(pair) { headers[pair.key] = pair.value }); - } - - for (var name in headers) - this.transport.setRequestHeader(name, headers[name]); - }, - - success: function() { - return !this.transport.status - || (this.transport.status >= 200 && this.transport.status < 300); - }, - - respondToReadyState: function(readyState) { - var state = Ajax.Request.Events[readyState]; - var transport = this.transport, json = this.evalJSON(); - - if (state == 'Complete') { - try { - this._complete = true; - (this.options['on' + this.transport.status] - || this.options['on' + (this.success() ? 'Success' : 'Failure')] - || Prototype.emptyFunction)(transport, json); - } catch (e) { - this.dispatchException(e); - } - - if ((this.getHeader('Content-type') || 'text/javascript').strip(). - match(/^(text|application)\/(x-)?(java|ecma)script(;.*)?$/i)) - this.evalResponse(); - } - - try { - (this.options['on' + state] || Prototype.emptyFunction)(transport, json); - Ajax.Responders.dispatch('on' + state, this, transport, json); - } catch (e) { - this.dispatchException(e); - } - - if (state == 'Complete') { - // avoid memory leak in MSIE: clean up - this.transport.onreadystatechange = Prototype.emptyFunction; - } - }, - - getHeader: function(name) { - try { - return this.transport.getResponseHeader(name); - } catch (e) { return null } - }, - - evalJSON: function() { - try { - var json = this.getHeader('X-JSON'); - return json ? eval('(' + json + ')') : null; - } catch (e) { return null } - }, - - evalResponse: function() { - try { - return eval(this.transport.responseText); - } catch (e) { - this.dispatchException(e); - } - }, - - dispatchException: function(exception) { - (this.options.onException || Prototype.emptyFunction)(this, exception); - Ajax.Responders.dispatch('onException', this, exception); - } -}); - -Ajax.Updater = Class.create(); - -Object.extend(Object.extend(Ajax.Updater.prototype, Ajax.Request.prototype), { - initialize: function(container, url, options) { - this.container = { - success: (container.success || container), - failure: (container.failure || (container.success ? null : container)) - } - - this.transport = Ajax.getTransport(); - this.setOptions(options); - - var onComplete = this.options.onComplete || Prototype.emptyFunction; - this.options.onComplete = (function(transport, param) { - this.updateContent(); - onComplete(transport, param); - }).bind(this); - - this.request(url); - }, - - updateContent: function() { - var receiver = this.container[this.success() ? 'success' : 'failure']; - var response = this.transport.responseText; - - if (!this.options.evalScripts) response = response.stripScripts(); - - if (receiver = $(receiver)) { - if (this.options.insertion) - new this.options.insertion(receiver, response); - else - receiver.update(response); - } - - if (this.success()) { - if (this.onComplete) - setTimeout(this.onComplete.bind(this), 10); - } - } -}); - -Ajax.PeriodicalUpdater = Class.create(); -Ajax.PeriodicalUpdater.prototype = Object.extend(new Ajax.Base(), { - initialize: function(container, url, options) { - this.setOptions(options); - this.onComplete = this.options.onComplete; - - this.frequency = (this.options.frequency || 2); - this.decay = (this.options.decay || 1); - - this.updater = {}; - this.container = container; - this.url = url; - - this.start(); - }, - - start: function() { - this.options.onComplete = this.updateComplete.bind(this); - this.onTimerEvent(); - }, - - stop: function() { - this.updater.options.onComplete = undefined; - clearTimeout(this.timer); - (this.onComplete || Prototype.emptyFunction).apply(this, arguments); - }, - - updateComplete: function(request) { - if (this.options.decay) { - this.decay = (request.responseText == this.lastText ? - this.decay * this.options.decay : 1); - - this.lastText = request.responseText; - } - this.timer = setTimeout(this.onTimerEvent.bind(this), - this.decay * this.frequency * 1000); - }, - - onTimerEvent: function() { - this.updater = new Ajax.Updater(this.container, this.url, this.options); - } -}); -function $(element) { - if (arguments.length > 1) { - for (var i = 0, elements = [], length = arguments.length; i < length; i++) - elements.push($(arguments[i])); - return elements; - } - if (typeof element == 'string') - element = document.getElementById(element); - return Element.extend(element); -} - -if (Prototype.BrowserFeatures.XPath) { - document._getElementsByXPath = function(expression, parentElement) { - var results = []; - var query = document.evaluate(expression, $(parentElement) || document, - null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); - for (var i = 0, length = query.snapshotLength; i < length; i++) - results.push(query.snapshotItem(i)); - return results; - }; -} - -document.getElementsByClassName = function(className, parentElement) { - if (Prototype.BrowserFeatures.XPath) { - var q = ".//*[contains(concat(' ', @class, ' '), ' " + className + " ')]"; - return document._getElementsByXPath(q, parentElement); - } else { - var children = ($(parentElement) || document.body).getElementsByTagName('*'); - var elements = [], child; - for (var i = 0, length = children.length; i < length; i++) { - child = children[i]; - if (Element.hasClassName(child, className)) - elements.push(Element.extend(child)); - } - return elements; - } -}; - -/*--------------------------------------------------------------------------*/ - -if (!window.Element) - var Element = new Object(); - -Element.extend = function(element) { - if (!element || _nativeExtensions || element.nodeType == 3) return element; - - if (!element._extended && element.tagName && element != window) { - var methods = Object.clone(Element.Methods), cache = Element.extend.cache; - - if (element.tagName == 'FORM') - Object.extend(methods, Form.Methods); - if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName)) - Object.extend(methods, Form.Element.Methods); - - Object.extend(methods, Element.Methods.Simulated); - - for (var property in methods) { - var value = methods[property]; - if (typeof value == 'function' && !(property in element)) - element[property] = cache.findOrStore(value); - } - } - - element._extended = true; - return element; -}; - -Element.extend.cache = { - findOrStore: function(value) { - return this[value] = this[value] || function() { - return value.apply(null, [this].concat($A(arguments))); - } - } -}; - -Element.Methods = { - visible: function(element) { - return $(element).style.display != 'none'; - }, - - toggle: function(element) { - element = $(element); - Element[Element.visible(element) ? 'hide' : 'show'](element); - return element; - }, - - hide: function(element) { - $(element).style.display = 'none'; - return element; - }, - - show: function(element) { - $(element).style.display = ''; - return element; - }, - - remove: function(element) { - element = $(element); - element.parentNode.removeChild(element); - return element; - }, - - update: function(element, html) { - html = typeof html == 'undefined' ? '' : html.toString(); - $(element).innerHTML = html.stripScripts(); - setTimeout(function() {html.evalScripts()}, 10); - return element; - }, - - replace: function(element, html) { - element = $(element); - html = typeof html == 'undefined' ? '' : html.toString(); - if (element.outerHTML) { - element.outerHTML = html.stripScripts(); - } else { - var range = element.ownerDocument.createRange(); - range.selectNodeContents(element); - element.parentNode.replaceChild( - range.createContextualFragment(html.stripScripts()), element); - } - setTimeout(function() {html.evalScripts()}, 10); - return element; - }, - - inspect: function(element) { - element = $(element); - var result = '<' + element.tagName.toLowerCase(); - $H({'id': 'id', 'className': 'class'}).each(function(pair) { - var property = pair.first(), attribute = pair.last(); - var value = (element[property] || '').toString(); - if (value) result += ' ' + attribute + '=' + value.inspect(true); - }); - return result + '>'; - }, - - recursivelyCollect: function(element, property) { - element = $(element); - var elements = []; - while (element = element[property]) - if (element.nodeType == 1) - elements.push(Element.extend(element)); - return elements; - }, - - ancestors: function(element) { - return $(element).recursivelyCollect('parentNode'); - }, - - descendants: function(element) { - return $A($(element).getElementsByTagName('*')); - }, - - immediateDescendants: function(element) { - if (!(element = $(element).firstChild)) return []; - while (element && element.nodeType != 1) element = element.nextSibling; - if (element) return [element].concat($(element).nextSiblings()); - return []; - }, - - previousSiblings: function(element) { - return $(element).recursivelyCollect('previousSibling'); - }, - - nextSiblings: function(element) { - return $(element).recursivelyCollect('nextSibling'); - }, - - siblings: function(element) { - element = $(element); - return element.previousSiblings().reverse().concat(element.nextSiblings()); - }, - - match: function(element, selector) { - if (typeof selector == 'string') - selector = new Selector(selector); - return selector.match($(element)); - }, - - up: function(element, expression, index) { - return Selector.findElement($(element).ancestors(), expression, index); - }, - - down: function(element, expression, index) { - return Selector.findElement($(element).descendants(), expression, index); - }, - - previous: function(element, expression, index) { - return Selector.findElement($(element).previousSiblings(), expression, index); - }, - - next: function(element, expression, index) { - return Selector.findElement($(element).nextSiblings(), expression, index); - }, - - getElementsBySelector: function() { - var args = $A(arguments), element = $(args.shift()); - return Selector.findChildElements(element, args); - }, - - getElementsByClassName: function(element, className) { - return document.getElementsByClassName(className, element); - }, - - readAttribute: function(element, name) { - element = $(element); - if (document.all && !window.opera) { - var t = Element._attributeTranslations; - if (t.values[name]) return t.values[name](element, name); - if (t.names[name]) name = t.names[name]; - var attribute = element.attributes[name]; - if(attribute) return attribute.nodeValue; - } - return element.getAttribute(name); - }, - - getHeight: function(element) { - return $(element).getDimensions().height; - }, - - getWidth: function(element) { - return $(element).getDimensions().width; - }, - - classNames: function(element) { - return new Element.ClassNames(element); - }, - - hasClassName: function(element, className) { - if (!(element = $(element))) return; - var elementClassName = element.className; - if (elementClassName.length == 0) return false; - if (elementClassName == className || - elementClassName.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) - return true; - return false; - }, - - addClassName: function(element, className) { - if (!(element = $(element))) return; - Element.classNames(element).add(className); - return element; - }, - - removeClassName: function(element, className) { - if (!(element = $(element))) return; - Element.classNames(element).remove(className); - return element; - }, - - toggleClassName: function(element, className) { - if (!(element = $(element))) return; - Element.classNames(element)[element.hasClassName(className) ? 'remove' : 'add'](className); - return element; - }, - - observe: function() { - Event.observe.apply(Event, arguments); - return $A(arguments).first(); - }, - - stopObserving: function() { - Event.stopObserving.apply(Event, arguments); - return $A(arguments).first(); - }, - - // removes whitespace-only text node children - cleanWhitespace: function(element) { - element = $(element); - var node = element.firstChild; - while (node) { - var nextNode = node.nextSibling; - if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) - element.removeChild(node); - node = nextNode; - } - return element; - }, - - empty: function(element) { - return $(element).innerHTML.match(/^\s*$/); - }, - - descendantOf: function(element, ancestor) { - element = $(element), ancestor = $(ancestor); - while (element = element.parentNode) - if (element == ancestor) return true; - return false; - }, - - scrollTo: function(element) { - element = $(element); - var pos = Position.cumulativeOffset(element); - window.scrollTo(pos[0], pos[1]); - return element; - }, - - getStyle: function(element, style) { - element = $(element); - if (['float','cssFloat'].include(style)) - style = (typeof element.style.styleFloat != 'undefined' ? 'styleFloat' : 'cssFloat'); - style = style.camelize(); - var value = element.style[style]; - if (!value) { - if (document.defaultView && document.defaultView.getComputedStyle) { - var css = document.defaultView.getComputedStyle(element, null); - value = css ? css[style] : null; - } else if (element.currentStyle) { - value = element.currentStyle[style]; - } - } - - if((value == 'auto') && ['width','height'].include(style) && (element.getStyle('display') != 'none')) - value = element['offset'+style.capitalize()] + 'px'; - - if (window.opera && ['left', 'top', 'right', 'bottom'].include(style)) - if (Element.getStyle(element, 'position') == 'static') value = 'auto'; - if(style == 'opacity') { - if(value) return parseFloat(value); - if(value = (element.getStyle('filter') || '').match(/alpha\(opacity=(.*)\)/)) - if(value[1]) return parseFloat(value[1]) / 100; - return 1.0; - } - return value == 'auto' ? null : value; - }, - - setStyle: function(element, style) { - element = $(element); - for (var name in style) { - var value = style[name]; - if(name == 'opacity') { - if (value == 1) { - value = (/Gecko/.test(navigator.userAgent) && - !/Konqueror|Safari|KHTML/.test(navigator.userAgent)) ? 0.999999 : 1.0; - if(/MSIE/.test(navigator.userAgent) && !window.opera) - element.style.filter = element.getStyle('filter').replace(/alpha\([^\)]*\)/gi,''); - } else if(value == '') { - if(/MSIE/.test(navigator.userAgent) && !window.opera) - element.style.filter = element.getStyle('filter').replace(/alpha\([^\)]*\)/gi,''); - } else { - if(value < 0.00001) value = 0; - if(/MSIE/.test(navigator.userAgent) && !window.opera) - element.style.filter = element.getStyle('filter').replace(/alpha\([^\)]*\)/gi,'') + - 'alpha(opacity='+value*100+')'; - } - } else if(['float','cssFloat'].include(name)) name = (typeof element.style.styleFloat != 'undefined') ? 'styleFloat' : 'cssFloat'; - element.style[name.camelize()] = value; - } - return element; - }, - - getDimensions: function(element) { - element = $(element); - var display = $(element).getStyle('display'); - if (display != 'none' && display != null) // Safari bug - return {width: element.offsetWidth, height: element.offsetHeight}; - - // All *Width and *Height properties give 0 on elements with display none, - // so enable the element temporarily - var els = element.style; - var originalVisibility = els.visibility; - var originalPosition = els.position; - var originalDisplay = els.display; - els.visibility = 'hidden'; - els.position = 'absolute'; - els.display = 'block'; - var originalWidth = element.clientWidth; - var originalHeight = element.clientHeight; - els.display = originalDisplay; - els.position = originalPosition; - els.visibility = originalVisibility; - return {width: originalWidth, height: originalHeight}; - }, - - makePositioned: function(element) { - element = $(element); - var pos = Element.getStyle(element, 'position'); - if (pos == 'static' || !pos) { - element._madePositioned = true; - element.style.position = 'relative'; - // Opera returns the offset relative to the positioning context, when an - // element is position relative but top and left have not been defined - if (window.opera) { - element.style.top = 0; - element.style.left = 0; - } - } - return element; - }, - - undoPositioned: function(element) { - element = $(element); - if (element._madePositioned) { - element._madePositioned = undefined; - element.style.position = - element.style.top = - element.style.left = - element.style.bottom = - element.style.right = ''; - } - return element; - }, - - makeClipping: function(element) { - element = $(element); - if (element._overflow) return element; - element._overflow = element.style.overflow || 'auto'; - if ((Element.getStyle(element, 'overflow') || 'visible') != 'hidden') - element.style.overflow = 'hidden'; - return element; - }, - - undoClipping: function(element) { - element = $(element); - if (!element._overflow) return element; - element.style.overflow = element._overflow == 'auto' ? '' : element._overflow; - element._overflow = null; - return element; - } -}; - -Object.extend(Element.Methods, {childOf: Element.Methods.descendantOf}); - -Element._attributeTranslations = {}; - -Element._attributeTranslations.names = { - colspan: "colSpan", - rowspan: "rowSpan", - valign: "vAlign", - datetime: "dateTime", - accesskey: "accessKey", - tabindex: "tabIndex", - enctype: "encType", - maxlength: "maxLength", - readonly: "readOnly", - longdesc: "longDesc" -}; - -Element._attributeTranslations.values = { - _getAttr: function(element, attribute) { - return element.getAttribute(attribute, 2); - }, - - _flag: function(element, attribute) { - return $(element).hasAttribute(attribute) ? attribute : null; - }, - - style: function(element) { - return element.style.cssText.toLowerCase(); - }, - - title: function(element) { - var node = element.getAttributeNode('title'); - return node.specified ? node.nodeValue : null; - } -}; - -Object.extend(Element._attributeTranslations.values, { - href: Element._attributeTranslations.values._getAttr, - src: Element._attributeTranslations.values._getAttr, - disabled: Element._attributeTranslations.values._flag, - checked: Element._attributeTranslations.values._flag, - readonly: Element._attributeTranslations.values._flag, - multiple: Element._attributeTranslations.values._flag -}); - -Element.Methods.Simulated = { - hasAttribute: function(element, attribute) { - var t = Element._attributeTranslations; - attribute = t.names[attribute] || attribute; - return $(element).getAttributeNode(attribute).specified; - } -}; - -// IE is missing .innerHTML support for TABLE-related elements -if (document.all && !window.opera){ - Element.Methods.update = function(element, html) { - element = $(element); - html = typeof html == 'undefined' ? '' : html.toString(); - var tagName = element.tagName.toUpperCase(); - if (['THEAD','TBODY','TR','TD'].include(tagName)) { - var div = document.createElement('div'); - switch (tagName) { - case 'THEAD': - case 'TBODY': - div.innerHTML = '' + html.stripScripts() + '
    '; - depth = 2; - break; - case 'TR': - div.innerHTML = '' + html.stripScripts() + '
    '; - depth = 3; - break; - case 'TD': - div.innerHTML = '
    ' + html.stripScripts() + '
    '; - depth = 4; - } - $A(element.childNodes).each(function(node){ - element.removeChild(node) - }); - depth.times(function(){ div = div.firstChild }); - - $A(div.childNodes).each( - function(node){ element.appendChild(node) }); - } else { - element.innerHTML = html.stripScripts(); - } - setTimeout(function() {html.evalScripts()}, 10); - return element; - } -}; - -Object.extend(Element, Element.Methods); - -var _nativeExtensions = false; - -if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)) - ['', 'Form', 'Input', 'TextArea', 'Select'].each(function(tag) { - var className = 'HTML' + tag + 'Element'; - if(window[className]) return; - var klass = window[className] = {}; - klass.prototype = document.createElement(tag ? tag.toLowerCase() : 'div').__proto__; - }); - -Element.addMethods = function(methods) { - Object.extend(Element.Methods, methods || {}); - - function copy(methods, destination, onlyIfAbsent) { - onlyIfAbsent = onlyIfAbsent || false; - var cache = Element.extend.cache; - for (var property in methods) { - var value = methods[property]; - if (!onlyIfAbsent || !(property in destination)) - destination[property] = cache.findOrStore(value); - } - } - - if (typeof HTMLElement != 'undefined') { - copy(Element.Methods, HTMLElement.prototype); - copy(Element.Methods.Simulated, HTMLElement.prototype, true); - copy(Form.Methods, HTMLFormElement.prototype); - [HTMLInputElement, HTMLTextAreaElement, HTMLSelectElement].each(function(klass) { - copy(Form.Element.Methods, klass.prototype); - }); - _nativeExtensions = true; - } -} - -var Toggle = new Object(); -Toggle.display = Element.toggle; - -/*--------------------------------------------------------------------------*/ - -Abstract.Insertion = function(adjacency) { - this.adjacency = adjacency; -} - -Abstract.Insertion.prototype = { - initialize: function(element, content) { - this.element = $(element); - this.content = content.stripScripts(); - - if (this.adjacency && this.element.insertAdjacentHTML) { - try { - this.element.insertAdjacentHTML(this.adjacency, this.content); - } catch (e) { - var tagName = this.element.tagName.toUpperCase(); - if (['TBODY', 'TR'].include(tagName)) { - this.insertContent(this.contentFromAnonymousTable()); - } else { - throw e; - } - } - } else { - this.range = this.element.ownerDocument.createRange(); - if (this.initializeRange) this.initializeRange(); - this.insertContent([this.range.createContextualFragment(this.content)]); - } - - setTimeout(function() {content.evalScripts()}, 10); - }, - - contentFromAnonymousTable: function() { - var div = document.createElement('div'); - div.innerHTML = '' + this.content + '
    '; - return $A(div.childNodes[0].childNodes[0].childNodes); - } -} - -var Insertion = new Object(); - -Insertion.Before = Class.create(); -Insertion.Before.prototype = Object.extend(new Abstract.Insertion('beforeBegin'), { - initializeRange: function() { - this.range.setStartBefore(this.element); - }, - - insertContent: function(fragments) { - fragments.each((function(fragment) { - this.element.parentNode.insertBefore(fragment, this.element); - }).bind(this)); - } -}); - -Insertion.Top = Class.create(); -Insertion.Top.prototype = Object.extend(new Abstract.Insertion('afterBegin'), { - initializeRange: function() { - this.range.selectNodeContents(this.element); - this.range.collapse(true); - }, - - insertContent: function(fragments) { - fragments.reverse(false).each((function(fragment) { - this.element.insertBefore(fragment, this.element.firstChild); - }).bind(this)); - } -}); - -Insertion.Bottom = Class.create(); -Insertion.Bottom.prototype = Object.extend(new Abstract.Insertion('beforeEnd'), { - initializeRange: function() { - this.range.selectNodeContents(this.element); - this.range.collapse(this.element); - }, - - insertContent: function(fragments) { - fragments.each((function(fragment) { - this.element.appendChild(fragment); - }).bind(this)); - } -}); - -Insertion.After = Class.create(); -Insertion.After.prototype = Object.extend(new Abstract.Insertion('afterEnd'), { - initializeRange: function() { - this.range.setStartAfter(this.element); - }, - - insertContent: function(fragments) { - fragments.each((function(fragment) { - this.element.parentNode.insertBefore(fragment, - this.element.nextSibling); - }).bind(this)); - } -}); - -/*--------------------------------------------------------------------------*/ - -Element.ClassNames = Class.create(); -Element.ClassNames.prototype = { - initialize: function(element) { - this.element = $(element); - }, - - _each: function(iterator) { - this.element.className.split(/\s+/).select(function(name) { - return name.length > 0; - })._each(iterator); - }, - - set: function(className) { - this.element.className = className; - }, - - add: function(classNameToAdd) { - if (this.include(classNameToAdd)) return; - this.set($A(this).concat(classNameToAdd).join(' ')); - }, - - remove: function(classNameToRemove) { - if (!this.include(classNameToRemove)) return; - this.set($A(this).without(classNameToRemove).join(' ')); - }, - - toString: function() { - return $A(this).join(' '); - } -}; - -Object.extend(Element.ClassNames.prototype, Enumerable); -var Selector = Class.create(); -Selector.prototype = { - initialize: function(expression) { - this.params = {classNames: []}; - this.expression = expression.toString().strip(); - this.parseExpression(); - this.compileMatcher(); - }, - - parseExpression: function() { - function abort(message) { throw 'Parse error in selector: ' + message; } - - if (this.expression == '') abort('empty expression'); - - var params = this.params, expr = this.expression, match, modifier, clause, rest; - while (match = expr.match(/^(.*)\[([a-z0-9_:-]+?)(?:([~\|!]?=)(?:"([^"]*)"|([^\]\s]*)))?\]$/i)) { - params.attributes = params.attributes || []; - params.attributes.push({name: match[2], operator: match[3], value: match[4] || match[5] || ''}); - expr = match[1]; - } - - if (expr == '*') return this.params.wildcard = true; - - while (match = expr.match(/^([^a-z0-9_-])?([a-z0-9_-]+)(.*)/i)) { - modifier = match[1], clause = match[2], rest = match[3]; - switch (modifier) { - case '#': params.id = clause; break; - case '.': params.classNames.push(clause); break; - case '': - case undefined: params.tagName = clause.toUpperCase(); break; - default: abort(expr.inspect()); - } - expr = rest; - } - - if (expr.length > 0) abort(expr.inspect()); - }, - - buildMatchExpression: function() { - var params = this.params, conditions = [], clause; - - if (params.wildcard) - conditions.push('true'); - if (clause = params.id) - conditions.push('element.readAttribute("id") == ' + clause.inspect()); - if (clause = params.tagName) - conditions.push('element.tagName.toUpperCase() == ' + clause.inspect()); - if ((clause = params.classNames).length > 0) - for (var i = 0, length = clause.length; i < length; i++) - conditions.push('element.hasClassName(' + clause[i].inspect() + ')'); - if (clause = params.attributes) { - clause.each(function(attribute) { - var value = 'element.readAttribute(' + attribute.name.inspect() + ')'; - var splitValueBy = function(delimiter) { - return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; - } - - switch (attribute.operator) { - case '=': conditions.push(value + ' == ' + attribute.value.inspect()); break; - case '~=': conditions.push(splitValueBy(' ') + '.include(' + attribute.value.inspect() + ')'); break; - case '|=': conditions.push( - splitValueBy('-') + '.first().toUpperCase() == ' + attribute.value.toUpperCase().inspect() - ); break; - case '!=': conditions.push(value + ' != ' + attribute.value.inspect()); break; - case '': - case undefined: conditions.push('element.hasAttribute(' + attribute.name.inspect() + ')'); break; - default: throw 'Unknown operator ' + attribute.operator + ' in selector'; - } - }); - } - - return conditions.join(' && '); - }, - - compileMatcher: function() { - this.match = new Function('element', 'if (!element.tagName) return false; \ - element = $(element); \ - return ' + this.buildMatchExpression()); - }, - - findElements: function(scope) { - var element; - - if (element = $(this.params.id)) - if (this.match(element)) - if (!scope || Element.childOf(element, scope)) - return [element]; - - scope = (scope || document).getElementsByTagName(this.params.tagName || '*'); - - var results = []; - for (var i = 0, length = scope.length; i < length; i++) - if (this.match(element = scope[i])) - results.push(Element.extend(element)); - - return results; - }, - - toString: function() { - return this.expression; - } -} - -Object.extend(Selector, { - matchElements: function(elements, expression) { - var selector = new Selector(expression); - return elements.select(selector.match.bind(selector)).map(Element.extend); - }, - - findElement: function(elements, expression, index) { - if (typeof expression == 'number') index = expression, expression = false; - return Selector.matchElements(elements, expression || '*')[index || 0]; - }, - - findChildElements: function(element, expressions) { - return expressions.map(function(expression) { - return expression.match(/[^\s"]+(?:"[^"]*"[^\s"]+)*/g).inject([null], function(results, expr) { - var selector = new Selector(expr); - return results.inject([], function(elements, result) { - return elements.concat(selector.findElements(result || element)); - }); - }); - }).flatten(); - } -}); - -function $$() { - return Selector.findChildElements(document, $A(arguments)); -} -var Form = { - reset: function(form) { - $(form).reset(); - return form; - }, - - serializeElements: function(elements, getHash) { - var data = elements.inject({}, function(result, element) { - if (!element.disabled && element.name) { - var key = element.name, value = $(element).getValue(); - if (value != undefined) { - if (result[key]) { - if (result[key].constructor != Array) result[key] = [result[key]]; - result[key].push(value); - } - else result[key] = value; - } - } - return result; - }); - - return getHash ? data : Hash.toQueryString(data); - } -}; - -Form.Methods = { - serialize: function(form, getHash) { - return Form.serializeElements(Form.getElements(form), getHash); - }, - - getElements: function(form) { - return $A($(form).getElementsByTagName('*')).inject([], - function(elements, child) { - if (Form.Element.Serializers[child.tagName.toLowerCase()]) - elements.push(Element.extend(child)); - return elements; - } - ); - }, - - getInputs: function(form, typeName, name) { - form = $(form); - var inputs = form.getElementsByTagName('input'); - - if (!typeName && !name) return $A(inputs).map(Element.extend); - - for (var i = 0, matchingInputs = [], length = inputs.length; i < length; i++) { - var input = inputs[i]; - if ((typeName && input.type != typeName) || (name && input.name != name)) - continue; - matchingInputs.push(Element.extend(input)); - } - - return matchingInputs; - }, - - disable: function(form) { - form = $(form); - form.getElements().each(function(element) { - element.blur(); - element.disabled = 'true'; - }); - return form; - }, - - enable: function(form) { - form = $(form); - form.getElements().each(function(element) { - element.disabled = ''; - }); - return form; - }, - - findFirstElement: function(form) { - return $(form).getElements().find(function(element) { - return element.type != 'hidden' && !element.disabled && - ['input', 'select', 'textarea'].include(element.tagName.toLowerCase()); - }); - }, - - focusFirstElement: function(form) { - form = $(form); - form.findFirstElement().activate(); - return form; - } -} - -Object.extend(Form, Form.Methods); - -/*--------------------------------------------------------------------------*/ - -Form.Element = { - focus: function(element) { - $(element).focus(); - return element; - }, - - select: function(element) { - $(element).select(); - return element; - } -} - -Form.Element.Methods = { - serialize: function(element) { - element = $(element); - if (!element.disabled && element.name) { - var value = element.getValue(); - if (value != undefined) { - var pair = {}; - pair[element.name] = value; - return Hash.toQueryString(pair); - } - } - return ''; - }, - - getValue: function(element) { - element = $(element); - var method = element.tagName.toLowerCase(); - return Form.Element.Serializers[method](element); - }, - - clear: function(element) { - $(element).value = ''; - return element; - }, - - present: function(element) { - return $(element).value != ''; - }, - - activate: function(element) { - element = $(element); - element.focus(); - if (element.select && ( element.tagName.toLowerCase() != 'input' || - !['button', 'reset', 'submit'].include(element.type) ) ) - element.select(); - return element; - }, - - disable: function(element) { - element = $(element); - element.disabled = true; - return element; - }, - - enable: function(element) { - element = $(element); - element.blur(); - element.disabled = false; - return element; - } -} - -Object.extend(Form.Element, Form.Element.Methods); -var Field = Form.Element; -var $F = Form.Element.getValue; - -/*--------------------------------------------------------------------------*/ - -Form.Element.Serializers = { - input: function(element) { - switch (element.type.toLowerCase()) { - case 'checkbox': - case 'radio': - return Form.Element.Serializers.inputSelector(element); - default: - return Form.Element.Serializers.textarea(element); - } - }, - - inputSelector: function(element) { - return element.checked ? element.value : null; - }, - - textarea: function(element) { - return element.value; - }, - - select: function(element) { - return this[element.type == 'select-one' ? - 'selectOne' : 'selectMany'](element); - }, - - selectOne: function(element) { - var index = element.selectedIndex; - return index >= 0 ? this.optionValue(element.options[index]) : null; - }, - - selectMany: function(element) { - var values, length = element.length; - if (!length) return null; - - for (var i = 0, values = []; i < length; i++) { - var opt = element.options[i]; - if (opt.selected) values.push(this.optionValue(opt)); - } - return values; - }, - - optionValue: function(opt) { - // extend element because hasAttribute may not be native - return Element.extend(opt).hasAttribute('value') ? opt.value : opt.text; - } -} - -/*--------------------------------------------------------------------------*/ - -Abstract.TimedObserver = function() {} -Abstract.TimedObserver.prototype = { - initialize: function(element, frequency, callback) { - this.frequency = frequency; - this.element = $(element); - this.callback = callback; - - this.lastValue = this.getValue(); - this.registerCallback(); - }, - - registerCallback: function() { - setInterval(this.onTimerEvent.bind(this), this.frequency * 1000); - }, - - onTimerEvent: function() { - var value = this.getValue(); - var changed = ('string' == typeof this.lastValue && 'string' == typeof value - ? this.lastValue != value : String(this.lastValue) != String(value)); - if (changed) { - this.callback(this.element, value); - this.lastValue = value; - } - } -} - -Form.Element.Observer = Class.create(); -Form.Element.Observer.prototype = Object.extend(new Abstract.TimedObserver(), { - getValue: function() { - return Form.Element.getValue(this.element); - } -}); - -Form.Observer = Class.create(); -Form.Observer.prototype = Object.extend(new Abstract.TimedObserver(), { - getValue: function() { - return Form.serialize(this.element); - } -}); - -/*--------------------------------------------------------------------------*/ - -Abstract.EventObserver = function() {} -Abstract.EventObserver.prototype = { - initialize: function(element, callback) { - this.element = $(element); - this.callback = callback; - - this.lastValue = this.getValue(); - if (this.element.tagName.toLowerCase() == 'form') - this.registerFormCallbacks(); - else - this.registerCallback(this.element); - }, - - onElementEvent: function() { - var value = this.getValue(); - if (this.lastValue != value) { - this.callback(this.element, value); - this.lastValue = value; - } - }, - - registerFormCallbacks: function() { - Form.getElements(this.element).each(this.registerCallback.bind(this)); - }, - - registerCallback: function(element) { - if (element.type) { - switch (element.type.toLowerCase()) { - case 'checkbox': - case 'radio': - Event.observe(element, 'click', this.onElementEvent.bind(this)); - break; - default: - Event.observe(element, 'change', this.onElementEvent.bind(this)); - break; - } - } - } -} - -Form.Element.EventObserver = Class.create(); -Form.Element.EventObserver.prototype = Object.extend(new Abstract.EventObserver(), { - getValue: function() { - return Form.Element.getValue(this.element); - } -}); - -Form.EventObserver = Class.create(); -Form.EventObserver.prototype = Object.extend(new Abstract.EventObserver(), { - getValue: function() { - return Form.serialize(this.element); - } -}); -if (!window.Event) { - var Event = new Object(); -} - -Object.extend(Event, { - KEY_BACKSPACE: 8, - KEY_TAB: 9, - KEY_RETURN: 13, - KEY_ESC: 27, - KEY_LEFT: 37, - KEY_UP: 38, - KEY_RIGHT: 39, - KEY_DOWN: 40, - KEY_DELETE: 46, - KEY_HOME: 36, - KEY_END: 35, - KEY_PAGEUP: 33, - KEY_PAGEDOWN: 34, - - element: function(event) { - return event.target || event.srcElement; - }, - - isLeftClick: function(event) { - return (((event.which) && (event.which == 1)) || - ((event.button) && (event.button == 1))); - }, - - pointerX: function(event) { - return event.pageX || (event.clientX + - (document.documentElement.scrollLeft || document.body.scrollLeft)); - }, - - pointerY: function(event) { - return event.pageY || (event.clientY + - (document.documentElement.scrollTop || document.body.scrollTop)); - }, - - stop: function(event) { - if (event.preventDefault) { - event.preventDefault(); - event.stopPropagation(); - } else { - event.returnValue = false; - event.cancelBubble = true; - } - }, - - // find the first node with the given tagName, starting from the - // node the event was triggered on; traverses the DOM upwards - findElement: function(event, tagName) { - var element = Event.element(event); - while (element.parentNode && (!element.tagName || - (element.tagName.toUpperCase() != tagName.toUpperCase()))) - element = element.parentNode; - return element; - }, - - observers: false, - - _observeAndCache: function(element, name, observer, useCapture) { - if (!this.observers) this.observers = []; - if (element.addEventListener) { - this.observers.push([element, name, observer, useCapture]); - element.addEventListener(name, observer, useCapture); - } else if (element.attachEvent) { - this.observers.push([element, name, observer, useCapture]); - element.attachEvent('on' + name, observer); - } - }, - - unloadCache: function() { - if (!Event.observers) return; - for (var i = 0, length = Event.observers.length; i < length; i++) { - Event.stopObserving.apply(this, Event.observers[i]); - Event.observers[i][0] = null; - } - Event.observers = false; - }, - - observe: function(element, name, observer, useCapture) { - element = $(element); - useCapture = useCapture || false; - - if (name == 'keypress' && - (navigator.appVersion.match(/Konqueror|Safari|KHTML/) - || element.attachEvent)) - name = 'keydown'; - - Event._observeAndCache(element, name, observer, useCapture); - }, - - stopObserving: function(element, name, observer, useCapture) { - element = $(element); - useCapture = useCapture || false; - - if (name == 'keypress' && - (navigator.appVersion.match(/Konqueror|Safari|KHTML/) - || element.detachEvent)) - name = 'keydown'; - - if (element.removeEventListener) { - element.removeEventListener(name, observer, useCapture); - } else if (element.detachEvent) { - try { - element.detachEvent('on' + name, observer); - } catch (e) {} - } - } -}); - -/* prevent memory leaks in IE */ -if (navigator.appVersion.match(/\bMSIE\b/)) - Event.observe(window, 'unload', Event.unloadCache, false); -var Position = { - // set to true if needed, warning: firefox performance problems - // NOT neeeded for page scrolling, only if draggable contained in - // scrollable elements - includeScrollOffsets: false, - - // must be called before calling withinIncludingScrolloffset, every time the - // page is scrolled - prepare: function() { - this.deltaX = window.pageXOffset - || document.documentElement.scrollLeft - || document.body.scrollLeft - || 0; - this.deltaY = window.pageYOffset - || document.documentElement.scrollTop - || document.body.scrollTop - || 0; - }, - - realOffset: function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.scrollTop || 0; - valueL += element.scrollLeft || 0; - element = element.parentNode; - } while (element); - return [valueL, valueT]; - }, - - cumulativeOffset: function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - element = element.offsetParent; - } while (element); - return [valueL, valueT]; - }, - - positionedOffset: function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - element = element.offsetParent; - if (element) { - if(element.tagName=='BODY') break; - var p = Element.getStyle(element, 'position'); - if (p == 'relative' || p == 'absolute') break; - } - } while (element); - return [valueL, valueT]; - }, - - offsetParent: function(element) { - if (element.offsetParent) return element.offsetParent; - if (element == document.body) return element; - - while ((element = element.parentNode) && element != document.body) - if (Element.getStyle(element, 'position') != 'static') - return element; - - return document.body; - }, - - // caches x/y coordinate pair to use with overlap - within: function(element, x, y) { - if (this.includeScrollOffsets) - return this.withinIncludingScrolloffsets(element, x, y); - this.xcomp = x; - this.ycomp = y; - this.offset = this.cumulativeOffset(element); - - return (y >= this.offset[1] && - y < this.offset[1] + element.offsetHeight && - x >= this.offset[0] && - x < this.offset[0] + element.offsetWidth); - }, - - withinIncludingScrolloffsets: function(element, x, y) { - var offsetcache = this.realOffset(element); - - this.xcomp = x + offsetcache[0] - this.deltaX; - this.ycomp = y + offsetcache[1] - this.deltaY; - this.offset = this.cumulativeOffset(element); - - return (this.ycomp >= this.offset[1] && - this.ycomp < this.offset[1] + element.offsetHeight && - this.xcomp >= this.offset[0] && - this.xcomp < this.offset[0] + element.offsetWidth); - }, - - // within must be called directly before - overlap: function(mode, element) { - if (!mode) return 0; - if (mode == 'vertical') - return ((this.offset[1] + element.offsetHeight) - this.ycomp) / - element.offsetHeight; - if (mode == 'horizontal') - return ((this.offset[0] + element.offsetWidth) - this.xcomp) / - element.offsetWidth; - }, - - page: function(forElement) { - var valueT = 0, valueL = 0; - - var element = forElement; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - - // Safari fix - if (element.offsetParent==document.body) - if (Element.getStyle(element,'position')=='absolute') break; - - } while (element = element.offsetParent); - - element = forElement; - do { - if (!window.opera || element.tagName=='BODY') { - valueT -= element.scrollTop || 0; - valueL -= element.scrollLeft || 0; - } - } while (element = element.parentNode); - - return [valueL, valueT]; - }, - - clone: function(source, target) { - var options = Object.extend({ - setLeft: true, - setTop: true, - setWidth: true, - setHeight: true, - offsetTop: 0, - offsetLeft: 0 - }, arguments[2] || {}) - - // find page position of source - source = $(source); - var p = Position.page(source); - - // find coordinate system to use - target = $(target); - var delta = [0, 0]; - var parent = null; - // delta [0,0] will do fine with position: fixed elements, - // position:absolute needs offsetParent deltas - if (Element.getStyle(target,'position') == 'absolute') { - parent = Position.offsetParent(target); - delta = Position.page(parent); - } - - // correct by body offsets (fixes Safari) - if (parent == document.body) { - delta[0] -= document.body.offsetLeft; - delta[1] -= document.body.offsetTop; - } - - // set position - if(options.setLeft) target.style.left = (p[0] - delta[0] + options.offsetLeft) + 'px'; - if(options.setTop) target.style.top = (p[1] - delta[1] + options.offsetTop) + 'px'; - if(options.setWidth) target.style.width = source.offsetWidth + 'px'; - if(options.setHeight) target.style.height = source.offsetHeight + 'px'; - }, - - absolutize: function(element) { - element = $(element); - if (element.style.position == 'absolute') return; - Position.prepare(); - - var offsets = Position.positionedOffset(element); - var top = offsets[1]; - var left = offsets[0]; - var width = element.clientWidth; - var height = element.clientHeight; - - element._originalLeft = left - parseFloat(element.style.left || 0); - element._originalTop = top - parseFloat(element.style.top || 0); - element._originalWidth = element.style.width; - element._originalHeight = element.style.height; - - element.style.position = 'absolute'; - element.style.top = top + 'px'; - element.style.left = left + 'px'; - element.style.width = width + 'px'; - element.style.height = height + 'px'; - }, - - relativize: function(element) { - element = $(element); - if (element.style.position == 'relative') return; - Position.prepare(); - - element.style.position = 'relative'; - var top = parseFloat(element.style.top || 0) - (element._originalTop || 0); - var left = parseFloat(element.style.left || 0) - (element._originalLeft || 0); - - element.style.top = top + 'px'; - element.style.left = left + 'px'; - element.style.height = element._originalHeight; - element.style.width = element._originalWidth; - } -} - -// Safari returns margins on body which is incorrect if the child is absolutely -// positioned. For performance reasons, redefine Position.cumulativeOffset for -// KHTML/WebKit only. -if (/Konqueror|Safari|KHTML/.test(navigator.userAgent)) { - Position.cumulativeOffset = function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - if (element.offsetParent == document.body) - if (Element.getStyle(element, 'position') == 'absolute') break; - - element = element.offsetParent; - } while (element); - - return [valueL, valueT]; - } -} - -Element.addMethods(); \ No newline at end of file diff --git a/zioinfo/js/rico.js b/zioinfo/js/rico.js deleted file mode 100644 index 65bcb483..00000000 --- a/zioinfo/js/rico.js +++ /dev/null @@ -1,2818 +0,0 @@ -/** - * - * Copyright 2005 Sabre Airline Solutions - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific language governing permissions - * and limitations under the License. - **/ - - -//-------------------- rico.js -var Rico = { - Version: '1.1.2', - prototypeVersion: parseFloat(Prototype.Version.split(".")[0] + "." + Prototype.Version.split(".")[1]) -} - -if((typeof Prototype=='undefined') || Rico.prototypeVersion < 1.3) - throw("Rico requires the Prototype JavaScript framework >= 1.3"); - -Rico.ArrayExtensions = new Array(); - -if (Object.prototype.extend) { - Rico.ArrayExtensions[ Rico.ArrayExtensions.length ] = Object.prototype.extend; -}else{ - Object.prototype.extend = function(object) { - return Object.extend.apply(this, [this, object]); - } - Rico.ArrayExtensions[ Rico.ArrayExtensions.length ] = Object.prototype.extend; -} - -if (Array.prototype.push) { - Rico.ArrayExtensions[ Rico.ArrayExtensions.length ] = Array.prototype.push; -} - -if (!Array.prototype.remove) { - Array.prototype.remove = function(dx) { - if( isNaN(dx) || dx > this.length ) - return false; - for( var i=0,n=0; i= this.accordionTabs.length) - this.options.onLoadShowTab = 0; - - // set the initial visual state... - for ( var i=0 ; i < this.accordionTabs.length ; i++ ) - { - if (i != this.options.onLoadShowTab){ - this.accordionTabs[i].collapse(); - this.accordionTabs[i].content.style.display = 'none'; - } - } - this.lastExpandedTab = this.accordionTabs[this.options.onLoadShowTab]; - if (this.options.panelHeight == 'auto'){ - var tabToCheck = (this.options.onloadShowTab === 0)? 1 : 0; - var titleBarSize = parseInt(RicoUtil.getElementsComputedStyle(this.accordionTabs[tabToCheck].titleBar, 'height')); - if (isNaN(titleBarSize)) - titleBarSize = this.accordionTabs[tabToCheck].titleBar.offsetHeight; - - var totalTitleBarSize = this.accordionTabs.length * titleBarSize; - var parentHeight = parseInt(RicoUtil.getElementsComputedStyle(this.container.parentNode, 'height')); - if (isNaN(parentHeight)) - parentHeight = this.container.parentNode.offsetHeight; - - this.options.panelHeight = parentHeight - totalTitleBarSize-2; - } - - this.lastExpandedTab.content.style.height = this.options.panelHeight + "px"; - this.lastExpandedTab.showExpanded(); - this.lastExpandedTab.titleBar.style.fontWeight = this.options.expandedFontWeight; - - }, - - setOptions: function(options) { - this.options = { - expandedBg : '#63699c', - hoverBg : '#63699c', - collapsedBg : '#6b79a5', - expandedTextColor : '#ffffff', - expandedFontWeight : 'bold', - hoverTextColor : '#ffffff', - collapsedTextColor : '#ced7ef', - collapsedFontWeight : 'normal', - hoverTextColor : '#ffffff', - borderColor : '#1f669b', - panelHeight : 200, - onHideTab : null, - onShowTab : null, - onLoadShowTab : 0 - } - Object.extend(this.options, options || {}); - }, - - showTabByIndex: function( anIndex, animate ) { - var doAnimate = arguments.length == 1 ? true : animate; - this.showTab( this.accordionTabs[anIndex], doAnimate ); - }, - - showTab: function( accordionTab, animate ) { - if ( this.lastExpandedTab == accordionTab ) - return; - - var doAnimate = arguments.length == 1 ? true : animate; - - if ( this.options.onHideTab ) - this.options.onHideTab(this.lastExpandedTab); - - this.lastExpandedTab.showCollapsed(); - var accordion = this; - var lastExpandedTab = this.lastExpandedTab; - - this.lastExpandedTab.content.style.height = (this.options.panelHeight - 1) + 'px'; - accordionTab.content.style.display = ''; - - accordionTab.titleBar.style.fontWeight = this.options.expandedFontWeight; - - if ( doAnimate ) { - new Rico.Effect.AccordionSize( this.lastExpandedTab.content, - accordionTab.content, - 1, - this.options.panelHeight, - 100, 10, - { complete: function() {accordion.showTabDone(lastExpandedTab)} } ); - this.lastExpandedTab = accordionTab; - } - else { - this.lastExpandedTab.content.style.height = "1px"; - accordionTab.content.style.height = this.options.panelHeight + "px"; - this.lastExpandedTab = accordionTab; - this.showTabDone(lastExpandedTab); - } - }, - - showTabDone: function(collapsedTab) { - collapsedTab.content.style.display = 'none'; - this.lastExpandedTab.showExpanded(); - if ( this.options.onShowTab ) - this.options.onShowTab(this.lastExpandedTab); - }, - - _attachBehaviors: function() { - var panels = this._getDirectChildrenByTag(this.container, 'DIV'); - for ( var i = 0 ; i < panels.length ; i++ ) { - - var tabChildren = this._getDirectChildrenByTag(panels[i],'DIV'); - if ( tabChildren.length != 2 ) - continue; // unexpected - - var tabTitleBar = tabChildren[0]; - var tabContentBox = tabChildren[1]; - this.accordionTabs.push( new Rico.Accordion.Tab(this,tabTitleBar,tabContentBox) ); - } - }, - - _getDirectChildrenByTag: function(e, tagName) { - var kids = new Array(); - var allKids = e.childNodes; - for( var i = 0 ; i < allKids.length ; i++ ) - if ( allKids[i] && allKids[i].tagName && allKids[i].tagName == tagName ) - kids.push(allKids[i]); - return kids; - } - -}; - -Rico.Accordion.Tab = Class.create(); - -Rico.Accordion.Tab.prototype = { - - initialize: function(accordion, titleBar, content) { - this.accordion = accordion; - this.titleBar = titleBar; - this.content = content; - this._attachBehaviors(); - }, - - collapse: function() { - this.showCollapsed(); - this.content.style.height = "1px"; - }, - - showCollapsed: function() { - this.expanded = false; - this.titleBar.style.backgroundColor = this.accordion.options.collapsedBg; - this.titleBar.style.color = this.accordion.options.collapsedTextColor; - this.titleBar.style.fontWeight = this.accordion.options.collapsedFontWeight; - this.content.style.overflow = "hidden"; - }, - - showExpanded: function() { - this.expanded = true; - this.titleBar.style.backgroundColor = this.accordion.options.expandedBg; - this.titleBar.style.color = this.accordion.options.expandedTextColor; - this.content.style.overflow = "auto"; - }, - - titleBarClicked: function(e) { - if ( this.accordion.lastExpandedTab == this ) - return; - this.accordion.showTab(this); - }, - - hover: function(e) { - this.titleBar.style.backgroundColor = this.accordion.options.hoverBg; - this.titleBar.style.color = this.accordion.options.hoverTextColor; - }, - - unhover: function(e) { - if ( this.expanded ) { - this.titleBar.style.backgroundColor = this.accordion.options.expandedBg; - this.titleBar.style.color = this.accordion.options.expandedTextColor; - } - else { - this.titleBar.style.backgroundColor = this.accordion.options.collapsedBg; - this.titleBar.style.color = this.accordion.options.collapsedTextColor; - } - }, - - _attachBehaviors: function() { - this.content.style.border = "1px solid " + this.accordion.options.borderColor; - this.content.style.borderTopWidth = "0px"; - this.content.style.borderBottomWidth = "0px"; - this.content.style.margin = "0px"; - - this.titleBar.onclick = this.titleBarClicked.bindAsEventListener(this); - this.titleBar.onmouseover = this.hover.bindAsEventListener(this); - this.titleBar.onmouseout = this.unhover.bindAsEventListener(this); - } - -}; - - -//-------------------- ricoAjaxEngine.js -Rico.AjaxEngine = Class.create(); - -Rico.AjaxEngine.prototype = { - - initialize: function() { - this.ajaxElements = new Array(); - this.ajaxObjects = new Array(); - this.requestURLS = new Array(); - this.options = {}; - }, - - registerAjaxElement: function( anId, anElement ) { - if ( !anElement ) - anElement = $(anId); - this.ajaxElements[anId] = anElement; - }, - - registerAjaxObject: function( anId, anObject ) { - this.ajaxObjects[anId] = anObject; - }, - - registerRequest: function (requestLogicalName, requestURL) { - this.requestURLS[requestLogicalName] = requestURL; - }, - - sendRequest: function(requestName, options) { - // Allow for backwards Compatibility - if ( arguments.length >= 2 ) - if (typeof arguments[1] == 'string') - options = {parameters: this._createQueryString(arguments, 1)}; - this.sendRequestWithData(requestName, null, options); - }, - - sendRequestWithData: function(requestName, xmlDocument, options) { - var requestURL = this.requestURLS[requestName]; - if ( requestURL == null ) - return; - - // Allow for backwards Compatibility - if ( arguments.length >= 3 ) - if (typeof arguments[2] == 'string') - options.parameters = this._createQueryString(arguments, 2); - - new Ajax.Request(requestURL, this._requestOptions(options,xmlDocument)); - }, - - sendRequestAndUpdate: function(requestName,container,options) { - // Allow for backwards Compatibility - if ( arguments.length >= 3 ) - if (typeof arguments[2] == 'string') - options.parameters = this._createQueryString(arguments, 2); - - this.sendRequestWithDataAndUpdate(requestName, null, container, options); - }, - - sendRequestWithDataAndUpdate: function(requestName,xmlDocument,container,options) { - var requestURL = this.requestURLS[requestName]; - if ( requestURL == null ) - return; - - // Allow for backwards Compatibility - if ( arguments.length >= 4 ) - if (typeof arguments[3] == 'string') - options.parameters = this._createQueryString(arguments, 3); - - var updaterOptions = this._requestOptions(options,xmlDocument); - - new Ajax.Updater(container, requestURL, updaterOptions); - }, - - // Private -- not part of intended engine API -------------------------------------------------------------------- - - _requestOptions: function(options,xmlDoc) { - var requestHeaders = ['X-Rico-Version', Rico.Version ]; - var sendMethod = 'post'; - if ( xmlDoc == null ) - if (Rico.prototypeVersion < 1.4) - requestHeaders.push( 'Content-type', 'text/xml' ); - else - sendMethod = 'get'; - (!options) ? options = {} : ''; - - if (!options._RicoOptionsProcessed){ - // Check and keep any user onComplete functions - if (options.onComplete) - options.onRicoComplete = options.onComplete; - // Fix onComplete - if (options.overrideOnComplete) - options.onComplete = options.overrideOnComplete; - else - options.onComplete = this._onRequestComplete.bind(this); - options._RicoOptionsProcessed = true; - } - - // Set the default options and extend with any user options - this.options = { - requestHeaders: requestHeaders, - parameters: options.parameters, - postBody: xmlDoc, - method: sendMethod, - onComplete: options.onComplete - }; - // Set any user options: - Object.extend(this.options, options); - return this.options; - }, - - _createQueryString: function( theArgs, offset ) { - var queryString = "" - for ( var i = offset ; i < theArgs.length ; i++ ) { - if ( i != offset ) - queryString += "&"; - - var anArg = theArgs[i]; - - if ( anArg.name != undefined && anArg.value != undefined ) { - queryString += anArg.name + "=" + escape(anArg.value); - } - else { - var ePos = anArg.indexOf('='); - var argName = anArg.substring( 0, ePos ); - var argValue = anArg.substring( ePos + 1 ); - queryString += argName + "=" + escape(argValue); - } - } - return queryString; - }, - - _onRequestComplete : function(request) { - if(!request) - return; - // User can set an onFailure option - which will be called by prototype - if (request.status != 200) - return; - - var response = request.responseXML.getElementsByTagName("ajax-response"); - if (response == null || response.length != 1) - return; - this._processAjaxResponse( response[0].childNodes ); - - // Check if user has set a onComplete function - var onRicoComplete = this.options.onRicoComplete; - if (onRicoComplete != null) - onRicoComplete(); - }, - - _processAjaxResponse: function( xmlResponseElements ) { - for ( var i = 0 ; i < xmlResponseElements.length ; i++ ) { - var responseElement = xmlResponseElements[i]; - - // only process nodes of type element..... - if ( responseElement.nodeType != 1 ) - continue; - - var responseType = responseElement.getAttribute("type"); - var responseId = responseElement.getAttribute("id"); - - if ( responseType == "object" ) - this._processAjaxObjectUpdate( this.ajaxObjects[ responseId ], responseElement ); - else if ( responseType == "element" ) - this._processAjaxElementUpdate( this.ajaxElements[ responseId ], responseElement ); - else - alert('unrecognized AjaxResponse type : ' + responseType ); - } - }, - - _processAjaxObjectUpdate: function( ajaxObject, responseElement ) { - ajaxObject.ajaxUpdate( responseElement ); - }, - - _processAjaxElementUpdate: function( ajaxElement, responseElement ) { - ajaxElement.innerHTML = RicoUtil.getContentAsString(responseElement); - } - -} - -var ajaxEngine = new Rico.AjaxEngine(); - - -//-------------------- ricoColor.js -Rico.Color = Class.create(); - -Rico.Color.prototype = { - - initialize: function(red, green, blue) { - this.rgb = { r: red, g : green, b : blue }; - }, - - setRed: function(r) { - this.rgb.r = r; - }, - - setGreen: function(g) { - this.rgb.g = g; - }, - - setBlue: function(b) { - this.rgb.b = b; - }, - - setHue: function(h) { - - // get an HSB model, and set the new hue... - var hsb = this.asHSB(); - hsb.h = h; - - // convert back to RGB... - this.rgb = Rico.Color.HSBtoRGB(hsb.h, hsb.s, hsb.b); - }, - - setSaturation: function(s) { - // get an HSB model, and set the new hue... - var hsb = this.asHSB(); - hsb.s = s; - - // convert back to RGB and set values... - this.rgb = Rico.Color.HSBtoRGB(hsb.h, hsb.s, hsb.b); - }, - - setBrightness: function(b) { - // get an HSB model, and set the new hue... - var hsb = this.asHSB(); - hsb.b = b; - - // convert back to RGB and set values... - this.rgb = Rico.Color.HSBtoRGB( hsb.h, hsb.s, hsb.b ); - }, - - darken: function(percent) { - var hsb = this.asHSB(); - this.rgb = Rico.Color.HSBtoRGB(hsb.h, hsb.s, Math.max(hsb.b - percent,0)); - }, - - brighten: function(percent) { - var hsb = this.asHSB(); - this.rgb = Rico.Color.HSBtoRGB(hsb.h, hsb.s, Math.min(hsb.b + percent,1)); - }, - - blend: function(other) { - this.rgb.r = Math.floor((this.rgb.r + other.rgb.r)/2); - this.rgb.g = Math.floor((this.rgb.g + other.rgb.g)/2); - this.rgb.b = Math.floor((this.rgb.b + other.rgb.b)/2); - }, - - isBright: function() { - var hsb = this.asHSB(); - return this.asHSB().b > 0.5; - }, - - isDark: function() { - return ! this.isBright(); - }, - - asRGB: function() { - return "rgb(" + this.rgb.r + "," + this.rgb.g + "," + this.rgb.b + ")"; - }, - - asHex: function() { - return "#" + this.rgb.r.toColorPart() + this.rgb.g.toColorPart() + this.rgb.b.toColorPart(); - }, - - asHSB: function() { - return Rico.Color.RGBtoHSB(this.rgb.r, this.rgb.g, this.rgb.b); - }, - - toString: function() { - return this.asHex(); - } - -}; - -Rico.Color.createFromHex = function(hexCode) { - if(hexCode.length==4) { - var shortHexCode = hexCode; - var hexCode = '#'; - for(var i=1;i<4;i++) hexCode += (shortHexCode.charAt(i) + -shortHexCode.charAt(i)); - } - if ( hexCode.indexOf('#') == 0 ) - hexCode = hexCode.substring(1); - var red = hexCode.substring(0,2); - var green = hexCode.substring(2,4); - var blue = hexCode.substring(4,6); - return new Rico.Color( parseInt(red,16), parseInt(green,16), parseInt(blue,16) ); -} - -/** - * Factory method for creating a color from the background of - * an HTML element. - */ -Rico.Color.createColorFromBackground = function(elem) { - - var actualColor = RicoUtil.getElementsComputedStyle($(elem), "backgroundColor", "background-color"); - - if ( actualColor == "transparent" && elem.parentNode ) - return Rico.Color.createColorFromBackground(elem.parentNode); - - if ( actualColor == null ) - return new Rico.Color(255,255,255); - - if ( actualColor.indexOf("rgb(") == 0 ) { - var colors = actualColor.substring(4, actualColor.length - 1 ); - var colorArray = colors.split(","); - return new Rico.Color( parseInt( colorArray[0] ), - parseInt( colorArray[1] ), - parseInt( colorArray[2] ) ); - - } - else if ( actualColor.indexOf("#") == 0 ) { - return Rico.Color.createFromHex(actualColor); - } - else - return new Rico.Color(255,255,255); -} - -Rico.Color.HSBtoRGB = function(hue, saturation, brightness) { - - var red = 0; - var green = 0; - var blue = 0; - - if (saturation == 0) { - red = parseInt(brightness * 255.0 + 0.5); - green = red; - blue = red; - } - else { - var h = (hue - Math.floor(hue)) * 6.0; - var f = h - Math.floor(h); - var p = brightness * (1.0 - saturation); - var q = brightness * (1.0 - saturation * f); - var t = brightness * (1.0 - (saturation * (1.0 - f))); - - switch (parseInt(h)) { - case 0: - red = (brightness * 255.0 + 0.5); - green = (t * 255.0 + 0.5); - blue = (p * 255.0 + 0.5); - break; - case 1: - red = (q * 255.0 + 0.5); - green = (brightness * 255.0 + 0.5); - blue = (p * 255.0 + 0.5); - break; - case 2: - red = (p * 255.0 + 0.5); - green = (brightness * 255.0 + 0.5); - blue = (t * 255.0 + 0.5); - break; - case 3: - red = (p * 255.0 + 0.5); - green = (q * 255.0 + 0.5); - blue = (brightness * 255.0 + 0.5); - break; - case 4: - red = (t * 255.0 + 0.5); - green = (p * 255.0 + 0.5); - blue = (brightness * 255.0 + 0.5); - break; - case 5: - red = (brightness * 255.0 + 0.5); - green = (p * 255.0 + 0.5); - blue = (q * 255.0 + 0.5); - break; - } - } - - return { r : parseInt(red), g : parseInt(green) , b : parseInt(blue) }; -} - -Rico.Color.RGBtoHSB = function(r, g, b) { - - var hue; - var saturation; - var brightness; - - var cmax = (r > g) ? r : g; - if (b > cmax) - cmax = b; - - var cmin = (r < g) ? r : g; - if (b < cmin) - cmin = b; - - brightness = cmax / 255.0; - if (cmax != 0) - saturation = (cmax - cmin)/cmax; - else - saturation = 0; - - if (saturation == 0) - hue = 0; - else { - var redc = (cmax - r)/(cmax - cmin); - var greenc = (cmax - g)/(cmax - cmin); - var bluec = (cmax - b)/(cmax - cmin); - - if (r == cmax) - hue = bluec - greenc; - else if (g == cmax) - hue = 2.0 + redc - bluec; - else - hue = 4.0 + greenc - redc; - - hue = hue / 6.0; - if (hue < 0) - hue = hue + 1.0; - } - - return { h : hue, s : saturation, b : brightness }; -} - - -//-------------------- ricoCorner.js -Rico.Corner = { - - round: function(e, options) { - var e = $(e); - this._setOptions(options); - - var color = this.options.color; - if ( this.options.color == "fromElement" ) - color = this._background(e); - - var bgColor = this.options.bgColor; - if ( this.options.bgColor == "fromParent" ) - bgColor = this._background(e.offsetParent); - - this._roundCornersImpl(e, color, bgColor); - }, - - _roundCornersImpl: function(e, color, bgColor) { - if(this.options.border) - this._renderBorder(e,bgColor); - if(this._isTopRounded()) - this._roundTopCorners(e,color,bgColor); - if(this._isBottomRounded()) - this._roundBottomCorners(e,color,bgColor); - }, - - _renderBorder: function(el,bgColor) { - var borderValue = "1px solid " + this._borderColor(bgColor); - var borderL = "border-left: " + borderValue; - var borderR = "border-right: " + borderValue; - var style = "style='" + borderL + ";" + borderR + "'"; - el.innerHTML = "
    " + el.innerHTML + "
    " - }, - - _roundTopCorners: function(el, color, bgColor) { - var corner = this._createCorner(bgColor); - for(var i=0 ; i < this.options.numSlices ; i++ ) - corner.appendChild(this._createCornerSlice(color,bgColor,i,"top")); - el.style.paddingTop = 0; - el.insertBefore(corner,el.firstChild); - }, - - _roundBottomCorners: function(el, color, bgColor) { - var corner = this._createCorner(bgColor); - for(var i=(this.options.numSlices-1) ; i >= 0 ; i-- ) - corner.appendChild(this._createCornerSlice(color,bgColor,i,"bottom")); - el.style.paddingBottom = 0; - el.appendChild(corner); - }, - - _createCorner: function(bgColor) { - var corner = document.createElement("div"); - corner.style.backgroundColor = (this._isTransparent() ? "transparent" : bgColor); - return corner; - }, - - _createCornerSlice: function(color,bgColor, n, position) { - var slice = document.createElement("span"); - - var inStyle = slice.style; - inStyle.backgroundColor = color; - inStyle.display = "block"; - inStyle.height = "1px"; - inStyle.overflow = "hidden"; - inStyle.fontSize = "1px"; - - var borderColor = this._borderColor(color,bgColor); - if ( this.options.border && n == 0 ) { - inStyle.borderTopStyle = "solid"; - inStyle.borderTopWidth = "1px"; - inStyle.borderLeftWidth = "0px"; - inStyle.borderRightWidth = "0px"; - inStyle.borderBottomWidth = "0px"; - inStyle.height = "0px"; // assumes css compliant box model - inStyle.borderColor = borderColor; - } - else if(borderColor) { - inStyle.borderColor = borderColor; - inStyle.borderStyle = "solid"; - inStyle.borderWidth = "0px 1px"; - } - - if ( !this.options.compact && (n == (this.options.numSlices-1)) ) - inStyle.height = "2px"; - - this._setMargin(slice, n, position); - this._setBorder(slice, n, position); - return slice; - }, - - _setOptions: function(options) { - this.options = { - corners : "all", - color : "fromElement", - bgColor : "fromParent", - blend : true, - border : false, - compact : false - } - Object.extend(this.options, options || {}); - - this.options.numSlices = this.options.compact ? 2 : 4; - if ( this._isTransparent() ) - this.options.blend = false; - }, - - _whichSideTop: function() { - if ( this._hasString(this.options.corners, "all", "top") ) - return ""; - - if ( this.options.corners.indexOf("tl") >= 0 && this.options.corners.indexOf("tr") >= 0 ) - return ""; - - if (this.options.corners.indexOf("tl") >= 0) - return "left"; - else if (this.options.corners.indexOf("tr") >= 0) - return "right"; - return ""; - }, - - _whichSideBottom: function() { - if ( this._hasString(this.options.corners, "all", "bottom") ) - return ""; - - if ( this.options.corners.indexOf("bl")>=0 && this.options.corners.indexOf("br")>=0 ) - return ""; - - if(this.options.corners.indexOf("bl") >=0) - return "left"; - else if(this.options.corners.indexOf("br")>=0) - return "right"; - return ""; - }, - - _borderColor : function(color,bgColor) { - if ( color == "transparent" ) - return bgColor; - else if ( this.options.border ) - return this.options.border; - else if ( this.options.blend ) - return this._blend( bgColor, color ); - else - return ""; - }, - - - _setMargin: function(el, n, corners) { - var marginSize = this._marginSize(n); - var whichSide = corners == "top" ? this._whichSideTop() : this._whichSideBottom(); - - if ( whichSide == "left" ) { - el.style.marginLeft = marginSize + "px"; el.style.marginRight = "0px"; - } - else if ( whichSide == "right" ) { - el.style.marginRight = marginSize + "px"; el.style.marginLeft = "0px"; - } - else { - el.style.marginLeft = marginSize + "px"; el.style.marginRight = marginSize + "px"; - } - }, - - _setBorder: function(el,n,corners) { - var borderSize = this._borderSize(n); - var whichSide = corners == "top" ? this._whichSideTop() : this._whichSideBottom(); - if ( whichSide == "left" ) { - el.style.borderLeftWidth = borderSize + "px"; el.style.borderRightWidth = "0px"; - } - else if ( whichSide == "right" ) { - el.style.borderRightWidth = borderSize + "px"; el.style.borderLeftWidth = "0px"; - } - else { - el.style.borderLeftWidth = borderSize + "px"; el.style.borderRightWidth = borderSize + "px"; - } - if (this.options.border != false) - el.style.borderLeftWidth = borderSize + "px"; el.style.borderRightWidth = borderSize + "px"; - }, - - _marginSize: function(n) { - if ( this._isTransparent() ) - return 0; - - var marginSizes = [ 5, 3, 2, 1 ]; - var blendedMarginSizes = [ 3, 2, 1, 0 ]; - var compactMarginSizes = [ 2, 1 ]; - var smBlendedMarginSizes = [ 1, 0 ]; - - if ( this.options.compact && this.options.blend ) - return smBlendedMarginSizes[n]; - else if ( this.options.compact ) - return compactMarginSizes[n]; - else if ( this.options.blend ) - return blendedMarginSizes[n]; - else - return marginSizes[n]; - }, - - _borderSize: function(n) { - var transparentBorderSizes = [ 5, 3, 2, 1 ]; - var blendedBorderSizes = [ 2, 1, 1, 1 ]; - var compactBorderSizes = [ 1, 0 ]; - var actualBorderSizes = [ 0, 2, 0, 0 ]; - - if ( this.options.compact && (this.options.blend || this._isTransparent()) ) - return 1; - else if ( this.options.compact ) - return compactBorderSizes[n]; - else if ( this.options.blend ) - return blendedBorderSizes[n]; - else if ( this.options.border ) - return actualBorderSizes[n]; - else if ( this._isTransparent() ) - return transparentBorderSizes[n]; - return 0; - }, - - _hasString: function(str) { for(var i=1 ; i= 0) return true; return false; }, - _blend: function(c1, c2) { var cc1 = Rico.Color.createFromHex(c1); cc1.blend(Rico.Color.createFromHex(c2)); return cc1; }, - _background: function(el) { try { return Rico.Color.createColorFromBackground(el).asHex(); } catch(err) { return "#ffffff"; } }, - _isTransparent: function() { return this.options.color == "transparent"; }, - _isTopRounded: function() { return this._hasString(this.options.corners, "all", "top", "tl", "tr"); }, - _isBottomRounded: function() { return this._hasString(this.options.corners, "all", "bottom", "bl", "br"); }, - _hasSingleTextChild: function(el) { return el.childNodes.length == 1 && el.childNodes[0].nodeType == 3; } -} - - -//-------------------- ricoDragAndDrop.js -Rico.DragAndDrop = Class.create(); - -Rico.DragAndDrop.prototype = { - - initialize: function() { - this.dropZones = new Array(); - this.draggables = new Array(); - this.currentDragObjects = new Array(); - this.dragElement = null; - this.lastSelectedDraggable = null; - this.currentDragObjectVisible = false; - this.interestedInMotionEvents = false; - this._mouseDown = this._mouseDownHandler.bindAsEventListener(this); - this._mouseMove = this._mouseMoveHandler.bindAsEventListener(this); - this._mouseUp = this._mouseUpHandler.bindAsEventListener(this); - }, - - registerDropZone: function(aDropZone) { - this.dropZones[ this.dropZones.length ] = aDropZone; - }, - - deregisterDropZone: function(aDropZone) { - var newDropZones = new Array(); - var j = 0; - for ( var i = 0 ; i < this.dropZones.length ; i++ ) { - if ( this.dropZones[i] != aDropZone ) - newDropZones[j++] = this.dropZones[i]; - } - - this.dropZones = newDropZones; - }, - - clearDropZones: function() { - this.dropZones = new Array(); - }, - - registerDraggable: function( aDraggable ) { - this.draggables[ this.draggables.length ] = aDraggable; - this._addMouseDownHandler( aDraggable ); - }, - - clearSelection: function() { - for ( var i = 0 ; i < this.currentDragObjects.length ; i++ ) - this.currentDragObjects[i].deselect(); - this.currentDragObjects = new Array(); - this.lastSelectedDraggable = null; - }, - - hasSelection: function() { - return this.currentDragObjects.length > 0; - }, - - setStartDragFromElement: function( e, mouseDownElement ) { - this.origPos = RicoUtil.toDocumentPosition(mouseDownElement); - this.startx = e.screenX - this.origPos.x - this.starty = e.screenY - this.origPos.y - //this.startComponentX = e.layerX ? e.layerX : e.offsetX; - //this.startComponentY = e.layerY ? e.layerY : e.offsetY; - //this.adjustedForDraggableSize = false; - - this.interestedInMotionEvents = this.hasSelection(); - this._terminateEvent(e); - }, - - updateSelection: function( draggable, extendSelection ) { - if ( ! extendSelection ) - this.clearSelection(); - - if ( draggable.isSelected() ) { - this.currentDragObjects.removeItem(draggable); - draggable.deselect(); - if ( draggable == this.lastSelectedDraggable ) - this.lastSelectedDraggable = null; - } - else { - this.currentDragObjects[ this.currentDragObjects.length ] = draggable; - draggable.select(); - this.lastSelectedDraggable = draggable; - } - }, - - _mouseDownHandler: function(e) { - if ( arguments.length == 0 ) - e = event; - - // if not button 1 ignore it... - var nsEvent = e.which != undefined; - if ( (nsEvent && e.which != 1) || (!nsEvent && e.button != 1)) - return; - - var eventTarget = e.target ? e.target : e.srcElement; - var draggableObject = eventTarget.draggable; - - var candidate = eventTarget; - while (draggableObject == null && candidate.parentNode) { - candidate = candidate.parentNode; - draggableObject = candidate.draggable; - } - - if ( draggableObject == null ) - return; - - this.updateSelection( draggableObject, e.ctrlKey ); - - // clear the drop zones postion cache... - if ( this.hasSelection() ) - for ( var i = 0 ; i < this.dropZones.length ; i++ ) - this.dropZones[i].clearPositionCache(); - - this.setStartDragFromElement( e, draggableObject.getMouseDownHTMLElement() ); - }, - - - _mouseMoveHandler: function(e) { - var nsEvent = e.which != undefined; - if ( !this.interestedInMotionEvents ) { - //this._terminateEvent(e); - return; - } - - if ( ! this.hasSelection() ) - return; - - if ( ! this.currentDragObjectVisible ) - this._startDrag(e); - - if ( !this.activatedDropZones ) - this._activateRegisteredDropZones(); - - //if ( !this.adjustedForDraggableSize ) - // this._adjustForDraggableSize(e); - - this._updateDraggableLocation(e); - this._updateDropZonesHover(e); - - this._terminateEvent(e); - }, - - _makeDraggableObjectVisible: function(e) - { - if ( !this.hasSelection() ) - return; - - var dragElement; - if ( this.currentDragObjects.length > 1 ) - dragElement = this.currentDragObjects[0].getMultiObjectDragGUI(this.currentDragObjects); - else - dragElement = this.currentDragObjects[0].getSingleObjectDragGUI(); - - // go ahead and absolute position it... - if ( RicoUtil.getElementsComputedStyle(dragElement, "position") != "absolute" ) - dragElement.style.position = "absolute"; - - // need to parent him into the document... - if ( dragElement.parentNode == null || dragElement.parentNode.nodeType == 11 ) - document.body.appendChild(dragElement); - - this.dragElement = dragElement; - this._updateDraggableLocation(e); - - this.currentDragObjectVisible = true; - }, - - /** - _adjustForDraggableSize: function(e) { - var dragElementWidth = this.dragElement.offsetWidth; - var dragElementHeight = this.dragElement.offsetHeight; - if ( this.startComponentX > dragElementWidth ) - this.startx -= this.startComponentX - dragElementWidth + 2; - if ( e.offsetY ) { - if ( this.startComponentY > dragElementHeight ) - this.starty -= this.startComponentY - dragElementHeight + 2; - } - this.adjustedForDraggableSize = true; - }, - **/ - - _leftOffset: function(e) { - return e.offsetX ? document.body.scrollLeft : 0 - }, - - _topOffset: function(e) { - return e.offsetY ? document.body.scrollTop:0 - }, - - - _updateDraggableLocation: function(e) { - var dragObjectStyle = this.dragElement.style; - dragObjectStyle.left = (e.screenX + this._leftOffset(e) - this.startx) + "px" - dragObjectStyle.top = (e.screenY + this._topOffset(e) - this.starty) + "px"; - }, - - _updateDropZonesHover: function(e) { - var n = this.dropZones.length; - for ( var i = 0 ; i < n ; i++ ) { - if ( ! this._mousePointInDropZone( e, this.dropZones[i] ) ) - this.dropZones[i].hideHover(); - } - - for ( var i = 0 ; i < n ; i++ ) { - if ( this._mousePointInDropZone( e, this.dropZones[i] ) ) { - if ( this.dropZones[i].canAccept(this.currentDragObjects) ) - this.dropZones[i].showHover(); - } - } - }, - - _startDrag: function(e) { - for ( var i = 0 ; i < this.currentDragObjects.length ; i++ ) - this.currentDragObjects[i].startDrag(); - - this._makeDraggableObjectVisible(e); - }, - - _mouseUpHandler: function(e) { - if ( ! this.hasSelection() ) - return; - - var nsEvent = e.which != undefined; - if ( (nsEvent && e.which != 1) || (!nsEvent && e.button != 1)) - return; - - this.interestedInMotionEvents = false; - - if ( this.dragElement == null ) { - this._terminateEvent(e); - return; - } - - if ( this._placeDraggableInDropZone(e) ) - this._completeDropOperation(e); - else { - this._terminateEvent(e); - new Rico.Effect.Position( this.dragElement, - this.origPos.x, - this.origPos.y, - 200, - 20, - { complete : this._doCancelDragProcessing.bind(this) } ); - } - - Event.stopObserving(document.body, "mousemove", this._mouseMove); - Event.stopObserving(document.body, "mouseup", this._mouseUp); - }, - - _retTrue: function () { - return true; - }, - - _completeDropOperation: function(e) { - if ( this.dragElement != this.currentDragObjects[0].getMouseDownHTMLElement() ) { - if ( this.dragElement.parentNode != null ) - this.dragElement.parentNode.removeChild(this.dragElement); - } - - this._deactivateRegisteredDropZones(); - this._endDrag(); - this.clearSelection(); - this.dragElement = null; - this.currentDragObjectVisible = false; - this._terminateEvent(e); - }, - - _doCancelDragProcessing: function() { - this._cancelDrag(); - - if ( this.dragElement != this.currentDragObjects[0].getMouseDownHTMLElement() && this.dragElement) - if ( this.dragElement.parentNode != null ) - this.dragElement.parentNode.removeChild(this.dragElement); - - - this._deactivateRegisteredDropZones(); - this.dragElement = null; - this.currentDragObjectVisible = false; - }, - - _placeDraggableInDropZone: function(e) { - var foundDropZone = false; - var n = this.dropZones.length; - for ( var i = 0 ; i < n ; i++ ) { - if ( this._mousePointInDropZone( e, this.dropZones[i] ) ) { - if ( this.dropZones[i].canAccept(this.currentDragObjects) ) { - this.dropZones[i].hideHover(); - this.dropZones[i].accept(this.currentDragObjects); - foundDropZone = true; - break; - } - } - } - - return foundDropZone; - }, - - _cancelDrag: function() { - for ( var i = 0 ; i < this.currentDragObjects.length ; i++ ) - this.currentDragObjects[i].cancelDrag(); - }, - - _endDrag: function() { - for ( var i = 0 ; i < this.currentDragObjects.length ; i++ ) - this.currentDragObjects[i].endDrag(); - }, - - _mousePointInDropZone: function( e, dropZone ) { - - var absoluteRect = dropZone.getAbsoluteRect(); - - return e.clientX > absoluteRect.left + this._leftOffset(e) && - e.clientX < absoluteRect.right + this._leftOffset(e) && - e.clientY > absoluteRect.top + this._topOffset(e) && - e.clientY < absoluteRect.bottom + this._topOffset(e); - }, - - _addMouseDownHandler: function( aDraggable ) - { - htmlElement = aDraggable.getMouseDownHTMLElement(); - if ( htmlElement != null ) { - htmlElement.draggable = aDraggable; - Event.observe(htmlElement , "mousedown", this._onmousedown.bindAsEventListener(this)); - Event.observe(htmlElement, "mousedown", this._mouseDown); - } - }, - - _activateRegisteredDropZones: function() { - var n = this.dropZones.length; - for ( var i = 0 ; i < n ; i++ ) { - var dropZone = this.dropZones[i]; - if ( dropZone.canAccept(this.currentDragObjects) ) - dropZone.activate(); - } - - this.activatedDropZones = true; - }, - - _deactivateRegisteredDropZones: function() { - var n = this.dropZones.length; - for ( var i = 0 ; i < n ; i++ ) - this.dropZones[i].deactivate(); - this.activatedDropZones = false; - }, - - _onmousedown: function () { - Event.observe(document.body, "mousemove", this._mouseMove); - Event.observe(document.body, "mouseup", this._mouseUp); - }, - - _terminateEvent: function(e) { - if ( e.stopPropagation != undefined ) - e.stopPropagation(); - else if ( e.cancelBubble != undefined ) - e.cancelBubble = true; - - if ( e.preventDefault != undefined ) - e.preventDefault(); - else - e.returnValue = false; - }, - - - initializeEventHandlers: function() { - if ( typeof document.implementation != "undefined" && - document.implementation.hasFeature("HTML", "1.0") && - document.implementation.hasFeature("Events", "2.0") && - document.implementation.hasFeature("CSS", "2.0") ) { - document.addEventListener("mouseup", this._mouseUpHandler.bindAsEventListener(this), false); - document.addEventListener("mousemove", this._mouseMoveHandler.bindAsEventListener(this), false); - } - else { - document.attachEvent( "onmouseup", this._mouseUpHandler.bindAsEventListener(this) ); - document.attachEvent( "onmousemove", this._mouseMoveHandler.bindAsEventListener(this) ); - } - } - } - - var dndMgr = new Rico.DragAndDrop(); - dndMgr.initializeEventHandlers(); - - -//-------------------- ricoDraggable.js -Rico.Draggable = Class.create(); - -Rico.Draggable.prototype = { - - initialize: function( type, htmlElement ) { - this.type = type; - this.htmlElement = $(htmlElement); - this.selected = false; - }, - - /** - * Returns the HTML element that should have a mouse down event - * added to it in order to initiate a drag operation - * - **/ - getMouseDownHTMLElement: function() { - return this.htmlElement; - }, - - select: function() { - this.selected = true; - - if ( this.showingSelected ) - return; - - var htmlElement = this.getMouseDownHTMLElement(); - - var color = Rico.Color.createColorFromBackground(htmlElement); - color.isBright() ? color.darken(0.033) : color.brighten(0.033); - - this.saveBackground = RicoUtil.getElementsComputedStyle(htmlElement, "backgroundColor", "background-color"); - htmlElement.style.backgroundColor = color.asHex(); - this.showingSelected = true; - }, - - deselect: function() { - this.selected = false; - if ( !this.showingSelected ) - return; - - var htmlElement = this.getMouseDownHTMLElement(); - - htmlElement.style.backgroundColor = this.saveBackground; - this.showingSelected = false; - }, - - isSelected: function() { - return this.selected; - }, - - startDrag: function() { - }, - - cancelDrag: function() { - }, - - endDrag: function() { - }, - - getSingleObjectDragGUI: function() { - return this.htmlElement; - }, - - getMultiObjectDragGUI: function( draggables ) { - return this.htmlElement; - }, - - getDroppedGUI: function() { - return this.htmlElement; - }, - - toString: function() { - return this.type + ":" + this.htmlElement + ":"; - } - -} - - -//-------------------- ricoDropzone.js -Rico.Dropzone = Class.create(); - -Rico.Dropzone.prototype = { - - initialize: function( htmlElement ) { - this.htmlElement = $(htmlElement); - this.absoluteRect = null; - }, - - getHTMLElement: function() { - return this.htmlElement; - }, - - clearPositionCache: function() { - this.absoluteRect = null; - }, - - getAbsoluteRect: function() { - if ( this.absoluteRect == null ) { - var htmlElement = this.getHTMLElement(); - var pos = RicoUtil.toViewportPosition(htmlElement); - - this.absoluteRect = { - top: pos.y, - left: pos.x, - bottom: pos.y + htmlElement.offsetHeight, - right: pos.x + htmlElement.offsetWidth - }; - } - return this.absoluteRect; - }, - - activate: function() { - var htmlElement = this.getHTMLElement(); - if (htmlElement == null || this.showingActive) - return; - - this.showingActive = true; - this.saveBackgroundColor = htmlElement.style.backgroundColor; - - var fallbackColor = "#ffea84"; - var currentColor = Rico.Color.createColorFromBackground(htmlElement); - if ( currentColor == null ) - htmlElement.style.backgroundColor = fallbackColor; - else { - currentColor.isBright() ? currentColor.darken(0.2) : currentColor.brighten(0.2); - htmlElement.style.backgroundColor = currentColor.asHex(); - } - }, - - deactivate: function() { - var htmlElement = this.getHTMLElement(); - if (htmlElement == null || !this.showingActive) - return; - - htmlElement.style.backgroundColor = this.saveBackgroundColor; - this.showingActive = false; - this.saveBackgroundColor = null; - }, - - showHover: function() { - var htmlElement = this.getHTMLElement(); - if ( htmlElement == null || this.showingHover ) - return; - - this.saveBorderWidth = htmlElement.style.borderWidth; - this.saveBorderStyle = htmlElement.style.borderStyle; - this.saveBorderColor = htmlElement.style.borderColor; - - this.showingHover = true; - htmlElement.style.borderWidth = "1px"; - htmlElement.style.borderStyle = "solid"; - //htmlElement.style.borderColor = "#ff9900"; - htmlElement.style.borderColor = "#ffff00"; - }, - - hideHover: function() { - var htmlElement = this.getHTMLElement(); - if ( htmlElement == null || !this.showingHover ) - return; - - htmlElement.style.borderWidth = this.saveBorderWidth; - htmlElement.style.borderStyle = this.saveBorderStyle; - htmlElement.style.borderColor = this.saveBorderColor; - this.showingHover = false; - }, - - canAccept: function(draggableObjects) { - return true; - }, - - accept: function(draggableObjects) { - var htmlElement = this.getHTMLElement(); - if ( htmlElement == null ) - return; - - n = draggableObjects.length; - for ( var i = 0 ; i < n ; i++ ) - { - var theGUI = draggableObjects[i].getDroppedGUI(); - if ( RicoUtil.getElementsComputedStyle( theGUI, "position" ) == "absolute" ) - { - theGUI.style.position = "static"; - theGUI.style.top = ""; - theGUI.style.top = ""; - } - htmlElement.appendChild(theGUI); - } - } -} - - -//-------------------- ricoEffects.js - -Rico.Effect = {}; - -Rico.Effect.SizeAndPosition = Class.create(); -Rico.Effect.SizeAndPosition.prototype = { - - initialize: function(element, x, y, w, h, duration, steps, options) { - this.element = $(element); - this.x = x; - this.y = y; - this.w = w; - this.h = h; - this.duration = duration; - this.steps = steps; - this.options = arguments[7] || {}; - - this.sizeAndPosition(); - }, - - sizeAndPosition: function() { - if (this.isFinished()) { - if(this.options.complete) this.options.complete(this); - return; - } - - if (this.timer) - clearTimeout(this.timer); - - var stepDuration = Math.round(this.duration/this.steps) ; - - // Get original values: x,y = top left corner; w,h = width height - var currentX = this.element.offsetLeft; - var currentY = this.element.offsetTop; - var currentW = this.element.offsetWidth; - var currentH = this.element.offsetHeight; - - // If values not set, or zero, we do not modify them, and take original as final as well - this.x = (this.x) ? this.x : currentX; - this.y = (this.y) ? this.y : currentY; - this.w = (this.w) ? this.w : currentW; - this.h = (this.h) ? this.h : currentH; - - // how much do we need to modify our values for each step? - var difX = this.steps > 0 ? (this.x - currentX)/this.steps : 0; - var difY = this.steps > 0 ? (this.y - currentY)/this.steps : 0; - var difW = this.steps > 0 ? (this.w - currentW)/this.steps : 0; - var difH = this.steps > 0 ? (this.h - currentH)/this.steps : 0; - - this.moveBy(difX, difY); - this.resizeBy(difW, difH); - - this.duration -= stepDuration; - this.steps--; - - this.timer = setTimeout(this.sizeAndPosition.bind(this), stepDuration); - }, - - isFinished: function() { - return this.steps <= 0; - }, - - moveBy: function( difX, difY ) { - var currentLeft = this.element.offsetLeft; - var currentTop = this.element.offsetTop; - var intDifX = parseInt(difX); - var intDifY = parseInt(difY); - - var style = this.element.style; - if ( intDifX != 0 ) - style.left = (currentLeft + intDifX) + "px"; - if ( intDifY != 0 ) - style.top = (currentTop + intDifY) + "px"; - }, - - resizeBy: function( difW, difH ) { - var currentWidth = this.element.offsetWidth; - var currentHeight = this.element.offsetHeight; - var intDifW = parseInt(difW); - var intDifH = parseInt(difH); - - var style = this.element.style; - if ( intDifW != 0 ) - style.width = (currentWidth + intDifW) + "px"; - if ( intDifH != 0 ) - style.height = (currentHeight + intDifH) + "px"; - } -} - -Rico.Effect.Size = Class.create(); -Rico.Effect.Size.prototype = { - - initialize: function(element, w, h, duration, steps, options) { - new Rico.Effect.SizeAndPosition(element, null, null, w, h, duration, steps, options); - } -} - -Rico.Effect.Position = Class.create(); -Rico.Effect.Position.prototype = { - - initialize: function(element, x, y, duration, steps, options) { - new Rico.Effect.SizeAndPosition(element, x, y, null, null, duration, steps, options); - } -} - -Rico.Effect.Round = Class.create(); -Rico.Effect.Round.prototype = { - - initialize: function(tagName, className, options) { - var elements = document.getElementsByTagAndClassName(tagName,className); - for ( var i = 0 ; i < elements.length ; i++ ) - Rico.Corner.round( elements[i], options ); - } -}; - -Rico.Effect.FadeTo = Class.create(); -Rico.Effect.FadeTo.prototype = { - - initialize: function( element, opacity, duration, steps, options) { - this.element = $(element); - this.opacity = opacity; - this.duration = duration; - this.steps = steps; - this.options = arguments[4] || {}; - this.fadeTo(); - }, - - fadeTo: function() { - if (this.isFinished()) { - if(this.options.complete) this.options.complete(this); - return; - } - - if (this.timer) - clearTimeout(this.timer); - - var stepDuration = Math.round(this.duration/this.steps) ; - var currentOpacity = this.getElementOpacity(); - var delta = this.steps > 0 ? (this.opacity - currentOpacity)/this.steps : 0; - - this.changeOpacityBy(delta); - this.duration -= stepDuration; - this.steps--; - - this.timer = setTimeout(this.fadeTo.bind(this), stepDuration); - }, - - changeOpacityBy: function(v) { - var currentOpacity = this.getElementOpacity(); - var newOpacity = Math.max(0, Math.min(currentOpacity+v, 1)); - this.element.ricoOpacity = newOpacity; - - this.element.style.filter = "alpha(opacity:"+Math.round(newOpacity*100)+")"; - this.element.style.opacity = newOpacity; /*//*/; - }, - - isFinished: function() { - return this.steps <= 0; - }, - - getElementOpacity: function() { - if ( this.element.ricoOpacity == undefined ) { - var opacity = RicoUtil.getElementsComputedStyle(this.element, 'opacity'); - this.element.ricoOpacity = opacity != undefined ? opacity : 1.0; - } - return parseFloat(this.element.ricoOpacity); - } -} - -Rico.Effect.AccordionSize = Class.create(); - -Rico.Effect.AccordionSize.prototype = { - - initialize: function(e1, e2, start, end, duration, steps, options) { - this.e1 = $(e1); - this.e2 = $(e2); - this.start = start; - this.end = end; - this.duration = duration; - this.steps = steps; - this.options = arguments[6] || {}; - - this.accordionSize(); - }, - - accordionSize: function() { - - if (this.isFinished()) { - // just in case there are round errors or such... - this.e1.style.height = this.start + "px"; - this.e2.style.height = this.end + "px"; - - if(this.options.complete) - this.options.complete(this); - return; - } - - if (this.timer) - clearTimeout(this.timer); - - var stepDuration = Math.round(this.duration/this.steps) ; - - var diff = this.steps > 0 ? (parseInt(this.e1.offsetHeight) - this.start)/this.steps : 0; - this.resizeBy(diff); - - this.duration -= stepDuration; - this.steps--; - - this.timer = setTimeout(this.accordionSize.bind(this), stepDuration); - }, - - isFinished: function() { - return this.steps <= 0; - }, - - resizeBy: function(diff) { - var h1Height = this.e1.offsetHeight; - var h2Height = this.e2.offsetHeight; - var intDiff = parseInt(diff); - if ( diff != 0 ) { - this.e1.style.height = (h1Height - intDiff) + "px"; - this.e2.style.height = (h2Height + intDiff) + "px"; - } - } - -}; - - -//-------------------- ricoLiveGrid.js -// Rico.LiveGridMetaData ----------------------------------------------------- - -Rico.LiveGridMetaData = Class.create(); - -Rico.LiveGridMetaData.prototype = { - - initialize: function( pageSize, totalRows, columnCount, options ) { - this.pageSize = pageSize; - this.totalRows = totalRows; - this.setOptions(options); - this.ArrowHeight = 16; - this.columnCount = columnCount; - }, - - setOptions: function(options) { - this.options = { - largeBufferSize : 7.0, // 7 pages - nearLimitFactor : 0.2 // 20% of buffer - }; - Object.extend(this.options, options || {}); - }, - - getPageSize: function() { - return this.pageSize; - }, - - getTotalRows: function() { - return this.totalRows; - }, - - setTotalRows: function(n) { - this.totalRows = n; - }, - - getLargeBufferSize: function() { - return parseInt(this.options.largeBufferSize * this.pageSize); - }, - - getLimitTolerance: function() { - return parseInt(this.getLargeBufferSize() * this.options.nearLimitFactor); - } -}; - -// Rico.LiveGridScroller ----------------------------------------------------- - -Rico.LiveGridScroller = Class.create(); - -Rico.LiveGridScroller.prototype = { - - initialize: function(liveGrid, viewPort) { - this.isIE = navigator.userAgent.toLowerCase().indexOf("msie") >= 0; - this.liveGrid = liveGrid; - this.metaData = liveGrid.metaData; - this.createScrollBar(); - this.scrollTimeout = null; - this.lastScrollPos = 0; - this.viewPort = viewPort; - this.rows = new Array(); - }, - - isUnPlugged: function() { - return this.scrollerDiv.onscroll == null; - }, - - plugin: function() { - this.scrollerDiv.onscroll = this.handleScroll.bindAsEventListener(this); - }, - - unplug: function() { - this.scrollerDiv.onscroll = null; - }, - - sizeIEHeaderHack: function() { - if ( !this.isIE ) return; - var headerTable = $(this.liveGrid.tableId + "_header"); - if ( headerTable ) - headerTable.rows[0].cells[0].style.width = - (headerTable.rows[0].cells[0].offsetWidth + 1) + "px"; - }, - - createScrollBar: function() { - var visibleHeight = this.liveGrid.viewPort.visibleHeight(); - // create the outer div... - this.scrollerDiv = document.createElement("div"); - var scrollerStyle = this.scrollerDiv.style; - scrollerStyle.borderRight = this.liveGrid.options.scrollerBorderRight; - scrollerStyle.position = "relative"; - scrollerStyle.left = this.isIE ? "-6px" : "-3px"; - scrollerStyle.width = "19px"; - scrollerStyle.height = visibleHeight + "px"; - scrollerStyle.overflow = "auto"; - - // create the inner div... - this.heightDiv = document.createElement("div"); - this.heightDiv.style.width = "1px"; - - this.heightDiv.style.height = parseInt(visibleHeight * - this.metaData.getTotalRows()/this.metaData.getPageSize()) + "px" ; - this.scrollerDiv.appendChild(this.heightDiv); - this.scrollerDiv.onscroll = this.handleScroll.bindAsEventListener(this); - - var table = this.liveGrid.table; - table.parentNode.parentNode.insertBefore( this.scrollerDiv, table.parentNode.nextSibling ); - var eventName = this.isIE ? "mousewheel" : "DOMMouseScroll"; - Event.observe(table, eventName, - function(evt) { - if (evt.wheelDelta>=0 || evt.detail < 0) //wheel-up - this.scrollerDiv.scrollTop -= (2*this.viewPort.rowHeight); - else - this.scrollerDiv.scrollTop += (2*this.viewPort.rowHeight); - this.handleScroll(false); - }.bindAsEventListener(this), - false); - }, - - updateSize: function() { - var table = this.liveGrid.table; - var visibleHeight = this.viewPort.visibleHeight(); - this.heightDiv.style.height = parseInt(visibleHeight * - this.metaData.getTotalRows()/this.metaData.getPageSize()) + "px"; - }, - - rowToPixel: function(rowOffset) { - return (rowOffset / this.metaData.getTotalRows()) * this.heightDiv.offsetHeight - }, - - moveScroll: function(rowOffset) { - this.scrollerDiv.scrollTop = this.rowToPixel(rowOffset); - if ( this.metaData.options.onscroll ) - this.metaData.options.onscroll( this.liveGrid, rowOffset ); - }, - - handleScroll: function() { - if ( this.scrollTimeout ) - clearTimeout( this.scrollTimeout ); - - var scrollDiff = this.lastScrollPos-this.scrollerDiv.scrollTop; - if (scrollDiff != 0.00) { - var r = this.scrollerDiv.scrollTop % this.viewPort.rowHeight; - if (r != 0) { - this.unplug(); - if ( scrollDiff < 0 ) { - this.scrollerDiv.scrollTop += (this.viewPort.rowHeight-r); - } else { - this.scrollerDiv.scrollTop -= r; - } - this.plugin(); - } - } - var contentOffset = parseInt(this.scrollerDiv.scrollTop / this.viewPort.rowHeight); - this.liveGrid.requestContentRefresh(contentOffset); - this.viewPort.scrollTo(this.scrollerDiv.scrollTop); - - if ( this.metaData.options.onscroll ) - this.metaData.options.onscroll( this.liveGrid, contentOffset ); - - this.scrollTimeout = setTimeout(this.scrollIdle.bind(this), 1200 ); - this.lastScrollPos = this.scrollerDiv.scrollTop; - - }, - - scrollIdle: function() { - if ( this.metaData.options.onscrollidle ) - this.metaData.options.onscrollidle(); - } -}; - -// Rico.LiveGridBuffer ----------------------------------------------------- - -Rico.LiveGridBuffer = Class.create(); - -Rico.LiveGridBuffer.prototype = { - - initialize: function(metaData, viewPort) { - this.startPos = 0; - this.size = 0; - this.metaData = metaData; - this.rows = new Array(); - this.updateInProgress = false; - this.viewPort = viewPort; - this.maxBufferSize = metaData.getLargeBufferSize() * 2; - this.maxFetchSize = metaData.getLargeBufferSize(); - this.lastOffset = 0; - }, - - getBlankRow: function() { - if (!this.blankRow ) { - this.blankRow = new Array(); - for ( var i=0; i < this.metaData.columnCount ; i++ ) - this.blankRow[i] = " "; - } - return this.blankRow; - }, - - loadRows: function(ajaxResponse) { - var rowsElement = ajaxResponse.getElementsByTagName('rows')[0]; - this.updateUI = rowsElement.getAttribute("update_ui") == "true" - var newRows = new Array() - var trs = rowsElement.getElementsByTagName("tr"); - for ( var i=0 ; i < trs.length; i++ ) { - var row = newRows[i] = new Array(); - var cells = trs[i].getElementsByTagName("td"); - for ( var j=0; j < cells.length ; j++ ) { - var cell = cells[j]; - var convertSpaces = cell.getAttribute("convert_spaces") == "true"; - var cellContent = RicoUtil.getContentAsString(cell); - row[j] = convertSpaces ? this.convertSpaces(cellContent) : cellContent; - if (!row[j]) - row[j] = ' '; - } - } - return newRows; - }, - - update: function(ajaxResponse, start) { - var newRows = this.loadRows(ajaxResponse); - if (this.rows.length == 0) { // initial load - this.rows = newRows; - this.size = this.rows.length; - this.startPos = start; - return; - } - if (start > this.startPos) { //appending - if (this.startPos + this.rows.length < start) { - this.rows = newRows; - this.startPos = start;// - } else { - this.rows = this.rows.concat( newRows.slice(0, newRows.length)); - if (this.rows.length > this.maxBufferSize) { - var fullSize = this.rows.length; - this.rows = this.rows.slice(this.rows.length - this.maxBufferSize, this.rows.length) - this.startPos = this.startPos + (fullSize - this.rows.length); - } - } - } else { //prepending - if (start + newRows.length < this.startPos) { - this.rows = newRows; - } else { - this.rows = newRows.slice(0, this.startPos).concat(this.rows); - if (this.rows.length > this.maxBufferSize) - this.rows = this.rows.slice(0, this.maxBufferSize) - } - this.startPos = start; - } - this.size = this.rows.length; - }, - - clear: function() { - this.rows = new Array(); - this.startPos = 0; - this.size = 0; - }, - - isOverlapping: function(start, size) { - return ((start < this.endPos()) && (this.startPos < start + size)) || (this.endPos() == 0) - }, - - isInRange: function(position) { - return (position >= this.startPos) && (position + this.metaData.getPageSize() <= this.endPos()); - //&& this.size() != 0; - }, - - isNearingTopLimit: function(position) { - return position - this.startPos < this.metaData.getLimitTolerance(); - }, - - endPos: function() { - return this.startPos + this.rows.length; - }, - - isNearingBottomLimit: function(position) { - return this.endPos() - (position + this.metaData.getPageSize()) < this.metaData.getLimitTolerance(); - }, - - isAtTop: function() { - return this.startPos == 0; - }, - - isAtBottom: function() { - return this.endPos() == this.metaData.getTotalRows(); - }, - - isNearingLimit: function(position) { - return ( !this.isAtTop() && this.isNearingTopLimit(position)) || - ( !this.isAtBottom() && this.isNearingBottomLimit(position) ) - }, - - getFetchSize: function(offset) { - var adjustedOffset = this.getFetchOffset(offset); - var adjustedSize = 0; - if (adjustedOffset >= this.startPos) { //apending - var endFetchOffset = this.maxFetchSize + adjustedOffset; - if (endFetchOffset > this.metaData.totalRows) - endFetchOffset = this.metaData.totalRows; - adjustedSize = endFetchOffset - adjustedOffset; - if(adjustedOffset == 0 && adjustedSize < this.maxFetchSize){ - adjustedSize = this.maxFetchSize; - } - } else {//prepending - var adjustedSize = this.startPos - adjustedOffset; - if (adjustedSize > this.maxFetchSize) - adjustedSize = this.maxFetchSize; - } - return adjustedSize; - }, - - getFetchOffset: function(offset) { - var adjustedOffset = offset; - if (offset > this.startPos) //apending - adjustedOffset = (offset > this.endPos()) ? offset : this.endPos(); - else { //prepending - if (offset + this.maxFetchSize >= this.startPos) { - var adjustedOffset = this.startPos - this.maxFetchSize; - if (adjustedOffset < 0) - adjustedOffset = 0; - } - } - this.lastOffset = adjustedOffset; - return adjustedOffset; - }, - - getRows: function(start, count) { - var begPos = start - this.startPos - var endPos = begPos + count - - // er? need more data... - if ( endPos > this.size ) - endPos = this.size - - var results = new Array() - var index = 0; - for ( var i=begPos ; i < endPos; i++ ) { - results[index++] = this.rows[i] - } - return results - }, - - convertSpaces: function(s) { - return s.split(" ").join(" "); - } - -}; - - -//Rico.GridViewPort -------------------------------------------------- -Rico.GridViewPort = Class.create(); - -Rico.GridViewPort.prototype = { - - initialize: function(table, rowHeight, visibleRows, buffer, liveGrid) { - this.lastDisplayedStartPos = 0; - this.div = table.parentNode; - this.table = table - this.rowHeight = rowHeight; - this.div.style.height = (this.rowHeight * visibleRows) + "px"; - this.div.style.overflow = "hidden"; - this.buffer = buffer; - this.liveGrid = liveGrid; - this.visibleRows = visibleRows + 1; - this.lastPixelOffset = 0; - this.startPos = 0; - }, - - populateRow: function(htmlRow, row) { - for (var j=0; j < row.length; j++) { - htmlRow.cells[j].innerHTML = row[j] - } - }, - - bufferChanged: function() { - this.refreshContents( parseInt(this.lastPixelOffset / this.rowHeight)); - }, - - clearRows: function() { - if (!this.isBlank) { - this.liveGrid.table.className = this.liveGrid.options.loadingClass; - for (var i=0; i < this.visibleRows; i++) - this.populateRow(this.table.rows[i], this.buffer.getBlankRow()); - this.isBlank = true; - } - }, - - clearContents: function() { - this.clearRows(); - this.scrollTo(0); - this.startPos = 0; - this.lastStartPos = -1; - }, - - refreshContents: function(startPos) { - if (startPos == this.lastRowPos && !this.isPartialBlank && !this.isBlank) { - return; - } - if ((startPos + this.visibleRows < this.buffer.startPos) - || (this.buffer.startPos + this.buffer.size < startPos) - || (this.buffer.size == 0)) { - this.clearRows(); - return; - } - this.isBlank = false; - var viewPrecedesBuffer = this.buffer.startPos > startPos - var contentStartPos = viewPrecedesBuffer ? this.buffer.startPos: startPos; - var contentEndPos = (this.buffer.startPos + this.buffer.size < startPos + this.visibleRows) - ? this.buffer.startPos + this.buffer.size - : startPos + this.visibleRows; - var rowSize = contentEndPos - contentStartPos; - var rows = this.buffer.getRows(contentStartPos, rowSize ); - var blankSize = this.visibleRows - rowSize; - var blankOffset = viewPrecedesBuffer ? 0: rowSize; - var contentOffset = viewPrecedesBuffer ? blankSize: 0; - - for (var i=0; i < rows.length; i++) {//initialize what we have - this.populateRow(this.table.rows[i + contentOffset], rows[i]); - } - for (var i=0; i < blankSize; i++) {// blank out the rest - this.populateRow(this.table.rows[i + blankOffset], this.buffer.getBlankRow()); - } - this.isPartialBlank = blankSize > 0; - this.lastRowPos = startPos; - - this.liveGrid.table.className = this.liveGrid.options.tableClass; - // Check if user has set a onRefreshComplete function - var onRefreshComplete = this.liveGrid.options.onRefreshComplete; - if (onRefreshComplete != null) - onRefreshComplete(); - }, - - scrollTo: function(pixelOffset) { - if (this.lastPixelOffset == pixelOffset) - return; - - this.refreshContents(parseInt(pixelOffset / this.rowHeight)) - this.div.scrollTop = pixelOffset % this.rowHeight - - this.lastPixelOffset = pixelOffset; - }, - - visibleHeight: function() { - return parseInt(RicoUtil.getElementsComputedStyle(this.div, 'height')); - } - -}; - - -Rico.LiveGridRequest = Class.create(); -Rico.LiveGridRequest.prototype = { - initialize: function( requestOffset, options ) { - this.requestOffset = requestOffset; - } -}; - -// Rico.LiveGrid ----------------------------------------------------- - -Rico.LiveGrid = Class.create(); - -Rico.LiveGrid.prototype = { - - initialize: function( tableId, visibleRows, totalRows, url, options, ajaxOptions ) { - - this.options = { - tableClass: $(tableId).className, - loadingClass: $(tableId).className, - scrollerBorderRight: '1px solid #ababab', - bufferTimeout: 20000, - sortAscendImg: 'images/sort_asc.gif', - sortDescendImg: 'images/sort_desc.gif', - sortImageWidth: 9, - sortImageHeight: 5, - ajaxSortURLParms: [], - onRefreshComplete: null, - requestParameters: null, - inlineStyles: true - }; - Object.extend(this.options, options || {}); - - this.ajaxOptions = {parameters: null}; - Object.extend(this.ajaxOptions, ajaxOptions || {}); - - this.tableId = tableId; - this.table = $(tableId); - - this.addLiveGridHtml(); - - var columnCount = this.table.rows[0].cells.length; - this.metaData = new Rico.LiveGridMetaData(visibleRows, totalRows, columnCount, options); - this.buffer = new Rico.LiveGridBuffer(this.metaData); - - var rowCount = this.table.rows.length; - this.viewPort = new Rico.GridViewPort(this.table, - this.table.offsetHeight/rowCount, - visibleRows, - this.buffer, this); - this.scroller = new Rico.LiveGridScroller(this,this.viewPort); - this.options.sortHandler = this.sortHandler.bind(this); - - if ( $(tableId + '_header') ) - this.sort = new Rico.LiveGridSort(tableId + '_header', this.options) - - this.processingRequest = null; - this.unprocessedRequest = null; - - this.initAjax(url); - if ( this.options.prefetchBuffer || this.options.prefetchOffset > 0) { - var offset = 0; - if (this.options.offset ) { - offset = this.options.offset; - this.scroller.moveScroll(offset); - this.viewPort.scrollTo(this.scroller.rowToPixel(offset)); - } - if (this.options.sortCol) { - this.sortCol = options.sortCol; - this.sortDir = options.sortDir; - } - this.requestContentRefresh(offset); - } - }, - - addLiveGridHtml: function() { - // Check to see if need to create a header table. - if (this.table.getElementsByTagName("thead").length > 0){ - // Create Table this.tableId+'_header' - var tableHeader = this.table.cloneNode(true); - tableHeader.setAttribute('id', this.tableId+'_header'); - tableHeader.setAttribute('class', this.table.className+'_header'); - - // Clean up and insert - for( var i = 0; i < tableHeader.tBodies.length; i++ ) - tableHeader.removeChild(tableHeader.tBodies[i]); - this.table.deleteTHead(); - this.table.parentNode.insertBefore(tableHeader,this.table); - } - - new Insertion.Before(this.table, "
    "); - this.table.previousSibling.appendChild(this.table); - new Insertion.Before(this.table,"
    "); - this.table.previousSibling.appendChild(this.table); - }, - - - resetContents: function() { - this.scroller.moveScroll(0); - this.buffer.clear(); - this.viewPort.clearContents(); - }, - - sortHandler: function(column) { - if(!column) return ; - this.sortCol = column.name; - this.sortDir = column.currentSort; - - this.resetContents(); - this.requestContentRefresh(0) - }, - - adjustRowSize: function() { - - }, - - setTotalRows: function( newTotalRows ) { - this.resetContents(); - this.metaData.setTotalRows(newTotalRows); - this.scroller.updateSize(); - }, - - initAjax: function(url) { - ajaxEngine.registerRequest( this.tableId + '_request', url ); - ajaxEngine.registerAjaxObject( this.tableId + '_updater', this ); - }, - - invokeAjax: function() { - }, - - handleTimedOut: function() { - //server did not respond in 4 seconds... assume that there could have been - //an error or something, and allow requests to be processed again... - this.processingRequest = null; - this.processQueuedRequest(); - }, - - fetchBuffer: function(offset) { - if ( this.buffer.isInRange(offset) && - !this.buffer.isNearingLimit(offset)) { - return; - } - if (this.processingRequest) { - this.unprocessedRequest = new Rico.LiveGridRequest(offset); - return; - } - var bufferStartPos = this.buffer.getFetchOffset(offset); - this.processingRequest = new Rico.LiveGridRequest(offset); - this.processingRequest.bufferOffset = bufferStartPos; - var fetchSize = this.buffer.getFetchSize(offset); - var partialLoaded = false; - - var queryString - if (this.options.requestParameters) - queryString = this._createQueryString(this.options.requestParameters, 0); - - queryString = (queryString == null) ? '' : queryString+'&'; - queryString = queryString+'id='+this.tableId+'&page_size='+fetchSize+'&offset='+bufferStartPos; - if (this.sortCol) - queryString = queryString+'&sort_col='+escape(this.sortCol)+'&sort_dir='+this.sortDir; - - this.ajaxOptions.parameters = queryString; - - ajaxEngine.sendRequest( this.tableId + '_request', this.ajaxOptions ); - - this.timeoutHandler = setTimeout( this.handleTimedOut.bind(this), this.options.bufferTimeout); - - }, - - setRequestParams: function() { - this.options.requestParameters = []; - for ( var i=0 ; i < arguments.length ; i++ ) - this.options.requestParameters[i] = arguments[i]; - }, - - requestContentRefresh: function(contentOffset) { - this.fetchBuffer(contentOffset); - }, - - ajaxUpdate: function(ajaxResponse) { - try { - clearTimeout( this.timeoutHandler ); - this.buffer.update(ajaxResponse,this.processingRequest.bufferOffset); - this.viewPort.bufferChanged(); - } - catch(err) {} - finally {this.processingRequest = null; } - this.processQueuedRequest(); - }, - - _createQueryString: function( theArgs, offset ) { - var queryString = "" - if (!theArgs) - return queryString; - - for ( var i = offset ; i < theArgs.length ; i++ ) { - if ( i != offset ) - queryString += "&"; - - var anArg = theArgs[i]; - - if ( anArg.name != undefined && anArg.value != undefined ) { - queryString += anArg.name + "=" + escape(anArg.value); - } - else { - var ePos = anArg.indexOf('='); - var argName = anArg.substring( 0, ePos ); - var argValue = anArg.substring( ePos + 1 ); - queryString += argName + "=" + escape(argValue); - } - } - return queryString; - }, - - processQueuedRequest: function() { - if (this.unprocessedRequest != null) { - this.requestContentRefresh(this.unprocessedRequest.requestOffset); - this.unprocessedRequest = null - } - } -}; - - -//-------------------- ricoLiveGridSort.js -Rico.LiveGridSort = Class.create(); - -Rico.LiveGridSort.prototype = { - - initialize: function(headerTableId, options) { - this.headerTableId = headerTableId; - this.headerTable = $(headerTableId); - this.options = options; - this.setOptions(); - this.applySortBehavior(); - - if ( this.options.sortCol ) { - this.setSortUI( this.options.sortCol, this.options.sortDir ); - } - }, - - setSortUI: function( columnName, sortDirection ) { - var cols = this.options.columns; - for ( var i = 0 ; i < cols.length ; i++ ) { - if ( cols[i].name == columnName ) { - this.setColumnSort(i, sortDirection); - break; - } - } - }, - - setOptions: function() { - // preload the images... - new Image().src = this.options.sortAscendImg; - new Image().src = this.options.sortDescendImg; - - this.sort = this.options.sortHandler; - if ( !this.options.columns ) - this.options.columns = this.introspectForColumnInfo(); - else { - // allow client to pass { columns: [ ["a", true], ["b", false] ] } - // and convert to an array of Rico.TableColumn objs... - this.options.columns = this.convertToTableColumns(this.options.columns); - } - }, - - applySortBehavior: function() { - var headerRow = this.headerTable.rows[0]; - var headerCells = headerRow.cells; - for ( var i = 0 ; i < headerCells.length ; i++ ) { - this.addSortBehaviorToColumn( i, headerCells[i] ); - } - }, - - addSortBehaviorToColumn: function( n, cell ) { - if ( this.options.columns[n].isSortable() ) { - cell.id = this.headerTableId + '_' + n; - cell.style.cursor = 'pointer'; - cell.onclick = this.headerCellClicked.bindAsEventListener(this); - cell.innerHTML = cell.innerHTML + '' - + '   '; - } - }, - - // event handler.... - headerCellClicked: function(evt) { - var eventTarget = evt.target ? evt.target : evt.srcElement; - var cellId = eventTarget.id; - var columnNumber = parseInt(cellId.substring( cellId.lastIndexOf('_') + 1 )); - var sortedColumnIndex = this.getSortedColumnIndex(); - if ( sortedColumnIndex != -1 ) { - if ( sortedColumnIndex != columnNumber ) { - this.removeColumnSort(sortedColumnIndex); - this.setColumnSort(columnNumber, Rico.TableColumn.SORT_ASC); - } - else - this.toggleColumnSort(sortedColumnIndex); - } - else - this.setColumnSort(columnNumber, Rico.TableColumn.SORT_ASC); - - if (this.options.sortHandler) { - this.options.sortHandler(this.options.columns[columnNumber]); - } - }, - - removeColumnSort: function(n) { - this.options.columns[n].setUnsorted(); - this.setSortImage(n); - }, - - setColumnSort: function(n, direction) { - if(isNaN(n)) return ; - this.options.columns[n].setSorted(direction); - this.setSortImage(n); - }, - - toggleColumnSort: function(n) { - this.options.columns[n].toggleSort(); - this.setSortImage(n); - }, - - setSortImage: function(n) { - var sortDirection = this.options.columns[n].getSortDirection(); - - var sortImageSpan = $( this.headerTableId + '_img_' + n ); - if ( sortDirection == Rico.TableColumn.UNSORTED ) - sortImageSpan.innerHTML = '  '; - else if ( sortDirection == Rico.TableColumn.SORT_ASC ) - sortImageSpan.innerHTML = '  '; - else if ( sortDirection == Rico.TableColumn.SORT_DESC ) - sortImageSpan.innerHTML = '  '; - }, - - getSortedColumnIndex: function() { - var cols = this.options.columns; - for ( var i = 0 ; i < cols.length ; i++ ) { - if ( cols[i].isSorted() ) - return i; - } - - return -1; - }, - - introspectForColumnInfo: function() { - var columns = new Array(); - var headerRow = this.headerTable.rows[0]; - var headerCells = headerRow.cells; - for ( var i = 0 ; i < headerCells.length ; i++ ) - columns.push( new Rico.TableColumn( this.deriveColumnNameFromCell(headerCells[i],i), true ) ); - return columns; - }, - - convertToTableColumns: function(cols) { - var columns = new Array(); - for ( var i = 0 ; i < cols.length ; i++ ) - columns.push( new Rico.TableColumn( cols[i][0], cols[i][1] ) ); - return columns; - }, - - deriveColumnNameFromCell: function(cell,columnNumber) { - var cellContent = cell.innerText != undefined ? cell.innerText : cell.textContent; - return cellContent ? cellContent.toLowerCase().split(' ').join('_') : "col_" + columnNumber; - } -}; - -Rico.TableColumn = Class.create(); - -Rico.TableColumn.UNSORTED = 0; -Rico.TableColumn.SORT_ASC = "ASC"; -Rico.TableColumn.SORT_DESC = "DESC"; - -Rico.TableColumn.prototype = { - initialize: function(name, sortable) { - this.name = name; - this.sortable = sortable; - this.currentSort = Rico.TableColumn.UNSORTED; - }, - - isSortable: function() { - return this.sortable; - }, - - isSorted: function() { - return this.currentSort != Rico.TableColumn.UNSORTED; - }, - - getSortDirection: function() { - return this.currentSort; - }, - - toggleSort: function() { - if ( this.currentSort == Rico.TableColumn.UNSORTED || this.currentSort == Rico.TableColumn.SORT_DESC ) - this.currentSort = Rico.TableColumn.SORT_ASC; - else if ( this.currentSort == Rico.TableColumn.SORT_ASC ) - this.currentSort = Rico.TableColumn.SORT_DESC; - }, - - setUnsorted: function(direction) { - this.setSorted(Rico.TableColumn.UNSORTED); - }, - - setSorted: function(direction) { - // direction must by one of Rico.TableColumn.UNSORTED, .SORT_ASC, or .SORT_DESC... - this.currentSort = direction; - } - -}; - - -//-------------------- ricoUtil.js -var RicoUtil = { - - getElementsComputedStyle: function ( htmlElement, cssProperty, mozillaEquivalentCSS) { - if ( arguments.length == 2 ) - mozillaEquivalentCSS = cssProperty; - - var el = $(htmlElement); - if ( el.currentStyle ) - return el.currentStyle[cssProperty]; - else - return document.defaultView.getComputedStyle(el, null).getPropertyValue(mozillaEquivalentCSS); - }, - - createXmlDocument : function() { - if (document.implementation && document.implementation.createDocument) { - var doc = document.implementation.createDocument("", "", null); - - if (doc.readyState == null) { - doc.readyState = 1; - doc.addEventListener("load", function () { - doc.readyState = 4; - if (typeof doc.onreadystatechange == "function") - doc.onreadystatechange(); - }, false); - } - - return doc; - } - - if (window.ActiveXObject) - return Try.these( - function() { return new ActiveXObject('MSXML2.DomDocument') }, - function() { return new ActiveXObject('Microsoft.DomDocument')}, - function() { return new ActiveXObject('MSXML.DomDocument') }, - function() { return new ActiveXObject('MSXML3.DomDocument') } - ) || false; - - return null; - }, - - getContentAsString: function( parentNode ) { - return parentNode.xml != undefined ? - this._getContentAsStringIE(parentNode) : - this._getContentAsStringMozilla(parentNode); - }, - - _getContentAsStringIE: function(parentNode) { - var contentStr = ""; - for ( var i = 0 ; i < parentNode.childNodes.length ; i++ ) { - var n = parentNode.childNodes[i]; - if (n.nodeType == 4) { - contentStr += n.nodeValue; - } - else { - contentStr += n.xml; - } - } - return contentStr; - }, - - _getContentAsStringMozilla: function(parentNode) { - var xmlSerializer = new XMLSerializer(); - var contentStr = ""; - for ( var i = 0 ; i < parentNode.childNodes.length ; i++ ) { - var n = parentNode.childNodes[i]; - if (n.nodeType == 4) { // CDATA node - contentStr += n.nodeValue; - } - else { - contentStr += xmlSerializer.serializeToString(n); - } - } - return contentStr; - }, - - toViewportPosition: function(element) { - return this._toAbsolute(element,true); - }, - - toDocumentPosition: function(element) { - return this._toAbsolute(element,false); - }, - - /** - * Compute the elements position in terms of the window viewport - * so that it can be compared to the position of the mouse (dnd) - * This is additions of all the offsetTop,offsetLeft values up the - * offsetParent hierarchy, ...taking into account any scrollTop, - * scrollLeft values along the way... - * - * IE has a bug reporting a correct offsetLeft of elements within a - * a relatively positioned parent!!! - **/ - _toAbsolute: function(element,accountForDocScroll) { - - if ( navigator.userAgent.toLowerCase().indexOf("msie") == -1 ) - return this._toAbsoluteMozilla(element,accountForDocScroll); - - var x = 0; - var y = 0; - var parent = element; - while ( parent ) { - - var borderXOffset = 0; - var borderYOffset = 0; - if ( parent != element ) { - var borderXOffset = parseInt(this.getElementsComputedStyle(parent, "borderLeftWidth" )); - var borderYOffset = parseInt(this.getElementsComputedStyle(parent, "borderTopWidth" )); - borderXOffset = isNaN(borderXOffset) ? 0 : borderXOffset; - borderYOffset = isNaN(borderYOffset) ? 0 : borderYOffset; - } - - x += parent.offsetLeft - parent.scrollLeft + borderXOffset; - y += parent.offsetTop - parent.scrollTop + borderYOffset; - parent = parent.offsetParent; - } - - if ( accountForDocScroll ) { - x -= this.docScrollLeft(); - y -= this.docScrollTop(); - } - - return { x:x, y:y }; - }, - - /** - * Mozilla did not report all of the parents up the hierarchy via the - * offsetParent property that IE did. So for the calculation of the - * offsets we use the offsetParent property, but for the calculation of - * the scrollTop/scrollLeft adjustments we navigate up via the parentNode - * property instead so as to get the scroll offsets... - * - **/ - _toAbsoluteMozilla: function(element,accountForDocScroll) { - var x = 0; - var y = 0; - var parent = element; - while ( parent ) { - x += parent.offsetLeft; - y += parent.offsetTop; - parent = parent.offsetParent; - } - - parent = element; - while ( parent && - parent != document.body && - parent != document.documentElement ) { - if ( parent.scrollLeft ) - x -= parent.scrollLeft; - if ( parent.scrollTop ) - y -= parent.scrollTop; - parent = parent.parentNode; - } - - if ( accountForDocScroll ) { - x -= this.docScrollLeft(); - y -= this.docScrollTop(); - } - - return { x:x, y:y }; - }, - - docScrollLeft: function() { - if ( window.pageXOffset ) - return window.pageXOffset; - else if ( document.documentElement && document.documentElement.scrollLeft ) - return document.documentElement.scrollLeft; - else if ( document.body ) - return document.body.scrollLeft; - else - return 0; - }, - - docScrollTop: function() { - if ( window.pageYOffset ) - return window.pageYOffset; - else if ( document.documentElement && document.documentElement.scrollTop ) - return document.documentElement.scrollTop; - else if ( document.body ) - return document.body.scrollTop; - else - return 0; - } - -}; diff --git a/zioinfo/js/scriptaculous.js b/zioinfo/js/scriptaculous.js deleted file mode 100644 index 585313c3..00000000 --- a/zioinfo/js/scriptaculous.js +++ /dev/null @@ -1,51 +0,0 @@ -// script.aculo.us scriptaculous.js v1.7.0, Fri Jan 19 19:16:36 CET 2007 - -// Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -// For details, see the script.aculo.us web site: http://script.aculo.us/ - -var Scriptaculous = { - Version: '1.7.0', - require: function(libraryName) { - // inserting via DOM fails in Safari 2.0, so brute force approach - document.write(''); - }, - load: function() { - if((typeof Prototype=='undefined') || - (typeof Element == 'undefined') || - (typeof Element.Methods=='undefined') || - parseFloat(Prototype.Version.split(".")[0] + "." + - Prototype.Version.split(".")[1]) < 1.5) - throw("script.aculo.us requires the Prototype JavaScript framework >= 1.5.0"); - - $A(document.getElementsByTagName("script")).findAll( function(s) { - return (s.src && s.src.match(/scriptaculous\.js(\?.*)?$/)) - }).each( function(s) { - var path = s.src.replace(/scriptaculous\.js(\?.*)?$/,''); - var includes = s.src.match(/\?.*load=([a-z,]*)/); - (includes ? includes[1] : 'builder,effects,dragdrop,controls,slider').split(',').each( - function(include) { Scriptaculous.require(path+include+'.js') }); - }); - } -} - -Scriptaculous.load(); \ No newline at end of file diff --git a/zioinfo/js/slider.js b/zioinfo/js/slider.js deleted file mode 100644 index f24f2823..00000000 --- a/zioinfo/js/slider.js +++ /dev/null @@ -1,278 +0,0 @@ -// script.aculo.us slider.js v1.7.0, Fri Jan 19 19:16:36 CET 2007 - -// Copyright (c) 2005, 2006 Marty Haught, Thomas Fuchs -// -// script.aculo.us is freely distributable under the terms of an MIT-style license. -// For details, see the script.aculo.us web site: http://script.aculo.us/ - -if(!Control) var Control = {}; -Control.Slider = Class.create(); - -// options: -// axis: 'vertical', or 'horizontal' (default) -// -// callbacks: -// onChange(value) -// onSlide(value) -Control.Slider.prototype = { - initialize: function(handle, track, options) { - var slider = this; - - if(handle instanceof Array) { - this.handles = handle.collect( function(e) { return $(e) }); - } else { - this.handles = [$(handle)]; - } - - this.track = $(track); - this.options = options || {}; - - this.axis = this.options.axis || 'horizontal'; - this.increment = this.options.increment || 1; - this.step = parseInt(this.options.step || '1'); - this.range = this.options.range || $R(0,1); - - this.value = 0; // assure backwards compat - this.values = this.handles.map( function() { return 0 }); - this.spans = this.options.spans ? this.options.spans.map(function(s){ return $(s) }) : false; - this.options.startSpan = $(this.options.startSpan || null); - this.options.endSpan = $(this.options.endSpan || null); - - this.restricted = this.options.restricted || false; - - this.maximum = this.options.maximum || this.range.end; - this.minimum = this.options.minimum || this.range.start; - - // Will be used to align the handle onto the track, if necessary - this.alignX = parseInt(this.options.alignX || '0'); - this.alignY = parseInt(this.options.alignY || '0'); - - this.trackLength = this.maximumOffset() - this.minimumOffset(); - - this.handleLength = this.isVertical() ? - (this.handles[0].offsetHeight != 0 ? - this.handles[0].offsetHeight : this.handles[0].style.height.replace(/px$/,"")) : - (this.handles[0].offsetWidth != 0 ? this.handles[0].offsetWidth : - this.handles[0].style.width.replace(/px$/,"")); - - this.active = false; - this.dragging = false; - this.disabled = false; - - if(this.options.disabled) this.setDisabled(); - - // Allowed values array - this.allowedValues = this.options.values ? this.options.values.sortBy(Prototype.K) : false; - if(this.allowedValues) { - this.minimum = this.allowedValues.min(); - this.maximum = this.allowedValues.max(); - } - - this.eventMouseDown = this.startDrag.bindAsEventListener(this); - this.eventMouseUp = this.endDrag.bindAsEventListener(this); - this.eventMouseMove = this.update.bindAsEventListener(this); - - // Initialize handles in reverse (make sure first handle is active) - this.handles.each( function(h,i) { - i = slider.handles.length-1-i; - slider.setValue(parseFloat( - (slider.options.sliderValue instanceof Array ? - slider.options.sliderValue[i] : slider.options.sliderValue) || - slider.range.start), i); - Element.makePositioned(h); // fix IE - Event.observe(h, "mousedown", slider.eventMouseDown); - }); - - Event.observe(this.track, "mousedown", this.eventMouseDown); - Event.observe(document, "mouseup", this.eventMouseUp); - Event.observe(document, "mousemove", this.eventMouseMove); - - this.initialized = true; - }, - dispose: function() { - var slider = this; - Event.stopObserving(this.track, "mousedown", this.eventMouseDown); - Event.stopObserving(document, "mouseup", this.eventMouseUp); - Event.stopObserving(document, "mousemove", this.eventMouseMove); - this.handles.each( function(h) { - Event.stopObserving(h, "mousedown", slider.eventMouseDown); - }); - }, - setDisabled: function(){ - this.disabled = true; - }, - setEnabled: function(){ - this.disabled = false; - }, - getNearestValue: function(value){ - if(this.allowedValues){ - if(value >= this.allowedValues.max()) return(this.allowedValues.max()); - if(value <= this.allowedValues.min()) return(this.allowedValues.min()); - - var offset = Math.abs(this.allowedValues[0] - value); - var newValue = this.allowedValues[0]; - this.allowedValues.each( function(v) { - var currentOffset = Math.abs(v - value); - if(currentOffset <= offset){ - newValue = v; - offset = currentOffset; - } - }); - return newValue; - } - if(value > this.range.end) return this.range.end; - if(value < this.range.start) return this.range.start; - return value; - }, - setValue: function(sliderValue, handleIdx){ - if(!this.active) { - this.activeHandleIdx = handleIdx || 0; - this.activeHandle = this.handles[this.activeHandleIdx]; - this.updateStyles(); - } - handleIdx = handleIdx || this.activeHandleIdx || 0; - if(this.initialized && this.restricted) { - if((handleIdx>0) && (sliderValuethis.values[handleIdx+1])) - sliderValue = this.values[handleIdx+1]; - } - sliderValue = this.getNearestValue(sliderValue); - this.values[handleIdx] = sliderValue; - this.value = this.values[0]; // assure backwards compat - - this.handles[handleIdx].style[this.isVertical() ? 'top' : 'left'] = - this.translateToPx(sliderValue); - - this.drawSpans(); - if(!this.dragging || !this.event) this.updateFinished(); - }, - setValueBy: function(delta, handleIdx) { - this.setValue(this.values[handleIdx || this.activeHandleIdx || 0] + delta, - handleIdx || this.activeHandleIdx || 0); - }, - translateToPx: function(value) { - return Math.round( - ((this.trackLength-this.handleLength)/(this.range.end-this.range.start)) * - (value - this.range.start)) + "px"; - }, - translateToValue: function(offset) { - return ((offset/(this.trackLength-this.handleLength) * - (this.range.end-this.range.start)) + this.range.start); - }, - getRange: function(range) { - var v = this.values.sortBy(Prototype.K); - range = range || 0; - return $R(v[range],v[range+1]); - }, - minimumOffset: function(){ - return(this.isVertical() ? this.alignY : this.alignX); - }, - maximumOffset: function(){ - return(this.isVertical() ? - (this.track.offsetHeight != 0 ? this.track.offsetHeight : - this.track.style.height.replace(/px$/,"")) - this.alignY : - (this.track.offsetWidth != 0 ? this.track.offsetWidth : - this.track.style.width.replace(/px$/,"")) - this.alignY); - }, - isVertical: function(){ - return (this.axis == 'vertical'); - }, - drawSpans: function() { - var slider = this; - if(this.spans) - $R(0, this.spans.length-1).each(function(r) { slider.setSpan(slider.spans[r], slider.getRange(r)) }); - if(this.options.startSpan) - this.setSpan(this.options.startSpan, - $R(0, this.values.length>1 ? this.getRange(0).min() : this.value )); - if(this.options.endSpan) - this.setSpan(this.options.endSpan, - $R(this.values.length>1 ? this.getRange(this.spans.length-1).max() : this.value, this.maximum)); - }, - setSpan: function(span, range) { - if(this.isVertical()) { - span.style.top = this.translateToPx(range.start); - span.style.height = this.translateToPx(range.end - range.start + this.range.start); - } else { - span.style.left = this.translateToPx(range.start); - span.style.width = this.translateToPx(range.end - range.start + this.range.start); - } - }, - updateStyles: function() { - this.handles.each( function(h){ Element.removeClassName(h, 'selected') }); - Element.addClassName(this.activeHandle, 'selected'); - }, - startDrag: function(event) { - if(Event.isLeftClick(event)) { - if(!this.disabled){ - this.active = true; - - var handle = Event.element(event); - var pointer = [Event.pointerX(event), Event.pointerY(event)]; - var track = handle; - if(track==this.track) { - var offsets = Position.cumulativeOffset(this.track); - this.event = event; - this.setValue(this.translateToValue( - (this.isVertical() ? pointer[1]-offsets[1] : pointer[0]-offsets[0])-(this.handleLength/2) - )); - var offsets = Position.cumulativeOffset(this.activeHandle); - this.offsetX = (pointer[0] - offsets[0]); - this.offsetY = (pointer[1] - offsets[1]); - } else { - // find the handle (prevents issues with Safari) - while((this.handles.indexOf(handle) == -1) && handle.parentNode) - handle = handle.parentNode; - - if(this.handles.indexOf(handle)!=-1) { - this.activeHandle = handle; - this.activeHandleIdx = this.handles.indexOf(this.activeHandle); - this.updateStyles(); - - var offsets = Position.cumulativeOffset(this.activeHandle); - this.offsetX = (pointer[0] - offsets[0]); - this.offsetY = (pointer[1] - offsets[1]); - } - } - } - Event.stop(event); - } - }, - update: function(event) { - if(this.active) { - if(!this.dragging) this.dragging = true; - this.draw(event); - // fix AppleWebKit rendering - if(navigator.appVersion.indexOf('AppleWebKit')>0) window.scrollBy(0,0); - Event.stop(event); - } - }, - draw: function(event) { - var pointer = [Event.pointerX(event), Event.pointerY(event)]; - var offsets = Position.cumulativeOffset(this.track); - pointer[0] -= this.offsetX + offsets[0]; - pointer[1] -= this.offsetY + offsets[1]; - this.event = event; - this.setValue(this.translateToValue( this.isVertical() ? pointer[1] : pointer[0] )); - if(this.initialized && this.options.onSlide) - this.options.onSlide(this.values.length>1 ? this.values : this.value, this); - }, - endDrag: function(event) { - if(this.active && this.dragging) { - this.finishDrag(event, true); - Event.stop(event); - } - this.active = false; - this.dragging = false; - }, - finishDrag: function(event, success) { - this.active = false; - this.dragging = false; - this.updateFinished(); - }, - updateFinished: function() { - if(this.initialized && this.options.onChange) - this.options.onChange(this.values.length>1 ? this.values : this.value, this); - this.event = null; - } -} \ No newline at end of file diff --git a/zioinfo/js/string.js b/zioinfo/js/string.js deleted file mode 100644 index 2fba79c0..00000000 --- a/zioinfo/js/string.js +++ /dev/null @@ -1,138 +0,0 @@ -/*-------------------------------------------------------------------+ - * 1. ϸ: string.js - * 2. : JavaScript String ü ϴ ߰Լ Ѵ. - * 3. : - * 4. ۼ: - * 5. ۼ: 2006.10.10. - -------------------------------------------------------------------*/ - - - -/** - * ڿ ڿ Ѵ. - */ -function trim(str) { - if ( str == null || typeof(str) == "undefined" ) return null; - - /* ڿ ƴϸ ڿ Ѵ. */ - if ( typeof(str) != "string" ) str = new String(str); - - return str.replace(/(^\s+)|(\s+$)/g, ""); -} - - -/** - * ڿ Byte ش. ڴ 1byte, ѱ ϴ 2byte Ѵ. - * UTF-8 ϸ 3byte ؾ ϴµ.... - */ -function countByte(str) { - if ( str == null || typeof(str) == "undefined" ) return 0; - - if ( typeof(str) != "string" ) str = new String(str); - - var byteCount = 0; - for ( var i = 0; i < str.length; i++ ) { - byteCount += ( str.charCodeAt(i) <= 255 ? 1 : 2 ); - } - - return byteCount; -} - - -/** - * ־ ü ŭ ʿ - * ùڷ ä ڿ ش. - * - * @param value е . - * @param maxWidth еǾ ü . ƴԿ Ѵ. - * @param padChar е . 鹮(" ") ȴ. - */ -function padLeft(value, maxWidth, padChar) { - var padStr = makePadStr(value, maxWidth, padChar); - - return padStr + value; -} - - -/** - * ־ ü ŭ ʿ - * ùڷ ä ڿ ش. - * - * @param value е . - * @param maxWidth еǾ ü . ƴԿ Ѵ. - * @param padChar е . 鹮(" ") ȴ. - */ -function padRight(value, maxWidth, padChar) { - var padStr = makePadStr(value, maxWidth, padChar); - - return value + padStr; -} - - -/** - * ־ ü ŭ ùڷ - * ä ڿ ش. - * - * @param value е . - * @param maxWidth еǾ ü . ƴԿ Ѵ. - * @param padChar е . 鹮(" ") ȴ. - */ -function makePadStr(value, maxWidth, padChar) { - /* ڿ Ѵ. */ - if ( value == null || value == undefined ) value = ""; - - /* ڰ 鹮 */ - if ( padChar == null || padChar == undefined ) padChar = " "; - - /* е Ѵ. */ - var paddedWidth = maxWidth - countByte(value); - - var padStr = ""; - for (var i = 0; i < paddedWidth; i++ ) { - padStr += padChar; - } - - return padStr; -} - - -/** - * ڿ ִ Ư ڸ . - * - * @param removedChar ڿ. - */ -function removeChar(str, removedChar) { - if ( typeof(str) == "undefined" || str == null ) return str; - - if ( typeof(removedChar) == "undefined" || removedChar == null ) return str; - - if ( typeof(str) != "string" ) str = new String(str); - - var regExp = new RegExp(removedChar, "g"); - - return str.replace(regExp, ""); -} - - - -/** - * Text Է ʿ ִ 鹮ڸ Ѵ. - * - * @param obj Text Է ü - */ -function trimObj(obj) { - obj.value = trim(obj.value); -} - - -/** - * Text Է ('/') Ͽ - * ٽ Text Է Ѵ. - * - * @param obj Text Է ü - * @param ch . - */ -function removeCharObj(obj, ch) { - obj.value = removeChar(obj.value, ch); -} - diff --git a/zioinfo/js/ui.js b/zioinfo/js/ui.js deleted file mode 100644 index 95f12a5d..00000000 --- a/zioinfo/js/ui.js +++ /dev/null @@ -1,289 +0,0 @@ -/*------------------------------------------------------------------------------ - * 1. ϸ: ui.js - * 2. : UI õ Լ Ѵ. - * 3. : form.js, ui.js - * 4. ۼ: - * 5. ۼ: 2006.10.17. - -----------------------------------------------------------------------------*/ - -/* 2007.05.10 - * Object(ư) Ŭ ۷ normal over ٲش. - */ -function toggleButtonClassName(btnElement) { - var normalClassName = "normal"; - var overClassName = "over"; - if (btnElement.className == normalClassName) { - Element.removeClassName(btnElement, normalClassName); - Element.addClassName(btnElement, overClassName); - } else if (btnElement.className == overClassName){ - Element.removeClassName(btnElement, overClassName); - Element.addClassName(btnElement, normalClassName); - } -} - - -// Ͽ õ ̶Ʈ -var SELECTED_BG_COLOR = "#99CCFF"; - -/** - * ش object ڽ Ÿ ٲ۴. - * - */ -function changeAllChildNodesColor(obj, color) { - if (obj != null) { - var size = obj.childNodes.length; - for (i = 0; i < size; i++) { - var childEl = obj.childNodes[i]; // Not Recursive! - try { - childEl.style.background = color; - } catch (doNotApplyStyle) {} - } - } -} - -/** - * ־ ̸ ȭ  - * Top ġ ش. - */ -function calcTopForCenter(height) { - return ( screen.height - height ) / 2; -} - -/** - * ־ ȭ  - * Left ġ ش. - */ -function calcLeftForCenter(width) { - return ( screen.width - width ) / 2; -} - -/** - * ȭ â . - */ -function showDialog(name, url, width, height, option) { - option = "width=" + width - + ",height=" + height - + ",alwaysRaised=yes" - + ",dependent=yes" - + (option == undefined || option.length == 0 ? "" : "," + option); - - return showWindow(name, url, width, height, option); -} - -/** - * 츦 ־ ǥ . ġ ־ - * 찡 ȭ  . - */ -function showWindow(name, url, width, height, option, topPx, leftPx) { - if ( ! topPx ) topPx = calcTopForCenter(height); - if ( ! leftPx ) leftPx = calcLeftForCenter(width); - - var win = window.open(url, name, option); - - win.moveTo(leftPx, topPx); - - if ( win ) win.focus(); - - return win; -} - - - -/** - * ޼ â ־ ޼ ش. - */ -function showMessage(msg) { - alert(msg); -} - - - -/** - * System ޼ ش. - */ -function showSysMessage(msg) { - alert("System ޼: " + msg); -} - - -/** - * ־ Select ü Input ü ϰ - * Է ׸ Ѿ. - */ -function setSelectedValueAndMoveNext(moveOrderIdList, selectObj, inputObj) { - ref(inputObj).value = getSelectedValue(selectObj); - - moveNext(moveOrderIdList, ref(inputObj).id); -} - - -/** - * ׸ ̵Ѵ. - * ̵ disable ̰ų, ʴ (display: none)̸ - * ׸ dz . - * - * @param moveOrderIdList ̵ ׸ ID 迭. - * @param currentPositionId ġ ID. 迭 ID ID ̵Ѵ. - */ -function moveNext(moveOrderIdList, currentPositionId) { - var index = indexInArray(moveOrderIdList, currentPositionId); - - if ( index == -1 ) alert("ID " + currentPositionId + " ̵ (moveOrderIdList) ϴ."); - - var nextIndex = -1; - var i = (index + 1) % moveOrderIdList.length; - for ( var count = 0; count < moveOrderIdList.length; count++, i = ((++i) % moveOrderIdList.length) ) { - var obj = ref(moveOrderIdList[i]); - - if ( obj != undefined && obj != null && ! obj.disabled ) { - nextIndex = i; - break; - } - } - - //alert(index + " -> " + nextIndex + " : " + moveOrderIdList[nextIndex]); - - if ( nextIndex > -1 ) { - ref(moveOrderIdList[nextIndex]).focus(); - ref(moveOrderIdList[nextIndex]).select(); - } -} - - -/** - * Key Enter̸ - * ׸ ̵Ѵ. - */ -function moveNextIfEnter(moveOrderIdList, currentId) { - if ( event.keyCode == 13 ) { - moveNext(moveOrderIdList, currentId); - } - - event.returnValue = ( event.keyCode != 13 ); -} - - -function moveNextIfCtrlEnter(moveOrderIdList, currentId) { - if ( event.keyCode == 13 && event.ctrlKey ) { - moveNext(moveOrderIdList, currentId); - } - - event.returnValue = ! ( event.keyCode == 13 && event.ctrlKey ); -} - - - -/** - * ־ Form ߿ valid.required true - * ׸ ǥѴ. - */ -function markRequiredInput(form) { - for ( var i = 0; i < form.elements.length; i++ ) { - var elem = form.elements[i]; - - if ( ! elem.disabled && ! elem.readOnly ) { - if ( elem.getAttribute("valid.required") == "true" ) { - elem.style.backgroundColor = "#FFFFCC"; - } - } - } -} - -/** - * ־ Form ǵ Element - * Text TextArea - * Focus ־ Ҿ ó ڵ鷯 - * Ѵ. ⺻ ׵θ ߴٰ - * ڵ鷯 õȴ. - */ -function setFocusAndBlurAction(form, focusAction, blurAction) { - /* ǰ Ǿ ⺻ ִ´. */ - if ( focusAction == undefined ) focusAction = setBorderRed; - - if ( blurAction == undefined ) blurAction = restoreBorderColor; - - for ( var i = 0; i < form.elements.length; i++ ) { - var elem = form.elements[i]; - //alert(elem.type); - if ( elem.type != undefined - && ( elem.type == "text" - || elem.type == "textarea" - || elem.type == "password" ) - && ! elem.disabled - && ! elem.readOnly ) { - elem.attachEvent("onfocus", baseOnFocusHandler); - elem.attachEvent("onfocus", focusAction); - elem.attachEvent("onblur" , blurAction ); - } - } -} - -/** - * Focus ̺Ʈ ߻ ⺻ Լ - */ -function baseOnFocusHandler() { - var eventSrc = event.srcElement; - - /* ̺Ʈ ߻ ׸ õ ° ǰ Ѵ. */ - eventSrc.select(); -} - -/** - * Event ߻ ü ׵θ ٲ۴. - */ -function setBorderRed() { - var eventSrc = event.srcElement; - - oldBorderValue = eventSrc.style.border; - - eventSrc.style.border = "1px solid #CCCCCC"; -} - -/** - * Blur ̺Ʈ ߻ ׵θ - * ´. - */ -function restoreBorderColor() { - var eventSrc = event.srcElement; - - eventSrc.style.borderColor = ""; -} - - -// 1024x768 ػ󵵿 Main ʿ ּ ̰ -var MIN_MAIN_HEIGHT = 494; - -/** - * ־ ̸ Main ȭ - * ִ ش. - */ -function getVarHeightOfMain(minVarHeight) { - var clientHeight = document.body.clientHeight; - var fixHeight = MIN_MAIN_HEIGHT - minVarHeight; - - /* Ѵ. */ - var varHeight = Math.max(MIN_MAIN_HEIGHT, clientHeight) - fixHeight; - - return varHeight; -} - - -/** - * Ȯâ ̸, path ̵Ѵ. - * - */ -function confirmation(path, message) { - if (confirm(message)){ - document.location.href = path; - } -} - - -function center_popup(page,name,w,h,scroll){ - LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; - TopPosition = (screen.height) ? (screen.height-h)/2 : 0; - - settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'; - var w = window.open(page,name,settings); - return w; -} diff --git a/zioinfo/js/unittest.js b/zioinfo/js/unittest.js deleted file mode 100644 index a4478855..00000000 --- a/zioinfo/js/unittest.js +++ /dev/null @@ -1,564 +0,0 @@ -// script.aculo.us unittest.js v1.7.0, Fri Jan 19 19:16:36 CET 2007 - -// Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) -// (c) 2005, 2006 Jon Tirsen (http://www.tirsen.com) -// (c) 2005, 2006 Michael Schuerig (http://www.schuerig.de/michael/) -// -// script.aculo.us is freely distributable under the terms of an MIT-style license. -// For details, see the script.aculo.us web site: http://script.aculo.us/ - -// experimental, Firefox-only -Event.simulateMouse = function(element, eventName) { - var options = Object.extend({ - pointerX: 0, - pointerY: 0, - buttons: 0, - ctrlKey: false, - altKey: false, - shiftKey: false, - metaKey: false - }, arguments[2] || {}); - var oEvent = document.createEvent("MouseEvents"); - oEvent.initMouseEvent(eventName, true, true, document.defaultView, - options.buttons, options.pointerX, options.pointerY, options.pointerX, options.pointerY, - options.ctrlKey, options.altKey, options.shiftKey, options.metaKey, 0, $(element)); - - if(this.mark) Element.remove(this.mark); - this.mark = document.createElement('div'); - this.mark.appendChild(document.createTextNode(" ")); - document.body.appendChild(this.mark); - this.mark.style.position = 'absolute'; - this.mark.style.top = options.pointerY + "px"; - this.mark.style.left = options.pointerX + "px"; - this.mark.style.width = "5px"; - this.mark.style.height = "5px;"; - this.mark.style.borderTop = "1px solid red;" - this.mark.style.borderLeft = "1px solid red;" - - if(this.step) - alert('['+new Date().getTime().toString()+'] '+eventName+'/'+Test.Unit.inspect(options)); - - $(element).dispatchEvent(oEvent); -}; - -// Note: Due to a fix in Firefox 1.0.5/6 that probably fixed "too much", this doesn't work in 1.0.6 or DP2. -// You need to downgrade to 1.0.4 for now to get this working -// See https://bugzilla.mozilla.org/show_bug.cgi?id=289940 for the fix that fixed too much -Event.simulateKey = function(element, eventName) { - var options = Object.extend({ - ctrlKey: false, - altKey: false, - shiftKey: false, - metaKey: false, - keyCode: 0, - charCode: 0 - }, arguments[2] || {}); - - var oEvent = document.createEvent("KeyEvents"); - oEvent.initKeyEvent(eventName, true, true, window, - options.ctrlKey, options.altKey, options.shiftKey, options.metaKey, - options.keyCode, options.charCode ); - $(element).dispatchEvent(oEvent); -}; - -Event.simulateKeys = function(element, command) { - for(var i=0; i' + - '' + - '' + - '' + - '
    StatusTestMessage
    '; - this.logsummary = $('logsummary') - this.loglines = $('loglines'); - }, - _toHTML: function(txt) { - return txt.escapeHTML().replace(/\n/g,"
    "); - }, - addLinksToResults: function(){ - $$("tr.failed .nameCell").each( function(td){ // todo: limit to children of this.log - td.title = "Run only this test" - Event.observe(td, 'click', function(){ window.location.search = "?tests=" + td.innerHTML;}); - }); - $$("tr.passed .nameCell").each( function(td){ // todo: limit to children of this.log - td.title = "Run all tests" - Event.observe(td, 'click', function(){ window.location.search = "";}); - }); - } -} - -Test.Unit.Runner = Class.create(); -Test.Unit.Runner.prototype = { - initialize: function(testcases) { - this.options = Object.extend({ - testLog: 'testlog' - }, arguments[1] || {}); - this.options.resultsURL = this.parseResultsURLQueryParameter(); - this.options.tests = this.parseTestsQueryParameter(); - if (this.options.testLog) { - this.options.testLog = $(this.options.testLog) || null; - } - if(this.options.tests) { - this.tests = []; - for(var i = 0; i < this.options.tests.length; i++) { - if(/^test/.test(this.options.tests[i])) { - this.tests.push(new Test.Unit.Testcase(this.options.tests[i], testcases[this.options.tests[i]], testcases["setup"], testcases["teardown"])); - } - } - } else { - if (this.options.test) { - this.tests = [new Test.Unit.Testcase(this.options.test, testcases[this.options.test], testcases["setup"], testcases["teardown"])]; - } else { - this.tests = []; - for(var testcase in testcases) { - if(/^test/.test(testcase)) { - this.tests.push( - new Test.Unit.Testcase( - this.options.context ? ' -> ' + this.options.titles[testcase] : testcase, - testcases[testcase], testcases["setup"], testcases["teardown"] - )); - } - } - } - } - this.currentTest = 0; - this.logger = new Test.Unit.Logger(this.options.testLog); - setTimeout(this.runTests.bind(this), 1000); - }, - parseResultsURLQueryParameter: function() { - return window.location.search.parseQuery()["resultsURL"]; - }, - parseTestsQueryParameter: function(){ - if (window.location.search.parseQuery()["tests"]){ - return window.location.search.parseQuery()["tests"].split(','); - }; - }, - // Returns: - // "ERROR" if there was an error, - // "FAILURE" if there was a failure, or - // "SUCCESS" if there was neither - getResult: function() { - var hasFailure = false; - for(var i=0;i 0) { - return "ERROR"; - } - if (this.tests[i].failures > 0) { - hasFailure = true; - } - } - if (hasFailure) { - return "FAILURE"; - } else { - return "SUCCESS"; - } - }, - postResults: function() { - if (this.options.resultsURL) { - new Ajax.Request(this.options.resultsURL, - { method: 'get', parameters: 'result=' + this.getResult(), asynchronous: false }); - } - }, - runTests: function() { - var test = this.tests[this.currentTest]; - if (!test) { - // finished! - this.postResults(); - this.logger.summary(this.summary()); - return; - } - if(!test.isWaiting) { - this.logger.start(test.name); - } - test.run(); - if(test.isWaiting) { - this.logger.message("Waiting for " + test.timeToWait + "ms"); - setTimeout(this.runTests.bind(this), test.timeToWait || 1000); - } else { - this.logger.finish(test.status(), test.summary()); - this.currentTest++; - // tail recursive, hopefully the browser will skip the stackframe - this.runTests(); - } - }, - summary: function() { - var assertions = 0; - var failures = 0; - var errors = 0; - var messages = []; - for(var i=0;i 0) return 'failed'; - if (this.errors > 0) return 'error'; - return 'passed'; - }, - assert: function(expression) { - var message = arguments[1] || 'assert: got "' + Test.Unit.inspect(expression) + '"'; - try { expression ? this.pass() : - this.fail(message); } - catch(e) { this.error(e); } - }, - assertEqual: function(expected, actual) { - var message = arguments[2] || "assertEqual"; - try { (expected == actual) ? this.pass() : - this.fail(message + ': expected "' + Test.Unit.inspect(expected) + - '", actual "' + Test.Unit.inspect(actual) + '"'); } - catch(e) { this.error(e); } - }, - assertInspect: function(expected, actual) { - var message = arguments[2] || "assertInspect"; - try { (expected == actual.inspect()) ? this.pass() : - this.fail(message + ': expected "' + Test.Unit.inspect(expected) + - '", actual "' + Test.Unit.inspect(actual) + '"'); } - catch(e) { this.error(e); } - }, - assertEnumEqual: function(expected, actual) { - var message = arguments[2] || "assertEnumEqual"; - try { $A(expected).length == $A(actual).length && - expected.zip(actual).all(function(pair) { return pair[0] == pair[1] }) ? - this.pass() : this.fail(message + ': expected ' + Test.Unit.inspect(expected) + - ', actual ' + Test.Unit.inspect(actual)); } - catch(e) { this.error(e); } - }, - assertNotEqual: function(expected, actual) { - var message = arguments[2] || "assertNotEqual"; - try { (expected != actual) ? this.pass() : - this.fail(message + ': got "' + Test.Unit.inspect(actual) + '"'); } - catch(e) { this.error(e); } - }, - assertIdentical: function(expected, actual) { - var message = arguments[2] || "assertIdentical"; - try { (expected === actual) ? this.pass() : - this.fail(message + ': expected "' + Test.Unit.inspect(expected) + - '", actual "' + Test.Unit.inspect(actual) + '"'); } - catch(e) { this.error(e); } - }, - assertNotIdentical: function(expected, actual) { - var message = arguments[2] || "assertNotIdentical"; - try { !(expected === actual) ? this.pass() : - this.fail(message + ': expected "' + Test.Unit.inspect(expected) + - '", actual "' + Test.Unit.inspect(actual) + '"'); } - catch(e) { this.error(e); } - }, - assertNull: function(obj) { - var message = arguments[1] || 'assertNull' - try { (obj==null) ? this.pass() : - this.fail(message + ': got "' + Test.Unit.inspect(obj) + '"'); } - catch(e) { this.error(e); } - }, - assertMatch: function(expected, actual) { - var message = arguments[2] || 'assertMatch'; - var regex = new RegExp(expected); - try { (regex.exec(actual)) ? this.pass() : - this.fail(message + ' : regex: "' + Test.Unit.inspect(expected) + ' did not match: ' + Test.Unit.inspect(actual) + '"'); } - catch(e) { this.error(e); } - }, - assertHidden: function(element) { - var message = arguments[1] || 'assertHidden'; - this.assertEqual("none", element.style.display, message); - }, - assertNotNull: function(object) { - var message = arguments[1] || 'assertNotNull'; - this.assert(object != null, message); - }, - assertType: function(expected, actual) { - var message = arguments[2] || 'assertType'; - try { - (actual.constructor == expected) ? this.pass() : - this.fail(message + ': expected "' + Test.Unit.inspect(expected) + - '", actual "' + (actual.constructor) + '"'); } - catch(e) { this.error(e); } - }, - assertNotOfType: function(expected, actual) { - var message = arguments[2] || 'assertNotOfType'; - try { - (actual.constructor != expected) ? this.pass() : - this.fail(message + ': expected "' + Test.Unit.inspect(expected) + - '", actual "' + (actual.constructor) + '"'); } - catch(e) { this.error(e); } - }, - assertInstanceOf: function(expected, actual) { - var message = arguments[2] || 'assertInstanceOf'; - try { - (actual instanceof expected) ? this.pass() : - this.fail(message + ": object was not an instance of the expected type"); } - catch(e) { this.error(e); } - }, - assertNotInstanceOf: function(expected, actual) { - var message = arguments[2] || 'assertNotInstanceOf'; - try { - !(actual instanceof expected) ? this.pass() : - this.fail(message + ": object was an instance of the not expected type"); } - catch(e) { this.error(e); } - }, - assertRespondsTo: function(method, obj) { - var message = arguments[2] || 'assertRespondsTo'; - try { - (obj[method] && typeof obj[method] == 'function') ? this.pass() : - this.fail(message + ": object doesn't respond to [" + method + "]"); } - catch(e) { this.error(e); } - }, - assertReturnsTrue: function(method, obj) { - var message = arguments[2] || 'assertReturnsTrue'; - try { - var m = obj[method]; - if(!m) m = obj['is'+method.charAt(0).toUpperCase()+method.slice(1)]; - m() ? this.pass() : - this.fail(message + ": method returned false"); } - catch(e) { this.error(e); } - }, - assertReturnsFalse: function(method, obj) { - var message = arguments[2] || 'assertReturnsFalse'; - try { - var m = obj[method]; - if(!m) m = obj['is'+method.charAt(0).toUpperCase()+method.slice(1)]; - !m() ? this.pass() : - this.fail(message + ": method returned true"); } - catch(e) { this.error(e); } - }, - assertRaise: function(exceptionName, method) { - var message = arguments[2] || 'assertRaise'; - try { - method(); - this.fail(message + ": exception expected but none was raised"); } - catch(e) { - ((exceptionName == null) || (e.name==exceptionName)) ? this.pass() : this.error(e); - } - }, - assertElementsMatch: function() { - var expressions = $A(arguments), elements = $A(expressions.shift()); - if (elements.length != expressions.length) { - this.fail('assertElementsMatch: size mismatch: ' + elements.length + ' elements, ' + expressions.length + ' expressions'); - return false; - } - elements.zip(expressions).all(function(pair, index) { - var element = $(pair.first()), expression = pair.last(); - if (element.match(expression)) return true; - this.fail('assertElementsMatch: (in index ' + index + ') expected ' + expression.inspect() + ' but got ' + element.inspect()); - }.bind(this)) && this.pass(); - }, - assertElementMatches: function(element, expression) { - this.assertElementsMatch([element], expression); - }, - benchmark: function(operation, iterations) { - var startAt = new Date(); - (iterations || 1).times(operation); - var timeTaken = ((new Date())-startAt); - this.info((arguments[2] || 'Operation') + ' finished ' + - iterations + ' iterations in ' + (timeTaken/1000)+'s' ); - return timeTaken; - }, - _isVisible: function(element) { - element = $(element); - if(!element.parentNode) return true; - this.assertNotNull(element); - if(element.style && Element.getStyle(element, 'display') == 'none') - return false; - - return this._isVisible(element.parentNode); - }, - assertNotVisible: function(element) { - this.assert(!this._isVisible(element), Test.Unit.inspect(element) + " was not hidden and didn't have a hidden parent either. " + ("" || arguments[1])); - }, - assertVisible: function(element) { - this.assert(this._isVisible(element), Test.Unit.inspect(element) + " was not visible. " + ("" || arguments[1])); - }, - benchmark: function(operation, iterations) { - var startAt = new Date(); - (iterations || 1).times(operation); - var timeTaken = ((new Date())-startAt); - this.info((arguments[2] || 'Operation') + ' finished ' + - iterations + ' iterations in ' + (timeTaken/1000)+'s' ); - return timeTaken; - } -} - -Test.Unit.Testcase = Class.create(); -Object.extend(Object.extend(Test.Unit.Testcase.prototype, Test.Unit.Assertions.prototype), { - initialize: function(name, test, setup, teardown) { - Test.Unit.Assertions.prototype.initialize.bind(this)(); - this.name = name; - - if(typeof test == 'string') { - test = test.gsub(/(\.should[^\(]+\()/,'#{0}this,'); - test = test.gsub(/(\.should[^\(]+)\(this,\)/,'#{1}(this)'); - this.test = function() { - eval('with(this){'+test+'}'); - } - } else { - this.test = test || function() {}; - } - - this.setup = setup || function() {}; - this.teardown = teardown || function() {}; - this.isWaiting = false; - this.timeToWait = 1000; - }, - wait: function(time, nextPart) { - this.isWaiting = true; - this.test = nextPart; - this.timeToWait = time; - }, - run: function() { - try { - try { - if (!this.isWaiting) this.setup.bind(this)(); - this.isWaiting = false; - this.test.bind(this)(); - } finally { - if(!this.isWaiting) { - this.teardown.bind(this)(); - } - } - } - catch(e) { this.error(e); } - } -}); - -// *EXPERIMENTAL* BDD-style testing to please non-technical folk -// This draws many ideas from RSpec http://rspec.rubyforge.org/ - -Test.setupBDDExtensionMethods = function(){ - var METHODMAP = { - shouldEqual: 'assertEqual', - shouldNotEqual: 'assertNotEqual', - shouldEqualEnum: 'assertEnumEqual', - shouldBeA: 'assertType', - shouldNotBeA: 'assertNotOfType', - shouldBeAn: 'assertType', - shouldNotBeAn: 'assertNotOfType', - shouldBeNull: 'assertNull', - shouldNotBeNull: 'assertNotNull', - - shouldBe: 'assertReturnsTrue', - shouldNotBe: 'assertReturnsFalse', - shouldRespondTo: 'assertRespondsTo' - }; - Test.BDDMethods = {}; - for(m in METHODMAP) { - Test.BDDMethods[m] = eval( - 'function(){'+ - 'var args = $A(arguments);'+ - 'var scope = args.shift();'+ - 'scope.'+METHODMAP[m]+'.apply(scope,(args || []).concat([this])); }'); - } - [Array.prototype, String.prototype, Number.prototype].each( - function(p){ Object.extend(p, Test.BDDMethods) } - ); -} - -Test.context = function(name, spec, log){ - Test.setupBDDExtensionMethods(); - - var compiledSpec = {}; - var titles = {}; - for(specName in spec) { - switch(specName){ - case "setup": - case "teardown": - compiledSpec[specName] = spec[specName]; - break; - default: - var testName = 'test'+specName.gsub(/\s+/,'-').camelize(); - var body = spec[specName].toString().split('\n').slice(1); - if(/^\{/.test(body[0])) body = body.slice(1); - body.pop(); - body = body.map(function(statement){ - return statement.strip() - }); - compiledSpec[testName] = body.join('\n'); - titles[testName] = specName; - } - } - new Test.Unit.Runner(compiledSpec, { titles: titles, testLog: log || 'testlog', context: name }); -}; \ No newline at end of file diff --git a/zioinfo/js/util.js b/zioinfo/js/util.js deleted file mode 100644 index 8a567862..00000000 --- a/zioinfo/js/util.js +++ /dev/null @@ -1,76 +0,0 @@ -/*-------------------------------------------------------------------+ - * 1. ϸ: util.js - * 2. : JavaScript óÿ ʿ Լ Ѵ. - * 3. : . - * 4. ۼ: - * 5. ۼ: 2006.10.16. - -------------------------------------------------------------------*/ - - -/** - * 迭 Ư θ ǴϿ ش. - * - * @param array ִ Ȯ 迭. - * @param value θ Ȯ . - * - * @return 迭 true, false. - */ -function existsInArray(array, value) { - var result = false; - - for ( var i = 0; i < array.length; i++ ) { - if ( array[i] == value ) { - result = true; - break; - } - } - - return result; -} - - -/** - * 迭 ־ index ش. - * ش ã -1 ش. - * - * @param array 迭. - * @param value Index ã . - */ -function indexInArray(array, value) { - var index = -1; - - for ( var i = 0; i < array.length; i++ ) { - if ( value == array[i] ) { - index = i; - break; - } - } - - return index; -} - - -/** - * ־ ü ̸ ڽ "string"̸ - * ID ü ش. - */ -function ref(obj, index) { - if ( index == undefined ) { - obj = typeof(obj) == "string" ? document.getElementById(obj) : obj; - } - else { - obj = typeof(obj) == "string" ? - document.getElementsByName(obj)[index] : - obj.length == undefined ? obj : obj[index]; - } - - return obj; -} - - -/** - * θ ̵Ѵ. - */ -function gotoUrl(path) { - document.location.href = path; -} diff --git a/zioinfo/js/valid.base.js b/zioinfo/js/valid.base.js deleted file mode 100644 index 897a40b8..00000000 --- a/zioinfo/js/valid.base.js +++ /dev/null @@ -1,489 +0,0 @@ -/*-------------------------------------------------------------------+ - * 1. ϸ: valid.js - * 2. : ʼ׸񿩺 ̿ ȿ - * Լ Ѵ. - * 3. : ui.js - * 4. ۼ: - * 5. ۼ: 2006.10.10. - -------------------------------------------------------------------*/ - - -/** - * θ Ͽ ش. - * ־ null̰ų, undefined̰ų ڿ("")̸ - * ٰ ǴѴ. - */ -function isEmpty(value, afterTrim) { - if ( value == null || typeof(value) == "undefined" ) return true; - - if ( afterTrim == undefined ) afterTrim = true; - - /* ڿ ƴϸ ڿ Ѵ. */ - if ( typeof(value) == "string" ) value = new String(value); - - if ( afterTrim ) value = trim(value); - - return ("" == value); -} - - -/** - * ־ ü θ ˻Ͽ - * ش. ̸ true, ƴϸ false̴. - */ -function isEmptyObj(obj, afterTrim) { - obj = ref(obj); - - return isEmpty(obj.value, afterTrim); -} - - -/** - * ־ Ȥ ġȯ ִ - * ڿ θ ش. - * ڸ ڸ ˻Ѵ. - * - * @param cipher ڸ. ã ܾ׿. - */ -function isInteger(value, cipher) { - /* ϴ ̸ true. */ - if ( isEmpty(value) ) return true; - - /* value String ƴϸ String ٲ۴. */ - var numStr = ""; - if ( typeof(value) != "string" ) numStr = new String(value); - - /* 3ڸ ĸ  ĸ Ѵ. */ - numStr = removeChar(numStr, ","); - - /* ڰ ƴѰ? */ - if ( isNaN(numStr) ) return false; - - /* ΰ? Ҽ ִ°? */ - if ( numStr.indexOf(".") > -1 ) return false; - - /* ڸ ִٸ ־ ڸ ΰ? */ - if ( ! isEmpty(cipher) && numStr.length > cipher ) return false; - - /* հ! */ - return true; -} - - -/** - * ־ Ҽ Ȥ Ҽ ġȯ ִ - * ڿ θ ش. - * ڸ ڸ ˻Ѵ. - * - * @param value Ҽ θ Ȯ . - * @param integerPartCipher ڸ. - * @param fractionCipher Ҽ ڸ. - */ -function isFloat(value, integerPartCipher, fractionCipher) { - /* ϴ ̸ true. */ - if ( isEmpty(value) ) return true; - - /* value String ƴϸ String ٲ۴. */ - var numStr = ""; - if ( typeof(value) != "string" ) numStr = new String(value); - - /* 3ڸ ĸ  ĸ Ѵ. */ - numStr = removeChar(numStr, ","); - - /* ڰ ƴѰ? */ - if ( isNaN(numStr) ) return false; - - /* ڸ ִٸ ο Ҽη . */ - if ( ! isEmpty(integerPartCipher) || ! isEmpty(fractionCipher) ) { - var tempArr = numStr.split("."); - - var intergerPart = tempArr[0]; // - var fractionPart = tempArr.length > 1 ? tempArr[1] : ""; // Ҽ - - /* Ȯ. */ - if ( ! isEmpty(integerPartCipher) && intergerPart.length > integerPartCipher ) return false; - - /* Ҽ Ȯ. */ - if ( ! isEmpty(fractionCipher) && fractionPart.length > fractionCipher ) return false; - } - - /* հ! */ - return true; -} - - - -/** - * ־ ڿ byte length - * ˻Ͽ true, ٸ false ش. - * - * @param str ڿ - * @param length byte - */ -function checkLengthEQ(str, length) { - return countByte(str) == length; -} - - -/** - * Text Է byte length - * ˻Ͽ true, ٸ false ش. - * - * @param obj Text Է ü - * @param length byte - */ -function checkLengthEQObj(obj, length) { - return checkLengthEQ(obj.value, length); -} - - -/** - * Text Է byte length - * ˻Ͽ ׷ٸ true, ׷ false ش. - * - * @param value ˻ . - * @param length byte . - * @param fieldName ׸ - */ -function validateLengthEQ(value, length, fieldName) { - if ( fieldName == undefined ) { - fieldName = ""; - } - else { - fieldName += " "; - } - - var valid = checkLengthEQ(value, length); - - if ( ! valid ) { - showMessage(fieldName + " " + length + " (, )̾ մϴ."); - } - - return valid; -} - - -/** - * Text Է byte length - * ˻Ͽ ׷ٸ true, ׷ false ش. - * - * @param obj Text Է ü - * @param length byte - * @param fieldName ׸ - */ -function validateLengthEQObj(obj, length, fieldName) { - var valid = validateLengthEQ(obj.value, length, fieldName); - - if ( ! valid ) { - obj.focus(); - } - - return valid; -} - - -/** - * ־ ڿ byte length ū - * ˻Ͽ true, ٸ false ش. - * - * @param str ڿ - * @param length byte - */ -function checkLengthGT(str, length) { - return countByte(str) > length; -} - - -/** - * Text Է byte length ū - * ˻Ͽ true, ٸ false ش. - * - * @param obj Text Է ü - * @param length byte - */ -function checkLengthGTObj(obj, length) { - return checkLengthGT(obj.value, length); -} - - -/** - * Text Է byte length ū - * ˻Ͽ ׷ٸ true, ׷ false ش. - * - * @param value ˻ . - * @param length byte . - * @param fieldName ׸ - */ -function validateLengthGT(value, length, fieldName) { - if ( fieldName == undefined ) { - fieldName = ""; - } - else { - fieldName += " "; - } - - var valid = checkLengthGT(value, length); - - if ( ! valid ) { - showMessage(fieldName + " " + length + " (, ) Ŀ մϴ."); - } - - return valid; -} - - -/** - * Text Է byte length ū - * ˻Ͽ ׷ٸ true, ׷ false ش. - * - * @param obj Text Է ü - * @param length byte - * @param fieldName ׸ - */ -function validateLengthGTObj(obj, length, fieldName) { - var valid = validateLengthGT(obj.value, length, fieldName); - - if ( ! valid ) { - obj.focus(); - } - - return valid; -} - - -/** - * ־ ڿ byte length - * ˻Ͽ true, ٸ false ش. - * - * @param str ڿ - * @param length byte - */ -function checkLengthLT(str, length) { - return countByte(str) < length; -} - - -/** - * Text Է byte length - * ˻Ͽ true, ٸ false ش. - * - * @param obj Text Է ü - * @param length byte - */ -function checkLengthLTObj(obj, length) { - return checkLengthLT(obj.value, length); -} - - -/** - * Text Է byte length - * ˻Ͽ ׷ٸ true, ׷ false ش. - * - * @param value ˻ . - * @param length byte . - * @param fieldName ׸ - */ -function validateLengthLT(value, length, fieldName) { - if ( fieldName == undefined ) { - fieldName = ""; - } - else { - fieldName += " "; - } - - var valid = checkLengthLT(value, length); - - if ( ! valid ) { - showMessage(fieldName + " " + length + " (, ) ۾ƾ մϴ."); - } - - return valid; -} - - - -/** - * Text Է byte length - * ˻Ͽ ׷ٸ true, ׷ false ش. - * - * @param obj Text Է ü - * @param length byte - * @param fieldName ׸ - */ -function validateLengthLTObj(obj, length, fieldName) { - var valid = validateLengthLT(obj.value, length, fieldName); - - if ( ! valid ) { - obj.focus(); - } - - return valid; -} - - - -/** - * ־ ڿ byte length ũų - * ˻Ͽ true, ٸ false ش. - * - * @param str ڿ - * @param length byte - */ -function checkLengthGE(str, length) { - return countByte(str) >= length; -} - - -/** - * Text Է byte length ũų - * ˻Ͽ true, ٸ false ش. - * - * @param obj Text Է ü - * @param length byte - */ -function checkLengthGEObj(obj, length) { - return checkLengthGE(obj.value, length); -} - - -/** - * Text Է byte length - * ˻Ͽ ׷ٸ true, ׷ false ش. - * - * @param value ˻ . - * @param length byte . - * @param fieldName ׸ - */ -function validateLengthGE(value, length, fieldName) { - if ( fieldName == undefined ) { - fieldName = ""; - } - else { - fieldName += " "; - } - - var valid = checkLengthGE(value, length); - - if ( ! valid ) { - showMessage(fieldName + " " + length + " (, ) ũų ƾ մϴ."); - } - - return valid; -} - - - -/** - * Text Է byte length - * ˻Ͽ ׷ٸ true, ׷ false ش. - * - * @param obj Text Է ü - * @param length byte - * @param fieldName ׸ - */ -function validateLengthGEObj(obj, length, fieldName) { - var valid = validateLengthGE(obj.value, length, fieldName); - - if ( ! valid ) { - obj.focus(); - } - - return valid; -} - - - -/** - * ־ ڿ byte length ۰ų - * ˻Ͽ true, ٸ false ش. - * - * @param str ڿ - * @param length byte - */ -function checkLengthLE(str, length) { - return countByte(str) <= length; -} - - -/** - * ־ ڿ byte length ۰ų - * ˻Ͽ true, ٸ false ش. - * - * @param obj Text Է ü - * @param length byte - */ -function checkLengthLEObj(obj, length, fieldName) { - return checkLengthLE(obj.value, length); -} - - -/** - * Text Է byte length ۰ų - * ˻Ͽ ׷ٸ true, ׷ false ش. - * - * @param value ˻ . - * @param length byte . - * @param fieldName ׸ - */ -function validateLengthLE(value, length, fieldName) { - if ( fieldName == undefined ) { - fieldName = ""; - } - else { - fieldName += " "; - } - - var valid = checkLengthLE(value, length); - - if ( ! valid ) { - showMessage(fieldName + " " + length + " (, ) ۰ų ƾ մϴ."); - } - - return valid; -} - - - -/** - * Text Է byte length ۰ų - * ˻Ͽ ׷ٸ true, ׷ false ش. - * - * @param obj Text Է ü - * @param length byte - * @param fieldName ׸ - */ -function validateLengthLEObj(obj, length, fieldName) { - var valid = validateLengthLE(obj.value, length, fieldName); - - if ( ! valid ) { - obj.focus(); - } - - return valid; -} - - - -/* ʼ׸ θ Ͽ ׸ true, - * ޼ ְ false ش. - */ -function validateMandatory(value, fieldName) { - var isValid = ! isEmpty(value); - - if ( fieldName == undefined ) fieldName = "˻"; - - if ( ! isValid ) { - showMessage(fieldName + " ׸ ʼԷ Դϴ."); - } - - return isValid; -} - - -function validateMandatoryObj(obj, fieldName) { - var isValid = validateMandatory(obj.value, fieldName); - - if ( ! isValid ) obj.focus(); - - return isValid; -} diff --git a/zioinfo/js/valid.biz.js b/zioinfo/js/valid.biz.js deleted file mode 100644 index 60998c50..00000000 --- a/zioinfo/js/valid.biz.js +++ /dev/null @@ -1,571 +0,0 @@ -/*-------------------------------------------------------------------+ - * 1. ϸ: valid.biz.js - * 2. : ȿ Լ Ѵ. - * 3. : util.js, string.js - * 4. ۼ: - * 5. ۼ: 2006.10.11. - -------------------------------------------------------------------*/ - - -/** - * E ּ ´ ˻Ͽ true, - * Ŀ false ش. - */ -function checkEmail(email) { - if ( isEmpty(email) ) return true; - - var emailRegEx = /^[-\w]+@[-\w]+(\.[-\w]+){1,3}\s*$/g; - - return emailRegEx.test(email); -} - - -function checkEmailObj(emailObj) { - return checkEmail(emailObj.value); -} - - -function validateEmail(email, fieldName) { - if ( fieldName == undefined ) fieldName = "E"; - - var valid = checkEmail(email); - - if ( ! valid ) { - showMessage(fieldName + " ׸ E Ŀ ʽϴ."); - } - - return valid; -} - - -function validateEmailObj(emailObj) { - var valid = validateEmail(emailObj.value); - - if ( ! valid ) { - emailObj.focus(); - } - - return valid; -} - - - -/* ȭȣ ȣ */ -var tpLocalNoList = [ - "02" , - "031", "032", "033", - "041", "042", "043", - "051", "052", "053", "054", "055", - "061", "062", "063", "064" -]; - - -/** - * Text Է ùٸ ȭȣ(ڵ ȣ ƴ) ȮϿ - * ùٸ true, ׷ ޼ ѷְ false ش. - * ȭȣ Ҵ 뽬(-) Ѵ. - * - * @date 2004-02-02 - * @param obj ȭȣ Է ޴ Text Է - */ -function checkTelNoObj(obj) { - return checkTelNo(obj.value); -} - - -/** - * ־ ùٸ ȭȣ(ڵ ȣ ƴ) ȮϿ - * ùٸ 0, ׷ ش. - * ȭȣ Ҵ (-) Ѵ. - * - * ִ ǹ̴ . - *
      - *
    • -1 : ڿ 뽬(-) ̿
    • - *
    • -2 : ȭȣ Ŀ
    • - *
    • -4 : ȣ ʴ ȣ
    • - *
    • -8 : ȣ ڸ 3, 4ڸ ƴ
    • - *
    • -16 : ȣ ڸ 4ڸ ƴ
    • - *
    - * - * @date 2004-02-02 - * @param phoneNo ˻Ϸ ȭȣ - */ -function checkTelNo(phoneNo) { - // ̸ ˻ ʴ´. - if ( trim(phoneNo) == "" ) return 0; - - phoneNo = removeChar(phoneNo, '-'); - - if ( isNaN(phoneNo) ) return -1; - - - /* Ŀ ڰ ִ ˻Ѵ. */ - //var tpNoRegExp = /^(0[1-9]{1,2}-)?[\d]{3,4}-[\d]{4}$/; - var tpNoRegExp = /^(02|0[3-6][1-5])?[1-9][\d]{6,7}$/; - - if ( ! tpNoRegExp.test(phoneNo) ) return -2; - - /* Ҹ ڸ. */ - var localNo = ""; // ȣ - var areaNo = ""; // - var restNo = ""; // Ÿ ȣ - - var hasLocalNo = ( phoneNo.length >= 9 && phoneNo.length <= 11 ); - - /* ȣ ó. */ - if ( hasLocalNo ) { - /* ȣ . */ - - /* ȣ 02ΰ? */ - if ( phoneNo.indexOf("02") == 0 ) { - localNo = "02"; - areaNo = ( phoneNo.length == 9 - ? phoneNo.substr(2, 3) : phoneNo.substr(2, 4) ); - restNo = phoneNo.substr(2 + areaNo.length); - } - else { - localNo = phoneNo.substr(0, 3); - areaNo = ( phoneNo.length == 10 - ? phoneNo.substr(3, 3) : phoneNo.substr(3, 4) ); - restNo = phoneNo.substr(3 + areaNo.length); - } - } - else { - /* ȣ . */ - areaNo = ( phoneNo.length == 7 - ? phoneNo.substr(0, 3) : phoneNo.substr(0, 4) ); - restNo = phoneNo.substr(areaNo.length); - } - - /* ȣ óѴ. */ - if ( hasLocalNo ) { - /* ȿ ȣ ƴϸ ̴. */ - var isExistsLocalNo = existsInArray(tpLocalNoList, localNo); - - if ( ! isExistsLocalNo ) { - return -4; - } - } - - // ȣ 3ڸ 4ڸ ˻Ѵ. - if ( areaNo.length != 3 && areaNo.length != 4 ) { - return -8; - } - - // ȣ ˻Ѵ. - if ( restNo.length != 4 ) { - return -16; - } - - return 0; -} - - -/** - * ־ ùٸ ȭȣ(ڵ ȣ ƴ) ȮϿ - * ùٸ 0, ׷ ޼ ѷְ false ش. - * ȭȣ Ҵ 뽬(-) Ѵ. - * - * @date 2004-02-02 - * @param phoneNo ˻Ϸ ȭȣ - */ -function validateTelNoObj(obj, fieldName) { - var validResult = validateTelNo(obj.value, fieldName); - - if ( validResult < 0 ) { - obj.focus(); - } - - return validResult; -} - -/** - * ־ ùٸ ȭȣ(ڵ ȣ ƴ) ȮϿ - * ùٸ 0, ׷ ޼ ѷְ false ش. - * ȭȣ Ҵ 뽬(-) Ѵ. - * - * @date 2004-02-02 - * @param phoneNo ˻Ϸ ȭȣ - */ -function validateTelNo(phoneNo, fieldName) { - var validResult = checkTelNo(phoneNo); - - /* fieldName ǵǾ ʴٸ "ȭȣ" Ѵ. */ - if ( fieldName == undefined ) fieldName = "ȭȣ"; - - var msg = ""; - - switch ( validResult ) { - case -1 : - msg = fieldName + "() ڸ ̿ؼ Էؾ մϴ."; - break; - - case -2 : - msg = fieldName + " Ŀ ʽϴ.\n\n" - + "[ȣ][3,4ڸ][ȣ4ڸ]\n" - + "Ȥ [3,4ڸ][ȣ4ڸ]"; - break; - - case -4 : - msg = "ȣ ʴ ȣԴϴ."; - break; - - case -8 : - msg = "ȣ 3ڸ 4ڸ̾ մϴ."; - break; - - case -16 : - msg = " ȣ 4ڸ Էؾ մϴ."; - break; - } - - - if ( validResult < 0 ) { - alert(msg); - } - - return validResult; -} - - -/** - * ȭ(Ȥ ѽ)ȣ ȮϿ ȿ ̸ ȭѴ. - */ -function formatTelNoObjIfValid(obj, fieldName) { - if ( validateTelNo(obj.value, fieldName) == 0 ) { - /* ȿ ̸ ȭѴ. */ - formatTelNoObj(obj); - } - else { - /* ȿ ̸ д. */ - obj.focus(); - } -} - - - - - - -/* ڵ ȣ */ -var hpLocalNoList = [ - "010", "011", "016", "017", "018", "019" -]; - -/** - * Text Է ùٸ ڵ(ڵ ȣ ƴ) ȮϿ - * ùٸ true, ׷ ޼ ѷְ false ش. - * ڵ ȣ Ҵ 뽬(-) Ѵ. - * - * @date 2004-02-02 - * @param obj ڵ ȣ Է ޴ Text Է - */ -function checkHpNoObj(obj) { - return checkHpNo(obj.value); -} - - -/** - * ־ ùٸ ڵ ȣ(Ϲ ȭȣ ƴ) ȮϿ - * ùٸ true, ׷ ޼ ѷְ false ش. - * ڵ ȣ Ҵ 뽬(-) Ѵ. - * - * @date 2004-02-02 - * @param phoneNo ˻Ϸ ڵ ȣ - */ -function checkHpNo(phoneNo) { - // ̸ ˻ ʴ´. - if ( trim(phoneNo) == "" ) return 0; - - phoneNo = removeChar(phoneNo, '-'); - - if ( isNaN(phoneNo) ) { - return -1; - } - - /* Ŀ ڰ ִ ˻Ѵ. */ - //var hpNoRegExp = /^01[016789]-[\d]{3,4}-[\d]{4}$/; - var hpNoRegExp = /^01[016789][\d]{7,8}$/; - - if ( ! hpNoRegExp.test(phoneNo) ) return -2; - - // Ҹ ڸ. - var localNo = phoneNo.substr(0, 3);; // ȣ - var areaNo = ( phoneNo.length == 10 - ? phoneNo.substr(3, 3) : phoneNo.substr(3, 4) ); // - var restNo = phoneNo.substr(3 + areaNo.length); // Ÿ ȣ - - // ȿ ȣ ƴϸ ̴. - var isExistsLocalNo = existsInArray(hpLocalNoList, localNo); - - if ( ! isExistsLocalNo ) { - return -4; - } - - // ȣ 3ڸ 4ڸ ˻Ѵ. - if ( areaNo.length != 3 && areaNo.length != 4 ) { - return -8; - } - - // ȣ ˻Ѵ. - if ( restNo.length != 4 ) { - return -16; - } - - return 0; -} - - -/** - * ־ ùٸ ȭȣ(ڵ ȣ ƴ) ȮϿ - * ùٸ 0, ׷ ޼ ѷְ false ش. - * ȭȣ Ҵ 뽬(-) Ѵ. - * - * @date 2004-02-02 - * @param phoneNo ˻Ϸ ȭȣ - */ -function validateHpNoObj(obj, fieldName) { - var validResult = validateHpNo(obj.value, fieldName); - - if ( validResult < 0 ) { - obj.focus(); - } - - return validResult; -} - -/** - * ־ ùٸ ȭȣ(ڵ ȣ ƴ) ȮϿ - * ùٸ 0, ׷ ޼ ѷְ false ش. - * ȭȣ Ҵ 뽬(-) Ѵ. - * - * @date 2004-02-02 - * @param phoneNo ˻Ϸ ȭȣ - */ -function validateHpNo(phoneNo, fieldName) { - var validResult = checkHpNo(phoneNo); - - /* fieldName ǵǾ ʴٸ "ڵ ȣ" Ѵ. */ - if ( fieldName == undefined ) fieldName = "ڵ ȣ"; - - var msg = ""; - - switch ( validResult ) { - case -1 : - msg = fieldName + "() ڸ ̿ؼ Էؾ մϴ."; - break; - - case -2 : - msg = fieldName + " ([ȣ 3ڸ][3,4ڸ][ȣ4ڸ]) " - + " ʽϴ."; - break; - - case -4 : - msg = "ȣ ʴ ȣԴϴ."; - break; - - case -8 : - msg = "ȣ 3ڸ 4ڸ̾ մϴ."; - break; - - case -16 : - msg = " ȣ 4ڸ Էؾ մϴ."; - break; - } - - - if ( validResult < 0 ) { - alert(msg); - } - - return validResult; -} - - -/** - * ڵ ȣ ȮϿ ȿ ̸ ȭѴ. - */ -function formatHpNoObjIfValid(obj, fieldName) { - if ( validateHpNo(obj.value, fieldName) == 0 ) { - /* ȿ ̸ ȭѴ. */ - formatHpNoObj(obj); - } - else { - /* ȿ ̸ д. */ - obj.focus(); - } -} - - - -function validateContactNoObj(obj, fieldName) { - var result = validateContactNo(obj.value, fieldName); - - if ( result < 0 ) obj.focus(); - - return result; -} - - -/** - * ó ȣ ȿ ˻Ѵ. - * ó ȭȣ, ѽȣ, ڵ ȣ ĪϿ Ѵ. - * - * @param contactNo ȿ ó ȣ. - * @param fieldName ȿ ׸. "ó" Ѵ. - */ -function validateContactNo(contactNo, fieldName) { - if ( contactNo == "" ) return 0; - - /* fieldName ǵ ʾҴٸ "ó" Ѵ. */ - if ( fieldName == undefined ) fieldName = "ó"; - - /* ȭ/ѽ ȣ, ڵ ȣ ǴѴ. - -1 : ˼ . - -2 : ȣ . - 1 : ȭ/ѽȣ. - 2 : ڵ ȣ. */ - var whichTypeNo = findWhichTypeNo(contactNo); - - var result = -1; - if ( whichTypeNo == -1 || whichTypeNo == -2 || whichTypeNo == 1 ) { - /* ˼̰ų ȣ Ϲȭ ȣ̸ ȭȣ ˻. */ - result = validateTelNo(contactNo, fieldName); - } - else if ( whichTypeNo == 2 ) { - /* ڵ ȣ̸ ڵ ȣ ˻ */ - result = validateHpNo(contactNo, fieldName); - } - - return result; -} - - -/** - * ó ȣ ü  ȣ - * ǴϿ ش. - * - * -1 : ˼ . - * -2 : ȣ . - * 1 : ȭ/ѽȣ. - * 2 : ڵ ȣ. - */ -function findWhichTypeNo(contactNo) { - var whichTypeNo = -1; - - /* ´ ˻Ͽ ˼ . */ - var contactNoRegExp = /^(0[1-9]{1,2}-)?[\d]{3,4}-[\d]{4}$/; - - if ( ! contactNoRegExp.test(contactNo) ) return -1; - - var tempArr = contactNo.split("-"); - - /* ̰ 2̸ ȣ . */ - if ( tempArr.length == 2 ) return -2; - - /* ȭȣ ֳ? */ - if ( existsInArray(tpLocalNoList, contactNo) ) { - whichTypeNo = 1; - } - /* ڵȣ ֳ? */ - else if ( existsInArray(hpLocalNoList, contactNo) ) { - whichTypeNo = 2; - } - - return whichTypeNo; -} - - -/** - * Text Է ȿ ֹεϹȣ - * Ͽ ȿϸ true ְ ȿ - * ޼ false ش. - * Ķ obj2 Ѿ obj1 ֹεϹȣ - * ü ִ ϸ, obj2 Ѿ - * 6ڸ obj1 7ڸ obj2 ִ - * Ѵ. - * - * @ۼ 2004-02-05 - * @param obj1 ü ֹεϹȣ Ȥ ֹεϹȣ - * 6ڸ ִ Text Է ü - * @param obj2 ֹεϹȣ 7ڸ ִ Text Է ü - */ -function checkSSNObj(obj1, obj2) { - var valid = true; - - if ( obj2 == undefined ) { - valid = checkSSN(obj1.value); - } - else { - valid = checkSSN(obj1.value, obj2.value); - } - - return valid; -} - -/** - * ֹεϹȣ ȿ θ Ͽ ȿϸ true - * ȿ ޼ ְ false ش. - * Ķ ǹ̰ ޶. - * ssn2 ǵ ʾ, 뽬(-) ο - * ssn1 ü ֹεϹȣ ִ - * ϰ, ssn2 ǵǾ ssn1 6ڸ - * ssn2 7ڸ Ѿ Ѵ. - * - * @ۼ 2004-02-05 - * @param ssn1 ü ֹεϹȣ Ȥ ֹεϹȣ 6ڸ - * @param ssn2 ֹεϹȣ 7ڸ - */ -function checkSSN(ssn1, ssn2) { - var ssn = ""; - if ( ssn2 == undefined ) { - ssn = ssn1; - } - else { - ssn = ssn1 + "-" + ssn2; - } - - // ֹιȣ ¿ 7° ڸ() ȿ ˻ - var ssnRegEx = /^\d{6}-[1234]\d{6}$/; - if ( ! ssnRegEx.test(ssn)) { - alert("߸ ֹεϹȣԴϴ."); - return false; - } - - // ¥ ȿ ˻ - var birthYear = (ssn.charAt(7) <= "2") ? "19" : "20"; - birthYear += ssn.substr(0, 2); - var birthMonth = ssn.substr(2, 2) - 1; - var birthDate = ssn.substr(4, 2); - var birth = new Date(birthYear, birthMonth, birthDate); - - if ( birth.getYear() % 100 != ssn.substr(0, 2) - || birth.getMonth() != birthMonth - || birth.getDate() != birthDate ) { - alert("߸ ֹεϹȣԴϴ."); - return false; - } - - // Check Sum ڵ ȿ ˻ - var buf = new Array(13); - for (var i = 0; i < 6; i++) { - buf[i] = parseInt(ssn.charAt(i)); - } - - for (var i = 6; i < 13; i++) { - buf[i] = parseInt(ssn.charAt(i + 1)); - } - - var multipliers = [2,3,4,5,6,7,8,9,2,3,4,5]; - var sum = 0; - for (var i = 0; i < 12; i++) { - sum += (buf[i] *= multipliers[i]); - } - - if ( (11 - (sum % 11) ) % 10 != buf[12] ) { - alert("߸ ֹεϹȣԴϴ."); - return false; - } - - return true; -} diff --git a/zioinfo/js/valid.date.js b/zioinfo/js/valid.date.js deleted file mode 100644 index f6d7e49c..00000000 --- a/zioinfo/js/valid.date.js +++ /dev/null @@ -1,404 +0,0 @@ -/*-------------------------------------------------------------------+ - * 1. ϸ: valid.date.js - * 2. : , ð ȿ Լ Ѵ. - * 3. : string.js, date.js - * 4. ۼ: - * 5. ۼ: 2006.10.11. - -------------------------------------------------------------------*/ - - -/** - * ־ ڿ ȿ ¥ ȮϿ - * ȿϸ true ְ, ȿ ޽ - * false ش. - */ -function checkYearMonth(dateStr) { - // ƹ ʴ´. - if ( trim(dateStr) == "" ) return true; - - dateStr = removeChar(dateStr, DATE_DELIMETER); - - // ڸ 8 ˻Ѵ. - if (dateStr.length != 6) { - alert("YYYYMM Է ֽʽÿ."); - return false; - } - - // ڷθ Ǿ ȮѴ. - if ( isNaN(dateStr) ) { - alert("¥ ڰ Էµ ϴ."); - return false; - } - - // 4ڸ, 2ڸ ڸ. - var yearStr = dateStr.substring(0, 4); - var monthStr = dateStr.substring(4); - - - // 1900 ~ 2050 Ѵ. - if ( yearStr < 1900 || yearStr > 2050 ) { - alert(" 1900 ~ 2050 Էؾ մϴ."); - return false; - } - - // 1~12 Ѵ. - if ( monthStr < 1 || monthStr > 12 ) { - alert(" 01 12 Դϴ."); - return false; - } - - return true; -} - - -/** - * Text Է ڿ ȿ ¥ ȮϿ - * ȿϸ ̿ (/) ڿ ٲ true ְ, - * ȿ ޽ false ش. - */ -function checkYearMonthObj(obj) { - var dateStr = removeChar(obj.value, DATE_DELIMETER); - - var valid = true; - - // ڿ̸ ʴ´. - if ( trim(dateStr) != "" ) { - valid = checkYearMonth(dateStr); - if ( valid ) { - var yearStr = dateStr.substring(0, 4); - var monthStr = dateStr.substring(4); - - obj.value = yearStr + DATE_DELIMETER + monthStr; - } - else { - obj.focus(); - } - } - - return valid; -} - - -/** - * Text Է Էµ ¥ ȿ üũϿ - * ȿϸ YYYY/MM/DD · ȯϿ return - * ϰ, ȿ ޼ - * ( Էʵ onblur event Ұ) - * - * @param obj Text Է ü - */ -function checkDateObj(obj) { - return checkDate(obj.value); -} - - -/** - * ־ ڿ ȿ ¥ Ͽ - * ȿϸ true ְ, ȿ - * ޼ ְ false ش. - * ( Էʵ onblur event Ұ) - * - * @param dateStr ¥ ڿ - */ -function checkDate(dateStr, fieldName) { - // ƹ ʴ´. - if ( trim(dateStr) == "" ) return true; - - /* ׸ "" . */ - if ( isEmpty(fieldName) ) fieldName = ""; - - dateStr = removeChar(dateStr, DATE_DELIMETER); - - // ڷθ Ǿ ȮѴ. - if ( isNaN(dateStr) ) { - alert(fieldName + " ڰ Էµ ϴ."); - return false; - } - - // ڸ ڸ 8 ˻Ѵ. - if (dateStr.length != 8) { - alert(fieldName + " YYYYMMDD Է ֽʽÿ."); - return false; - } - - // 4ڸ, 2ڸ, 2ڸ ڸ. - var yearStr = dateStr.substring(0, 4); - var monthStr = dateStr.substring(4, 6); - var dayStr = dateStr.substring(6); - - - // 1900 ~ 2050 Ѵ. - if ( yearStr < 1900 || yearStr > 2050 ) { - alert(fieldName + " 1900 ~ 2050 Էؾ ֽʽÿ."); - return false; - } - - // 1~12 Ѵ. - if ( monthStr < 1 || monthStr > 12 ) { - alert(fieldName + " 01 ~ 12 Է ֽʽÿ."); - return false; - } - - // ڰ ش ȿ ˰Ѵ. - // Date ü ¥ ȿ Ѿ - // ϴ ̿ߴ. - var date = new Date(yearStr, monthStr - 1, dayStr); - - if (yearStr != date.getFullYear() || monthStr != (date.getMonth() + 1)) { - alert(monthStr + " " + dayStr + " ϴ."); - return false; - } - - return true; -} - - -/** - * ־ ڰ ȿ ˻Ͽ ȿϸ true, - * ޼ ְ false ش. - * - * @param dateStr ڿ. - * @param filedName ȿ Ϸ ׸. - * @return ȿ. - */ -function validateDate(dateStr, fieldName) { - return checkDate(dateStr); -} - - -/** - * ־ ü ȿ ˻Ͽ, - * ȿϸ true, ׷ ޼ ְ - * false ش. - * - * @param obj ڿ ü. - * @param filedName ȿ Ϸ ׸. - * @return ȿ. - */ -function validateDateObj(obj, fieldName) { - var isValid = validateDate(obj.value, fieldName); - - if ( ! isValid ) obj.focus(); - - return isValid; -} - - - -/** - * ־ ü ȿ ̸ - * ü ȭѴ. - */ -function formatDateStrObjIfValid(obj, fieldName) { - var dateStr = removeChar(obj.value, DATE_DELIMETER); - - var valid = true; - - valid = checkDate(dateStr, fieldName); - if ( valid ) { - formatDateStrObj(obj); - } - else { - obj.focus(); - } - - return valid; -} - -/** - * ΰ (yyyy/MM) ڿ Ͽ - * 0, 1, - * -1 ش. - * - * @param yearMonth1 - * @param yearMonth2 - */ -function compareYearMonth(yearMonth1, yearMonth2) { - var result = 0; - - yearMonth1 = removeChar(yearMonth1, DATE_DELIMETER); - yearMonth2 = removeChar(yearMonth2, DATE_DELIMETER); - - if ( yearMonth1 < yearMonth2 ) { - result = 1; - } - else if ( yearMonth1 > yearMonth2 ) { - result = -1; - } - - return result; -} - - -/** - * ΰ Text Է (yyyy/MM) ڿ Ͽ - * 0, 1, - * -1 ش. - * - * @param obj1 Text Է - * @param obj2 Text Է - */ -function compareYearMonthObj(obj1, obj2) { - return compareYearMonth(obj1.value, obj2.value); -} - - -/** - * ΰ ¥ ڿ Ͽ ù° Ķ(date1) - * ¥ ι° Ķ(date2) ¥ Ͽ - * ̸ 1, 0, -1 ش. - * date1 ְ, date2 -1, - * date1 , date2 1 ̴. - * - * @param date1 yyyyMMdd ¥ ڿ. - * @param date2 yyyyMMdd ¥ ڿ. - */ -function compareDate(date1, date2) { - date1 = removeChar(date1, DATE_DELIMETER); - date2 = removeChar(date2, DATE_DELIMETER); - - var result = 0; - - if ( date1 < date2 ) { - result = 1; - } - else if ( date1 > date2 ) { - result = -1; - } - - return result; -} - - -/** - * ΰ ¥ ڿ Ͽ ù° Ķ(obj1) - * ¥ ι° Ķ(obj2) ¥ Ͽ - * ̸ 1, 0, -1 ش. - * obj1 ְ, obj2 -1, - * obj1 , obj2 1 ̴. - * - * @param obj1 Text Է ü - * @param obj2 Text Է ü - */ -function compareDateObj(obj1, obj2) { - return compareDate(obj1.value, obj2.value); -} - - -/** - * Ⱓ Ÿ ü ڰ ȿ Ͽ - * ȿϸ true ְ, ȿ ޼ - * false ش. - * - * @param rearDateStrObj ڿ ü. - * @param foreDateStrObj ڿ ü. - * @param fieldName ׸. - * @param allowSameDate 뿩. (true). - * @return ȿϸ true, ׷ false. - */ -function validateTermObj(rearDateStrObj, foreDateStrObj, fieldName, allowSameDate) { - if ( fieldName == undefined ) fieldName = "Ⱓ"; - - if ( allowSameDate == undefined ) allowSameDate = true; - - /* ȿ ˻Ѵ. */ - if ( ! validateDateObj(rearDateStrObj, fieldName + " ") ) return false; - - if ( ! validateDateObj(foreDateStrObj, fieldName + " ") ) return false; - - /* ڶ true ְ . */ - if ( isEmptyObj(rearDateStrObj) || isEmptyObj(foreDateStrObj) ) return true; - - /* ڿ ڸ Ѵ. */ - var result = compareDateObj(rearDateStrObj, foreDateStrObj); - - /* ڸ ϸ 0̻ 1̻ ̾ Ѵ. */ - if ( allowSameDate && result < 0 ) { - showMessage(fieldName + " ڴ ڿ ų ̾մϴ."); - rearDateStrObj.focus(); - return false; - } - else if ( ! allowSameDate && result < 1 ) { - showMessage(fieldName + " ڴ ں ̾մϴ."); - rearDateStrObj.focus(); - return false; - } - - /* ȿϴ. */ - return true; -} - - -/** - * Text Է Էµ ð(+) ȿ - * üũϿ ȿϸ hh24:mi · ȯϿ - * returnϰ, ȿ ޼ - * (ð Էʵ onblur event ) - */ -function checkTimeObj(obj) { - var timeStr = obj.value; - - var valid = true; - - // ڿ̸ ʴ´. - if ( trim(timeStr) != "" ) { - valid = checkTime(timeStr); - - if ( valid ) { - var hourStr = timeStr.substring(0, 2); - var minuteStr = timeStr.substring(2); - - obj.value = hourStr + ":" + minuteStr; - } - else { - obj.focus(); - } - } - - return valid; -} - - -/** - * Text Է Էµ ð(+) ȿ - * üũϿ ȿϸ hh24:mi · ȯϿ - * returnϰ, ȿ ޼ - * (ð Էʵ onblur event ) - * - * @param timeStr HHmm ð ڿ - */ -function checkTime(timeStr) { - if ( trim(timeStr) == "" ) return true; - - timeStr = removeChar(timeStr, ':'); - - // ̰ 4 Ѵ. - if ( timeStr.length != 4 ) { - alert(" ʽϴ. \"HHmm\" ڷ Է ֽʽÿ."); - return false; - } - - // ڷθ Ǿ Ѵ. - if ( isNaN(timeStr) ) { - alert("ڿ Է ϴ. \"HHmm\" ڷ Է ֽʽÿ."); - return false; - } - - // ð 2ڸ, 2ڸ иѴ. - var hourStr = timeStr.substring(0, 2); - var minuteStr = timeStr.substring(2); - - if ( hourStr < 0 || hourStr > 23 ) { - alert("ð 00 23 ̾ մϴ."); - return false; - } - - - if ( minuteStr < 0 || minuteStr > 59 ) { - alert(" 00 59 ̾ մϴ."); - return false; - } - - return true; -} - diff --git a/zioinfo/js/valid.form.js b/zioinfo/js/valid.form.js deleted file mode 100644 index 02d9e4b8..00000000 --- a/zioinfo/js/valid.form.js +++ /dev/null @@ -1,148 +0,0 @@ -/*------------------------------------------------------------------------------ - * 1. ϸ: valid.form.js - * 2. : Form ó õ Լ Ѵ. - * 3. : valid.base.js, valid.number.js, - * valid.date.js, valid.biz.js - * 4. ۼ: - * 5. ۼ: 2006.10.11. - -----------------------------------------------------------------------------*/ - -/** - * Input ü Select ü value ׸ ִ - * ˻Ͽ true ְ, ޼ ְ - * Focus inputObj false ش. - * Input ü ׳ Ѵ. - */ -function validateExistsInSelect(inputObj, selectObj) { - inputObj = ref(inputObj ); // ID 츦 ؼ - selectObj = ref(selectObj); // ID 츦 ؼ - - if ( isEmptyObj(inputObj) ) { - if ( event ) event.returnValue = true; - return true; - } - - var valid = true; - - /* Select ׸ Input ׸ ִ ˻Ѵ. */ - if ( indexOfSelect(selectObj, inputObj.value) == -1 ) { - showMessage(inputObj.value + " ߿ Դϴ. Ȯ ֽʽÿ."); - inputObj.focus(); - inputObj.select(); - - valid = false; - } - - if ( event ) event.returnValue = valid; - return valid; -} - - -/** - * ־ Form ҿ ȿ Ѵ. - */ -function validateForm(form) { - var elemArr = form.elements; - - /* ŭ 鼭 ҵ Ѵ. */ - for ( var i = 0; i < elemArr.length; i++ ) { - var elem = elemArr[i]; - - /* Ұ disabled, readonly, type hidden ȿ Ѵ. */ - if ( elem.disabled || elem.readOnly || elem.type == "hidden" ) continue; - - /* ´. */ - var fieldName = elem.getAttribute("valid.label"); // ׸. name . - if ( isEmpty(fieldName) ) fieldName = elem.getAttribute("name"); - - - /* ʼ ׸̸ Ѵ. */ - var required = isEmpty(elem.getAttribute("valid.required")) ? - false : - elem.getAttribute("valid.required").toUpperCase() == "TRUE"; // ʼ׸ - if ( required && ! validateMandatoryObj(elem, fieldName) ) return false; - - - /* ڷ ڷ ȿ Ѵ. */ - var dataType = elem.getAttribute("valid.type"); // ڷ. null. - if ( ! isEmpty(dataType) && ! validateDataType(elem, fieldName, dataType) ) return false; - - - /* ̿ ȿ Ѵ. ϴ ־ byte ˻. */ - var validLength = elem.getAttribute("valid.length"); - if ( ! isEmpty(validLength) && ! validateLengthLEObj(elem, validLength, fieldName) ) return false; - - - /* ġ ڸ ȿ Ѵ. */ - var figure = elem.getAttribute("valid.figure"); - if ( ! isEmpty(figure) ) { - var figureArr = figure.split(","); - - if ( ! validateNoFigureLEObj( - elem, - fieldName, - parseInt(figureArr[0], 10), - parseInt(figureArr[1], 10) - ) ) return false; - } - - - /* ּҰ ȿ Ѵ. */ - var minValue = elem.getAttribute("valid.min"); - if ( ! isEmpty(minValue) && ! validateNoGEObj(elem, fieldName, minValue) ) return false; - - - /* ִ밪 ȿ Ѵ. */ - var maxValue = elem.getAttribute("valid.max"); - if ( ! isEmpty(maxValue) && ! validateNoLEObj(elem, fieldName, maxValue) ) return false; - - - /* Ÿ ȿ Լ ȣѴ. */ - var validFunc = elem.getAttribute("valid.func"); - if ( ! isEmpty(validFunc) && ! eval(validFunc).call(this, elem, fieldName) ) return false; - } - - /* ̻ . */ - return true; -} - - -/* ڷ ȿ Ѵ. */ -function validateDataType(elem, fieldName, dataType) { - dataType = dataType.toLowerCase(); - - var valid = true; - - switch ( dataType ) { - case "date" : // - valid = validateDateObj(elem, fieldName); break; - - case "term" : // Ⱓ - var rearDateName = elem.getAttribute("valid.rearDate"); // ׸ Ѵ. - var allowSameDate = isEmpty(elem.getAttribute("valid.allowSameDate")) - || elem.getAttribute("valid.allowSameDate").toUpperCase == "TRUE"; - - if ( isEmpty(rearDateName) ) { - showMessage("Ⱓ(term) ϱ ؼ Է ׸(valid.rearDate) ǵǾ մϴ."); - valid = false; - } - else { - var rearDateObj = eval("this.form." + rearDateName); - valid = validateTermObj(rearDateObj, elem, fieldName, allowSameDate); - } - break; - - case "int" : break; //validateNoObj, - case "float" : break; //validateNoObj, - case "telno" : // ȭȣ, ѽȣ - valid = validateTelNoObj(elem, fieldName); break; - - case "hpno" : // ڵȣ - valid = validateHpNoObj(elem, fieldName); break; - - case "email" : // Email - valid = validateEmailObj(elem, fieldName); break; - } - - return valid; -} \ No newline at end of file diff --git a/zioinfo/js/valid.number.js b/zioinfo/js/valid.number.js deleted file mode 100644 index 0a74518b..00000000 --- a/zioinfo/js/valid.number.js +++ /dev/null @@ -1,485 +0,0 @@ -/*-------------------------------------------------------------------+ - * 1. ϸ: valid.number.js - * 2. : ڿ ȿ Լ Ѵ. - * 3. : ui.js, number.js - * 4. ۼ: - * 5. ۼ: 2006.10.11. - -------------------------------------------------------------------*/ - - -/** - * Text Է ȿ ڰ Ͽ - * ȿ ̸ true, ׷ false ش. - * ڿ̸ false ִ Ϳ Ѵ. - * - * @param obj Text Է ü - */ -function checkNumberObj(obj) { - return checkNumber(obj.value); -} - - -/** - * ڿ 3ڸ ĸ  - * ġ Ѵ. ̸ ڿθ Ͽ - * ȿ ̸ true, ׷ false - * ش. ڿ̸ false ֹǷ - * ƴ Ͽ ϴ Ϳ Ѵ. - * - * @param str ˻ ڿ - */ -function checkNumber(str) { - return ! isNaN( removeChar(str, ',') ); -} - - -/** - * ڸ Ҽ ڸ ˻Ͽ ڸ - * ־ ڸ ˻Ͽ, ڸ ̸ 0, - * ڸ ̻ 1, Ҽ ڸ ̻ 2 - * ̻ 3 ش. Ҽ Ѿ - * (undefined̸) ȿ Ѵ. - * - * @date 2004-01-15 - * @param no ˻ - * @param intFigure ȿ ڸ - * @param floatFigure Ҽ ȿ ڸ - */ -function checkNoFigureLE(no, intFigure, floatFigure) { - // ĸ ϰ ο Ҽη . - var no = removeChar(no, ','); - - var dotIndex = no.indexOf('.'); - - var intPart = ""; // - var floatPart = ""; // Ҽ Ҽ - - if ( dotIndex == -1 ) { - intPart = no; - } - else { - intPart = no.substring(0, dotIndex); - floatPart = no.substring(dotIndex); - } - - // ȿ - var intPartValid = intPart.length <= intFigure; - - // Ҽ ȿ - var floatPartValid = floatFigure == undefined || trim(floatFigure) == "" || ( floatPart.length - 1 <= floatFigure); - - //alert(no + ", " + intPart + ", " + floatPart + ", " + intPartValid + ", " + floatPartValid); - - return ( intPartValid ? 0 : 1 ) + ( floatPartValid ? 0 : 2 ); -} - - -/** - * Text Է ڸ Ҽ ڸ ˻Ͽ ڸ - * ־ ڸ ˻Ͽ, ڸ ̸ 0, - * ڸ ̻ 1, Ҽ ڸ ̻ 2 - * ̻ 3 ش. Ҽ Ѿ - * (undefined̸) ȿ Ѵ. - * - * @date 2004-01-15 - * @param obj Text Է ü - * @param intFigure ȿ ڸ - * @param floatFigure Ҽ ȿ ڸ - */ -function checkNoFigureLEObj(obj, intFigure, floatFigure) { - return checkNoFigureLE(obj.value, intFigure, floatFigure); -} - - - -/** - * ־ ġ ڸ Ҽ ڸ ־ - * ۰ų ˻Ͽ ׷ٸ true, ׷ ޼ - * ְ false ش. - * - * @param no Ȯ . - * @param fieldName ׸. ޼ ѷ Ѵ. - * @param intFigure ڸ - * @param floatFigure Ҽ ڸ. ˻ ʴ´. - */ -function validateNoFigureLE(no, fieldName, intFigure, floatFigure) { - var checkRes = checkNoFigureLE(no, intFigure, floatFigure); - - if ( checkRes > 0 ) { - var msg = fieldName + " "; - - if ( floatFigure == undefined || floatFigure <= 0 ) { - /* Ҽΰ ų Ȥ 0 . */ - msg += intFigure + " ڸ ̾ մϴ." - } - else { - /* Ҽε ִ . */ - msg += " ΰ " + intFigure + "ڸ , Ҽΰ " + floatFigure + "ڸ ̾ մϴ."; - } - - showMessage(msg); - } - - return checkRes == 0; -} - - -/** - * ־ ü ġ ڸ Ҽ ڸ ־ - * ۰ų ˻Ͽ ׷ٸ true, ׷ ޼ - * ְ false ش. - * - * @param noObj Ȯ ִ ü. - * @param fieldName ׸. ޼ ѷ Ѵ. - * @param intFigure ڸ - * @param floatFigure Ҽ ڸ. ˻ ʴ´. - */ -function validateNoFigureLEObj(noObj, fieldName, intFigure, floatFigure) { - var valid = validateNoFigureLE(noObj.value, fieldName, intFigure, floatFigure); - - if ( ! valid ) { - noObj.focus(); - } - - return valid; -} - - - -/** - * ־ Ͽ - * ׷ٸ true ׷ false ش. - * - * @param no ġ. ڸ  ġ ڿ ִ. - * @param comp . no Ͽ ȮѴ. - */ -function checkNoEQ(no, comp) { - /* true ش. */ - if ( isEmpty(no) ) return true; - - if ( ! checkParamForNo(no, comp) ) return false; - - /* ڸ ϰ ġ ȯѴ. */ - var noValue = parseInt(removeChar(no , ","), 10); - var compValue = parseInt(removeChar(comp, ","), 10); - - return noValue == compValue -} - - -function checkNoEQObj(obj, comp) { - return checkNoEQ(obj.value, comp); -} - - -function checkParamForNo(no, comp) { - /* ޼ ش. */ - if ( isEmpty(comp) ) { - showMessage("Ķ comp Ѿ ʾҽϴ."); - return false; - } - - /* 񱳴 ġ ȮѴ. */ - if ( ! checkNumber(no) ) { - showMessage("Ķ no ġ ƴմϴ: " + no); - return false; - } - - /* ġ ȮѴ. */ - if ( ! checkNumber(comp) ) { - showMessage("Ķ comp ġ ƴմϴ: " + comp); - return false; - } - - - return true; -} - - -/** - * no comp ۰ų ˻Ͽ - * ׷ٸ true ׷ ޼ ְ false ش. - * - * @param fieldName ˻ ׸ . - * @param no ġ. ڸ  ġ ڿ ִ. - * @param comp . no Ͽ ȮѴ. - */ -function validateNoEQ(no, fieldName, comp) { - var valid = checkNoEQ(no, comp); - - if ( ! valid ) { - showMessage(fieldName + " ׸ " + comp + " ƾ մϴ."); - } - - return valid; -} - - -/** - * noObj comp ۰ų ˻Ͽ - * ׷ٸ true ׷ ޼ ְ Ŀ ش ׸ - * ġϰ false ش. - * - * @param fieldName ˻ ׸ . - * @param noObj ġ ִ ü. - * @param comp . no Ͽ ȮѴ. - */ -function validateNoEQObj(noObj, fieldName, comp) { - var valid = validateNoEQ(noObj.value, fieldName, comp); - - if ( ! valid ) noObj.focus(); - - return valid; -} - - -/** - * ־ Ͽ - * ׷ٸ true ׷ false ش. - * - * @param no ġ. ڸ  ġ ڿ ִ. - * @param comp . no Ͽ ȮѴ. - */ -function checkNoLT(no, comp) { - /* true ش. */ - if ( isEmpty(no) ) return true; - - if ( ! checkParamForNo(no, comp) ) return false; - - /* ڸ ϰ ġ ȯѴ. */ - var noValue = parseInt(removeChar(no , ","), 10); - var compValue = parseInt(removeChar(comp, ","), 10); - - return noValue < compValue -} - - -function checkNoLTObj(obj, comp) { - return checkNoLT(obj.value, comp); -} - - -/** - * no comp ۰ų ˻Ͽ - * ׷ٸ true ׷ ޼ ְ false ش. - * - * @param fieldName ˻ ׸ . - * @param no ġ. ڸ  ġ ڿ ִ. - * @param comp . no Ͽ ȮѴ. - */ -function validateNoLT(no, fieldName, comp) { - var valid = checkNoLT(no, comp); - - if ( ! valid ) { - showMessage(fieldName + " ׸ " + comp + " ۾ƾ մϴ."); - } - - return valid; -} - - -/** - * noObj comp ۰ų ˻Ͽ - * ׷ٸ true ׷ ޼ ְ Ŀ ش ׸ - * ġϰ false ش. - * - * @param fieldName ˻ ׸ . - * @param noObj ġ ִ ü. - * @param comp . no Ͽ ȮѴ. - */ -function validateNoLTObj(noObj, fieldName, comp) { - var valid = validateNoLT(noObj.value, fieldName, comp); - - if ( ! valid ) noObj.focus(); - - return valid; -} - - -/** - * ־ ۰ų Ͽ - * ׷ٸ true ׷ false ش. - * - * @param no ġ. ڸ  ġ ڿ ִ. - * @param comp . no Ͽ ȮѴ. - */ -function checkNoLE(no, comp) { - /* true ش. */ - if ( isEmpty(no) ) return true; - - if ( ! checkParamForNo(no, comp) ) return false; - - /* ڸ ϰ ġ ȯѴ. */ - var noValue = parseInt(removeChar(no , ","), 10); - var compValue = parseInt(removeChar(comp, ","), 10); - - return noValue <= compValue -} - - -function checkNoLEObj(obj, comp) { - return checkNoLE(obj.value, comp); -} - - -/** - * no comp ۰ų ˻Ͽ - * ׷ٸ true ׷ ޼ ְ false ش. - * - * @param fieldName ˻ ׸ . - * @param no ġ. ڸ  ġ ڿ ִ. - * @param comp . no Ͽ ȮѴ. - */ -function validateNoLE(no, fieldName, comp) { - var valid = checkNoLE(no, comp); - - if ( ! valid ) { - showMessage(fieldName + " ׸ " + comp + " ۰ų ƾ մϴ."); - } - - return valid; -} - - -/** - * noObj comp ۰ų ˻Ͽ - * ׷ٸ true ׷ ޼ ְ Ŀ ش ׸ - * ġϰ false ش. - * - * @param fieldName ˻ ׸ . - * @param noObj ġ ִ ü. - * @param comp . no Ͽ ȮѴ. - */ -function validateNoLEObj(noObj, fieldName, comp) { - var valid = validateNoLE(noObj.value, fieldName, comp); - - if ( ! valid ) noObj.focus(); - - return valid; -} - - -/** - * ־ ū Ͽ - * ׷ٸ true ׷ false ش. - * - * @param no ġ. ڸ  ġ ڿ ִ. - * @param comp . no Ͽ ȮѴ. - */ -function checkNoGT(no, comp) { - /* true ش. */ - if ( isEmpty(no) ) return true; - - if ( ! checkParamForNo(no, comp) ) return false; - - /* ڸ ϰ ġ ȯѴ. */ - var noValue = parseInt(removeChar(no , ","), 10); - var compValue = parseInt(removeChar(comp, ","), 10); - - return noValue > compValue; -} - - -function checkNoGTObj(obj, comp) { - return checkNoGT(obj.value, comp); -} - - -/** - * no comp ū ˻Ͽ - * ׷ٸ true ׷ ޼ ְ false ش. - * - * @param fieldName ˻ ׸ . - * @param no ġ. ڸ  ġ ڿ ִ. - * @param comp . no Ͽ ȮѴ. - */ -function validateNoGT(no, fieldName, comp) { - var valid = checkNoGT(no, comp); - - if ( ! valid ) { - showMessage(fieldName + " ׸ " + comp + " Ŀ մϴ."); - } - - return valid; -} - - -/** - * noObj comp ū ˻Ͽ - * ׷ٸ true ׷ ޼ ְ Ŀ ش ׸ - * ġϰ false ش. - * - * @param fieldName ˻ ׸ . - * @param noObj ġ ִ ü. - * @param comp . no Ͽ ȮѴ. - */ -function validateNoGTObj(noObj, fieldName, comp) { - var valid = validateNoGT(noObj.value, fieldName, comp); - - if ( ! valid ) noObj.focus(); - - return valid; -} - - -/** - * ־ ũų Ͽ - * ׷ٸ true ׷ false ش. - * - * @param no ġ. ڸ  ġ ڿ ִ. - * @param comp . no Ͽ ȮѴ. - */ -function checkNoGE(no, comp) { - /* true ش. */ - if ( isEmpty(no) ) return true; - - if ( ! checkParamForNo(no, comp) ) return false; - - /* ڸ ϰ ġ ȯѴ. */ - var noValue = parseInt(removeChar(no , ","), 10); - var compValue = parseInt(removeChar(comp, ","), 10); - - return noValue >= compValue -} - - -function checkNoGEObj(obj, comp) { - return checkNoGE(obj.value, comp); -} - - -/** - * no comp ũų ˻Ͽ - * ׷ٸ true ׷ ޼ ְ false ش. - * - * @param fieldName ˻ ׸ . - * @param no ġ. ڸ  ġ ڿ ִ. - * @param comp . no Ͽ ȮѴ. - */ -function validateNoGE(no, fieldName, comp) { - var valid = checkNoGE(no, comp); - - if ( ! valid ) { - showMessage(fieldName + " ׸ " + comp + " ũų ƾ մϴ."); - } - - return valid; -} - - -/** - * noObj comp ũų ˻Ͽ - * ׷ٸ true ׷ ޼ ְ Ŀ ش ׸ - * ġϰ false ش. - * - * @param fieldName ˻ ׸ . - * @param noObj ġ ִ ü. - * @param comp . no Ͽ ȮѴ. - */ -function validateNoGEObj(noObj, fieldName, comp) { - var valid = validateNoGE(noObj.value, fieldName, comp); - - if ( ! valid ) noObj.focus(); - - return valid; -} diff --git a/zioinfo/link.css b/zioinfo/link.css deleted file mode 100644 index 9c6ccddf..00000000 --- a/zioinfo/link.css +++ /dev/null @@ -1,55 +0,0 @@ -BODY {scrollbar-face-color: #F2F2F2; -scrollbar-shadow-color: #999999; -scrollbar-highlight-color: #FFFFFF; -scrollbar-3dlight-color: #999999; -scrollbar-darkshadow-color: #FFFFFF; -scrollbar-track-color: #FFFFFF; -scrollbar-arrow-color: #999999} - -form {margin:0; color: #5E5E5D;FONT-FAMILY:, arial; FONT-SIZE: 9pt;;letter-spacing:-0.02em; text-decoration:none;line-height:12pt;} - -A:link {color:#666666; text-decoration:none; font-size:9pt;} -A:visited {color:#666666; text-decoration:none; font-size:9pt;} -A:active {color:#4169e1; text-decoration:none; font-size:9pt;} -A:hover {color:#3333FF; text-decoration:underline; font-size:9pt;} - -font {font-family:; font-size:9pt; line-height:18px;} -.b { font-size:8pt ; line-height: 14px ; font-face:;} -.text01 { font-family: "ü"; font-size: 9pt; color: #FFFFFF; line-height: 14pt; font-weight:bold; letter-spacing:-1pt;} -.numbersjackpot { font-family: "ü"; font-size: 21pt; color: #FFFFFF; line-height: 22pt; font-weight:bold; letter-spacing:-1pt;} -.size {font-family:; font-size:12pt; line-height:18px; font-weight:bold;} -.s {font-family:; font-size:8pt; line-height:15px;} -.size_ {font-family:; font-size:11pt; line-height:18px; font-weight:bold;} -.ten {font-family:; font-size:10pt; line-height:18px; font-weight:bold;} - -.support {font-family:; font-size:9pt; line-height:15px;} - - -td {font-family:; font-size:9pt; color:#666666;} -.a {font-family:; font-size:9pt; color:#0000FF;line-height:25px; text-decoration:underline} - -.sample { background-color: #E8F0FC; border-color: #798EAE 798EAE 798EAE 798EAE; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px} - -a.blue:link {color:#1e90ff; text-decoration:none; font-size:10pt;} -a.blue:visited {color:#1e90ff; text-decoration:none; font-size:10pt;} -a.blue:active {color:#1e90ff; text-decoration:none; font-size:10pt;} -a.blue:hover {color:#4169e1; text-decoration:underline; font-size:10pt;} - -td.submenu {color:#000000; text-decoration:none; font-size:9pt;} -a.submenu:link {color:#000000; text-decoration:none; font-size:9pt;} -a.submenu:visited {color:#000000; text-decoration:none; font-size:9pt;} -a.submenu:active {color:#000000; text-decoration:none; font-size:9pt;} -a.submenu:hover {color:#000000; text-decoration:none; font-size:9pt;} - -.form {border:1px solid #CDCDCD;font-family:;font-size:12px; color:#555555;} -.form4 {border:1px solid #6D6D6D;font-family:;font-size:12px; color:#B1B1B1;} -.form2 {border:1px solid #E4DCBA;font-family:;font-size:12px; color:#555555;} -.form3 {border:1px solid #CDCDCD;font-family:;font-size:12px; color:#555555; background-color:#F8F8F8; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:5px;} - -.txt{font-family:; color:#666666; text-decoration:none; font-size:9pt;} - -.com { font-family: "ü"; font-size: 9pt; color: #666666; line-height: 12pt; letter-spacing:-1pt;} - -.consult_input { BORDER-RIGHT: #CCCCCC 1px solid; BORDER-TOP: #CCCCCC 1px solid; BORDER-LEFT: #CCCCCC 1px solid; BORDER-BOTTOM: #CCCCCC 1px solid; BACKGROUND-COLOR: #ffffff; font-size:9pt; color:#666666; } -.consult_textarea { BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #ffffff } - diff --git a/zioinfo/product/Scripts/AC_RunActiveContent.js b/zioinfo/product/Scripts/AC_RunActiveContent.js deleted file mode 100644 index 4ad64803..00000000 --- a/zioinfo/product/Scripts/AC_RunActiveContent.js +++ /dev/null @@ -1,292 +0,0 @@ -//v1.7 -// Flash Player Version Detection -// Detect Client Browser type -// Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved. -var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; -var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; -var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; - -function ControlVersion() -{ - var version; - var axo; - var e; - - // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry - - try { - // version will be set for 7.X or greater players - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); - version = axo.GetVariable("$version"); - } catch (e) { - } - - if (!version) - { - try { - // version will be set for 6.X players only - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); - - // installed player is some revision of 6.0 - // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, - // so we have to be careful. - - // default to the first public version - version = "WIN 6,0,21,0"; - - // throws if AllowScripAccess does not exist (introduced in 6.0r47) - axo.AllowScriptAccess = "always"; - - // safe to call for 6.0r47 or greater - version = axo.GetVariable("$version"); - - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 4.X or 5.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = axo.GetVariable("$version"); - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 3.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = "WIN 3,0,18,0"; - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 2.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); - version = "WIN 2,0,0,11"; - } catch (e) { - version = -1; - } - } - - return version; -} - -// JavaScript helper required to detect Flash Player PlugIn version information -function GetSwfVer(){ - // NS/Opera version >= 3 check for Flash plugin in plugin array - var flashVer = -1; - - if (navigator.plugins != null && navigator.plugins.length > 0) { - if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { - var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; - var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; - var descArray = flashDescription.split(" "); - var tempArrayMajor = descArray[2].split("."); - var versionMajor = tempArrayMajor[0]; - var versionMinor = tempArrayMajor[1]; - var versionRevision = descArray[3]; - if (versionRevision == "") { - versionRevision = descArray[4]; - } - if (versionRevision[0] == "d") { - versionRevision = versionRevision.substring(1); - } else if (versionRevision[0] == "r") { - versionRevision = versionRevision.substring(1); - if (versionRevision.indexOf("d") > 0) { - versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); - } - } - var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; - } - } - // MSN/WebTV 2.6 supports Flash 4 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; - // WebTV 2.5 supports Flash 3 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; - // older WebTV supports Flash 2 - else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; - else if ( isIE && isWin && !isOpera ) { - flashVer = ControlVersion(); - } - return flashVer; -} - -// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available -function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) -{ - versionStr = GetSwfVer(); - if (versionStr == -1 ) { - return false; - } else if (versionStr != 0) { - if(isIE && isWin && !isOpera) { - // Given "WIN 2,0,0,11" - tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] - tempString = tempArray[1]; // "2,0,0,11" - versionArray = tempString.split(","); // ['2', '0', '0', '11'] - } else { - versionArray = versionStr.split("."); - } - var versionMajor = versionArray[0]; - var versionMinor = versionArray[1]; - var versionRevision = versionArray[2]; - - // is the major.revision >= requested major.revision AND the minor version >= requested minor - if (versionMajor > parseFloat(reqMajorVer)) { - return true; - } else if (versionMajor == parseFloat(reqMajorVer)) { - if (versionMinor > parseFloat(reqMinorVer)) - return true; - else if (versionMinor == parseFloat(reqMinorVer)) { - if (versionRevision >= parseFloat(reqRevision)) - return true; - } - } - return false; - } -} - -function AC_AddExtension(src, ext) -{ - if (src.indexOf('?') != -1) - return src.replace(/\?/, ext+'?'); - else - return src + ext; -} - -function AC_Generateobj(objAttrs, params, embedAttrs) -{ - var str = ''; - if (isIE && isWin && !isOpera) - { - str += ' '; - } - str += ''; - } - else - { - str += ' - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ǰȳ > ǰҰ
    - - - - - - -
    - - - - - - -
    - - - - - - - - -
        
    -
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - - - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/product/compare.htm b/zioinfo/product/compare.htm deleted file mode 100644 index 92044f27..00000000 --- a/zioinfo/product/compare.htm +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ǰȳ > ǰҰ
    - - - - - - -
    - - - - - - -
    - - - - - - - - -
        
    -
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - - - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/product/crm.htm b/zioinfo/product/crm.htm deleted file mode 100644 index 92044f27..00000000 --- a/zioinfo/product/crm.htm +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ǰȳ > ǰҰ
    - - - - - - -
    - - - - - - -
    - - - - - - - - -
        
    -
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - - - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/product/eip.htm b/zioinfo/product/eip.htm deleted file mode 100644 index 92044f27..00000000 --- a/zioinfo/product/eip.htm +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ǰȳ > ǰҰ
    - - - - - - -
    - - - - - - -
    - - - - - - - - -
        
    -
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - - - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/product/erp.htm b/zioinfo/product/erp.htm deleted file mode 100644 index 92044f27..00000000 --- a/zioinfo/product/erp.htm +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ǰȳ > ǰҰ
    - - - - - - -
    - - - - - - -
    - - - - - - - - -
        
    -
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - - - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/product/experience.htm b/zioinfo/product/experience.htm deleted file mode 100644 index 92044f27..00000000 --- a/zioinfo/product/experience.htm +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ǰȳ > ǰҰ
    - - - - - - -
    - - - - - - -
    - - - - - - - - -
        
    -
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - - - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/product/image/btn01.gif b/zioinfo/product/image/btn01.gif deleted file mode 100644 index 053e538d..00000000 Binary files a/zioinfo/product/image/btn01.gif and /dev/null differ diff --git a/zioinfo/product/image/btn01.jpg b/zioinfo/product/image/btn01.jpg deleted file mode 100644 index 823de325..00000000 Binary files a/zioinfo/product/image/btn01.jpg and /dev/null differ diff --git a/zioinfo/product/image/btn02.gif b/zioinfo/product/image/btn02.gif deleted file mode 100644 index be631202..00000000 Binary files a/zioinfo/product/image/btn02.gif and /dev/null differ diff --git a/zioinfo/product/image/btn02.jpg b/zioinfo/product/image/btn02.jpg deleted file mode 100644 index b8832f7f..00000000 Binary files a/zioinfo/product/image/btn02.jpg and /dev/null differ diff --git a/zioinfo/product/image/btn03.gif b/zioinfo/product/image/btn03.gif deleted file mode 100644 index d63b0ae7..00000000 Binary files a/zioinfo/product/image/btn03.gif and /dev/null differ diff --git a/zioinfo/product/image/btn03.jpg b/zioinfo/product/image/btn03.jpg deleted file mode 100644 index db1d1b4c..00000000 Binary files a/zioinfo/product/image/btn03.jpg and /dev/null differ diff --git a/zioinfo/product/image/left_menu01.gif b/zioinfo/product/image/left_menu01.gif deleted file mode 100644 index 1b01342a..00000000 Binary files a/zioinfo/product/image/left_menu01.gif and /dev/null differ diff --git a/zioinfo/product/image/left_menu01.jpg b/zioinfo/product/image/left_menu01.jpg deleted file mode 100644 index 4160ced8..00000000 Binary files a/zioinfo/product/image/left_menu01.jpg and /dev/null differ diff --git a/zioinfo/product/image/left_menu02.gif b/zioinfo/product/image/left_menu02.gif deleted file mode 100644 index 3943f7ab..00000000 Binary files a/zioinfo/product/image/left_menu02.gif and /dev/null differ diff --git a/zioinfo/product/image/left_menu02.jpg b/zioinfo/product/image/left_menu02.jpg deleted file mode 100644 index a4a29078..00000000 Binary files a/zioinfo/product/image/left_menu02.jpg and /dev/null differ diff --git a/zioinfo/product/image/left_menu03.gif b/zioinfo/product/image/left_menu03.gif deleted file mode 100644 index 1c9273a6..00000000 Binary files a/zioinfo/product/image/left_menu03.gif and /dev/null differ diff --git a/zioinfo/product/image/left_menu03.jpg b/zioinfo/product/image/left_menu03.jpg deleted file mode 100644 index 19ec68c2..00000000 Binary files a/zioinfo/product/image/left_menu03.jpg and /dev/null differ diff --git a/zioinfo/product/image/left_menu04.gif b/zioinfo/product/image/left_menu04.gif deleted file mode 100644 index aff9c6e6..00000000 Binary files a/zioinfo/product/image/left_menu04.gif and /dev/null differ diff --git a/zioinfo/product/image/left_menu04.jpg b/zioinfo/product/image/left_menu04.jpg deleted file mode 100644 index e0f80829..00000000 Binary files a/zioinfo/product/image/left_menu04.jpg and /dev/null differ diff --git a/zioinfo/product/image/left_menu_title.gif b/zioinfo/product/image/left_menu_title.gif deleted file mode 100644 index 61cfc668..00000000 Binary files a/zioinfo/product/image/left_menu_title.gif and /dev/null differ diff --git a/zioinfo/product/image/left_menu_title.jpg b/zioinfo/product/image/left_menu_title.jpg deleted file mode 100644 index a3f1ad2d..00000000 Binary files a/zioinfo/product/image/left_menu_title.jpg and /dev/null differ diff --git a/zioinfo/product/image/menu01.jpg b/zioinfo/product/image/menu01.jpg deleted file mode 100644 index c5c59a52..00000000 Binary files a/zioinfo/product/image/menu01.jpg and /dev/null differ diff --git a/zioinfo/product/image/menu02.jpg b/zioinfo/product/image/menu02.jpg deleted file mode 100644 index 8b0db8a6..00000000 Binary files a/zioinfo/product/image/menu02.jpg and /dev/null differ diff --git a/zioinfo/product/image/menu03.jpg b/zioinfo/product/image/menu03.jpg deleted file mode 100644 index 17eac39b..00000000 Binary files a/zioinfo/product/image/menu03.jpg and /dev/null differ diff --git a/zioinfo/product/image/menu04.jpg b/zioinfo/product/image/menu04.jpg deleted file mode 100644 index 5bf2d48f..00000000 Binary files a/zioinfo/product/image/menu04.jpg and /dev/null differ diff --git a/zioinfo/product/image/menu05.jpg b/zioinfo/product/image/menu05.jpg deleted file mode 100644 index adcc6cc6..00000000 Binary files a/zioinfo/product/image/menu05.jpg and /dev/null differ diff --git a/zioinfo/product/image/product_img.gif b/zioinfo/product/image/product_img.gif deleted file mode 100644 index 9ee30f9d..00000000 Binary files a/zioinfo/product/image/product_img.gif and /dev/null differ diff --git a/zioinfo/product/image/product_img.jpg b/zioinfo/product/image/product_img.jpg deleted file mode 100644 index adf086a5..00000000 Binary files a/zioinfo/product/image/product_img.jpg and /dev/null differ diff --git a/zioinfo/product/image/product_txt.gif b/zioinfo/product/image/product_txt.gif deleted file mode 100644 index 742e2c23..00000000 Binary files a/zioinfo/product/image/product_txt.gif and /dev/null differ diff --git a/zioinfo/product/image/product_txt.jpg b/zioinfo/product/image/product_txt.jpg deleted file mode 100644 index 16aa3c42..00000000 Binary files a/zioinfo/product/image/product_txt.jpg and /dev/null differ diff --git a/zioinfo/product/image/s_title.gif b/zioinfo/product/image/s_title.gif deleted file mode 100644 index edfa62e3..00000000 Binary files a/zioinfo/product/image/s_title.gif and /dev/null differ diff --git a/zioinfo/product/image/s_title.jpg b/zioinfo/product/image/s_title.jpg deleted file mode 100644 index cdcca87c..00000000 Binary files a/zioinfo/product/image/s_title.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_02.jpg b/zioinfo/product/image/sub02_02.jpg deleted file mode 100644 index 0bfc3bee..00000000 Binary files a/zioinfo/product/image/sub02_02.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_03.jpg b/zioinfo/product/image/sub02_03.jpg deleted file mode 100644 index 1a11c523..00000000 Binary files a/zioinfo/product/image/sub02_03.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_09.jpg b/zioinfo/product/image/sub02_09.jpg deleted file mode 100644 index d7627a1e..00000000 Binary files a/zioinfo/product/image/sub02_09.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_14.jpg b/zioinfo/product/image/sub02_14.jpg deleted file mode 100644 index 11736647..00000000 Binary files a/zioinfo/product/image/sub02_14.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_15.jpg b/zioinfo/product/image/sub02_15.jpg deleted file mode 100644 index 1789774f..00000000 Binary files a/zioinfo/product/image/sub02_15.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_16.jpg b/zioinfo/product/image/sub02_16.jpg deleted file mode 100644 index fb78d31f..00000000 Binary files a/zioinfo/product/image/sub02_16.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_18.jpg b/zioinfo/product/image/sub02_18.jpg deleted file mode 100644 index fb78d31f..00000000 Binary files a/zioinfo/product/image/sub02_18.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_20.jpg b/zioinfo/product/image/sub02_20.jpg deleted file mode 100644 index 22310476..00000000 Binary files a/zioinfo/product/image/sub02_20.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_21.jpg b/zioinfo/product/image/sub02_21.jpg deleted file mode 100644 index 7609ccce..00000000 Binary files a/zioinfo/product/image/sub02_21.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_24.jpg b/zioinfo/product/image/sub02_24.jpg deleted file mode 100644 index 9e6ada35..00000000 Binary files a/zioinfo/product/image/sub02_24.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_26.jpg b/zioinfo/product/image/sub02_26.jpg deleted file mode 100644 index 2a9502ba..00000000 Binary files a/zioinfo/product/image/sub02_26.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_28.jpg b/zioinfo/product/image/sub02_28.jpg deleted file mode 100644 index 6e1f2572..00000000 Binary files a/zioinfo/product/image/sub02_28.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_31.jpg b/zioinfo/product/image/sub02_31.jpg deleted file mode 100644 index b952f0e3..00000000 Binary files a/zioinfo/product/image/sub02_31.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_33.jpg b/zioinfo/product/image/sub02_33.jpg deleted file mode 100644 index 91d7db7d..00000000 Binary files a/zioinfo/product/image/sub02_33.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_35.jpg b/zioinfo/product/image/sub02_35.jpg deleted file mode 100644 index d516ad84..00000000 Binary files a/zioinfo/product/image/sub02_35.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_37.jpg b/zioinfo/product/image/sub02_37.jpg deleted file mode 100644 index d516ad84..00000000 Binary files a/zioinfo/product/image/sub02_37.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_39.jpg b/zioinfo/product/image/sub02_39.jpg deleted file mode 100644 index 9736656d..00000000 Binary files a/zioinfo/product/image/sub02_39.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_40.jpg b/zioinfo/product/image/sub02_40.jpg deleted file mode 100644 index f2b76b6c..00000000 Binary files a/zioinfo/product/image/sub02_40.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_41.jpg b/zioinfo/product/image/sub02_41.jpg deleted file mode 100644 index f2b76b6c..00000000 Binary files a/zioinfo/product/image/sub02_41.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_42.jpg b/zioinfo/product/image/sub02_42.jpg deleted file mode 100644 index bf86bbf6..00000000 Binary files a/zioinfo/product/image/sub02_42.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_43.jpg b/zioinfo/product/image/sub02_43.jpg deleted file mode 100644 index b418b028..00000000 Binary files a/zioinfo/product/image/sub02_43.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_44.jpg b/zioinfo/product/image/sub02_44.jpg deleted file mode 100644 index f1a5f965..00000000 Binary files a/zioinfo/product/image/sub02_44.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_45.jpg b/zioinfo/product/image/sub02_45.jpg deleted file mode 100644 index f5dd16f6..00000000 Binary files a/zioinfo/product/image/sub02_45.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_47.jpg b/zioinfo/product/image/sub02_47.jpg deleted file mode 100644 index 35f9d68a..00000000 Binary files a/zioinfo/product/image/sub02_47.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_48.jpg b/zioinfo/product/image/sub02_48.jpg deleted file mode 100644 index ae4e78bc..00000000 Binary files a/zioinfo/product/image/sub02_48.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_50.jpg b/zioinfo/product/image/sub02_50.jpg deleted file mode 100644 index 4efab996..00000000 Binary files a/zioinfo/product/image/sub02_50.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_52.jpg b/zioinfo/product/image/sub02_52.jpg deleted file mode 100644 index 8b54bd25..00000000 Binary files a/zioinfo/product/image/sub02_52.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_53.jpg b/zioinfo/product/image/sub02_53.jpg deleted file mode 100644 index 0ae02b5a..00000000 Binary files a/zioinfo/product/image/sub02_53.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_56.jpg b/zioinfo/product/image/sub02_56.jpg deleted file mode 100644 index ca963e19..00000000 Binary files a/zioinfo/product/image/sub02_56.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_57.jpg b/zioinfo/product/image/sub02_57.jpg deleted file mode 100644 index 591a2492..00000000 Binary files a/zioinfo/product/image/sub02_57.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_60.jpg b/zioinfo/product/image/sub02_60.jpg deleted file mode 100644 index ca963e19..00000000 Binary files a/zioinfo/product/image/sub02_60.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_61.jpg b/zioinfo/product/image/sub02_61.jpg deleted file mode 100644 index 591a2492..00000000 Binary files a/zioinfo/product/image/sub02_61.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_64.jpg b/zioinfo/product/image/sub02_64.jpg deleted file mode 100644 index 71ea7cec..00000000 Binary files a/zioinfo/product/image/sub02_64.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_65.jpg b/zioinfo/product/image/sub02_65.jpg deleted file mode 100644 index 02c9cab3..00000000 Binary files a/zioinfo/product/image/sub02_65.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_68.jpg b/zioinfo/product/image/sub02_68.jpg deleted file mode 100644 index ce1a1c2f..00000000 Binary files a/zioinfo/product/image/sub02_68.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub02_69.jpg b/zioinfo/product/image/sub02_69.jpg deleted file mode 100644 index c3fd63f9..00000000 Binary files a/zioinfo/product/image/sub02_69.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub_img.jpg b/zioinfo/product/image/sub_img.jpg deleted file mode 100644 index 9b18b05a..00000000 Binary files a/zioinfo/product/image/sub_img.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub_img_bg.gif b/zioinfo/product/image/sub_img_bg.gif deleted file mode 100644 index 35845518..00000000 Binary files a/zioinfo/product/image/sub_img_bg.gif and /dev/null differ diff --git a/zioinfo/product/image/sub_menu.gif b/zioinfo/product/image/sub_menu.gif deleted file mode 100644 index 9fe2e7a7..00000000 Binary files a/zioinfo/product/image/sub_menu.gif and /dev/null differ diff --git a/zioinfo/product/image/sub_menu01.gif b/zioinfo/product/image/sub_menu01.gif deleted file mode 100644 index a0bcf756..00000000 Binary files a/zioinfo/product/image/sub_menu01.gif and /dev/null differ diff --git a/zioinfo/product/image/sub_menu01.jpg b/zioinfo/product/image/sub_menu01.jpg deleted file mode 100644 index 9e2c1622..00000000 Binary files a/zioinfo/product/image/sub_menu01.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub_menu02.gif b/zioinfo/product/image/sub_menu02.gif deleted file mode 100644 index b16a57ac..00000000 Binary files a/zioinfo/product/image/sub_menu02.gif and /dev/null differ diff --git a/zioinfo/product/image/sub_menu02.jpg b/zioinfo/product/image/sub_menu02.jpg deleted file mode 100644 index 0b17ff61..00000000 Binary files a/zioinfo/product/image/sub_menu02.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub_menu03.gif b/zioinfo/product/image/sub_menu03.gif deleted file mode 100644 index 5c7ef540..00000000 Binary files a/zioinfo/product/image/sub_menu03.gif and /dev/null differ diff --git a/zioinfo/product/image/sub_menu03.jpg b/zioinfo/product/image/sub_menu03.jpg deleted file mode 100644 index de2ef3eb..00000000 Binary files a/zioinfo/product/image/sub_menu03.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub_menu04.gif b/zioinfo/product/image/sub_menu04.gif deleted file mode 100644 index e7059e7d..00000000 Binary files a/zioinfo/product/image/sub_menu04.gif and /dev/null differ diff --git a/zioinfo/product/image/sub_menu04.jpg b/zioinfo/product/image/sub_menu04.jpg deleted file mode 100644 index 699f7fec..00000000 Binary files a/zioinfo/product/image/sub_menu04.jpg and /dev/null differ diff --git a/zioinfo/product/image/sub_service_img.jpg b/zioinfo/product/image/sub_service_img.jpg deleted file mode 100644 index ef3afca0..00000000 Binary files a/zioinfo/product/image/sub_service_img.jpg and /dev/null differ diff --git a/zioinfo/product/image/title.gif b/zioinfo/product/image/title.gif deleted file mode 100644 index 4cb9121f..00000000 Binary files a/zioinfo/product/image/title.gif and /dev/null differ diff --git a/zioinfo/product/image/title.jpg b/zioinfo/product/image/title.jpg deleted file mode 100644 index 925de743..00000000 Binary files a/zioinfo/product/image/title.jpg and /dev/null differ diff --git a/zioinfo/product/image/txt01.gif b/zioinfo/product/image/txt01.gif deleted file mode 100644 index 456d89e1..00000000 Binary files a/zioinfo/product/image/txt01.gif and /dev/null differ diff --git a/zioinfo/product/image/txt01.jpg b/zioinfo/product/image/txt01.jpg deleted file mode 100644 index b21673a8..00000000 Binary files a/zioinfo/product/image/txt01.jpg and /dev/null differ diff --git a/zioinfo/product/image/txt01_01.gif b/zioinfo/product/image/txt01_01.gif deleted file mode 100644 index 0a7fd710..00000000 Binary files a/zioinfo/product/image/txt01_01.gif and /dev/null differ diff --git a/zioinfo/product/image/txt01_01.jpg b/zioinfo/product/image/txt01_01.jpg deleted file mode 100644 index a0622d13..00000000 Binary files a/zioinfo/product/image/txt01_01.jpg and /dev/null differ diff --git a/zioinfo/product/image/txt02.gif b/zioinfo/product/image/txt02.gif deleted file mode 100644 index 9957c12c..00000000 Binary files a/zioinfo/product/image/txt02.gif and /dev/null differ diff --git a/zioinfo/product/image/txt02.jpg b/zioinfo/product/image/txt02.jpg deleted file mode 100644 index f54508cb..00000000 Binary files a/zioinfo/product/image/txt02.jpg and /dev/null differ diff --git a/zioinfo/product/image/txt02_01.gif b/zioinfo/product/image/txt02_01.gif deleted file mode 100644 index 3a014877..00000000 Binary files a/zioinfo/product/image/txt02_01.gif and /dev/null differ diff --git a/zioinfo/product/image/txt02_01.jpg b/zioinfo/product/image/txt02_01.jpg deleted file mode 100644 index ae8d671e..00000000 Binary files a/zioinfo/product/image/txt02_01.jpg and /dev/null differ diff --git a/zioinfo/product/image/txt03.gif b/zioinfo/product/image/txt03.gif deleted file mode 100644 index c2f124e8..00000000 Binary files a/zioinfo/product/image/txt03.gif and /dev/null differ diff --git a/zioinfo/product/image/txt03.jpg b/zioinfo/product/image/txt03.jpg deleted file mode 100644 index 4bbc0f6c..00000000 Binary files a/zioinfo/product/image/txt03.jpg and /dev/null differ diff --git a/zioinfo/product/image/txt03_01.gif b/zioinfo/product/image/txt03_01.gif deleted file mode 100644 index c9ce36fe..00000000 Binary files a/zioinfo/product/image/txt03_01.gif and /dev/null differ diff --git a/zioinfo/product/image/txt03_01.jpg b/zioinfo/product/image/txt03_01.jpg deleted file mode 100644 index 4b22eb74..00000000 Binary files a/zioinfo/product/image/txt03_01.jpg and /dev/null differ diff --git a/zioinfo/product/image/txt04.gif b/zioinfo/product/image/txt04.gif deleted file mode 100644 index f9ccc783..00000000 Binary files a/zioinfo/product/image/txt04.gif and /dev/null differ diff --git a/zioinfo/product/image/txt04.jpg b/zioinfo/product/image/txt04.jpg deleted file mode 100644 index 1fd724a3..00000000 Binary files a/zioinfo/product/image/txt04.jpg and /dev/null differ diff --git a/zioinfo/product/image/txt04_01.gif b/zioinfo/product/image/txt04_01.gif deleted file mode 100644 index 6e9c6983..00000000 Binary files a/zioinfo/product/image/txt04_01.gif and /dev/null differ diff --git a/zioinfo/product/image/txt04_01.jpg b/zioinfo/product/image/txt04_01.jpg deleted file mode 100644 index e793b7dd..00000000 Binary files a/zioinfo/product/image/txt04_01.jpg and /dev/null differ diff --git a/zioinfo/product/image/txt05.gif b/zioinfo/product/image/txt05.gif deleted file mode 100644 index e647e0fa..00000000 Binary files a/zioinfo/product/image/txt05.gif and /dev/null differ diff --git a/zioinfo/product/image/txt05.jpg b/zioinfo/product/image/txt05.jpg deleted file mode 100644 index 15d4c5fd..00000000 Binary files a/zioinfo/product/image/txt05.jpg and /dev/null differ diff --git a/zioinfo/product/image/txt05_01.gif b/zioinfo/product/image/txt05_01.gif deleted file mode 100644 index 2ca0f200..00000000 Binary files a/zioinfo/product/image/txt05_01.gif and /dev/null differ diff --git a/zioinfo/product/product.htm b/zioinfo/product/product.htm deleted file mode 100644 index 92044f27..00000000 --- a/zioinfo/product/product.htm +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ǰȳ > ǰҰ
    - - - - - - -
    - - - - - - -
    - - - - - - - - -
        
    -
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - - - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/product/search.htm b/zioinfo/product/search.htm deleted file mode 100644 index 92044f27..00000000 --- a/zioinfo/product/search.htm +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ǰȳ > ǰҰ
    - - - - - - -
    - - - - - - -
    - - - - - - - - -
        
    -
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - - - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/recruit/Scripts/AC_RunActiveContent.js b/zioinfo/recruit/Scripts/AC_RunActiveContent.js deleted file mode 100644 index 4ad64803..00000000 --- a/zioinfo/recruit/Scripts/AC_RunActiveContent.js +++ /dev/null @@ -1,292 +0,0 @@ -//v1.7 -// Flash Player Version Detection -// Detect Client Browser type -// Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved. -var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; -var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; -var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; - -function ControlVersion() -{ - var version; - var axo; - var e; - - // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry - - try { - // version will be set for 7.X or greater players - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); - version = axo.GetVariable("$version"); - } catch (e) { - } - - if (!version) - { - try { - // version will be set for 6.X players only - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); - - // installed player is some revision of 6.0 - // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, - // so we have to be careful. - - // default to the first public version - version = "WIN 6,0,21,0"; - - // throws if AllowScripAccess does not exist (introduced in 6.0r47) - axo.AllowScriptAccess = "always"; - - // safe to call for 6.0r47 or greater - version = axo.GetVariable("$version"); - - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 4.X or 5.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = axo.GetVariable("$version"); - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 3.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = "WIN 3,0,18,0"; - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 2.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); - version = "WIN 2,0,0,11"; - } catch (e) { - version = -1; - } - } - - return version; -} - -// JavaScript helper required to detect Flash Player PlugIn version information -function GetSwfVer(){ - // NS/Opera version >= 3 check for Flash plugin in plugin array - var flashVer = -1; - - if (navigator.plugins != null && navigator.plugins.length > 0) { - if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { - var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; - var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; - var descArray = flashDescription.split(" "); - var tempArrayMajor = descArray[2].split("."); - var versionMajor = tempArrayMajor[0]; - var versionMinor = tempArrayMajor[1]; - var versionRevision = descArray[3]; - if (versionRevision == "") { - versionRevision = descArray[4]; - } - if (versionRevision[0] == "d") { - versionRevision = versionRevision.substring(1); - } else if (versionRevision[0] == "r") { - versionRevision = versionRevision.substring(1); - if (versionRevision.indexOf("d") > 0) { - versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); - } - } - var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; - } - } - // MSN/WebTV 2.6 supports Flash 4 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; - // WebTV 2.5 supports Flash 3 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; - // older WebTV supports Flash 2 - else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; - else if ( isIE && isWin && !isOpera ) { - flashVer = ControlVersion(); - } - return flashVer; -} - -// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available -function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) -{ - versionStr = GetSwfVer(); - if (versionStr == -1 ) { - return false; - } else if (versionStr != 0) { - if(isIE && isWin && !isOpera) { - // Given "WIN 2,0,0,11" - tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] - tempString = tempArray[1]; // "2,0,0,11" - versionArray = tempString.split(","); // ['2', '0', '0', '11'] - } else { - versionArray = versionStr.split("."); - } - var versionMajor = versionArray[0]; - var versionMinor = versionArray[1]; - var versionRevision = versionArray[2]; - - // is the major.revision >= requested major.revision AND the minor version >= requested minor - if (versionMajor > parseFloat(reqMajorVer)) { - return true; - } else if (versionMajor == parseFloat(reqMajorVer)) { - if (versionMinor > parseFloat(reqMinorVer)) - return true; - else if (versionMinor == parseFloat(reqMinorVer)) { - if (versionRevision >= parseFloat(reqRevision)) - return true; - } - } - return false; - } -} - -function AC_AddExtension(src, ext) -{ - if (src.indexOf('?') != -1) - return src.replace(/\?/, ext+'?'); - else - return src + ext; -} - -function AC_Generateobj(objAttrs, params, embedAttrs) -{ - var str = ''; - if (isIE && isWin && !isOpera) - { - str += ' '; - } - str += ''; - } - else - { - str += ' - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ä > ٶ
    - - - - - - -
    - - - - - - - - - - - - - - -
    - - - - - - -
    - - - - - - - - - - -
    - - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/recruit/duty.htm b/zioinfo/recruit/duty.htm deleted file mode 100644 index 33139432..00000000 --- a/zioinfo/recruit/duty.htm +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ä > ٶ
    - - - - - - -
    - - - - - - - - - - - - - - -
    - - - - - - -
    - - - - - - - - - - -
    - - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/recruit/engagement.htm b/zioinfo/recruit/engagement.htm deleted file mode 100644 index 33139432..00000000 --- a/zioinfo/recruit/engagement.htm +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ä > ٶ
    - - - - - - -
    - - - - - - - - - - - - - - -
    - - - - - - -
    - - - - - - - - - - -
    - - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/recruit/helper.htm b/zioinfo/recruit/helper.htm deleted file mode 100644 index 33139432..00000000 --- a/zioinfo/recruit/helper.htm +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ä > ٶ
    - - - - - - -
    - - - - - - - - - - - - - - -
    - - - - - - -
    - - - - - - - - - - -
    - - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/recruit/image/cancle_btn.jpg b/zioinfo/recruit/image/cancle_btn.jpg deleted file mode 100644 index 55f67934..00000000 Binary files a/zioinfo/recruit/image/cancle_btn.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/img.jpg b/zioinfo/recruit/image/img.jpg deleted file mode 100644 index e21874b5..00000000 Binary files a/zioinfo/recruit/image/img.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu01.gif b/zioinfo/recruit/image/left_menu01.gif deleted file mode 100644 index 816a66a9..00000000 Binary files a/zioinfo/recruit/image/left_menu01.gif and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu01.jpg b/zioinfo/recruit/image/left_menu01.jpg deleted file mode 100644 index 88168933..00000000 Binary files a/zioinfo/recruit/image/left_menu01.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu02.gif b/zioinfo/recruit/image/left_menu02.gif deleted file mode 100644 index 187965a6..00000000 Binary files a/zioinfo/recruit/image/left_menu02.gif and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu02.jpg b/zioinfo/recruit/image/left_menu02.jpg deleted file mode 100644 index a00c5d61..00000000 Binary files a/zioinfo/recruit/image/left_menu02.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu03.gif b/zioinfo/recruit/image/left_menu03.gif deleted file mode 100644 index 369edbc1..00000000 Binary files a/zioinfo/recruit/image/left_menu03.gif and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu03.jpg b/zioinfo/recruit/image/left_menu03.jpg deleted file mode 100644 index 7feb121c..00000000 Binary files a/zioinfo/recruit/image/left_menu03.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu04.gif b/zioinfo/recruit/image/left_menu04.gif deleted file mode 100644 index 47164cb3..00000000 Binary files a/zioinfo/recruit/image/left_menu04.gif and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu04.jpg b/zioinfo/recruit/image/left_menu04.jpg deleted file mode 100644 index d375419e..00000000 Binary files a/zioinfo/recruit/image/left_menu04.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu05.gif b/zioinfo/recruit/image/left_menu05.gif deleted file mode 100644 index 332b16f6..00000000 Binary files a/zioinfo/recruit/image/left_menu05.gif and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu05.jpg b/zioinfo/recruit/image/left_menu05.jpg deleted file mode 100644 index 96709aae..00000000 Binary files a/zioinfo/recruit/image/left_menu05.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu06.gif b/zioinfo/recruit/image/left_menu06.gif deleted file mode 100644 index 429f1e6b..00000000 Binary files a/zioinfo/recruit/image/left_menu06.gif and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu06.jpg b/zioinfo/recruit/image/left_menu06.jpg deleted file mode 100644 index dbe5776c..00000000 Binary files a/zioinfo/recruit/image/left_menu06.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu_title.gif b/zioinfo/recruit/image/left_menu_title.gif deleted file mode 100644 index 67eb042c..00000000 Binary files a/zioinfo/recruit/image/left_menu_title.gif and /dev/null differ diff --git a/zioinfo/recruit/image/left_menu_title.jpg b/zioinfo/recruit/image/left_menu_title.jpg deleted file mode 100644 index 03b412b7..00000000 Binary files a/zioinfo/recruit/image/left_menu_title.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/menu01.jpg b/zioinfo/recruit/image/menu01.jpg deleted file mode 100644 index 99673877..00000000 Binary files a/zioinfo/recruit/image/menu01.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/menu02.jpg b/zioinfo/recruit/image/menu02.jpg deleted file mode 100644 index aee860de..00000000 Binary files a/zioinfo/recruit/image/menu02.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/menu03.jpg b/zioinfo/recruit/image/menu03.jpg deleted file mode 100644 index 742163de..00000000 Binary files a/zioinfo/recruit/image/menu03.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/menu04.jpg b/zioinfo/recruit/image/menu04.jpg deleted file mode 100644 index 4ab1db85..00000000 Binary files a/zioinfo/recruit/image/menu04.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/menu05.jpg b/zioinfo/recruit/image/menu05.jpg deleted file mode 100644 index adcc6cc6..00000000 Binary files a/zioinfo/recruit/image/menu05.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/ok_btn.jpg b/zioinfo/recruit/image/ok_btn.jpg deleted file mode 100644 index d9da0065..00000000 Binary files a/zioinfo/recruit/image/ok_btn.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/s_title01.gif b/zioinfo/recruit/image/s_title01.gif deleted file mode 100644 index 4f239a3e..00000000 Binary files a/zioinfo/recruit/image/s_title01.gif and /dev/null differ diff --git a/zioinfo/recruit/image/s_title01.jpg b/zioinfo/recruit/image/s_title01.jpg deleted file mode 100644 index ada719fc..00000000 Binary files a/zioinfo/recruit/image/s_title01.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/s_title02.gif b/zioinfo/recruit/image/s_title02.gif deleted file mode 100644 index 6ae999be..00000000 Binary files a/zioinfo/recruit/image/s_title02.gif and /dev/null differ diff --git a/zioinfo/recruit/image/s_title02.jpg b/zioinfo/recruit/image/s_title02.jpg deleted file mode 100644 index e72e1fc1..00000000 Binary files a/zioinfo/recruit/image/s_title02.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/step_img.gif b/zioinfo/recruit/image/step_img.gif deleted file mode 100644 index 17e11ca4..00000000 Binary files a/zioinfo/recruit/image/step_img.gif and /dev/null differ diff --git a/zioinfo/recruit/image/step_img.jpg b/zioinfo/recruit/image/step_img.jpg deleted file mode 100644 index f263df0b..00000000 Binary files a/zioinfo/recruit/image/step_img.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_02.jpg b/zioinfo/recruit/image/sub04_02.jpg deleted file mode 100644 index 2ae29402..00000000 Binary files a/zioinfo/recruit/image/sub04_02.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_03.jpg b/zioinfo/recruit/image/sub04_03.jpg deleted file mode 100644 index 1a11c523..00000000 Binary files a/zioinfo/recruit/image/sub04_03.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_09.jpg b/zioinfo/recruit/image/sub04_09.jpg deleted file mode 100644 index 5a90ad77..00000000 Binary files a/zioinfo/recruit/image/sub04_09.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_16.jpg b/zioinfo/recruit/image/sub04_16.jpg deleted file mode 100644 index c9df5f35..00000000 Binary files a/zioinfo/recruit/image/sub04_16.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_17.jpg b/zioinfo/recruit/image/sub04_17.jpg deleted file mode 100644 index 0cc032f7..00000000 Binary files a/zioinfo/recruit/image/sub04_17.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_18.jpg b/zioinfo/recruit/image/sub04_18.jpg deleted file mode 100644 index c9a87969..00000000 Binary files a/zioinfo/recruit/image/sub04_18.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_20.jpg b/zioinfo/recruit/image/sub04_20.jpg deleted file mode 100644 index c9a87969..00000000 Binary files a/zioinfo/recruit/image/sub04_20.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_22.jpg b/zioinfo/recruit/image/sub04_22.jpg deleted file mode 100644 index 603d1c16..00000000 Binary files a/zioinfo/recruit/image/sub04_22.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_23.jpg b/zioinfo/recruit/image/sub04_23.jpg deleted file mode 100644 index ce96697d..00000000 Binary files a/zioinfo/recruit/image/sub04_23.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_26.jpg b/zioinfo/recruit/image/sub04_26.jpg deleted file mode 100644 index 49143f67..00000000 Binary files a/zioinfo/recruit/image/sub04_26.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_28.jpg b/zioinfo/recruit/image/sub04_28.jpg deleted file mode 100644 index f9e1ca91..00000000 Binary files a/zioinfo/recruit/image/sub04_28.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_32.jpg b/zioinfo/recruit/image/sub04_32.jpg deleted file mode 100644 index d58dab32..00000000 Binary files a/zioinfo/recruit/image/sub04_32.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_36.jpg b/zioinfo/recruit/image/sub04_36.jpg deleted file mode 100644 index d9edda24..00000000 Binary files a/zioinfo/recruit/image/sub04_36.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_38.jpg b/zioinfo/recruit/image/sub04_38.jpg deleted file mode 100644 index e130244b..00000000 Binary files a/zioinfo/recruit/image/sub04_38.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_39.jpg b/zioinfo/recruit/image/sub04_39.jpg deleted file mode 100644 index abd9a268..00000000 Binary files a/zioinfo/recruit/image/sub04_39.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_41.jpg b/zioinfo/recruit/image/sub04_41.jpg deleted file mode 100644 index cbed0077..00000000 Binary files a/zioinfo/recruit/image/sub04_41.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_42.jpg b/zioinfo/recruit/image/sub04_42.jpg deleted file mode 100644 index 0611af51..00000000 Binary files a/zioinfo/recruit/image/sub04_42.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_44.jpg b/zioinfo/recruit/image/sub04_44.jpg deleted file mode 100644 index 1fcc2d34..00000000 Binary files a/zioinfo/recruit/image/sub04_44.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_45.jpg b/zioinfo/recruit/image/sub04_45.jpg deleted file mode 100644 index 50c51a72..00000000 Binary files a/zioinfo/recruit/image/sub04_45.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_47.jpg b/zioinfo/recruit/image/sub04_47.jpg deleted file mode 100644 index 6f1bff60..00000000 Binary files a/zioinfo/recruit/image/sub04_47.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_49.jpg b/zioinfo/recruit/image/sub04_49.jpg deleted file mode 100644 index c3e4332a..00000000 Binary files a/zioinfo/recruit/image/sub04_49.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_50.jpg b/zioinfo/recruit/image/sub04_50.jpg deleted file mode 100644 index a3d71660..00000000 Binary files a/zioinfo/recruit/image/sub04_50.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub04_51.jpg b/zioinfo/recruit/image/sub04_51.jpg deleted file mode 100644 index a3d71660..00000000 Binary files a/zioinfo/recruit/image/sub04_51.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub_img.jpg b/zioinfo/recruit/image/sub_img.jpg deleted file mode 100644 index 5dcab423..00000000 Binary files a/zioinfo/recruit/image/sub_img.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub_img_bg.gif b/zioinfo/recruit/image/sub_img_bg.gif deleted file mode 100644 index d7be40af..00000000 Binary files a/zioinfo/recruit/image/sub_img_bg.gif and /dev/null differ diff --git a/zioinfo/recruit/image/sub_menu.gif b/zioinfo/recruit/image/sub_menu.gif deleted file mode 100644 index a6e1dc16..00000000 Binary files a/zioinfo/recruit/image/sub_menu.gif and /dev/null differ diff --git a/zioinfo/recruit/image/sub_menu01.gif b/zioinfo/recruit/image/sub_menu01.gif deleted file mode 100644 index 58e1f3f9..00000000 Binary files a/zioinfo/recruit/image/sub_menu01.gif and /dev/null differ diff --git a/zioinfo/recruit/image/sub_menu01.jpg b/zioinfo/recruit/image/sub_menu01.jpg deleted file mode 100644 index 04626a9b..00000000 Binary files a/zioinfo/recruit/image/sub_menu01.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub_menu02.gif b/zioinfo/recruit/image/sub_menu02.gif deleted file mode 100644 index 49ee1d1a..00000000 Binary files a/zioinfo/recruit/image/sub_menu02.gif and /dev/null differ diff --git a/zioinfo/recruit/image/sub_menu02.jpg b/zioinfo/recruit/image/sub_menu02.jpg deleted file mode 100644 index 6f38701f..00000000 Binary files a/zioinfo/recruit/image/sub_menu02.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub_menu03.gif b/zioinfo/recruit/image/sub_menu03.gif deleted file mode 100644 index 4d97af6d..00000000 Binary files a/zioinfo/recruit/image/sub_menu03.gif and /dev/null differ diff --git a/zioinfo/recruit/image/sub_menu03.jpg b/zioinfo/recruit/image/sub_menu03.jpg deleted file mode 100644 index cc39d0b8..00000000 Binary files a/zioinfo/recruit/image/sub_menu03.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub_menu04.gif b/zioinfo/recruit/image/sub_menu04.gif deleted file mode 100644 index c764b793..00000000 Binary files a/zioinfo/recruit/image/sub_menu04.gif and /dev/null differ diff --git a/zioinfo/recruit/image/sub_menu04.jpg b/zioinfo/recruit/image/sub_menu04.jpg deleted file mode 100644 index 0716c3b1..00000000 Binary files a/zioinfo/recruit/image/sub_menu04.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub_menu05.gif b/zioinfo/recruit/image/sub_menu05.gif deleted file mode 100644 index 690b65b3..00000000 Binary files a/zioinfo/recruit/image/sub_menu05.gif and /dev/null differ diff --git a/zioinfo/recruit/image/sub_menu05.jpg b/zioinfo/recruit/image/sub_menu05.jpg deleted file mode 100644 index 19aa27ca..00000000 Binary files a/zioinfo/recruit/image/sub_menu05.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/sub_menu06.gif b/zioinfo/recruit/image/sub_menu06.gif deleted file mode 100644 index f7e6c332..00000000 Binary files a/zioinfo/recruit/image/sub_menu06.gif and /dev/null differ diff --git a/zioinfo/recruit/image/sub_service_img.jpg b/zioinfo/recruit/image/sub_service_img.jpg deleted file mode 100644 index ef3afca0..00000000 Binary files a/zioinfo/recruit/image/sub_service_img.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/title.gif b/zioinfo/recruit/image/title.gif deleted file mode 100644 index 765912f1..00000000 Binary files a/zioinfo/recruit/image/title.gif and /dev/null differ diff --git a/zioinfo/recruit/image/title.jpg b/zioinfo/recruit/image/title.jpg deleted file mode 100644 index dfe813b7..00000000 Binary files a/zioinfo/recruit/image/title.jpg and /dev/null differ diff --git a/zioinfo/recruit/image/txt.gif b/zioinfo/recruit/image/txt.gif deleted file mode 100644 index ca48fbb0..00000000 Binary files a/zioinfo/recruit/image/txt.gif and /dev/null differ diff --git a/zioinfo/recruit/image/txt.jpg b/zioinfo/recruit/image/txt.jpg deleted file mode 100644 index 0bbc8d8c..00000000 Binary files a/zioinfo/recruit/image/txt.jpg and /dev/null differ diff --git a/zioinfo/recruit/recruit.htm b/zioinfo/recruit/recruit.htm deleted file mode 100644 index 33139432..00000000 --- a/zioinfo/recruit/recruit.htm +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ä > ٶ
    - - - - - - -
    - - - - - - - - - - - - - - -
    - - - - - - -
    - - - - - - - - - - -
    - - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/recruit/volunteer.htm b/zioinfo/recruit/volunteer.htm deleted file mode 100644 index 33139432..00000000 --- a/zioinfo/recruit/volunteer.htm +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ä > ٶ
    - - - - - - -
    - - - - - - - - - - - - - - -
    - - - - - - -
    - - - - - - - - - - -
    - - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/recruit/welfare.htm b/zioinfo/recruit/welfare.htm deleted file mode 100644 index 33139432..00000000 --- a/zioinfo/recruit/welfare.htm +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - -ƻ ø - - - - - - - - - -
     
    - - - - - - - - - - - - - - - - - -
      - - - -
    -
     
    - - - - - - -
    - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    home@zioinfo.com
    -
    - -
    - - - - - - - -
     HOME > ä > ٶ
    - - - - - - -
    - - - - - - - - - - - - - - -
    - - - - - - -
    - - - - - - - - - - -
    - - -
    - - - - - - -
    - - - - - - - - - - -
    - - - - - - -
    ۱Ƿΰ۱
    - - -
     
    - - - - - - - - - \ No newline at end of file diff --git a/zioinfo/sql/function_070528.sql b/zioinfo/sql/function_070528.sql deleted file mode 100644 index dac59fc6..00000000 --- a/zioinfo/sql/function_070528.sql +++ /dev/null @@ -1,3269 +0,0 @@ -CREATE OR REPLACE FUNCTION NSISUPDB.GET_PRD_INFO_LIST ( - in_prd_se IN TC_PRD_INFO.PRD_SE%TYPE DEFAULT NULL -) -/****************************************************** - ϸ : GET_PRD_INFO - : 0.0.0.1 - ۼ : 2006. 9. 20. - ۼ : - Use Case : - : ֱ д´. - ֱⱸ , ֱ д´. -*******************************************************/ -RETURN Types.cursorType IS - v_cursor Types.cursorType; -BEGIN - OPEN v_cursor FOR - SELECT - PRD_SE, PRD_NM, PRD_ENG_NM - FROM - TC_PRD_INFO - WHERE - PRD_SE = NVL (in_prd_se, PRD_SE) - ORDER BY - PRD_NM; - - RETURN v_cursor; -EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN v_cursor; - WHEN OTHERS THEN - RAISE; -END GET_PRD_INFO_LIST; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_ORG_NAME -( - V_ORG_ID IN TN_ORG.ORG_ID%TYPE, - V_LANG IN VARCHAR2 := 'KOR' - -) -/********************************************************** - ϸ : GET_ORG_NAME - : 0.0.0.1 - ۼ : 2006.8. 29 - ۼ : ְ - Use Case : - :  ° Ѵ. -***********************************************************/ - RETURN TN_ORG.ORG_NM%TYPE -IS - V_ORG_NM_KOR TN_ORG.ORG_NM%TYPE; - V_ORG_NM_ENG TN_ORG.ORG_NM_ENG%TYPE; - V_ORG_NM TN_ORG.ORG_NM%TYPE; - -BEGIN - SELECT ORG_NM, ORG_NM_ENG - INTO V_ORG_NM_KOR, V_ORG_NM_ENG - FROM TN_ORG - WHERE ORG_ID = V_ORG_ID; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE('Fetched Organization Name not found. CD_ID = ' || V_ORG_ID); - END IF; - - IF V_LANG = 'KOR' THEN - V_ORG_NM := V_ORG_NM_KOR; - ELSIF V_LANG = 'ENG' THEN - V_ORG_NM := V_ORG_NM_ENG; - ELSE - V_ORG_NM := ''; - DBMS_OUTPUT.PUT_LINE('Language option only ''KOR'' or ''ENG (or NULL)'); - END IF; - - RETURN V_ORG_NM; - -END GET_ORG_NAME; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_OBJ_VAR_ID ( - in_org_id IN TN_ITM_LIST.ORG_ID%TYPE, - in_tbl_id IN TN_ITM_LIST.TBL_ID%TYPE, - in_itm_id IN TN_ITM_LIST.ITM_ID%TYPE -) -/********************************************************** - ϸ : GET_OBJ_VAR_ID - : 0.0.0.1 - ۼ : 2006. 10. 16. - ۼ : - Use Case : - : ׸ڵ忡 ׸з д´.. -**********************************************************/ -RETURN TN_ITM_LIST.OBJ_VAR_ID%TYPE IS - v_result TN_ITM_LIST.OBJ_VAR_ID%TYPE := NULL; -BEGIN - SELECT - OBJ_VAR_ID - INTO - v_result - FROM - TN_ITM_LIST - WHERE - ORG_ID = in_org_id AND - TBL_ID = in_tbl_id AND - ITM_ID = in_itm_id; - - RETURN v_result; - -EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN NULL; - - WHEN OTHERS THEN - RAISE; - -END GET_OBJ_VAR_ID; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_NEXT_PRD_DE ( - in_prd_se IN TN_DT.PRD_SE%TYPE, - in_prd_de IN TN_DT.PRD_DE%TYPE -) RETURN TN_DT.PRD_DE%TYPE -/********************************************************** - ϸ : GET_NEXT_PRD_DE - : 0.0.0.1 - ۼ : 2006. 11. 13. - ۼ : - Use Case : - : ֱ⿡ Ͻ Ѵ. -***********************************************************/ -IS - yyyy NUMBER(4) := NULL; - mm NUMBER(2) := NULL; - dd NUMBER(2) := NULL; - result TN_DT.PRD_DE%TYPE := NULL; -BEGIN - CASE in_prd_se - WHEN 'D' THEN - IF LENGTH (in_prd_de) <> 8 THEN - RAISE_APPLICATION_ERROR (-20001, 'Ͻ '); - END IF; - result := TO_CHAR ((TO_DATE (in_prd_de) + 1), 'YYYYMMDD'); - - WHEN 'T' THEN - IF LENGTH (in_prd_de) <> 8 THEN - RAISE_APPLICATION_ERROR (-20001, 'Ͻ '); - END IF; - yyyy := TO_NUMBER (SUBSTR (in_prd_de, 1, 4)); - mm := TO_NUMBER (SUBSTR (in_prd_de, 5, 2)); - dd := TO_NUMBER (SUBSTR (in_prd_de, 7, 2)); - dd := dd + 1; - IF dd > 3 THEN - dd := 1; - mm := mm + 1; - END IF; - IF mm > 12 THEN - mm := 1; - yyyy := yyyy + 1; - END IF; - result := yyyy || LPAD (mm, 2, '0') || LPAD (dd, 2, '0'); - WHEN 'M' THEN - IF LENGTH (in_prd_de) <> 6 THEN - RAISE_APPLICATION_ERROR (-20001, 'Ͻ '); - END IF; - yyyy := TO_NUMBER (SUBSTR (in_prd_de, 1, 4)); - mm := TO_NUMBER (SUBSTR (in_prd_de, 5, 2)); - mm := mm + 1; - IF mm > 12 THEN - mm := 1; - yyyy := yyyy + 1; - END IF; - result := yyyy || LPAD (mm, 2, '0'); - WHEN 'B' THEN - IF LENGTH (in_prd_de) <> 6 THEN - RAISE_APPLICATION_ERROR (-20001, 'Ͻ '); - END IF; - yyyy := TO_NUMBER (SUBSTR (in_prd_de, 1, 4)); - mm := TO_NUMBER (SUBSTR (in_prd_de, 5, 2)); - mm := mm + 1; - IF mm > 6 THEN - mm := 1; - yyyy := yyyy + 1; - END IF; - result := yyyy || LPAD (mm, 2, '0'); - WHEN 'Q' THEN - IF LENGTH (in_prd_de) <> 6 THEN - RAISE_APPLICATION_ERROR (-20001, 'Ͻ '); - END IF; - yyyy := TO_NUMBER (SUBSTR (in_prd_de, 1, 4)); - mm := TO_NUMBER (SUBSTR (in_prd_de, 5, 2)); - mm := mm + 1; - IF mm > 4 THEN - mm := 1; - yyyy := yyyy + 1; - END IF; - result := yyyy || LPAD (mm, 2, '0'); - WHEN 'H' THEN - IF LENGTH (in_prd_de) <> 6 THEN - RAISE_APPLICATION_ERROR (-20001, 'Ͻ '); - END IF; - yyyy := TO_NUMBER (SUBSTR (in_prd_de, 1, 4)); - mm := TO_NUMBER (SUBSTR (in_prd_de, 5, 2)); - mm := mm + 1; - IF mm > 2 THEN - mm := 1; - yyyy := yyyy + 1; - END IF; - result := yyyy || LPAD (mm, 2, '0'); - - WHEN 'Y' THEN - IF LENGTH (in_prd_de) <> 4 THEN - RAISE_APPLICATION_ERROR (-20001, 'Ͻ '); - END IF; - yyyy := TO_NUMBER (SUBSTR (in_prd_de, 1, 4)); - yyyy := yyyy + 1; - result := TO_CHAR (yyyy); - WHEN 'F' THEN - IF LENGTH (in_prd_de) <> 4 THEN - RAISE_APPLICATION_ERROR (-20001, 'Ͻ '); - END IF; - yyyy := TO_NUMBER (SUBSTR (in_prd_de, 1, 4)); - yyyy := yyyy + 1; - result := TO_CHAR (yyyy); - END CASE; - - RETURN result; -EXCEPTION - WHEN OTHERS THEN - RAISE; -END GET_NEXT_PRD_DE; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_LVL_CO ( - in_org_id IN TN_ITM_LIST.ORG_ID%TYPE, - in_tbl_id IN TN_ITM_LIST.TBL_ID%TYPE, - in_itm_id IN TN_ITM_LIST.ITM_ID%TYPE -) -/********************************************************** - ϸ : GET_OBJ_VAR_ID - : 0.0.0.1 - ۼ : 2006. 10. 16. - ۼ : - Use Case : - : ׸ڵ忡 ׸з д´.. -**********************************************************/ -RETURN TN_OBJ_ITM_CLS.LVL_CO%TYPE IS - v_result TN_OBJ_ITM_CLS.LVL_CO%TYPE; -BEGIN - v_result := 0; - - SELECT - B.LVL_CO - INTO - v_result - FROM - TN_ITM_LIST A, - TN_OBJ_ITM_CLS B - WHERE - A.ORG_ID = in_org_id AND - A.TBL_ID = in_tbl_id AND - A.ITM_ID = in_itm_id AND - A.ORG_ID = B.ORG_ID AND - A.TBL_ID = B.TBL_ID AND - A.OBJ_VAR_ID = B.OBJ_VAR_ID; - - RETURN v_result; - -EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN NULL; - - WHEN OTHERS THEN - RAISE; - -END GET_LVL_CO; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_JBSS_USER_NAME -( - vMid IN T_SM_USER.MID%TYPE -) -/********************************************************** - ϸ : GET_CODE_ABBR_NAME - : 0.0.0.1 - ۼ : 2006.11.14 - ۼ : ְ - Use Case : - : ϵȲý ڸ -***********************************************************/ -RETURN VARCHAR2 IS - V_NM VARCHAR2(100); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT UNM - INTO V_NM - FROM T_SM_USER - WHERE MID = vMid; - - - RETURN V_NM; - -END GET_JBSS_USER_NAME; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_ITM_PUB_SE ( - in_org_id IN TN_ITM_LIST.ORG_ID%TYPE, - in_tbl_id IN TN_ITM_LIST.TBL_ID%TYPE, - in_itm_id IN TN_ITM_LIST.ITM_ID%TYPE -) -/********************************************************** - ϸ : GET_ITM_PUB_SE - : 0.0.0.1 - ۼ : 2006. 10. 16. - ۼ : - Use Case : - : ׸ ǥ б. -**********************************************************/ -RETURN TN_ITM_LIST.PUB_SE%TYPE IS - v_result TN_ITM_LIST.PUB_SE%TYPE; -BEGIN - v_result := 0; - - SELECT - DECODE (PUB_SE, NULL, '1210113', '1210110', '1210113', PUB_SE) PUB_SE - INTO - v_result - FROM - TN_ITM_LIST - WHERE - ORG_ID = in_org_id AND - TBL_ID = in_tbl_id AND - ITM_ID = in_itm_id; - - RETURN v_result; - -EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN NULL; - - WHEN OTHERS THEN - RAISE; - -END GET_ITM_PUB_SE; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_ITEM_SN -( - V_TBL_ID IN TN_ITM_LIST.TBL_ID%TYPE, - V_ORG_ID IN TN_ITM_LIST.ORG_ID%TYPE, - V_OBJ_VAR_ID IN TN_ITM_LIST.OBJ_VAR_ID%TYPE, - V_ITM_ID IN TN_ITM_LIST.ITM_ID%TYPE -) -/********************************************************** - ϸ : GET_ITM_SN - : 0.0.0.1 - ۼ : 2006.9. 4 - ۼ : - Use Case : - : ڷ׸ -***********************************************************/ -RETURN VARCHAR2 IS - V_SN VARCHAR2(3); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT to_char(nvl(CHAR_ITM_SN,0)) - INTO V_SN - FROM TN_ITM_LIST - WHERE TBL_ID = V_TBL_ID - AND ORG_ID = V_ORG_ID - AND OBJ_VAR_ID = V_OBJ_VAR_ID - AND ITM_ID = V_ITM_ID ; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE(''); - --DBMS_OUTPUT.PUT_LINE('Fetched Code Name not found. ITM_ID = ' || V_ITM_ID); - END IF; - - - RETURN V_SN; - -END GET_ITEM_SN; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_ITEM_LEVEL -( - V_TBL_ID IN TN_ITM_LIST.TBL_ID%TYPE, - V_ORG_ID IN TN_ITM_LIST.ORG_ID%TYPE, - V_OBJ_VAR_ID IN TN_ITM_LIST.OBJ_VAR_ID%TYPE -) -/********************************************************** - ϸ : GET_ITM_LEVEL - : 0.0.0.1 - ۼ : 2006.9. 14 - ۼ : ̵ - Use Case : - : з -***********************************************************/ -RETURN VARCHAR2 IS - V_SN VARCHAR2(3); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT to_char(nvl(LVL_CO,0)) - INTO V_SN - FROM TN_OBJ_ITM_CLS - WHERE TBL_ID = V_TBL_ID - AND ORG_ID = V_ORG_ID - AND OBJ_VAR_ID = V_OBJ_VAR_ID ; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE(''); - --DBMS_OUTPUT.PUT_LINE('Fetched Code Name not found. LVL_CO = ' || V_OBJ_VAR_ID); - END IF; - - - RETURN V_SN; - -END GET_ITEM_LEVEL; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_FTN_VAL_CODE2 -( - V_ORG_ID IN TN_ITM_LIST.ORG_ID%TYPE, - V_TBL_ID IN TN_ITM_LIST.TBL_ID%TYPE, - V_OBJ_VAR_ID IN VARCHAR2 -) -RETURN VARCHAR2 - IS - sql_stmt VARCHAR2(350); - ftn_val_at VARCHAR2(1); - RESULT VARCHAR2(40); -/********************************************************** - ϸ : GET_PRD_SMBL - : 0.0.0.1 - ۼ : 2006. 11. 21 - ۼ : ȼ - Use Case : - : -***********************************************************/ -BEGIN - ftn_val_at := 'Y'; - sql_stmt := 'select ITM_ID from TN_ITM_LIST where (ORG_ID, TBL_ID, OBJ_VAR_ID) IN (select ORG_ID, TBL_ID, OBJ_VAR_ID from TN_ITM_LIST where (ORG_ID, TBL_ID, ITM_ID) IN (select ORG_ID, TBL_ID, '||V_OBJ_VAR_ID||' from TN_DIM where ORG_ID =:2 and TBL_ID=:3 and rownum=1) and ORG_ID =:4 and TBL_ID=:5) and FTN_VAL_AT = :6'; - BEGIN - EXECUTE IMMEDIATE sql_stmt INTO RESULT USING V_ORG_ID, V_TBL_ID, V_ORG_ID, V_TBL_ID, ftn_val_at; - --EXECUTE IMMEDIATE 'select itm_id from tn_itm_list where org_id=:1 and tbl_id=:2 and rownum=1' INTO RESULT using V_ORG_ID,V_TBL_ID; - EXCEPTION - WHEN NO_DATA_FOUND - THEN - RESULT := '13999002'; - END; - - RETURN RESULT; -END; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_FTN_VAL_CODE -( - V_ORG_ID IN TN_ITM_LIST.ORG_ID%TYPE, - V_TBL_ID IN TN_ITM_LIST.TBL_ID%TYPE, - V_OBJ_VAR_ID IN TN_ITM_LIST.OBJ_VAR_ID%TYPE -) -RETURN VARCHAR2 - IS - RESULT VARCHAR2(40); -BEGIN - BEGIN - SELECT itm_id INTO RESULT - FROM tn_itm_list - WHERE org_id = V_ORG_ID - AND tbl_id = V_TBL_ID - AND var_lvl_co = 1 - AND obj_var_id = V_OBJ_VAR_ID - AND char_itm_at='N' - AND ftn_val_at ='Y'; - EXCEPTION - WHEN NO_DATA_FOUND - THEN - RESULT := '13999002'; - END; - - RETURN RESULT; -END; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_FTN_VAL_AT ( - in_org_id IN TN_ITM_LIST.ORG_ID%TYPE, - in_tbl_id IN TN_ITM_LIST.TBL_ID%TYPE, - in_itm_id IN TN_ITM_LIST.ITM_ID%TYPE -) -/********************************************************** - ϸ : GET_OBJ_VAR_ID - : 0.0.0.1 - ۼ : 2006. 10. 16. - ۼ : - Use Case : - : ׸ڵ忡 ׸з д´.. -**********************************************************/ -RETURN TN_ITM_LIST.FTN_VAL_AT%TYPE IS - v_result TN_ITM_LIST.FTN_VAL_AT%TYPE := NULL; -BEGIN - SELECT - FTN_VAL_AT - INTO - v_result - FROM - TN_ITM_LIST - WHERE - ORG_ID = in_org_id AND - TBL_ID = in_tbl_id AND - ITM_ID = in_itm_id; - - RETURN v_result; - -EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN NULL; - - WHEN OTHERS THEN - RAISE; - -END GET_FTN_VAL_AT; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.get_emp_name ( - in_emp_id IN tn_emp.emp_id%TYPE, - in_org_id IN tn_emp.org_id%TYPE -) - RETURN VARCHAR2 -IS - v_emp_nm VARCHAR2 (50); -/****************************************************************************** - NAME: GET_EMP_NAME - : 0.0.0.1 - ۼ : 2006.9. 02 - ۼ : α - Use Case : - : ڸ -******************************************************************************/ -BEGIN - SELECT emp_nm - INTO v_emp_nm - FROM tn_emp - WHERE emp_id = in_emp_id AND org_id = in_org_id; - - IF SQL%NOTFOUND THEN - v_emp_nm := NULL ; - END IF; - - RETURN v_emp_nm; - -END get_emp_name; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_PRD_SE_LIST( - in_org_id IN TN_STBL_RECD_INFO.org_id%TYPE, - in_tbl_id IN TN_STBL_RECD_INFO.tbl_id%TYPE -) -/****************************************************************************** - NAME : GET_PRD_SE_LIST - : 0.0.0.1 - ۼ : 2007.1. 16 - ۼ : ̱ - Use Case : - : ֱ⸮Ʈ -******************************************************************************/ -RETURN VARCHAR2 IS - v_prd_se VARCHAR2(20); -BEGIN - - DBMS_OUTPUT.ENABLE; - - select SUBSTR (MAX (SYS_CONNECT_BY_PATH (prd_se, ',')), 2) INTO v_prd_se - from ( - select prd_se, ROW_NUMBER () OVER (ORDER BY prd_se) rnum from tn_stbl_recd_info where org_id = in_org_id and tbl_id = in_tbl_id - ) - START WITH rnum = 1 - CONNECT BY PRIOR rnum = rnum - 1; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE(''); - --DBMS_OUTPUT.PUT_LINE('Fetched Emp Name not found. end_prd_de = ' || v_end_prd_de); - END IF; - - RETURN v_prd_se; - -END GET_PRD_SE_LIST; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_PRD_NAME -( - V_CD IN TC_CD_INFO.CD_ID%TYPE, - V_LANG IN VARCHAR2 := 'KOR' -) -/********************************************************** - ϸ : GET_PRD_NAME - : 0.0.0.1 - ۼ : 2006.8. 29 - ۼ : ְ - Use Case : - : Ⱓ  ° -***********************************************************/ -RETURN VARCHAR2 IS - V_NM VARCHAR2(100); - V_NM_KOR VARCHAR2(100); - V_NM_ENG VARCHAR2(100); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT DISTINCT PRD_NM, PRD_ENG_NM - INTO V_NM_KOR, V_NM_ENG - FROM TC_PRD_INFO - WHERE PRD_SE=V_CD; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE('Fetched Code Name not found. CD_ID = ' || V_CD); - END IF; - - IF V_LANG = 'KOR' THEN - V_NM := V_NM_KOR; - ELSIF V_LANG = 'ENG' THEN - V_NM := V_NM_ENG; - ELSE - V_NM := ''; - DBMS_OUTPUT.PUT_LINE('Language option only ''KOR'' or ''ENG (or NULL)'); - END IF; - - RETURN V_NM; - -END GET_PRD_NAME; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_DIM_ITM_RCGN_SN -( - in_org_id IN TN_DIM.ORG_ID%TYPE, - in_tbl_id IN TN_DIM.TBL_ID%TYPE, - in_char_itm_id IN TN_DIM.ITM_RCGN_SN%TYPE, - in_ov_l1_id IN TN_DIM.OV_L1_ID%TYPE, - in_ov_l2_id IN TN_DIM.OV_L2_ID%TYPE, - in_ov_l3_id IN TN_DIM.OV_L3_ID%TYPE, - in_ov_l4_id IN TN_DIM.OV_L4_ID%TYPE, - in_ov_l5_id IN TN_DIM.OV_L5_ID%TYPE, - in_ov_l6_id IN TN_DIM.OV_L6_ID%TYPE, - in_ov_l7_id IN TN_DIM.OV_L7_ID%TYPE, - in_ov_l8_id IN TN_DIM.OV_L8_ID%TYPE -) -/********************************************************** - ϸ : GET_DIM_ITM_RCGN_SN - : 0.0.0.1 - ۼ : 2006. 9. 7. - ۼ : - Use Case : - : ǥ ׸νĹȣ б -***********************************************************/ -RETURN NUMBER IS - v_itm_rcgn_sn TN_DIM.ITM_RCGN_SN%TYPE := NULL; -BEGIN - SELECT - ITM_RCGN_SN - INTO - v_itm_rcgn_sn - FROM - TN_DIM - WHERE - ORG_ID = in_org_id AND - TBL_ID = in_tbl_id AND - CHAR_ITM_ID = in_char_itm_id AND - OV_L1_ID = in_ov_l1_id AND - OV_L2_ID = in_ov_l2_id AND - OV_L3_ID = in_ov_l3_id AND - OV_L4_ID = in_ov_l4_id AND - OV_L5_ID = in_ov_l5_id AND - OV_L6_ID = in_ov_l6_id AND - OV_L7_ID = in_ov_l7_id AND - OV_L8_ID = in_ov_l8_id; - - RETURN v_itm_rcgn_sn; -EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN NULL; - WHEN OTHERS THEN - RETURN NULL; - -END GET_DIM_ITM_RCGN_SN; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_CODE_PUB_SE -( - V_CD_NM IN TC_CD_INFO.CD_NM%TYPE -) -/********************************************************** - ϸ : GET_CODE_PUB_SE - : 0.0.0.1 - ۼ : 2006.9. 15 - ۼ : ̵ - Use Case : - : ڵ带  ° -***********************************************************/ -RETURN VARCHAR2 IS - V_CD_ID VARCHAR2(100); - - -BEGIN - - BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT CD_ID - INTO V_CD_ID - FROM TC_CD_INFO - WHERE CD_NM = V_CD_NM - AND UP_CD_ID='21101101'; - - - EXCEPTION - WHEN NO_DATA_FOUND - THEN - V_CD_ID := V_CD_NM; - END; - - RETURN V_CD_ID; -END GET_CODE_PUB_SE; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_CODE_NAME_UPITEM -( - V_CD IN TC_CD_INFO.CD_ID%TYPE, - V_LANG IN VARCHAR2 := 'KOR' -) -/********************************************************** - ϸ : GET_CODE_NAME_UPITEM - : 0.0.0.1 - ۼ : 2006.9. 15 - ۼ : ̵ - Use Case : - :  ° -***********************************************************/ -RETURN VARCHAR2 IS - V_NM VARCHAR2(100); - V_NM_KOR VARCHAR2(100); - V_NM_ENG VARCHAR2(100); - V_UPITEM VARCHAR2(100); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT TRIM(CD_NM), CD_ENG_NM - INTO V_NM_KOR, V_NM_ENG - FROM TC_CD_INFO - WHERE CD_ID = V_CD; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE(''); - --DBMS_OUTPUT.PUT_LINE('Fetched Code Name not found. CD_ID = ' || V_CD); - END IF; - - IF V_LANG = 'KOR' THEN - IF V_NM_KOR = 'Ÿ' THEN - SELECT CD_NM - INTO V_UPITEM - FROM TC_CD_INFO - WHERE CD_ID = (SELECT distinct UP_ITM_ID FROM TN_ITM_LIST WHERE ITM_ID = V_CD); - - V_NM := V_UPITEM || '-' || V_NM_KOR ; - ELSE - V_NM := V_NM_KOR ; - END IF; - - - ELSIF V_LANG = 'ENG' THEN - V_NM := V_NM_ENG; - ELSE - V_NM := ''; - --DBMS_OUTPUT.PUT_LINE('Language option only ''KOR'' or ''ENG (or NULL)'); - END IF; - - - - - RETURN V_NM; -END GET_CODE_NAME_UPITEM; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.get_code_eng_name -(p_cd_id IN tc_cd_info.CD_id%TYPE) RETURN VARCHAR2 IS -v_cd_eng_nm VARCHAR2(1000); -BEGIN -SELECT CD_eng_nm -INTO v_cd_eng_nm -FROM tc_cd_info -WHERE CD_id = p_cd_id; -RETURN v_cd_eng_nm; -END get_code_eng_nAmE; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.Get_Code_Cd_Name -(p_cd_id IN TC_CD_INFO.CD_id%TYPE) RETURN VARCHAR2 IS -v_cd_cd VARCHAR2(1000); -BEGIN -SELECT DECODE(SUBSTR(cd_id,1,5),'13102',SUBSTR(cd_cn,INSTR(cd_cn,'.')+1),cd_cn) -INTO v_cd_cd -FROM TC_CD_INFO -WHERE CD_id = p_cd_id; -RETURN v_cd_cd; -END Get_Code_Cd_Name; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_CODE_ABBR_NAME -( - V_CD IN TC_CD_INFO.CD_ID%TYPE, - V_LANG IN VARCHAR2 := 'KOR' -) -/********************************************************** - ϸ : GET_CODE_ABBR_NAME - : 0.0.0.1 - ۼ : 2006.11.14 - ۼ : ְ - Use Case : - : ڵ  ° -***********************************************************/ -RETURN VARCHAR2 IS - V_NM VARCHAR2(100); - V_NM_KOR VARCHAR2(100); - V_NM_ENG VARCHAR2(100); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT DECODE(CD_ABBR_NM, NULL, CD_NM, CD_ABBR_NM), DECODE(CD_ABBR_ENG_NM, NULL, CD_ENG_NM, CD_ABBR_ENG_NM) - INTO V_NM_KOR, V_NM_ENG - FROM TC_CD_INFO - WHERE CD_ID = V_CD; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE('Fetched Code Name not found. CD_ID = ' || V_CD); - END IF; - - IF V_LANG = 'KOR' THEN - V_NM := V_NM_KOR; - ELSIF V_LANG = 'ENG' THEN - V_NM := V_NM_ENG; - ELSE - V_NM := ''; - DBMS_OUTPUT.PUT_LINE('Language option only ''KOR'' or ''ENG (or NULL)'); - END IF; - - RETURN V_NM; - -END GET_CODE_ABBR_NAME; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_CLS_PUB_SE ( - in_org_id IN TN_ITM_LIST.ORG_ID%TYPE, - in_tbl_id IN TN_ITM_LIST.TBL_ID%TYPE, - in_itm_id IN TN_ITM_LIST.ITM_ID%TYPE -) -/********************************************************** - ϸ : GET_CLS_PUB_SE - : 0.0.0.1 - ۼ : 2006. 10. 16. - ۼ : - Use Case : - : з ǥ б. - ⺻ ̸, ȯѴ. -**********************************************************/ -RETURN TN_ITM_LIST.PUB_SE%TYPE IS - v_result TN_ITM_LIST.PUB_SE%TYPE; -BEGIN - v_result := 0; - - SELECT - MIN(DECODE (PUB_SE, NULL, '1210113', '1210110', '1210113', PUB_SE)) PUB_SE - INTO - v_result - FROM - TN_ITM_LIST - WHERE - ORG_ID = in_org_id AND - TBL_ID = in_tbl_id AND - OBJ_VAR_ID = - ( - SELECT - OBJ_VAR_ID - FROM - TN_ITM_LIST - WHERE - ORG_ID = in_org_id AND - TBL_ID = in_tbl_id AND - ITM_ID = in_itm_id - ); - - RETURN v_result; - -EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN NULL; - - WHEN OTHERS THEN - RAISE; - -END GET_CLS_PUB_SE; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_CODE_NAME -( - V_CD IN TC_CD_INFO.CD_ID%TYPE, - V_LANG IN VARCHAR2 := 'KOR' -) -/********************************************************** - ϸ : GET_CODE_NAME - : 0.0.0.1 - ۼ : 2006.8. 29 - ۼ : ְ - Use Case : - : ڵ  ° -***********************************************************/ -RETURN VARCHAR2 IS - V_NM VARCHAR2(100); - V_NM_KOR VARCHAR2(100); - V_NM_ENG VARCHAR2(100); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT substr(CD_NM,1,100), substr(CD_ENG_NM,1,100) - INTO V_NM_KOR, V_NM_ENG - FROM TC_CD_INFO - WHERE CD_ID = V_CD; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE('Fetched Code Name not found. CD_ID = ' || V_CD); - END IF; - - IF V_LANG = 'KOR' THEN - V_NM := V_NM_KOR; - ELSIF V_LANG = 'ENG' THEN - V_NM := V_NM_ENG; - ELSE - V_NM := ''; - DBMS_OUTPUT.PUT_LINE('Language option only ''KOR'' or ''ENG (or NULL)'); - END IF; - - RETURN V_NM; - -END GET_CODE_NAME; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_CLASS_P ( - in_cmok_code IN VARCHAR2, - in_cname_p IN VARCHAR2 -) RETURN VARCHAR2 IS - v_idx NUMBER := 1; - v_next_idx NUMBER := 1; - v_result VARCHAR2(2000) := NULL; - v_exitFlag BOOLEAN := FALSE; - v_cur_class VARCHAR2(2000) := NULL; - v_class_name VARCHAR2(2000) := NULL; -BEGIN - LOOP - v_next_idx := INSTR (in_cname_p, '*', v_idx); - EXIT WHEN v_next_idx = 0; - - --DBMS_OUTPUT.PUT_lINE ('v_next_idx = ' || TO_CHAR (v_next_idx)); - v_cur_class := SUBSTR (in_cname_p, v_idx, v_next_idx - v_idx); - EXIT WHEN v_cur_class = NULL; - - --DBMS_OUTPUT.PUT_lINE ('v_cur_class = ' || v_cur_class); - - - SELECT - CD_NM - INTO - v_class_name - FROM - TC_CD_INFO - WHERE - CD_ID = v_cur_class; - - v_result := v_result || v_class_name || '*'; - v_idx := v_next_idx + 1; - - END LOOP; - - RETURN TRIM (v_result); -END GET_CLASS_P; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_CELL_PRD_INFO ( -in_rcgn IN TN_CELL_RECD_INFO.ITM_RCGN_SN%TYPE, -in_prd IN TN_CELL_RECD_INFO.PRD_SE%TYPE -) -/****************************************************** - ϸ : GET_CELL_PRD_INFO - : 0.0.0.1 - ۼ : 2006. 9. 28. - ۼ : - Use Case - : / д´. -*******************************************************/ -RETURN Types.cursorType IS - v_cursor Types.cursorType; -BEGIN - OPEN v_cursor FOR - SELECT - strt_prd_de, end_prd_de - FROM - TN_CELL_RECD_INFO - WHERE - ITM_RCGN_SN = in_rcgn - AND PRD_SE = in_prd; - - RETURN v_cursor; -EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN v_cursor; - WHEN OTHERS THEN - RAISE; - -END GET_CELL_PRD_INFO; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_CD_INFO_LIST ( - in_cd_id IN TC_CD_INFO.CD_ID%TYPE DEFAULT NULL -) -/****************************************************** - ϸ : GET_CD_INFO_LIST - : 0.0.0.1 - ۼ : 2006. 9. 25. - ۼ : - Use Case : - : Էµ ڵ(in_cd_id) ڵ带 д´. -*******************************************************/ -RETURN Types.cursorType IS - v_cursor Types.cursorType; -BEGIN - IF in_cd_id IS NULL THEN - RAISE_APPLICATION_ERROR (-20001,' ڵ带 ʾҽϴ.'); - END IF; - - OPEN v_cursor FOR - - SELECT - CD_ID, CD_NM, CD_ENG_NM, UP_CD_ID - FROM - ( - SELECT /*+ INDEX (TC_CD_INFO XAK1TC_CD_INFO) */ - CD_ID, CD_NM, CD_ENG_NM, UP_CD_ID - FROM - TC_CD_INFO - WHERE - (CD_TP_SE, CD_PRT_SE) = - ( - SELECT /*+ INDEX (TC_CD_INFO IDX1_TC_CD_INFO) */ - DISTINCT CD_TP_SE, CD_PRT_SE - FROM - TC_CD_INFO - WHERE - UP_CD_ID = in_cd_id - ) - ) - CONNECT BY PRIOR CD_ID = UP_CD_ID - START WITH UP_CD_ID = in_cd_id; - - RETURN v_cursor; -EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN v_cursor; - WHEN OTHERS THEN - RAISE; -END GET_CD_INFO_LIST; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_CD_CN -( - v_cd_tp_se TC_CD_INFO.CD_TP_SE%TYPE, - v_cd_prt_se TC_CD_INFO.CD_PRT_SE%TYPE, - v_up_cd_id TC_CD_INFO.UP_CD_ID%TYPE, - v_cd_id TC_CD_INFO.CD_ID%TYPE -) -/********************************************************** - ϸ : GET_CD_CN - : 0.0.0.1 - ۼ : 2006.9. 21 - ۼ : ȣ - Use Case : - : ڵ带 Լ -***********************************************************/ -RETURN VARCHAR2 IS -v_cd_cn VARCHAR2(40); -BEGIN - --DBMS_OUTPUT.ENABLE; - --IF v_up_cd_id is null THEN - -- ü ڵ忡 Ÿ+ ڵ ̴. - v_cd_cn := REPLACE( v_cd_id, CONCAT(v_cd_tp_se,v_cd_prt_se), ''); - --ELSE - -- ü ڵ忡 ڵ带 ڵ ̴. - --v_cd_cn := REPLACE( v_cd_id, v_up_cd_id, ''); - --END IF; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE(''); - --DBMS_OUTPUT.PUT_LINE('Fetched Code Name not found. CD_ID = ' || v_cd_id); - END IF; - RETURN v_cd_cn; -END GET_CD_CN; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_WGT_CO -( - V_CD IN TN_ITM_LIST.OBJ_VAR_ID%TYPE -) -/********************************************************** - ϸ : GET_WGT_CO - : 0.0.0.1 - ۼ : 2006.8. 29 - ۼ : ְ - Use Case : - : ڵ  ° -***********************************************************/ -RETURN VARCHAR2 IS - V_WGTCO TN_ITM_LIST.WGT_CO%TYPE := 0; -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT WGT_CO - INTO V_WGTCO - FROM TN_ITM_LIST - WHERE OBJ_VAR_ID = V_CD; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE('Fetched WgtCo not found. ID = ' || V_CD); - END IF; - - if V_WGTCO is null then - V_WGTCO := 0; - end if; - - RETURN V_WGTCO; -END GET_WGT_CO; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_USER_NAME( - in_emp_id IN tn_emp.emp_id%TYPE -) -/****************************************************************************** - NAME : GET_USER_NAME - : 0.0.0.1 - ۼ : 2006.9. 28 - ۼ : ȣ - Use Case : - : ڸ -******************************************************************************/ -RETURN VARCHAR2 IS - v_emp_nm VARCHAR2 (50); -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT emp_nm INTO v_emp_nm - FROM tn_emp - WHERE emp_id = in_emp_id; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE(''); - --DBMS_OUTPUT.PUT_LINE('Fetched Emp Name not found. emp_nm = ' || v_emp_nm); - END IF; - - RETURN v_emp_nm; - -END GET_USER_NAME; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_UNIT_ABBR_NAME -( - V_CD IN TC_CD_INFO.CD_ID%TYPE -) -/********************************************************** - ϸ : GET_UNIT_ABBR_NAME - : 0.0.0.1 - ۼ : 2006.11.21 - ۼ : ȼ - Use Case : - :  ° -***********************************************************/ -RETURN VARCHAR2 IS - V_NM VARCHAR2(100); - -BEGIN - BEGIN - - SELECT decode(CD_ABBR_NM, NULL, CD_NM, CD_ABBR_NM) - INTO V_NM - FROM TC_CD_INFO - WHERE CD_ID = V_CD; - - EXCEPTION - WHEN NO_DATA_FOUND - THEN - V_NM := ''; - END; - - RETURN V_NM; - -END GET_UNIT_ABBR_NAME; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_TN_ITM_LIST_FTN -( - in_org_id IN TN_STBL_INFO.ORG_ID%TYPE, - in_tbl_id IN TN_STBL_INFO.TBL_ID%TYPE, - in_obj_var_id IN TN_ITM_LIST.OBJ_VAR_ID%TYPE -) -/********************************************************** - ϸ : FN_IN_GET_OV_LVL - : 0.0.0.1 - ۼ : 2006. 9. 7. - ۼ : - Use Case : - : ǥ з 󺯼 -***********************************************************/ -RETURN TN_ITM_LIST.ITM_ID%TYPE IS - result TN_ITM_LIST.ITM_ID%TYPE := NULL; -BEGIN - IF in_obj_var_id IS NULL THEN - RETURN NULL; - END IF; - - SELECT - DECODE (MIN (ITM_ID), NULL, '13999002', MIN(ITM_ID)) - INTO - result - FROM - TN_ITM_LIST - WHERE - OBJ_VAR_ID = in_obj_var_id; - - RETURN result; -EXCEPTION - WHEN OTHERS THEN - RAISE; --- RETURN NULL; - -END GET_TN_ITM_LIST_FTN; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_TN_DIM_OV_LVL -( - in_org_id IN TN_STBL_INFO.ORG_ID%TYPE, - in_tbl_id IN TN_STBL_INFO.TBL_ID%TYPE, - in_obj_var_id IN TN_ITM_LIST.OBJ_VAR_ID%TYPE -) -/********************************************************** - ϸ : FN_IN_GET_OV_LVL - : 0.0.0.1 - ۼ : 2006. 9. 7. - ۼ : - Use Case : - : ǥ з 󺯼 -***********************************************************/ -RETURN NUMBER IS - LVL NUMBER; -BEGIN - IF in_obj_var_id IS NULL THEN - RETURN NULL; - END IF; - - SELECT - DISTINCT B.LVL - INTO - LVL - FROM - TN_ITM_LIST A, - ( - SELECT MIN(OV_L1_ID) ITM_ID, 1 LVL FROM TN_DIM WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND OV_L1_ID <> '13999002' - UNION - SELECT MIN(OV_L2_ID) ITM_ID, 2 LVL FROM TN_DIM WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND OV_L2_ID <> '13999002' - UNION - SELECT MIN(OV_L3_ID) ITM_ID, 3 LVL FROM TN_DIM WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND OV_L3_ID <> '13999002' - UNION - SELECT MIN(OV_L4_ID) ITM_ID, 4 LVL FROM TN_DIM WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND OV_L4_ID <> '13999002' - UNION - SELECT MIN(OV_L5_ID) ITM_ID, 5 LVL FROM TN_DIM WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND OV_L5_ID <> '13999002' - UNION - SELECT MIN(OV_L6_ID) ITM_ID, 6 LVL FROM TN_DIM WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND OV_L6_ID <> '13999002' - UNION - SELECT MIN(OV_L7_ID) ITM_ID, 7 LVL FROM TN_DIM WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND OV_L7_ID <> '13999002' - UNION - SELECT MIN(OV_L8_ID) ITM_ID, 8 LVL FROM TN_DIM WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND OV_L8_ID <> '13999002' - ) B - WHERE - A.ORG_ID = in_org_id AND - A.TBL_ID = in_tbl_id AND - A.OBJ_VAR_ID = in_obj_var_id AND - A.ITM_ID = B.ITM_ID; - - RETURN LVL; -EXCEPTION - WHEN OTHERS THEN - RAISE; --- RETURN NULL; - -END GET_TN_DIM_OV_LVL; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_TABLE_NAME ( - V_TBL_ID TN_STBL_INFO.TBL_ID%TYPE, - V_ORG_ID TN_STBL_INFO.ORG_ID%TYPE, - V_LANG VARCHAR2 := 'KOR' -) -/********************************************************** - ϸ : GET_TABLE_NAME - : 0.0.0.1 - ۼ : 2006.8. 29 - ۼ : ְ - Use Case : - :  Ͽ ڵ ´. -***********************************************************/ -RETURN VARCHAR2 IS - - V_TBL_NM TN_STBL_INFO.TBL_NM%TYPE; - V_TBL_ENG_NM TN_STBL_INFO.TBL_NM%TYPE; - V_RESULT_NM TN_STBL_INFO.TBL_NM%TYPE; -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT TBL_NM, TBL_ENG_NM - INTO V_TBL_NM, V_TBL_ENG_NM - FROM TN_STBL_INFO - WHERE TBL_ID = V_TBL_ID - AND ORG_ID = V_ORG_ID; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE('Fatched Table Name not found. TBL_ID = ' || V_TBL_ID); - END IF; - - IF V_LANG = 'KOR' THEN - V_RESULT_NM := V_TBL_NM; - ELSIF V_LANG = 'ENG' THEN - V_RESULT_NM := V_TBL_ENG_NM; - ELSE - V_RESULT_NM := ''; - DBMS_OUTPUT.PUT_LINE('Language option only ''KOR'' OR ''ENG (OR NULL)'); - END IF; - - RETURN V_RESULT_NM; - -END GET_TABLE_NAME; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_SUB_STRING( - in_name IN VARCHAR2, - in_max IN INT, - in_add_str IN VARCHAR2 -) -/****************************************************************************** - NAME : GET_SUB_STRING - : 0.0.0.1 - ۼ : 2006.11. 6 - ۼ : ȣ - Use Case : - : Ȯ subString -******************************************************************************/ -RETURN VARCHAR2 IS - v_name VARCHAR2(1000) := null; - v_length INT :=0; -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT LENGTH(in_name) INTO v_length FROM DUAL; - - IF v_length > in_max THEN - select SUBSTR(in_name,0,in_max-LENGTH(in_add_str))||in_add_str INTO v_name FROM DUAL; - ELSE - v_name := in_name; - END IF; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE(''); - --DBMS_OUTPUT.PUT_LINE('Fetched Name not found. in_name = ' || v_name); - END IF; - - RETURN v_name; - -END GET_SUB_STRING; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_STBL_VIEW_COUNT -( - vTblId IN TN_STBL_INFO.TBL_ID%TYPE -) -/********************************************************** - ϸ : GET_STBL_VIEW_COUNT - : 0.0.0.1 - ۼ : 2007. 05. 11 - ۼ : ְ - Use Case : - : ǥ ȸ īƮ ´. -***********************************************************/ -RETURN VARCHAR2 IS - vResult NUMBER(10); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT count(*) - INTO vResult - FROM T_SM_LOG - WHERE TBL_ID = vTblId; - - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE('Fetched STBL_VIEW_COUNT not found. TBL_ID = ' || vTblId); - END IF; - - RETURN vResult; - -END GET_STBL_VIEW_COUNT; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.get_stbl_unit_id -(p_org_id IN tn_stbl_info.org_id%TYPE, p_tbl_id IN tn_stbl_info.tbl_id%TYPE) RETURN VARCHAR2 IS v_unit_id VARCHAR2(40); -BEGIN -SELECT unit_id -INTO v_unit_id -FROM tn_stbl_info -WHERE org_id = p_org_id -AND tbl_id = p_tbl_id ; -RETURN v_unit_id; -END get_stbl_unit_id; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_STBL_RECENT_PRD -( - vTblId IN TN_STBL_INFO.TBL_ID%TYPE -) -/********************************************************** - ϸ : GET_STBL_RECENT_PRD - : 0.0.0.1 - ۼ : 2007. 05. 11 - ۼ : ְ - Use Case : - : ǥ ֱ Է±Ⱓ ´. - , YYYYMMDD Ѵ. -***********************************************************/ -RETURN VARCHAR2 IS - vResult VARCHAR2(8); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT MAX(DECODE(LENGTH(END_PRD_DE), 4, END_PRD_DE||'1231', DECODE(LENGTH(END_PRD_DE), 6, END_PRD_DE||'31', END_PRD_DE))) AS RECENT_PRD - INTO vResult - FROM TN_STBL_RECD_INFO - WHERE TBL_ID = vTblId; - - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE('Fetched STBL_RECENT_PRD not found. TBL_ID = ' || vTblId); - END IF; - - RETURN vResult; - -END GET_STBL_RECENT_PRD; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_STBL_PUB_SE ( - in_org_id IN TN_STBL_INFO.ORG_ID%TYPE, - in_tbl_id IN TN_STBL_INFO.TBL_ID%TYPE -) -/********************************************************** - ϸ : GET_STBL_PUB_SE - : 0.0.0.1 - ۼ : 2006. 10. 16. - ۼ : - Use Case : - : ǥ ǥ б. -**********************************************************/ -RETURN TN_STBL_INFO.PUB_SE%TYPE IS - v_result TN_STBL_INFO.PUB_SE%TYPE := NULL; -BEGIN - v_result := 0; - - SELECT - PUB_SE - INTO - v_result - FROM - TN_STBL_INFO - WHERE - ORG_ID = in_org_id AND - TBL_ID = in_tbl_id; - - RETURN v_result; - -EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN v_result; - - WHEN OTHERS THEN - RAISE; - -END GET_STBL_PUB_SE; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_STBL_PATH_ROOTID -( - vTblId IN TN_STBL_INFO.TBL_ID%TYPE -) -/********************************************************** - ϸ : GET_STBL_PATH_ROOTID - : 0.0.0.1 - ۼ : 2007. 05. 11 - ۼ : ְ - Use Case : - : ش ǥ Ͽ Ʈ ID ´. -***********************************************************/ -RETURN VARCHAR2 IS - vResult VARCHAR2(8); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT MAX(DECODE(LENGTH(END_PRD_DE), 4, END_PRD_DE||'1231', DECODE(LENGTH(END_PRD_DE), 6, END_PRD_DE||'31', END_PRD_DE))) - INTO vResult - FROM TN_STBL_RECD_INFO - WHERE TBL_ID = vTblId AND ORG_ID = '214'; - - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE('Fetched STBL_RECENT_PRD not found. TBL_ID = ' || vTblId); - END IF; - - RETURN vResult; - -END GET_STBL_PATH_ROOTID; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.DATE_FORMAT ( - V_DATE DATE, - V_CHAR_DATE IN VARCHAR2 := NULL -) -/********************************************************** - ϸ : DATE_FORMAT - : 0.0.0.1 - ۼ : 2006.8. 29 - ۼ : ְ - Use Case : - : DATE YYYY-MM-DD ڿ ȯѴ. -***********************************************************/ -RETURN VARCHAR2 IS - FORMAT_DATE VARCHAR2(20); -BEGIN - IF V_CHAR_DATE IS NULL THEN - FORMAT_DATE := TO_CHAR(V_DATE, 'YYYY-MM-DD'); - ELSE - FORMAT_DATE := TO_CHAR(TO_DATE(V_CHAR_DATE,'YYYYMMDD'), 'YYYY-MM-DD'); - END iF; - - RETURN FORMAT_DATE; - - EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN NULL; - WHEN OTHERS THEN - RETURN NULL; - -END DATE_FORMAT; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.FN_CHECK_DBLINK_SYNONYM ( - in_func IN VARCHAR2, - in_org_id IN TN_DBLINK_SYNM_INFO.ORG_ID%TYPE, - in_dblink_nm IN TN_DBLINK_SYNM_INFO.LINK_NM%TYPE, - in_synonym_nm IN VARCHAR2 DEFAULT NULL -) RETURN NUMBER -/********************************************************** - ϸ : FN_CHECK_DBLINK_SYNONYM - : 0.0.0.1 - ۼ : 2006. 10. 26. - ۼ : - Use Case : - : DB Link ˻Ѵ. - ó : in_function - 01 : DB Link - in_dblink_nm ̸ ϴ DB Link, Synonym ų - DB Link TN_DBLINK_SYNM_INFO.org_id = in_org_id - 02 : Synonym - Synonym ų - DB Link TN_DBLINK_SYNM_INFO.org_id = in_org_id - : - 0 : DB Link, Synonym - 1 : DB Link, Synonym Ұ -***********************************************************/ -IS - result NUMBER := 0; - v_dblink_cnt NUMBER := 0; - v_synonym_cnt NUMBER := 0; - v_org_dblink_cnt NUMBER := 0; -BEGIN - CASE in_func - WHEN '01' THEN -- DB LINK - --DBMS_OUTPUT.PUT_LINE ('Checking database link''s owner...'); - SELECT COUNT(SYNONYM_NAME) -- SYNONYM - INTO v_synonym_cnt - FROM USER_SYNONYMS - WHERE UPPER(DB_LINK) = UPPER (in_dblink_nm); - - IF v_synonym_cnt > 0 THEN -- SYNONYM ִ DBLINK ORG_ID ˻Ѵ. - --DBMS_OUTPUT.PUT_LINE ('DBLink has Synonyms...'); - SELECT COUNT(LINK_NM) - INTO v_org_dblink_cnt - FROM TN_DBLINK_SYNM_INFO - WHERE ORG_ID = in_org_id AND UPPER(LINK_NM) = UPPER(in_dblink_nm); - - IF v_org_dblink_cnt = 0 THEN - result := 1; - ELSE - result := 0; - END IF; - ELSE -- SYNONYM , - --DBMS_OUTPUT.PUT_LINE ('DBLink has no synonym...'); - SELECT COUNT(DB_LINK) -- DB LINK - INTO v_dblink_cnt - FROM USER_DB_LINKS - WHERE UPPER(DB_LINK) = UPPER(in_dblink_nm); - - IF v_dblink_cnt > 0 THEN -- DBLINK ִ DBLINK ORG_ID ˻ - --DBMS_OUTPUT.PUT_LINE ('DBLink is exist....'); - SELECT COUNT(LINK_NM) - INTO v_org_dblink_cnt - FROM TN_DBLINK_SYNM_INFO - WHERE ORG_ID = in_org_id AND UPPER(LINK_NM) = UPPER(in_dblink_nm); - - IF v_org_dblink_cnt = 0 THEN - --DBMS_OUTPUT.PUT_LINE ('different owner...'); - result := 1; - ELSE - --DBMS_OUTPUT.PUT_LINE ('same owner...'); - result := 0; - END IF; - ELSE - --DBMS_OUTPUT.PUT_LINE ('No dblinks...'); - result := 0; - END IF; - END IF; - WHEN '02' THEN - SELECT COUNT(SYNONYM_NAME) -- SYNONYM - INTO v_synonym_cnt - FROM USER_SYNONYMS - WHERE UPPER(SYNONYM_NAME) = UPPER(in_synonym_nm); - - IF v_synonym_cnt > 0 THEN -- SYNONYM ִ DBLINK ORG_ID ˻Ѵ. - SELECT COUNT(A.LINK_NM) - INTO v_org_dblink_cnt - FROM TN_DBLINK_SYNM_INFO A, USER_SYNONYMS B - WHERE A.ORG_ID = in_org_id AND UPPER(A.LINK_NM) = UPPER(in_dblink_nm) - AND UPPER(A.LINK_NM) = UPPER (B.DB_LINK) AND B.SYNONYM_NAME = UPPER(in_synonym_nm); - - IF v_org_dblink_cnt = 0 THEN - result := 1; - ELSE - result := 0; - END IF; - ELSE -- SYNONYM , - result := 0; - END IF ; - ELSE - RAISE_APPLICATION_ERROR (-20001, 'ǵ Դϴ.'); - END CASE; - - RETURN result; - -EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN 1; - WHEN OTHERS THEN - RETURN 1; -END FN_CHECK_DBLINK_SYNONYM; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.FN_IN_MANAGE_TN_DT ( - in_func IN VARCHAR2, -- ۾ - in_org_id IN TN_DT.ORG_ID%TYPE, -- ȣ - in_tbl_id IN TN_DT.TBL_ID%TYPE, -- ǥ ID - in_char_itm_id IN TN_DIM.CHAR_ITM_ID%TYPE DEFAULT NULL, -- ǥƯ׸ - in_ov_l1_id IN TN_DIM.OV_L1_ID%TYPE DEFAULT NULL, -- 󺯼 L1 - in_ov_l2_id IN TN_DIM.OV_L1_ID%TYPE DEFAULT NULL, -- 󺯼 L2 - in_ov_l3_id IN TN_DIM.OV_L1_ID%TYPE DEFAULT NULL, -- 󺯼 L3 - in_ov_l4_id IN TN_DIM.OV_L1_ID%TYPE DEFAULT NULL, -- 󺯼 L4 - in_ov_l5_id IN TN_DIM.OV_L1_ID%TYPE DEFAULT NULL, -- 󺯼 L5 - in_ov_l6_id IN TN_DIM.OV_L1_ID%TYPE DEFAULT NULL, -- 󺯼 L6 - in_ov_l7_id IN TN_DIM.OV_L1_ID%TYPE DEFAULT NULL, -- 󺯼 L7 - in_ov_l8_id IN TN_DIM.OV_L1_ID%TYPE DEFAULT NULL, -- 󺯼 L8 - in_prd_se IN TN_DT.PRD_SE%TYPE DEFAULT NULL, -- Ⱓ - in_prd_de IN TN_DT.PRD_DE%TYPE DEFAULT NULL, -- Ⱓڵ - in_dtval_co IN TN_DT.DTVAL_CO%TYPE DEFAULT 0, -- ġ - in_dtval_cn IN TN_DT.DTVAL_CN%TYPE DEFAULT NULL, -- ڰ - in_smbl_cn IN TN_DT.SMBL_CN%TYPE DEFAULT NULL, - in_cmmt_at IN TN_DT.CMMT_AT%TYPE DEFAULT NULL, -- ּ翩 - in_pub_se IN TN_DT.PUB_SE%TYPE DEFAULT NULL, -- ǥ - in_lst_chn_nm IN TN_DT.LST_CHN_NM%TYPE DEFAULT NULL -- -/********************************************************** - ϸ : FN_IN_MANAGE_TN_DT - : 0.0.0.1 - ۼ : 2006. 12. 7. - ۼ : - Use Case : - : ġ Է. - in_func = '10' - Ͱ ִ - ġ ڰ NULL ƴ UPDATE ó - ġ ڰ NULL DELETE ó - Ͱ - ġ ڰ NULL ƴ INSERT ó -***********************************************************/ -) RETURN VARCHAR2 -IS - v_result VARCHAR2(10) := NULL; - v_itm_rcgn_sn TN_DT.ITM_RCGN_SN%TYPE; - v_count NUMBER; -BEGIN - CASE in_func - WHEN '10' THEN - SELECT ITM_RCGN_SN - INTO v_itm_rcgn_sn - FROM TN_DIM - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_ID = in_char_itm_id AND - NVL (OV_L1_ID, ' ') = NVL (in_ov_l1_id, ' ') AND - NVL (OV_L2_ID, ' ') = NVL (in_ov_l2_id, ' ') AND - NVL (OV_L3_ID, ' ') = NVL (in_ov_l3_id, ' ') AND - NVL (OV_L4_ID, ' ') = NVL (in_ov_l4_id, ' ') AND - NVL (OV_L5_ID, ' ') = NVL (in_ov_l5_id, ' ') AND - NVL (OV_L6_ID, ' ') = NVL (in_ov_l6_id, ' ') AND - NVL (OV_L7_ID, ' ') = NVL (in_ov_l7_id, ' ') AND - NVL (OV_L8_ID, ' ') = NVL (in_ov_l8_id, ' '); - - --DBMS_OUTPUT.PUT_LINE ('v_itm_rcgn_sn============' || TO_CHAR(v_itm_rcgn_sn)); - SELECT COUNT(PRD_DE) - INTO v_count - FROM TN_DT - WHERE ITM_RCGN_SN = v_itm_rcgn_sn AND PRD_SE = in_prd_se AND PRD_DE = in_prd_de; - - IF v_count = 0 THEN - IF in_dtval_co IS NOT NULL OR in_dtval_cn IS NOT NULL THEN - INSERT INTO TN_DT ( - ITM_RCGN_SN, PRD_SE, PRD_DE, ORG_ID, TBL_ID, - DTVAL_CO, DTVAL_CN, SMBL_CN, PUB_SE, - LST_CHN_DE, LST_CHN_NM - ) VALUES ( - v_itm_rcgn_sn, in_prd_se, in_prd_de, in_org_id, in_tbl_id, - in_dtval_co, in_dtval_cn, in_smbl_cn, GET_STBL_PUB_SE(in_org_id, in_tbl_id), - TO_CHAR(SYSDATE, 'YYYYMMDD'), in_lst_chn_nm - ); - SP_IN_UPDATE_CELL_RECD_INFO ('01', in_org_id, in_tbl_id, v_itm_rcgn_sn, in_prd_se, in_lst_chn_nm); - v_result := 'I'; - ELSE - v_result := 'N'; - END IF; - ELSE - IF in_dtval_co IS NOT NULL OR in_dtval_cn IS NOT NULL THEN - UPDATE TN_DT SET - DTVAL_CO = in_dtval_co, - DTVAL_CN = in_dtval_cn, - SMBL_CN = in_smbl_cn, - LST_CHN_DE = TO_CHAR(SYSDATE, 'YYYYMMDD'), - LST_CHN_NM = in_lst_chn_nm - WHERE - ITM_RCGN_SN = v_itm_rcgn_sn AND - PRD_SE = in_prd_se AND - PRD_DE = in_prd_de; - v_result := 'U'; - ELSE - DELETE TN_DT WHERE - ITM_RCGN_SN = v_itm_rcgn_sn AND - PRD_SE = in_prd_se AND - PRD_DE = in_prd_de; - v_result := 'D'; - SP_IN_UPDATE_CELL_RECD_INFO ('01', in_org_id, in_tbl_id, v_itm_rcgn_sn, in_prd_se, in_lst_chn_nm); - END IF; - END IF; - - ELSE - v_result := 'N'; - END CASE; - - RETURN v_result; -END FN_IN_MANAGE_TN_DT; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_PRD_SMBL -( - V_ORG_ID IN TN_RECD_PRD.ORG_ID%TYPE, - V_TBL_ID IN TN_RECD_PRD.TBL_ID%TYPE, - V_PRD_SE IN TN_RECD_PRD.PRD_SE%TYPE, - V_PRD_DE IN TN_RECD_PRD.PRD_DE%TYPE -) -RETURN VARCHAR2 - IS - RESULT VARCHAR2(5); -/********************************************************** - ϸ : GET_PRD_SMBL - : 0.0.0.1 - ۼ : 2006. 11. 10 - ۼ : ȼ - Use Case : - : ǥȣ - ( p : ġ - e : ġ - : ð迭Ǻҿ - x : кȣ ) -***********************************************************/ -BEGIN - BEGIN - SELECT decode(SMBL_CN, '', '', ' '||SMBL_CN||')') INTO RESULT FROM tn_recd_prd - WHERE org_id = V_ORG_ID - AND tbl_id = V_TBL_ID - AND prd_se = V_PRD_SE - AND prd_de = V_PRD_DE; - EXCEPTION - WHEN NO_DATA_FOUND - THEN - RESULT := ''; - END; - - RETURN RESULT; -END; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_SRVC_LIST_NAME (in_vw_cd IN TN_SRVC_LIST.VW_CD%TYPE, - in_list_id IN TN_SRVC_LIST.LIST_ID%TYPE) - RETURN VARCHAR2 -IS - v_srvc_list_name VARCHAR2 (100); -BEGIN - - SELECT decode(list_nm,null,list_eng_nm,list_nm) INTO v_srvc_list_name - FROM TN_SRVC_LIST - WHERE VW_CD = in_vw_cd AND LIST_ID=in_list_id; - - RETURN v_srvc_list_name; - -END GET_SRVC_LIST_NAME; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_STBL_NAME (in_tbl_id IN tn_stbl_info.tbl_id%TYPE) - RETURN VARCHAR2 -IS - v_tbl_nm VARCHAR2 (100); -BEGIN - SELECT tbl_nm - INTO v_tbl_nm - FROM tn_stbl_info - WHERE tbl_id = in_tbl_id; - - RETURN v_tbl_nm; -END GET_STBL_NAME; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_STBL_LIST_PATH -( - vTblId IN TN_STBL_INFO.TBL_ID%TYPE, - vVwCd IN TN_SRVC_VW.VW_CD%TYPE := '', - vLang IN VARCHAR2 := 'KOR' -) -/********************************************************** - ϸ : GET_STBL_LIST_PATH - : 0.0.0.1 - ۼ : 2007. 05. 11 - ۼ : ְ - Use Case : - : ǥ ϰ (ϴ... ϳ ο츸) -***********************************************************/ -RETURN VARCHAR2 IS - vResult VARCHAR2(1000); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT GET_SERVICE_VIEW_NAME(VW_CD) || SYS_CONNECT_BY_PATH(LIST_NM, '>') - INTO vResult - FROM ( - SELECT VW_CD, LIST_NM, LIST_ID, UP_LIST_ID - FROM TN_SRVC_LIST - WHERE PUB_SE IN ('1210110', '1210113', '1210114') - ) A - WHERE LIST_ID IN (SELECT LIST_ID FROM TN_LIST_STBL_REL WHERE TBL_ID = vTblId AND VW_CD LIKE '%'||vVwCd||'%') - AND ROWNUM = 1 - CONNECT BY PRIOR LIST_ID = UP_LIST_ID - START WITH UP_LIST_ID IS NULL; - - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE('Fetched STBL_LIST_PATH not found. TBL_ID = ' || vTblId); - END IF; - - RETURN vResult; - -END GET_STBL_LIST_PATH; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_STBL_COMMENT -( - vTblId IN TN_STBL_INFO.TBL_ID%TYPE, - vLang IN VARCHAR2 := 'KOR' -) -/********************************************************** - ϸ : GET_RECD_PRD_STRING - : 0.0.0.1 - ۼ : 2007. 05. 11 - ۼ : ְ - Use Case : - : ǥּ ϳ ÷ Ѵ. -***********************************************************/ -RETURN VARCHAR2 IS - vResult VARCHAR2(30000); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT SUBSTRB(FULL_NM, -LENGTHB(FULL_NM) + 2) FULL_NM_WITH_DIV - INTO vResult - FROM - ( - SELECT SYS_CONNECT_BY_PATH(CMMT_DC, ' ') FULL_NM, C_RN - FROM ( - SELECT CMMT_DC, RN, LAG(RN) OVER(ORDER BY RN) P_RN, - LEAD(RN) OVER(ORDER BY RN) C_RN - FROM ( - SELECT CMMT_DC, ROWNUM RN FROM - ( - SELECT CMMT_DC - FROM TN_CMMT_INFO - WHERE CMMT_SE = '1210610' -- ǥּ - AND TBL_ID = vTblId - ORDER BY LINE_SN ASC - ) - ) - ORDER BY RN - ) - CONNECT BY PRIOR RN = P_RN - START WITH P_RN IS NULL - ) T - WHERE C_RN IS NULL; - - - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE('Fetched STBL_COMMENT not found. TBL_ID = ' || vTblId); - END IF; - - RETURN vResult; - - EXCEPTION - WHEN OTHERS - THEN return ''; - -END GET_STBL_COMMENT; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.get_stat_name (in_stat_id IN tn_stat.stat_id%TYPE) - RETURN VARCHAR2 -IS - v_stat_nm VARCHAR2 (100); -BEGIN - SELECT stat_nm - INTO v_stat_nm - FROM tn_stat - WHERE stat_id = in_stat_id; - - RETURN v_stat_nm; -END get_stat_name; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.DATE_STR ( - v_str IN VARCHAR2 -) -/********************************************************** - ϸ : DATE_FORMAT - : 0.0.0.1 - ۼ : 2006.10.23 - ۼ : ְ - Use Case : - : 00000000 ڸ 0000/00/00 · ȯѴ. -***********************************************************/ -RETURN VARCHAR2 IS - format_str VARCHAR2(15); - v_DENIM VARCHAR2(1) := '/'; -BEGIN - - IF length(v_str) = 4 THEN - format_str := substr(v_str, 1); - ELSIF length(v_str) >= 6 AND length(v_str) < 8 THEN - format_str := substr(v_str, 1, 4)||v_DENIM||substr(v_str,5,2); - ELSIF length(v_str) >= 8 THEN - format_str := substr(v_str, 1, 4)||v_DENIM||substr(v_str,5,2)||v_DENIM||substr(v_str, 7); - ELSE - format_str := v_str; - - END IF; - - - RETURN format_str; - - EXCEPTION - WHEN NO_DATA_FOUND THEN - RETURN NULL; - WHEN OTHERS THEN - RETURN 'Exception occurred'; - -END DATE_STR; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.FN_IN_CREATE_QUTRYEAR_INS -( - in_org_id IN TN_STBL_INFO.ORG_ID%TYPE, - in_tbl_id IN TN_STBL_INFO.TBL_ID%TYPE, - in_func IN VARCHAR2, - in_src_prd_se IN TN_DT.PRD_SE%TYPE, - in_cre_prd_se IN TN_DT.PRD_SE%TYPE, - in_prd_de IN TN_DT.PRD_DE%TYPE, - in_strt_prd_de IN TN_DT.PRD_DE%TYPE, - in_end_prd_de IN TN_DT.PRD_DE%TYPE, - in_lst_chn_nm IN TN_DT.LST_CHN_NM%TYPE, - in_char_itm_id IN TN_DIM.CHAR_ITM_ID%TYPE, - in_ov_l1_id IN TN_DIM.OV_L1_ID%TYPE DEFAULT NULL, - in_ov_l2_id IN TN_DIM.OV_L2_ID%TYPE DEFAULT NULL, - in_ov_l3_id IN TN_DIM.OV_L3_ID%TYPE DEFAULT NULL, - in_ov_l4_id IN TN_DIM.OV_L4_ID%TYPE DEFAULT NULL, - in_ov_l5_id IN TN_DIM.OV_L5_ID%TYPE DEFAULT NULL, - in_ov_l6_id IN TN_DIM.OV_L6_ID%TYPE DEFAULT NULL, - in_ov_l7_id IN TN_DIM.OV_L7_ID%TYPE DEFAULT NULL, - in_ov_l8_id IN TN_DIM.OV_L8_ID%TYPE DEFAULT NULL, - in_sm_l1_id IN TN_DIM.OV_L1_ID%TYPE DEFAULT NULL, - in_sm_l2_id IN TN_DIM.OV_L2_ID%TYPE DEFAULT NULL, - in_sm_l3_id IN TN_DIM.OV_L3_ID%TYPE DEFAULT NULL, - in_sm_l4_id IN TN_DIM.OV_L4_ID%TYPE DEFAULT NULL, - in_sm_l5_id IN TN_DIM.OV_L5_ID%TYPE DEFAULT NULL, - in_sm_l6_id IN TN_DIM.OV_L6_ID%TYPE DEFAULT NULL, - in_sm_l7_id IN TN_DIM.OV_L7_ID%TYPE DEFAULT NULL, - in_sm_l8_id IN TN_DIM.OV_L7_ID%TYPE DEFAULT NULL, - in_dec_pnt IN NUMBER DEFAULT 0, - in_proc_dec_pnt IN VARCHAR2 DEFAULT '1' -- Ҽ ó. 1-ݿø, 2- -) -RETURN NUMBER -/********************************************************** - ϸ : FN_IN_CREATE_QUTRYEAR_INS - : 0.0.0.1 - ۼ : 2006. 9. 8. - ۼ : - Use Case : - : бڷḦ Ѵ. - 󺯼 տ ä Ѵ. - 󺯼 3 NULL̸ 4Ĵ NULL Ͽ ó ʴ´. - - 2006. 9. 29. ߰ - - 2006. 11. 10. - õ з ƴ õ ֻз з . -***********************************************************/ -IS - v_temp NUMBER := 0; - v_itm_rcgn_sn TN_DT.ITM_RCGN_SN%TYPE := 0; - v_cursor Types.cursorType; - v_cursor_1 Types.cursorType; - v_result NUMBER := 0; - - v_prd_se TN_DT.PRD_SE%TYPE := NULL; - v_prd_de TN_DT.PRD_DE%TYPE := NULL; - - v_undefined_data TN_DT.DTVAL_CO%TYPE := 9999999999.99999; -- ̻ڷ -BEGIN --- DBMS_OUTPUT.PUT_LINE (in_strt_prd_de || ':' || in_end_prd_de || ':' || in_prd_de || ':' || in_cre_prd_se); --- DBMS_OUTPUT.PUT_LINE (in_char_itm_id || '::' || in_ov_l1_id || '::' || in_ov_l2_id); - CASE in_func - -- ܼ - WHEN '1' THEN - -- ̻ڷḦ ʴ ׸ - INSERT INTO TN_DT (ITM_RCGN_SN, PRD_SE, PRD_DE, ORG_ID, TBL_ID, DTVAL_CO, PUB_SE, LST_CHN_DE, LST_CHN_NM) - SELECT /*+ INDEX (Z IDX2_TN_DIM) */ - Z.ITM_RCGN_SN, in_cre_prd_se, in_prd_de, in_org_id, in_tbl_id, - Y.DTVAL_CO, GET_STBL_PUB_SE (in_org_id, in_tbl_id), TO_CHAR (SYSDATE, 'YYYYMMDD'), in_lst_chn_nm - FROM - TN_DIM Z, - ( - SELECT /*+ ordered use_hash(a) use_hash(b) */ - DECODE (in_proc_dec_pnt, '1', ROUND(SUM (DTVAL_CO), in_dec_pnt), TRUNC (SUM (DTVAL_CO), in_dec_pnt)) DTVAL_CO, - B.CHAR_ITM_ID, - DECODE (B.OV_L1_ID, NULL, in_sm_l1_id, B.OV_L1_ID) OV_L1_ID, - DECODE (B.OV_L2_ID, NULL, in_sm_l2_id, B.OV_L2_ID) OV_L2_ID, - DECODE (B.OV_L3_ID, NULL, in_sm_l3_id, B.OV_L3_ID) OV_L3_ID, - DECODE (B.OV_L4_ID, NULL, in_sm_l4_id, B.OV_L4_ID) OV_L4_ID, - DECODE (B.OV_L5_ID, NULL, in_sm_l5_id, B.OV_L5_ID) OV_L5_ID, - DECODE (B.OV_L6_ID, NULL, in_sm_l6_id, B.OV_L6_ID) OV_L6_ID, - DECODE (B.OV_L7_ID, NULL, in_sm_l7_id, B.OV_L7_ID) OV_L7_ID, - DECODE (B.OV_L8_ID, NULL, in_sm_l8_id, B.OV_L8_ID) OV_L8_ID - FROM - TN_DT A, - ( - SELECT - ITM_RCGN_SN, AA.* - FROM - TN_DIM L, - ( - SELECT /*+ ordered use_hash(a) use_hash(b) use_hash(c) use_hash(d) use_hash(e) use_hash(f) use_hash(g) use_hash(h) */ - Z.ITM_ID CHAR_ITM_ID, - A.ITM_ID OV_L1_ID, B.ITM_ID OV_L2_ID, C.ITM_ID OV_L3_ID, D.ITM_ID OV_L4_ID, - E.ITM_ID OV_L5_ID, F.ITM_ID OV_L6_ID, G.ITM_ID OV_L7_ID, H.ITM_ID OV_L8_ID - FROM - ( - SELECT ITM_ID -- ׸ - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'Y' AND UP_ITM_ID IS NULL AND ITM_ID = in_char_itm_id - ) Z, - ( - SELECT DISTINCT - DECODE (in_ov_l1_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l1_id, NULL, NULL, UP_ITM_ID) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l1_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l1_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l1_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) A, - ( - SELECT DISTINCT - DECODE(in_ov_l2_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE(in_ov_l2_id, NULL, NULL, in_ov_l2_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l2_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l2_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l2_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) B, - ( - SELECT DISTINCT - DECODE (in_ov_l3_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l3_id, NULL, NULL, in_ov_l3_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l3_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l3_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l3_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) C, - ( - SELECT DISTINCT - DECODE (in_ov_l4_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l4_id, NULL, NULL, in_ov_l4_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l4_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l4_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l4_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) D, - ( - SELECT DISTINCT - DECODE (in_ov_l5_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l5_id, NULL, NULL, in_ov_l5_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l5_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l5_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l5_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) E, - ( - SELECT DISTINCT - DECODE (in_ov_l6_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l6_id, NULL, NULL, in_ov_l6_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l6_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l6_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l6_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) F, - ( - SELECT DISTINCT - DECODE (in_ov_l7_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l7_id, NULL, NULL, in_ov_l7_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l7_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l7_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l7_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) G, - ( - SELECT DISTINCT - DECODE (in_ov_l8_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l8_id, NULL, NULL, in_ov_l8_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l8_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l8_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l8_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) H - ) AA - WHERE - L.ORG_ID = in_org_id AND L.TBL_ID = in_tbl_id AND - NVL (L.CHAR_ITM_ID, ' ') = NVL (AA.CHAR_ITM_ID, ' ') AND - DECODE (in_ov_l1_id, NULL, ' ', NVL (L.OV_L1_ID, ' ')) = DECODE (in_ov_l1_id, NULL, ' ', NVL (AA.OV_L1_ID, ' ')) AND - DECODE (in_ov_l2_id, NULL, ' ', NVL (L.OV_L2_ID, ' ')) = DECODE (in_ov_l2_id, NULL, ' ', NVL (AA.OV_L2_ID, ' ')) AND - DECODE (in_ov_l3_id, NULL, ' ', NVL (L.OV_L3_ID, ' ')) = DECODE (in_ov_l3_id, NULL, ' ', NVL (AA.OV_L3_ID, ' ')) AND - DECODE (in_ov_l4_id, NULL, ' ', NVL (L.OV_L4_ID, ' ')) = DECODE (in_ov_l4_id, NULL, ' ', NVL (AA.OV_L4_ID, ' ')) AND - DECODE (in_ov_l5_id, NULL, ' ', NVL (L.OV_L5_ID, ' ')) = DECODE (in_ov_l5_id, NULL, ' ', NVL (AA.OV_L5_ID, ' ')) AND - DECODE (in_ov_l6_id, NULL, ' ', NVL (L.OV_L6_ID, ' ')) = DECODE (in_ov_l6_id, NULL, ' ', NVL (AA.OV_L6_ID, ' ')) AND - DECODE (in_ov_l7_id, NULL, ' ', NVL (L.OV_L7_ID, ' ')) = DECODE (in_ov_l7_id, NULL, ' ', NVL (AA.OV_L7_ID, ' ')) AND - DECODE (in_ov_l8_id, NULL, ' ', NVL (L.OV_L8_ID, ' ')) = DECODE (in_ov_l8_id, NULL, ' ', NVL (AA.OV_L8_ID, ' ')) - ORDER BY - AA.CHAR_ITM_ID, AA.OV_L1_ID, AA.OV_L2_ID - ) B, - ( - SELECT DISTINCT ITM_RCGN_SN - FROM TN_DT - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND - PRD_SE = in_src_prd_se AND PRD_DE BETWEEN in_strt_prd_de AND in_end_prd_de - MINUS - SELECT DISTINCT ITM_RCGN_SN - FROM TN_DT - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND - PRD_SE = in_src_prd_se AND PRD_DE BETWEEN in_strt_prd_de AND in_end_prd_de AND - DTVAL_CO = v_undefined_data - ) C - WHERE - A.ITM_RCGN_SN = B.ITM_RCGN_SN AND - A.ITM_RCGN_SN = C.ITM_RCGN_SN AND - A.PRD_SE = in_src_prd_se AND - A.PRD_DE BETWEEN in_strt_prd_de AND in_end_prd_de - GROUP BY - B.CHAR_ITM_ID, - B.OV_L1_ID, B.OV_L2_ID, B.OV_L3_ID, B.OV_L4_ID, - B.OV_L5_ID, B.OV_L6_ID, B.OV_L7_ID, B.OV_L8_ID - ) Y - WHERE - Z.ORG_ID = in_org_id AND Z.TBL_ID = in_tbl_id AND - Z.CHAR_ITM_ID = Y.CHAR_ITM_ID AND - Y.DTVAL_CO IS NOT NULL AND - NVL (Z.OV_L1_ID, ' ') = NVL (Y.OV_L1_ID, ' ') AND - NVL (Z.OV_L2_ID, ' ') = NVL (Y.OV_L2_ID, ' ') AND - NVL (Z.OV_L3_ID, ' ') = NVL (Y.OV_L3_ID, ' ') AND - NVL (Z.OV_L4_ID, ' ') = NVL (Y.OV_L4_ID, ' ') AND - NVL (Z.OV_L5_ID, ' ') = NVL (Y.OV_L5_ID, ' ') AND - NVL (Z.OV_L6_ID, ' ') = NVL (Y.OV_L6_ID, ' ') AND - NVL (Z.OV_L7_ID, ' ') = NVL (Y.OV_L7_ID, ' ') AND - NVL (Z.OV_L8_ID, ' ') = NVL (Y.OV_L8_ID, ' '); - - v_result := v_result + SQL%ROWCOUNT; - - -- ̻ڷ Ͱ 1̶ ִ , ش ڷ ̻ڷ ȴ. - INSERT INTO TN_DT (ITM_RCGN_SN, PRD_SE, PRD_DE, ORG_ID, TBL_ID, DTVAL_CO, PUB_SE, LST_CHN_DE, LST_CHN_NM) - SELECT /*+ INDEX (Z IDX2_TN_DIM) */ - Z.ITM_RCGN_SN, in_cre_prd_se, in_prd_de, in_org_id, in_tbl_id, - Y.DTVAL_CO, GET_STBL_PUB_SE (in_org_id, in_tbl_id), TO_CHAR (SYSDATE, 'YYYYMMDD'), in_lst_chn_nm - FROM - TN_DIM Z, - ( - SELECT /*+ ordered use_hash(a) use_hash(b) */ - --DECODE (in_proc_dec_pnt, '1', ROUND(SUM (DTVAL_CO), in_dec_pnt), TRUNC (SUM (DTVAL_CO), in_dec_pnt)) DTVAL_CO, - v_undefined_data DTVAL_CO, - B.CHAR_ITM_ID, - DECODE (B.OV_L1_ID, NULL, in_sm_l1_id, B.OV_L1_ID) OV_L1_ID, - DECODE (B.OV_L2_ID, NULL, in_sm_l2_id, B.OV_L2_ID) OV_L2_ID, - DECODE (B.OV_L3_ID, NULL, in_sm_l3_id, B.OV_L3_ID) OV_L3_ID, - DECODE (B.OV_L4_ID, NULL, in_sm_l4_id, B.OV_L4_ID) OV_L4_ID, - DECODE (B.OV_L5_ID, NULL, in_sm_l5_id, B.OV_L5_ID) OV_L5_ID, - DECODE (B.OV_L6_ID, NULL, in_sm_l6_id, B.OV_L6_ID) OV_L6_ID, - DECODE (B.OV_L7_ID, NULL, in_sm_l7_id, B.OV_L7_ID) OV_L7_ID, - DECODE (B.OV_L8_ID, NULL, in_sm_l8_id, B.OV_L8_ID) OV_L8_ID - FROM - TN_DT A, - ( - SELECT - ITM_RCGN_SN, AA.* - FROM - TN_DIM L, - ( - SELECT /*+ ordered use_hash(a) use_hash(b) use_hash(c) use_hash(d) use_hash(e) use_hash(f) use_hash(g) use_hash(h) */ - Z.ITM_ID CHAR_ITM_ID, - A.ITM_ID OV_L1_ID, B.ITM_ID OV_L2_ID, C.ITM_ID OV_L3_ID, D.ITM_ID OV_L4_ID, - E.ITM_ID OV_L5_ID, F.ITM_ID OV_L6_ID, G.ITM_ID OV_L7_ID, H.ITM_ID OV_L8_ID - FROM - ( - SELECT ITM_ID -- ׸ - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'Y' AND UP_ITM_ID IS NULL AND ITM_ID = in_char_itm_id - ) Z, - ( - SELECT DISTINCT - DECODE (in_ov_l1_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l1_id, NULL, NULL, UP_ITM_ID) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l1_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l1_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l1_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) A, - ( - SELECT DISTINCT - DECODE(in_ov_l2_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE(in_ov_l2_id, NULL, NULL, in_ov_l2_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l2_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l2_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l2_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) B, - ( - SELECT DISTINCT - DECODE (in_ov_l3_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l3_id, NULL, NULL, in_ov_l3_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l3_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l3_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l3_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) C, - ( - SELECT DISTINCT - DECODE (in_ov_l4_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l4_id, NULL, NULL, in_ov_l4_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l4_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l4_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l4_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) D, - ( - SELECT DISTINCT - DECODE (in_ov_l5_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l5_id, NULL, NULL, in_ov_l5_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l5_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l5_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l5_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) E, - ( - SELECT DISTINCT - DECODE (in_ov_l6_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l6_id, NULL, NULL, in_ov_l6_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l6_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l6_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l6_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) F, - ( - SELECT DISTINCT - DECODE (in_ov_l7_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l7_id, NULL, NULL, in_ov_l7_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l7_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l7_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l7_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) G, - ( - SELECT DISTINCT - DECODE (in_ov_l8_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l8_id, NULL, NULL, in_ov_l8_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l8_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l8_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l8_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) H - ) AA - WHERE - L.ORG_ID = in_org_id AND L.TBL_ID = in_tbl_id AND - NVL (L.CHAR_ITM_ID, ' ') = NVL (AA.CHAR_ITM_ID, ' ') AND - DECODE (in_ov_l1_id, NULL, ' ', NVL (L.OV_L1_ID, ' ')) = DECODE (in_ov_l1_id, NULL, ' ', NVL (AA.OV_L1_ID, ' ')) AND - DECODE (in_ov_l2_id, NULL, ' ', NVL (L.OV_L2_ID, ' ')) = DECODE (in_ov_l2_id, NULL, ' ', NVL (AA.OV_L2_ID, ' ')) AND - DECODE (in_ov_l3_id, NULL, ' ', NVL (L.OV_L3_ID, ' ')) = DECODE (in_ov_l3_id, NULL, ' ', NVL (AA.OV_L3_ID, ' ')) AND - DECODE (in_ov_l4_id, NULL, ' ', NVL (L.OV_L4_ID, ' ')) = DECODE (in_ov_l4_id, NULL, ' ', NVL (AA.OV_L4_ID, ' ')) AND - DECODE (in_ov_l5_id, NULL, ' ', NVL (L.OV_L5_ID, ' ')) = DECODE (in_ov_l5_id, NULL, ' ', NVL (AA.OV_L5_ID, ' ')) AND - DECODE (in_ov_l6_id, NULL, ' ', NVL (L.OV_L6_ID, ' ')) = DECODE (in_ov_l6_id, NULL, ' ', NVL (AA.OV_L6_ID, ' ')) AND - DECODE (in_ov_l7_id, NULL, ' ', NVL (L.OV_L7_ID, ' ')) = DECODE (in_ov_l7_id, NULL, ' ', NVL (AA.OV_L7_ID, ' ')) AND - DECODE (in_ov_l8_id, NULL, ' ', NVL (L.OV_L8_ID, ' ')) = DECODE (in_ov_l8_id, NULL, ' ', NVL (AA.OV_L8_ID, ' ')) - ORDER BY - AA.CHAR_ITM_ID, AA.OV_L1_ID, AA.OV_L2_ID - ) B - WHERE - A.ITM_RCGN_SN = B.ITM_RCGN_SN AND - A.DTVAL_CO = v_undefined_data AND - A.PRD_SE = in_src_prd_se AND - A.PRD_DE BETWEEN in_strt_prd_de AND in_end_prd_de - GROUP BY - B.CHAR_ITM_ID, - B.OV_L1_ID, B.OV_L2_ID, B.OV_L3_ID, B.OV_L4_ID, - B.OV_L5_ID, B.OV_L6_ID, B.OV_L7_ID, B.OV_L8_ID - ) Y - WHERE - Z.ORG_ID = in_org_id AND Z.TBL_ID = in_tbl_id AND - Z.CHAR_ITM_ID = Y.CHAR_ITM_ID AND - Y.DTVAL_CO IS NOT NULL AND - NVL (Z.OV_L1_ID, ' ') = NVL (Y.OV_L1_ID, ' ') AND - NVL (Z.OV_L2_ID, ' ') = NVL (Y.OV_L2_ID, ' ') AND - NVL (Z.OV_L3_ID, ' ') = NVL (Y.OV_L3_ID, ' ') AND - NVL (Z.OV_L4_ID, ' ') = NVL (Y.OV_L4_ID, ' ') AND - NVL (Z.OV_L5_ID, ' ') = NVL (Y.OV_L5_ID, ' ') AND - NVL (Z.OV_L6_ID, ' ') = NVL (Y.OV_L6_ID, ' ') AND - NVL (Z.OV_L7_ID, ' ') = NVL (Y.OV_L7_ID, ' ') AND - NVL (Z.OV_L8_ID, ' ') = NVL (Y.OV_L8_ID, ' '); - - v_result := v_result + SQL%ROWCOUNT; - - OPEN v_cursor FOR - SELECT ITM_RCGN_SN - FROM TN_DT - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND PRD_SE = in_cre_prd_se AND prd_de = in_prd_de; - - LOOP - FETCH v_cursor INTO v_itm_rcgn_sn; - EXIT WHEN v_cursor%NOTFOUND; - - SP_IN_UPDATE_CELL_RECD_INFO ('01', in_org_id, in_tbl_id, v_itm_rcgn_sn, in_cre_prd_se, in_lst_chn_nm); - END LOOP; - -- ܼ - WHEN '2' THEN - -- ̻ڷ ϰ ó - INSERT INTO TN_DT (ITM_RCGN_SN, PRD_SE, PRD_DE, ORG_ID, TBL_ID, DTVAL_CO, PUB_SE, LST_CHN_DE, LST_CHN_NM) - SELECT /*+ INDEX (Z IDX2_TN_DIM) */ - Z.ITM_RCGN_SN, in_cre_prd_se, in_prd_de, in_org_id, in_tbl_id, - Y.DTVAL_CO, GET_STBL_PUB_SE (in_org_id, in_tbl_id), TO_CHAR (SYSDATE, 'YYYYMMDD'), in_lst_chn_nm - FROM - TN_DIM Z, - ( - SELECT /*+ ordered use_hash(a) use_hash(b) */ - DECODE (in_proc_dec_pnt, '1', ROUND(AVG(DTVAL_CO), in_dec_pnt),TRUNC (AVG (DTVAL_CO), in_dec_pnt)) DTVAL_CO, - B.CHAR_ITM_ID, - DECODE (B.OV_L1_ID, NULL, in_sm_l1_id, B.OV_L1_ID) OV_L1_ID, - DECODE (B.OV_L2_ID, NULL, in_sm_l2_id, B.OV_L2_ID) OV_L2_ID, - DECODE (B.OV_L3_ID, NULL, in_sm_l3_id, B.OV_L3_ID) OV_L3_ID, - DECODE (B.OV_L4_ID, NULL, in_sm_l4_id, B.OV_L4_ID) OV_L4_ID, - DECODE (B.OV_L5_ID, NULL, in_sm_l5_id, B.OV_L5_ID) OV_L5_ID, - DECODE (B.OV_L6_ID, NULL, in_sm_l6_id, B.OV_L6_ID) OV_L6_ID, - DECODE (B.OV_L7_ID, NULL, in_sm_l7_id, B.OV_L7_ID) OV_L7_ID, - DECODE (B.OV_L8_ID, NULL, in_sm_l8_id, B.OV_L8_ID) OV_L8_ID - FROM - TN_DT A, - ( - SELECT - ITM_RCGN_SN, AA.* - FROM - TN_DIM L, - ( - SELECT /*+ ordered use_hash(a) use_hash(b) use_hash(c) use_hash(d) use_hash(e) use_hash(f) use_hash(g) use_hash(h) */ - Z.ITM_ID CHAR_ITM_ID, - A.ITM_ID OV_L1_ID, B.ITM_ID OV_L2_ID, C.ITM_ID OV_L3_ID, D.ITM_ID OV_L4_ID, - E.ITM_ID OV_L5_ID, F.ITM_ID OV_L6_ID, G.ITM_ID OV_L7_ID, H.ITM_ID OV_L8_ID - FROM - ( - SELECT ITM_ID -- ׸ - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'Y' AND UP_ITM_ID IS NULL AND ITM_ID = in_char_itm_id - ) Z, - ( - SELECT DISTINCT - DECODE (in_ov_l1_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l1_id, NULL, NULL, UP_ITM_ID) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l1_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l1_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l1_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) A, - ( - SELECT DISTINCT - DECODE(in_ov_l2_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE(in_ov_l2_id, NULL, NULL, in_ov_l2_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l2_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l2_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l2_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) B, - ( - SELECT DISTINCT - DECODE (in_ov_l3_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l3_id, NULL, NULL, in_ov_l3_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l3_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l3_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l3_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) C, - ( - SELECT DISTINCT - DECODE (in_ov_l4_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l4_id, NULL, NULL, in_ov_l4_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l4_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l4_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l4_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) D, - ( - SELECT DISTINCT - DECODE (in_ov_l5_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l5_id, NULL, NULL, in_ov_l5_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l5_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l5_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l5_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) E, - ( - SELECT DISTINCT - DECODE (in_ov_l6_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l6_id, NULL, NULL, in_ov_l6_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l6_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l6_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l6_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) F, - ( - SELECT DISTINCT - DECODE (in_ov_l7_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l7_id, NULL, NULL, in_ov_l7_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l7_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l7_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l7_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) G, - ( - SELECT DISTINCT - DECODE (in_ov_l8_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l8_id, NULL, NULL, in_ov_l8_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l8_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l8_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l8_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) H - ) AA - WHERE - L.ORG_ID = in_org_id AND L.TBL_ID = in_tbl_id AND - NVL (L.CHAR_ITM_ID, ' ') = NVL (AA.CHAR_ITM_ID, ' ') AND - DECODE (in_ov_l1_id, NULL, ' ', NVL (L.OV_L1_ID, ' ')) = DECODE (in_ov_l1_id, NULL, ' ', NVL (AA.OV_L1_ID, ' ')) AND - DECODE (in_ov_l2_id, NULL, ' ', NVL (L.OV_L2_ID, ' ')) = DECODE (in_ov_l2_id, NULL, ' ', NVL (AA.OV_L2_ID, ' ')) AND - DECODE (in_ov_l3_id, NULL, ' ', NVL (L.OV_L3_ID, ' ')) = DECODE (in_ov_l3_id, NULL, ' ', NVL (AA.OV_L3_ID, ' ')) AND - DECODE (in_ov_l4_id, NULL, ' ', NVL (L.OV_L4_ID, ' ')) = DECODE (in_ov_l4_id, NULL, ' ', NVL (AA.OV_L4_ID, ' ')) AND - DECODE (in_ov_l5_id, NULL, ' ', NVL (L.OV_L5_ID, ' ')) = DECODE (in_ov_l5_id, NULL, ' ', NVL (AA.OV_L5_ID, ' ')) AND - DECODE (in_ov_l6_id, NULL, ' ', NVL (L.OV_L6_ID, ' ')) = DECODE (in_ov_l6_id, NULL, ' ', NVL (AA.OV_L6_ID, ' ')) AND - DECODE (in_ov_l7_id, NULL, ' ', NVL (L.OV_L7_ID, ' ')) = DECODE (in_ov_l7_id, NULL, ' ', NVL (AA.OV_L7_ID, ' ')) AND - DECODE (in_ov_l8_id, NULL, ' ', NVL (L.OV_L8_ID, ' ')) = DECODE (in_ov_l8_id, NULL, ' ', NVL (AA.OV_L8_ID, ' ')) - ORDER BY - AA.CHAR_ITM_ID, AA.OV_L1_ID, AA.OV_L2_ID - ) B, - ( - SELECT DISTINCT ITM_RCGN_SN - FROM TN_DT - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND - PRD_SE = in_src_prd_se AND PRD_DE BETWEEN in_strt_prd_de AND in_end_prd_de - MINUS - SELECT DISTINCT ITM_RCGN_SN - FROM TN_DT - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND - PRD_SE = in_src_prd_se AND PRD_DE BETWEEN in_strt_prd_de AND in_end_prd_de AND - DTVAL_CO = v_undefined_data - ) C - WHERE - A.ITM_RCGN_SN = B.ITM_RCGN_SN AND - A.ITM_RCGN_SN = C.ITM_RCGN_SN AND - A.PRD_SE = in_src_prd_se AND - A.PRD_DE BETWEEN in_strt_prd_de AND in_end_prd_de - GROUP BY - B.CHAR_ITM_ID, - B.OV_L1_ID, B.OV_L2_ID, B.OV_L3_ID, B.OV_L4_ID, - B.OV_L5_ID, B.OV_L6_ID, B.OV_L7_ID, B.OV_L8_ID - ) Y - WHERE - Z.ORG_ID = in_org_id AND Z.TBL_ID = in_tbl_id AND - Z.CHAR_ITM_ID = Y.CHAR_ITM_ID AND - Y.DTVAL_CO IS NOT NULL AND - NVL (Z.OV_L1_ID, ' ') = NVL (Y.OV_L1_ID, ' ') AND - NVL (Z.OV_L2_ID, ' ') = NVL (Y.OV_L2_ID, ' ') AND - NVL (Z.OV_L3_ID, ' ') = NVL (Y.OV_L3_ID, ' ') AND - NVL (Z.OV_L4_ID, ' ') = NVL (Y.OV_L4_ID, ' ') AND - NVL (Z.OV_L5_ID, ' ') = NVL (Y.OV_L5_ID, ' ') AND - NVL (Z.OV_L6_ID, ' ') = NVL (Y.OV_L6_ID, ' ') AND - NVL (Z.OV_L7_ID, ' ') = NVL (Y.OV_L7_ID, ' ') AND - NVL (Z.OV_L8_ID, ' ') = NVL (Y.OV_L8_ID, ' '); - - v_result := v_result + SQL%ROWCOUNT; - - - -- ̻ڷ ó - INSERT INTO TN_DT (ITM_RCGN_SN, PRD_SE, PRD_DE, ORG_ID, TBL_ID, DTVAL_CO, PUB_SE, LST_CHN_DE, LST_CHN_NM) - SELECT /*+ INDEX (Z IDX2_TN_DIM) */ - Z.ITM_RCGN_SN, in_cre_prd_se, in_prd_de, in_org_id, in_tbl_id, - Y.DTVAL_CO, GET_STBL_PUB_SE (in_org_id, in_tbl_id), TO_CHAR (SYSDATE, 'YYYYMMDD'), in_lst_chn_nm - FROM - TN_DIM Z, - ( - SELECT /*+ ordered use_hash(a) use_hash(b) */ - --DECODE (in_proc_dec_pnt, '1', ROUND(AVG(DTVAL_CO), in_dec_pnt),TRUNC (AVG (DTVAL_CO), in_dec_pnt)) DTVAL_CO, - v_undefined_data DTVAL_CO, - B.CHAR_ITM_ID, - DECODE (B.OV_L1_ID, NULL, in_sm_l1_id, B.OV_L1_ID) OV_L1_ID, - DECODE (B.OV_L2_ID, NULL, in_sm_l2_id, B.OV_L2_ID) OV_L2_ID, - DECODE (B.OV_L3_ID, NULL, in_sm_l3_id, B.OV_L3_ID) OV_L3_ID, - DECODE (B.OV_L4_ID, NULL, in_sm_l4_id, B.OV_L4_ID) OV_L4_ID, - DECODE (B.OV_L5_ID, NULL, in_sm_l5_id, B.OV_L5_ID) OV_L5_ID, - DECODE (B.OV_L6_ID, NULL, in_sm_l6_id, B.OV_L6_ID) OV_L6_ID, - DECODE (B.OV_L7_ID, NULL, in_sm_l7_id, B.OV_L7_ID) OV_L7_ID, - DECODE (B.OV_L8_ID, NULL, in_sm_l8_id, B.OV_L8_ID) OV_L8_ID - FROM - TN_DT A, - ( - SELECT - ITM_RCGN_SN, AA.* - FROM - TN_DIM L, - ( - SELECT /*+ ordered use_hash(a) use_hash(b) use_hash(c) use_hash(d) use_hash(e) use_hash(f) use_hash(g) use_hash(h) */ - Z.ITM_ID CHAR_ITM_ID, - A.ITM_ID OV_L1_ID, B.ITM_ID OV_L2_ID, C.ITM_ID OV_L3_ID, D.ITM_ID OV_L4_ID, - E.ITM_ID OV_L5_ID, F.ITM_ID OV_L6_ID, G.ITM_ID OV_L7_ID, H.ITM_ID OV_L8_ID - FROM - ( - SELECT ITM_ID -- ׸ - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'Y' AND UP_ITM_ID IS NULL AND ITM_ID = in_char_itm_id - ) Z, - ( - SELECT DISTINCT - DECODE (in_ov_l1_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l1_id, NULL, NULL, UP_ITM_ID) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l1_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l1_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l1_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) A, - ( - SELECT DISTINCT - DECODE(in_ov_l2_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE(in_ov_l2_id, NULL, NULL, in_ov_l2_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l2_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l2_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l2_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) B, - ( - SELECT DISTINCT - DECODE (in_ov_l3_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l3_id, NULL, NULL, in_ov_l3_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l3_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l3_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l3_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) C, - ( - SELECT DISTINCT - DECODE (in_ov_l4_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l4_id, NULL, NULL, in_ov_l4_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l4_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l4_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l4_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) D, - ( - SELECT DISTINCT - DECODE (in_ov_l5_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l5_id, NULL, NULL, in_ov_l5_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l5_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l5_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l5_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) E, - ( - SELECT DISTINCT - DECODE (in_ov_l6_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l6_id, NULL, NULL, in_ov_l6_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l6_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l6_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l6_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) F, - ( - SELECT DISTINCT - DECODE (in_ov_l7_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l7_id, NULL, NULL, in_ov_l7_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l7_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l7_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l7_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) G, - ( - SELECT DISTINCT - DECODE (in_ov_l8_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l8_id, NULL, NULL, in_ov_l8_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l8_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l8_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l8_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) H - ) AA - WHERE - L.ORG_ID = in_org_id AND L.TBL_ID = in_tbl_id AND - NVL (L.CHAR_ITM_ID, ' ') = NVL (AA.CHAR_ITM_ID, ' ') AND - DECODE (in_ov_l1_id, NULL, ' ', NVL (L.OV_L1_ID, ' ')) = DECODE (in_ov_l1_id, NULL, ' ', NVL (AA.OV_L1_ID, ' ')) AND - DECODE (in_ov_l2_id, NULL, ' ', NVL (L.OV_L2_ID, ' ')) = DECODE (in_ov_l2_id, NULL, ' ', NVL (AA.OV_L2_ID, ' ')) AND - DECODE (in_ov_l3_id, NULL, ' ', NVL (L.OV_L3_ID, ' ')) = DECODE (in_ov_l3_id, NULL, ' ', NVL (AA.OV_L3_ID, ' ')) AND - DECODE (in_ov_l4_id, NULL, ' ', NVL (L.OV_L4_ID, ' ')) = DECODE (in_ov_l4_id, NULL, ' ', NVL (AA.OV_L4_ID, ' ')) AND - DECODE (in_ov_l5_id, NULL, ' ', NVL (L.OV_L5_ID, ' ')) = DECODE (in_ov_l5_id, NULL, ' ', NVL (AA.OV_L5_ID, ' ')) AND - DECODE (in_ov_l6_id, NULL, ' ', NVL (L.OV_L6_ID, ' ')) = DECODE (in_ov_l6_id, NULL, ' ', NVL (AA.OV_L6_ID, ' ')) AND - DECODE (in_ov_l7_id, NULL, ' ', NVL (L.OV_L7_ID, ' ')) = DECODE (in_ov_l7_id, NULL, ' ', NVL (AA.OV_L7_ID, ' ')) AND - DECODE (in_ov_l8_id, NULL, ' ', NVL (L.OV_L8_ID, ' ')) = DECODE (in_ov_l8_id, NULL, ' ', NVL (AA.OV_L8_ID, ' ')) - ORDER BY - AA.CHAR_ITM_ID, AA.OV_L1_ID, AA.OV_L2_ID - ) B - WHERE - A.ITM_RCGN_SN = B.ITM_RCGN_SN AND - A.DTVAL_CO = v_undefined_data AND -- ̻ڷῡ ؼ ó - A.PRD_SE = in_src_prd_se AND - A.PRD_DE BETWEEN in_strt_prd_de AND in_end_prd_de - GROUP BY - B.CHAR_ITM_ID, - B.OV_L1_ID, B.OV_L2_ID, B.OV_L3_ID, B.OV_L4_ID, - B.OV_L5_ID, B.OV_L6_ID, B.OV_L7_ID, B.OV_L8_ID - ) Y - WHERE - Z.ORG_ID = in_org_id AND Z.TBL_ID = in_tbl_id AND - Z.CHAR_ITM_ID = Y.CHAR_ITM_ID AND - Y.DTVAL_CO IS NOT NULL AND - NVL (Z.OV_L1_ID, ' ') = NVL (Y.OV_L1_ID, ' ') AND - NVL (Z.OV_L2_ID, ' ') = NVL (Y.OV_L2_ID, ' ') AND - NVL (Z.OV_L3_ID, ' ') = NVL (Y.OV_L3_ID, ' ') AND - NVL (Z.OV_L4_ID, ' ') = NVL (Y.OV_L4_ID, ' ') AND - NVL (Z.OV_L5_ID, ' ') = NVL (Y.OV_L5_ID, ' ') AND - NVL (Z.OV_L6_ID, ' ') = NVL (Y.OV_L6_ID, ' ') AND - NVL (Z.OV_L7_ID, ' ') = NVL (Y.OV_L7_ID, ' ') AND - NVL (Z.OV_L8_ID, ' ') = NVL (Y.OV_L8_ID, ' '); - - v_result := v_result + SQL%ROWCOUNT; - - OPEN v_cursor FOR - SELECT ITM_RCGN_SN - FROM TN_DT - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND PRD_SE = in_cre_prd_se AND prd_de = in_prd_de; - - LOOP - FETCH v_cursor INTO v_itm_rcgn_sn; - EXIT WHEN v_cursor%NOTFOUND; - - SP_IN_UPDATE_CELL_RECD_INFO ('01', in_org_id, in_tbl_id, v_itm_rcgn_sn, in_cre_prd_se, in_lst_chn_nm); - END LOOP; - - -- ֱġ - WHEN '3' THEN - -- ̻ڷ ϰ ó - INSERT INTO TN_DT (ITM_RCGN_SN, PRD_SE, PRD_DE, ORG_ID, TBL_ID, DTVAL_CO, PUB_SE, LST_CHN_DE, LST_CHN_NM) - SELECT /*+ INDEX (Z IDX2_TN_DIM) */ - Z.ITM_RCGN_SN, in_cre_prd_se, in_prd_de, in_org_id, in_tbl_id, - Y.DTVAL_CO, GET_STBL_PUB_SE (in_org_id, in_tbl_id), TO_CHAR (SYSDATE, 'YYYYMMDD'), in_lst_chn_nm - FROM - TN_DIM Z, - ( - SELECT /*+ ordered use_hash(a) use_hash(b) */ - DECODE (in_proc_dec_pnt, '1', ROUND (SUM (DTVAL_CO), in_dec_pnt), TRUNC (SUM (DTVAL_CO), in_dec_pnt)) DTVAL_CO, - B.CHAR_ITM_ID, - DECODE (B.OV_L1_ID, NULL, in_sm_l1_id, B.OV_L1_ID) OV_L1_ID, - DECODE (B.OV_L2_ID, NULL, in_sm_l2_id, B.OV_L2_ID) OV_L2_ID, - DECODE (B.OV_L3_ID, NULL, in_sm_l3_id, B.OV_L3_ID) OV_L3_ID, - DECODE (B.OV_L4_ID, NULL, in_sm_l4_id, B.OV_L4_ID) OV_L4_ID, - DECODE (B.OV_L5_ID, NULL, in_sm_l5_id, B.OV_L5_ID) OV_L5_ID, - DECODE (B.OV_L6_ID, NULL, in_sm_l6_id, B.OV_L6_ID) OV_L6_ID, - DECODE (B.OV_L7_ID, NULL, in_sm_l7_id, B.OV_L7_ID) OV_L7_ID, - DECODE (B.OV_L8_ID, NULL, in_sm_l8_id, B.OV_L8_ID) OV_L8_ID - FROM - TN_DT A, - ( - SELECT - ITM_RCGN_SN, AA.* - FROM - TN_DIM L, - ( - SELECT /*+ ordered use_hash(a) use_hash(b) use_hash(c) use_hash(d) use_hash(e) use_hash(f) use_hash(g) use_hash(h) */ - Z.ITM_ID CHAR_ITM_ID, - A.ITM_ID OV_L1_ID, B.ITM_ID OV_L2_ID, C.ITM_ID OV_L3_ID, D.ITM_ID OV_L4_ID, - E.ITM_ID OV_L5_ID, F.ITM_ID OV_L6_ID, G.ITM_ID OV_L7_ID, H.ITM_ID OV_L8_ID - FROM - ( - SELECT ITM_ID -- ׸ - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'Y' AND UP_ITM_ID IS NULL AND ITM_ID = in_char_itm_id - ) Z, - ( - SELECT DISTINCT - DECODE (in_ov_l1_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l1_id, NULL, NULL, UP_ITM_ID) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l1_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l1_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l1_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) A, - ( - SELECT DISTINCT - DECODE(in_ov_l2_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE(in_ov_l2_id, NULL, NULL, in_ov_l2_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l2_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l2_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l2_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) B, - ( - SELECT DISTINCT - DECODE (in_ov_l3_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l3_id, NULL, NULL, in_ov_l3_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l3_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l3_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l3_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) C, - ( - SELECT DISTINCT - DECODE (in_ov_l4_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l4_id, NULL, NULL, in_ov_l4_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l4_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l4_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l4_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) D, - ( - SELECT DISTINCT - DECODE (in_ov_l5_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l5_id, NULL, NULL, in_ov_l5_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l5_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l5_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l5_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) E, - ( - SELECT DISTINCT - DECODE (in_ov_l6_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l6_id, NULL, NULL, in_ov_l6_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l6_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l6_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l6_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) F, - ( - SELECT DISTINCT - DECODE (in_ov_l7_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l7_id, NULL, NULL, in_ov_l7_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l7_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l7_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l7_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) G, - ( - SELECT DISTINCT - DECODE (in_ov_l8_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l8_id, NULL, NULL, in_ov_l8_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l8_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l8_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l8_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) H - ) AA - WHERE - L.ORG_ID = in_org_id AND L.TBL_ID = in_tbl_id AND - NVL (L.CHAR_ITM_ID, ' ') = NVL (AA.CHAR_ITM_ID, ' ') AND - DECODE (in_ov_l1_id, NULL, ' ', NVL (L.OV_L1_ID, ' ')) = DECODE (in_ov_l1_id, NULL, ' ', NVL (AA.OV_L1_ID, ' ')) AND - DECODE (in_ov_l2_id, NULL, ' ', NVL (L.OV_L2_ID, ' ')) = DECODE (in_ov_l2_id, NULL, ' ', NVL (AA.OV_L2_ID, ' ')) AND - DECODE (in_ov_l3_id, NULL, ' ', NVL (L.OV_L3_ID, ' ')) = DECODE (in_ov_l3_id, NULL, ' ', NVL (AA.OV_L3_ID, ' ')) AND - DECODE (in_ov_l4_id, NULL, ' ', NVL (L.OV_L4_ID, ' ')) = DECODE (in_ov_l4_id, NULL, ' ', NVL (AA.OV_L4_ID, ' ')) AND - DECODE (in_ov_l5_id, NULL, ' ', NVL (L.OV_L5_ID, ' ')) = DECODE (in_ov_l5_id, NULL, ' ', NVL (AA.OV_L5_ID, ' ')) AND - DECODE (in_ov_l6_id, NULL, ' ', NVL (L.OV_L6_ID, ' ')) = DECODE (in_ov_l6_id, NULL, ' ', NVL (AA.OV_L6_ID, ' ')) AND - DECODE (in_ov_l7_id, NULL, ' ', NVL (L.OV_L7_ID, ' ')) = DECODE (in_ov_l7_id, NULL, ' ', NVL (AA.OV_L7_ID, ' ')) AND - DECODE (in_ov_l8_id, NULL, ' ', NVL (L.OV_L8_ID, ' ')) = DECODE (in_ov_l8_id, NULL, ' ', NVL (AA.OV_L8_ID, ' ')) - ORDER BY - AA.CHAR_ITM_ID, AA.OV_L1_ID, AA.OV_L2_ID - ) B, - ( - SELECT DISTINCT ITM_RCGN_SN - FROM TN_DT - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND - PRD_SE = in_src_prd_se AND PRD_DE BETWEEN in_strt_prd_de AND in_end_prd_de - MINUS - SELECT DISTINCT ITM_RCGN_SN - FROM TN_DT - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND - PRD_SE = in_src_prd_se AND PRD_DE BETWEEN in_strt_prd_de AND in_end_prd_de AND - DTVAL_CO = v_undefined_data - ) C - WHERE - A.ITM_RCGN_SN = B.ITM_RCGN_SN AND - A.ITM_RCGN_SN = C.ITM_RCGN_SN AND - A.PRD_SE = in_src_prd_se AND - A.PRD_DE BETWEEN in_strt_prd_de AND in_end_prd_de - GROUP BY - B.CHAR_ITM_ID, - B.OV_L1_ID, B.OV_L2_ID, B.OV_L3_ID, B.OV_L4_ID, - B.OV_L5_ID, B.OV_L6_ID, B.OV_L7_ID, B.OV_L8_ID - ) Y - WHERE - Z.ORG_ID = in_org_id AND Z.TBL_ID = in_tbl_id AND - Z.CHAR_ITM_ID = Y.CHAR_ITM_ID AND - Y.DTVAL_CO IS NOT NULL AND - NVL (Z.OV_L1_ID, ' ') = NVL (Y.OV_L1_ID, ' ') AND - NVL (Z.OV_L2_ID, ' ') = NVL (Y.OV_L2_ID, ' ') AND - NVL (Z.OV_L3_ID, ' ') = NVL (Y.OV_L3_ID, ' ') AND - NVL (Z.OV_L4_ID, ' ') = NVL (Y.OV_L4_ID, ' ') AND - NVL (Z.OV_L5_ID, ' ') = NVL (Y.OV_L5_ID, ' ') AND - NVL (Z.OV_L6_ID, ' ') = NVL (Y.OV_L6_ID, ' ') AND - NVL (Z.OV_L7_ID, ' ') = NVL (Y.OV_L7_ID, ' ') AND - NVL (Z.OV_L8_ID, ' ') = NVL (Y.OV_L8_ID, ' '); - - v_result := v_result + SQL%ROWCOUNT; - - -- ̻ڷ ó - INSERT INTO TN_DT (ITM_RCGN_SN, PRD_SE, PRD_DE, ORG_ID, TBL_ID, DTVAL_CO, PUB_SE, LST_CHN_DE, LST_CHN_NM) - SELECT /*+ INDEX (Z IDX2_TN_DIM) */ - Z.ITM_RCGN_SN, in_cre_prd_se, in_prd_de, in_org_id, in_tbl_id, - Y.DTVAL_CO, GET_STBL_PUB_SE (in_org_id, in_tbl_id), TO_CHAR (SYSDATE, 'YYYYMMDD'), in_lst_chn_nm - FROM - TN_DIM Z, - ( - SELECT /*+ ordered use_hash(a) use_hash(b) */ - --DECODE (in_proc_dec_pnt, '1', ROUND (SUM (DTVAL_CO), in_dec_pnt), TRUNC (SUM (DTVAL_CO), in_dec_pnt)) DTVAL_CO, - v_undefined_data DTVAL_CO, - B.CHAR_ITM_ID, - DECODE (B.OV_L1_ID, NULL, in_sm_l1_id, B.OV_L1_ID) OV_L1_ID, - DECODE (B.OV_L2_ID, NULL, in_sm_l2_id, B.OV_L2_ID) OV_L2_ID, - DECODE (B.OV_L3_ID, NULL, in_sm_l3_id, B.OV_L3_ID) OV_L3_ID, - DECODE (B.OV_L4_ID, NULL, in_sm_l4_id, B.OV_L4_ID) OV_L4_ID, - DECODE (B.OV_L5_ID, NULL, in_sm_l5_id, B.OV_L5_ID) OV_L5_ID, - DECODE (B.OV_L6_ID, NULL, in_sm_l6_id, B.OV_L6_ID) OV_L6_ID, - DECODE (B.OV_L7_ID, NULL, in_sm_l7_id, B.OV_L7_ID) OV_L7_ID, - DECODE (B.OV_L8_ID, NULL, in_sm_l8_id, B.OV_L8_ID) OV_L8_ID - FROM - TN_DT A, - ( - SELECT - ITM_RCGN_SN, AA.* - FROM - TN_DIM L, - ( - SELECT /*+ ordered use_hash(a) use_hash(b) use_hash(c) use_hash(d) use_hash(e) use_hash(f) use_hash(g) use_hash(h) */ - Z.ITM_ID CHAR_ITM_ID, - A.ITM_ID OV_L1_ID, B.ITM_ID OV_L2_ID, C.ITM_ID OV_L3_ID, D.ITM_ID OV_L4_ID, - E.ITM_ID OV_L5_ID, F.ITM_ID OV_L6_ID, G.ITM_ID OV_L7_ID, H.ITM_ID OV_L8_ID - FROM - ( - SELECT ITM_ID -- ׸ - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'Y' AND UP_ITM_ID IS NULL AND ITM_ID = in_char_itm_id - ) Z, - ( - SELECT DISTINCT - DECODE (in_ov_l1_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l1_id, NULL, NULL, UP_ITM_ID) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l1_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l1_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l1_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) A, - ( - SELECT DISTINCT - DECODE(in_ov_l2_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE(in_ov_l2_id, NULL, NULL, in_ov_l2_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l2_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l2_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l2_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) B, - ( - SELECT DISTINCT - DECODE (in_ov_l3_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l3_id, NULL, NULL, in_ov_l3_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l3_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l3_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l3_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) C, - ( - SELECT DISTINCT - DECODE (in_ov_l4_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l4_id, NULL, NULL, in_ov_l4_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l4_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l4_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l4_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) D, - ( - SELECT DISTINCT - DECODE (in_ov_l5_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l5_id, NULL, NULL, in_ov_l5_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l5_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l5_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l5_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) E, - ( - SELECT DISTINCT - DECODE (in_ov_l6_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l6_id, NULL, NULL, in_ov_l6_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l6_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l6_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l6_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) F, - ( - SELECT DISTINCT - DECODE (in_ov_l7_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l7_id, NULL, NULL, in_ov_l7_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l7_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l7_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l7_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) G, - ( - SELECT DISTINCT - DECODE (in_ov_l8_id, NULL, NULL, ITM_ID) ITM_ID, - DECODE (in_ov_l8_id, NULL, NULL, in_ov_l8_id) UP_ITM_ID - FROM TN_ITM_LIST - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND CHAR_ITM_AT = 'N' AND - NVL (OBJ_VAR_ID, ' ') = DECODE (in_ov_l8_id, NULL, NVL (OBJ_VAR_ID, ' '), in_ov_l8_id) AND - NVL (FTN_VAL_AT, 'N') = DECODE (in_ov_l8_id, NULL, 'N', NVL (FTN_VAL_AT, 'N')) - ) H - ) AA - WHERE - L.ORG_ID = in_org_id AND L.TBL_ID = in_tbl_id AND - NVL (L.CHAR_ITM_ID, ' ') = NVL (AA.CHAR_ITM_ID, ' ') AND - DECODE (in_ov_l1_id, NULL, ' ', NVL (L.OV_L1_ID, ' ')) = DECODE (in_ov_l1_id, NULL, ' ', NVL (AA.OV_L1_ID, ' ')) AND - DECODE (in_ov_l2_id, NULL, ' ', NVL (L.OV_L2_ID, ' ')) = DECODE (in_ov_l2_id, NULL, ' ', NVL (AA.OV_L2_ID, ' ')) AND - DECODE (in_ov_l3_id, NULL, ' ', NVL (L.OV_L3_ID, ' ')) = DECODE (in_ov_l3_id, NULL, ' ', NVL (AA.OV_L3_ID, ' ')) AND - DECODE (in_ov_l4_id, NULL, ' ', NVL (L.OV_L4_ID, ' ')) = DECODE (in_ov_l4_id, NULL, ' ', NVL (AA.OV_L4_ID, ' ')) AND - DECODE (in_ov_l5_id, NULL, ' ', NVL (L.OV_L5_ID, ' ')) = DECODE (in_ov_l5_id, NULL, ' ', NVL (AA.OV_L5_ID, ' ')) AND - DECODE (in_ov_l6_id, NULL, ' ', NVL (L.OV_L6_ID, ' ')) = DECODE (in_ov_l6_id, NULL, ' ', NVL (AA.OV_L6_ID, ' ')) AND - DECODE (in_ov_l7_id, NULL, ' ', NVL (L.OV_L7_ID, ' ')) = DECODE (in_ov_l7_id, NULL, ' ', NVL (AA.OV_L7_ID, ' ')) AND - DECODE (in_ov_l8_id, NULL, ' ', NVL (L.OV_L8_ID, ' ')) = DECODE (in_ov_l8_id, NULL, ' ', NVL (AA.OV_L8_ID, ' ')) - ORDER BY - AA.CHAR_ITM_ID, AA.OV_L1_ID, AA.OV_L2_ID - ) B - WHERE - A.ITM_RCGN_SN = B.ITM_RCGN_SN AND - A.DTVAL_CO = v_undefined_data AND -- ̻ڷῡ ؼ ó - A.PRD_SE = in_src_prd_se AND - A.PRD_DE BETWEEN in_strt_prd_de AND in_end_prd_de - GROUP BY - B.CHAR_ITM_ID, - B.OV_L1_ID, B.OV_L2_ID, B.OV_L3_ID, B.OV_L4_ID, - B.OV_L5_ID, B.OV_L6_ID, B.OV_L7_ID, B.OV_L8_ID - ) Y - WHERE - Z.ORG_ID = in_org_id AND Z.TBL_ID = in_tbl_id AND - Z.CHAR_ITM_ID = Y.CHAR_ITM_ID AND - Y.DTVAL_CO IS NOT NULL AND - NVL (Z.OV_L1_ID, ' ') = NVL (Y.OV_L1_ID, ' ') AND - NVL (Z.OV_L2_ID, ' ') = NVL (Y.OV_L2_ID, ' ') AND - NVL (Z.OV_L3_ID, ' ') = NVL (Y.OV_L3_ID, ' ') AND - NVL (Z.OV_L4_ID, ' ') = NVL (Y.OV_L4_ID, ' ') AND - NVL (Z.OV_L5_ID, ' ') = NVL (Y.OV_L5_ID, ' ') AND - NVL (Z.OV_L6_ID, ' ') = NVL (Y.OV_L6_ID, ' ') AND - NVL (Z.OV_L7_ID, ' ') = NVL (Y.OV_L7_ID, ' ') AND - NVL (Z.OV_L8_ID, ' ') = NVL (Y.OV_L8_ID, ' '); - - v_result := v_result + SQL%ROWCOUNT; - - OPEN v_cursor FOR - SELECT ITM_RCGN_SN - FROM TN_DT - WHERE ORG_ID = in_org_id AND TBL_ID = in_tbl_id AND PRD_SE = in_cre_prd_se AND prd_de = in_prd_de; - - LOOP - FETCH v_cursor INTO v_itm_rcgn_sn; - EXIT WHEN v_cursor%NOTFOUND; - - SP_IN_UPDATE_CELL_RECD_INFO ('01', in_org_id, in_tbl_id, v_itm_rcgn_sn, in_cre_prd_se, in_lst_chn_nm); - END LOOP; - END CASE; --- DBMS_OUTPUT.PUT_LINE (' : ' || v_result); - RETURN v_result; -END FN_IN_CREATE_QUTRYEAR_INS; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_LAST_RECD_DATA( - in_org_id IN TN_STBL_RECD_INFO.org_id%TYPE, - in_tbl_id IN TN_STBL_RECD_INFO.tbl_id%TYPE -) -/****************************************************************************** - NAME : GET_LAST_RECD_DATA - : 0.0.0.1 - ۼ : 2006.11. 22 - ۼ : ȣ - Use Case : - : ڸ -******************************************************************************/ -RETURN VARCHAR2 IS - v_end_prd_de VARCHAR2 (20); -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT end_prd_de || '(' || GET_PRD_NAME(PRD_SE) || ')' INTO v_end_prd_de - FROM TN_STBL_RECD_INFO - WHERE org_id = in_org_id and tbl_id = in_tbl_id and end_prd_de = ( - select max(end_prd_de) from TN_STBL_RECD_INFO - WHERE org_id = in_org_id and tbl_id = in_tbl_id - ) AND ROWNUM = 1; - - --- SELECT max(end_prd_de) INTO v_end_prd_de --- FROM TN_STBL_RECD_INFO --- WHERE org_id = in_org_id --- AND tbl_id = in_tbl_id; - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE(''); - --DBMS_OUTPUT.PUT_LINE('Fetched Emp Name not found. end_prd_de = ' || v_end_prd_de); - END IF; - - RETURN v_end_prd_de; - -END GET_LAST_RECD_DATA; -/ - - -CREATE OR REPLACE FUNCTION NSISUPDB.GET_RECD_PRD_STRING -( - vTblId IN TN_STBL_INFO.TBL_ID%TYPE, - vLang IN VARCHAR2 := 'KOR' -) -/********************************************************** - ϸ : GET_RECD_PRD_STRING - : 0.0.0.1 - ۼ : 2007. 05. 11 - ۼ : ְ - Use Case : - : Ⱓ  ° -***********************************************************/ -RETURN VARCHAR2 IS - vResult VARCHAR2(100); - -BEGIN - - DBMS_OUTPUT.ENABLE; - - SELECT D || T || M || B || Q || H || Y || F - INTO vResult - FROM (SELECT TBL_ID, MIN (D) D, MIN (T) T, MIN (M) M, MIN (B) B, MIN (Q) Q, - MIN (H) H, MIN (Y) Y, MIN (F) F - FROM (SELECT TBL_ID, - DECODE (PRD_SE, - 'D', GET_PRD_NAME (PRD_SE) - || ':' - || DATE_STR (STRT_PRD_DE) - || '~' - || DATE_STR (END_PRD_DE) - || ' ' - ) AS D, - DECODE (PRD_SE, - 'T', GET_PRD_NAME (PRD_SE) - || ':' - || DATE_STR (STRT_PRD_DE) - || '~' - || DATE_STR (END_PRD_DE) - || ' ' - ) AS T, - DECODE (PRD_SE, - 'M', GET_PRD_NAME (PRD_SE) - || ':' - || DATE_STR (STRT_PRD_DE) - || '~' - || DATE_STR (END_PRD_DE) - || ' ' - ) AS M, - DECODE (PRD_SE, - 'B', GET_PRD_NAME (PRD_SE) - || ':' - || DATE_STR (STRT_PRD_DE) - || '~' - || DATE_STR (END_PRD_DE) - || ' ' - ) AS B, - DECODE (PRD_SE, - 'Q', GET_PRD_NAME (PRD_SE) - || ':' - || DATE_STR (STRT_PRD_DE) - || '~' - || DATE_STR (END_PRD_DE) - || ' ' - ) AS Q, - DECODE (PRD_SE, - 'H', GET_PRD_NAME (PRD_SE) - || ':' - || DATE_STR (STRT_PRD_DE) - || '~' - || DATE_STR (END_PRD_DE) - || ' ' - ) AS H, - DECODE (PRD_SE, - 'Y', GET_PRD_NAME (PRD_SE) - || ':' - || DATE_STR (STRT_PRD_DE) - || '~' - || DATE_STR (END_PRD_DE) - || ' ' - ) AS Y, - DECODE (PRD_SE, - 'F', GET_PRD_NAME (PRD_SE) - || ':' - || DATE_STR (STRT_PRD_DE) - || '~' - || DATE_STR (END_PRD_DE) - || ' ' - ) AS F - FROM TN_STBL_RECD_INFO - WHERE TBL_ID = vTblId) - GROUP BY TBL_ID); - - IF SQL%NOTFOUND THEN - DBMS_OUTPUT.PUT_LINE('Fetched STBL_RECD_PRD not found. TBL_ID = ' || vTblId); - END IF; - - RETURN vResult; - -END GET_RECD_PRD_STRING; -/ - - diff --git a/zioinfo/swf/element01.swf b/zioinfo/swf/element01.swf deleted file mode 100644 index c2fbbd5f..00000000 Binary files a/zioinfo/swf/element01.swf and /dev/null differ diff --git a/zioinfo/swf/element02.swf b/zioinfo/swf/element02.swf deleted file mode 100644 index aac70aff..00000000 Binary files a/zioinfo/swf/element02.swf and /dev/null differ diff --git a/zioinfo/swf/index01.swf b/zioinfo/swf/index01.swf deleted file mode 100644 index 3e4338fb..00000000 Binary files a/zioinfo/swf/index01.swf and /dev/null differ diff --git a/zioinfo/swf/main.swf b/zioinfo/swf/main.swf deleted file mode 100644 index ba303f3e..00000000 Binary files a/zioinfo/swf/main.swf and /dev/null differ diff --git a/zioinfo/upload/dummy.txt b/zioinfo/upload/dummy.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/zioinfo/user/UserAgree.jsp b/zioinfo/user/UserAgree.jsp deleted file mode 100644 index 130315d5..00000000 --- a/zioinfo/user/UserAgree.jsp +++ /dev/null @@ -1,201 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<%@ include file="/jsp/include/commonVariable.jspf" %> - - -<%@ include file="/jsp/include/css.jspf"%> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    - 1 ()

    - Ȳýۿ ϴ ( "") ̿ , - ̿ڿ Ʈ Ǹ, ǹ, åӻװ Ÿ ʿ մϴ.
    -
    -
    - 2 ( ȿ° )
    - Ʈ ϰ 뿡 ϴ Ͽ 񽺸 ϸ, ϰ - 뿡 ϴ , Ʈ 켱 - ˴ϴ.
    - Ʈ ְ, Ʈ ν - ̿ڰ Ȯϵ Դϴ. ̿ڰ ƴϴ , ̿ڴ - ȸ (ȸŻ) , ϴ 濡 Ƿ ֵ˴ϴ. - ÿ ȿ ߻˴ϴ.
    -
    -
    - 3 ( Ģ)
    - õ ű⺻, Ż, ȸDZ, - , α׷ȣ Ÿ մϴ.
    -
    -
    - 4 ( )
    - ϴ Ǵ ϴ.
    - ̿ : Ʈ ϴ 񽺸 ޴ .
    - : Ʈ ϴ û Ŀ ش ϰ, Ͽ ̿ - ϷŰ
    - ȸ : Ʈ Ͽ ȸ ڷμ, Ʈ , - Ʈ ϴ 񽺸 ̿ ִ .
    - йȣ : ̿ڿ ȸID ġϴ Ȯϰ Ż ڽ кȣ Ͽ ̿ ڽ - ڿ .
    - Ż : ȸ ̿ Ű
    - 񽺿 ̿ȳ 򸻿 մϴ.
    -
    - 5 (̿ )
    - ̿ ûڰ ¶ Ʈ ϴ Խû Ŀ 䱸ϴ Ͽ - Ϸϴ ˴ϴ.
    - Ʈ ȣ شϴ ̿࿡ Ͽ ֽϴ.
    - 1. ٸ Ǹ Ͽ ûϿ
    - 2. ̿ û Ͽų ÷Ͽ ûϿ
    - 3. ȸ ȳ Ȥ dz ûϿ
    - 4. ٸ Ʈ ̿ ϰų ϴ Ͽ
    - 5. Ʈ ̿Ͽ ɰ ϴ ϴ
    - 6. Ÿ Ʈ ̿û ̺ Ǿ
    -
    - Ʈ ׿ شϴ ؼҵ ̿ ֽϴ.
    - 1. 뷮
    - 2. ִ
    - Ʈ ϴ 񽺴 Ʒ , ̿ڿ ϰ Ʒ - 񽺸 Ͽ ֽϴ.
    - 1. Ʈ ü ϰų ٸ ϴ ü
    -
    -
    - 6 (ȸ 뿡 )
    - ȸ ؼ Ʈ ȣå ˴ϴ.
    - Ʈ ȸ , , , ȣ˴ϴ.
    - 1. : Ʈ Ʈ Խ ϰ ϴ Ͽ Ͽ - մϴ.
    - 2. : Ʈ Ʈ ؼ ȸ Ż - ³ 3ڿ , ʽϴ. , ű⺻ 䱸 - ִ , ˿ ְų ȸ û ִ Ǵ Ÿ ɿ - û ִ , ϰ Ʈ 쿡 ׷ - ʽϴ.
    - 3. : ϴ ȣ Ͽ ÷ - / ֽϴ. ŵǴ ʿϴٰ Ǵ κе / ֽϴ. -
    - 4. ȣ : ϸ // , ̴ - ID йȣ ǰ ֽϴ. Ÿο ID йȣ ˷־ - ƴϵǸ, ۾ ÿ ݵ α׾ƿֽð, â ݾֽñ ٶϴ(̴ Ÿΰ - ǻ͸ ϴ ͳ ī䳪 ҿ ǻ͸ ϴ 쿡 ȣ - Ͽ ʿ Դϴ)
    -
    - ȸ Ʈ ̿û ϴ Ʈ û - ȸ , ̿ϴ Ϳ ϴ ֵ˴ϴ.
    -
    -
    - 7 ( )
    - ûڰ Ʈ Ϸϴ ϴ Է å - , ȸ ID йȣ Ͽ ߻ϴ å ȸο ֽϴ.
    - ID йȣ å ȸ , ȸ ID йȣ ϰ Ǿٴ - ߰ 쿡 Ʈ ŰϿ մϴ. Ű å ȸ - ο ֽϴ.
    - ̿ڴ Ʈ Ȯ ϵ ؾ ϸ, Ȯ - ƴν 3ڰ Ͽ ̿ϰ Ǵ ߻ϴ սǿ Ͽ - Ʈ å δ ƴմϴ.
    -
    -
    - 8 ( )
    - Ʈ ̿ڰ 뿡 Ǵ ൿ , Ƿ Ǵ - ֽϴ.
    -
    -
    - 9 ( )
    - Ʈ ϰ 񽺸 ̿Ͽ ϴ ̳ 񽺸 Ͽ ڷ ؿ Ͽ - å , ȸ 񽺿 , ڷ, ŷڵ, Ȯ 뿡 Ͽ - å ʽϴ.
    - Ʈ ̿ Ͽ ڿ ߻ , ǿ ؿ Ͽ - å δ ƴմϴ.
    -
    -
    - 10 ( Ʈ Խù ۱)
    - ϰ Խ Խù 뿡 Ǹ Ͽ ֽϴ.
    - Ʈ Խõ , ̵ ִ Ǹ ϸ, - ֽϴ.
    - 1. ǰų Ǵ ҹ, , ϴٰ ǴܵǴ Խù Խ
    - 2. ٸ ȸ Ǵ 3ڸ ϰų ߻ ջŰ
    - 3. dzӿ ݵǴ
    - 4. εȴٰ Ǵ
    - 5. 3 ۱ Ÿ Ǹ ħϴ
    - 6. Żڰ Խ Խù
    - 7. Ÿ ɿ Ǵ
    -
    - Խù Ÿ ۱ ħν ߻ϴ , å ϰ δϿ - մϴ.
    -

    - 11 ( Ʈ ǹ)

    - Ʈ ɰ ϰų dzӿ ϴ , , - 񽺸 ϱ ǹ ֽϴ.
    - Ʈ ȸ Ż ³ Ÿο , ʽϴ. ٸ, Űù - ɿ Ͽ 䱸 ִ 쿡 ׷ ƴմϴ.
    - Ʈ ̿ å ̿ ֿ Ͽ å ʽϴ.
    -
    -
    - 12 (ȸ ǹ)
    - ȸ Խÿ 䱸Ǵ Ȯϰ Ͽ մϴ. ̹ Ͽ Ȯ - ǵ , Ͽ ϸ, ȸ ڽ ID йȣ 3ڿ ̿ϰ ؼ ȵ˴ϴ. -
    - ȸ Ʈ ³ 񽺸 ̿Ͽ  ϴ.
    - ȸ Ʈ 񽺸 ̿Ͽ Ʈ ³ , , , , - / Ÿ ϰų ̸ Ÿο ϴ.
    - ȸ Ʈ ̿ Ͽ ȣ Ͽ ȵ˴ϴ.
    - 1. ٸ ȸ ID ϴ
    - 2. ϰų Ÿ õ
    - 3. dz, Ÿ ȸ ϴ
    - 4. Ÿ Ѽϰų ϴ
    - 5. Ÿ Ǹ ħϴ
    - 6. ŷ Ǵ ǻ͹̷
    - 7. Ÿ ǻ翡 Ͽ ϴ
    - 8.  ְų ִ ü
    - 9. Ʈ Խõ .
    - 10. Ÿ Ź 53 Ż 16(ҿ), Ż 533׿ Ǵ -
    -
    -

    - 13 (絵)

    - ȸ ̿, Ÿ ̿ Ÿο 絵, , ̸ 㺸 - ϴ.
    -
    -
    - 14 (ع)
    - Ʈ Ǵ 񽺿 Ͽ ȸ  ذ ߻ϴ Ʈ Ƿ - ϰ ̿ Ͽ å δ ƴմϴ.
    -
    -
    - 15 (å)
    - Ʈ 񽺿 ǥ  ǰ̳ Ȯ̳ ǥ ǹ ȸ̳ 3ڿ - ǥ ǰ ϰų ݴϰų ʽϴ. Ʈ  ȸ 񽺿 - ̵̳ ؿ å ϴ.
    - Ʈ ȸ Ǵ ȸ 3ڰ 񽺸 Ű Ͽ ǰŷ Ȥ ŷ Ͽ -  åӵ δ ƴϰ, ȸ ̿ Ͽ ϴ Ϳ Ͽ å δ - ʽϴ.
    -
    -
    - 16 (ҹ)
    - ̿ Ͽ ߻ £ Ҽ մϴ. -
    -
    -
    - \ No newline at end of file diff --git a/zioinfo/user/UserCheckId.jsp b/zioinfo/user/UserCheckId.jsp deleted file mode 100644 index 0e222232..00000000 --- a/zioinfo/user/UserCheckId.jsp +++ /dev/null @@ -1,97 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<%@ include file="/jsp/include/commonVariable.jspf"%> - -<% - String memberID = request.getParameter("memberID"); -%> - - - - -<%@ include file="/jsp/include/css.jspf"%> -̵ ߺüũ - - - - - - - - - -
    - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    - - ԷϽ <%= memberID %>() Ұմϴ. - - - ԷϽ <%= memberID %>() մϴ. - - -
    -
     
       
    -
    - - diff --git a/zioinfo/user/UserEditForm.jsp b/zioinfo/user/UserEditForm.jsp deleted file mode 100644 index fe28081b..00000000 --- a/zioinfo/user/UserEditForm.jsp +++ /dev/null @@ -1,280 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<%@ include file="/jsp/include/commonVariable.jspf"%> -<% - // ˻ǰ, ¡ õ Ķ͸ Ѵ. - String paramString = new StringBuffer() - .append("searchKeyword=").append(parameterMap.getValue("searchKeyword")) - .append("&searchColumn=").append(parameterMap.getValue("searchColumn")) - .append("&pageNo=").append(parameterMap.getValue("pageNo", "1")) - .append("&pageSize=").append(parameterMap.getValue("pageSIze", "10")) - .toString(); -%> - - - - - - - -ȸ -<%@ include file="/jsp/include/header.jspf" %> -<%@ include file="/jsp/include/css.jspf"%> -<%@ include file="/jsp/include/javascript.jspf"%> - - - - - -
    - -
    - - -
    -
    - ȸ > ȸ -
    - - * ǥô ʼ Է»Դϴ -
    - <% - //̺ - %> -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ${userBean.user.memberName} 
    ̵${userBean.user.memberID}
    * йȣ йȣ Էϼ.
    * йȣο йȣ Էϼ.
    * -   -   -   - - -
    * ̸ 
    * ȣ - - -   - - -
    *
    ȭȣ 
    * ޴ȣ 
     
    - -  
    -
    -
    -
    <%//ư %> - - <%//ư ̿ ݴϴ. %> - - - -
    -
    - -
    diff --git a/zioinfo/user/UserFindId.jsp b/zioinfo/user/UserFindId.jsp deleted file mode 100644 index 984a264d..00000000 --- a/zioinfo/user/UserFindId.jsp +++ /dev/null @@ -1,167 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<%@ include file="/jsp/include/commonVariable.jspf" %> - - - - -<%@ include file="/jsp/include/header.jspf" %> -<%@ include file="/jsp/include/css.jspf"%> - - - - - - - - -
      - - - - - - - - - - - - -
    - - - - - - -
    - - - - - - - - - -
    -
    - - - - - -
    - - - - - - - - - - -
    ̸ 
    ̸
    -
    -
    - - - - - - -
    - - - - - - - - - -
    - - - - - - -
    - - - - - - - - - - - - - - - -
    ̸ 
    ̸ 
    ̸
    -
     
    - - - \ No newline at end of file diff --git a/zioinfo/user/UserJoin.jsp b/zioinfo/user/UserJoin.jsp deleted file mode 100644 index 808ab6f6..00000000 --- a/zioinfo/user/UserJoin.jsp +++ /dev/null @@ -1,58 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<%@ include file="/jsp/include/commonVariable.jspf" %> - - - -<%@ include file="/jsp/include/css.jspf"%> - - - - - - - - -
      - - - - - - - - - - - - -
    ̿
    - - - - - - - - - -
    - - - -
    - - - - - -
      - - - - - - -
    -
    - - diff --git a/zioinfo/user/UserList.jsp b/zioinfo/user/UserList.jsp deleted file mode 100644 index 4fbe0d89..00000000 --- a/zioinfo/user/UserList.jsp +++ /dev/null @@ -1,165 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<%@ include file="/jsp/include/commonVariable.jspf"%> -<% - // pageNav Tag pageNo Ķʹ Ͽ մϴ. - String linkPattern = new StringBuffer().append(contextPath).append("/user/listUser.do?pageNo=#pageNo").append(removeParam(parameterStr, "pageNo")).toString(); -%> - - - <%@ include file="/jsp/include/header.jspf"%> - <%@ include file="/jsp/include/css.jspf"%> - <%@ include file="/jsp/include/javascript.jspf"%> - - ȸ - - - - - - -
    - <% - // - %> -
    - ȸ > - ȸ -
    - -
    - <% - // ¡ ¿ - %> - Total : ${userPageInfo.recordCount}   ${userPageInfo.pageNo} / - ${userPageInfo.totalPageNo} page -
    -
    - <% - //̺ - %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <% - // - %> - - - - - -
    - ȣ - - ̵ - - - - ̸ - - - - ޴ - - -
    - ${userPageInfo.recordCount - ((userBean.pageNo -1) * - userBean.pageSize + idx )} - - - - - - - - - - - - -
    - -
    -
    - - -
    - - - -
    -
    - <% - // ˻ - %> -
    - - ̵ - - ޴ - - - - ˻ -
    -
    - -
    - <% - // container - %> - -
    diff --git a/zioinfo/user/UserLogin.jsp b/zioinfo/user/UserLogin.jsp deleted file mode 100644 index ad8d7725..00000000 --- a/zioinfo/user/UserLogin.jsp +++ /dev/null @@ -1,167 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<%@ include file="/jsp/include/commonVariable.jspf" %> -<% - String returnUrl = parameterMap.getValue("returnUrl", null); - returnUrl = returnUrl == null ? contextPath + "/index.do" : contextPath + "/menu/gotoMenu.do?menu=11&contentPage=" + returnUrl; -%> - - - - -<%@ include file="/jsp/include/header.jspf" %> -<%@ include file="/jsp/include/css.jspf" %> - - - - - - - - - - - -
      - - - - - - - - - - - - - - - -
    - - - - - - - - - -
    - - - - - - - - - - - -
    -
    - - - - - - - - - - - - - - - -
    ̵ - - - -
    йȣ - -
      - - - - -
    -
    -
    - - - - -

     
     
    - - - - -
      - - - - - - - - - -
    - - - - - - - -
      ǥ ֱ ˻ - Ѵ ִ
    - ϰ ǥ ȰϽ ֽϴ.
    - - - - - - - -
     پ з ˻ Ȯϰ 踦 ˻Ͻ ֽϴ.
     
    - - \ No newline at end of file diff --git a/zioinfo/user/UserNewForm.jsp b/zioinfo/user/UserNewForm.jsp deleted file mode 100644 index c78ff29a..00000000 --- a/zioinfo/user/UserNewForm.jsp +++ /dev/null @@ -1,303 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<%@ include file="/jsp/include/commonVariable.jspf"%> -<% - // ˻ǰ, ¡ õ Ķ͸ Ѵ. - String paramString = new StringBuffer() - .append("searchKeyword=").append(parameterMap.getValue("searchKeyword")) - .append("&searchColumn=").append(parameterMap.getValue("searchColumn")) - .append("&pageNo=").append(parameterMap.getValue("pageNo", "1")) - .append("&pageSize=").append(parameterMap.getValue("pageSIze", "10")) - .toString(); -%> - - - - -ȸ -<%@ include file="/jsp/include/header.jspf" %> -<%@ include file="/jsp/include/css.jspf"%> -<%@ include file="/jsp/include/javascript.jspf"%> - - - - - - -
    - -
    - - - - - - - -
      - - - - - - - - - - - - - - - - - - - - - -
    ȸ - > ȸ
     
    - -
    -
    - <% - //̺ - %> -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ̸ - -
    ̵ -   - - ҹڿ ȥϿ 6~15ڷ 弼. -
    йȣ - + ȥϿ 6~15ڷ ֽʽÿ.
    йȣȮ
    -   -   -  
    ̸
    ּ - - - -  
      -
    ȭȣ
    ޴ȣ
    -
    -
    -
    - - - - -
      -
    - <%//ư %> - - -
    -
    - - -
    diff --git a/zioinfo/user/UserOutList.jsp b/zioinfo/user/UserOutList.jsp deleted file mode 100644 index 88f55cfa..00000000 --- a/zioinfo/user/UserOutList.jsp +++ /dev/null @@ -1,178 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<%@ include file="/jsp/include/commonVariable.jspf"%> -<% - // pageNav Tag pageNo Ķʹ Ͽ մϴ. - String linkPattern = new StringBuffer().append(contextPath).append("/user/listOutUser.do?pageNo=#pageNo").append(removeParam(parameterStr, "pageNo")).toString(); -%> - - - <%@ include file="/jsp/include/header.jspf"%> - <%@ include file="/jsp/include/css.jspf"%> - <%@ include file="/jsp/include/javascript.jspf"%> - - ȸ - - - - - - -
    - <% - // - %> -
    - ȸ > - Żȸ -
    - -
    - <% - // ¡ ¿ - %> - Total : ${userPageInfo.recordCount}   ${userPageInfo.pageNo} / - ${userPageInfo.totalPageNo} page -
    -
    - <% - //̺ - %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <% - // - %> - - - - - -
    - ȣ - - ̵ - - - - ̸ - - ޴ - - - - Ż - - Żó -
    - ${userPageInfo.recordCount - ((userBean.pageNo -1) * - userBean.pageSize + idx )} - - - - - - - - - - - - - - -
    - -
    -
    - - -
    - - - - -
    - <% - // ˻ - %> -
    - - ̵ - - ޴ - - - - ˻ -
    -
    - -
    - <% - // container - %> - -
    diff --git a/zioinfo/user/UserPostNumber.jsp b/zioinfo/user/UserPostNumber.jsp deleted file mode 100644 index 5028415e..00000000 --- a/zioinfo/user/UserPostNumber.jsp +++ /dev/null @@ -1,186 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<%@ include file="/jsp/include/commonVariable.jspf"%> - - - - - - - - - - - Untitled Document - - - - - - - - - -
    - - - - - - - - - - - - - - - - - -
    - - - -
    -   - -
    - - - - - - - - -
    // - - -
    - - - - - - - - - - - - - - - - -
    - - - -
    -   - - - - - - - - - - - - - - - - -
    - ȣ - - ּ -
    - - - - - - ', '', '')"> -
    -
    -   -
    -   - -   - -   -
    -
    -
    -
    -   -
    -   - -   - -   -
    - -
    - - diff --git a/zioinfo/user/UserView.jsp b/zioinfo/user/UserView.jsp deleted file mode 100644 index bf7be2c6..00000000 --- a/zioinfo/user/UserView.jsp +++ /dev/null @@ -1,155 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<%@ include file="/jsp/include/commonVariable.jspf"%> -<% - // ˻ǰ, ¡ õ Ķ͸ Ѵ. - String paramString = new StringBuffer().append("searchKeyword=").append(parameterMap.getValue("searchKeyword")).append("&searchColumn=").append(parameterMap.getValue("searchColumn")).append("&pageNo=").append(parameterMap.getValue("pageNo", "1")).append("&pageSize=").append(parameterMap.getValue("pageSIze", "10")).toString(); -%> - - - - - - - - ȸ - <%@ include file="/jsp/include/header.jspf"%> - <%@ include file="/jsp/include/css.jspf"%> - <%@ include file="/jsp/include/javascript.jspf"%> - - - - - -
    -
    - ȸ > - ȸ 󼼺 -
    - -
    - <% - //̺ - %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - ̵ - - ${userBean.user.memberID}  - - - - ${userBean.user.memberName}  -
    - ̸ - - ${userBean.user.email}  - - - - ${userBean.user.birthDay}  -
    - ޴ - - ${userBean.user.handPhone}  - - - - -   -
    - - - ${userBean.user.address1} ${userBean.user.address2} -
    - ȭȣ - - ${userBean.user.phone}  - - ȸ - - ${userBean.user.level}  -
    - - - ${userBean.user.userJob}  - - - - ${userBean.user.companyName}  -
    -
    -
    - - - - - - - - - -
    -
    - -
    diff --git a/zioinfo/user/image/bt_repe.gif b/zioinfo/user/image/bt_repe.gif deleted file mode 100644 index 89dc0bec..00000000 Binary files a/zioinfo/user/image/bt_repe.gif and /dev/null differ diff --git a/zioinfo/user/image/bt_s_close.gif b/zioinfo/user/image/bt_s_close.gif deleted file mode 100644 index f48f9608..00000000 Binary files a/zioinfo/user/image/bt_s_close.gif and /dev/null differ diff --git a/zioinfo/user/image/bt_s_ok.gif b/zioinfo/user/image/bt_s_ok.gif deleted file mode 100644 index 24af198a..00000000 Binary files a/zioinfo/user/image/bt_s_ok.gif and /dev/null differ diff --git a/zioinfo/user/image/bt_s_search.gif b/zioinfo/user/image/bt_s_search.gif deleted file mode 100644 index 02471224..00000000 Binary files a/zioinfo/user/image/bt_s_search.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_box01.gif b/zioinfo/user/image/ids_box01.gif deleted file mode 100644 index e9047c6f..00000000 Binary files a/zioinfo/user/image/ids_box01.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_box02.gif b/zioinfo/user/image/ids_box02.gif deleted file mode 100644 index 12173cfd..00000000 Binary files a/zioinfo/user/image/ids_box02.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_box03.gif b/zioinfo/user/image/ids_box03.gif deleted file mode 100644 index 9ef43a06..00000000 Binary files a/zioinfo/user/image/ids_box03.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_btnid.gif b/zioinfo/user/image/ids_btnid.gif deleted file mode 100644 index b810ca3f..00000000 Binary files a/zioinfo/user/image/ids_btnid.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_btnpw.gif b/zioinfo/user/image/ids_btnpw.gif deleted file mode 100644 index c0f3f9cf..00000000 Binary files a/zioinfo/user/image/ids_btnpw.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_subt01.gif b/zioinfo/user/image/ids_subt01.gif deleted file mode 100644 index e5ec9f77..00000000 Binary files a/zioinfo/user/image/ids_subt01.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_subt02.gif b/zioinfo/user/image/ids_subt02.gif deleted file mode 100644 index 3b69479a..00000000 Binary files a/zioinfo/user/image/ids_subt02.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_temail.gif b/zioinfo/user/image/ids_temail.gif deleted file mode 100644 index e2e0d7a0..00000000 Binary files a/zioinfo/user/image/ids_temail.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_tid.gif b/zioinfo/user/image/ids_tid.gif deleted file mode 100644 index 49dac639..00000000 Binary files a/zioinfo/user/image/ids_tid.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_title00.gif b/zioinfo/user/image/ids_title00.gif deleted file mode 100644 index 65837dc9..00000000 Binary files a/zioinfo/user/image/ids_title00.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_title01.gif b/zioinfo/user/image/ids_title01.gif deleted file mode 100644 index bc7587a0..00000000 Binary files a/zioinfo/user/image/ids_title01.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_title02.gif b/zioinfo/user/image/ids_title02.gif deleted file mode 100644 index a986022e..00000000 Binary files a/zioinfo/user/image/ids_title02.gif and /dev/null differ diff --git a/zioinfo/user/image/ids_tname.gif b/zioinfo/user/image/ids_tname.gif deleted file mode 100644 index ef4e5cea..00000000 Binary files a/zioinfo/user/image/ids_tname.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_btnidpwseek.gif b/zioinfo/user/image/mem_btnidpwseek.gif deleted file mode 100644 index 8cb82e28..00000000 Binary files a/zioinfo/user/image/mem_btnidpwseek.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_btnjoin.gif b/zioinfo/user/image/mem_btnjoin.gif deleted file mode 100644 index 072100ed..00000000 Binary files a/zioinfo/user/image/mem_btnjoin.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_btnlogin.gif b/zioinfo/user/image/mem_btnlogin.gif deleted file mode 100644 index f5729ecf..00000000 Binary files a/zioinfo/user/image/mem_btnlogin.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_join_agree.gif b/zioinfo/user/image/mem_join_agree.gif deleted file mode 100644 index cd33ab0c..00000000 Binary files a/zioinfo/user/image/mem_join_agree.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_join_agreeno.gif b/zioinfo/user/image/mem_join_agreeno.gif deleted file mode 100644 index d3baa79c..00000000 Binary files a/zioinfo/user/image/mem_join_agreeno.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_join_text01.gif b/zioinfo/user/image/mem_join_text01.gif deleted file mode 100644 index 6eae0098..00000000 Binary files a/zioinfo/user/image/mem_join_text01.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_join_title.gif b/zioinfo/user/image/mem_join_title.gif deleted file mode 100644 index 76963cae..00000000 Binary files a/zioinfo/user/image/mem_join_title.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_join_txt.gif b/zioinfo/user/image/mem_join_txt.gif deleted file mode 100644 index 6aaeacf4..00000000 Binary files a/zioinfo/user/image/mem_join_txt.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_joinbox01.gif b/zioinfo/user/image/mem_joinbox01.gif deleted file mode 100644 index 9806b58b..00000000 Binary files a/zioinfo/user/image/mem_joinbox01.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_joinbox02.gif b/zioinfo/user/image/mem_joinbox02.gif deleted file mode 100644 index afedc4fb..00000000 Binary files a/zioinfo/user/image/mem_joinbox02.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_joinbox03.gif b/zioinfo/user/image/mem_joinbox03.gif deleted file mode 100644 index e5b42f02..00000000 Binary files a/zioinfo/user/image/mem_joinbox03.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_jointitle01.gif b/zioinfo/user/image/mem_jointitle01.gif deleted file mode 100644 index 9afc32f8..00000000 Binary files a/zioinfo/user/image/mem_jointitle01.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_jointitle02.gif b/zioinfo/user/image/mem_jointitle02.gif deleted file mode 100644 index 0771eaa7..00000000 Binary files a/zioinfo/user/image/mem_jointitle02.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_login_text.gif b/zioinfo/user/image/mem_login_text.gif deleted file mode 100644 index a2216509..00000000 Binary files a/zioinfo/user/image/mem_login_text.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_login_text02.gif b/zioinfo/user/image/mem_login_text02.gif deleted file mode 100644 index 4cd96f07..00000000 Binary files a/zioinfo/user/image/mem_login_text02.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_login_text03-1.gif b/zioinfo/user/image/mem_login_text03-1.gif deleted file mode 100644 index e03f48a6..00000000 Binary files a/zioinfo/user/image/mem_login_text03-1.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_login_text03-2.gif b/zioinfo/user/image/mem_login_text03-2.gif deleted file mode 100644 index 6b3f96b5..00000000 Binary files a/zioinfo/user/image/mem_login_text03-2.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_login_text03.gif b/zioinfo/user/image/mem_login_text03.gif deleted file mode 100644 index da047e4d..00000000 Binary files a/zioinfo/user/image/mem_login_text03.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_loginbox01.gif b/zioinfo/user/image/mem_loginbox01.gif deleted file mode 100644 index 6cba3ac7..00000000 Binary files a/zioinfo/user/image/mem_loginbox01.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_loginbox02.gif b/zioinfo/user/image/mem_loginbox02.gif deleted file mode 100644 index 5721a119..00000000 Binary files a/zioinfo/user/image/mem_loginbox02.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_loginbox03.gif b/zioinfo/user/image/mem_loginbox03.gif deleted file mode 100644 index 787a44b9..00000000 Binary files a/zioinfo/user/image/mem_loginbox03.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_loginid.gif b/zioinfo/user/image/mem_loginid.gif deleted file mode 100644 index 2cd3e8f5..00000000 Binary files a/zioinfo/user/image/mem_loginid.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_loginpw.gif b/zioinfo/user/image/mem_loginpw.gif deleted file mode 100644 index c76eaa15..00000000 Binary files a/zioinfo/user/image/mem_loginpw.gif and /dev/null differ diff --git a/zioinfo/user/image/mem_logintitle.gif b/zioinfo/user/image/mem_logintitle.gif deleted file mode 100644 index 8c1f4858..00000000 Binary files a/zioinfo/user/image/mem_logintitle.gif and /dev/null differ diff --git a/zioinfo/user/image/menu-main.swf b/zioinfo/user/image/menu-main.swf deleted file mode 100644 index 7ae821ae..00000000 Binary files a/zioinfo/user/image/menu-main.swf and /dev/null differ diff --git a/zioinfo/user/image/postnumber_tit.gif b/zioinfo/user/image/postnumber_tit.gif deleted file mode 100644 index eb23c103..00000000 Binary files a/zioinfo/user/image/postnumber_tit.gif and /dev/null differ diff --git a/zioinfo/user/image/repetition_line_bottom_01.gif b/zioinfo/user/image/repetition_line_bottom_01.gif deleted file mode 100644 index 87f48ffc..00000000 Binary files a/zioinfo/user/image/repetition_line_bottom_01.gif and /dev/null differ diff --git a/zioinfo/user/image/repetition_line_bottom_02.gif b/zioinfo/user/image/repetition_line_bottom_02.gif deleted file mode 100644 index 74c9816d..00000000 Binary files a/zioinfo/user/image/repetition_line_bottom_02.gif and /dev/null differ diff --git a/zioinfo/user/image/repetition_line_bottom_bg.gif b/zioinfo/user/image/repetition_line_bottom_bg.gif deleted file mode 100644 index 190df087..00000000 Binary files a/zioinfo/user/image/repetition_line_bottom_bg.gif and /dev/null differ diff --git a/zioinfo/user/image/repetition_line_left.gif b/zioinfo/user/image/repetition_line_left.gif deleted file mode 100644 index caeedd7e..00000000 Binary files a/zioinfo/user/image/repetition_line_left.gif and /dev/null differ diff --git a/zioinfo/user/image/repetition_line_right.gif b/zioinfo/user/image/repetition_line_right.gif deleted file mode 100644 index 62973eee..00000000 Binary files a/zioinfo/user/image/repetition_line_right.gif and /dev/null differ diff --git a/zioinfo/user/image/repetition_line_top_01.gif b/zioinfo/user/image/repetition_line_top_01.gif deleted file mode 100644 index e31dfeec..00000000 Binary files a/zioinfo/user/image/repetition_line_top_01.gif and /dev/null differ diff --git a/zioinfo/user/image/repetition_line_top_02.gif b/zioinfo/user/image/repetition_line_top_02.gif deleted file mode 100644 index 1b3f3298..00000000 Binary files a/zioinfo/user/image/repetition_line_top_02.gif and /dev/null differ diff --git a/zioinfo/user/image/repetition_line_top_bg.gif b/zioinfo/user/image/repetition_line_top_bg.gif deleted file mode 100644 index 01552c5f..00000000 Binary files a/zioinfo/user/image/repetition_line_top_bg.gif and /dev/null differ diff --git a/zioinfo/user/image/repetition_tit.gif b/zioinfo/user/image/repetition_tit.gif deleted file mode 100644 index 1e295c96..00000000 Binary files a/zioinfo/user/image/repetition_tit.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_addr.gif b/zioinfo/user/image/txt_addr.gif deleted file mode 100644 index 19aed540..00000000 Binary files a/zioinfo/user/image/txt_addr.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_birth.gif b/zioinfo/user/image/txt_birth.gif deleted file mode 100644 index dbb981ee..00000000 Binary files a/zioinfo/user/image/txt_birth.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_email.gif b/zioinfo/user/image/txt_email.gif deleted file mode 100644 index 4fc7e6e6..00000000 Binary files a/zioinfo/user/image/txt_email.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_id.gif b/zioinfo/user/image/txt_id.gif deleted file mode 100644 index 6efdec30..00000000 Binary files a/zioinfo/user/image/txt_id.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_job.gif b/zioinfo/user/image/txt_job.gif deleted file mode 100644 index 816a3501..00000000 Binary files a/zioinfo/user/image/txt_job.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_jobname.gif b/zioinfo/user/image/txt_jobname.gif deleted file mode 100644 index 9d892030..00000000 Binary files a/zioinfo/user/image/txt_jobname.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_mobile.gif b/zioinfo/user/image/txt_mobile.gif deleted file mode 100644 index adde5494..00000000 Binary files a/zioinfo/user/image/txt_mobile.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_name.gif b/zioinfo/user/image/txt_name.gif deleted file mode 100644 index 7945ae1e..00000000 Binary files a/zioinfo/user/image/txt_name.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_num.gif b/zioinfo/user/image/txt_num.gif deleted file mode 100644 index 5a65f21b..00000000 Binary files a/zioinfo/user/image/txt_num.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_phone.gif b/zioinfo/user/image/txt_phone.gif deleted file mode 100644 index d7e9faaa..00000000 Binary files a/zioinfo/user/image/txt_phone.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_pw.gif b/zioinfo/user/image/txt_pw.gif deleted file mode 100644 index 171ac1fd..00000000 Binary files a/zioinfo/user/image/txt_pw.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_pwagain.gif b/zioinfo/user/image/txt_pwagain.gif deleted file mode 100644 index 7c214e99..00000000 Binary files a/zioinfo/user/image/txt_pwagain.gif and /dev/null differ diff --git a/zioinfo/user/image/txt_star.gif b/zioinfo/user/image/txt_star.gif deleted file mode 100644 index 8af7300f..00000000 Binary files a/zioinfo/user/image/txt_star.gif and /dev/null differ diff --git a/zioinfo/user/redirectToLoginPage.jsp b/zioinfo/user/redirectToLoginPage.jsp deleted file mode 100644 index 91145661..00000000 --- a/zioinfo/user/redirectToLoginPage.jsp +++ /dev/null @@ -1,13 +0,0 @@ -<%@ page language="java" pageEncoding="EUC-KR"%> -<% - // α ̵ -%> -<%@ include file="/jsp/include/commonVariable.jspf"%> - - - <%@ include file="/jsp/include/header.jspf"%> - - - - - \ No newline at end of file