0; $template = array( 'st_name' => '', 'st_description' => '', 'st_category' => '고객서비스', 'st_is_public' => 1 ); $questions = array(); if ($is_edit) { $template = sql_fetch("SELECT * FROM survey_templates WHERE st_id = '$st_id'"); if (!$template) { alert('존재하지 않는 템플릿입니다.', 'template_list.php'); } // 템플릿 질문들 가져오기 $question_sql = "SELECT * FROM survey_template_questions WHERE st_id = '$st_id' ORDER BY stq_order ASC"; $question_result = sql_query($question_sql); while ($question = sql_fetch_array($question_result)) { $questions[] = $question; } $g5['title'] = '템플릿 수정'; } else { $g5['title'] = '새 템플릿 만들기'; } include_once(G5_ADMIN_PATH.'/admin.head.php'); ?>
설문 템플릿을 만들어 다른 사용자들과 공유하세요