최초등록
@@ -0,0 +1,174 @@
|
||||
@charset "utf-8";
|
||||
|
||||
html, body, div, span, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, address, big, cite, code,
|
||||
del, dfn, em, font, img, ins, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td
|
||||
{margin:0; padding:0; border:0;}
|
||||
ol, ul, li {list-style:none;}
|
||||
|
||||
legend {visibility:hidden; display:none; height:0; width:0; font-size:0;}
|
||||
|
||||
body {font-size: 75%; font-family: Dotum,sans-serif; color: #575757;}
|
||||
table {border-spacing:0;}
|
||||
a, a:link {color: #575757; text-decoration: none; cursor: pointer; }
|
||||
a:visited {color: #575757;}
|
||||
a:hover, a:active, a:focus {color: #575757; text-decoration: underline;}
|
||||
select{font-size: 1em;}
|
||||
input.poll_input {border:1px solid #cdcdcd; height:15px; padding:3px 3px 0px 3px; font-size:1em; background-color:#ffffff;}
|
||||
input.poll_input_file {width:90%; border:1px solid #cdcdcd; padding:3px 3px 0px 3px; font-size: 1em; background-color:#ffffff;}
|
||||
textarea {border:1px solid #CDCDCD; font-size:1em;}
|
||||
.display_none {display:none;}
|
||||
|
||||
|
||||
#poll {width:642px; margin:0 auto; }
|
||||
|
||||
#poll .poll_total {width:100%;}
|
||||
#poll .poll_total_left {float:left; font-size:0.95em; padding-bottom:5px;}
|
||||
#poll .poll_total_right {float:right; padding-bottom:5px;}
|
||||
#poll .poll_total_right li {float:left;}
|
||||
#poll .poll_total_right li img {height:20px;}
|
||||
#poll .poll_total img {padding-left:3px;}
|
||||
#poll div.poll_total .poll_orange{color:#F96F00;}
|
||||
#poll .poll_button {width:100%; margin-top:5px; text-align:right;}
|
||||
#poll .guide span {float:right; color:#838383; font-family:dotum; font-size:0.9em; font-weight:normal; letter-spacing:-0.1em; padding:0 4px 6px 0;}
|
||||
#poll span.category_color {color:#979797;}
|
||||
|
||||
/* List */
|
||||
#poll .table_blist {clear:both;}
|
||||
#poll .table_blist table{width:100%; line-height:16px; border-collapse:collapse; border-top:2px solid #C8C8C8; border-bottom:2px solid #DEDEDE;}
|
||||
#poll .table_blist table caption{display:none;}
|
||||
#poll .table_blist thead th {text-align:center;border-bottom:1px solid #DCDCDC; height:28px; color:#666666; font-weight:bold; letter-spacing:-0.1em; line-height:160%; background:url(/content/poll/skin1/img/tit_line.gif) no-repeat right; }
|
||||
#poll .table_blist thead th.th_none {background-image:none;}
|
||||
#poll .table_blist tbody td{white-space:nowrap; height:27px; border-bottom:1px solid #F3F3F3; background:#ffffff; text-align:center; line-height:140%;}
|
||||
#poll .table_blist tbody td img{vertical-align:middle;}
|
||||
#poll .table_blist tbody td span.reply_count {color:#EE5A00; font-size: 0.9em; font-weight:normal; letter-spacing:-0.1em;}
|
||||
#poll .table_blist tbody td span.orange {color:#F96F00;}
|
||||
#poll .table_blist tbody td.notice {background-color:#FBFBFB;}
|
||||
#poll .table_blist tbody td.title {white-space:nowrap; text-align:left;}
|
||||
#poll .table_blist tbody td.center {text-align:center;}
|
||||
|
||||
/* Write */
|
||||
#poll .table_bwrite {clear:both; padding-top:20px;}
|
||||
#poll .table_bwrite table{width:100%; line-height:16px; border-collapse:collapse; border-bottom:1px solid #F0F0F0;}
|
||||
#poll .table_bwrite table caption{display:none;}
|
||||
#poll .table_bwrite thead th {background:#F0F0F0; padding:8px 0 6px 0; color:#373737; font-weight:bold; line-height:130%;}
|
||||
#poll .table_bwrite thead th.subject {text-align:left;padding-right:8px;}
|
||||
#poll .table_bwrite thead th.count {background:url(/content/poll/skin1/img/count_bg.gif) #F0F0F0 no-repeat scroll 11px 8px;text-align:center; vertical-align:top; font-family:verdana; color:#ffffff; font-size:0.8em; padding-bottom:8px; letter-spacing:-0.1em;}
|
||||
#poll .table_bwrite tbody td.content{padding:10px 0 10px 0; text-align:left;}
|
||||
#poll .table_bwrite tbody td.content div{padding-bottom:3px;}
|
||||
|
||||
/* Title */
|
||||
#poll_tit .title_bg {width:99%; background-color:#FFFFFF; border:4px solid #F5F5F5;}
|
||||
#poll_tit .title_bg_02 {padding:15px;}
|
||||
#poll_tit .title {background-color:#E0EFF3;font-weight:bold;height:18px;padding:6px;color:#000000;font-size:1.1em;font-family:gulim; text-align:left;}
|
||||
#poll_tit .title img {vertical-align:middle;}
|
||||
#poll_tit .title_content {margin-top:15px;text-align:justify;}
|
||||
#poll_tit .title_content ul {margin:0 0 0 20px;padding:0;}
|
||||
#poll_tit .title_content li {background:transparent url(/content/poll/skin1/img/bull_list.gif) no-repeat scroll 3px 40%; padding:2px 0 2px 10px; }
|
||||
|
||||
|
||||
/* View */
|
||||
#poll .table_bview {clear:both; padding-top:20px;}
|
||||
#poll .table_bview table{width:100%; line-height:16px; border-collapse:collapse; border-bottom:1px solid #F0F0F0;}
|
||||
#poll .table_bview table caption{display:none;}
|
||||
#poll .table_bview thead th {background:#F0F0F0; padding:8px 0 6px 0; color:#373737; font-weight:bold; line-height:130%;}
|
||||
#poll .table_bview thead th.subject {text-align:left;padding-right:8px;}
|
||||
#poll .table_bview thead th.count {background:url(/content/poll/skin1/img/count_bg.gif) #F0F0F0 no-repeat scroll 11px 8px;text-align:center; vertical-align:top; font-family:verdana; color:#ffffff; font-size:0.8em; padding-bottom:8px; letter-spacing:-0.1em;}
|
||||
#poll .table_bview tbody td.content{padding:20px 0 10px 0; text-align:left;}
|
||||
|
||||
#poll .total_result {width:100%;}
|
||||
#poll .result01 {float:left;width:50%; background:transparent url(/content/poll/skin1/img/bull_list.gif) no-repeat scroll 1px 36%;padding-left:7px;}
|
||||
#poll .result02 {float:left;width:50px; text-align:right;}
|
||||
#poll .result03 {float:left;width:50px; text-align:right;}
|
||||
#poll .result04 {float:left;width:150px;margin-left:10px;}
|
||||
#poll .graph01 {background-image:url(/content/poll/skin1/img/graph_bar01.gif);height:13px;}
|
||||
#poll .graph02 {background-image:url(/content/poll/skin1/img/graph_bar02.gif);height:13px;}
|
||||
#poll .graph03 {background-image:url(/content/poll/skin1/img/graph_bar03.gif);height:13px;}
|
||||
#poll .graph04 {background-image:url(/content/poll/skin1/img/graph_bar04.gif);height:13px;}
|
||||
#poll .graph05 {background-image:url(/content/poll/skin1/img/graph_bar05.gif);height:13px;}
|
||||
#poll .clear {clear:both;padding-bottom:6px;}
|
||||
|
||||
|
||||
/* View Popup */
|
||||
#poll_popup {width:100%;}
|
||||
#poll_popup .table_bview {clear:both;background:#F0F0F0; padding:8px 0 8px 0; color:#373737; font-weight:bold; }
|
||||
#poll_popup .table_bview div.subject {float:left; text-align:left;}
|
||||
#poll_popup .table_bview div.count {float:left; width:38px; height:20px; background:url(/content/poll/skin1/img/count_bg.gif) #F0F0F0 no-repeat scroll 11px 0px;;text-align:center; vertical-align:top; font-family:verdana; color:#ffffff; font-size:0.8em; letter-spacing:-0.1em;}
|
||||
|
||||
#poll_popup .table_blist {clear:both; text-align:center; margin:0 auto; padding-top:20px; padding-bottom:20px;}
|
||||
#poll_popup .table_blist table{width:96%; line-height:16px; border-collapse:collapse; border-top:2px solid #C8C8C8; }
|
||||
#poll_popup .table_blist table caption{display:none;}
|
||||
#poll_popup .table_blist thead th {border:1px solid #DCDCDC; height:28px; background:#F4F4F4; color:#666666; font-weight:bold; letter-spacing:-0.1em; line-height:160%;}
|
||||
#poll_popup .table_blist thead th.th_none {background-image:none;}
|
||||
#poll_popup .table_blist tbody td{ border:1px solid #DCDCDC; background:#ffffff; text-align:center; line-height:140%;}
|
||||
#poll_popup .table_blist tbody td.notice {background-color:#FBFBFB;}
|
||||
#poll_popup .table_blist tbody td.title {text-align:left;padding:4px;}
|
||||
#poll_popup .table_blist tbody td.center {text-align:center;}
|
||||
|
||||
|
||||
|
||||
|
||||
/* Paginate */
|
||||
.poll_paginate{clear:both; position:relative; text-align:center;}
|
||||
.poll_paginate *{margin:0; padding:0;}
|
||||
.poll_paginate a,
|
||||
.poll_paginate strong{position:relative; margin-left:-7px; font-weight:bold; display:inline-block; padding:3px 8px 1px 7px; color:#313031; border-left:1px solid #ccc; border-right:1px solid #ccc; text-decoration:none; line-height:normal; font:bold 12px 돋움, Dotum, 굴림, Gulim, AppleGothic, Sans-serif; background:#fff;}
|
||||
.poll_paginate strong{color:#ff8600 !important;}
|
||||
.poll_paginate a:hover{background:#F7F7F7;}
|
||||
.poll_paginate a.pre{padding:3px 8px 1px 16px; background:url(/content/poll/skin1/img/bu_pg1_l1.gif) no-repeat 8px 6px !important; border:none; font-weight:normal; }
|
||||
.poll_paginate a.next{padding:3px 16px 1px 8px; background:url(/manager/img/bu_pg1_r1.gif) no-repeat 37px 6px !important; border:none; font-weight:normal; }
|
||||
|
||||
/* Button */
|
||||
.poll_button {clear:both;}
|
||||
.poll_button .fl {float:left;}
|
||||
.poll_button .fr {float:right; overflow:hidden;}
|
||||
.poll_button .pt10 {padding-top:10px;}
|
||||
|
||||
|
||||
.poll_button ul li {float:left;}
|
||||
.poll_button ul li.pl {padding-left:10px;}
|
||||
.poll_button ul li.pt {padding-top:7px;}
|
||||
.poll_button span.bt {float:right; padding-top:10px; padding-left:4px; text-align:right;}
|
||||
.poll_button2 {margin:0 auto; text-align:center; padding-top:10px; padding-left:4px;}
|
||||
|
||||
|
||||
|
||||
|
||||
.poll_bt01 {display:inline;}
|
||||
.poll_bt01 a{display:inline; overflow:hidden; float:left; height:22px; padding-left:13px; margin-right:3px; font:12px dotum; letter-spacing:-1px; color:#6B6B6B; text-decoration:none; background:url(/content/poll/skin1/img/bt01_bg.gif) left 0; cursor:pointer;}
|
||||
.poll_bt01 a:hover{background:url(/content/poll/skin1/img/bt01_bg.gif) left -22px; text-decoration:none;}
|
||||
.poll_bt01 a span{display:inline; overflow:hidden; float:left; height:22px; padding-right:10px; line-height:200%; background:url(/content/poll/skin1/img/bt01_bg.gif) right 0;}
|
||||
.poll_bt01 a:hover span{color:#6B6B6B; background:url(/content/poll/skin1/img/bt01_bg.gif) right -22px;}
|
||||
|
||||
|
||||
/* Search */
|
||||
.poll_search {width:340px; margin:0 auto; margin-top:18px;}
|
||||
.poll_search ul {float:left;}
|
||||
.poll_search ul li {float:left; background:url(/content/poll/skin1/img/search_bg.gif); height:35px;}
|
||||
.poll_search ul li.poll_search_start {float:left; width:18px; height:35px; background:url(/content/poll/skin1/img/search_left.gif); background-repeat:no-repeat;}
|
||||
.poll_search ul li.poll_search_end {float:left; width:18px; height:35px; background:url(/content/poll/skin1/img/search_right.gif); background-repeat:no-repeat;}
|
||||
.poll_search ul li select {float:left; margin-top:8px; margin-right:3px;}
|
||||
.poll_search ul li input {float:left; margin-top:7px; margin-right:3px;}
|
||||
.poll_search ul li input.search_bt {float:left; margin-top:8px; margin-bottom:1px;}
|
||||
|
||||
|
||||
.command_pwd {position:absolute; border:2px solid #C6C6C6; background-color:#ffffff; padding:8px 15px 8px 15px; text-align:center; vertical-align:middle; font-weight:bold; color:#313131; line-height:140%;}
|
||||
.command_pwd li.text {float:left; letter-spacing:-0.1em; padding:0; font-size:0.9em; padding-top:4px;padding-right:4px;}
|
||||
.command_pwd li {float:left; padding-left:3px;}
|
||||
.command_pwd li img {height:20px;padding-top:1px;}
|
||||
|
||||
|
||||
.pwd_check {width:90%; margin:0 auto; margin-top:20px; text-align:center; border-top:2px solid #C8C8C8; border-bottom:2px solid #DEDEDE; background-color:#ffffff; padding:25px; font-weight:bold; color:#313131; line-height:140%;}
|
||||
.pwd_check *{margin:0; padding:0;}
|
||||
.pwd_check span{color:#7D7D7D; letter-spacing:-1px; font-size:11px;}
|
||||
.pwd_check li.text {letter-spacing:-0.1em; font-size:0.9em;}
|
||||
.pwd_check li {}
|
||||
.pwd_check_button {width:90%;margin:0 auto; text-align:center; padding-top:10px;}
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 49 B |
|
After Width: | Height: | Size: 668 B |
|
After Width: | Height: | Size: 601 B |
|
After Width: | Height: | Size: 161 B |
|
After Width: | Height: | Size: 105 B |
|
After Width: | Height: | Size: 105 B |
|
After Width: | Height: | Size: 105 B |
|
After Width: | Height: | Size: 105 B |
|
After Width: | Height: | Size: 883 B |
|
After Width: | Height: | Size: 703 B |
|
After Width: | Height: | Size: 219 B |
|
After Width: | Height: | Size: 362 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 599 B |
|
After Width: | Height: | Size: 686 B |
|
After Width: | Height: | Size: 761 B |
|
After Width: | Height: | Size: 406 B |
|
After Width: | Height: | Size: 181 B |
|
After Width: | Height: | Size: 92 B |
@@ -0,0 +1,48 @@
|
||||
function focus_on1(str) {
|
||||
(str).style.border='1px solid #7D7D7D';
|
||||
(str).style.background='#ffffff';
|
||||
}
|
||||
|
||||
function focus_off1(str) {
|
||||
(str).style.border='1px solid #cdcdcd';
|
||||
(str).style.background='#ffffff';
|
||||
}
|
||||
|
||||
|
||||
|
||||
function add() {
|
||||
var change = false;
|
||||
for (var i = 1; i < 5; i++) {
|
||||
var obj = document.getElementById("filediv" + i);
|
||||
if (obj != null) {
|
||||
if (obj.style.display == "none") {
|
||||
obj.style.display = "block";
|
||||
change = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (change == false) {
|
||||
alert("파일을 더 이상 추가 할 수 없습니다.");
|
||||
}
|
||||
}
|
||||
function del(index) {
|
||||
var fileobj = document.getElementById("upload" + index);
|
||||
var divobj = document.getElementById("filediv" + index);
|
||||
fileobj.outerHTML = fileobj.outerHTML;
|
||||
divobj.style.display = "none";
|
||||
}
|
||||
|
||||
|
||||
//PNG 투명
|
||||
var clear="/content/board/nninc_simple/img/clear.gif" //path to clear.gif
|
||||
|
||||
pngfix=function(){var els=document.getElementsByTagName('*');var ip=/\.png/i;var i=els.length;while(i-- >0){var el=els[i];var es=el.style;if(el.src&&el.src.match(ip)&&!es.filter){es.height=el.height;es.width=el.width;es.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+el.src+"',sizingMethod='crop')";el.src=clear;}else{var elb=el.currentStyle.backgroundImage;if(elb.match(ip)){var path=elb.split('"');var rep=(el.currentStyle.backgroundRepeat=='no-repeat')?'crop':'scale';es.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+path[1]+"',sizingMethod='"+rep+"')";es.height=el.clientHeight+'px';es.backgroundImage='none';var elkids=el.getElementsByTagName('*');if (elkids){var j=elkids.length;if(el.currentStyle.position!="absolute")es.position='static';while (j-- >0)if(!elkids[j].style.position)elkids[j].style.position="relative";}}}}}
|
||||
window.attachEvent('onload',pngfix);
|
||||
|
||||
|
||||
//새창
|
||||
function win_popup2(sun,idx,vscrollbars,vtoolbar,vmenubar,vlocation,vwidth,vheight){
|
||||
alert("aaa");
|
||||
window.open('/content/poll/view.php?sun='+sun+'&poq_idx='+idx,'','scrollbars='+vscrollbars+',toolbar='+vtoolbar+',menubar='+vmenubar+',location='+vlocation+',width='+vwidth+',height='+vheight+',location=no');
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
<%
|
||||
|
||||
' 테이블 기본 환경설정 ********************************************************************************
|
||||
|
||||
table = "poll" ' 테이블명
|
||||
idx_field = "po_idx" ' 기본키
|
||||
oreder_filed = "po_wdate desc" ' 정렬기준 필드
|
||||
Query_Fields = "po_idx, po_subject, po_group, po_addid, po_sdate, po_edate, po_chk, po_code, po_pk, po_wdate, po_mdate, po_count" ' 불러올 필드
|
||||
Query_b_Where = "" '기본 검색
|
||||
|
||||
v_pagesize = 20 ' 목록개수
|
||||
v_block = 10 ' 페이지개수
|
||||
' ****************************************************************************************************
|
||||
|
||||
|
||||
|
||||
' ---------------조합 쿼리문------------------------------------
|
||||
v_search = inputvalue(request("v_search"))
|
||||
v_keyword = inputvalue(request("v_keyword"))
|
||||
|
||||
If Query_b_Where<>"" Then
|
||||
Query_Where = " and " & Query_b_Where '기본 검색
|
||||
End If
|
||||
|
||||
If v_keyword <> "" then
|
||||
Query_Where = Query_Where & " and "&v_search&" like '%"&v_keyword&"%'"
|
||||
End If
|
||||
|
||||
If Query_Where<>"" Then
|
||||
Query_Where2 = " WHERE " & Mid(Query_Where,5)
|
||||
End If
|
||||
|
||||
Query_OrderBy = " ORDER BY "&oreder_filed
|
||||
|
||||
' ---------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
' ---------------------전체 레코드 수 뽑기----------------------------------------
|
||||
sql = "select count("& idx_field &") as "& idx_field &" from "& table & Query_Where2
|
||||
Set Rs = Dbcon.Execute (sql)
|
||||
recordcount = rs(0) '이 전체레코드갯수를 이용해서 페이지갯수를 뽑아 낼것이다.
|
||||
rs.close : Set rs = nothing
|
||||
' ---------------------------------------------------------------------------------
|
||||
|
||||
|
||||
v_totalpage = int((recordcount-1)/v_pagesize)+1 '전체덩어리갯수
|
||||
v_page = p_page
|
||||
|
||||
If v_page = "" then
|
||||
v_page = 1
|
||||
ElseIf v_page < 1 then
|
||||
v_page = 1
|
||||
ElseIf v_page > v_totalpage then
|
||||
v_page = v_totalpage
|
||||
End If
|
||||
|
||||
|
||||
' -----------------------------리스트 출력 쿼리문 생성-----------------------------
|
||||
strSQL = " SELECT TOP "& v_pagesize &" "& Query_Fields &" FROM "& table &" WHERE "& idx_field &" NOT IN "
|
||||
strSQL = strSQL & " ( SELECT TOP "& v_pagesize*(v_page-1) &" "& idx_field &" FROM "& table & Query_Where2 & Query_OrderBy &" ) "
|
||||
strSQL = strSQL & Query_Where &" "& Query_OrderBy
|
||||
Set rs = Dbcon.execute(strSQL)
|
||||
If Not rs.eof Then
|
||||
vData = rs.getrows()
|
||||
vCnt = UBound(vData,2)
|
||||
Else
|
||||
vCnt = -1
|
||||
End If
|
||||
rs.close : Set rs = Nothing
|
||||
' ---------------------------------------------------------------------------------
|
||||
|
||||
getdate_str = getDateFm(now,4)
|
||||
|
||||
%>
|
||||
<!--#include virtual="/content/poll/top.asp"-->
|
||||
|
||||
<script type="text/javascript">
|
||||
ViewCss('/content/poll/skin1/css/common.css');
|
||||
</script>
|
||||
<script type="text/javascript" src="/content/poll/skin1/js/common.js"></script>
|
||||
|
||||
<!-- 리스트 -->
|
||||
<div id="poll">
|
||||
|
||||
|
||||
<div>
|
||||
<input type="hidden" name="status" />
|
||||
<input type="hidden" name="a_num" value="<%=a_num%>" />
|
||||
|
||||
<input type="hidden" id="chk_all" name="chk_all" /><!-- 전체체크 사용하려구.. -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="poll_total">
|
||||
<div class="poll_total_left">
|
||||
<img src="/content/poll/skin1/img/total_ic.gif" width="9" height="8" alt="" /> 전체 <strong><%=recordcount%></strong>개 (페이지 <strong class="poll_orange"><%=v_page%></strong>/<%=v_totalpage%>)
|
||||
</div>
|
||||
<div class="poll_total_right">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 리스트 테이블 -->
|
||||
<div class="table_blist">
|
||||
<fieldset>
|
||||
<legend>게시물 리스트</legend>
|
||||
<table cellspacing="0" summary="게시판명 게시글 정보를 제공하고 제목을 클릭하면 상세내용화면으로 이동됩니다.">
|
||||
<caption>리스트</caption>
|
||||
<colgroup>
|
||||
<col width="60" />
|
||||
<col width="" />
|
||||
<col width="150" />
|
||||
<col width="80" />
|
||||
<col width="50" />
|
||||
<col width="50" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">번호</th>
|
||||
<th scope="col">주제</th>
|
||||
<th scope="col">설문기간</th>
|
||||
<th scope="col">참여자수</th>
|
||||
<th scope="col">상태</th>
|
||||
<th scope="col" class="th_none">결과</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<%
|
||||
If vCnt>-1 Then
|
||||
|
||||
|
||||
If v_page = 1 then
|
||||
num = recordcount
|
||||
else
|
||||
num = recordcount - ((v_page - 1) * v_pagesize)
|
||||
End if
|
||||
|
||||
For i=0 To vCnt
|
||||
|
||||
Call arr2Value(Query_Fields, "vData", i)
|
||||
|
||||
|
||||
If po_edate >= getdate_str and po_sdate <= getdate_str then ' 진행일때..
|
||||
|
||||
po_chk_str2 = "<span class='orange'><strong>진행</strong></span>"
|
||||
link_str = "poll.asp?po_pk="&po_pk&"&"&page_info
|
||||
|
||||
else
|
||||
|
||||
po_chk_str2 = "<strong>종료</strong>"
|
||||
link_str = "#end"
|
||||
|
||||
|
||||
End If
|
||||
|
||||
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td><%=num%></td>
|
||||
<td class="title"><a href="<%=link_str%>"><%=po_subject%></a></td>
|
||||
<td><%=po_sdate%> ~ <%=po_edate%></td>
|
||||
<td><%=po_count%>명</td>
|
||||
<td><%=po_chk_str2%></td>
|
||||
<td><a href="result.asp?po_pk=<%=po_pk%>&<%=page_info%>"><img src="/content/poll/skin1/img/view_bt.gif" width="24" height="14" alt="보기" /></a></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<%
|
||||
num = num - 1
|
||||
next
|
||||
Else
|
||||
%>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="title"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
End if
|
||||
%>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
<!-- //리스트 테이블 -->
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 버튼 -->
|
||||
<div class="poll_button">
|
||||
|
||||
</div>
|
||||
<!-- //버튼 -->
|
||||
|
||||
<!-- 페이징 -->
|
||||
<div class="poll_paginate">
|
||||
<%page("list.asp")%>
|
||||
</div>
|
||||
<!-- //페이징 -->
|
||||
|
||||
<!-- 게시물 검색 -->
|
||||
<div class="poll_search">
|
||||
<form id="frm_sch" action="list.asp" method="post">
|
||||
<fieldset>
|
||||
<legend>게시물 검색</legend>
|
||||
<ul>
|
||||
<li class="poll_search_start"></li>
|
||||
<li><img src="/content/poll/skin1/img/search_ic.gif" width="21" height="25" alt="" /></li>
|
||||
<li><select id="p_search" name="p_search" title="검색형태 선택" tabindex="<%' =getTabIndex()%>">
|
||||
<option value="po_subject" <%if v_search = "po_subject" Then resposne.write "selected='selected'" End If %>>제목</option>
|
||||
<!-- <option value="b_content" <%if v_search = "b_content" then response.write "selected='selected'" end if %>>내용</option> -->
|
||||
</select></li>
|
||||
<li><input type="text" size="25" title="검색어를 입력하세요" id="p_keyword" name="p_keyword" class="poll_input" value="<%=v_keyword%>" tabindex="<%=getTabIndex()%>" /></li>
|
||||
<li><input type="image" src="/content/poll/skin1/img/search_bt.gif" id="search_bt" name="search_bt" class="search_bt" alt="검색" /></li>
|
||||
<li class="poll_search_end"></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<!-- //게시물 검색 -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!-- //리스트 -->
|
||||
|
||||
|
||||
<!-- 하단 파일 -->
|
||||
<!--#include virtual="/content/poll/bottom.asp"-->
|
||||
@@ -0,0 +1,255 @@
|
||||
<%
|
||||
|
||||
po_pk = InputValue(request("po_pk"))
|
||||
|
||||
' 레코드필드
|
||||
R_Fields = "po_idx, po_subject, po_group, po_addid, po_sdate, po_edate, po_chk, po_code, po_pk, po_wdate, po_mdate, po_count"
|
||||
R_tablename_str = "poll "
|
||||
R_WHERE_str = " WHERE po_pk="&po_pk
|
||||
|
||||
Call SelectQuery (R_Fields, R_tablename_str, R_WHERE_str)
|
||||
|
||||
If po_sdate = "" then
|
||||
|
||||
po_sdate_y = Year(now)
|
||||
po_sdate_m = Month(now)
|
||||
po_sdate_d = Day(now)
|
||||
|
||||
Else
|
||||
|
||||
po_sdate_arr = split(po_sdate, "-")
|
||||
|
||||
po_sdate_y = po_sdate_arr(0)
|
||||
po_sdate_m = po_sdate_arr(1)
|
||||
po_sdate_d = po_sdate_arr(2)
|
||||
|
||||
End if
|
||||
|
||||
|
||||
If po_edate = "" Then
|
||||
|
||||
nm = DateAdd("m", 1, now)
|
||||
|
||||
po_edate_y = Year(nm)
|
||||
po_edate_m = Month(nm)
|
||||
po_edate_d = Day(nm)
|
||||
|
||||
else
|
||||
|
||||
po_edate_arr = split(po_edate, "-")
|
||||
|
||||
po_edate_y = po_edate_arr(0)
|
||||
po_edate_m = po_edate_arr(1)
|
||||
po_edate_d = po_edate_arr(2)
|
||||
|
||||
End If
|
||||
|
||||
If Len(po_sdate_m)=1 Then po_sdate_m = "0" & po_sdate_m
|
||||
If Len(po_sdate_d)=1 Then po_sdate_d = "0" & po_sdate_d
|
||||
If Len(po_edate_m)=1 Then po_edate_m = "0" & po_edate_m
|
||||
If Len(po_edate_d)=1 Then po_edate_d = "0" & po_edate_d
|
||||
|
||||
|
||||
|
||||
' 등급별 권한설정 -----------------------------------------------
|
||||
if session("ss_g_num") = "" then
|
||||
g_num = 2 ' 비회원2 , 총관리자 1
|
||||
else
|
||||
g_num = session("ss_g_num")
|
||||
End if
|
||||
|
||||
g_num_str = "["&g_num&"]"
|
||||
|
||||
If InStr(po_group, g_num_str)=0 Then
|
||||
Call Back_back("참가권한이 없습니다.")
|
||||
response.end
|
||||
End if
|
||||
' -----------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
' 테이블 기본 환경설정 ********************************************************************************
|
||||
table = "poll_question" ' 테이블명
|
||||
idx_field = "poq_idx" ' 기본키
|
||||
oreder_filed = "poq_code ASC" ' 정렬기준 필드
|
||||
Query_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" ' 불러올 필드
|
||||
' ****************************************************************************************************
|
||||
|
||||
' ---------------조합 쿼리문------------------------------------
|
||||
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_chk = 'Y' "
|
||||
sql = sql & search_str & search_str2 & Query_OrderBy
|
||||
Set Rs = Dbcon.Execute (sql)
|
||||
If Not rs.eof Then
|
||||
vData = rs.getrows()
|
||||
vCnt = UBound(vData,2)
|
||||
Else
|
||||
vCnt = -1
|
||||
End If
|
||||
rs.close : Set rs = Nothing
|
||||
' ---------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%>
|
||||
|
||||
<!--#include virtual="/content/poll/top.asp"-->
|
||||
|
||||
<script type="text/javascript">
|
||||
ViewCss('/content/poll/skin1/css/common.css');
|
||||
</script>
|
||||
<script type="text/javascript" src="/content/poll/skin1/js/common.js"></script>
|
||||
|
||||
|
||||
|
||||
<!-- 리스트 -->
|
||||
<div id="poll">
|
||||
|
||||
<form id= "frm_list" action="poll_ok.asp?<%=page_info%>" method='post'>
|
||||
<div>
|
||||
<input type="hidden" name="po_pk" value="<%=po_pk%>" />
|
||||
<input type="hidden" name="por_mid" value="<%=session("m_id")%>" />
|
||||
</div>
|
||||
|
||||
<!-- 설문주제 타이틀 -->
|
||||
<div id="poll_tit">
|
||||
<div class="title_bg">
|
||||
<div class="title_bg_02">
|
||||
<div class="title">
|
||||
<img src="/content/poll/skin1/img/poll_tit_ic.gif" width="62" height="19" alt="설문주제" />
|
||||
<%=po_subject%>
|
||||
</div>
|
||||
<div class="title_content">
|
||||
<ul>
|
||||
<li>
|
||||
<strong>기 간</strong>
|
||||
: <%=po_sdate_y%>년 <%=po_sdate_m%>월 <%=po_sdate_d%>일 ~ <%=po_edate_y%>년 <%=po_edate_m%>월 <%=po_edate_d%>일
|
||||
</li>
|
||||
<li>
|
||||
<strong>총문항수</strong>
|
||||
: <%=total%> 문항
|
||||
</li>
|
||||
<li>
|
||||
<strong>참여자수</strong>
|
||||
: <%=po_count%> 명
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //설문주제 타이틀 -->
|
||||
|
||||
|
||||
<!-- 리스트 테이블 -->
|
||||
|
||||
<%
|
||||
If vCnt>-1 Then
|
||||
|
||||
For i=0 To vCnt
|
||||
|
||||
Call arr2Value(Query_Fields, "vData", i)
|
||||
|
||||
|
||||
If poq_chk ="Y" then
|
||||
poq_chk_str = "<strong>사용</strong>"
|
||||
else
|
||||
poq_chk_str = "중지"
|
||||
End If
|
||||
%>
|
||||
|
||||
|
||||
<div class="table_bwrite">
|
||||
<fieldset>
|
||||
<legend>설문문항 리스트</legend>
|
||||
<table cellspacing="0">
|
||||
<caption>리스트</caption>
|
||||
<colgroup>
|
||||
<col width="38" />
|
||||
<col width="" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="count"><%=i+1%></th>
|
||||
<th scope="col" class="subject"><%=poq_question%></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<%If poq_type = "1" then ' 객관식일때%>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="content">
|
||||
<%
|
||||
For z=1 To 5
|
||||
|
||||
execute("poq_bogi = poq_bogi"&z)
|
||||
|
||||
If poq_bogi <> "" then ' 잇을때
|
||||
|
||||
%>
|
||||
<div><label for="q_<%=poq_idx%>_<%=z%>"><input type="radio" id="q_<%=poq_idx%>_<%=z%>" name="q_<%=poq_idx%>" value="<%=z%>" title="<%=poq_bogi%>" tabindex="<%=getTabIndex()%>" /><%=poq_bogi%></label></div>
|
||||
|
||||
<%
|
||||
End if
|
||||
|
||||
next
|
||||
%>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<% Else ' 주관식일때.%>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="content">
|
||||
<div><textarea style="width:98%;" cols="90" rows="5" id="q_<%=poq_idx%>" name="q_<%=poq_idx%>" title="내용 입력" tabindex="<%=getTabIndex()%>"></textarea></div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<%End if%>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="hidden" name="chk" value="<%=poq_idx%>" />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<%
|
||||
next
|
||||
End if
|
||||
%>
|
||||
|
||||
<!-- //리스트 테이블 -->
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 버튼 -->
|
||||
<div class="poll_button2">
|
||||
<span><input type="image" src="/content/poll/skin1/img/poll_bt.gif" title="설문참여" tabindex="<%=getTabIndex()%>" /></span>
|
||||
<span><a href="list.asp?<%=page_info%>" title="목록" tabindex="<%=getTabIndex()%>" ><img src="/content/poll/skin1/img/list_bt.gif" width="62" height="23" alt="목록" /></a></span>
|
||||
</div>
|
||||
<!-- //버튼 -->
|
||||
</form>
|
||||
</div>
|
||||
<!-- //리스트 -->
|
||||
|
||||
<!--#include file="../bottom.asp"-->
|
||||
|
||||
@@ -0,0 +1,332 @@
|
||||
<%
|
||||
|
||||
po_pk = InputValue(request("po_pk"))
|
||||
|
||||
|
||||
' 레코드필드
|
||||
R_Fields = "po_idx, po_subject, po_group, po_addid, po_sdate, po_edate, po_chk, po_code, po_pk, po_wdate, po_mdate, po_count"
|
||||
R_tablename_str = "poll "
|
||||
R_WHERE_str = " WHERE po_pk="&po_pk
|
||||
|
||||
Call SelectQuery (R_Fields, R_tablename_str, R_WHERE_str)
|
||||
|
||||
If po_sdate = "" then
|
||||
|
||||
po_sdate_y = Year(now)
|
||||
po_sdate_m = Month(now)
|
||||
po_sdate_d = Day(now)
|
||||
|
||||
else
|
||||
|
||||
po_sdate_arr = split(po_sdate,"-")
|
||||
|
||||
po_sdate_y = po_sdate_arr(0)
|
||||
po_sdate_m = po_sdate_arr(1)
|
||||
po_sdate_d = po_sdate_arr(2)
|
||||
|
||||
End if
|
||||
|
||||
|
||||
If po_edate = "" Then
|
||||
|
||||
nm = DateAdd("m",1, now)
|
||||
|
||||
po_edate_y = Year(mm)
|
||||
po_edate_m = Month(nm)
|
||||
po_edate_d = Day(nm)
|
||||
|
||||
else
|
||||
|
||||
po_edate_arr = split(po_edate, "-")
|
||||
|
||||
po_edate_y = po_edate_arr(0)
|
||||
po_edate_m = po_edate_arr(1)
|
||||
po_edate_d = po_edate_arr(2)
|
||||
|
||||
End if
|
||||
|
||||
|
||||
If Len(po_sdate_m)=1 Then po_sdate_m = "0" & po_sdate_m
|
||||
If Len(po_sdate_d)=1 Then po_sdate_d = "0" & po_sdate_d
|
||||
If Len(po_edate_m)=1 Then po_edate_m = "0" & po_edate_m
|
||||
If Len(po_edate_d)=1 Then po_edate_d = "0" & po_edate_d
|
||||
|
||||
|
||||
|
||||
' 등급별 권한설정 -----------------------------------------------
|
||||
if session("ss_g_num") = "" then
|
||||
g_num = 2 ' 비회원2 , 총관리자 1
|
||||
else
|
||||
g_num = session("ss_g_num")
|
||||
End if
|
||||
|
||||
g_num_str = "["&g_num&"]"
|
||||
|
||||
If InStr(po_group, g_num_str)=0 Then
|
||||
Call Back_back("참가권한이 없습니다.")
|
||||
response.end
|
||||
End if
|
||||
' -----------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
' 테이블 기본 환경설정 ********************************************************************************
|
||||
table = "poll_question" ' 테이블명
|
||||
idx_field = "poq_idx" ' 기본키
|
||||
oreder_filed = "poq_code ASC" ' 정렬기준 필드
|
||||
Query_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" ' 불러올 필드
|
||||
' ****************************************************************************************************
|
||||
|
||||
' ---------------조합 쿼리문------------------------------------
|
||||
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_chk = 'Y' "
|
||||
sql = sql & search_str & search_str2 & Query_OrderBy
|
||||
Set Rs = Dbcon.Execute (sql)
|
||||
If Not rs.eof Then
|
||||
vData = rs.getrows()
|
||||
vCnt = UBound(vData,2)
|
||||
Else
|
||||
vCnt = -1
|
||||
End If
|
||||
rs.close : Set rs = Nothing
|
||||
' ---------------------------------------------------------------------------------
|
||||
|
||||
|
||||
%>
|
||||
|
||||
<!--#include file="../top.asp"-->
|
||||
|
||||
<script type="text/javascript">
|
||||
ViewCss('/content/poll/skin1/css/common.css');
|
||||
</script>
|
||||
<script type="text/javascript" src="/content/poll/skin1/js/common.js"></script>
|
||||
|
||||
|
||||
<!-- 리스트 -->
|
||||
<div id="poll">
|
||||
|
||||
|
||||
<!-- 설문주제 타이틀 -->
|
||||
<div id="poll_tit">
|
||||
<div class="title_bg">
|
||||
<div class="title_bg_02">
|
||||
<div class="title">
|
||||
<img src="/content/poll/skin1/img/poll_tit_ic.gif" width="62" height="19" alt="설문주제" />
|
||||
<%=po_subject%>
|
||||
</div>
|
||||
<div class="title_content">
|
||||
<ul>
|
||||
<li>
|
||||
<strong>기 간</strong>
|
||||
: <%=po_sdate_y%>년 <%=po_sdate_m%>월 <%=po_sdate_d%>일 ~ <%=po_edate_y%>년 <%=po_edate_m%>월 <%=po_edate_d%>일
|
||||
</li>
|
||||
<li>
|
||||
<strong>총문항수</strong>
|
||||
: <%=total%> 문항
|
||||
</li>
|
||||
<li>
|
||||
<strong>참여자수</strong>
|
||||
: <%=po_count%> 명
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //설문주제 타이틀 -->
|
||||
|
||||
|
||||
|
||||
<!-- 리스트 테이블 -->
|
||||
<%
|
||||
If vCnt>-1 Then
|
||||
zz= 1
|
||||
|
||||
For i=0 To vCnt
|
||||
|
||||
' 필드갯수만큼 ($Query_Fields).가지고온다..
|
||||
Call arr2Value(Query_Fields, "vData", i)
|
||||
|
||||
If poq_chk ="Y" then
|
||||
poq_chk_str = "<strong>사용</strong>"
|
||||
else
|
||||
poq_chk_str = "중지"
|
||||
End If
|
||||
%>
|
||||
|
||||
|
||||
|
||||
<%If poq_type = "1" then ' 객관식일때%>
|
||||
<div class="table_bview">
|
||||
<fieldset>
|
||||
<legend>게시물 리스트</legend>
|
||||
<table cellspacing="0">
|
||||
<caption>리스트</caption>
|
||||
<colgroup>
|
||||
<col width="38" />
|
||||
<col width="" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="count"><%=zz%></th>
|
||||
<th scope="col" class="subject"><%=poq_question%></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="content">
|
||||
<%
|
||||
|
||||
|
||||
|
||||
' 문제 참여자수
|
||||
' ***************************************************************
|
||||
sql="SELECT count(por_idx) as por_totcnt FROM poll_result WHERE po_pk="&po_pk&" AND poq_idx ="&poq_idx
|
||||
Set Rs = Dbcon.Execute (sql)
|
||||
por_totcnt = rs("por_totcnt")
|
||||
rs.close : Set rs = nothing
|
||||
|
||||
' ***************************************************************
|
||||
|
||||
|
||||
For z=1 To 5
|
||||
|
||||
execute("poq_bogi = poq_bogi"&z)
|
||||
|
||||
If poq_bogi <> "" then ' 있을때
|
||||
|
||||
|
||||
|
||||
' 보기별 참여자수
|
||||
' ***************************************************************
|
||||
sql="SELECT count(por_idx) as por_cnt FROM poll_result WHERE po_pk="&po_pk&" AND poq_idx ="&poq_idx&" AND por_result='"&z&"'"
|
||||
Set Rs = Dbcon.Execute (sql)
|
||||
por_cnt = rs("por_cnt")
|
||||
rs.close : Set rs = nothing
|
||||
' ***************************************************************
|
||||
|
||||
If por_totcnt <> 0 Then ' 참가인원이 있으면
|
||||
|
||||
v_percent = int((((por_cnt/por_totcnt)*100)+0.005)*100)/100 ' 선택한보기 백분율
|
||||
|
||||
else
|
||||
|
||||
v_percent = 0
|
||||
End if
|
||||
|
||||
|
||||
If v_percent = 0 then
|
||||
v_percent_str = v_percent + 1
|
||||
else
|
||||
v_percent_str = v_percent
|
||||
End if
|
||||
|
||||
|
||||
%>
|
||||
|
||||
<div class="total_result">
|
||||
<div class="result01"><%=poq_bogi%></div>
|
||||
<div class="result02"><%=por_cnt%>명 </div>
|
||||
<div class="result03"><%=v_percent%>%</div>
|
||||
<div class="result04">
|
||||
<div class="graph0<%=z%>" style="width:<%=v_percent_str%>%;">
|
||||
<span/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"/>
|
||||
</div>
|
||||
|
||||
<%
|
||||
End if
|
||||
|
||||
next
|
||||
%>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
<%else ' 주관식일때.%>
|
||||
<div class="table_bwrite">
|
||||
<fieldset>
|
||||
<legend>게시물 리스트</legend>
|
||||
<table cellspacing="0">
|
||||
<caption>리스트</caption>
|
||||
<colgroup>
|
||||
<col width="38" />
|
||||
<col width="" />
|
||||
<col width="70" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="count"><%=zz%></th>
|
||||
<th scope="col" class="subject"><%=poq_question%></th>
|
||||
<th scope="col" style="padding:0;"><a href="#total" onclick="win_popup3(<%=zz%>,<%=poq_idx%>,'yes','no','no','no',600,500);"><img src="/content/poll/skin1/img/total_bt.gif" width="55" height="18" alt="전체보기" /></a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="content" colspan="2" style="height:15px;">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
<%End if%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<%
|
||||
zz = zz + 1
|
||||
Next
|
||||
|
||||
End If
|
||||
|
||||
%>
|
||||
|
||||
|
||||
|
||||
<!-- //리스트 테이블 -->
|
||||
|
||||
|
||||
|
||||
<!-- 버튼 -->
|
||||
<div class="poll_button2">
|
||||
<span><a href="list.asp?<%=page_info%>" title="목록" tabindex="<%' =getTabIndex()%>" ><img src="/content/poll/skin1/img/list_bt.gif" width="62" height="23" alt="목록" /></a></span>
|
||||
</div>
|
||||
<!-- //버튼 -->
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
|
||||
//새창
|
||||
function win_popup3(sun,idx,vscrollbars,vtoolbar,vmenubar,vlocation,vwidth,vheight){
|
||||
window.open('/content/poll/view.asp?sun='+sun+'&poq_idx='+idx,'','scrollbars='+vscrollbars+',toolbar='+vtoolbar+',menubar='+vmenubar+',location='+vlocation+',width='+vwidth+',height='+vheight+',location=no');
|
||||
}
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
</div>
|
||||
<!-- //리스트 -->
|
||||
|
||||
<!--하단파일-->
|
||||
<!--#include file="../bottom.asp"-->
|
||||
@@ -0,0 +1,159 @@
|
||||
<%
|
||||
|
||||
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>
|
||||