관리자 모드 땀표 전쟁, 회원추가 완료

This commit is contained in:
whitedot
2012-11-01 18:12:13 +09:00
parent 6f10749461
commit 54b20eff74
58 changed files with 962 additions and 945 deletions

View File

@ -16,7 +16,7 @@ $sql_search = " where (1) ";
if ($is_admin != "super") {
$sql_common .= " , $g4[group_table] b ";
$sql_search .= " and (a.gr_id = b.gr_id and b.gr_admin = '$member[mb_id]') ";
$sql_search .= " and (a.gr_id = b.gr_id and b.gr_admin = '$member['mb_id']') ";
}
if ($stx) {
@ -74,28 +74,28 @@ var list_delete_php = 'board_list_delete.php';
</script>
<table width=100% cellpadding=3 cellspacing=1>
<form name=fsearch method=get>
<form id="fsearch" name="fsearch" method=get>
<tr>
<td width=50% align=left><?=$listall?> (게시판수 : <?=number_format($total_count)?>개)</td>
<td width=50% align=right>
<select name=sfl>
<option value='bo_table'>TABLE</option>
<option value='bo_subject'>제목</option>
<select id="sfl" name="sfl">
<option value="bo_table">TABLE</option>
<option value="bo_subject">제목</option>
<option value='a.gr_id'>그룹ID</option>
</select>
<input type=text name=stx class=ed required itemname='검색어' value='<?=$stx?>'>
<input type=image src='<?=$g4[admin_path]?>/img/btn_search.gif' align=absmiddle></td>
<input type="text" id="stx" name="stx" class=ed required value='<?=$stx?>'>
<input type="image" src='<?=$g4['admin_path']?>/img/btn_search.gif' align=absmiddle></td>
</tr>
</form>
</table>
<form name=fboardlist method=post>
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=page value="<?=$page?>">
<input type=hidden name=token value="<?=$token?>">
<form id="fboardlist" name="fboardlist" method=post>
<input type="hidden" id="sst" name="sst" value="<?=$sst?>">
<input type="hidden" id="sod" name="sod" value="<?=$sod?>">
<input type="hidden" id="sfl" name="sfl" value="<?=$sfl?>">
<input type="hidden" id="stx" name="stx" value="<?=$stx?>">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<input type="hidden" id="token" name="token" value="<?=$token?>">
<table width=100% cellpadding=0 cellspacing=1>
<colgroup width=30>
<colgroup width=>
@ -110,7 +110,7 @@ var list_delete_php = 'board_list_delete.php';
<colgroup width=80>
<tr><td colspan='<?=$colspan?>' class='line1'></td></tr>
<tr class='bgcol1 bold col1 ht center'>
<td rowspan=2><input type=checkbox name=chkall value="1" onclick="check_all(this.form)"></td>
<td rowspan=2><input type="checkbox" id="chkall" name="chkall" value="1" onclick="check_all(this.form)"></td>
<td rowspan=2><?=subject_sort_link("bo_table")?>TABLE</a></td>
<td colspan=2><?=subject_sort_link("bo_subject")?>제목</a></td>
<td rowspan=2 title="글읽기 포인트"><?=subject_sort_link("bo_read_point")?>읽기<br>포인트</a></td>
@ -119,7 +119,7 @@ var list_delete_php = 'board_list_delete.php';
<td rowspan=2 title="다운로드 포인트"><?=subject_sort_link("bo_download_point")?>다운<br>포인트</a></td>
<td rowspan=2 title="검색사용"><?=subject_sort_link("bo_use_search")?>검색<br>사용</a></td>
<td rowspan=2 title="검색순서"><?=subject_sort_link("bo_order_search")?>검색<br>순서</a></td>
<td rowspan=2><a href="./board_form.php"><img src='<?=$g4[admin_path]?>/img/icon_insert.gif' border=0 title='생성'></a></td>
<td rowspan=2><a href="./board_form.php"><img src='<?=$g4['admin_path']?>/img/icon_insert.gif' border=0 title='생성'></a></td>
</tr>
<tr class='bgcol1 bold col1 ht center'>
<td><?=subject_sort_link("a.gr_id")?>그룹</a></td>
@ -143,10 +143,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$s_upd = "<a href='./board_form.php?w=u&bo_table=$row[bo_table]&$qstr'><img src='img/icon_modify.gif' border=0 title='수정'></a>";
$s_del = "";
if ($is_admin == "super") {
//$s_del = "<a href=\"javascript:del('./board_delete.php?bo_table=$row[bo_table]&$qstr');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$s_del = "<a href=\"javascript:post_delete('board_delete.php', '$row[bo_table]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
//$s_del = "<a href="javascript:del('./board_delete.php?bo_table=$row[bo_table]&$qstr');"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$s_del = "<a href="javascript:post_delete('board_delete.php', '$row[bo_table]');"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
}
$s_copy = "<a href=\"javascript:board_copy('$row[bo_table]');\"><img src='img/icon_copy.gif' border=0 title='복사'></a>";
$s_copy = "<a href="javascript:board_copy('$row[bo_table]');"><img src='img/icon_copy.gif' border=0 title='복사'></a>";
/*
// 스킨디렉토리
@ -166,17 +166,17 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
*/
$list = $i % 2;
echo "<input type=hidden name=board_table[$i] value='$row[bo_table]'>";
echo "<input type="hidden" id="board_table" name="board_table"[$i] value='$row[bo_table]'>";
echo "<tr class='list$list col1 ht center'>";
echo "<td rowspan=2 height=25><input type=checkbox name=chk[] value='$i'></td>";
echo "<td rowspan=2 height=25><input type="checkbox" id="chk" name="chk"[] value='$i'></td>";
echo "<td rowspan=2><a href='$g4[bbs_path]/board.php?bo_table=$row[bo_table]'><b>$row[bo_table]</b></a></td>";
echo "<td colspan=2 align=left height=25><input type=text class=ed name=bo_subject[$i] value='".get_text($row[bo_subject])."' style='width:99%'></td>";
echo "<td rowspan=2 title='읽기 포인트'><input type=text class=ed name=bo_read_point[$i] value='$row[bo_read_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='쓰기 포인트'><input type=text class=ed name=bo_write_point[$i] value='$row[bo_write_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='속글쓰기 포인트'><input type=text class=ed name=bo_comment_point[$i] value='$row[bo_comment_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='다운로드 포인트'><input type=text class=ed name=bo_download_point[$i] value='$row[bo_download_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='검색사용'><input type=checkbox name=bo_use_search[$i] ".($row[bo_use_search]?'checked':'')." value='1'></td>";
echo "<td rowspan=2 title='검색순서'><input type=text class=ed name=bo_order_search[$i] value='$row[bo_order_search]' size=2></td>";
echo "<td colspan=2 align=left height=25><input type="text" class=ed id="bo_subject" name="bo_subject"[$i] value='".get_text($row[bo_subject])."' style='width:99%'></td>";
echo "<td rowspan=2 title='읽기 포인트'><input type="text" class=ed id="bo_read_point" name="bo_read_point"[$i] value='$row[bo_read_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='쓰기 포인트'><input type="text" class=ed id="bo_write_point" name="bo_write_point"[$i] value='$row[bo_write_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='속글쓰기 포인트'><input type="text" class=ed id="bo_comment_point" name="bo_comment_point"[$i] value='$row[bo_comment_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='다운로드 포인트'><input type="text" class=ed id="bo_download_point" name="bo_download_point"[$i] value='$row[bo_download_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='검색사용'><input type="checkbox" id="bo_use_search" name="bo_use_search"[$i] ".($row[bo_use_search]?'checked':'')." value="1"></td>";
echo "<td rowspan=2 title='검색순서'><input type="text" class=ed id="bo_order_search" name="bo_order_search"[$i] value='$row[bo_order_search]' size=2></td>";
echo "<td rowspan=2>$s_upd $s_del $s_copy</td>";
echo "</tr>";
echo "<tr class='list$list col1 ht center'>";
@ -184,9 +184,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($is_admin == "super")
echo "<td align=left>".get_group_select("gr_id[$i]", $row[gr_id])."</td>";
else
echo "<td align=center><input type=hidden name='gr_id[$i]' value='$row[gr_id]'>$row[gr_subject]</td>";
echo "<td align=center><input type="hidden" name='gr_id[$i]' value='$row[gr_id]'>$row[gr_subject]</td>";
echo "<td align=left><select id=bo_skin_$i name=bo_skin[$i]>$skin_options</select></td>";
echo "<td align=left><select id=bo_skin_$i id="bo_skin" name="bo_skin"[$i]>$skin_options</select></td>";
echo "</tr>\n";
echo "<script type='text/javascript'>document.getElementById('bo_skin_$i').value='$row[bo_skin]';</script>";
}
@ -200,10 +200,10 @@ echo "</table>";
$pagelist = get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");
echo "<table width=100% cellpadding=3 cellspacing=1>";
echo "<tr><td width=70%>";
echo "<input type=button class='btn1' value='선택수정' onclick=\"btn_check(this.form, 'update')\"> ";
echo "<input type="button" class='btn1' value='선택수정' onclick="btn_check(this.form, 'update')"> ";
if ($is_admin == "super")
echo "<input type=button class='btn1' value='선택삭제' onclick=\"btn_check(this.form, 'delete')\">";
echo "<input type="button" class='btn1' value='선택삭제' onclick="btn_check(this.form, 'delete')">";
echo "</td>";
echo "<td width=30% align=right>$pagelist</td></tr></table>\n";
@ -233,14 +233,14 @@ function post_delete(action_url, val)
}
</script>
<form name='fpost' method='post'>
<input type='hidden' name='sst' value='<?=$sst?>'>
<input type='hidden' name='sod' value='<?=$sod?>'>
<input type='hidden' name='sfl' value='<?=$sfl?>'>
<input type='hidden' name='stx' value='<?=$stx?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='token' value='<?=$token?>'>
<input type='hidden' name='bo_table'>
<form id="fpost" name="fpost" method='post'>
<input type="hidden" id="sst" name="sst" value='<?=$sst?>'>
<input type="hidden" id="sod" name="sod" value='<?=$sod?>'>
<input type="hidden" id="sfl" name="sfl" value='<?=$sfl?>'>
<input type="hidden" id="stx" name="stx" value='<?=$stx?>'>
<input type="hidden" id="page" name="page" value='<?=$page?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<input type="hidden" id="bo_table" name="bo_table">
</form>
<?