<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@include file="/include/include.jsp"%> <% login_tag = 1; %> <%@include file="/include/head.jsp"%> <%@include file="/cms_for_bcb/show_top.jsp"%> <% String c_survey_no = r_call(request.getParameter("c_survey_no")); String c_survey_project_no = r_call(request.getParameter("c_survey_project_no")); %>

<% String c_content = ""; String sql_sr4 = "select * "; sql_sr4 = sql_sr4 + " ,(select c_name from tbl_survey where c_no = " + c_survey_no + " ) as c_survey_name "; sql_sr4 = sql_sr4 + " , (select c_now from tbl_survey_target where c_survey_project_no = " + c_survey_project_no + " and c_member_no = "+ session.getAttribute("member_no") +" and c_use = 0) as c_member_now "; sql_sr4 = sql_sr4 + " , (select c_no from tbl_survey_target where c_survey_project_no = " + c_survey_project_no + " and c_member_no = "+ session.getAttribute("member_no") +" and c_use = 0) as c_target_no "; sql_sr4 = sql_sr4 + " from tbl_survey_project "; sql_sr4 = sql_sr4 + " where c_home = " +c_home + " and c_no = " + c_survey_project_no + " and c_survey_no = " + c_survey_no + " and c_use = 0 ";; ResultSet rs_sr4 = stmt.executeQuery(sql_sr4); if(rs_sr4.next()){ if(rs_sr4.getString("c_member_now") == null){ %> <% }else{ if(rs_sr4.getInt("c_member_now") == 1){ %> <% }else{ c_content = rs_sr4.getString("c_content"); %> Survey project : <%=rs_sr4.getString("c_name") %>
Kind of Survey : <%=rs_sr4.getString("c_survey_name") %>
<%=c_content%>
" type="hidden"> " type="hidden"> <% String sql_sr=" SELECT * from tbl_survey_problem where c_survey_no = " + c_survey_no + " and c_up_no = 0 and c_use=0 order by c_order asc"; ResultSet rs_sr = stmt.executeQuery(sql_sr); while (rs_sr.next()) { %> <% String sql_sr2=" SELECT * from tbl_survey_problem where c_survey_no = " + c_survey_no + " and c_up_no = "+ rs_sr.getInt("c_no") +" and c_use=0 order by c_order asc"; ResultSet rs_sr2 = stmt.executeQuery(sql_sr2); while (rs_sr2.next()) { %> <% if(rs_sr2.getInt("c_type") < 2){ %> <% } %> <% if(rs_sr2.getInt("c_type") == 2){ %> <% } %> <% if(rs_sr2.getInt("c_type") == 3){ %> <% } %> <% } rs_sr2.close(); %> <% } rs_sr.close(); %>
<%=rs_sr.getString("c_title")%>
<%=rs_sr2.getString("c_title")%>
<% String sql_sr3=" SELECT * from tbl_survey_answer where c_survey_no = " + c_survey_no + " and c_problem_no = "+ rs_sr2.getInt("c_no") +" and c_use=0 order by c_order asc"; ResultSet rs_sr3 = stmt.executeQuery(sql_sr3); while (rs_sr3.next()) { String input_type = "chekcbox"; if(rs_sr2.getInt("c_type") == 1){ input_type = "checkbox"; %>
_<%=rs_sr3.getInt("c_no")%>" type="<%=input_type%>" value="1"> <%=rs_sr3.getString("c_title")%> <%if(rs_sr3.getInt("c_type") == 1){%> _<%=rs_sr3.getInt("c_no")%>" > <%}%>     
<% }else{ input_type = "radio"; %>
" type="<%=input_type%>" value="<%=rs_sr3.getInt("c_no")%>"> <%=rs_sr3.getString("c_title")%> <%if(rs_sr3.getInt("c_type") == 1){%> _<%=rs_sr3.getInt("c_no")%>" > <%}%>     
<% } } rs_sr3.close(); %>
" style="width:100%;height:24px">
Participate List
<% } } }else{ %> <% } rs_sr4.close(); %> <%@include file="/cms_for_bcb/show_bottom.jsp"%> <%@include file="/include/bottom.jsp"%> <%@include file="/include/include_b.jsp"%>