5.3 버전 내용 적용
This commit is contained in:
@ -11,19 +11,21 @@ add_stylesheet('<link rel="stylesheet" href="'.$poll_skin_url.'/style.css">', 0)
|
||||
<input type="hidden" name="skin_dir" value="<?php echo urlencode($skin_dir); ?>">
|
||||
<section id="poll">
|
||||
<header>
|
||||
<h2>설문조사</h2>
|
||||
<?php if ($is_admin == "super") { ?><a href="<?php echo G5_ADMIN_URL ?>/poll_form.php?w=u&po_id=<?php echo $po_id ?>" class="btn_admin">설문조사 관리</a><?php } ?>
|
||||
<p><?php echo $po['po_subject'] ?></p>
|
||||
<h2><i class="fa fa-bar-chart" aria-hidden="true"></i> 설문조사</h2>
|
||||
<?php if ($is_admin == "super") { ?><a href="<?php echo G5_ADMIN_URL ?>/poll_form.php?w=u&po_id=<?php echo $po_id ?>" class="btn_admin">설문관리</a><?php } ?>
|
||||
</header>
|
||||
<ul>
|
||||
<?php for ($i=1; $i<=9 && $po["po_poll{$i}"]; $i++) { ?>
|
||||
<li><input type="radio" name="gb_poll" value="<?php echo $i ?>" id="gb_poll_<?php echo $i ?>"> <label for="gb_poll_<?php echo $i ?>"><?php echo $po['po_poll'.$i] ?></label></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<footer>
|
||||
<input type="submit" value="투표하기">
|
||||
<a href="<?php echo G5_BBS_URL."/poll_result.php?po_id=$po_id&skin_dir=".urlencode($skin_dir); ?>" target="_blank" onclick="poll_result(this.href); return false;">결과보기</a>
|
||||
</footer>
|
||||
<div class="poll_con">
|
||||
<p><?php echo $po['po_subject'] ?></p>
|
||||
<ul>
|
||||
<?php for ($i=1; $i<=9 && $po["po_poll{$i}"]; $i++) { ?>
|
||||
<li><input type="radio" name="gb_poll" value="<?php echo $i ?>" id="gb_poll_<?php echo $i ?>"> <label for="gb_poll_<?php echo $i ?>"><?php echo $po['po_poll'.$i] ?></label></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<div id="poll_btn">
|
||||
<a href="<?php echo G5_BBS_URL."/poll_result.php?po_id=$po_id&skin_dir=".urlencode($skin_dir); ?>" target="_blank" onclick="poll_result(this.href); return false;" class="btn_result btn_b04">결과보기</a>
|
||||
<input type="submit" value="투표하기" class="btn_poll btn_b02">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
|
||||
|
||||
@ -7,109 +7,98 @@ add_stylesheet('<link rel="stylesheet" href="'.$poll_skin_url.'/style.css">', 0)
|
||||
|
||||
<!-- 설문조사 결과 시작 { -->
|
||||
<div id="poll_result" class="new_win">
|
||||
<h1 id="win_title"><?php echo $g5['title'] ?></h1>
|
||||
<h1 id="win_title"><i class="fa fa-bar-chart" aria-hidden="true"></i> <?php echo $g5['title'] ?></h1>
|
||||
<div class="new_win_con">
|
||||
<!-- 설문조사 결과 그래프 시작 { -->
|
||||
<span class="poll_all">전체 <?php echo $nf_total_po_cnt ?>표</span>
|
||||
<section id="poll_result_list">
|
||||
<h2><?php echo $po_subject ?> 결과</h2>
|
||||
|
||||
<!-- 설문조사 결과 그래프 시작 { -->
|
||||
<section id="poll_result_list">
|
||||
<h2><?php echo $po_subject ?> 결과</h2>
|
||||
<ol>
|
||||
<?php for ($i=1; $i<=count($list); $i++) { ?>
|
||||
<li>
|
||||
<span><?php echo $list[$i]['content'] ?></span>
|
||||
<span class="poll_percent"><?php echo number_format($list[$i]['rate'], 1) ?> %</span>
|
||||
<div class="poll_result_graph">
|
||||
<span style="width:<?php echo number_format($list[$i]['rate'], 1) ?>%"><strong class="poll_cnt"><?php echo $list[$i]['cnt'] ?> 표</strong></span>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ol>
|
||||
</section>
|
||||
<!-- } 설문조사 결과 그래프 끝 -->
|
||||
|
||||
<dl>
|
||||
<dt><span>전체 <?php echo $nf_total_po_cnt ?>표</span></dt>
|
||||
<dd>
|
||||
<ol>
|
||||
<?php for ($i=1; $i<=count($list); $i++) { ?>
|
||||
<!-- 설문조사 기타의견 시작 { -->
|
||||
<?php if ($is_etc) { ?>
|
||||
<section id="poll_result_cmt">
|
||||
<h2>이 설문에 대한 기타의견</h2>
|
||||
|
||||
<?php for ($i=0; $i<count($list2); $i++) { ?>
|
||||
<article>
|
||||
<header>
|
||||
<h2><?php echo $list2[$i]['pc_name'] ?><span class="sound_only">님의 의견</span></h2>
|
||||
<?php echo $list2[$i]['name'] ?>
|
||||
<span class="poll_datetime"><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $list2[$i]['datetime'] ?> <span class="poll_cmt_del"><?php if ($list2[$i]['del']) { echo $list2[$i]['del']."<i class=\"fa fa-times-circle\" aria-hidden=\"true\"></i><span class=\"sound_only\">삭제</span></a>"; } ?></span></span>
|
||||
</header>
|
||||
<p>
|
||||
<?php echo $list2[$i]['idea'] ?>
|
||||
</p>
|
||||
|
||||
</article>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($member['mb_level'] >= $po['po_level']) { ?>
|
||||
<form name="fpollresult" action="./poll_etc_update.php" onsubmit="return fpollresult_submit(this);" method="post" autocomplete="off">
|
||||
<input type="hidden" name="po_id" value="<?php echo $po_id ?>">
|
||||
<input type="hidden" name="w" value="">
|
||||
<input type="hidden" name="skin_dir" value="<?php echo urlencode($skin_dir); ?>">
|
||||
<?php if ($is_member) { ?><input type="hidden" name="pc_name" value="<?php echo get_text(cut_str($member['mb_nick'],255)) ?>"><?php } ?>
|
||||
<h3><?php echo $po_etc ?></h3>
|
||||
|
||||
<div class="form_01">
|
||||
<ul id="poll_result_wcmt">
|
||||
<?php if ($is_guest) { ?>
|
||||
<li>
|
||||
<p>
|
||||
<?php echo $list[$i]['content'] ?>
|
||||
<strong><?php echo $list[$i]['cnt'] ?> 표</strong>
|
||||
<span><?php echo number_format($list[$i]['rate'], 1) ?> 퍼센트</span>
|
||||
</p>
|
||||
<div class="poll_result_graph">
|
||||
<span style="width:<?php echo number_format($list[$i]['rate'], 1) ?>%"></span>
|
||||
</div>
|
||||
<label for="pc_name" class="sound_only">이름<strong>필수</strong></label>
|
||||
<input type="text" name="pc_name" id="pc_name" required class="frm_input required" size="20" placeholder="이름">
|
||||
</li>
|
||||
<li>
|
||||
<?php echo captcha_html(); ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<li>
|
||||
<label for="pc_idea" class="sound_only">의견<strong>필수</strong></label>
|
||||
<input type="text" id="pc_idea" name="pc_idea" required class="frm_input full_input required" size="47" maxlength="100" placeholder="의견">
|
||||
</li>
|
||||
<li>
|
||||
<input type="submit" class="btn_submit" value="의견남기기">
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
</section>
|
||||
<?php } ?>
|
||||
<!-- } 설문조사 기타의견 끝 -->
|
||||
|
||||
<!-- 설문조사 다른 결과 보기 시작 { -->
|
||||
<aside id="poll_result_oth">
|
||||
<h2>다른 투표 결과 보기</h2>
|
||||
<ul>
|
||||
<?php for ($i=0; $i<count($list3); $i++) { ?>
|
||||
<li><a href="./poll_result.php?po_id=<?php echo $list3[$i]['po_id'] ?>&skin_dir=<?php echo urlencode($skin_dir); ?>"> <?php echo $list3[$i]['subject'] ?> </a><span><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $list3[$i]['date'] ?></span></li>
|
||||
<?php } ?>
|
||||
</ol>
|
||||
</dd>
|
||||
</dl>
|
||||
</section>
|
||||
<!-- } 설문조사 결과 그래프 끝 -->
|
||||
</ul>
|
||||
</aside>
|
||||
<!-- } 설문조사 다른 결과 보기 끝 -->
|
||||
|
||||
<!-- 설문조사 기타의견 시작 { -->
|
||||
<?php if ($is_etc) { ?>
|
||||
<section id="poll_result_cmt">
|
||||
<h2>이 설문에 대한 기타의견</h2>
|
||||
|
||||
<?php for ($i=0; $i<count($list2); $i++) { ?>
|
||||
<article>
|
||||
<header>
|
||||
<h1><?php echo $list2[$i]['pc_name'] ?><span class="sound_only">님의 의견</span></h1>
|
||||
<?php echo $list2[$i]['name'] ?>
|
||||
<span class="poll_datetime"><?php echo $list2[$i]['datetime'] ?></span>
|
||||
</header>
|
||||
<p>
|
||||
<?php echo $list2[$i]['idea'] ?>
|
||||
</p>
|
||||
<footer>
|
||||
<span class="poll_cmt_del"><?php if ($list2[$i]['del']) { echo $list2[$i]['del']."삭제</a>"; } ?></span>
|
||||
</footer>
|
||||
</article>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($member['mb_level'] >= $po['po_level']) { ?>
|
||||
<form name="fpollresult" action="./poll_etc_update.php" onsubmit="return fpollresult_submit(this);" method="post" autocomplete="off">
|
||||
<input type="hidden" name="po_id" value="<?php echo $po_id ?>">
|
||||
<input type="hidden" name="w" value="">
|
||||
<input type="hidden" name="skin_dir" value="<?php echo urlencode($skin_dir); ?>">
|
||||
<?php if ($is_member) { ?><input type="hidden" name="pc_name" value="<?php echo get_text(cut_str($member['mb_nick'],255)) ?>"><?php } ?>
|
||||
<h3><?php echo $po_etc ?></h3>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table id="poll_result_wcmt">
|
||||
<tbody>
|
||||
<?php if ($is_guest) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="pc_name">이름<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="pc_name" id="pc_name" required class="frm_input required" size="10"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="pc_idea">의견<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" id="pc_idea" name="pc_idea" required class="frm_input required" size="47" maxlength="100"></td>
|
||||
</tr>
|
||||
<?php if ($is_guest) { ?>
|
||||
<tr>
|
||||
<th scope="row">자동등록방지</th>
|
||||
<td><?php echo captcha_html(); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="win_btn">
|
||||
<button type="button" onclick="window.close();" class="btn_close">창닫기</button>
|
||||
</div>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" class="btn_submit" value="의견남기기">
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
</section>
|
||||
<?php } ?>
|
||||
<!-- } 설문조사 기타의견 끝 -->
|
||||
|
||||
<!-- 설문조사 다른 결과 보기 시작 { -->
|
||||
<aside id="poll_result_oth">
|
||||
<h2>다른 투표 결과 보기</h2>
|
||||
<ul>
|
||||
<?php for ($i=0; $i<count($list3); $i++) { ?>
|
||||
<li><a href="./poll_result.php?po_id=<?php echo $list3[$i]['po_id'] ?>&skin_dir=<?php echo urlencode($skin_dir); ?>">[<?php echo $list3[$i]['date'] ?>] <?php echo $list3[$i]['subject'] ?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</aside>
|
||||
<!-- } 설문조사 다른 결과 보기 끝 -->
|
||||
|
||||
<div class="win_btn">
|
||||
<button type="button" onclick="window.close();">창닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
@charset "utf-8";
|
||||
/* SIR 지운아빠 */
|
||||
|
||||
/* ### 기본 스타일 커스터마이징 시작 ### */
|
||||
|
||||
@ -38,53 +37,65 @@
|
||||
/* ### 기본 스타일 커스터마이징 끝 ### */
|
||||
|
||||
/* 설문조사 스킨 */
|
||||
#poll {border-bottom:1px solid #dde4e9}
|
||||
#poll header {position:relative;padding:15px 14px 0}
|
||||
#poll h2 {}
|
||||
#poll header .btn_admin {margin-top:5px;width:158px;text-align:center}
|
||||
#poll header p {padding:5px 0 0}
|
||||
#poll ul {margin:0 0 10px;padding:5px 14px;list-style:none}
|
||||
#poll li {padding:3px 0}
|
||||
#poll footer {padding:0 14px 14px}
|
||||
#poll footer input {width:88px;height:27px;border:0;background:#333;color:#fff;letter-spacing:-0.1em;vertical-align:top;cursor:pointer}
|
||||
#poll footer a {display:inline-block;width:86px;height:25px;border:1px solid #ccc;background:#fafafa;text-align:center;line-height:2.2em}
|
||||
#poll footer a:focus, #poll footer a:hover {text-decoration:none !important}
|
||||
#poll {border: 1px solid #d2d9e6; border-bottom: 1px solid #c1ccda;background:#fff;margin:50px 20px 20px;position:relative;
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
||||
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
||||
box-shadow:0 1px 2px rgba(0,0,0,0.1)}
|
||||
#poll h2 {font-size:1.167em;text-align:center;padding-top:25px;color:#1d9d74;position:relative}
|
||||
#poll h2 i{position:absolute;top:-22px;left:50%;width:44px;line-height:44px;margin-left:-22px;border-radius:25px;background:#1d9d74;color:#fff}
|
||||
#poll header .btn_admin {text-align:center;position:absolute;top:10px;right:10px;height:25px;line-height:25px;padding:0 5px;border-radius:3px}
|
||||
#poll ul {padding: 10px 15px;list-style:none}
|
||||
#poll li {padding:5px 0}
|
||||
#poll .poll_con{}
|
||||
#poll .poll_con p{font-weight:bold;padding: 10px 15px;background: #f1f9f7;border:1px solid #e0f1e9;color: #457163;margin:10px 10px 0}
|
||||
#poll_btn{background:#f7f7f7;padding:10px;text-align:center}
|
||||
#poll_btn:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#poll_btn .btn_poll{display:inline-block;height:30px;line-height:28px;padding: 0 10px}
|
||||
#poll_btn .btn_result{;display:inline-block;height:30px;line-height:30px;padding: 0 10px;font-weight:bold}
|
||||
|
||||
|
||||
/* 설문조사 결과 (새창) */
|
||||
#poll_result {}
|
||||
#poll_result section {margin:0 20px 20px;padding:15px;border:1px solid #dde4e9;background:#fff}
|
||||
#poll_result section {margin:0 0 20px;padding:25px;border:1px solid #dbdbdb;background:#fff;
|
||||
-webkit-box-shadow: 0 0 5px rgba(55,55,5,0.1));
|
||||
-moz-box-shadow: 0 0 5px rgba(55,55,5,0.1));
|
||||
box-shadow: 0 0 5px rgba(55,55,5,0.1); }
|
||||
#poll_result .tbl_wrap {margin:0}
|
||||
#poll_result h2 {margin:0;padding:20px 0}
|
||||
#poll_result h2 {}
|
||||
#poll_result a {}
|
||||
#poll_result .sv_member,
|
||||
#poll_result .sv_guest {font-weight:bold}
|
||||
#poll_result_list {margin:0 auto 20px}
|
||||
#poll_result_list h2 {text-align:center}
|
||||
#poll_result_list dl,
|
||||
#poll_result_list dt,
|
||||
#poll_result_list dd {margin:0;padding:0}
|
||||
#poll_result_list dl {padding-bottom:30px}
|
||||
#poll_result .poll_all{float:right;display:inline-block;margin:0 0 10px;line-height: 30px;font-size: 0.92em;color: #4e546f;background: #d4d4d4;padding: 0 10px;border-radius: 5px;}
|
||||
#poll_result_list {margin:0 auto 20px;clear:both}
|
||||
#poll_result_list h2 {margin:0;font-size:1.25em;padding: 0 0 15px;margin:0 0 15px;border-bottom:1px solid #ddd;text-align:center;}
|
||||
#poll_result_list dt {margin-right:5%;color:#e8180d;text-align:right}
|
||||
#poll_result_list ol {margin:0;padding-left:30px}
|
||||
#poll_result_list li {margin-top:10px}
|
||||
#poll_result_list p {position:relative;margin:0;padding:5px 0}
|
||||
#poll_result_list p strong {position:absolute;top:5px;right:5%;padding-right:80px;width:100px;text-align:right}
|
||||
#poll_result_list p span {position:absolute;top:5px;right:5%;width:80px;color:#68999c;text-align:right}
|
||||
.poll_result_graph {position:relative;margin-right:5%;height:5px;background:#eee}
|
||||
.poll_result_graph span {position:absolute;top:0;left:0;height:5px;background:#565e60;font-size:0.1em}
|
||||
#poll_result_list ol {margin:0;padding:0}
|
||||
#poll_result_list li {margin:20px 0;position:relative;list-style-position:inside}
|
||||
#poll_result_list .poll_percent{position:absolute;top:0;right:0;color:#415b72;font-weight:bold}
|
||||
.poll_result_graph {position:relative;margin-right:5%;margin:5px 0 ;height:15px;background:#f4f4f4;border-radius:10px 10px}
|
||||
.poll_result_graph span {position:absolute;top:0;left:0;height:15px;background:#ae99da;border-radius:10px 10px;white-space: nowrap;}
|
||||
.poll_result_graph span .poll_cnt {display:none;position:absolute;top:18px;right:0;font-size:0.92em;text-align:right;background:#333;color:#fff;padding:0 7px;line-height:22px;border-radius:3px}
|
||||
.poll_result_graph span:hover .poll_cnt {display:block}
|
||||
.poll_result_graph span .poll_cnt:before{content: "";position: absolute;top: -6px;left: 50%;margin-left:-4px;width: 0;height: 0;border-style: solid;border-width: 0 4px 6px 4px;border-color: transparent transparent #333 transparent;}
|
||||
#poll_result_cmt {}
|
||||
#poll_result_cmt h2 {text-align:center}
|
||||
#poll_result_cmt h3 {margin:0 0 10px}
|
||||
#poll_result_cmt article {margin:0 0 15px;border-bottom:1px solid #eee}
|
||||
#poll_result_cmt h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#poll_result_cmt h3 {margin:0;font-size:1.25em;padding: 0 0 15px;margin:0 0 15px;border-bottom:1px solid #ddd;text-align:center;}
|
||||
#poll_result_cmt article {margin:15px 0 ;position:relative;}
|
||||
#poll_result_cmt h1 {position:absolute;margin:0;padding:0;border:0;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
.poll_datetime {display:inline-block;margin-left:10px}
|
||||
#poll_result_cmt p {padding:3px 0}
|
||||
#poll_result_cmt header{margin:0 0 5px}
|
||||
#poll_result_cmt .poll_datetime{display:inline-block;position:absolute;top:0;right:0;font-size:0.92em;color:#777;font-style:italic}
|
||||
#poll_result_cmt .profile_img img{border-radius:50%}
|
||||
#poll_result_cmt p {padding:10px;background:#f6f6f6;border-radius:5px;line-height:1.5em}
|
||||
#poll_result_cmt fieldset {margin-bottom:0;text-align:left}
|
||||
#poll_result_cmt fieldset p {margin:0 0 15px;padding:3px 0 0px;text-align:left}
|
||||
#poll_result_cmt footer {text-align:right}
|
||||
#poll_result_wcmt {margin:0 0 10px}
|
||||
.poll_cmt_del a {display:inline-block;padding-bottom:10px}
|
||||
#poll_result_oth {margin:0 auto 20px;width:93%}
|
||||
#poll_result_cmt .btn_submit {padding:0 20px;float:right}
|
||||
|
||||
.poll_cmt_del a {display:inline-block;margin-left:5px;color:#49857c;font-size:15px;}
|
||||
.poll_cmt_del a:hover{color:#98ca69}
|
||||
#poll_result_oth {padding:0 0 30px}
|
||||
#poll_result_oth h2 {padding:0 0 10px}
|
||||
#poll_result_oth ul {margin:0;padding:0;list-style:none}
|
||||
#poll_result_oth a {display:block;padding:10px 0;border-bottom:1px solid #eee}
|
||||
#poll_result_oth ul {margin:0;padding:0;list-style:none;border:1px solid #ddd;background:#fff;border-top:0}
|
||||
#poll_result_oth ul li{border-top:1px solid #ddd; position:relative;line-height:20px}
|
||||
#poll_result_oth a {display:block;padding: 10px}
|
||||
#poll_result_oth li span{position:absolute;bottom:10px;right:15px;color:#777;font-size:0.92em;font-style:italic}
|
||||
|
||||
Reference in New Issue
Block a user