관리자: merge

This commit is contained in:
whitedot
2013-02-18 11:09:09 +09:00
5 changed files with 61 additions and 51 deletions

View File

@ -65,11 +65,6 @@ include_once('./admin.head.php');
$colspan = 8;
?>
<script>
var list_update_php = 'board_list_update.php';
var list_delete_php = 'board_list_delete.php';
</script>
<form id="fsearch" name="fsearch" method="get">
<fieldset>
<legend>게시판 검색</legend>
@ -91,6 +86,7 @@ var list_delete_php = 'board_list_delete.php';
<h2>생성된 게시판 목록</h2>
<p>여러개의 게시판 설정을 한번에 바꾸실 때는 게시판 체크기능을 이용하세요.</p>
<<<<<<< HEAD
<?if ($is_admin == 'super') {?>
<div id="btn_add">
<a href="./board_form.php" id="bo_add">게시판 추가</a>
@ -98,6 +94,9 @@ var list_delete_php = 'board_list_delete.php';
<?}?>
<form id="fboardlist" name="fboardlist" method="post" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);">
=======
<form id="fboardlist" name="fboardlist" method="post" action="./board_list_update.php">
>>>>>>> 6351d0732dbb9a7896c228d552d98ba457ee7b4f
<input type="hidden" name="sst" value="<?=$sst?>">
<input type="hidden" name="sod" value="<?=$sod?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
@ -173,9 +172,9 @@ var list_delete_php = 'board_list_delete.php';
</table>
<div class="btn_list">
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택수정">
<input type="submit" name="act_button" value="선택수정">
<?if ($is_admin == 'super') {?>
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택삭제">
<input type="submit" name="act_button" value="선택삭제">
<a href="./board_form.php">게시판추가</a>
<?}?>
</div>
@ -186,21 +185,34 @@ var list_delete_php = 'board_list_delete.php';
<?=get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&amp;page=');?>
<script>
function fboardlist_submit(f)
{
if (!is_checked("chk[]")) {
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
return false;
}
return true;
}
$(function(){
$(".board_copy").click(function(){
window.open(this.href, "win_board_copy", "left=100,top=100,width=550,height=450");
return false;
});
$('input[name=act_button]').click(function(e) {
e.preventDefault();
var act = $(this).val();
var cnt = $('input[name^=chk]:checked').length;
if(act == "선택삭제") {
if(confirm("한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?")) {
if(cnt < 1) {
alert(act+'할 게시판을 1개 이상 선택해 주세요.');
return false;
}
}
} else if(act == "선택수정") {
if(cnt < 1) {
alert(act+'할 게시판을 1개 이상 선택해 주세요.');
return false;
}
}
$('#fboardlist').submit();
});
});
</script>