투표하기 클라스 추가
This commit is contained in:
1 parent
09be21e31f
commit
6a4ac064c0
4 files changed
+91
-54
No files matched your search
@@ -14,15 +14,31 @@ add_stylesheet('<link rel="stylesheet" href="'.$poll_skin_url.'/style.css">', 0)
|
||||
<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>
|
||||
<!-- *** 투표수가 가장 많은 것은 li이에 클래스 poll_1st를 붙여주세요 / 수정후 삭제 -->
|
||||
<li class="poll_1st">
|
||||
<span>현재 가장 높은 득표율</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>
|
||||
<span style="width:90%"></span>
|
||||
</div>
|
||||
<div class="poll_numerical">
|
||||
<strong class="poll_cnt">500 표</strong>
|
||||
<span class="poll_percent">90 %</span>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<!-- *** 투표수가 가장 많은 것은 li이에 클래스 poll_1st를 붙여주세요 / 수정후 삭제 -->
|
||||
|
||||
<?php for ($i=1; $i<=count($list); $i++) { ?>
|
||||
<li>
|
||||
<span><?php echo $list[$i]['content'] ?></span>
|
||||
<div class="poll_result_graph">
|
||||
<span style="width:<?php echo number_format($list[$i]['rate'], 1) ?>%"></span>
|
||||
</div>
|
||||
<div class="poll_numerical">
|
||||
<strong class="poll_cnt"><?php echo $list[$i]['cnt'] ?> 표</strong>
|
||||
<span class="poll_percent"><?php echo number_format($list[$i]['rate'], 1) ?> %</span>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ol>
|
||||
</section>
|
||||
<!-- } 설문조사 결과 그래프 끝 -->
|
||||
@@ -46,29 +62,29 @@ add_stylesheet('<link rel="stylesheet" href="'.$poll_skin_url.'/style.css">', 0)
|
||||
</article>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($member['mb_level'] >= $po['po_level']) { ?>
|
||||
<form name="fpollresult" method="post" action="./poll_etc_update.php" onsubmit="return fpollresult_submit(this);" autocomplete="off" id="poll_other_q">
|
||||
<?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" id="poll_other_q">
|
||||
<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><span>기타의견</span><?php echo $po_etc ?></h3>
|
||||
<?php if ($is_member) { ?><input type="hidden" name="pc_name" value="<?php echo get_text(cut_str($member['mb_nick'],255)) ?>"><?php } ?>
|
||||
<div id="poll_result_wcmt">
|
||||
<?php if ($is_guest) { ?>
|
||||
<h3><span>기타의견</span><?php echo $po_etc ?></h3>
|
||||
<div>
|
||||
<label for="pc_name" class="sound_only">이름<strong>필수</strong></label>
|
||||
<input type="text" name="pc_name" id="pc_name" class="frm_input full_input required" required placeholder="의견을 입력해주세요">
|
||||
<label for="pc_idea" class="sound_only">의견<strong>필수</strong></label>
|
||||
<input type="text" id="pc_idea" name="pc_idea" required class="full_input required" size="47" maxlength="100" placeholder="의견을 입력해주세요">
|
||||
</div>
|
||||
<?php echo captcha_html(); ?>
|
||||
<?php } ?>
|
||||
<div>
|
||||
<label for="pc_name" class="sound_only">이름<strong>필수</strong></label>
|
||||
<input type="text" name="pc_idea" id="pc_idea" class="frm_input full_input required" required maxlength="100" placeholder=" 의견을 입력해주세요">
|
||||
</div>
|
||||
<button type="submit" class="btn_submit">의견남기기</button>
|
||||
</div>
|
||||
<?php if ($is_guest) { ?>
|
||||
<div class="poll_guest">
|
||||
<label for="pc_name" class="sound_only">이름<strong>필수</strong></label>
|
||||
<input type="text" name="pc_name" id="pc_name" required class="full_input required" size="20" placeholder="이름">
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php echo captcha_html(); ?>
|
||||
<button type="submit" class="btn_submit">의견남기기</button>
|
||||
</form>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
</section>
|
||||
<?php } ?>
|
||||
|
||||
@@ -69,13 +69,14 @@
|
||||
#poll_result_list dt {margin-right:5%;color:#e8180d;text-align:right}
|
||||
#poll_result_list ol {margin:0;padding:0 20px}
|
||||
#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:#fff;border-radius:10px;-moz-box-shadow:inset 0px 2px 8px #dadada;-webkit-box-shadow:inset 0px 2px 8px #dadada;box-shadow:inset 0px 2px 8px #dadada}
|
||||
|
||||
.poll_1st .poll_result_graph span {background:#3a8afd}
|
||||
.poll_result_graph {position:relative;width:90%;margin:5px 0;height:15px;background:#fff;border-radius:10px;-moz-box-shadow:inset 0px 2px 8px #dadada;-webkit-box-shadow:inset 0px 2px 8px #dadada;box-shadow:inset 0px 2px 8px #dadada}
|
||||
.poll_result_graph span {position:absolute;top:0;left:0;height:15px;background:#8395b3;border-radius:10px 10px;white-space:nowrap}
|
||||
.poll_result_graph span.1st {background:#3a8afd}
|
||||
.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_numerical {display:inline-block;position:absolute;top:0;right:0;text-align:center}
|
||||
.poll_numerical .poll_percent {display:block;font-size:1.2em;color:#3a8afd;font-weight:bold;letter-spacing:-0.5px}
|
||||
.poll_numerical .poll_cnt {font-size:1em;text-align:right;color:#8d8d8d}
|
||||
|
||||
#poll_result_cmt {margin:20px}
|
||||
#poll_result_cmt h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
@@ -86,11 +87,13 @@
|
||||
#poll_result_cmt .profile_img img {border-radius:50%}
|
||||
#poll_result_cmt p {padding:10px;line-height:1.5em}
|
||||
|
||||
#poll_other_q {border:1px solid #eaeaea}
|
||||
#poll_other_q h3 {margin:0;font-size:1.25em;padding:10px;border-bottom:1px solid #eaeaea;text-align:left}
|
||||
#poll_other_q h3 span {background:#f7f8e3;color:#c97600;padding:3px;display:inline-block;border-radius:5px;margin-right:5px;font-weight:normal;font-size:0.8em}
|
||||
#poll_result_wcmt {border:1px solid #cfd4db;margin-bottom:10px}
|
||||
#poll_result_wcmt input {border:0;height:80px;padding:10px}
|
||||
#poll_result_cmt .btn_submit {margin-top:10px;padding:0 20px;float:right}
|
||||
#poll_result_cmt .btn_submit {padding:0 20px;float:right}
|
||||
|
||||
.poll_guest input {border: 1px solid #cfd4db;padding:10px;margin-bottom:10px;display:inline-block}
|
||||
|
||||
.poll_cmt_del {float:right}
|
||||
.poll_cmt_del a {display:inline-block;margin:0 0 5px 10px;color:#c7c9cb;font-size:15px}
|
||||
|
||||
@@ -13,17 +13,32 @@ add_stylesheet('<link rel="stylesheet" href="'.$poll_skin_url.'/style.css">', 0)
|
||||
<span class="poll_all">전체 <?php echo $nf_total_po_cnt ?>표</span>
|
||||
<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>
|
||||
<!-- *** 투표수가 가장 많은 것은 li이에 클래스 poll_1st를 붙여주세요 / 수정후 삭제 -->
|
||||
<li class="poll_1st">
|
||||
<span>현재 가장 높은 득표율</span>
|
||||
<div class="poll_result_graph">
|
||||
<span class="1st" style="width:<?php echo number_format($list[$i]['rate'], 1) ?>%"><strong class="poll_cnt"><?php echo $list[$i]['cnt'] ?> 표</strong></span>
|
||||
<span style="width:90%"></span>
|
||||
</div>
|
||||
<div class="poll_numerical">
|
||||
<strong class="poll_cnt">500 표</strong>
|
||||
<span class="poll_percent">90 %</span>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<!-- *** 투표수가 가장 많은 것은 li이에 클래스 poll_1st를 붙여주세요 / 수정후 삭제 -->
|
||||
|
||||
<?php for ($i=1; $i<=count($list); $i++) { ?>
|
||||
<li>
|
||||
<span><?php echo $list[$i]['content'] ?></span>
|
||||
<div class="poll_result_graph">
|
||||
<span style="width:<?php echo number_format($list[$i]['rate'], 1) ?>%"></span>
|
||||
</div>
|
||||
<div class="poll_numerical">
|
||||
<strong class="poll_cnt"><?php echo $list[$i]['cnt'] ?> 표</strong>
|
||||
<span class="poll_percent"><?php echo number_format($list[$i]['rate'], 1) ?> %</span>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ol>
|
||||
</section>
|
||||
<!-- } 설문조사 결과 그래프 끝 -->
|
||||
@@ -53,21 +68,21 @@ add_stylesheet('<link rel="stylesheet" href="'.$poll_skin_url.'/style.css">', 0)
|
||||
<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><span>기타의견</span><?php echo $po_etc ?></h3>
|
||||
<div id="poll_result_wcmt">
|
||||
<?php if ($is_guest) { ?>
|
||||
<div>
|
||||
<label for="pc_name" class="sound_only">이름<strong>필수</strong></label>
|
||||
<input type="text" name="pc_name" id="pc_name" required class="full_input required" size="20" placeholder="이름">
|
||||
</div>
|
||||
<?php echo captcha_html(); ?>
|
||||
<?php } ?>
|
||||
<h3><span>기타의견</span><?php echo $po_etc ?></h3>
|
||||
<div>
|
||||
<label for="pc_idea" class="sound_only">의견<strong>필수</strong></label>
|
||||
<input type="text" id="pc_idea" name="pc_idea" required class="full_input required" size="47" maxlength="100" placeholder="의견을 입력해주세요">
|
||||
</div>
|
||||
<button type="submit" class="btn_submit">의견남기기</button>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($is_guest) { ?>
|
||||
<div class="poll_guest">
|
||||
<label for="pc_name" class="sound_only">이름<strong>필수</strong></label>
|
||||
<input type="text" name="pc_name" id="pc_name" required class="full_input required" size="20" placeholder="이름">
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php echo captcha_html(); ?>
|
||||
<button type="submit" class="btn_submit">의견남기기</button>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
@@ -69,13 +69,14 @@
|
||||
#poll_result_list dt {margin-right:5%;color:#e8180d;text-align:right}
|
||||
#poll_result_list ol {margin:0;padding:0 20px}
|
||||
#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:#fff;border-radius:10px;-moz-box-shadow:inset 0px 2px 8px #dadada;-webkit-box-shadow:inset 0px 2px 8px #dadada;box-shadow:inset 0px 2px 8px #dadada}
|
||||
|
||||
.poll_1st .poll_result_graph span {background:#3a8afd}
|
||||
.poll_result_graph {position:relative;width:90%;margin:5px 0;height:15px;background:#fff;border-radius:10px;-moz-box-shadow:inset 0px 2px 8px #dadada;-webkit-box-shadow:inset 0px 2px 8px #dadada;box-shadow:inset 0px 2px 8px #dadada}
|
||||
.poll_result_graph span {position:absolute;top:0;left:0;height:15px;background:#8395b3;border-radius:10px 10px;white-space:nowrap}
|
||||
.poll_result_graph span.1st {background:#3a8afd}
|
||||
.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_numerical {display:inline-block;position:absolute;top:0;right:0;text-align:center}
|
||||
.poll_numerical .poll_percent {display:block;font-size:1.2em;color:#3a8afd;font-weight:bold;letter-spacing:-0.5px}
|
||||
.poll_numerical .poll_cnt {font-size:1em;text-align:right;color:#8d8d8d}
|
||||
|
||||
#poll_result_cmt {margin:20px}
|
||||
#poll_result_cmt h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
@@ -86,11 +87,13 @@
|
||||
#poll_result_cmt .profile_img img {border-radius:50%}
|
||||
#poll_result_cmt p {padding:10px;line-height:1.5em}
|
||||
|
||||
#poll_other_q {border:1px solid #eaeaea}
|
||||
#poll_other_q h3 {margin:0;font-size:1.25em;padding:10px;border-bottom:1px solid #eaeaea;text-align:left}
|
||||
#poll_other_q h3 span {background:#f7f8e3;color:#c97600;padding:3px;display:inline-block;border-radius:5px;margin-right:5px;font-weight:normal;font-size:0.8em}
|
||||
#poll_result_wcmt {border:1px solid #cfd4db;margin-bottom:10px}
|
||||
#poll_result_wcmt input {border:0;height:80px;padding:10px}
|
||||
#poll_result_cmt .btn_submit {margin-top:10px;padding:0 20px;float:right}
|
||||
#poll_result_cmt .btn_submit {padding:0 20px;float:right}
|
||||
|
||||
.poll_guest input {border: 1px solid #cfd4db;padding:10px;margin-bottom:10px;display:inline-block}
|
||||
|
||||
.poll_cmt_del {float:right}
|
||||
.poll_cmt_del a {display:inline-block;margin:0 0 5px 10px;color:#c7c9cb;font-size:15px}
|
||||
|
||||
Reference in new issue
Block a user