관리자: fieldset 스타일
This commit is contained in:
@ -62,13 +62,13 @@ var list_delete_php = 'auth_list_delete.php';
|
||||
</script>
|
||||
|
||||
<form id="fsearch" name="fsearch" method="get">
|
||||
<input type="hidden" id="sfl" name="sfl" value="a.mb_id">
|
||||
<fieldset>
|
||||
<legend>관리권한 검색</legend>
|
||||
<div>
|
||||
<span>
|
||||
<?=$listall?>
|
||||
설정된 관리권한 <?=number_format($total_count)?>건
|
||||
</div>
|
||||
<input type="hidden" id="sfl" name="sfl" value="a.mb_id">
|
||||
</span>
|
||||
<label for="stx">회원아이디</label>
|
||||
<input type="text" id="stx" name="stx" required value="<?=$stx?>">
|
||||
<input type="submit" id="fsearch_submit" value="검색">
|
||||
@ -83,7 +83,10 @@ var list_delete_php = 'auth_list_delete.php';
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<input type="hidden" name="token" value="<?=$token?>">
|
||||
<table>
|
||||
<caption>설정된 관리권한 내역</caption>
|
||||
<caption>
|
||||
설정된 관리권한 내역
|
||||
<p>권한 <strong>r</strong>은 읽기권한, <strong>w</strong>는 쓰기권한, <strong>d</strong>는 삭제권한입니다.</p>
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재 페이지 권한설정 내역 전체선택" onclick="check_all(this.form)"></th>
|
||||
@ -162,38 +165,32 @@ else
|
||||
|
||||
<fieldset>
|
||||
<legend>관리권한 추가</legend>
|
||||
<p>아래 양식에서 회원에게 관리권한을 부여하실 수 있습니다. <strong>r</strong>은 <strong>읽기</strong>권한, <strong>w</strong>는 <strong>입력</strong> 혹은 <strong>수정</strong>권한, <strong>d</strong>는 <strong>삭제</strong>권한입니다.</p>
|
||||
<div>
|
||||
<label for="mb_id">회원아이디</label>
|
||||
<input type="text" id="mb_id" name="mb_id" required value='<?=$mb_id?>'>
|
||||
</div>
|
||||
<div>
|
||||
<label for="au_menu">접근가능메뉴</label>
|
||||
<select id="au_menu" name="au_menu" required>
|
||||
<option value=''>선택하세요
|
||||
<?
|
||||
foreach($auth_menu as $key=>$value)
|
||||
{
|
||||
if (!(substr($key, -3) == '000' || $key == '-' || !$key))
|
||||
echo '<option value="'.$key.'">'.$key.' '.$value;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="checkbox" id="r" name="r" value="r" checked>
|
||||
<label for="r">r</label>
|
||||
<input type="checkbox" id="w" name="w" value="w">
|
||||
<label for="w">w</label>
|
||||
<input type="checkbox" id="d" name="d" value="d">
|
||||
<label for="d">d</label>
|
||||
</div>
|
||||
<div>
|
||||
<label for="admin_password">관리자 패스워드</label>
|
||||
<input type="password" id="admin_password" name="admin_password" required>
|
||||
</div>
|
||||
<p>다음 양식에서 회원에게 관리권한을 부여하실 수 있습니다.</p>
|
||||
<label for="mb_id">회원아이디</label>
|
||||
<input type="text" id="mb_id" name="mb_id" required value='<?=$mb_id?>'>
|
||||
<label for="au_menu">접근가능메뉴</label>
|
||||
<select id="au_menu" name="au_menu" required>
|
||||
<option value=''>선택하세요
|
||||
<?
|
||||
foreach($auth_menu as $key=>$value)
|
||||
{
|
||||
if (!(substr($key, -3) == '000' || $key == '-' || !$key))
|
||||
echo '<option value="'.$key.'">'.$key.' '.$value;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="checkbox" id="r" name="r" value="r" checked>
|
||||
<label for="r">r (읽기)</label>
|
||||
<input type="checkbox" id="w" name="w" value="w">
|
||||
<label for="w">w (쓰기)</label>
|
||||
<input type="checkbox" id="d" name="d" value="d">
|
||||
<label for="d">d (삭제)</label>
|
||||
<p>관리자 권한을 탈취당하는 경우를 대비하여 패스워드를 다시 한번 확인합니다.</p>
|
||||
<label for="admin_password">관리자 패스워드</label>
|
||||
<input type="password" id="admin_password" name="admin_password" required>
|
||||
<input type="submit" class="fieldset_submit" value="완료">
|
||||
</fieldset>
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="추가">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
@ -77,18 +77,17 @@ var list_delete_php = 'board_list_delete.php';
|
||||
<form id="fsearch" name="fsearch" method="get">
|
||||
<fieldset>
|
||||
<legend>게시판 검색</legend>
|
||||
<div>
|
||||
<span>
|
||||
<?=$listall?>
|
||||
생성된 게시판수 : <?=number_format($total_count)?>건
|
||||
</div>
|
||||
생성된 게시판수 <?=number_format($total_count)?>개
|
||||
</span>
|
||||
<label for="sfl">검색대상</label>
|
||||
<select id="sfl" name="sfl">
|
||||
<option value="bo_table">TABLE</option>
|
||||
<option value="bo_subject">제목</option>
|
||||
<option value="a.gr_id">그룹ID</option>
|
||||
</select>
|
||||
<label for="stx">검색어</label>
|
||||
<input type="text" id="stx" name="stx" required value="<?=$stx?>">
|
||||
<input type="text" name="stx" required value="<?=$stx?>" title="검색어">
|
||||
<input type="submit" value="검색">
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
@ -66,10 +66,10 @@ var list_update_php = "./boardgroup_list_update.php";
|
||||
<form id="fsearch" name="fsearch" method="get">
|
||||
<fieldset>
|
||||
<legend>그룹 검색</legend>
|
||||
<div>
|
||||
<span>
|
||||
<?=$listall?>
|
||||
생성된 그룹수 : <?=number_format($total_count)?>건
|
||||
</div>
|
||||
생성된 그룹수 <?=number_format($total_count)?>개
|
||||
</span>
|
||||
<label for="sfl">검색대상</label>
|
||||
<select id="sfl" name="sfl">
|
||||
<option value="gr_subject">제목</option>
|
||||
|
||||
@ -39,10 +39,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$s_del = '<a href="javascript:post_delete(\'boardgroupmember_update.php\', \''.$row[gm_id].'\');">삭제</a>';
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?=$g4['bbs_path']?>/group.php?gr_id=<?=$row['gr_id']?>"><?=$row['gr_id']?></a></td>
|
||||
<td><?=$row['gr_subject']?></td>
|
||||
<td><?=$row['gm_datetime']?></td>
|
||||
<td><?=$s_del?></td>
|
||||
<td class="td_grid"><a href="<?=$g4['bbs_path']?>/group.php?gr_id=<?=$row['gr_id']?>"><?=$row['gr_id']?></a></td>
|
||||
<td class="td_category"><?=$row['gr_subject']?></td>
|
||||
<td class="td_time"><?=$row['gm_datetime']?></td>
|
||||
<td class="td_mng"><?=$s_del?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
@ -54,16 +54,6 @@ if ($i == 0) {
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?
|
||||
$sql = " select *
|
||||
from {$g4['group_table']}
|
||||
where gr_use_access = 1 ";
|
||||
if ($is_admin != 'super')
|
||||
$sql .= " and gr_admin = '{$member['mb_id']}' ";
|
||||
$sql .= " order by gr_id ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
<? if ($result['gr_id']) { // 여기가 게시판 그룹이 한개 이상 존재할 때 조건?>
|
||||
<form id="fboardgroupmember_form" name="fboardgroupmember_form" method="post" action="./boardgroupmember_update.php" onsubmit="return boardgroupmember_form_check(this)">
|
||||
<input type="hidden" id="mb_id" name="mb_id" value="<?=$mb['mb_id']?>">
|
||||
<input type="hidden" id="token" name="token" value="<?=$token?>">
|
||||
@ -73,17 +63,23 @@ $result = sql_query($sql);
|
||||
<select id="gr_id" name="gr_id">
|
||||
<option value="">접근가능 그룹을 선택하세요.</option>
|
||||
<?
|
||||
$sql = " select *
|
||||
from {$g4['group_table']}
|
||||
where gr_use_access = 1 ";
|
||||
//if ($is_admin == 'group') {
|
||||
if ($is_admin != 'super')
|
||||
$sql .= " and gr_admin = '$member[mb_id]' ";
|
||||
$sql .= " order by gr_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
echo '<option value="'.$row['gr_id'].'">'.$row['gr_subject'].'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="submit" value="완료" accesskey="s">
|
||||
<p>게시판 그룹이 존재하지 않는다면 <a href="./boardgroup_form.php">게시판그룹생성하기</a></p>
|
||||
</fieldset>
|
||||
</form>
|
||||
<?} else { // 여기가 게시판 그룹이 0개일 때 조건?>
|
||||
<p>게시판 그룹이 존재하지 않습니다. <a href="./boardgroup_form.php">게시판그룹생성 바로가기</a></p>
|
||||
<?}?>
|
||||
|
||||
<script>
|
||||
function boardgroupmember_form_check(f)
|
||||
|
||||
@ -60,13 +60,12 @@ $colspan = 7;
|
||||
<form id="fsearch" name="fsearch" method="get">
|
||||
<input type="hidden" name="gr_id" value="<?=$gr_id?>">
|
||||
<fieldset>
|
||||
<legend><?=$gr['gr_subject']?> 그룹에서 검색 (그룹아이디:<?=$gr['gr_id']?>)</legend>
|
||||
<legend><?=$gr['gr_subject']?>(아이디 <?=$gr['gr_id']?>)에서 검색</legend>
|
||||
<label for="sfl">검색대상</label>
|
||||
<select id="sfl" name="sfl">
|
||||
<option value='a.mb_id'>회원아이디</option>
|
||||
</select>
|
||||
<label for="stx">검색어</label>
|
||||
<input type="text" id="stx" name="stx" required value="<? echo $stx ?>">
|
||||
<input type="text" id="stx" name="stx" required value="<? echo $stx ?>" title="검색어">
|
||||
<input type="submit" value="검색">
|
||||
</fieldset>
|
||||
</form>
|
||||
@ -75,13 +74,13 @@ $colspan = 7;
|
||||
<caption><?=$gr['gr_subject']?> 그룹에 접근가능한 회원 목록 (그룹아이디:<?=$gr['gr_id']?>)</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" id="th_mb_id"><?=subject_sort_link('b.mb_id', 'gr_id='.$gr_id)?>회원아이디</a></th>
|
||||
<th scope="col" id="th_mb_name"><?=subject_sort_link('b.mb_name', 'gr_id='.$gr_id)?>이름</a></th>
|
||||
<th scope="col" id="th_mb_nick"><?=subject_sort_link('b.mb_nick', 'gr_id='.$gr_id)?>별명</a></th>
|
||||
<th scope="col" id="th_mb_last"><?=subject_sort_link('b.mb_today_login', 'gr_id='.$gr_id)?>최종접속</a></th>
|
||||
<th scope="col" id="th_datetime"><?=subject_sort_link('a.gm_datetime', 'gr_id='.$gr_id)?>처리일시</a></th>
|
||||
<th scope="col" id="th_group">그룹</th>
|
||||
<th scope="col" id="th_del">삭제</th>
|
||||
<th scope="col">그룹</th>
|
||||
<th scope="col"><?=subject_sort_link('b.mb_id', 'gr_id='.$gr_id)?>회원아이디</a></th>
|
||||
<th scope="col"><?=subject_sort_link('b.mb_name', 'gr_id='.$gr_id)?>이름</a></th>
|
||||
<th scope="col"><?=subject_sort_link('b.mb_nick', 'gr_id='.$gr_id)?>별명</a></th>
|
||||
<th scope="col"><?=subject_sort_link('b.mb_today_login', 'gr_id='.$gr_id)?>최종접속</a></th>
|
||||
<th scope="col"><?=subject_sort_link('a.gm_datetime', 'gr_id='.$gr_id)?>처리일시</a></th>
|
||||
<th scope="col">삭제</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -100,13 +99,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
|
||||
?>
|
||||
<tr>
|
||||
<td headers="th_mb_id"><?=$row['mb_id']?></td>
|
||||
<td headers="th_mb_name"><?=$row['mb_name']?></td>
|
||||
<td headers="th_mb_nick"><?=$mb_nick?></td>
|
||||
<td headers="th_mb_last"><?=substr($row['mb_today_login'],2,8)?></td>
|
||||
<td headers="th_datetime"><?=$row['gm_datetime']?></td>
|
||||
<td headers="th_group"><?=$group?></td>
|
||||
<td headers="th_del"><?=$s_del?></td>
|
||||
<td class="td_grid"><?=$group?></td>
|
||||
<td class="td_mbid"><?=$row['mb_id']?></td>
|
||||
<td class="td_mbname"><?=$row['mb_name']?></td>
|
||||
<td class="td_mbnick"><?=$mb_nick?></td>
|
||||
<td class="td_time"><?=substr($row['mb_today_login'],2,8)?></td>
|
||||
<td class="td_time"><?=$row['gm_datetime']?></td>
|
||||
<td class="td_mng"><?=$s_del?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
|
||||
@ -60,9 +60,7 @@ include_once('./admin.head.php');
|
||||
<input type="text" id="mb_id1_from" name="mb_id1_from" value="<?=$mb_id1_from?>" title="시작구간"> 에서
|
||||
<input type="text" id="mb_id1_to" name="mb_id1_to" value="<?=$mb_id1_to?>" title="종료구간"> 까지
|
||||
|
||||
<script>
|
||||
document.onLoad=mb_id1_click(<?=(int)$mb_id1?>);
|
||||
</script>
|
||||
<script>document.onLoad=mb_id1_click(<?=(int)$mb_id1?>);</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -95,12 +95,12 @@ var list_delete_php = 'member_list_delete.php';
|
||||
<form id="fsearch" name="fsearch" method="get">
|
||||
<fieldset>
|
||||
<legend>회원검색</legend>
|
||||
<div>
|
||||
<span>
|
||||
<?=$listall?>
|
||||
총회원수 : <?=number_format($total_count)?>,
|
||||
<a href="?sst=mb_intercept_date&sod=desc&sfl=<?=$sfl?>&stx=<?=$stx?>">차단 : <?=number_format($intercept_count)?></a>,
|
||||
<a href="?sst=mb_leave_date&sod=desc&sfl=<?=$sfl?>&stx=<?=$stx?>">탈퇴 : <?=number_format($leave_count)?></a>
|
||||
</div>
|
||||
총회원수 <?=number_format($total_count)?>명 중,
|
||||
<a href="?sst=mb_intercept_date&sod=desc&sfl=<?=$sfl?>&stx=<?=$stx?>">차단 <?=number_format($intercept_count)?></a>명,
|
||||
<a href="?sst=mb_leave_date&sod=desc&sfl=<?=$sfl?>&stx=<?=$stx?>">탈퇴 <?=number_format($leave_count)?></a>명
|
||||
</span>
|
||||
<label for="sfl">검색대상</label>
|
||||
<select id="sfl" name="sfl">
|
||||
<option value="mb_id">회원아이디</option>
|
||||
|
||||
@ -78,26 +78,25 @@ function point_clear()
|
||||
<form id="fsearch" name="fsearch" method="get">
|
||||
<fieldset>
|
||||
<legend>포인트 내역 검색</legend>
|
||||
<div>
|
||||
<span>
|
||||
<?=$listall?>
|
||||
건수 : <?=number_format($total_count)?>
|
||||
전체 <?=number_format($total_count)?> 건
|
||||
<?
|
||||
if ($mb['mb_id'])
|
||||
echo ' (' . $mb['mb_id'] .' 님 포인트 합계 : ' . number_format($mb[mb_point]) . '점)';
|
||||
else {
|
||||
$row2 = sql_fetch(" select sum(po_point) as sum_point from {$g4['point_table']} ");
|
||||
echo ' (전체 포인트 합계 : ' . number_format($row2['sum_point']) . '점)';
|
||||
echo ' (전체 합계 '.number_format($row2['sum_point']).'점)';
|
||||
}
|
||||
?>
|
||||
<? if ($is_admin == 'super') { ?><!-- <a href="javascript:point_clear();">포인트정리</a> --><? } ?>
|
||||
</div>
|
||||
</span>
|
||||
<label for="sfl">검색대상</label>
|
||||
<select id="sfl" name="sfl">
|
||||
<option value="mb_id">회원아이디</option>
|
||||
<option value="po_content">내용</option>
|
||||
</select>
|
||||
<label for="stx">검색어</label>
|
||||
<input type="text" id="stx" name="stx" required value="<?=$stx?>">
|
||||
<input type="text" id="stx" name="stx" required value="<?=$stx?>" title="검색어">
|
||||
<input type="submit" value="검색">
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
@ -56,16 +56,15 @@ $colspan = 6;
|
||||
<form id="fsearch" name="fsearch" method="get">
|
||||
<fieldset>
|
||||
<legend>투표검색</legend>
|
||||
<div>
|
||||
<span><?=$listall?></span>
|
||||
<span>
|
||||
<?=$listall?>
|
||||
투표수 : <?=number_format($total_count)?>개
|
||||
</div>
|
||||
</span>
|
||||
<label for="sfl">검색대상</label>
|
||||
<select id="sfl" name="sfl">
|
||||
<option value='po_subject'>제목</option>
|
||||
</select>
|
||||
<label for="stx">검색어</label>
|
||||
<input type="text" id="stx" name="stx" required value="<?=$stx?>">
|
||||
<input type="text" name="stx" required value="<?=$stx?>" title="검색어">
|
||||
<input type="submit" value="검색">
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
@ -58,7 +58,7 @@ $sql = " select *
|
||||
limit {$from_record}, {$rows} ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">처음</a>';
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">전체목록</a>';
|
||||
|
||||
$g4['title'] = '인기검색어관리';
|
||||
include_once('./admin.head.php');
|
||||
@ -74,17 +74,16 @@ var list_delete_php = 'popular_list.php';
|
||||
<form id="fsearch" name="fsearch" method="get">
|
||||
<fieldset>
|
||||
<legend>인기검색어 검색</legend>
|
||||
<div>
|
||||
<span><?=$listall?></span>
|
||||
<span>
|
||||
<?=$listall?>
|
||||
건수 : <?=number_format($total_count)?>개
|
||||
</div>
|
||||
</span>
|
||||
<label for="sfl">검색대상</label>
|
||||
<select id="sfl" name="sfl">
|
||||
<option value="pp_word">검색어</option>
|
||||
<option value="pp_date">등록일</option>
|
||||
</select>
|
||||
<label for="stx">검색어</label>
|
||||
<input type="text" id="stx" name="stx" required value="<?=$stx?>">
|
||||
<input type="text" name="stx" required value="<?=$stx?>" title="검색어">
|
||||
<input type="submit" value="검색">
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
@ -45,10 +45,10 @@ $colspan = 3;
|
||||
<form id="fsearch" name="fsearch" method="get">
|
||||
<fieldset>
|
||||
<legend>인기검색어 검색</legend>
|
||||
<div>
|
||||
<span><?=$listall?></span>
|
||||
건수 : <?=number_format($total_count)?>개
|
||||
</div>
|
||||
<span>
|
||||
<?=$listall?>
|
||||
건수 <?=number_format($total_count)?>개
|
||||
</span>
|
||||
<label for="fr_date">기간설정</label>
|
||||
<input type="text" id="fr_date" name="fr_date" maxlength="10" value="<?=$fr_date?>" title="구간시작일"> 부터 <input type="text" id="to_date" name="to_date" maxlength="10" value="<?=$to_date?>" title="구간종료일"> 까지
|
||||
<input type="submit" value="검색">
|
||||
|
||||
13
css/adm.css
13
css/adm.css
@ -28,7 +28,7 @@ header {background:#2c2f34}
|
||||
#current_location {position:absolute;top:50px;left:0;width:100%;height:35px;background:url('../img/top_bg.png') #2c2f34 repeat-x;color:#ccc;font-size:0.75em;line-height:2.95em}
|
||||
#current_location ul {margin-left:20px}
|
||||
#current_location li {float:left}
|
||||
#wrapper {margin:60px 20px 0 220px;min-height:630px}
|
||||
#wrapper {margin:60px 10px 0 210px;min-height:630px;height:auto !important;height:630px}
|
||||
|
||||
/* GNB */
|
||||
#gnb {position:absolute;top:110px;left:20px;width:180px}
|
||||
@ -52,8 +52,10 @@ textarea, input {padding:3px}
|
||||
textarea:focus, input:focus {padding:4px;border:0;background:#9aacb4;color:#fff}
|
||||
textarea {width:90%}
|
||||
select {padding:2px}
|
||||
fieldset {margin-bottom:20px;padding:13px;border:1px solid #ced9de;background:#fff}
|
||||
legend {margin-left:0;padding:7px 10px;border:1px solid #ced9de;background:#f6f9fa;font-size:0.875em}
|
||||
fieldset {margin-bottom:20px;padding:13px;border:1px solid #ced9de;background:#fff;font-size:0.8em}
|
||||
fieldset p {color:#6b8088}
|
||||
fieldset span {display:inline-block;margin-right:10px;vertical-align:middle}
|
||||
legend {margin-left:0;padding:7px 10px;border:1px solid #ced9de;background:#f6f9fa}
|
||||
button {padding:3px;border:1px solid #ced9de;background:#f6f9fa;cursor:pointer}
|
||||
.readonly {background:#ff3061}
|
||||
|
||||
@ -78,8 +80,7 @@ td {padding:10px}
|
||||
.td_chk {width:30px;text-align:center}
|
||||
.td_num {width:60px;text-align:center}
|
||||
.td_bignum {width:120px;text-align:center}
|
||||
.td_mbid {width:80px;text-align:center}
|
||||
.td_mbname {width:80px;text-align:center}
|
||||
.td_mbid, .td_mbnick, .td_mbname {width:80px;text-align:center}
|
||||
.td_time {width:150px;text-align:center}
|
||||
/* 관리권한설정 목록 */
|
||||
.td_menu {}
|
||||
@ -99,6 +100,8 @@ td {padding:10px}
|
||||
.tbl_bo_list td {text-align:center}
|
||||
/*게시판그룹관리 목록 */
|
||||
.tbl_gr_list td {text-align:center}
|
||||
/* 접근가능그룹 목록 */
|
||||
.td_grid {text-align:center}
|
||||
/* 인기검색어 관련 목록 */
|
||||
.tbl_pop_list td {text-align:center}
|
||||
/* 접속자집계 목록 */
|
||||
|
||||
Reference in New Issue
Block a user