관리자 따옴표 수정

This commit is contained in:
chicpro
2012-11-02 17:18:27 +09:00
parent f3857b4e6c
commit eae06035b0
23 changed files with 831 additions and 833 deletions

View File

@ -1,27 +1,27 @@
<?
$sub_menu = "300200";
include_once("./_common.php");
include_once('./_common.php');
auth_check($auth[$sub_menu], "w");
auth_check($auth[$sub_menu], 'w');
$token = get_token();
$mb = get_member($mb_id);
if (!$mb[mb_id])
alert("존재하지 않는 회원입니다.");
if (!$mb['mb_id'])
alert('존재하지 않는 회원입니다.');
$g4[title] = "접근가능그룹선택";
include_once("./admin.head.php");
$g4['title'] = '접근가능그룹선택';
include_once('./admin.head.php');
$colspan = 4;
?>
<table width=100% cellpadding=3 cellspacing=1>
<tr>
<td>* <? echo "<a href='./member_form.php?w=u&mb_id=$mb[mb_id]'><b>$mb[mb_id]</b> ($mb[mb_name] / $mb[mb_nick])</a> 님이 접근가능한 그룹 목록"; ?></td>
<td>* <? echo "<a href='./member_form.php?w=u&amp;mb_id={$mb['mb_id']}'><b>{$mb['mb_id']}</b> ({$mb['mb_name']} / {$mb['mb_nick']})</a> 님이 접근가능한 그룹 목록"; ?></td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<colgroup width=120>
<colgroup width=''>
@ -36,25 +36,25 @@ $colspan = 4;
</tr>
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
<?
$sql = " select *
from $g4[group_member_table] a,
$g4[group_table] b
where a.mb_id = '$mb[mb_id]'
$sql = " select *
from {$g4['group_member_table']} a,
{$g4['group_table']} b
where a.mb_id = '{$mb['mb_id']}'
and a.gr_id = b.gr_id ";
if ($is_admin != 'super')
$sql .= " and b.gr_admin = '$member[mb_id]' ";
if ($is_admin != 'super')
$sql .= " and b.gr_admin = '{$member['mb_id']}' ";
$sql .= " order by a.gr_id desc ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
//$s_del = "<a href=\"javascript:del('./boardgroupmember_update.php?w=d&gm_id=$row[gm_id]')\"><img src='img/icon_delete.gif' border=0></a>";
$s_del = "<a href=\"javascript:post_delete('boardgroupmember_update.php', '$row[gm_id]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$s_del = "<a href=\"javascript:post_delete('boardgroupmember_update.php', '{$row['gm_id']}');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$list = $i%2;
echo "
<tr class='list$list col1 ht center'>
<td><a href='$g4[bbs_path]/group.php?gr_id=$row[gr_id]'><b>$row[gr_id]</b></a></td>
<td><b>$row[gr_subject]</b></td>
<td>$row[gm_datetime]</td>
<td><a href='{$g4['bbs_path']}/group.php?gr_id={$row['gr_id']}'><b>{$row['gr_id']}</b></a></td>
<td><b>{$row['gr_subject']}</b></td>
<td>{$row['gm_datetime']}</td>
<td>$s_del</td>
</tr>";
}
@ -68,7 +68,7 @@ if ($i == 0) {
<p>
<form name=fboardgroupmember_form method=post action='./boardgroupmember_update.php' onsubmit="return boardgroupmember_form_check(this)">
<input type=hidden name=mb_id value='<?=$mb[mb_id]?>'>
<input type=hidden name=mb_id value='<?=$mb['mb_id']?>'>
<input type=hidden name=token value='<?=$token?>'>
<table width=100% align=center cellpadding=3 cellspacing=1 class=tablebg>
<colgroup width=20% class='col1 pad1 bold right'>
@ -80,16 +80,16 @@ if ($i == 0) {
<option value=''>접근가능 그룹을 선택하세요.
<option value=''>--------------------------
<?
$sql = " select *
from $g4[group_table]
$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]' ";
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]";
echo "<option value='{$row['gr_id']}'>{$row['gr_subject']}";
}
?>
</select>
@ -101,7 +101,7 @@ if ($i == 0) {
</form>
<script type="text/javascript">
function boardgroupmember_form_check(f)
function boardgroupmember_form_check(f)
{
if (f.gr_id.value == '') {
alert('접근가능 그룹을 선택하세요.');
@ -138,5 +138,5 @@ function post_delete(action_url, val)
</form>
<?
include_once("./admin.tail.php");
include_once('./admin.tail.php');
?>