cnt, cf_page_rows 땀표 정리 및 #47의 1에 따른 처리
This commit is contained in:
@ -40,7 +40,7 @@ function member_delete($mb_id)
|
|||||||
$mb = sql_fetch($sql);
|
$mb = sql_fetch($sql);
|
||||||
if ($mb['mb_recommend']) {
|
if ($mb['mb_recommend']) {
|
||||||
$row = sql_fetch(" select count(*) as cnt from {$g4['member_table']} where mb_id = '".addslashes($mb['mb_recommend'])."' ");
|
$row = sql_fetch(" select count(*) as cnt from {$g4['member_table']} where mb_id = '".addslashes($mb['mb_recommend'])."' ");
|
||||||
if ($row['cnt'])
|
if ($row[cnt])
|
||||||
insert_point($mb['mb_recommend'], $config['cf_recommend_point'] * (-1), $mb_id.'님의 회원자료 삭제로 인한 추천인 포인트 반환', "@member", $mb['mb_recommend'], $mb_id.' 추천인 삭제');
|
insert_point($mb['mb_recommend'], $config['cf_recommend_point'] * (-1), $mb_id.'님의 회원자료 삭제로 인한 추천인 포인트 반환', "@member", $mb['mb_recommend'], $mb_id.' 추천인 삭제');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -31,9 +31,9 @@ $sql = " select count(*) as cnt
|
|||||||
{$sql_search}
|
{$sql_search}
|
||||||
{$sql_order} ";
|
{$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$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); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|||||||
@ -13,7 +13,7 @@ if (!preg_match('/[A-Za-z0-9_]{1,20}/', $target_table))
|
|||||||
}
|
}
|
||||||
|
|
||||||
$row = sql_fetch(" select count(*) as cnt from {$g4['board_table']} where bo_table = $target_table ");
|
$row = sql_fetch(" select count(*) as cnt from {$g4['board_table']} where bo_table = $target_table ");
|
||||||
if ($row['cnt'])
|
if ($row[cnt])
|
||||||
alert($target_table.'은(는) 이미 존재하는 게시판 TABLE 입니다.\\n\\n복사할 TABLE로 사용할 수 없습니다.');
|
alert($target_table.'은(는) 이미 존재하는 게시판 TABLE 입니다.\\n\\n복사할 TABLE로 사용할 수 없습니다.');
|
||||||
|
|
||||||
check_token();
|
check_token();
|
||||||
|
|||||||
@ -13,7 +13,7 @@ function b_draw($pos, $color='red') {
|
|||||||
|
|
||||||
$sql = " select count(*) as cnt from {$g4['group_table']} ";
|
$sql = " select count(*) as cnt from {$g4['group_table']} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if (!$row['cnt'])
|
if (!$row[cnt])
|
||||||
alert('게시판그룹이 한개 이상 생성되어야 합니다.', './boardgroup_form.php');
|
alert('게시판그룹이 한개 이상 생성되어야 합니다.', './boardgroup_form.php');
|
||||||
|
|
||||||
$html_title = '게시판';
|
$html_title = '게시판';
|
||||||
|
|||||||
@ -190,12 +190,12 @@ if ($w == '') {
|
|||||||
// 게시판의 글 수
|
// 게시판의 글 수
|
||||||
$sql = " select count(*) as cnt from {$g4['write_prefix']}{$bo_table} where wr_is_comment = 0 ";
|
$sql = " select count(*) as cnt from {$g4['write_prefix']}{$bo_table} where wr_is_comment = 0 ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$bo_count_write = $row['cnt'];
|
$bo_count_write = $row[cnt];
|
||||||
|
|
||||||
// 게시판의 코멘트 수
|
// 게시판의 코멘트 수
|
||||||
$sql = " select count(*) as cnt from {$g4['write_prefix']}{$bo_table} where wr_is_comment = 1 ";
|
$sql = " select count(*) as cnt from {$g4['write_prefix']}{$bo_table} where wr_is_comment = 1 ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$bo_count_comment = $row['cnt'];
|
$bo_count_comment = $row[cnt];
|
||||||
|
|
||||||
// 글수 조정
|
// 글수 조정
|
||||||
if ($proc_count) {
|
if ($proc_count) {
|
||||||
@ -207,7 +207,7 @@ if ($w == '') {
|
|||||||
$sql2 = " select count(*) as cnt from {$g4['write_prefix']}$bo_table where wr_parent = '{$row['wr_id']}' and wr_is_comment = 1 ";
|
$sql2 = " select count(*) as cnt from {$g4['write_prefix']}$bo_table where wr_parent = '{$row['wr_id']}' and wr_is_comment = 1 ";
|
||||||
$row2 = sql_fetch($sql2);
|
$row2 = sql_fetch($sql2);
|
||||||
|
|
||||||
sql_query(" update {$g4['write_prefix']}{$bo_table} set wr_comment = '{$row2['cnt']}' where wr_id = '{$row['wr_id']}' ");
|
sql_query(" update {$g4['write_prefix']}{$bo_table} set wr_comment = '{$row2[cnt]}' where wr_id = '{$row['wr_id']}' ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -46,9 +46,9 @@ $sql = " select count(*) as cnt
|
|||||||
{$sql_search}
|
{$sql_search}
|
||||||
{$sql_order} ";
|
{$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$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); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|||||||
@ -20,7 +20,7 @@ for ($i=0; $i<count($chk); $i++)
|
|||||||
and a.gr_id = b.gr_id
|
and a.gr_id = b.gr_id
|
||||||
and b.gr_admin = '{$member['mb_id']}' ";
|
and b.gr_admin = '{$member['mb_id']}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if (!$row['cnt'])
|
if (!$row[cnt])
|
||||||
alert('최고관리자가 아닌 경우 다른 관리자의 게시판('.$board_table[$k].')은 수정이 불가합니다.');
|
alert('최고관리자가 아닌 경우 다른 관리자의 게시판('.$board_table[$k].')은 수정이 불가합니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@ auth_check($auth[$sub_menu], 'd');
|
|||||||
|
|
||||||
$gr_id = mysql_real_escape_string(trim($_POST['gr_id']));
|
$gr_id = mysql_real_escape_string(trim($_POST['gr_id']));
|
||||||
$row = sql_fetch(" select count(*) as cnt from {$g4['board_table']} where gr_id = '{$gr_id}' ");
|
$row = sql_fetch(" select count(*) as cnt from {$g4['board_table']} where gr_id = '{$gr_id}' ");
|
||||||
if ($row['cnt'])
|
if ($row[cnt])
|
||||||
alert('이 그룹에 속한 게시판이 존재하여 게시판 그룹을 삭제할 수 없습니다.'.PHP_EOL.PHP_EOL.'이 그룹에 속한 게시판을 먼저 삭제하여 주십시오.', './board_list.php?sfl=gr_id&stx='.$gr_id);
|
alert('이 그룹에 속한 게시판이 존재하여 게시판 그룹을 삭제할 수 없습니다.'.PHP_EOL.PHP_EOL.'이 그룹에 속한 게시판을 먼저 삭제하여 주십시오.', './board_list.php?sfl=gr_id&stx='.$gr_id);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -77,7 +77,7 @@ include_once('./admin.head.php');
|
|||||||
// 접근회원수
|
// 접근회원수
|
||||||
$sql1 = " select count(*) as cnt from {$g4['group_member_table']} where gr_id = '{$gr_id}' ";
|
$sql1 = " select count(*) as cnt from {$g4['group_member_table']} where gr_id = '{$gr_id}' ";
|
||||||
$row1 = sql_fetch($sql1);
|
$row1 = sql_fetch($sql1);
|
||||||
echo '<a href="./boardgroupmember_list.php?gr_id='.$gr_id.'">'.$row1['cnt'].'</a>';
|
echo '<a href="./boardgroupmember_list.php?gr_id='.$gr_id.'">'.$row1[cnt].'</a>';
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -44,7 +44,7 @@ if ($w == '')
|
|||||||
{
|
{
|
||||||
$sql = " select count(*) as cnt from {$g4['group_table']} where gr_id = '{$_POST['gr_id']}' ";
|
$sql = " select count(*) as cnt from {$g4['group_table']} where gr_id = '{$_POST['gr_id']}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if ($row['cnt'])
|
if ($row[cnt])
|
||||||
alert('이미 존재하는 그룹 ID 입니다.');
|
alert('이미 존재하는 그룹 ID 입니다.');
|
||||||
|
|
||||||
$sql = " insert into {$g4['group_table']}
|
$sql = " insert into {$g4['group_table']}
|
||||||
|
|||||||
@ -36,9 +36,9 @@ $sql = " select count(*) as cnt
|
|||||||
{$sql_search}
|
{$sql_search}
|
||||||
{$sql_order} ";
|
{$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$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); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
@ -144,9 +144,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
|||||||
<input type="hidden" name="gr_admin[<?=$i?>]" value="<?=$row['gr_admin']?>"><td><?=$row['gr_admin']?>
|
<input type="hidden" name="gr_admin[<?=$i?>]" value="<?=$row['gr_admin']?>"><td><?=$row['gr_admin']?>
|
||||||
<?}?>
|
<?}?>
|
||||||
</td>
|
</td>
|
||||||
<td><a href="./board_list.php?sfl=a.gr_id&stx=<?=$row['gr_id']?>"><?=$row2['cnt']?></a></td>
|
<td><a href="./board_list.php?sfl=a.gr_id&stx=<?=$row['gr_id']?>"><?=$row2[cnt]?></a></td>
|
||||||
<td><input type="checkbox" id="gr_use_access" name="gr_use_access[<?=$i?>]" <?=$row['gr_use_access']?'checked':''?> value="1"></td>
|
<td><input type="checkbox" id="gr_use_access" name="gr_use_access[<?=$i?>]" <?=$row['gr_use_access']?'checked':''?> value="1"></td>
|
||||||
<td><a href="./boardgroupmember_list.php?gr_id=<?=$row['gr_id']?>"><?=$row1['cnt']?></a></td>
|
<td><a href="./boardgroupmember_list.php?gr_id=<?=$row['gr_id']?>"><?=$row1[cnt]?></a></td>
|
||||||
<td><?=$s_upd?> <?=$s_del?></td>
|
<td><?=$s_upd?> <?=$s_del?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|||||||
@ -35,9 +35,9 @@ $sql = " select count(*) as cnt
|
|||||||
{$sql_search}
|
{$sql_search}
|
||||||
{$sql_order} ";
|
{$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$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); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
@ -90,8 +90,8 @@ 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);
|
$row2 = sql_fetch($sql2);
|
||||||
$group = "";
|
$group = "";
|
||||||
if ($row2['cnt'])
|
if ($row2[cnt])
|
||||||
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
|
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2[cnt].'</a>';
|
||||||
|
|
||||||
$s_del = '<a href="javascript:post_delete(\'boardgroupmember_update.php\', \''.$row['gm_id'].'\');">삭제</a>';
|
$s_del = '<a href="javascript:post_delete(\'boardgroupmember_update.php\', \''.$row['gm_id'].'\');">삭제</a>';
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ if ($w == '')
|
|||||||
where gr_id = '{$gr_id}'
|
where gr_id = '{$gr_id}'
|
||||||
and mb_id = '{$mb_id}' ";
|
and mb_id = '{$mb_id}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if ($row['cnt']) {
|
if ($row[cnt]) {
|
||||||
alert('이미 등록되어 있는 자료입니다.');
|
alert('이미 등록되어 있는 자료입니다.');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -99,7 +99,7 @@ include_once ('./admin.head.php');
|
|||||||
<th scope="row"><label for="cf_page_rows">한페이지당 라인수</label></th>
|
<th scope="row"><label for="cf_page_rows">한페이지당 라인수</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?=help('목록(리스트) 한페이지당 라인수')?>
|
<?=help('목록(리스트) 한페이지당 라인수')?>
|
||||||
<input type="text" id="cf_page_rows" name="cf_page_rows" value="<?=$config['cf_page_rows']?>"> 라인
|
<input type="text" id="cf_page_rows" name="cf_page_rows" value="<?=$config[cf_page_rows]?>"> 라인
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@ -90,7 +90,7 @@ $sql = " update {$g4['config_table']}
|
|||||||
cf_flash_extension = '{$_POST['cf_flash_extension']}',
|
cf_flash_extension = '{$_POST['cf_flash_extension']}',
|
||||||
cf_movie_extension = '{$_POST['cf_movie_extension']}',
|
cf_movie_extension = '{$_POST['cf_movie_extension']}',
|
||||||
cf_formmail_is_member = '{$_POST['cf_formmail_is_member']}',
|
cf_formmail_is_member = '{$_POST['cf_formmail_is_member']}',
|
||||||
cf_page_rows = '{$_POST['cf_page_rows']}',
|
cf_page_rows = '{$_POST[cf_page_rows]}',
|
||||||
cf_stipulation = '{$_POST['cf_stipulation']}',
|
cf_stipulation = '{$_POST['cf_stipulation']}',
|
||||||
cf_privacy = '{$_POST['cf_privacy']}',
|
cf_privacy = '{$_POST['cf_privacy']}',
|
||||||
cf_open_modify = '{$_POST['cf_open_modify']}',
|
cf_open_modify = '{$_POST['cf_open_modify']}',
|
||||||
|
|||||||
@ -27,7 +27,7 @@ $sql = " select count(*) as cnt
|
|||||||
{$sql_search}
|
{$sql_search}
|
||||||
{$sql_order} ";
|
{$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$total_count = $row['cnt'];
|
$total_count = $row[cnt];
|
||||||
|
|
||||||
// 탈퇴회원수
|
// 탈퇴회원수
|
||||||
$sql = " select count(*) as cnt
|
$sql = " select count(*) as cnt
|
||||||
@ -36,7 +36,7 @@ $sql = " select count(*) as cnt
|
|||||||
and mb_leave_date <> ''
|
and mb_leave_date <> ''
|
||||||
{$sql_order} ";
|
{$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$leave_count = $row['cnt'];
|
$leave_count = $row[cnt];
|
||||||
|
|
||||||
// 차단회원수
|
// 차단회원수
|
||||||
$sql = " select count(*) as cnt
|
$sql = " select count(*) as cnt
|
||||||
@ -45,7 +45,7 @@ $sql = " select count(*) as cnt
|
|||||||
and mb_intercept_date <> ''
|
and mb_intercept_date <> ''
|
||||||
{$sql_order} ";
|
{$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$intercept_count = $row['cnt'];
|
$intercept_count = $row[cnt];
|
||||||
|
|
||||||
$sql = " select *
|
$sql = " select *
|
||||||
{$sql_common}
|
{$sql_common}
|
||||||
@ -90,8 +90,8 @@ 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);
|
$row2 = sql_fetch($sql2);
|
||||||
$group = "";
|
$group = "";
|
||||||
if ($row2['cnt'])
|
if ($row2[cnt])
|
||||||
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
|
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2[cnt].'</a>';
|
||||||
|
|
||||||
if ($is_admin == 'group')
|
if ($is_admin == 'group')
|
||||||
{
|
{
|
||||||
@ -155,7 +155,7 @@ $sql_order = " order by a.bn_id desc ";
|
|||||||
|
|
||||||
$sql = " select count(*) as cnt {$sql_common} ";
|
$sql = " select count(*) as cnt {$sql_common} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$total_count = $row['cnt'];
|
$total_count = $row[cnt];
|
||||||
|
|
||||||
$colspan = 5;
|
$colspan = 5;
|
||||||
?>
|
?>
|
||||||
@ -246,7 +246,7 @@ $sql = " select count(*) as cnt
|
|||||||
{$sql_search}
|
{$sql_search}
|
||||||
{$sql_order} ";
|
{$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$total_count = $row['cnt'];
|
$total_count = $row[cnt];
|
||||||
|
|
||||||
$sql = " select *
|
$sql = " select *
|
||||||
{$sql_common}
|
{$sql_common}
|
||||||
|
|||||||
@ -9,7 +9,7 @@ $sql_common = " from {$g4['mail_table']} ";
|
|||||||
// 테이블의 전체 레코드수만 얻음
|
// 테이블의 전체 레코드수만 얻음
|
||||||
$sql = " select COUNT(*) as cnt $sql_common ";
|
$sql = " select COUNT(*) as cnt $sql_common ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$total_count = $row['cnt'];
|
$total_count = $row[cnt];
|
||||||
|
|
||||||
$page = 1;
|
$page = 1;
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
|||||||
$s_del = '<a href="javascript:post_delete(\'mail_update.php\', '.$row['ma_id'].');">삭제</a>';
|
$s_del = '<a href="javascript:post_delete(\'mail_update.php\', '.$row['ma_id'].');">삭제</a>';
|
||||||
$s_vie = '<a href="./mail_preview.php?ma_id='.$row['ma_id'].'" target="_blank">미리보기</a>';
|
$s_vie = '<a href="./mail_preview.php?ma_id='.$row['ma_id'].'" target="_blank">미리보기</a>';
|
||||||
|
|
||||||
$num = number_format($total_count - ($page - 1) * $config['cf_page_rows'] - $i);
|
$num = number_format($total_count - ($page - 1) * $config[cf_page_rows] - $i);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@ -15,12 +15,12 @@ if (!$ma['ma_id'])
|
|||||||
// 전체회원수
|
// 전체회원수
|
||||||
$sql = " select COUNT(*) as cnt from {$g4['member_table']} ";
|
$sql = " select COUNT(*) as cnt from {$g4['member_table']} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$tot_cnt = $row['cnt'];
|
$tot_cnt = $row[cnt];
|
||||||
|
|
||||||
// 탈퇴대기회원수
|
// 탈퇴대기회원수
|
||||||
$sql = " select COUNT(*) as cnt from {$g4['member_table']} where mb_leave_date <> '' ";
|
$sql = " select COUNT(*) as cnt from {$g4['member_table']} where mb_leave_date <> '' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$finish_cnt = $row['cnt'];
|
$finish_cnt = $row[cnt];
|
||||||
|
|
||||||
$last_option = explode('||', $ma['ma_last_option']);
|
$last_option = explode('||', $ma['ma_last_option']);
|
||||||
for ($i=0; $i<count($last_option); $i++) {
|
for ($i=0; $i<count($last_option); $i++) {
|
||||||
|
|||||||
@ -62,7 +62,7 @@ $sql_where .= " and mb_leave_date = '' and mb_intercept_date = '' ";
|
|||||||
|
|
||||||
$sql = " select COUNT(*) as cnt {$sql_common} {$sql_where} ";
|
$sql = " select COUNT(*) as cnt {$sql_common} {$sql_where} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$cnt = $row['cnt'];
|
$cnt = $row[cnt];
|
||||||
if ($cnt == 0)
|
if ($cnt == 0)
|
||||||
alert('선택하신 내용으로는 해당되는 회원자료가 없습니다.');
|
alert('선택하신 내용으로는 해당되는 회원자료가 없습니다.');
|
||||||
|
|
||||||
|
|||||||
@ -44,9 +44,9 @@ $sql = " select count(*) as cnt
|
|||||||
{$sql_search}
|
{$sql_search}
|
||||||
{$sql_order} ";
|
{$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$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); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
@ -58,7 +58,7 @@ $sql = " select count(*) as cnt
|
|||||||
and mb_leave_date <> ''
|
and mb_leave_date <> ''
|
||||||
{$sql_order} ";
|
{$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$leave_count = $row['cnt'];
|
$leave_count = $row[cnt];
|
||||||
|
|
||||||
// 차단회원수
|
// 차단회원수
|
||||||
$sql = " select count(*) as cnt
|
$sql = " select count(*) as cnt
|
||||||
@ -67,7 +67,7 @@ $sql = " select count(*) as cnt
|
|||||||
and mb_intercept_date <> ''
|
and mb_intercept_date <> ''
|
||||||
{$sql_order} ";
|
{$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$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>';
|
||||||
|
|
||||||
@ -158,8 +158,8 @@ 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);
|
$row2 = sql_fetch($sql2);
|
||||||
$group = '';
|
$group = '';
|
||||||
if ($row2['cnt'])
|
if ($row2[cnt])
|
||||||
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
|
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2[cnt].'</a>';
|
||||||
|
|
||||||
if ($is_admin == 'group')
|
if ($is_admin == 'group')
|
||||||
{
|
{
|
||||||
@ -214,6 +214,7 @@ if ($i == 0)
|
|||||||
<div class="btn_confirm">
|
<div class="btn_confirm">
|
||||||
<input type="button" value="선택수정" onclick="btn_check(this.form, 'update')">
|
<input type="button" value="선택수정" onclick="btn_check(this.form, 'update')">
|
||||||
<input type="button" value="선택삭제" onclick="btn_check(this.form, 'delete')">
|
<input type="button" value="선택삭제" onclick="btn_check(this.form, 'delete')">
|
||||||
|
<? if ($is_admin == 'super') {?><a href="./member_form.php">회원추가</a><?}?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
|
|||||||
@ -33,7 +33,7 @@ $sql = " select count(*) as cnt
|
|||||||
{$sql_search}
|
{$sql_search}
|
||||||
{$sql_order} ";
|
{$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$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); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
|
|||||||
@ -67,7 +67,7 @@ $colspan = 6;
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<a href="./poll_form.php">투표 추가</a>
|
<a href="./poll_form.php" id="poll_add">투표 추가</a>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<caption>투표목록</caption>
|
<caption>투표목록</caption>
|
||||||
|
|||||||
@ -46,7 +46,7 @@ $sql = " select count(*) as cnt
|
|||||||
$row = sql_fetch($sql);
|
$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); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page == '') { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
if ($page == '') { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|||||||
@ -81,7 +81,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><?=$word?></td>
|
<td><?=$word?></td>
|
||||||
<td><?=$row['cnt']?></td>
|
<td><?=$row[cnt]?></td>
|
||||||
<td><?=$rank?></td>
|
<td><?=$rank?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user