#273 에 따른 마크업
This commit is contained in:
@ -73,51 +73,61 @@ $colspan = 6;
|
||||
<a href="./poll_form.php" id="poll_add">투표 추가</a>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<caption>투표목록</caption>
|
||||
<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">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$sql2 = " select sum(po_cnt1+po_cnt2+po_cnt3+po_cnt4+po_cnt5+po_cnt6+po_cnt7+po_cnt8+po_cnt9) as sum_po_cnt from {$g4['poll_table']} where po_id = '{$row['po_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$po_etc = ($row['po_etc']) ? "사용" : "미사용";
|
||||
<section class="cbox">
|
||||
<h2>투표목록</h2>
|
||||
|
||||
$s_mod = '<a href="./poll_form.php?'.$qstr.'&w=u&po_id='.$row['po_id'].'">수정</a>';
|
||||
$s_del = '<a href="javascript:post_delete(\'poll_form_update.php\', \''.$row['po_id'].'\');">삭제</a>';
|
||||
?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재 페이지 투표 전체선택" onclick="check_all(this.form)"></th>
|
||||
<th scope="col">번호</th>
|
||||
<th scope="col">제목</th>
|
||||
<th scope="col">투표권한</th>
|
||||
<th scope="col">투표수</th>
|
||||
<th scope="col">기타의견</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$sql2 = " select sum(po_cnt1+po_cnt2+po_cnt3+po_cnt4+po_cnt5+po_cnt6+po_cnt7+po_cnt8+po_cnt9) as sum_po_cnt from {$g4['poll_table']} where po_id = '{$row['po_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$po_etc = ($row['po_etc']) ? "사용" : "미사용";
|
||||
|
||||
<tr>
|
||||
<td class="td_num"><?=$row['po_id']?></td>
|
||||
<td><?=cut_str(get_text($row['po_subject']),70)?></td>
|
||||
<td class="td_num"><?=$row['po_level']?></td>
|
||||
<td class="td_num"><?=$row2['sum_po_cnt']?></td>
|
||||
<td class="td_etc"><?=$po_etc?></td>
|
||||
<td class="td_mng"><?=$s_mod?> <?=$s_del?></td>
|
||||
</tr>
|
||||
$s_mod = '<a href="./poll_form.php?'.$qstr.'&w=u&po_id='.$row['po_id'].'">수정</a>';
|
||||
//$s_del = '<a href="javascript:post_delete(\'poll_form_update.php\', \''.$row['po_id'].'\');">삭제</a>';
|
||||
?>
|
||||
|
||||
<?
|
||||
}
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<input type="hidden" name="" value="">
|
||||
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="투표선택">
|
||||
</td>
|
||||
<td class="td_num"><?=$row['po_id']?></td>
|
||||
<td><?=cut_str(get_text($row['po_subject']),70)?></td>
|
||||
<td class="td_num"><?=$row['po_level']?></td>
|
||||
<td class="td_num"><?=$row2['sum_po_cnt']?></td>
|
||||
<td class="td_etc"><?=$po_etc?></td>
|
||||
<td class="td_mng"><?=$s_mod?></td>
|
||||
</tr>
|
||||
|
||||
if ($i==0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?
|
||||
}
|
||||
|
||||
<?
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||
echo $pagelist;
|
||||
?>
|
||||
if ($i==0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_list">
|
||||
<button>선택삭제</button>
|
||||
<input type="submit" name="btn_submit" value="선택삭제">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
|
||||
|
||||
<?
|
||||
if (isset($stx))
|
||||
@ -128,13 +138,13 @@ if (isset($stx))
|
||||
// POST 방식으로 삭제
|
||||
function post_delete(action_url, val)
|
||||
{
|
||||
var f = document.fpost;
|
||||
var f = document.fpost;
|
||||
|
||||
if(confirm("한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?")) {
|
||||
if(confirm("한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?")) {
|
||||
f.po_id.value = val;
|
||||
f.action = action_url;
|
||||
f.submit();
|
||||
}
|
||||
f.action = action_url;
|
||||
f.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user