설문조사 의견삭제시 skin_dir 넘어가지 않던 문제 수정

This commit is contained in:
chicpro
2013-01-17 15:31:25 +09:00
parent 35e41411b7
commit e932f9a6e4
2 changed files with 22 additions and 13 deletions

View File

@ -5,6 +5,9 @@ $po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '{$po_id}' ");
if (!$po['po_id']) if (!$po['po_id'])
alert('설문조사 정보가 없습니다.'); alert('설문조사 정보가 없습니다.');
if ($member['mb_level'] < $po['po_level'])
alert('권한 '.$po['po_level'].' 이상의 회원만 결과를 보실 수 있습니다.');
$g4['title'] = '설문조사 결과'; $g4['title'] = '설문조사 결과';
$po_subject = $po['po_subject']; $po_subject = $po['po_subject'];
@ -55,7 +58,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$list2[$i]['del'] = ''; $list2[$i]['del'] = '';
if ($is_admin == 'super' || ($row['mb_id'] == $member['mb_id'] && $row['mb_id'])) if ($is_admin == 'super' || ($row['mb_id'] == $member['mb_id'] && $row['mb_id']))
$list2[$i]['del'] = '<a href="'.$g4['bbs_url'].'/poll_etc_update.php?w=d&amp;pc_id='.$row['pc_id'].'&amp;po_id='.$po_id.'\');">'; $list2[$i]['del'] = '<a href="'.$g4['bbs_url'].'/poll_etc_update.php?w=d&amp;pc_id='.$row['pc_id'].'&amp;po_id='.$po_id.'&amp;skin_dir='.$skin_dir.'">';
} }
// 기타의견 입력 // 기타의견 입력

View File

@ -89,8 +89,14 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<? } ?> <? } ?>
</ul> </ul>
</section> </section>
<div class="btn_win">
<a href="javascript:window.close();" class="btn_cancel">창닫기</a>
</div>
</div> </div>
<script>
$(function() {
$("#poll_result").append("<div class=\"btn_win\"><a class=\"btn_cancel\">창닫기</a></div>");
$(".btn_win a").click(function() {
window.close();
});
});
</script>