Files
sms_host20170829/content/poll/skin1/view.asp
T
2026-02-23 10:01:00 +09:00

160 lines
3.6 KiB
Plaintext

<%
poq_idx = InputValue(request("poq_idx"))
sun = InputValue(request("sun"))
' 레코드필드
R_Fields = "poq_idx ,po_pk ,poq_code, poq_topmemo, poq_question, poq_type, poq_multi, poq_chk, poq_bogi1, poq_bogi2, poq_bogi3, poq_bogi4, poq_bogi5, poq_wdate, poq_mdate"
R_tablename_str = "poll_question "
R_WHERE_str = " WHERE poq_idx="&poq_idx
Call SelectQuery (R_Fields, R_tablename_str, R_WHERE_str)
' 테이블 기본 환경설정 ********************************************************************************
table = "poll_result" ' 테이블명
idx_field = "por_idx" ' 기본키
oreder_filed = "por_wdate DESC" ' 정렬기준 필드
Query_Fields = "por_idx, por_result, por_mid, por_wdate, po_pk, poq_idx, por_ip" ' 불러올 필드
' ****************************************************************************************************
' ---------------조합 쿼리문------------------------------------
If v_keyword <> "" then
search_str = " AND "&v_search&" like '%"&v_keyword&"%'"
End if
Query_OrderBy = " ORDER BY "&oreder_filed
' ---------------------------------------------------------------
' -----------------------------리스트 출력 쿼리문 생성-----------------------------
sql = "select "&Query_Fields&" from "&table&" WHERE po_pk = "&po_pk&" AND poq_idx = '"&poq_idx&"' "
sql = sql &search_str & search_str2 & Query_OrderBy
Set Rs = Dbcon.Execute (sql)
If rs.eof Then
vCnt =-1
Else
vData = rs.getrows()
vCnt = UBound(vData,2)
End If
rs.close : Set rs = nothing
' ---------------------------------------------------------------------------------
%>
<!DOCTYPE html PUBLIC "-' W3C' DTD XHTML 1.0 Strict' EN" "http:' www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http:' www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex, nofollow" />
<title>설문조사 결과보기</title>
<link rel="Stylesheet" type="text/css" href="/content/poll/skin1/css/common.css" />
<script type="text/javascript" src="/content/poll/skin1/js/common.js"></script>
<script type="text/javascript" src="/common/js/common_dev.js"></script>
</head>
<body>
<!-- 리스트 -->
<div id="poll_popup">
<!-- 타이틀 -->
<div class="table_bview">
<div class="count"><%=sun%></div>
<span class="subject"><%=poq_question%></span>
</div>
<!-- ' 타이틀 -->
<!-- 리스트 테이블 -->
<div class="table_blist">
<fieldset>
<legend>게시물 리스트</legend>
<table cellspacing="0">
<caption>리스트</caption>
<colgroup>
<col width="50" />
<col width="" />
<col width="75" />
</colgroup>
<thead>
<tr>
<th scope="col">번호</th>
<th scope="col">내용</th>
<th scope="col">등록일</th>
</tr>
</thead>
<tbody>
<%
If vCnt>-1 Then
num = vCnt+1
zz = 1
For i=0 To vCnt
' 필드갯수만큼 ($Query_Fields).가지고온다..
Call arr2Value(Query_Fields, "vData", i)
%>
<tr>
<td><%=num%></td>
<td class="title"><%=por_result%></td>
<td><%=left(por_wdate,10)%></td>
</tr>
<%
num = num - 1
zz = zz + 1
next
else
%>
<tr>
<td></td>
<td class="title"></td>
<td></td>
</tr>
<%
End if
%>
</tbody>
</table>
</fieldset>
</div>
<!-- ' 리스트 테이블 -->
<!-- 버튼 -->
<div class="poll_button2">
<span><a href="#close" onclick="window.close();" title="창닫기" tabindex="<%' =getTabIndex()%>" ><img src="/content/poll/skin1/img/close_bt.gif" width="72" height="23" alt="창닫기" /></a></span>
</div>
<!-- ' 버튼 -->
</div>
<!-- ' 리스트 -->
</body>
</html>