zioinfo-mail/zioinfo/js/jscalendar-1.0/test.php
DESKTOP-TKLFCPR\ython e228faabf5 feat(itsm): G-1~G-12 확장 기능 + 하네스/봇/설치스크립트 구현
G-1: 메신저 Webhook Relay + _send_to_room 실제 httpx 호출 구현
G-2: POST /api/tasks/bulk SR 대량작업 엔드포인트 (최대 100건)
G-3: 라이선스 만료 알림 스케줄러 (매일 09:00 KST)
G-4: 체험판 upgrade_banner 필드 + license.py 배너 로직
G-5: core/auto_rca.py + incidents/problem auto-rca 엔드포인트
G-6: core/deploy_impact.py + vibe impact-analysis 엔드포인트
G-7: core/ticket_classifier.py + SR 생성 시 AI 분류 + ai-suggestion API
G-8: VulnPatchRecord 모델 + vuln_scan 패치추적 4개 엔드포인트
G-9: core/jira_sync.py + gateway Jira/Confluence 연동 엔드포인트
G-10: core/push_notify.py + routers/push.py + PushSubscription 모델
G-11: approvals 다중승인 (위임/서명/기한초과/마감연장)
G-12: alembic.ini + migrations/ + cicd/migrate_to_postgres.sh

하네스: guardia-orchestrator 확장기능 Phase 반영
봇명령어: /sr /status /license /bulk 슬래시 명령어 추가
설치스크립트: setup/ (Ubuntu, CentOS, RHEL, Windows) --test 옵션 포함

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 18:18:52 +09:00

117 lines
3.2 KiB
PHP

<?php
$lang = $_GET['lang'];
if (!$lang) {
$lang = $_REQUEST['lang'];
}
if (!$lang) {
$lang = 'en';
}
setcookie('lang', $lang);
?>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>
Test for calendar.php
</title>
<?php
// put here the correct path to "calendar.php"; don't move the file
// "calendar.php" -- I think it's best if you leave it inside the
// "/jscalendar/" directory. Just put here the correct path to it, such as
// "../jscalendar/calendar.php" or something.
require_once ('calendar.php');
// parameters to constructor:
// 1. the absolute URL path to the calendar files
// 2. the languate used for the calendar (see the lang/ dir)
// 3. the theme file used for the clanedar, without the ".css" extension
// 4. boolean that specifies if the "_stripped" files are to be loaded
// The stripped files are smaller as they have no whitespace and comments
$calendar = new DHTML_Calendar('/jscalendar/', $lang, 'calendar-win2k-2', false);
// call this in the <head> section; it will "echo" code that loads the calendar
// scripts and theme file.
$calendar->load_files();
?>
</head>
<body>
<?php if ($_REQUEST['submitted']) { ?>
<h1>Form submitted</h1>
<?php foreach ($_REQUEST as $key => $val) {
echo htmlspecialchars($key) . ' = ' . htmlspecialchars($val) . '<br />';
} ?>
<?php } else { ?>
<h1>Calendar.php test</h1>
<form action="test.php" method="get">
Select language: <select name="lang" onchange="this.form.submit()">
<?php
$cwd = getcwd();
chdir('lang');
foreach (glob('*.js') as $filename) {
$l = preg_replace('/(^calendar-|.js$)/', '', $filename);
$selected = '';
if ($l == $lang)
$selected = 'selected="selected" ';
$display = $l;
if ($l == 'en')
$display = 'EN';
echo '<option ' . $selected . 'value="' . $l . '">' . $display . '</option>';
}
?>
</select>
<blockquote style="font-size: 90%">
<b>NOTE</b>: 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.
</blockquote>
</form>
<form action="test.php" method="get">
<input type="hidden" name="submitted" value="1" />
<table>
<tr>
<td>
Date 1:
</td>
<td>
<?php $calendar->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')))); ?>
</td>
</tr>
</table>
<hr />
<button>Submit</button>
</form>
<?php } ?>
</body>
</html>