<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/22b.lib.php");

//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 880;
?>

<!-- 상단 배경 끝 --><!-- 상단 배경 시작 -->
<table width="880" height="30" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="200">
ㆍ<a href="javascript:bookmark()">즐겨찾기추가</a>
</td>
<td width="520"></td>
<td width="100" align="right">
<?
include_once("$g4[path]/rollover.php");
?>
</td>
<? if (!$member['mb_id']) { ?>
            <!-- 로그인 이전 -->
            <td width="60" align="right"><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4['path']?>/skin/22cafe/<?=$config[cf_templete]?>/img/login.gif" width="49" height="20" border="0"></a></td>
            <? } else { ?>
            <!-- 로그인 이후 -->
            <td width="60" align="right"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$g4['path']?>/skin/22cafe/<?=$config[cf_templete]?>/img/logout.gif" width="49" height="20" border="0"></a></td>
            <? } ?>

</tr>
</table>
<!-- 상단 배경 끝 -->

<table width="880" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="880" height="100" background="<?=$g4['path']?>/skin/22cafe/<?=$config[cf_templete]?>/img/top.gif">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$g4['path']?>/"><b><?=$config[cf_title]?> - <?=$g4['url']?></b></a>
</td>
</tr>
<tr><td width="880" height="5">
</td></tr></table>

<table width="880" height="35" cellspacing="0" cellpadding="0" align="center" background="<?=$g4['path']?>/skin/22cafe/<?=$config[cf_templete]?>/img/menu.gif">
<tr>
<td width="25"></td>
<td width="400">매니저 : <b><?=$config[cf_home_owner]?></b>&nbsp;&nbsp;&nbsp;멤버수 : <b><? 
$sql = " select count(*) as cnt  from $g4[member_table] "; 
$row = sql_fetch($sql); 
$total_count = $row[cnt]; 
?> 
<?=number_format($total_count)?> 명 </b>
</td>
<td width="200"></td>
<td width="280">
<table cellspacing="0" border="0" cellpadding="0" cellspacing="0">
						<form name='fsearchbox' method='get' action='javascript:fsearchbox_submit(document.fsearchbox);'>
						<script type='text/javascript'>
						function fsearchbox_submit(f)
						{
							if (f.stx.value == '')
							{
								alert('검색어를 입력하세요.');
								f.stx.select();
								f.stx.focus();
								return;
							}

							/*
							// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
							var cnt = 0;
							for (var i=0; i<f.stx.value.length; i++)
							{
								if (f.stx.value.charAt(i) == ' ')
								cnt++;
							}
							if (cnt > 1)
							{
								alert('빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.');
								f.stx.select();
								f.stx.focus();
								return;
							}
							*/
								f.action = '<?=$g4[bbs_path]?>/search.php';
								f.submit();
							}
						</script>
						<tr>
							<input type='hidden' name='sfl' value='wr_subject||wr_content'>
							<input type='hidden' name='sop' value='and'>
						<td background='<?=$g4['path']?>/skin/22cafe/<?=$config[cf_templete]?>/img/search_back.gif'>
<INPUT name='stx' maxlength='100'  style='width:200px; border:1px solid #ecf3f3; height:25px; font-size:15px; padding:5px;'></td>
<td width="15"></td>
							<td width='55' align='right'><input type=image src='<?=$g4[path]?>/skin/22cafe/<?=$config[cf_templete]?>/img/btn_search2.gif' tabindex=3 style='width:55px;height:25px' title='검색' onmouseover=this.src='<?=$g4[path]?>/skin/22cafe/<?=$config[cf_templete]?>/img/btn_search2.gif' onmouseout=this.src='<?=$g4[path]?>/skin/22cafe/<?=$config[cf_templete]?>/img/btn_search2.gif' onmousedown=this.src='<?=$g4[path]?>/skin/22cafe/<?=$config[cf_templete]?>/img/btn_search2.gif' alt='검색' onfocus='this.blur();'></span>
							</td><td width="5"></td></tr>
							</form>
						</table>
</td>
</tr>
</table>

<table width="880" cellpadding="0" cellpadding="0" border="0" align="center">
<tr height="5"><td></td></tr>
</table>

<table width="<?=$table_width?>" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
    <!-- 중간 -->
    <td width="700" valign="top">
