Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -194,10 +194,8 @@ $colspan = 5;
|
||||
<script>
|
||||
$(function() {
|
||||
$('#fauthlist').submit(function() {
|
||||
var cnt = $('input[name^=chk]:checked').length;
|
||||
|
||||
if(cnt < 1) {
|
||||
alert('삭제할 권한 내역을 1개 이상 선택해 주세요.');
|
||||
if (!is_checked("chk[]")) {
|
||||
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -2,9 +2,6 @@
|
||||
$sub_menu = "300100";
|
||||
include_once('./_common.php');
|
||||
|
||||
print_r2($_POST); exit;
|
||||
|
||||
|
||||
check_demo();
|
||||
|
||||
if (!count($_POST['chk'])) {
|
||||
|
||||
@ -85,9 +85,8 @@ $colspan = 6;
|
||||
$(function() {
|
||||
$('#fmaillist').submit(function() {
|
||||
if(confirm("한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?")) {
|
||||
var cnt = $('input[name^=chk]:checked').length;
|
||||
if(cnt < 1) {
|
||||
alert('삭제할 메일목록을 1개이상 선택해 주세요.');
|
||||
if (!is_checked("chk[]")) {
|
||||
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -104,7 +104,7 @@ function point_clear()
|
||||
<section class="cbox">
|
||||
<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="sod" value="<?=$sod?>">
|
||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||
@ -167,7 +167,7 @@ function point_clear()
|
||||
</table>
|
||||
|
||||
<div class="btn_list">
|
||||
<button onclick="btn_check(this.form, 'delete')">선택삭제</button>
|
||||
<button>선택삭제</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@ -220,6 +220,18 @@ function point_clear()
|
||||
|
||||
</fieldset>
|
||||
|
||||
<script>
|
||||
function fpointlist_submit(f)
|
||||
{
|
||||
if (!is_checked("chk[]")) {
|
||||
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?
|
||||
include_once ('./admin.tail.php');
|
||||
?>
|
||||
|
||||
@ -8,7 +8,11 @@ auth_check($auth[$sub_menu], 'd');
|
||||
|
||||
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];
|
||||
|
||||
@ -139,9 +139,8 @@ $colspan = 6;
|
||||
$(function() {
|
||||
$('#fpolllist').submit(function() {
|
||||
if(confirm("한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?")) {
|
||||
var cnt = $('input[name^=chk]:checked').length;
|
||||
if(cnt < 1) {
|
||||
alert('삭제할 투표목록을 1개이상 선택해 주세요.');
|
||||
if (!is_checked("chk[]")) {
|
||||
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -147,9 +147,8 @@ var list_delete_php = 'popular_list.php';
|
||||
$(function() {
|
||||
$('#fpopularlist').submit(function() {
|
||||
if(confirm("한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?")) {
|
||||
var cnt = $('input[name^=chk]:checked').length;
|
||||
if(cnt < 1) {
|
||||
alert('삭제할 검색어를 1개이상 선택해 주세요.');
|
||||
if (!is_checked("chk[]")) {
|
||||
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user