모바일 테스트

This commit is contained in:
gnuboard
2013-01-16 18:57:51 +09:00
parent 7f7a9dfe07
commit 199538ca17
501 changed files with 6867 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

View File

@ -0,0 +1,61 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
global $is_admin;
// 투표번호가 넘어오지 않았다면 가장 큰(최근에 등록한) 투표번호를 얻는다
if (!$po_id) {
$po_id = $config['cf_max_po_id'];
if (!$po_id) return;
}
$po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '$po_id' ");
?>
<form name="fpoll" method="post" action="<?=$g4['bbs_url']?>/poll_update.php" onsubmit="return fpoll_submit(this);" target="win_poll">
<input type="hidden" name="po_id" value="<?=$po_id?>">
<input type="hidden" name="skin_dir" value="<?=$skin_dir?>">
<section id="poll">
<header>
<h2>설문조사</h2>
<? if ($is_admin == "super") { ?><a href="<?=$g4['admin_url']?>/poll_form.php?w=u&amp;po_id=<?=$po_id?>">설문조사 관리</a><? } ?>
<p><?=$po['po_subject']?></p>
</header>
<ul>
<? for ($i=1; $i<=9 && $po["po_poll{$i}"]; $i++) { ?>
<li><input type="radio" name="gb_poll" value="<?=$i?>" id='gb_poll_<?=$i?>'> <label for='gb_poll_<?=$i?>'><?=$po['po_poll'.$i]?></label></li>
<? } ?>
</ul>
<footer>
<input type="submit" value="투표하기">
<a href="<?="{$g4['bbs_url']}/poll_result.php?po_id={$po_id}&amp;skin_dir={$skin_dir}";?>" target="win_poll">결과보기</a>
</footer>
</section>
</form>
<script>
function fpoll_submit(f)
{
var chk = false;
for (i=0; i<f.gb_poll.length;i ++) {
if (f.gb_poll[i].checked == true) {
chk = f.gb_poll[i].value;
break;
}
}
<?
if ($member['mb_level'] < $po['po_level'])
echo " alert('권한 {$po['po_level']} 이상의 회원만 투표에 참여하실 수 있습니다.'); return false; ";
?>
if (!chk) {
alert("항목을 선택하세요");
return false;
}
win_poll();
return true;
}
</script>

View File

@ -0,0 +1,91 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<div id="poll_result" class="new_win">
<h1><?=$g4['title']?></h1>
<section id="poll_result_list">
<h2><?=$po_subject?> 결과</h2>
<dl>
<dt><span>전체 <?=$nf_total_po_cnt?>표</span></dt>
<dd>
<ol>
<? for ($i=1; $i<=count($list); $i++) { ?>
<li>
<p>
<?=$list[$i]['content']?>
<span><?=$list[$i]['cnt']?>표 <?=number_format($list[$i]['rate'], 1)?>%</span>
</p>
<div class="poll_result_graph">
<span style="width:<?=number_format($list[$i]['rate'], 1)?>%"></span>
</div>
</li>
<? } ?>
</ol>
</dd>
</dl>
</section>
<? if ($is_etc) { ?>
<section id="poll_result_cmt">
<h2>이 설문에 대한 기타의견</h2>
<? for ($i=0; $i<count($list2); $i++) { ?>
<article>
<header>
<h1><?=$list2[$i]['name']?>님의 의견</h1>
<span class="poll_datetime"><?=$list2[$i]['datetime']?></span>
<span class="poll_del"><? if ($list2[$i]['del']) { echo $list2[$i]['del']."삭제</a>"; } ?></span>
</header>
<p>
<?=$list2[$i]['idea']?>
</p>
</article>
<? } ?>
<? if ($member['mb_level'] >= $po['po_level']) { ?>
<form name="fpollresult" method="post" onsubmit="return fpollresult_submit(this);" autocomplete="off">
<input type=hidden name="po_id" value="<?=$po_id?>">
<input type=hidden name="w" value="">
<input type=hidden name="skin_dir" value="<?=$skin_dir?>">
<fieldset>
<legend>의견남기기</legend>
<p><?=$po_etc?></p>
<?
$comment_size = "";
if ($is_member) { $comment_size = 52; ?>
<input type="hidden" name="pc_name" value="<?=cut_str($member['mb_nick'],255)?>">
<? } else { $comment_size = 32; ?>
<label for="pc_name">이름</label>
<input type='text' id="pc_name" name="pc_name" class="fieldset_input required" size="10" required>
<? } ?>
<input type="text" id="pc_idea" name="pc_idea" class="fieldset_input required" size="<?=$comment_size?>" required maxlength="100" title="의견">
<input type="submit" class="fieldset_submit" value="의견남기기">
</fieldset>
</form>
<script>
function fpollresult_submit(f)
{
f.action = "./poll_etc_update.php";
return true;
}
</script>
<? } ?>
</section>
<? } ?>
<section id="poll_result_another">
<h2>다른 투표 결과 보기</h2>
<ul>
<? for ($i=0; $i<count($list3); $i++) { ?><li><a href="./poll_result.php?po_id=<?=$list3[$i]['po_id']?>&amp;skin_dir=<?=$skin_dir?>">[<?=$list3[$i]['date']?>] <?=$list3[$i]['subject']?></a></li><? } ?>
</ul>
</section>
<div class="btn_win">
<a href="javascript:window.close();" class="btn_cancel">창닫기</a>
</div>
</div>