포인트관리 선택삭제 기능 수정
This commit is contained in:
@ -104,7 +104,7 @@ function point_clear()
|
|||||||
<section class="cbox">
|
<section class="cbox">
|
||||||
<h2>포인트 내역</h2>
|
<h2>포인트 내역</h2>
|
||||||
|
|
||||||
<form id="fpointlist" name="fpointlist" method="post">
|
<form id="fpointlist" name="fpointlist" method="post" action="./point_list_delete.php" onsubmit="return fpointlist_submit(this);">
|
||||||
<input type="hidden" name="sst" value="<?=$sst?>">
|
<input type="hidden" name="sst" value="<?=$sst?>">
|
||||||
<input type="hidden" name="sod" value="<?=$sod?>">
|
<input type="hidden" name="sod" value="<?=$sod?>">
|
||||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||||
@ -167,7 +167,7 @@ function point_clear()
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="btn_list">
|
<div class="btn_list">
|
||||||
<button onclick="btn_check(this.form, 'delete')">선택삭제</button>
|
<button>선택삭제</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
@ -197,6 +197,18 @@ function point_clear()
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function fpointlist_submit(f)
|
||||||
|
{
|
||||||
|
if (!is_checked("chk[]")) {
|
||||||
|
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once ('./admin.tail.php');
|
include_once ('./admin.tail.php');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -8,7 +8,11 @@ auth_check($auth[$sub_menu], 'd');
|
|||||||
|
|
||||||
check_token();
|
check_token();
|
||||||
|
|
||||||
for ($i=0; $i<count($chk); $i++)
|
$count = count($_POST['chk']);
|
||||||
|
if(!$count)
|
||||||
|
alert("선택삭제 하실 항목을 하나이상 선택해 주세요.");
|
||||||
|
|
||||||
|
for ($i=0; $i<$count; $i++)
|
||||||
{
|
{
|
||||||
// 실제 번호를 넘김
|
// 실제 번호를 넘김
|
||||||
$k = $_POST['chk'][$i];
|
$k = $_POST['chk'][$i];
|
||||||
|
|||||||
Reference in New Issue
Block a user