', 0);
add_javascript('', 100);
// 페이지별 CSS/JS 파일 자동 로드
$current_file = basename($_SERVER['PHP_SELF'], '.php');
$page_css_map = [
'survey_form' => 'survey_form.css',
'template_form' => 'template_form.css',
'template_list' => 'template_list.css',
'statistics' => 'statistics.css'
];
$page_js_map = [
'survey_form' => 'survey_form.js',
'template_form' => 'template_form.js',
'statistics' => 'statistics.js'
];
// 페이지별 CSS 로드
if (isset($page_css_map[$current_file])) {
$css_file = SURVEY_ADMIN_PATH.'/css/'.$page_css_map[$current_file];
if (file_exists($css_file)) {
add_stylesheet('', 1);
}
}
// 페이지별 JS 로드
if (isset($page_js_map[$current_file])) {
$js_file = SURVEY_ADMIN_PATH.'/js/'.$page_js_map[$current_file];
if (file_exists($js_file)) {
add_javascript('', 101);
}
}