관리자: 리디자인 2
This commit is contained in:
@ -72,47 +72,52 @@ function textarea_size(fld, size)
|
||||
<div id="to_content"><a href="#wrapper">본문 바로가기</a></div>
|
||||
|
||||
<header id="hd">
|
||||
<div id="hd_wrap">
|
||||
<h1><?=$config['cf_title']?></h1>
|
||||
|
||||
<div id="logo"><a href="<?=G4_ADMIN_URL?>"><img src="<?=G4_ADMIN_URL?>/img/logo.jpg" alt="관리자 메인으로"></a></div>
|
||||
<div id="logo"><a href="<?=G4_ADMIN_URL?>"><img src="<?=G4_ADMIN_URL?>/img/logo.jpg" alt="관리자 메인으로"></a></div>
|
||||
|
||||
<div id="home_link">
|
||||
<ul>
|
||||
<li><a href="<?=G4_ADMIN_URL?>/member_form.php?w=u&mb_id=<?=$member['mb_id']?>">관리자정보수정</a></li>
|
||||
<li><a href="<?=G4_URL?>/">홈페이지</a></li>
|
||||
<li><a href="<?=G4_BBS_URL?>/logout.php">로그아웃</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="home_link">
|
||||
<ul>
|
||||
<li><a href="<?=G4_ADMIN_URL?>/member_form.php?w=u&mb_id=<?=$member['mb_id']?>">관리자정보수정</a></li>
|
||||
<li><a href="<?=G4_URL?>/">홈페이지</a></li>
|
||||
<li><a href="<?=G4_BBS_URL?>/logout.php">로그아웃</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<nav id="gnb">
|
||||
<ul>
|
||||
<?
|
||||
foreach($amenu as $key=>$value) {
|
||||
$href1 = $href2 = '';
|
||||
if ($menu['menu'.$key][0][2]) {
|
||||
$href1 = '<a href="'.$menu['menu'.$key][0][2].'">';
|
||||
$href2 = '</a>';
|
||||
} else {
|
||||
continue;
|
||||
<nav id="gnb">
|
||||
<ul>
|
||||
<?
|
||||
foreach($amenu as $key=>$value) {
|
||||
$href1 = $href2 = '';
|
||||
if ($menu['menu'.$key][0][2]) {
|
||||
$href1 = '<a href="'.$menu['menu'.$key][0][2].'">';
|
||||
$href2 = '</a>';
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
$current_class = "";
|
||||
if (isset($sub_menu) && (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2)) || $admin_index)
|
||||
$current_class = " gnb_1depth_on";
|
||||
echo "<li class=\"gnb_1depth".$current_class."\">";
|
||||
echo $href1 . $menu['menu'.$key][0][1] . $href2;
|
||||
echo print_menu1('menu'.$key, 1);
|
||||
echo "</li>";
|
||||
if ($current_class || !$admin_index) $current_class = ""; // 클래스 반복부여 방지
|
||||
}
|
||||
$current_class = "";
|
||||
if (isset($sub_menu) && (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2)) || $admin_index)
|
||||
$current_class = " gnb_1depth_on";
|
||||
echo "<li class=\"gnb_1depth".$current_class."\">";
|
||||
echo $href1 . $menu['menu'.$key][0][1] . $href2;
|
||||
echo print_menu1('menu'.$key, 1);
|
||||
echo "</li>";
|
||||
if ($current_class || !$admin_index) $current_class = ""; // 클래스 반복부여 방지
|
||||
}
|
||||
|
||||
?>
|
||||
</ul>
|
||||
</nav>
|
||||
?>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<ul id="current_location">
|
||||
<li><?=$member['mb_id']?>님 현재위치</li>
|
||||
</ul>
|
||||
<div id="current_loc">
|
||||
<li><?=$member['mb_id']?>님 현재위치</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
|
||||
<div id="wrapper">
|
||||
<h1><span></span><?=$g4['title']?></h1>
|
||||
<div id="qnb">1</div>
|
||||
<div id="container">
|
||||
<h1><?=$g4['title']?></h1>
|
||||
|
||||
@ -2,15 +2,17 @@
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
?>
|
||||
|
||||
<noscript>
|
||||
<p>
|
||||
귀하께서 사용하시는 브라우저는 현재 <strong>자바스크립트를 사용하지 않음</strong>으로 설정되어 있습니다.<br>
|
||||
<strong>자바스크립트를 사용하지 않음</strong>으로 설정하신 경우는 수정이나 삭제시 별도의 경고창이 나오지 않으므로 이점 주의하시기 바랍니다.
|
||||
</p>
|
||||
</noscript>
|
||||
<noscript>
|
||||
<p>
|
||||
귀하께서 사용하시는 브라우저는 현재 <strong>자바스크립트를 사용하지 않음</strong>으로 설정되어 있습니다.<br>
|
||||
<strong>자바스크립트를 사용하지 않음</strong>으로 설정하신 경우는 수정이나 삭제시 별도의 경고창이 나오지 않으므로 이점 주의하시기 바랍니다.
|
||||
</p>
|
||||
</noscript>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<footer id="ft">
|
||||
<p>Copyright © 소유하신 도메인. All rights reserved.</p>
|
||||
</footer>
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 644 B After Width: | Height: | Size: 8.1 KiB |
377
adm/index.php
377
adm/index.php
@ -43,81 +43,81 @@ $result = sql_query($sql);
|
||||
$colspan = 12;
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption>
|
||||
신규가입회원 <?=$new_member_rows?>건 목록
|
||||
<p>
|
||||
총회원수 <?=number_format($total_count)?>명 중 차단 <?=number_format($intercept_count)?>명, 탈퇴 : <?=number_format($leave_count)?>명 중 가장 최근가입한 회원 <?=$new_member_rows?>명의 목록
|
||||
</p>
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">회원아이디</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">별명</th>
|
||||
<th scope="col">권한</th>
|
||||
<th scope="col">포인트</th>
|
||||
<th scope="col">수신</th>
|
||||
<th scope="col">공개</th>
|
||||
<th scope="col">인증</th>
|
||||
<th scope="col">차단</th>
|
||||
<th scope="col">그룹</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 접근가능한 그룹수
|
||||
$sql2 = " select count(*) as cnt from {$g4['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$group = "";
|
||||
if ($row2['cnt'])
|
||||
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
|
||||
<section class="tbl_wrap">
|
||||
<h2>신규가입회원 <?=$new_member_rows?>건 목록</h2>
|
||||
<p>총회원수 <?=number_format($total_count)?>명 중 차단 <?=number_format($intercept_count)?>명, 탈퇴 : <?=number_format($leave_count)?>명</p>
|
||||
|
||||
if ($is_admin == 'group')
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">회원아이디</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">별명</th>
|
||||
<th scope="col">권한</th>
|
||||
<th scope="col">포인트</th>
|
||||
<th scope="col">수신</th>
|
||||
<th scope="col">공개</th>
|
||||
<th scope="col">인증</th>
|
||||
<th scope="col">차단</th>
|
||||
<th scope="col">그룹</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$s_mod = '';
|
||||
$s_del = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$s_mod = '<a href="./member_form.php?$qstr&w=u&mb_id='.$row['mb_id'].'">수정</a>';
|
||||
$s_del = '<a href="javascript:del(\'./member_delete.php?'.$qstr.'&w=d&mb_id='.$row['mb_id'].'&url='.$_SERVER['PHP_SELF'].'\');">삭제</a>';
|
||||
}
|
||||
$s_grp = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">그룹</a>';
|
||||
// 접근가능한 그룹수
|
||||
$sql2 = " select count(*) as cnt from {$g4['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$group = "";
|
||||
if ($row2['cnt'])
|
||||
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
|
||||
|
||||
$leave_date = $row['mb_leave_date'] ? $row['mb_leave_date'] : date("Ymd", $g4['server_time']);
|
||||
$intercept_date = $row['mb_intercept_date'] ? $row['mb_intercept_date'] : date("Ymd", $g4['server_time']);
|
||||
if ($is_admin == 'group')
|
||||
{
|
||||
$s_mod = '';
|
||||
$s_del = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$s_mod = '<a href="./member_form.php?$qstr&w=u&mb_id='.$row['mb_id'].'">수정</a>';
|
||||
$s_del = '<a href="javascript:del(\'./member_delete.php?'.$qstr.'&w=d&mb_id='.$row['mb_id'].'&url='.$_SERVER['PHP_SELF'].'\');">삭제</a>';
|
||||
}
|
||||
$s_grp = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">그룹</a>';
|
||||
|
||||
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
|
||||
$leave_date = $row['mb_leave_date'] ? $row['mb_leave_date'] : date("Ymd", $g4['server_time']);
|
||||
$intercept_date = $row['mb_intercept_date'] ? $row['mb_intercept_date'] : date("Ymd", $g4['server_time']);
|
||||
|
||||
$mb_id = $row['mb_id'];
|
||||
if ($row['mb_leave_date'])
|
||||
$mb_id = $mb_id;
|
||||
else if ($row['mb_intercept_date'])
|
||||
$mb_id = $mb_id;
|
||||
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$mb_id?></td>
|
||||
<td class="td_mbname"><?=$row['mb_name']?></td>
|
||||
<td class="td_name"><div><?=$mb_nick?></div></td>
|
||||
<td class="td_num"><?=$row['mb_level']?></td>
|
||||
<td class="td_bignum"><a href="./point_list.php?sfl=mb_id&stx=<?=$row['mb_id']?>"><?=number_format($row['mb_point'])?></a></td>
|
||||
<td class="td_boolean"><?=$row['mb_mailling']?'예':'아니오';?></td>
|
||||
<td class="td_boolean"><?=$row['mb_open']?'예':'아니오';?></td>
|
||||
<td class="td_boolean"><?=preg_match('/[1-9]/', $row['mb_email_certify'])?'예':'아니오';?></td>
|
||||
<td class="td_boolean"><?=$row['mb_intercept_date']?'예':'아니오';?></td>
|
||||
<td class="td_category"><?=$group?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
$mb_id = $row['mb_id'];
|
||||
if ($row['mb_leave_date'])
|
||||
$mb_id = $mb_id;
|
||||
else if ($row['mb_intercept_date'])
|
||||
$mb_id = $mb_id;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$mb_id?></td>
|
||||
<td class="td_mbname"><?=$row['mb_name']?></td>
|
||||
<td class="td_name"><div><?=$mb_nick?></div></td>
|
||||
<td class="td_num"><?=$row['mb_level']?></td>
|
||||
<td class="td_bignum"><a href="./point_list.php?sfl=mb_id&stx=<?=$row['mb_id']?>"><?=number_format($row['mb_point'])?></a></td>
|
||||
<td class="td_boolean"><?=$row['mb_mailling']?'예':'아니오';?></td>
|
||||
<td class="td_boolean"><?=$row['mb_open']?'예':'아니오';?></td>
|
||||
<td class="td_boolean"><?=preg_match('/[1-9]/', $row['mb_email_certify'])?'예':'아니오';?></td>
|
||||
<td class="td_boolean"><?=$row['mb_intercept_date']?'예':'아니오';?></td>
|
||||
<td class="td_category"><?=$group?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</section>
|
||||
|
||||
<?
|
||||
$sql_common = " from {$g4['board_new_table']} a, {$g4['board_table']} b, {$g4['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id ";
|
||||
@ -139,77 +139,78 @@ $total_count = $row['cnt'];
|
||||
$colspan = 5;
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption>
|
||||
최근게시물 <?=$new_write_rows?>건 목록
|
||||
<p>사이트 전체에서 가장 최근 작성된 게시물 <?=$new_write_rows?>건</p>
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">그룹</th>
|
||||
<th scope="col">게시판</th>
|
||||
<th scope="col">제목</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id {$sql_common} {$sql_order} limit {$new_write_rows} ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$tmp_write_table = $g4['write_prefix'] . $row['bo_table'];
|
||||
<section class="tbl_wrap">
|
||||
<h2>최근게시물</h2>
|
||||
<p>사이트 전체게시물 중 최근게시물 <?=$new_write_rows?>건 목록</p>
|
||||
|
||||
if ($row['wr_id'] == $row['wr_parent']) // 원글
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">그룹</th>
|
||||
<th scope="col">게시판</th>
|
||||
<th scope="col">제목</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id {$sql_common} {$sql_order} limit {$new_write_rows} ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$comment = "";
|
||||
$comment_link = "";
|
||||
$row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '{$row['wr_id']}' ");
|
||||
$tmp_write_table = $g4['write_prefix'] . $row['bo_table'];
|
||||
|
||||
$name = get_sideview($row2['mb_id'], cut_str($row2['wr_name'], $config['cf_cut_name']), $row2['wr_email'], $row2['wr_homepage']);
|
||||
// 당일인 경우 시간으로 표시함
|
||||
$datetime = substr($row2['wr_datetime'],0,10);
|
||||
$datetime2 = $row2['wr_datetime'];
|
||||
if ($datetime == G4_TIME_YMD)
|
||||
$datetime2 = substr($datetime2,11,5);
|
||||
else
|
||||
$datetime2 = substr($datetime2,5,5);
|
||||
if ($row['wr_id'] == $row['wr_parent']) // 원글
|
||||
{
|
||||
$comment = "";
|
||||
$comment_link = "";
|
||||
$row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '{$row['wr_id']}' ");
|
||||
|
||||
$name = get_sideview($row2['mb_id'], cut_str($row2['wr_name'], $config['cf_cut_name']), $row2['wr_email'], $row2['wr_homepage']);
|
||||
// 당일인 경우 시간으로 표시함
|
||||
$datetime = substr($row2['wr_datetime'],0,10);
|
||||
$datetime2 = $row2['wr_datetime'];
|
||||
if ($datetime == G4_TIME_YMD)
|
||||
$datetime2 = substr($datetime2,11,5);
|
||||
else
|
||||
$datetime2 = substr($datetime2,5,5);
|
||||
|
||||
}
|
||||
else // 코멘트
|
||||
{
|
||||
$comment = '댓글. ';
|
||||
$comment_link = '#c_'.$row['wr_id'];
|
||||
$row2 = sql_fetch(" select * from {$tmp_write_table} where wr_id = '{$row['wr_parent']}' ");
|
||||
$row3 = sql_fetch(" select mb_id, wr_name, wr_email, wr_homepage, wr_datetime from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
|
||||
|
||||
$name = get_sideview($row3['mb_id'], cut_str($row3['wr_name'], $config['cf_cut_name']), $row3['wr_email'], $row3['wr_homepage']);
|
||||
// 당일인 경우 시간으로 표시함
|
||||
$datetime = substr($row3['wr_datetime'],0,10);
|
||||
$datetime2 = $row3['wr_datetime'];
|
||||
if ($datetime == G4_TIME_YMD)
|
||||
$datetime2 = substr($datetime2,11,5);
|
||||
else
|
||||
$datetime2 = substr($datetime2,5,5);
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_category"><a href="<?=$g4['bbs_path']?>/new.php?gr_id=<?=$row['gr_id']?>"><?=cut_str($row['gr_subject'],10)?></a></td>
|
||||
<td class="td_category"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$row['bo_table']?>"><?=cut_str($row['bo_subject'],20)?></a></td>
|
||||
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$row['bo_table']?>&wr_id=<?=$row2['wr_id']?><?=$comment_link?>"><?=$comment?><?=conv_subject($row2['wr_subject'], 100)?></a></td>
|
||||
<td class="td_mbname"><div><?=$name?></div></td>
|
||||
<td class="td_time"><?=$datetime?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
else // 코멘트
|
||||
{
|
||||
$comment = '댓글. ';
|
||||
$comment_link = '#c_'.$row['wr_id'];
|
||||
$row2 = sql_fetch(" select * from {$tmp_write_table} where wr_id = '{$row['wr_parent']}' ");
|
||||
$row3 = sql_fetch(" select mb_id, wr_name, wr_email, wr_homepage, wr_datetime from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
|
||||
|
||||
$name = get_sideview($row3['mb_id'], cut_str($row3['wr_name'], $config['cf_cut_name']), $row3['wr_email'], $row3['wr_homepage']);
|
||||
// 당일인 경우 시간으로 표시함
|
||||
$datetime = substr($row3['wr_datetime'],0,10);
|
||||
$datetime2 = $row3['wr_datetime'];
|
||||
if ($datetime == G4_TIME_YMD)
|
||||
$datetime2 = substr($datetime2,11,5);
|
||||
else
|
||||
$datetime2 = substr($datetime2,5,5);
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_category"><a href="<?=$g4['bbs_path']?>/new.php?gr_id=<?=$row['gr_id']?>"><?=cut_str($row['gr_subject'],10)?></a></td>
|
||||
<td class="td_category"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$row['bo_table']?>"><?=cut_str($row['bo_subject'],20)?></a></td>
|
||||
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$row['bo_table']?>&wr_id=<?=$row2['wr_id']?><?=$comment_link?>"><?=$comment?><?=conv_subject($row2['wr_subject'], 100)?></a></td>
|
||||
<td class="td_mbname"><div><?=$name?></div></td>
|
||||
<td class="td_time"><?=$datetime?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<?
|
||||
$sql_common = " from {$g4['point_table']} ";
|
||||
@ -233,63 +234,63 @@ $result = sql_query($sql);
|
||||
$colspan = 7;
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption>
|
||||
최근 포인트 기록 <?=$new_point_rows?>건
|
||||
<p>
|
||||
전체 포인트 <?=number_format($total_count)?>건 중, 가장 최근 발생한 <?=$new_point_rows?>건의 내역
|
||||
</p>
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">회원아이디</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">별명</th>
|
||||
<th scope="col">일시</th>
|
||||
<th scope="col">포인트 내용</th>
|
||||
<th scope="col">포인트</th>
|
||||
<th scope="col">포인트합</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
$row2['mb_id'] = '';
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
if ($row2['mb_id'] != $row['mb_id'])
|
||||
<section class="tbl_wrap">
|
||||
<h2>최근 포인트 발생내역</h2>
|
||||
<p>전체 <?=number_format($total_count)?> 건 중 <?=$new_point_rows?>건 목록</p>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">회원아이디</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">별명</th>
|
||||
<th scope="col">일시</th>
|
||||
<th scope="col">포인트 내용</th>
|
||||
<th scope="col">포인트</th>
|
||||
<th scope="col">포인트합</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
$row2['mb_id'] = '';
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$sql2 = " select mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
if ($row2['mb_id'] != $row['mb_id'])
|
||||
{
|
||||
$sql2 = " select mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
}
|
||||
|
||||
$mb_nick = get_sideview($row['mb_id'], $row2['mb_nick'], $row2['mb_email'], $row2['mb_homepage']);
|
||||
|
||||
$link1 = $link2 = "";
|
||||
if (!preg_match("/^\@/", $row['po_rel_table']) && $row['po_rel_table'])
|
||||
{
|
||||
$link1 = '<a href="'.$g4['bbs_path'].'/board.php?bo_table='.$row['po_rel_table'].'&wr_id='.$row['po_rel_id'].'" target="_blank">';
|
||||
$link2 = '</a>';
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_mbid"><a href="./point_list.php?sfl=mb_id&stx=<?=$row['mb_id']?>"><?=$row['mb_id']?></a></td>
|
||||
<td class="td_mbname"><?=$row2['mb_name']?></td>
|
||||
<td class="td_name"><div><?=$mb_nick?></div></td>
|
||||
<td class="td_time"><?=$row['po_datetime']?></td>
|
||||
<td><?=$link1.$row['po_content'].$link2?></td>
|
||||
<td class="td_bignum"><?=number_format($row['po_point'])?></td>
|
||||
<td class="td_bignum"><?=number_format($row2['mb_point'])?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
|
||||
$mb_nick = get_sideview($row['mb_id'], $row2['mb_nick'], $row2['mb_email'], $row2['mb_homepage']);
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
$link1 = $link2 = "";
|
||||
if (!preg_match("/^\@/", $row['po_rel_table']) && $row['po_rel_table'])
|
||||
{
|
||||
$link1 = '<a href="'.$g4['bbs_path'].'/board.php?bo_table='.$row['po_rel_table'].'&wr_id='.$row['po_rel_id'].'" target="_blank">';
|
||||
$link2 = '</a>';
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_mbid"><a href="./point_list.php?sfl=mb_id&stx=<?=$row['mb_id']?>"><?=$row['mb_id']?></a></td>
|
||||
<td class="td_mbname"><?=$row2['mb_name']?></td>
|
||||
<td class="td_name"><div><?=$mb_nick?></div></td>
|
||||
<td class="td_time"><?=$row['po_datetime']?></td>
|
||||
<td><?=$link1.$row['po_content'].$link2?></td>
|
||||
<td class="td_bignum"><?=number_format($row['po_point'])?></td>
|
||||
<td class="td_bignum"><?=number_format($row2['mb_point'])?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<?
|
||||
include_once ('./admin.tail.php');
|
||||
|
||||
65
css/adm.css
65
css/adm.css
@ -16,51 +16,55 @@ a {color:#000;text-decoration:none}
|
||||
a:focus,
|
||||
a:hover,
|
||||
a:active {text-decoration:underline}
|
||||
/* 헤딩 */
|
||||
h1 {margin-bottom:20px;color:#333;font-size:1.5em;font-family:"dotum";letter-spacing:-0.1em}
|
||||
|
||||
/* 화면낭독기 사용자용 */
|
||||
.sound_only {display:inline-block;margin:0;padding:0;width:0;height:0;border:0;overflow:hidden}
|
||||
.sound_only {display:inline-block !important;margin:0 !important;padding:0 !important;width:0 !important;height:0 !important;border:0 !important;overflow:hidden !important}
|
||||
/* 본문 바로가기 */
|
||||
#to_content a {display:block;position:absolute;top:0;left:0;margin:5px;height:0;text-decoration:none;overflow:hidden}
|
||||
#to_content a:focus, #to_content a:active {height:auto;padding:5px 10px;border:1px solid #000;background:#eee;color:#333;font-size:0.75em;overflow:auto}
|
||||
#to_content a {z-index:100000;position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden}
|
||||
#to_content a:focus,
|
||||
#to_content a:active {width:100%;height:75px;background:#000;color:#ddd;font-size:2em;text-align:center;text-decoration:none;line-height:3.3em}
|
||||
|
||||
/* 테이블 */
|
||||
.tbl_wrap {margin-bottom:20px;padding:20px;border:1px solid #dfdfdf;background:#fff}
|
||||
table {margin-bottom:10px;width:100%;border-collapse:collapse;border-spacing:0}
|
||||
caption {padding:10px 0 15px;font-weight:bold;text-align:left}
|
||||
thead th {padding:12px 0 8px;border-top:1px solid #e9e9e9}
|
||||
thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
|
||||
tfoot th {border-top:1px solid #666;border-bottom:1px solid #666;background:#484848;color:#fff}
|
||||
tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center}
|
||||
td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all}
|
||||
.bo_sideview td {padding:6px 4px} /* 사이드뷰 사용하는 테이블 셀 패딩값 */
|
||||
/* 내용 없는 테이블 */
|
||||
.empty_table {padding:200px 0;text-align:center}
|
||||
|
||||
/* 레이아웃 */
|
||||
#hd {background:#2c2f34}
|
||||
#logo {padding-top:16px;height:54px;background:url('../adm/img/hd_bg.jpg') repeat-x;text-align:center}
|
||||
#hd {height:105px;background:url('../adm/img/hd_bg.jpg') #2c2f34 repeat-x}
|
||||
#hd h1 {margin:0;padding:0;width:0;height:0;border:0;overflow:hidden}
|
||||
#hd_wrap {position:relative;margin:0 auto;width:1000px}
|
||||
#logo {padding-top:16px;height:54px;text-align:center}
|
||||
|
||||
#home_link {z-index:2;position:absolute;top:70px;right:0;width:100%;height:35px;background:#36393c;zoom:1}
|
||||
#home_link {z-index:2;position:absolute;top:70px;right:0;width:100%;height:35px;zoom:1}
|
||||
#home_link:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#home_link ul {float:right;margin-right:20px;zoom:1}
|
||||
#home_link ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#home_link li {float:left;margin-left:10px}
|
||||
#home_link a {color:#eee;text-decoration:none;line-height:2.95em}
|
||||
|
||||
#current_location {color:#eee;line-height:2.95em}
|
||||
#current_location ul {margin-left:20px}
|
||||
#current_location li {float:left}
|
||||
#gnb {position:absolute;top:-5000px;left:0}
|
||||
|
||||
#current_loc {position:absolute;top:-5000px;left:0}
|
||||
|
||||
/* 중간 레이아웃 */
|
||||
#wrapper {margin:60px 120px 0 20px;min-height:630px;height:auto !important;height:630px}
|
||||
#wrapper {margin:50px auto;width:1000px;min-height:630px;height:auto !important;height:630px;zoom:1}
|
||||
#wrapper:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#qnb {float:right;width:40px}
|
||||
#container {float:left;width:942px}
|
||||
|
||||
/* 하단 레이아웃 */
|
||||
footer {margin:20px 0;padding:5px 20px;border-top:1px solid #d0d6d8}
|
||||
|
||||
/* 헤딩 */
|
||||
h1 {margin-bottom:20px;color:#333;font-size:1.5em;font-family:"dotum";letter-spacing:-0.1em}
|
||||
|
||||
/* GNB */
|
||||
#gnb {display:none;position:absolute;top:110px;right:20px;width:180px}
|
||||
.gnb_1depth ul {display:block;visibility:hidden;height:0}
|
||||
.gnb_1depth_on ul {visibility:visible;height:auto}
|
||||
.gnb_1depth {margin-bottom:5px;border:1px solid #c7cfd5;background:#eef2f3}
|
||||
.gnb_1depth a {display:block;padding-left:15px;height:38px;color:#333;font-weight:bold;text-decoration:none;line-height:2.8em}
|
||||
.gnb_1depth_on a {border-bottom:1px solid #eef1f2}
|
||||
.gnb_2depth {border-bottom:1px solid #eef1f2}
|
||||
.gnb_2depth a {display:block;padding-left:15px;height:30px;border:0;background:#fff;color:#000;font:0.75em normal;text-decoration:none;line-height:2.8em}
|
||||
.gnb_2depth a:focus, .gnb_2depth a:hover {background:#f6f9fa}
|
||||
#ft {margin:20px 0;padding:5px 20px;border-top:1px solid #d0d6d8}
|
||||
#ft p {margin:0 auto;width:1000px}
|
||||
|
||||
/* 버튼 */
|
||||
.btn_confirm {margin-bottom:20px;text-align:center}
|
||||
@ -81,18 +85,13 @@ h1 {margin-bottom:20px;color:#333;font-size:1.5em;font-family:"dotum";letter-spa
|
||||
|
||||
/* 폼 */
|
||||
label {vertical-align:middle}
|
||||
textarea, input, select {border:1px solid #ced9de;background:#f6f9fa;vertical-align:middle}
|
||||
textarea, input {padding:3px}
|
||||
textarea:focus, input:focus {padding:4px;border:0;background:#434f54;color:#fff}
|
||||
textarea, .frm_input {border:1px solid #ced9de;background:#f6f9fa;vertical-align:middle}
|
||||
textarea, .frm_input {padding:3px}
|
||||
textarea:focus, .frm_input:focus {padding:4px;border:0;background:#434f54;color:#fff}
|
||||
textarea {width:90%}
|
||||
select {padding:2px}
|
||||
legend {margin-left:0;padding:7px 10px;border:1px solid #ced9de;background:#f6f9fa}
|
||||
button {padding:3px;border:1px solid #ced9de;background:#f6f9fa;cursor:pointer}
|
||||
fieldset {margin-bottom:20px;padding:13px;border:1px solid #ced9de;background:#fff}
|
||||
fieldset p {color:#6b8088}
|
||||
fieldset span {display:inline-block;margin-right:10px;padding-right:10px;border-right:1px solid #ddd;vertical-align:middle}
|
||||
fieldset button, .fieldset_submit {padding:0 15px;height:23px;border:0;background:#74868b;color:#fff;line-height:2.1em;vertical-align:middle;cursor:pointer}
|
||||
fieldset button:focus, .fieldset_submit:focus {padding:0 15px;height:23px;border:0;background:#555;color:#fff;line-height:2.1em;vertical-align:middle}
|
||||
.readonly {background:#ff3061}
|
||||
|
||||
/* 폼 안내글 */
|
||||
|
||||
Reference in New Issue
Block a user