[제나플러스] 해드부분을 살짝 수정해 보았습니다
본문
현재 메인 상단메뉴의 레이어는
배너 |
즐겨찾기 |
배너 |
의 구조로 되어 있는데...
이것을..
배너 즐겨찾기 배너 |
메뉴 |
의 구조로 바꾸면 어떨까요?
의견이 있어서..
head.php
*****
<!--TOP LEFT BANNER / POPULAR / SEARCH / MAIN MENU / TOP RIGHT BANNER-->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr onmouseover="layer_view('','','','','')">
<td width="100%" height="95" align="center" background="<?=$g4['path']?>/img/<?=$color_layer?>_02.gif">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"><img src="<?=$g4['path']?>/img/<?=$color_layer?>_01.gif" width="10" height="95" border="0"></td>
<td width="100%">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="2" width="190" border="0">
<?=latest_banner("banner_topleft", topleftbanner, 1, 24); //TOPLEFT BANNER?>
</td>
<td width="100%" border="0" style="padding:0 0 0 10;"><?=popular("zenabasic" , 5)?></td>
<td rowspan="2" width="190" border="0">
<?=latest_banner("banner_topright", toprightbanner, 1, 24); //TOPRIGHT BANNER?>
</td>
</tr>
<tr>
<td width="100%" border="0" align="center">
<!--SEARCH-->
<table cellspacing="0" cellpadding="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="10"></td>
<td width="" align="center">
<?
$group_select = "<select id='head_gr_id' name='gr_id' class=select>
<option value=''>통합검색";
//$sql = " select gr_id, gr_subject from $g4[group_table] order by gr_id ";
// 제외그룹설정 root님
// html , banner , guest 라는 그룹은 제외시킴
$sql = " select * from $g4[group_table] where gr_id not in ('html', 'banner', 'guest') order by gr_1";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
$group_select .= "<option value='$row[gr_id]'>$row[gr_subject]";
$group_select .= "</select>";
?>
<?=$group_select?>
</td>
<td width="5"></td>
<td width="" valign="middle" align="center">
<INPUT name=stx class ='text_box' itemname="검색어" size="45" minlength="2" maxlength="20">
</td>
<td width="5"></td>
<td width="51" align="right"><input type="image" src="<?=$g4[path]?>/img/search<?=$color_layer?>.gif" border="0"></td>
<td width="10"></td>
</tr>
</form>
</table>
<script language="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>
<!--/SEARCH-->
</td>
</tr>
<tr>
<td colspan="3" align="center" border="0" height="35">
<? include_once("$g4[path]/include/mainmenu/mainzmain_menu.php"); //MAINMENU ?>
</td>
</tr>
</table>
</td>
<td width="10"><img src="<?=$g4['path']?>/img/<?=$color_layer?>_03.gif" width="10" height="95" border="0"></td>
</tr>
</table>
</td>
</tr>
</table>
<!--/TOPLEFT BANNER / POPULAR / SEARCH / MAINMENU / TOPRIGHT BANNER-->
*****
include/mainmenu/mainzmain_menu.php
*****
echo "<td width='2' valign='top' align='center'>";
echo "</td>";
echo "<td valign='top' align='center'>";
echo "<table cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td><img src='$g4[path]/include/mainmenu/img/text$config[cf_color_layer]_01.gif' width='4' height='21' border='0'></td><td align='center' background='$g4[path]/include/mainmenu/img/text$config[cf_color_layer]_02.gif' style='padding:0 2 0 2;'><a href='" . $gLink . "'>" . $gSubject . "</a></font></td>"; // 그룹명 출력
echo "<td><img src='$g4[path]/include/mainmenu/img/text$config[cf_color_layer]_03.gif' width='4' height='21' border='0'></td></tr></table>";
echo "</td>";
echo "<td width='2' valign='top' align='center'>";
echo "</td>";
*****
상단메뉴배너최신글 세로50으로 수정
*****
<? if (count($list) == 0) { echo "<td height=50 align=center><a href='$g4[bbs_path]/board.php?bo_table=$bo_table'>왼쪽상단배너 190 X 50</a></td>"; } ?>
<? if (count($list) == 0) { echo "<td height=50 align=center><a href='$g4[bbs_path]/board.php?bo_table=$bo_table'>오른쪽상단배너 190 X 50</a></td>"; } ?>
포인트님의 댓글
포인트쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일획기적으로 뭔가 변화을 모색하는것도 좋을것같네요^^~~