notice 오류 해결중
This commit is contained in:
@ -36,9 +36,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; // 시작 열을 구함
|
||||
@ -50,6 +50,7 @@ $sql = " select *
|
||||
limit {$from_record}, {$rows} ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$listall = '';
|
||||
if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">처음</a>';
|
||||
|
||||
@ -130,7 +131,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$s_upd = '<a href="./boardgroup_form.php?$qstr&w=u&gr_id='.$row['gr_id'].'">수정</a>';
|
||||
$s_del = '';
|
||||
if ($is_admin == 'super') {
|
||||
//$s_del = '<a href="javascript:del(\'./boardgroup_delete.php?$qstr&gr_id='.$row[gr_id].'\');">삭제</a>';
|
||||
//$s_del = '<a href="javascript:del(\'./boardgroup_delete.php?$qstr&gr_id='.$row['gr_id'].'\');">삭제</a>';
|
||||
$s_del = '<a href="javascript:post_delete(\'boardgroup_delete.php\', \''.$row['gr_id'].'\');">삭제</a>';
|
||||
}
|
||||
?>
|
||||
@ -151,9 +152,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']?>
|
||||
<?}?>
|
||||
</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" title="선택 시 접근회원 사용"></td>
|
||||
<td><a href="./boardgroupmember_list.php?gr_id=<?=$row['gr_id']?>"><?=$row1[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" title="선택 시 접근회원 사용"></td>
|
||||
<td><a href="./boardgroupmember_list.php?gr_id=<?=$row['gr_id']?>"><?=$row1['cnt']?></a></td>
|
||||
<td class="td_mng"><?=$s_upd?> <?=$s_del?></td>
|
||||
</tr>
|
||||
|
||||
@ -171,7 +172,7 @@ if ($i == 0)
|
||||
</div>
|
||||
|
||||
<?
|
||||
$pagelist = get_paging($config[cf_write_pages], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page=');
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page=');
|
||||
?>
|
||||
<div class="pg">
|
||||
<?=$pagelist?>
|
||||
|
||||
@ -233,7 +233,7 @@ if ($board['bo_use_category']) {
|
||||
$ca_name = "";
|
||||
if (isset($write['ca_name']))
|
||||
$ca_name = $write['ca_name'];
|
||||
$category_option = get_category_option($bo_table);
|
||||
$category_option = get_category_option($bo_table, $ca_name);
|
||||
$is_category = true;
|
||||
}
|
||||
|
||||
|
||||
@ -728,15 +728,22 @@ function is_admin($mb_id)
|
||||
|
||||
// 분류 옵션을 얻음
|
||||
// 4.00 에서는 카테고리 테이블을 없애고 보드테이블에 있는 내용으로 대체
|
||||
function get_category_option($bo_table='')
|
||||
function get_category_option($bo_table='', $ca_name='')
|
||||
{
|
||||
global $g4, $board;
|
||||
|
||||
$arr = explode("|", $board['bo_category_list']); // 구분자가 , 로 되어 있음
|
||||
$str = "";
|
||||
for ($i=0; $i<count($arr); $i++)
|
||||
if (trim($arr[$i]))
|
||||
$str .= "<option value='$arr[$i]'>$arr[$i]</option>\n";
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
$category = trim($arr[$i]);
|
||||
if (!$category) continue;
|
||||
|
||||
$str .= "<option value=\"$arr[$i]\"";
|
||||
if ($category == $ca_name) {
|
||||
$str .= ' selected="selected"';
|
||||
}
|
||||
$str .= ">$arr[$i]</option>\n";
|
||||
}
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
@ -94,8 +94,9 @@ if ($option) {
|
||||
<tr>
|
||||
<th scope="row"><label for="ca_name">분류</label></th>
|
||||
<td>
|
||||
<select id="ca_name" name="ca_name" required>
|
||||
<option value="">선택하세요<?=$category_option?>
|
||||
<select id="ca_name" name="ca_name" required="required">
|
||||
<option value="">선택하세요</option>
|
||||
<?=$category_option?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -23,11 +23,16 @@ if ($g4['https_url']) {
|
||||
else {
|
||||
$login_url = $urlencode;
|
||||
}
|
||||
|
||||
if ($g4['https_url'])
|
||||
$action_url = "{$g4['https_url']}/$g4[bbs]/login_check.php";
|
||||
else
|
||||
$action_url = "{$g4['bbs_path']}/login_check.php";
|
||||
?>
|
||||
|
||||
<script src="<?=$g4[path]?>/js/capslock.js"></script>
|
||||
|
||||
<form name="flogin" method="post" onsubmit="return flogin_submit(this);" autocomplete="off">
|
||||
<form name="flogin" method="post" action="<?=$action_url?>" onsubmit="return flogin_submit(this);">
|
||||
<input type="hidden" name="url" value='<?=$login_url?>'>
|
||||
|
||||
<fieldset>
|
||||
@ -58,13 +63,6 @@ document.flogin.mb_id.focus();
|
||||
|
||||
function flogin_submit(f)
|
||||
{
|
||||
<?
|
||||
if ($g4[https_url])
|
||||
echo "f.action = '$g4[https_url]/$g4[bbs]/login_check.php';";
|
||||
else
|
||||
echo "f.action = '$g4[bbs_path]/login_check.php';";
|
||||
?>
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user