관리자모드 gnb 마크업 수정
This commit is contained in:
@ -2,16 +2,14 @@
|
||||
if (!defined("_GNUBOARD_")) exit;
|
||||
|
||||
$begin_time = get_microtime();
|
||||
|
||||
$administrator = 1;
|
||||
include_once("$g4[path]/head.sub.php");
|
||||
|
||||
function print_menu1($key, $no)
|
||||
{
|
||||
global $menu;
|
||||
|
||||
$str = "<table width=130 cellpadding=1 cellspacing=0 id='menu_{$key}' style='position:absolute; display:none; z-index:1;' onpropertychange=\"selectBoxHidden('menu_{$key}')\"><colgroup><colgroup><colgroup width=10><tr><td rowspan=2 colspan=2 bgcolor=#EFCA95><table width=127 cellpadding=0 cellspacing=0 bgcolor=#FEF8F0><colgroup style='padding-left:10px'>";
|
||||
$str .= print_menu2($key, $no);
|
||||
$str .= "</table></td><td></td></tr><tr><td bgcolor=#DDDAD5 height=40></td></tr><tr><td width=4></td><td height=3 width=127 bgcolor=#DDDAD5></td><td bgcolor=#DDDAD5></td></tr></table>\n";
|
||||
$str = print_menu2($key, $no);
|
||||
|
||||
return $str;
|
||||
}
|
||||
@ -21,36 +19,24 @@ function print_menu2($key, $no)
|
||||
{
|
||||
global $menu, $auth_menu, $is_admin, $auth, $g4;
|
||||
|
||||
$str = "";
|
||||
$str = "<ul>";
|
||||
for($i=1; $i<count($menu[$key]); $i++)
|
||||
{
|
||||
if ($is_admin != "super" && (!array_key_exists($menu[$key][$i][0],$auth) || !strstr($auth[$menu[$key][$i][0]], "r")))
|
||||
continue;
|
||||
|
||||
if ($menu[$key][$i][0] == "-")
|
||||
$str .= "<tr><td class=bg_line{$no}></td></tr>";
|
||||
else
|
||||
{
|
||||
$span1 = $span2 = "";
|
||||
if (isset($menu[$key][$i][3]))
|
||||
{
|
||||
$span1 = "<span style='{$menu[$key][$i][3]}'>";
|
||||
$span2 = "</span>";
|
||||
}
|
||||
$str .= "<tr><td class=bg_menu{$no}>";
|
||||
if ($no == 2)
|
||||
$str .= " <img src='{$g4[admin_path]}/img/icon.gif' align=absmiddle> ";
|
||||
$str .= "<a href='{$menu[$key][$i][2]}' style='color:#555500;'>{$span1}{$menu[$key][$i][1]}{$span2}</a></td></tr>";
|
||||
// if ($no == 2) $str .= " <img src='{$g4[admin_path]}/img/icon.gif' align=absmiddle> ";
|
||||
$str .= "<li><a href='".$menu[$key][$i][2]."'>".$menu[$key][$i][1]."</a></li>";
|
||||
|
||||
$auth_menu[$menu[$key][$i][0]] = $menu[$key][$i][1];
|
||||
}
|
||||
$auth_menu[$menu[$key][$i][0]] = $menu[$key][$i][1];
|
||||
}
|
||||
$str .= "</ul>";
|
||||
|
||||
return $str;
|
||||
}
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
if (!g4_is_ie) document.captureEvents(Event.MOUSEMOVE)
|
||||
document.onmousemove = getMouseXY;
|
||||
var tempX = 0;
|
||||
@ -58,22 +44,6 @@ var tempY = 0;
|
||||
var prevdiv = null;
|
||||
var timerID = null;
|
||||
|
||||
function getMouseXY(e)
|
||||
{
|
||||
if (g4_is_ie) { // grab the x-y pos.s if browser is IE
|
||||
tempX = event.clientX + document.body.scrollLeft;
|
||||
tempY = event.clientY + document.body.scrollTop;
|
||||
} else { // grab the x-y pos.s if browser is NS
|
||||
tempX = e.pageX;
|
||||
tempY = e.pageY;
|
||||
}
|
||||
|
||||
if (tempX < 0) {tempX = 0;}
|
||||
if (tempY < 0) {tempY = 0;}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function imageview(id, w, h)
|
||||
{
|
||||
|
||||
@ -121,110 +91,51 @@ function textarea_size(fld, size)
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="<?=$g4['path']?>/js/common.js"></script>
|
||||
<script type="text/javascript" src="<?=$g4['path']?>/js/sideview.js"></script>
|
||||
<script type="text/javascript">
|
||||
var save_layer = null;
|
||||
function layer_view(link_id, menu_id, opt, x, y)
|
||||
{
|
||||
var link = document.getElementById(link_id);
|
||||
var menu = document.getElementById(menu_id);
|
||||
|
||||
//for (i in link) { document.write(i + '<br/>'); } return;
|
||||
|
||||
if (save_layer != null)
|
||||
{
|
||||
save_layer.style.display = "none";
|
||||
selectBoxVisible();
|
||||
}
|
||||
|
||||
if (link_id == '')
|
||||
return;
|
||||
|
||||
if (opt == 'hide')
|
||||
{
|
||||
menu.style.display = 'none';
|
||||
selectBoxVisible();
|
||||
}
|
||||
else
|
||||
{
|
||||
x = parseInt(x);
|
||||
y = parseInt(y);
|
||||
menu.style.left = get_left_pos(link) + x;
|
||||
menu.style.top = get_top_pos(link) + link.offsetHeight + y;
|
||||
menu.style.display = 'block';
|
||||
}
|
||||
|
||||
save_layer = menu;
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?=$g4['admin_path']?>/admin.style.css" type="text/css">
|
||||
<script src='<?=$g4['path']?>/js/common.js'></script>
|
||||
<script src='<?=$g4['path']?>/js/sideview.js'></script>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<header>
|
||||
<div></div>
|
||||
<a href='<?=$g4['admin_path']?>/'>로고제목</a>
|
||||
<?=$g4['title']?><?=$member['mb_id']?>님</td>
|
||||
<a href='<?=$g4['path']?>/'>홈으로</a><a href='<?=$g4['bbs_path']?>/logout.php'>로그아웃</a>
|
||||
<nav>
|
||||
<ul>
|
||||
<?
|
||||
foreach($amenu as $key=>$value)
|
||||
{
|
||||
$href1 = $href2 = "";
|
||||
if ($menu["menu{$key}"][0][2])
|
||||
{
|
||||
$href1 = "<a href='".$menu["menu{$key}"][0][2]."'>";
|
||||
$href2 = "</a>";
|
||||
}
|
||||
echo "<li id='gnb_".$menu["menu{$key}"][0][3]."'>";
|
||||
echo $href1 . $menu["menu{$key}"][0][1] . $href2;
|
||||
echo "</li>";
|
||||
echo print_menu1("menu{$key}", 1);
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<?
|
||||
/*
|
||||
$tmp_menu = "";
|
||||
if (isset($sub_menu))
|
||||
$tmp_menu = substr($sub_menu, 0, 3);
|
||||
if (isset($menu["menu{$tmp_menu}"][0][1]))
|
||||
{
|
||||
if ($menu["menu{$tmp_menu}"][0][2])
|
||||
{
|
||||
echo "<a href='".$menu["menu{$tmp_menu}"][0][2];
|
||||
echo $menu["menu{$tmp_menu}"][0][1];
|
||||
echo "</a> > ";
|
||||
}
|
||||
else
|
||||
echo $menu["menu{$tmp_menu}"][0][1];
|
||||
}
|
||||
*/
|
||||
?>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
|
||||
<table width=1004 cellpadding=0 cellspacing=0 border=0>
|
||||
<colgroup width=180>
|
||||
<colgroup>
|
||||
<tr bgcolor=#E3DCD2 height=70>
|
||||
<td colspan=2 onmouseover="layer_view('','','','','')"><a href='<?=$g4['admin_path']?>/'><img src='<?=$g4['admin_path']?>/img/logo.gif' border=0></a></td>
|
||||
<td>
|
||||
<?
|
||||
foreach($amenu as $key=>$value)
|
||||
{
|
||||
$href1 = $href2 = "";
|
||||
if ($menu["menu{$key}"][0][2])
|
||||
{
|
||||
$href1 = "<a href='".$menu["menu{$key}"][0][2]."'>";
|
||||
$href2 = "</a>";
|
||||
}
|
||||
echo "{$href1}<img src='$g4[admin_path]/img/menu{$key}.gif' border=0 id='id_menu{$key}' onmouseover=\"layer_view('id_menu{$key}', 'menu_menu{$key}', 'view', -2, 5);\">{$href2} ";
|
||||
echo print_menu1("menu{$key}", 1);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan=3 bgcolor=#C3BBB1 height=1></td></tr>
|
||||
<tr><td colspan=3 bgcolor=#E5E5E5 height=2></td></tr>
|
||||
<tr onmouseover="layer_view('','','','','')">
|
||||
<td><a href='<?=$g4['path']?>/'><img src='<?=$g4['admin_path']?>/img/home.gif' border=0></a><a href='<?=$g4['bbs_path']?>/logout.php'><img src='<?=$g4['admin_path']?>/img/logout.gif' border=0></a></td>
|
||||
<td rowspan=2 width=1 bgcolor=#DBDBDB></td>
|
||||
<td bgcolor=#F8F8F8 align=right>
|
||||
<img src='<?=$g4['admin_path']?>/img/navi_icon.gif' align=absmiddle>
|
||||
<a href='<?=$g4['admin_path']?>/'>Admin</a> >
|
||||
<?
|
||||
$tmp_menu = "";
|
||||
if (isset($sub_menu))
|
||||
$tmp_menu = substr($sub_menu, 0, 3);
|
||||
if (isset($menu["menu{$tmp_menu}"][0][1]))
|
||||
{
|
||||
if ($menu["menu{$tmp_menu}"][0][2])
|
||||
{
|
||||
echo "<a href='".$menu["menu{$tmp_menu}"][0][2]."'>";
|
||||
echo $menu["menu{$tmp_menu}"][0][1];
|
||||
echo "</a> > ";
|
||||
}
|
||||
else
|
||||
echo $menu["menu{$tmp_menu}"][0][1]." > ";
|
||||
}
|
||||
?>
|
||||
<?=$g4['title']?> <span class=small>: <?=$member['mb_id']?>님</span> </td>
|
||||
</tr>
|
||||
<tr onmouseover="layer_view('','','','','')">
|
||||
<td valign=top>
|
||||
<table width=180 cellpadding=0 cellspacing=0>
|
||||
<?
|
||||
echo "<tr><td><img src='$g4[admin_path]/img/title_menu{$tmp_menu}.gif'></td></tr>";
|
||||
echo print_menu2("menu{$tmp_menu}", 2);
|
||||
?>
|
||||
</table><br>
|
||||
</td>
|
||||
<td valign=top style='padding:10px;'>
|
||||
|
||||
@ -240,11 +240,9 @@ function subtitle($title, $more="")
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$s = "<table width=100% cellpadding=0 cellspacing=0><tr><td width=80% align=left><table border='0' cellpadding='0' cellspacing='1'><tr><td height='24'><img src='$g4[admin_path]/img/icon_title.gif' width=20 height=9> <font color='#525252'><b>$title</b></font> </td></tr></table><table width=100% cellpadding=0 cellspacing=0><tr><td height=1></td></tr></table></td><td width=20% align=right>";
|
||||
$s = "<h2><span></span>$title</h2>";
|
||||
if ($more)
|
||||
$s .= "<a href='$more'><img src='$g4[admin_path]/img/icon_more.gif' width='43' height='11' border=0 align=absmiddle></a>";
|
||||
$s .= "</td></tr></table>\n";
|
||||
|
||||
$s .= "<a href='$more'>더보기</a>";
|
||||
return $s;
|
||||
}
|
||||
|
||||
|
||||
@ -1,17 +1,14 @@
|
||||
<?
|
||||
$menu["menu100"] = array (
|
||||
array("100000", "환경설정", ""),
|
||||
array("100000", "환경설정", "", "config"),
|
||||
array("", "기본환경설정", "$g4[admin_path]/config_form.php"),
|
||||
array("", "관리권한설정", "$g4[admin_path]/auth_list.php"),
|
||||
array("100300", "메일 테스트", "$g4[admin_path]/sendmail_test.php"),
|
||||
array("-"),
|
||||
array("100400", "버전정보", "$g4[admin_path]/version.php"),
|
||||
array("100500", "phpinfo()", "$g4[admin_path]/phpinfo.php"),
|
||||
array("-"),
|
||||
array("100600", "업그레이드", "$g4[admin_path]/upgrade.php"),
|
||||
array("100700", "복구/최적화", "$g4[admin_path]/repair.php"),
|
||||
array("100800", "세션 삭제", "$g4[admin_path]/session_delete.php"),
|
||||
array("-"),
|
||||
array("", "phpMyAdmin", "$g4[path]/$g4[phpmyadmin_dir]")
|
||||
);
|
||||
?>
|
||||
@ -1,12 +1,10 @@
|
||||
<?
|
||||
$menu["menu200"] = array (
|
||||
array("200000", "회원관리", ""),
|
||||
array("200000", "회원관리", "", "member"),
|
||||
array("200100", "회원관리", "$g4[admin_path]/member_list.php"),
|
||||
array("200200", "포인트관리", "$g4[admin_path]/point_list.php"),
|
||||
array("200300", "회원메일발송", "$g4[admin_path]/mail_list.php"),
|
||||
array("-"),
|
||||
array("200800", "접속자현황", "$g4[admin_path]/visit_list.php"),
|
||||
array("-"),
|
||||
array("200900", "투표관리", "$g4[admin_path]/poll_list.php")
|
||||
);
|
||||
?>
|
||||
@ -1,9 +1,8 @@
|
||||
<?
|
||||
$menu["menu300"] = array (
|
||||
array("300000", "게시판관리", ""),
|
||||
array("300000", "게시판관리", "", "board"),
|
||||
array("300100", "게시판관리", "$g4[admin_path]/board_list.php"),
|
||||
array("300200", "게시판그룹관리", "$g4[admin_path]/boardgroup_list.php"),
|
||||
array("-"),
|
||||
array("300300", "인기검색어관리", "$g4[admin_path]/popular_list.php"),
|
||||
array("300400", "인기검색어순위", "$g4[admin_path]/popular_rank.php"),
|
||||
);
|
||||
|
||||
@ -1,28 +0,0 @@
|
||||
a:link, a:visited, a:active { text-decoration:none; color:#CD7444; }
|
||||
a:hover { text-decoration:underline; color:#C15B27; }
|
||||
|
||||
.title { font-size:9pt; font-family:굴림; font-weight:bold; color:#616161; }
|
||||
|
||||
.btn1 { background-color:#FBF8EE; }
|
||||
|
||||
.col1 { color:#616161; }
|
||||
.col2 { color:#868686; }
|
||||
|
||||
.pad1 { padding:5px 10px 5px 10px; }
|
||||
.pad2 { padding:5px 0px 5px 0px; }
|
||||
|
||||
.bgcol1 { background-color:#FBF8EE; padding:5px; }
|
||||
.bgcol2 { background-color:#F5F5F5; padding:5px; }
|
||||
|
||||
.line1 { background-color:#CCCCCC; height:2px; }
|
||||
.line2 { background-color:#CCCCCC; height:1px; }
|
||||
|
||||
.list0 { background-color:#FFFFFF; }
|
||||
.list1 { background-color:#F8F8F8; }
|
||||
|
||||
.bold { font-weight:bold; }
|
||||
.center { text-align:center; }
|
||||
.right { text-align:right; }
|
||||
|
||||
.w99 { width:99%; }
|
||||
.ht { height:30px; }
|
||||
@ -2,13 +2,9 @@
|
||||
if (!defined("_GNUBOARD_")) exit;
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan=3 height=22 bgcolor=#F2F2F2 align=right><a href='#gnuboard4_admin_head'><img src='<?=$g4['admin_path']?>/img/top.gif' border=0></a> </td></tr>
|
||||
</table><br><br>
|
||||
<!-- <p>실행시간 : <?=get_microtime() - $begin_time;?> -->
|
||||
|
||||
<script type='text/javascript' src='<?=$g4['admin_path']?>/admin.js'></script>
|
||||
<script src='<?=$g4['admin_path']?>/admin.js'></script>
|
||||
|
||||
<?
|
||||
include_once("$g4[path]/tail.sub.php");
|
||||
|
||||
136
adm/index.php
136
adm/index.php
@ -60,45 +60,27 @@ $colspan = 12;
|
||||
|
||||
<?=subtitle("신규가입회원 {$new_member_rows}건", "./member_list.php");?>
|
||||
|
||||
<table width=100%>
|
||||
<tr>
|
||||
<td width=50% align=left><?//=$listall?> (총회원수 : <?=number_format($total_count)?>, <font color=orange>차단 : <?=number_format($intercept_count)?></font>, <font color=crimson>탈퇴 : <?=number_format($leave_count)?></font>)</td>
|
||||
<td width=50% align=right></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?//=$listall?> (총회원수 : <?=number_format($total_count)?>, 차단 : <?=number_format($intercept_count)?>, 탈퇴 : <?=number_format($leave_count)?>)
|
||||
|
||||
<table width=100% cellpadding=0 cellspacing=0>
|
||||
<input type=hidden name=sst value='<?=$sst?>'>
|
||||
<input type=hidden name=sod value='<?=$sod?>'>
|
||||
<input type=hidden name=sfl value='<?=$sfl?>'>
|
||||
<input type=hidden name=stx value='<?=$stx?>'>
|
||||
<input type=hidden name=page value='<?=$page?>'>
|
||||
<colgroup width=80>
|
||||
<colgroup width=80>
|
||||
<colgroup width=>
|
||||
<colgroup width=40>
|
||||
<colgroup width=50>
|
||||
<colgroup width=80>
|
||||
<colgroup width=40>
|
||||
<colgroup width=40>
|
||||
<colgroup width=40>
|
||||
<colgroup width=40>
|
||||
<colgroup width=40>
|
||||
<tr><td colspan='<?=$colspan?>' class='line1'></td></tr>
|
||||
<tr class='bgcol1 bold col1 ht center'>
|
||||
<table>
|
||||
<input type='hidden' name='sst' value='<?=$sst?>'>
|
||||
<input type='hidden' name='sod' value='<?=$sod?>'>
|
||||
<input type='hidden' name='sfl' value='<?=$sfl?>'>
|
||||
<input type='hidden' name='stx' value='<?=$stx?>'>
|
||||
<input type='hidden' name='page' value='<?=$page?>'>
|
||||
<tr>
|
||||
<td>회원아이디</td>
|
||||
<td>이름</td>
|
||||
<td>별명</td>
|
||||
<td>권한</td>
|
||||
<td>포인트</td>
|
||||
<td>최종접속</td>
|
||||
<td title='메일수신허용여부'>수신</td>
|
||||
<td title='정보공개여부'>공개</td>
|
||||
<td title='이메일인증'>인증</td>
|
||||
<td>수신</td>
|
||||
<td>공개</td>
|
||||
<td>인증</td>
|
||||
<td>차단</td>
|
||||
<td title='접근가능한 그룹수'>그룹</td>
|
||||
<td>그룹</td>
|
||||
</tr>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
@ -128,32 +110,30 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
$mb_id = $row['mb_id'];
|
||||
if ($row['mb_leave_date'])
|
||||
$mb_id = "<font color=crimson>$mb_id</font>";
|
||||
$mb_id = "$mb_id";
|
||||
else if ($row['mb_intercept_date'])
|
||||
$mb_id = "<font color=orange>$mb_id</font>";
|
||||
$mb_id = "$mb_id";
|
||||
|
||||
$list = $i%2;
|
||||
echo "
|
||||
<input type=hidden name=mb_id[$i] value='$row[mb_id]'>
|
||||
<tr class='list$list col1 ht center'>
|
||||
<td title='$row[mb_id]'><nobr style='display:block; overflow:hidden; width:100px;'> $mb_id</nobr></td>
|
||||
<input type='hidden' name='mb_id[$i]' value='$row[mb_id]'>
|
||||
<tr>
|
||||
<td>$mb_id</td>
|
||||
<td>$row[mb_name]</td>
|
||||
<td>$mb_nick</td>
|
||||
<td>$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><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_email_certify]'>".(preg_match('/[1-9]/', $row['mb_email_certify'])?'√':' ')."</td>
|
||||
<td title='$row[mb_intercept_date]'>".($row['mb_intercept_date']?'√':' ')."</td>
|
||||
<td>".(preg_match('/[1-9]/', $row['mb_email_certify'])?'√':' ')."</td>
|
||||
<td>".($row['mb_intercept_date']?'√':' ')."</td>
|
||||
<td>$group</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan='$colspan' align=center height=100 class=contentbg>자료가 없습니다.</td></tr>";
|
||||
|
||||
echo "<tr><td colspan='$colspan' class='line2'></td></tr>";
|
||||
echo "<tr><td colspan='$colspan'>자료가 없습니다.</td></tr>";
|
||||
echo "</table>";
|
||||
?>
|
||||
|
||||
@ -180,29 +160,21 @@ $total_count = $row['cnt'];
|
||||
$colspan = 5;
|
||||
?>
|
||||
|
||||
<br><br>
|
||||
<?=subtitle("최근게시물 {$new_write_rows}건", "$g4[bbs_path]/new.php");?>
|
||||
|
||||
<table width=100% cellpadding=0 cellspacing=1>
|
||||
<input type=hidden name=sst value='<?=$sst?>'>
|
||||
<input type=hidden name=sod value='<?=$sod?>'>
|
||||
<input type=hidden name=sfl value='<?=$sfl?>'>
|
||||
<input type=hidden name=stx value='<?=$stx?>'>
|
||||
<input type=hidden name=page value='<?=$page?>'>
|
||||
<colgroup width=100>
|
||||
<colgroup width=100>
|
||||
<colgroup width=''>
|
||||
<colgroup width=80>
|
||||
<colgroup width=80>
|
||||
<tr><td colspan='<?=$colspan?>' class='line1'></td></tr>
|
||||
<tr class='bgcol1 bold col1 ht center'>
|
||||
<table>
|
||||
<input type='hidden' name='sst' value='<?=$sst?>'>
|
||||
<input type='hidden' name='sod' value='<?=$sod?>'>
|
||||
<input type='hidden' name='sfl' value='<?=$sfl?>'>
|
||||
<input type='hidden' name='stx' value='<?=$stx?>'>
|
||||
<input type='hidden' name='page' value='<?=$page?>'>
|
||||
<tr>
|
||||
<td>그룹</td>
|
||||
<td>게시판</td>
|
||||
<td>제목</td>
|
||||
<td>이름</td>
|
||||
<td>일시</td>
|
||||
</tr>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
<?
|
||||
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id
|
||||
$sql_common
|
||||
@ -248,19 +220,17 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
$list = $i%2;
|
||||
echo "
|
||||
<tr class='list$list col1 ht center'>
|
||||
<td class=small><a href='$g4[bbs_path]/new.php?gr_id=$row[gr_id]'>".cut_str($row['gr_subject'],10)."</a></td>
|
||||
<td class=small><a href='$g4[bbs_path]/board.php?bo_table=$row[bo_table]'>".cut_str($row['bo_subject'],20)."</a></td>
|
||||
<td align=left style='word-break:break-all;'> <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>
|
||||
<tr>
|
||||
<td><a href='$g4[bbs_path]/new.php?gr_id=$row[gr_id]'>".cut_str($row['gr_subject'],10)."</a></td>
|
||||
<td><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>$name</td>
|
||||
<td>$datetime</td>
|
||||
</tr> ";
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan='$colspan' align=center height=100 bgcolor=#ffffff>자료가 없습니다.</td></tr>";
|
||||
|
||||
echo "<tr><td colspan='$colspan' class='line2'></td></tr>";
|
||||
echo "<tr><td colspan='$colspan'>자료가 없습니다.</td></tr>";
|
||||
echo "</table>";
|
||||
?>
|
||||
|
||||
@ -305,21 +275,13 @@ $colspan = 7;
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width=100% cellpadding=0 cellspacing=1>
|
||||
<input type=hidden name=sst value='<?=$sst?>'>
|
||||
<input type=hidden name=sod value='<?=$sod?>'>
|
||||
<input type=hidden name=sfl value='<?=$sfl?>'>
|
||||
<input type=hidden name=stx value='<?=$stx?>'>
|
||||
<input type=hidden name=page value='<?=$page?>'>
|
||||
<colgroup width=100>
|
||||
<colgroup width=80>
|
||||
<colgroup width=80>
|
||||
<colgroup width=140>
|
||||
<colgroup width=''>
|
||||
<colgroup width=50>
|
||||
<colgroup width=80>
|
||||
<tr><td colspan='<?=$colspan?>' class='line1'></td></tr>
|
||||
<tr class='bgcol1 bold col1 ht center'>
|
||||
<table>
|
||||
<input type='hidden' name='sst' value='<?=$sst?>'>
|
||||
<input type='hidden' name='sod' value='<?=$sod?>'>
|
||||
<input type='hidden' name='sfl' value='<?=$sfl?>'>
|
||||
<input type='hidden' name='stx' value='<?=$stx?>'>
|
||||
<input type='hidden' name='page' value='<?=$page?>'>
|
||||
<tr>
|
||||
<td>회원아이디</td>
|
||||
<td>이름</td>
|
||||
<td>별명</td>
|
||||
@ -328,7 +290,6 @@ $colspan = 7;
|
||||
<td>포인트</td>
|
||||
<td>포인트합</td>
|
||||
</tr>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
<?
|
||||
$row2['mb_id'] = '';
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -350,28 +311,25 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
$list = $i%2;
|
||||
echo "
|
||||
<input type=hidden name=po_id[$i] value='$row[po_id]'>
|
||||
<input type=hidden name=mb_id[$i] value='$row[mb_id]'>
|
||||
<tr class='list$list col1 ht center'>
|
||||
<input type='hidden' name='po_id[$i]' value='$row[po_id]'>
|
||||
<input type='hidden' name='mb_id[$i]' value='$row[mb_id]'>
|
||||
<tr>
|
||||
<td><a href='./point_list.php?sfl=mb_id&stx=$row[mb_id]'>$row[mb_id]</a></td>
|
||||
<td>$row2[mb_name]</td>
|
||||
<td>$mb_nick</td>
|
||||
<td>$row[po_datetime]</td>
|
||||
<td align=left> {$link1}$row[po_content]{$link2}</td>
|
||||
<td align=right>".number_format($row['po_point'])." </td>
|
||||
<td align=right>".number_format($row2['mb_point'])." </td>
|
||||
<td> {$link1}$row[po_content]{$link2}</td>
|
||||
<td>".number_format($row['po_point'])." </td>
|
||||
<td>".number_format($row2['mb_point'])." </td>
|
||||
</tr> ";
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan='$colspan' align=center height=100 bgcolor=#ffffff>자료가 없습니다.</td></tr>";
|
||||
|
||||
echo "<tr><td colspan='$colspan' class='line2'></td></tr>";
|
||||
echo "<tr><td colspan='$colspan'>자료가 없습니다.</td></tr>";
|
||||
echo "</table>";
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<?
|
||||
include_once ("./admin.tail.php");
|
||||
?>
|
||||
|
||||
0
css/admin.css
Normal file
0
css/admin.css
Normal file
0
css/default.css
Normal file
0
css/default.css
Normal file
22
head.sub.php
22
head.sub.php
@ -43,14 +43,18 @@ header("Expires: 0"); // rfc2616 - Section 14.21
|
||||
header("Pragma: no-cache"); // HTTP/1.0
|
||||
*/
|
||||
?>
|
||||
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
|
||||
<html>
|
||||
<!doctype html>
|
||||
<html lang='ko'>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
|
||||
<meta charset='<?=$g4['charset']?>'>
|
||||
<title><?=$g4['title']?></title>
|
||||
<link rel="stylesheet" href="<?=$g4['path']?>/style.css" type="text/css">
|
||||
<? if ($administrator) { ?>
|
||||
<link rel='stylesheet' href='<?=$g4['path']?>/css/admin.css?=<?=date("md")?>'>
|
||||
<? } else { ?>
|
||||
<link rel='stylesheet' href='<?=$g4['path']?>/css/default.css?=<?=date("md")?>'>
|
||||
<?}?>
|
||||
</head>
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
// 자바스크립트에서 사용하는 전역변수 선언
|
||||
var g4_path = "<?=$g4['path']?>";
|
||||
var g4_bbs = "<?=$g4['bbs']?>";
|
||||
@ -66,7 +70,7 @@ var g4_is_gecko = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
|
||||
var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
|
||||
<? if ($is_admin) { echo "var g4_admin = '{$g4['admin']}';"; } ?>
|
||||
</script>
|
||||
<script type="text/javascript" src="<?=$g4['path']?>/js/jquery-1.4.2.min.js"></script>
|
||||
<script type="text/javascript" src="<?=$g4['path']?>/js/common.js"></script>
|
||||
<body topmargin="0" leftmargin="0" <?=isset($g4['body_script']) ? $g4['body_script'] : "";?>>
|
||||
<a name="g4_head"></a>
|
||||
<script src='<?=$g4['path']?>/js/jquery-1.4.2.min.js'></script>
|
||||
<script src='<?=$g4['path']?>/js/common.js'></script>
|
||||
<body>
|
||||
<a id='g4_head'></a>
|
||||
|
||||
20
index.php
20
index.php
@ -6,24 +6,8 @@ $g4['title'] = "";
|
||||
include_once("./_head.php");
|
||||
?>
|
||||
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
|
||||
<?
|
||||
// 최신글
|
||||
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
|
||||
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
|
||||
|
||||
// 사용방법
|
||||
// latest(스킨, 게시판아이디, 출력라인, 글자수);
|
||||
echo latest("basic", $row['bo_table'], 10, 70);
|
||||
echo "<p>\n";
|
||||
}
|
||||
?>
|
||||
</td></tr></table>
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
강좌홈페이지 작업 중입니다.<br>
|
||||
현재 HTML5 로 선언되어 있습니다.
|
||||
|
||||
<?
|
||||
include_once("./_tail.php");
|
||||
|
||||
Reference in New Issue
Block a user