관리자 따옴표 수정
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
<?
|
||||
$sub_menu = "200100";
|
||||
include_once("./_common.php");
|
||||
include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], "r");
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
$token = get_token();
|
||||
|
||||
$sql_common = " from $g4[member_table] ";
|
||||
$sql_common = " from {$g4['member_table']} ";
|
||||
|
||||
$sql_search = " where (1) ";
|
||||
if ($stx) {
|
||||
@ -30,8 +30,8 @@ if ($stx) {
|
||||
}
|
||||
|
||||
//if ($is_admin == 'group') $sql_search .= " and mb_level = '$member[mb_level]' ";
|
||||
if ($is_admin != 'super')
|
||||
$sql_search .= " and mb_level <= '$member[mb_level]' ";
|
||||
if ($is_admin != 'super')
|
||||
$sql_search .= " and mb_level <= '{$member['mb_level']}' ";
|
||||
|
||||
if (!$sst) {
|
||||
$sst = "mb_datetime";
|
||||
@ -45,9 +45,9 @@ $sql = " select count(*) as cnt
|
||||
$sql_search
|
||||
$sql_order ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row[cnt];
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
$rows = $config[cf_page_rows];
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
@ -59,7 +59,7 @@ $sql = " select count(*) as cnt
|
||||
and mb_leave_date <> ''
|
||||
$sql_order ";
|
||||
$row = sql_fetch($sql);
|
||||
$leave_count = $row[cnt];
|
||||
$leave_count = $row['cnt'];
|
||||
|
||||
// 차단회원수
|
||||
$sql = " select count(*) as cnt
|
||||
@ -68,12 +68,12 @@ $sql = " select count(*) as cnt
|
||||
and mb_intercept_date <> ''
|
||||
$sql_order ";
|
||||
$row = sql_fetch($sql);
|
||||
$intercept_count = $row[cnt];
|
||||
$intercept_count = $row['cnt'];
|
||||
|
||||
$listall = "<a href='$_SERVER[PHP_SELF]' class=tt>처음</a>";
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'" class=tt>처음</a>';
|
||||
|
||||
$g4[title] = "회원관리";
|
||||
include_once("./admin.head.php");
|
||||
$g4['title'] = '회원관리';
|
||||
include_once('./admin.head.php');
|
||||
|
||||
$sql = " select *
|
||||
$sql_common
|
||||
@ -85,18 +85,18 @@ $result = sql_query($sql);
|
||||
$colspan = 15;
|
||||
?>
|
||||
|
||||
<script type="text/javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
|
||||
<script type="text/javascript" src="<?=$g4['path']?>/js/sideview.js"></script>
|
||||
<script type="text/javascript">
|
||||
var list_update_php = "member_list_update.php";
|
||||
var list_delete_php = "member_list_delete.php";
|
||||
var list_update_php = 'member_list_update.php';
|
||||
var list_delete_php = 'member_list_delete.php';
|
||||
</script>
|
||||
|
||||
<table width=100%>
|
||||
<form name=fsearch method=get>
|
||||
<tr>
|
||||
<td width=50% align=left><?=$listall?>
|
||||
(총회원수 : <?=number_format($total_count)?>,
|
||||
<a href='?sst=mb_intercept_date&sod=desc&sfl=<?=$sfl?>&stx=<?=$stx?>' title='차단된 회원부터 출력'><font color=orange>차단 : <?=number_format($intercept_count)?></font></a>,
|
||||
<td width=50% align=left><?=$listall?>
|
||||
(총회원수 : <?=number_format($total_count)?>,
|
||||
<a href='?sst=mb_intercept_date&sod=desc&sfl=<?=$sfl?>&stx=<?=$stx?>' title='차단된 회원부터 출력'><font color=orange>차단 : <?=number_format($intercept_count)?></font></a>,
|
||||
<a href='?sst=mb_leave_date&sod=desc&sfl=<?=$sfl?>&stx=<?=$stx?>' title='탈퇴한 회원부터 출력'><font color=crimson>탈퇴 : <?=number_format($leave_count)?></font></a>)
|
||||
</td>
|
||||
<td width=50% align=right>
|
||||
@ -114,7 +114,7 @@ var list_delete_php = "member_list_delete.php";
|
||||
<option value='mb_recommend'>추천인</option>
|
||||
</select>
|
||||
<input type=text name=stx class=ed required itemname='검색어' value='<? echo $stx ?>'>
|
||||
<input type=image src='<?=$g4[admin_path]?>/img/btn_search.gif' align=absmiddle></td>
|
||||
<input type=image src='<?=$g4['admin_path']?>/img/btn_search.gif' align=absmiddle></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
@ -156,59 +156,59 @@ var list_delete_php = "member_list_delete.php";
|
||||
<td><?=subject_sort_link('mb_email_certify', '', 'desc')?>인증</a></td>
|
||||
<td><?=subject_sort_link('mb_intercept_date', '', 'desc')?>차단</a></td>
|
||||
<td title='접근가능한 그룹수'>그룹</td>
|
||||
<td><a href="./member_form.php"><img src='<?=$g4[admin_path]?>/img/icon_insert.gif' border=0 title='추가'></a></td>
|
||||
<td><a href="./member_form.php"><img src='<?=$g4['admin_path']?>/img/icon_insert.gif' border=0 title='추가'></a></td>
|
||||
</tr>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
<?
|
||||
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]' ";
|
||||
$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>";
|
||||
$group = '';
|
||||
if ($row2['cnt'])
|
||||
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
|
||||
|
||||
if ($is_admin == 'group')
|
||||
if ($is_admin == 'group')
|
||||
{
|
||||
$s_mod = "";
|
||||
$s_del = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
$s_mod = "<a href=\"./member_form.php?$qstr&w=u&mb_id=$row[mb_id]\"><img src='img/icon_modify.gif' border=0 title='수정'></a>";
|
||||
//$s_del = "<a href=\"javascript:del('./member_delete.php?$qstr&w=d&mb_id=$row[mb_id]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
|
||||
$s_del = "<a href=\"javascript:post_delete('member_delete.php', '$row[mb_id]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
|
||||
$s_mod = '';
|
||||
$s_del = '';
|
||||
}
|
||||
$s_grp = "<a href='./boardgroupmember_form.php?mb_id=$row[mb_id]'><img src='img/icon_group.gif' border=0 title='그룹'></a>";
|
||||
else
|
||||
{
|
||||
$s_mod = '<a href="./member_form.php?'.$qstr.'&w=u&mb_id='.$row['mb_id'].'"><img src="img/icon_modify.gif" border=0 title="수정"></a>';
|
||||
//$s_del = "<a href=\"javascript:del('./member_delete.php?$qstr&w=d&mb_id=$row[mb_id]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
|
||||
$s_del = '<a href="javascript:post_delete(\"member_delete.php\", \"'.$row['mb_id'].'\");"><img src="img/icon_delete.gif" border=0 title="삭제"></a>';
|
||||
}
|
||||
$s_grp = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'"><img src="img/icon_group.gif" border=0 title="그룹"></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]);
|
||||
$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_nick = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
|
||||
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
|
||||
|
||||
$mb_id = $row[mb_id];
|
||||
if ($row[mb_leave_date])
|
||||
$mb_id = "<font color=crimson>$mb_id</font>";
|
||||
else if ($row[mb_intercept_date])
|
||||
$mb_id = "<font color=orange>$mb_id</font>";
|
||||
$mb_id = $row['mb_id'];
|
||||
if ($row['mb_leave_date'])
|
||||
$mb_id = '<font color=crimson>'.$mb_id.'</font>';
|
||||
else if ($row['mb_intercept_date'])
|
||||
$mb_id = '<font color=orange>'.$mb_id.'</font>';
|
||||
|
||||
$list = $i%2;
|
||||
echo "
|
||||
<input type=hidden name=mb_id[$i] value='$row[mb_id]'>
|
||||
<input type=hidden name=mb_id[$i] value='{$row['mb_id']}'>
|
||||
<tr class='list$list col1 ht center'>
|
||||
<td><input type=checkbox name=chk[] value='$i'></td>
|
||||
<td title='$row[mb_id]'><nobr style='display:block; overflow:hidden; width:90;'> $mb_id</nobr></td>
|
||||
<td><nobr style='display:block; overflow:hidden; width:90px;'>$row[mb_name]</nobr></td>
|
||||
<td title='{$row['mb_id']}'><nobr style='display:block; overflow:hidden; width:90;'> $mb_id</nobr></td>
|
||||
<td><nobr style='display:block; overflow:hidden; width:90px;'>{$row['mb_name']}</nobr></td>
|
||||
<td><nobr style='display:block; overflow:hidden; width:90px;'><u>$mb_nick</u></nobr></td>
|
||||
<td>".get_member_level_select("mb_level[$i]", 1, $member[mb_level], $row[mb_level])."</td>
|
||||
<td align=right><a href='point_list.php?sfl=mb_id&stx=$row[mb_id]' class=tt>".number_format($row[mb_point])."</a> </td>
|
||||
<td>".substr($row[mb_today_login],2,8)."</td>
|
||||
<td>".($row[mb_mailling]?'√':' ')."</td>
|
||||
<td>".($row[mb_open]?'√':' ')."</td>
|
||||
<!-- <td title='$row[mb_leave_date]'>".($row[mb_leave_date]?'√':' ')."</td> -->
|
||||
<td title='$row[mb_email_certify]'>".(preg_match('/[1-9]/', $row[mb_email_certify])?'√':' ')."</td>
|
||||
<td title='$row[mb_intercept_date]'><input type=checkbox name=mb_intercept_date[$i] ".($row[mb_intercept_date]?'checked':'')." value='$intercept_date'></td>
|
||||
<td>$group</td>
|
||||
<td>".get_member_level_select("mb_level[$i]", 1, $member['mb_level'], $row['mb_level'])."</td>
|
||||
<td align=right><a href='point_list.php?sfl=mb_id&stx={$row['mb_id']}' class=tt>".number_format($row['mb_point'])."</a> </td>
|
||||
<td>".substr($row['mb_today_login'],2,8)."</td>
|
||||
<td>".($row['mb_mailling']?'√':' ')."</td>
|
||||
<td>".($row['mb_open']?'√':' ')."</td>
|
||||
<!-- <td title='{$row['mb_leave_date']}'>".($row['mb_leave_date']?'√':' ')."</td> -->
|
||||
<td title='{$row['mb_email_certify']}'>".(preg_match('/[1-9]/', $row['mb_email_certify'])?'√':' ')."</td>
|
||||
<td title='{$row['mb_intercept_date']}'><input type=checkbox name=mb_intercept_date[$i] ".($row['mb_intercept_date']?'checked':'')." value='$intercept_date'></td>
|
||||
<td>$group</td>
|
||||
<td>$s_mod $s_del $s_grp</td>
|
||||
</tr>";
|
||||
}
|
||||
@ -219,7 +219,7 @@ if ($i == 0)
|
||||
echo "<tr><td colspan='$colspan' class='line2'></td></tr>";
|
||||
echo "</table>";
|
||||
|
||||
$pagelist = get_paging($config[cf_write_pages], $page, $total_page, "?$qstr&page=");
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, '?'.$qstr.'&page=');
|
||||
echo "<table width=100% cellpadding=3 cellspacing=1>";
|
||||
echo "<tr><td width=50%>";
|
||||
echo "<input type=button class='btn1' value='선택수정' onclick=\"btn_check(this.form, 'update')\"> ";
|
||||
@ -259,5 +259,5 @@ function post_delete(action_url, val)
|
||||
</form>
|
||||
|
||||
<?
|
||||
include_once ("./admin.tail.php");
|
||||
include_once ('./admin.tail.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user