total 셀렉트박스를 없애고 싶은데...... 정보
total 셀렉트박스를 없애고 싶은데......본문
search.php 페이지를 수정하려하는데
<?//=$group_select?>
<?
$group_select = "<select id='gr_id' name='gr_id' class=select><option value=''>Total";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id not in ('banner','html') order by gr_id ";
$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>";
echo $group_select;
?>
<?
$group_select = "<select id='gr_id' name='gr_id' class=select><option value=''>Total";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id not in ('banner','html') order by gr_id ";
$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>";
echo $group_select;
?>
이부분을 빼면 자꾸 에러가 발생하네요. 셀렉트박스를 없앨수 있는 방법은 없을까요?
주석처리해도 그렇고 뺴도 문제가 생기구 머리가 아프네요.
포인트 얼마안되지만 답변 부탁드릴꼐요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
<form name=fsearch method=get action="javascript:fsearch_submit(document.fsearch);">
<input type="hidden" name="srows" value="<?=$srows?>">
<tr>
<td width="3"><img src="<?=$search_skin_path?>/img/search_left.gif" alt=""></td>
<td style="background: transparent url(<?=$search_skin_path?>/img/search_bg.gif) repeat-x scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="center"></td>
<td style="background: transparent url(<?=$search_skin_path?>/img/search_bg.gif) repeat-x scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" height="30">
<form name=fsearch method=get action="javascript:fsearch_submit(document.fsearch);">
<input type="hidden" name="srows" value="<?=$srows?>">
<tr>
<td width="3"><img src="<?=$search_skin_path?>/img/search_left.gif" alt=""></td>
<td style="background: transparent url(<?=$search_skin_path?>/img/search_bg.gif) repeat-x scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="center"></td>
<td style="background: transparent url(<?=$search_skin_path?>/img/search_bg.gif) repeat-x scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" height="30">
<?//=$group_select?>
<?
$group_select = "<select id='gr_id' name='gr_id' class=select><option value=''>Total";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id not in ('banner','html') order by gr_id ";
$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>";
echo $group_select;
?>
<script language="JavaScript">document.getElementById("gr_id").value = "<?=$gr_id?>";</script>
<input type="hidden" name="sfl" id='se_sfl'>
<img src="<?=$search_skin_path?>/img/cont.gif" alt="" style="margin: 0pt 10px 0pt 10px;" align="absmiddle">
<input type=text name=stx size='50' required itemname="검색어" value="<?=$text_stx?>">
<input type=image src='<?=$search_skin_path?>/img/btn_search.gif' align=absmiddle>
<script language="javascript">
document.fsearch.sfl.value = "<?=$sfl?>";
<script language="javascript">
document.fsearch.sfl.value = "<?=$sfl?>";
function fsearch_submit(f) {
f.action = "";
f.submit();
}
</script></td>
<td width="3"><img src="<?=$search_skin_path?>/img/search_right.gif" alt=""></td>
</tr>
</table>
</form>
<!-- 분류 끝 -->
f.action = "";
f.submit();
}
</script></td>
<td width="3"><img src="<?=$search_skin_path?>/img/search_right.gif" alt=""></td>
</tr>
</table>
</form>
<!-- 분류 끝 -->
<p>
<table align=center width=100% cellpadding=0 cellspacing=0>
<tr>
<td class='lh' style='text-align:justify; word-break:break-all;'>
<ul type=circle><li><b>검색된 게시판 리스트</b> (<b><?=number_format($total_count)?></b>개의 게시글, <?=number_format($page)?>/<b><?=number_format($total_page)?></b> 페이지)</ul>
<?
if ($board_count) {
echo "<ul><ul type=square style='line-height:130%;'>";
if ($onetable)
echo "<li><a href='?$search_query&gr_id=$gr_id'>전체게시판 검색</a>";
} else {
echo "<ul style='line-height:130%;'><li>검색하지 않았거나, 검색된 자료가 하나도 없습니다.</ul>";
}
?>
<?
if ($board_count) {
echo "<ul><ul type=square style='line-height:130%;'>";
if ($onetable)
echo "<li><a href='?$search_query&gr_id=$gr_id'>전체게시판 검색</a>";
} else {
echo "<ul style='line-height:130%;'><li>검색하지 않았거나, 검색된 자료가 하나도 없습니다.</ul>";
}
?>
<?
$k=0;
for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++) {
echo "<ul type=circle><li><b><a href='./board.php?bo_table={$search_table[$idx]}&{$search_query}'><u>{$bo_subject[$idx]}</u></a>에서의 검색결과</b></ul>";
for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++) {
echo "<ul><ul type=square><li style='line-height:130%;'>";
$comment_href = "";
if ($list[$idx][$i][wr_comment] < 0) {
echo "<font color=999999>[코멘트]</font> ";
$comment_href = "#c_".$list[$idx][$i][wr_id];
}
echo "<a href='{$list[$idx][$i][href]}{$comment_href}' style='color:#0000CC;'><u><b>";
//echo $list[$idx][$i][subject];
echo strip_tags($list[$idx][$i][subject], "");
echo "</b></u></a> [<a href='{$list[$idx][$i][href]}{$comment_href}' target=_blank>새창</a>]<br>";
echo $list[$idx][$i][content];
echo "<br><font color=#999999>{$list[$idx][$i][wr_datetime]}</font> ";
echo $list[$idx][$i][name];
echo "</ul></ul>";
}
}
?>
$k=0;
for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++) {
echo "<ul type=circle><li><b><a href='./board.php?bo_table={$search_table[$idx]}&{$search_query}'><u>{$bo_subject[$idx]}</u></a>에서의 검색결과</b></ul>";
for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++) {
echo "<ul><ul type=square><li style='line-height:130%;'>";
$comment_href = "";
if ($list[$idx][$i][wr_comment] < 0) {
echo "<font color=999999>[코멘트]</font> ";
$comment_href = "#c_".$list[$idx][$i][wr_id];
}
echo "<a href='{$list[$idx][$i][href]}{$comment_href}' style='color:#0000CC;'><u><b>";
//echo $list[$idx][$i][subject];
echo strip_tags($list[$idx][$i][subject], "");
echo "</b></u></a> [<a href='{$list[$idx][$i][href]}{$comment_href}' target=_blank>새창</a>]<br>";
echo $list[$idx][$i][content];
echo "<br><font color=#999999>{$list[$idx][$i][wr_datetime]}</font> ";
echo $list[$idx][$i][name];
echo "</ul></ul>";
}
}
?>
<p align=center><?=$write_pages?>
</td></tr></table>
<br><br><br>
<br><br><br>
댓글 전체
<?//=$group_select?>
<?
$group_select = "<select id='gr_id' name='gr_id' class=select><option value=''>Total";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id not in ('banner','html') order by gr_id ";
$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>";
echo $group_select;
?>
<script language="JavaScript">document.getElementById("gr_id").value = "<?=$gr_id?>";</script>
이걸 빼보고 해보셨나요?
<?
$group_select = "<select id='gr_id' name='gr_id' class=select><option value=''>Total";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id not in ('banner','html') order by gr_id ";
$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>";
echo $group_select;
?>
<script language="JavaScript">document.getElementById("gr_id").value = "<?=$gr_id?>";</script>
이걸 빼보고 해보셨나요?