페이지마다 서로 다른 head 파일 적용하려는데 잘 안되네요...부탁드립니다. 정보
페이지마다 서로 다른 head 파일 적용하려는데 잘 안되네요...부탁드립니다.본문
모두들 안녕하세요
제로보드를 사용하다가 그누보드로 옮긴 사용자입니다.
그누보드 정말 매력적이네요!
게시판 상단마다 서로 다른 head파일을 적용하려는데 잘 안됩니다.
[질문답변][팁]게시판은 모두 찾아서 해보았지만, 이곳에 나와있는 내용으로는 해결이 안되네요.
1. _head1.php, head1.php 이런식으로 파일을 각각 2개씩 추가도 해봤고
2. -head.php, head1.php 이런식으로... _head.php 파일을 하나만 만들어도 봤고...
새벽까지 헤매도 도저히 해결되지 않아 글을 남깁니다.
꼭 좀 부탁 드릴께요.
감사합니다. *^^*
제로보드를 사용하다가 그누보드로 옮긴 사용자입니다.
그누보드 정말 매력적이네요!
게시판 상단마다 서로 다른 head파일을 적용하려는데 잘 안됩니다.
[질문답변][팁]게시판은 모두 찾아서 해보았지만, 이곳에 나와있는 내용으로는 해결이 안되네요.
1. _head1.php, head1.php 이런식으로 파일을 각각 2개씩 추가도 해봤고
2. -head.php, head1.php 이런식으로... _head.php 파일을 하나만 만들어도 봤고...
새벽까지 헤매도 도저히 해결되지 않아 글을 남깁니다.
꼭 좀 부탁 드릴께요.
감사합니다. *^^*
댓글 전체
head1.php를 만드셨다면 그 파일 맨위에 아래의 내용을 넣으시고
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 1004;
?>
<!--여기부터 본인의 수정 내용이 들어가겠지요?-->
head1.php을 불러들일 파일에서 include_once("$g4[path]/head1.php");
요렇게 해 주시면 되겠습니다.
경로는 루트에 모든 파일이 있다는 전제하에서 입니다.
도움이 되셨으면 좋겠네요.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 1004;
?>
<!--여기부터 본인의 수정 내용이 들어가겠지요?-->
head1.php을 불러들일 파일에서 include_once("$g4[path]/head1.php");
요렇게 해 주시면 되겠습니다.
경로는 루트에 모든 파일이 있다는 전제하에서 입니다.
도움이 되셨으면 좋겠네요.
이재필님, 빠른 답변 정말 감사드립니다.
그런데...잘 안되요 ^^;
제가 생각해도 이렇게 하는 것이 맞는 것 같은데...
1. 우선 head_m1.php, _head_m1.php 파일을 만들었습니다.
2. _head_m1.php 내용
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head_m1.php");
?>
3. head_m1.php 내용
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
// 좌측과 우측 여백을 조정, 소스 제일 밑부분과 연관되어 있음
$table_width = 1000;
// 좌측과 우측 여백을 조정, 소스 제일 밑부분과 연관되어 있음
?>
<!-- 로고 및 메인플래시 시작 --><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<table width="970" height="48" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="220" height="48"><a href="<?=$g4[path]?>/index.php" onFocus="this.blur()"><i
..............................................................
4. 그리고 나서 보드설정에서 상단 불러올 파일에 ./_head_m1.php 이렇게 적어주었습니다.
☞ 파일은 전부 루트에 위치해 있구요.
그런데 게시판을 열면 head_m1.php 파일 적용이 안되고 게시판만 덩그러니 나옵니다.
T.T 어떻게 해야 할까요...도와주세요!
그런데...잘 안되요 ^^;
제가 생각해도 이렇게 하는 것이 맞는 것 같은데...
1. 우선 head_m1.php, _head_m1.php 파일을 만들었습니다.
2. _head_m1.php 내용
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head_m1.php");
?>
3. head_m1.php 내용
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
// 좌측과 우측 여백을 조정, 소스 제일 밑부분과 연관되어 있음
$table_width = 1000;
// 좌측과 우측 여백을 조정, 소스 제일 밑부분과 연관되어 있음
?>
<!-- 로고 및 메인플래시 시작 --><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<table width="970" height="48" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="220" height="48"><a href="<?=$g4[path]?>/index.php" onFocus="this.blur()"><i
..............................................................
4. 그리고 나서 보드설정에서 상단 불러올 파일에 ./_head_m1.php 이렇게 적어주었습니다.
☞ 파일은 전부 루트에 위치해 있구요.
그런데 게시판을 열면 head_m1.php 파일 적용이 안되고 게시판만 덩그러니 나옵니다.
T.T 어떻게 해야 할까요...도와주세요!
보드 설정에서 상단 불러올 파일을 ../head_m1.php 이렇게 해보세요.
../head_m1.php 로 하니 화면에 아무것도 표시되지 않습니다.
에궁...왜 안되는건지...
지금도 이것 저것 해보고 있는데...잘 안되네요 ^^''
미치겠다...에겅...
(유로비전님, 답변 감사드립니다.)
에궁...왜 안되는건지...
지금도 이것 저것 해보고 있는데...잘 안되네요 ^^''
미치겠다...에겅...
(유로비전님, 답변 감사드립니다.)
head.php 하나 통째로 올려줘보세요...저 위에것이 맞나요?
1. head.php 전부
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
// 좌측과 우측 여백을 조정, 소스 제일 밑부분과 연관되어 있음
$table_width = 1000;
// 좌측과 우측 여백을 조정, 소스 제일 밑부분과 연관되어 있음
?>
<!-- 로고 및 메인플래시 시작 --><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<table width="970" height="48" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="220" height="48"><a href="<?=$g4[path]?>/index.php" onFocus="this.blur()"><img src="<?=$g4[path]?>/image/logo.jpg" width="220" height="99" border="0" /></a></td>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="750" height="99">
<param name="movie" value="<?=$g4[path]?>/image/samil3.swf" />
<param name="quality" value="high" />
<embed src="<?=$g4[path]?>/image/samil3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="99"></embed>
</object></td>
</tr>
</table>
<table width="970" border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 한줄 방명록 시작-->
<td width="735"><?=latest("scroll_not_click_addname", visit, 10, 105); ?></td>
<!-- 한줄 방명록 끝-->
<td width="235"><!-- 검색 시작1-1 -->
<table width="235" align="right" cellpadding="0" cellspacing="0">
<form
action="javascript:fsearchbox_submit(document.fsearchbox);"
method="get" name="fsearchbox" id="fsearchbox">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input
type="hidden" value="wr_subject||wr_content" name="sfl" />
<input
type="hidden" value="and" name="sop" />
<tbody>
<tr>
<td width="58"><div align="right"><img height="20" src="img/search.gif"
width="57" /></div></td>
<td width="121"><input class="ed"
style="WIDTH: 121px; HEIGHT: 20px" maxlength="20" name="stx"
maxlengt="20" /></td>
<td align="right" width="60"><div align="right">
<input name="image" type="image"
src="img/search_button.gif" width="52" height="20"
border="0" />
</div></td>
</tr>
</tbody>
</form>
<tr>
<td></TBODY></td>
</tr>
</table>
<!-- 검색 시작1-1 --> </td>
</tr>
</table>
<!-- 로고 및 메인플래시 끝 -->
<!-- 검색 시작1-2, 원본파일에서는 검색시작1-1이 이 주석 밑에 위치하고 있음-->
<div align="right">
<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>
<!-- 검색 끝 -->
</div>
<table width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
<!-- 좌측 여백 조절-->
<td width=10></td>
<!-- 좌측 여백 조절-->
<!-- 왼쪽 메뉴 -->
<td width=220 valign=top align=left>
<table>
<tr>
<td align="center">
<?=outlogin("b_basic"); // 외부 로그인 ?>
<div style='height:1px;'></div>
<!-- 오늘의 양식 시작-->
<?=latest("bible", bible, 1, 37); ?>
<!-- 오늘의 양식 끝-->
<div style='height:1px;'></div>
<!-- 수직 스크롤 갤러리 시작-->
<?=latest("rolling_blind", gal1, 5, 37); ?>
<!-- 수직 스크롤 갤러리 끝-->
<div style='height:1px;'></div>
<!-- 카렌다 시작 -->
<table width="190" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<?=$g4[path]?>/image/cal_top.gif" width="190" height="47" /></td>
</tr>
<tr>
<td background="<?=$g4[path]?>/image/cal_bg.gif"><? echo latest_schedule("calendar","sche","green"); ?></td>
</tr>
<tr>
<td><img src="<?=$g4[path]?>/image/cal_bottom.gif" width="190" height="16" /></td>
</tr>
</table>
<!-- 카렌다 끝 -->
<div style='height:1px;'></div>
<?=//poll("simple"); // 설문조사 ?>
<?=connect(); // 현재 접속자수 ?>
<?=visit("basic"); // 방문자수 ?>
<div style='height:1px;'></div>
<a href="<?=$g4[path]?>/all_com1.php"><img src="<?=$g4[path]?>/image/stati.gif" alt="글등록 현황" width="190" height="50" border="0" /></a>
</td>
</tr>
</table>
</td>
<!-- 좌측과 우측(메인) 여백조절하는 곳-->
<td width=10></td>
<!-- 좌측과 우측(메인) 여백조절하는 곳-->
<!-- 중간 -->
<td width=683 valign=top>
2. _head.php 전부
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.php");
?>
=====================================
그누보드 원본에서 내용 표시되는 부분만 손댔거든요. 에겅...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
// 좌측과 우측 여백을 조정, 소스 제일 밑부분과 연관되어 있음
$table_width = 1000;
// 좌측과 우측 여백을 조정, 소스 제일 밑부분과 연관되어 있음
?>
<!-- 로고 및 메인플래시 시작 --><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<table width="970" height="48" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="220" height="48"><a href="<?=$g4[path]?>/index.php" onFocus="this.blur()"><img src="<?=$g4[path]?>/image/logo.jpg" width="220" height="99" border="0" /></a></td>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="750" height="99">
<param name="movie" value="<?=$g4[path]?>/image/samil3.swf" />
<param name="quality" value="high" />
<embed src="<?=$g4[path]?>/image/samil3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="99"></embed>
</object></td>
</tr>
</table>
<table width="970" border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 한줄 방명록 시작-->
<td width="735"><?=latest("scroll_not_click_addname", visit, 10, 105); ?></td>
<!-- 한줄 방명록 끝-->
<td width="235"><!-- 검색 시작1-1 -->
<table width="235" align="right" cellpadding="0" cellspacing="0">
<form
action="javascript:fsearchbox_submit(document.fsearchbox);"
method="get" name="fsearchbox" id="fsearchbox">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input
type="hidden" value="wr_subject||wr_content" name="sfl" />
<input
type="hidden" value="and" name="sop" />
<tbody>
<tr>
<td width="58"><div align="right"><img height="20" src="img/search.gif"
width="57" /></div></td>
<td width="121"><input class="ed"
style="WIDTH: 121px; HEIGHT: 20px" maxlength="20" name="stx"
maxlengt="20" /></td>
<td align="right" width="60"><div align="right">
<input name="image" type="image"
src="img/search_button.gif" width="52" height="20"
border="0" />
</div></td>
</tr>
</tbody>
</form>
<tr>
<td></TBODY></td>
</tr>
</table>
<!-- 검색 시작1-1 --> </td>
</tr>
</table>
<!-- 로고 및 메인플래시 끝 -->
<!-- 검색 시작1-2, 원본파일에서는 검색시작1-1이 이 주석 밑에 위치하고 있음-->
<div align="right">
<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>
<!-- 검색 끝 -->
</div>
<table width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
<!-- 좌측 여백 조절-->
<td width=10></td>
<!-- 좌측 여백 조절-->
<!-- 왼쪽 메뉴 -->
<td width=220 valign=top align=left>
<table>
<tr>
<td align="center">
<?=outlogin("b_basic"); // 외부 로그인 ?>
<div style='height:1px;'></div>
<!-- 오늘의 양식 시작-->
<?=latest("bible", bible, 1, 37); ?>
<!-- 오늘의 양식 끝-->
<div style='height:1px;'></div>
<!-- 수직 스크롤 갤러리 시작-->
<?=latest("rolling_blind", gal1, 5, 37); ?>
<!-- 수직 스크롤 갤러리 끝-->
<div style='height:1px;'></div>
<!-- 카렌다 시작 -->
<table width="190" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<?=$g4[path]?>/image/cal_top.gif" width="190" height="47" /></td>
</tr>
<tr>
<td background="<?=$g4[path]?>/image/cal_bg.gif"><? echo latest_schedule("calendar","sche","green"); ?></td>
</tr>
<tr>
<td><img src="<?=$g4[path]?>/image/cal_bottom.gif" width="190" height="16" /></td>
</tr>
</table>
<!-- 카렌다 끝 -->
<div style='height:1px;'></div>
<?=//poll("simple"); // 설문조사 ?>
<?=connect(); // 현재 접속자수 ?>
<?=visit("basic"); // 방문자수 ?>
<div style='height:1px;'></div>
<a href="<?=$g4[path]?>/all_com1.php"><img src="<?=$g4[path]?>/image/stati.gif" alt="글등록 현황" width="190" height="50" border="0" /></a>
</td>
</tr>
</table>
</td>
<!-- 좌측과 우측(메인) 여백조절하는 곳-->
<td width=10></td>
<!-- 좌측과 우측(메인) 여백조절하는 곳-->
<!-- 중간 -->
<td width=683 valign=top>
2. _head.php 전부
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.php");
?>
=====================================
그누보드 원본에서 내용 표시되는 부분만 손댔거든요. 에겅...
이걸 head.php 로 저장하세요.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
// 좌측과 우측 여백을 조정, 소스 제일 밑부분과 연관되어 있음
$table_width = 1000;
// 좌측과 우측 여백을 조정, 소스 제일 밑부분과 연관되어 있음
?>
<?
#######################################################
#head_1 head_2 ... 종류를 결정할 변수.
global $hvar;
#######################################################
?>
<!-- 로고 및 메인플래시 시작 --><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<table width="970" height="48" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="220" height="48"><a href="<?=$g4[path]?>/index.php" onFocus="this.blur()"><img src="<?=$g4[path]?>/image/logo.jpg" width="220" height="99" border="0" /></a></td>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="750" height="99">
<param name="movie" value="<?=$g4[path]?>/image/samil3.swf" />
<param name="quality" value="high" />
<embed src="<?=$g4[path]?>/image/samil3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="99"></embed>
</object></td>
</tr>
</table>
<table width="970" border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 한줄 방명록 시작-->
<td width="735"><?=latest("scroll_not_click_addname", visit, 10, 105); ?></td>
<!-- 한줄 방명록 끝-->
<td width="235"><!-- 검색 시작1-1 -->
<table width="235" align="right" cellpadding="0" cellspacing="0">
<form
action="javascript:fsearchbox_submit(document.fsearchbox);"
method="get" name="fsearchbox" id="fsearchbox">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input
type="hidden" value="wr_subject||wr_content" name="sfl" />
<input
type="hidden" value="and" name="sop" />
<tbody>
<tr>
<td width="58"><div align="right"><img height="20" src="img/search.gif"
width="57" /></div></td>
<td width="121"><input class="ed"
style="WIDTH: 121px; HEIGHT: 20px" maxlength="20" name="stx" maxlength="20" /></td>
<td align="right" width="60"><div align="right">
<input name="image" type="image"
src="img/search_button.gif" width="52" height="20"
border="0" />
</div></td>
</tr>
</tbody>
</form>
<tr>
<td></TBODY></td>
</tr>
</table>
<!-- 검색 시작1-1 --> </td>
</tr>
</table>
<!-- 로고 및 메인플래시 끝 -->
<!-- 검색 시작1-2, 원본파일에서는 검색시작1-1이 이 주석 밑에 위치하고 있음-->
<div align="right">
<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>
<!-- 검색 끝 -->
</div>
<table width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
<!-- 좌측 여백 조절-->
<td width=10></td>
<!-- 좌측 여백 조절-->
<!-- 왼쪽 메뉴 -->
<!-- ================================================== -->
<td width=220 valign=top align=left>
<table>
<!-- 헤드메뉴판단---------------------------------------- -->
<?
//기본적으로 1을 할당한다.
if(!$hvar)$hvar=1;
// ----------------------------//제1순위:그룹구분:
if($gr_id =='그룹에따라헤드분류') $hvar=1;
if($gr_id =='그룹에따라') $hvar=2;
// ----------------------------//제2순위:테이블구분:
if($bo_table=='게시판에따라') $hvar=2;
?>
<!-- ------------------------------------------ -->
<?//헤드메뉴판단
if($hvar !=0){ //그룹아이디가 있을경우만 해당하는 헤드를 출력.
$inc_head_file="$g4[path]/head_".$hvar.".php";
include_once("$inc_head_file");
}
?>
<!-- ------------------------------------------ -->
</table>
</td>
<!-- ================================================== -->
<!-- 좌측과 우측(메인) 여백조절하는 곳-->
<td width=10></td>
<!-- 좌측과 우측(메인) 여백조절하는 곳-->
<!-- 중간 -->
<td width=683 valign=top>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
// 좌측과 우측 여백을 조정, 소스 제일 밑부분과 연관되어 있음
$table_width = 1000;
// 좌측과 우측 여백을 조정, 소스 제일 밑부분과 연관되어 있음
?>
<?
#######################################################
#head_1 head_2 ... 종류를 결정할 변수.
global $hvar;
#######################################################
?>
<!-- 로고 및 메인플래시 시작 --><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<table width="970" height="48" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="220" height="48"><a href="<?=$g4[path]?>/index.php" onFocus="this.blur()"><img src="<?=$g4[path]?>/image/logo.jpg" width="220" height="99" border="0" /></a></td>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="750" height="99">
<param name="movie" value="<?=$g4[path]?>/image/samil3.swf" />
<param name="quality" value="high" />
<embed src="<?=$g4[path]?>/image/samil3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="99"></embed>
</object></td>
</tr>
</table>
<table width="970" border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 한줄 방명록 시작-->
<td width="735"><?=latest("scroll_not_click_addname", visit, 10, 105); ?></td>
<!-- 한줄 방명록 끝-->
<td width="235"><!-- 검색 시작1-1 -->
<table width="235" align="right" cellpadding="0" cellspacing="0">
<form
action="javascript:fsearchbox_submit(document.fsearchbox);"
method="get" name="fsearchbox" id="fsearchbox">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input
type="hidden" value="wr_subject||wr_content" name="sfl" />
<input
type="hidden" value="and" name="sop" />
<tbody>
<tr>
<td width="58"><div align="right"><img height="20" src="img/search.gif"
width="57" /></div></td>
<td width="121"><input class="ed"
style="WIDTH: 121px; HEIGHT: 20px" maxlength="20" name="stx" maxlength="20" /></td>
<td align="right" width="60"><div align="right">
<input name="image" type="image"
src="img/search_button.gif" width="52" height="20"
border="0" />
</div></td>
</tr>
</tbody>
</form>
<tr>
<td></TBODY></td>
</tr>
</table>
<!-- 검색 시작1-1 --> </td>
</tr>
</table>
<!-- 로고 및 메인플래시 끝 -->
<!-- 검색 시작1-2, 원본파일에서는 검색시작1-1이 이 주석 밑에 위치하고 있음-->
<div align="right">
<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>
<!-- 검색 끝 -->
</div>
<table width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
<!-- 좌측 여백 조절-->
<td width=10></td>
<!-- 좌측 여백 조절-->
<!-- 왼쪽 메뉴 -->
<!-- ================================================== -->
<td width=220 valign=top align=left>
<table>
<!-- 헤드메뉴판단---------------------------------------- -->
<?
//기본적으로 1을 할당한다.
if(!$hvar)$hvar=1;
// ----------------------------//제1순위:그룹구분:
if($gr_id =='그룹에따라헤드분류') $hvar=1;
if($gr_id =='그룹에따라') $hvar=2;
// ----------------------------//제2순위:테이블구분:
if($bo_table=='게시판에따라') $hvar=2;
?>
<!-- ------------------------------------------ -->
<?//헤드메뉴판단
if($hvar !=0){ //그룹아이디가 있을경우만 해당하는 헤드를 출력.
$inc_head_file="$g4[path]/head_".$hvar.".php";
include_once("$inc_head_file");
}
?>
<!-- ------------------------------------------ -->
</table>
</td>
<!-- ================================================== -->
<!-- 좌측과 우측(메인) 여백조절하는 곳-->
<td width=10></td>
<!-- 좌측과 우측(메인) 여백조절하는 곳-->
<!-- 중간 -->
<td width=683 valign=top>
이건 head_1.php 로 저장 하십시요
계속 head_2 .........이렇게 늘리면 되겠죠.
링크가 잘못되어서 다시...올립니다...
<tr>
<td align="center">
<?=outlogin("b_basic"); // 외부 로그인 ?>
<div style='height:1px;'></div>
<!-- 오늘의 양식 시작-->
<?=latest("bible", bible, 1, 37); ?>
<!-- 오늘의 양식 끝-->
<div style='height:1px;'></div>
<!-- 수직 스크롤 갤러리 시작-->
<?=latest("rolling_blind", gal1, 5, 37); ?>
<!-- 수직 스크롤 갤러리 끝-->
<div style='height:1px;'></div>
<!-- 카렌다 시작 -->
<table width="190" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="<?echo"$g4[path]/index.php?hvar=1";?>">헤드원링크1</a></td>
</tr>
<tr>
<td><a href="<?echo"$g4[path]/index.php?hvar=2";?>">헤드원링크2</a></td>
</tr>
<tr>
<td><img src="<?=$g4[path]?>/image/cal_top.gif" width="190" height="47" /></td>
</tr>
<tr>
<td background="<?=$g4[path]?>/image/cal_bg.gif"><?echo latest_schedule("calendar","sche","green"); ?></td>
</tr>
<tr>
<td><img src="<?=$g4[path]?>/image/cal_bottom.gif" width="190" height="16" /></td>
</tr>
</table>
<!-- 카렌다 끝 -->
<div style='height:1px;'></div>
<?=poll("simple"); // 설문조사 ?>
<?=connect(); // 현재 접속자수 ?>
<?=visit("basic"); // 방문자수 ?>
<div style='height:1px;'></div>
<a href="<?=$g4[path]?>/all_com1.php"><img src="<?=$g4[path]?>/image/stati.gif" alt="글등록 현황" width="190" height="50"
border="0" ></a>
</td>
</tr>
계속 head_2 .........이렇게 늘리면 되겠죠.
링크가 잘못되어서 다시...올립니다...
<tr>
<td align="center">
<?=outlogin("b_basic"); // 외부 로그인 ?>
<div style='height:1px;'></div>
<!-- 오늘의 양식 시작-->
<?=latest("bible", bible, 1, 37); ?>
<!-- 오늘의 양식 끝-->
<div style='height:1px;'></div>
<!-- 수직 스크롤 갤러리 시작-->
<?=latest("rolling_blind", gal1, 5, 37); ?>
<!-- 수직 스크롤 갤러리 끝-->
<div style='height:1px;'></div>
<!-- 카렌다 시작 -->
<table width="190" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="<?echo"$g4[path]/index.php?hvar=1";?>">헤드원링크1</a></td>
</tr>
<tr>
<td><a href="<?echo"$g4[path]/index.php?hvar=2";?>">헤드원링크2</a></td>
</tr>
<tr>
<td><img src="<?=$g4[path]?>/image/cal_top.gif" width="190" height="47" /></td>
</tr>
<tr>
<td background="<?=$g4[path]?>/image/cal_bg.gif"><?echo latest_schedule("calendar","sche","green"); ?></td>
</tr>
<tr>
<td><img src="<?=$g4[path]?>/image/cal_bottom.gif" width="190" height="16" /></td>
</tr>
</table>
<!-- 카렌다 끝 -->
<div style='height:1px;'></div>
<?=poll("simple"); // 설문조사 ?>
<?=connect(); // 현재 접속자수 ?>
<?=visit("basic"); // 방문자수 ?>
<div style='height:1px;'></div>
<a href="<?=$g4[path]?>/all_com1.php"><img src="<?=$g4[path]?>/image/stati.gif" alt="글등록 현황" width="190" height="50"
border="0" ></a>
</td>
</tr>
어렵나요?
게시판 설정에서 상단에 _head.php 하단에 _tail.php 하시면 되구요..
_head_1.php 는 만들필요가 없습니다.
head.php 하나에서 변수에따라 head_1.php head_2.php 이렇케
불러오면 됩니다.
게시판 설정에서 상단에 _head.php 하단에 _tail.php 하시면 되구요..
_head_1.php 는 만들필요가 없습니다.
head.php 하나에서 변수에따라 head_1.php head_2.php 이렇케
불러오면 됩니다.
아무리해도 안되던 것이 한 방에!
오달수님, 감동 먹었습니다.
이재필님, 유로비전님께도 감사하구요,
프로그래머에 대한 동경이 항상 있었는데 이런 경우를 겪게 되니 더 절실해지고 또 존경스럽습니다.
도와주신 분들 모두 정말 감사합니다. ^____^
오달수님, 감동 먹었습니다.
이재필님, 유로비전님께도 감사하구요,
프로그래머에 대한 동경이 항상 있었는데 이런 경우를 겪게 되니 더 절실해지고 또 존경스럽습니다.
도와주신 분들 모두 정말 감사합니다. ^____^
^_mm_^