초보자 질문드려요 ㅠㅠ 도와주세요 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

초보자 질문드려요 ㅠㅠ 도와주세요 정보

초보자 질문드려요 ㅠㅠ 도와주세요

본문

힘들게 통합검색을 달긴 달았는데,,

셀크기에 않맞게 너무 크네요,,ㅠㅠ

노프레임 제작중인데

조언좀 부탁드립니다..

******************************************************************



<?
$g4_path = "gnuboard4";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/head.sub.php");
?>
<html>
<head>
<title>Torrent korea :: 토렌트코리아</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<style type="text/css">
<!--
.style1 {
color: #FFFFFF;
font-family: "돋움", "돋움체", "바탕체", "굴림";
font-size: 12px;
}
.style4 {
font-family: "돋움", "돋움체", "바탕체", "굴림";
font-size: 12px;
color: #FFFF00;
}
.style5 {font-family: "돋움", "돋움체", "바탕체", "굴림"}
.style7 {font-family: "돋움", "돋움체", "바탕체", "굴림"; font-size: 12px; }
.style8 {color: #FFFF00}
.style15 {
font-size: 11px;
font-family: "돋움", "돋움체", "바탕체", "굴림";
}
.style16 {color: #FFFF00; font-family: "돋움", "돋움체", "바탕체", "굴림";}
.style18 {color: #FFFFFF}
.style23 {font-size: 12px}
a:visited {text-decoration:none;}
a:link {text-decoration:none;}
a:hover {text-decoration:underline;}
a:active {text-decoration:none;}
-->
</style>
<script language="javascript">
<!--즐겨찾기 스크립트
function bookmark(){
window.external.AddFavorite('http://www.torrentkorea.com/', 'Torrent korea :: 토렌트코리아')
}
//스크립트 끝-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
  <!-- ImageReady Slices (토렌트코리아.psd) -->
  <table id="__01" width="820" height="912" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="3">
<table width="820" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="430"><?=outlogin("garoauto")?></td>
    <td width="206" align="left"></td>
    <td width="184" align="left"><a href="javascript:bookmark()"><img src="http://www.torrentkorea.com/images/01.gif" alt="토렌트 코리아 즐겨찾기 추가" width="184" height="22"><style>IMG {border: none;}</style></a></td>
  </tr>
</table></td>
  </tr>
   
    <tr>
      <td colspan="3">
        <table id="__01" width="820" height="202" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td>
              <img src="http://www.torrentkorea.com/images/03_01.gif" width="8" height="8" alt=""></td>
  <td colspan="7">
    <img src="http://www.torrentkorea.com/images/03_02.gif" width="804" height="8" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/03_03.gif" width="8" height="8" alt=""></td>
  </tr>
          <tr>
            <td>
              <img src="http://www.torrentkorea.com/images/03_04.gif" width="8" height="23" alt=""></td>
  <td colspan="6" background="http://www.torrentkorea.com/images/03_05.gif">&nbsp;<span class="style1">비트토렌트?│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=t1" target="_self"><font color="#FFFFFF">자료실</font></a>│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=t2" target="_self"><font color="#FFFFFF">토렌트 정보공유</font></a>│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=t3" target="_self"><font color="#FFFFFF">토렌트파일 검색사이트</font></a>│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=t4" target="_self"><font color="#FFFFFF">질문&amp;답변</font></a></span></td>
  <td>
    <img src="http://www.torrentkorea.com/images/03_09.gif" width="102" height="23" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/03_10.gif" width="8" height="23" alt=""></td>
  </tr>
          <tr>
            <td>
              <img src="http://www.torrentkorea.com/images/03_11.gif" width="8" height="162" alt=""></td>
  <td align="center" valign="top" background="http://www.torrentkorea.com/images/03_12.gif"><p class="style7"><br>
    <span class="style16">영화 정보</span></p>
    <p class="style1">
              <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=y1" target="_self"><font color="#FFFFFF">한국영화</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=y2" target="_self"><font color="#FFFFFF">일본영화</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=y3" target="_self"><font color="#FFFFFF">중국영화</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=y4" target="_self"><font color="#FFFFFF">외국영화</font></a><br>
          <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=y5" target="_self"><font color="#FFFFFF">영화 스샷</font></a></p>     </td>
  <td align="center" valign="top" background="http://www.torrentkorea.com/images/03_13.gif"><p class="style5 style23"><br>
    <span class="style8">드라마 정보</span></p>
    <p class="style5 style18 style23"><a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=d1" target="_self"><font color="#FFFFFF">한국드라마</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=d2" target="_self"><font color="#FFFFFF">일본드라마</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=d3" target="_self"><font color="#FFFFFF">중국드라마</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=d4" target="_self"><font color="#FFFFFF">외국드라마</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=d5" target="_self"><font color="#FFFFFF">드라마 스샷</font></a></p></td>
  <td align="center" valign="top" background="http://www.torrentkorea.com/images/03_14.gif"><p class="style7 style5 style23"><br>
    <span class="style8">스포츠 정보</span></p>
    <p class="style7 style5 style18 style23"><a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=s1" target="_self"><font color="#FFFFFF">축구</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=s2" target="_self"><font color="#FFFFFF">농구</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=s3" target="_self"><font color="#FFFFFF">야구</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=s4" target="_self"><font color="#FFFFFF">이종격투</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=s5" target="_self"><font color="#FFFFFF">프로 레슬링</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=s6" target="_self"><font color="#FFFFFF">스포츠 스샷</font></a></p>    </td>
  <td align="center" valign="top" background="http://www.torrentkorea.com/images/03_15.gif"><p class="style7 style5 style23"><br>
    <span class="style8">게임 정보</span></p>
    <p class="style7 style5 style18 style23"><a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=g1" target="_self"><font color="#FFFFFF">XBOX</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=g2" target="_self"><font color="#FFFFFF">Nintendo</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=g3" target="_self"><font color="#FFFFFF">PS</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=g4" target="_self"><font color="#FFFFFF">PC</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=g5" target="_self"><font color="#FFFFFF">Emul</font></a><br>
      <span class="style23"><a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=g6" target="_self"><font color="#FFFFFF">게임 스샷</font></a></span></p></td>
  <td align="center" valign="top" background="http://www.torrentkorea.com/images/03_16.gif"><p class="style7 style5 style23"><br>
    <span class="style8">음악 정보</span></p>
    <p class="style7 style5 style18 style23"><a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=m1" target="_self"><font color="#FFFFFF">한국음악</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=m2" target="_self"><font color="#FFFFFF">일본음악</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=m3" target="_self"><font color="#FFFFFF">중국음악</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=m4" target="_self"><font color="#FFFFFF">외국음악</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=m5" target="_self"><font color="#FFFFFF">앨범 스샷</font></a></p></td>
  <td align="center" valign="top" background="http://www.torrentkorea.com/images/03_17.gif"><p class="style7 style5 style23"><br>
    <span class="style8">애니메이션 정보</span></p>
    <p class="style7 style5 style23 style18"><a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=a1" target="_self"><font color="#FFFFFF">애니메이션</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=a2" target="_self"><font color="#FFFFFF">만화책</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=a3" target="_self"><font color="#FFFFFF">애니메이션 스샷</font></a></p></td>
  <td align="center" valign="top" background="http://www.torrentkorea.com/images/03_18.gif"><p class="style4 style5"><br>
    PC 정보</p>
    <p class="style4 style5 style18"><a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=p1" target="_self"><font color="#FFFFFF">소프트웨어</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=p2" target="_self"><font color="#FFFFFF">하드웨어</font></a><br>
      <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=p3" target="_self"><font color="#FFFFFF">해킹</font></a><br>
      <span class="style23"><a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=p4" target="_self"><font color="#FFFFFF">PC 스샷</font></a></span></p></td>
  <td>
    <img src="http://www.torrentkorea.com/images/03_19.gif" width="8" height="162" alt=""></td>
  </tr>
          <tr>
            <td>
              <img src="http://www.torrentkorea.com/images/03_20.gif" width="8" height="9" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/03_21.gif" width="108" height="9" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/03_22.gif" width="114" height="9" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/03_23.gif" width="121" height="9" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/03_24.gif" width="116" height="9" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/03_25.gif" width="121" height="9" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/03_26.gif" width="122" height="9" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/03_27.gif" width="102" height="9" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/03_28.gif" width="8" height="9" alt=""></td>
  </tr>
  </table></td>
  </tr>
    <tr>
      <td>
        <img src="http://www.torrentkorea.com/images/04.gif" width="120" height="28" alt=""></td>
    <td colspan="2"><?=visit("gil_counter")?></td>
    </tr>
    <tr>
      <td colspan="3">
        <table id="__01" width="820" height="63" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td colspan="2">
              <img src="http://www.torrentkorea.com/images/06_01.gif" width="410" height="8" alt=""></td>
  <td colspan="3">
    <img src="http://www.torrentkorea.com/images/06_02.gif" width="410" height="8" alt=""></td>
  </tr>
          <tr>
            <td background="http://www.torrentkorea.com/images/06_03.gif">&nbsp;</td>
  <td colspan="2" bgcolor="#33C0F4"><p class="style1"><a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=c1" target="_self"><font color="#FFFFFF">자유게시판</font></a>│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=c2" target="_self"><font color="#FFFFFF">찌질이</font></a>│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=c3" target="_self"><font color="#FFFFFF">공포</font></a>│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=c4" target="_self"><font color="#FFFFFF">유머</font></a>│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=c5" target="_self"><font color="#FFFFFF">패션</font></a>│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=c6" target="_self"><font color="#FFFFFF">내사진</font></a>│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=c7" target="_self"><font color="#FFFFFF">친구사진</font></a>│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=c8" target="_self"><font color="#FFFFFF">즐딸</font></a><br>
    <br>
    <a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=c9" target="_self"><font color="#FFFFFF">게시판지기 신청</font></a>│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=c10" target="_self"><font color="#FFFFFF">게시판 추가건의</font></a></p>     </td>
    <td>
      <img src="http://www.torrentkorea.com/images/06_05.gif" width="1" height="45" alt=""></td>
  <td background="http://www.torrentkorea.com/images/06_06.gif">&nbsp;</td>
  </tr>
          <tr>
            <td>
              <img src="http://www.torrentkorea.com/images/06_07.gif" width="8" height="9" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/06_08.gif" width="402" height="9" alt=""></td>
  <td colspan="2">
    <img src="http://www.torrentkorea.com/images/06_09.gif" width="403" height="9" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/06_10.gif" width="7" height="9" alt=""></td>
  </tr>
          <tr>
            <td>
              <img src="http://www.torrentkorea.com/images/sp.gif" width="8" height="1" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/sp.gif" width="402" height="1" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/sp.gif" width="402" height="1" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/sp.gif" width="1" height="1" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/sp.gif" width="7" height="1" alt=""></td>
  </tr>
  </table></td>
  </tr>
    <tr>
      <td colspan="3"><table width="820" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="1" height="107"></td>
          <td width="818"><table width="489" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="100"><?

//if (!$stx) alert("검색어가 없습니다.");

$g4[title] = "검색 : " . $stx;
if ($stx)
{
    //$stx = trim($stx);
    $stx = preg_replace("/\//", "\/", trim($stx));
    $sop = strtolower($sop);
    if (!$sop || !($sop == "and" || $sop == "or")) $sop = "and"; // 연산자 and , or
    if (!$srows) $srows = 10; // 한페이지에 출력하는 검색 행수

    unset($g4_search[tables]);
    unset($g4_search[read_level]);
    $sql = " select gr_id, bo_table, bo_read_level from $g4[board_table] where bo_use_search = '1' and bo_list_level <= '$member[mb_level]' ";
    //            and bo_read_level <= '$member[mb_level]' ";
    if ($gr_id)
        $sql .= " and gr_id = '$gr_id' ";
    if ($onetable) // 하나의 게시판만 검색한다면
        $sql .= " and bo_table = '$onetable' ";
    $sql .= " order by bo_order_search, gr_id, bo_table ";
    $result = sql_query($sql);
    for ($i=0; $row=sql_fetch_array($result); $i++)
    {
        if ($is_admin != "super")
        {
            // 그룹접근 사용에 대한 검색 차단
            $sql2 = " select gr_use_access, gr_admin from $g4[group_table] where gr_id = '$row[gr_id]' ";
            $row2 = sql_fetch($sql2);
            // 그룹접근을 사용한다면
            if ($row2[gr_use_access])
            {
                // 그룹관리자가 있으며 현재 회원이 그룹관리자라면 통과
                if ($row2[gr_admin] && $row2[gr_admin] == $member[mb_id])
                    ;
                else
                {
                    $sql3 = " select count(*) as cnt from $g4[group_member_table] where gr_id = '$row[gr_id]' and mb_id = '$member[mb_id]' and mb_id <> '' ";
                    $row3 = sql_fetch($sql3);
                    if (!$row3[cnt])
                        continue;
                }
            }
        }
        $g4_search[tables][] = $row[bo_table];
        $g4_search[read_level][] = $row[bo_read_level];
    }

    $search_query = "sfl=".urlencode($sfl)."&stx=".urlencode($stx)."&sop=$sop";


    $text_stx = get_text(stripslashes($stx));

    $op1 = "";

    // 검색어를 구분자로 나눈다. 여기서는 공백
    $s = explode(" ", $stx);

    // 검색필드를 구분자로 나눈다. 여기서는 +
    $field = explode("||", trim($sfl));

    $str = "(";
    for ($i=0; $i<count($s); $i++)
    {
        //$search_str = strtolower($s[$i]);
        $search_str = $s[$i];
        $str .= $op1;
        $str .= "(";
       
        $op2 = "";
        for ($k=0; $k<count($field); $k++) // 필드의 수만큼 다중 필드 검색 가능 (필드1+필드2...)
        {
            $str .= $op2;
            switch ($field[$k])
            {
                case "mb_id" :
                case "mb_name" :
                    $str .= "$field[$k] = '$s[$i]'";
                    break;
                default :
                    if (preg_match("/[a-zA-Z]/", $search_str))
                        $str .= "INSTR(LOWER($field[$k]), LOWER('$search_str'))";
                    else
                        $str .= "INSTR($field[$k], '$search_str')";
                    break;
            }
            $op2 = " or ";
        }
        $str .= ")";

        $op1 = " $sop ";

        // 인기검색어
        $sql = " insert into $g4[popular_table] set pp_word = '$search_str', pp_date = '$g4[time_ymd]', pp_ip = '$_SERVER[REMOTE_ADDR]' ";
        sql_query($sql, FALSE);
    }
    $str .= ")";

    //$sql_search = $str . " and wr_option not like '%secret%' "; // 비밀글은 제외
    $sql_search = $str;

    $str_board_list = "";
    $board_count = 0;

    $time1 = get_microtime();

    $total_count = 0;
    for ($i=0; $i<count($g4_search[tables]); $i++)
    {
        $tmp_write_table  = $g4[write_prefix] . $g4_search[tables][$i];
       
        $sql = " select wr_id from $tmp_write_table where $sql_search ";
        $result = sql_query($sql, false);
        $row[cnt] = @mysql_num_rows($result);

        //$sql = " select count(*) as cnt from $tmp_write_table where $sql_search ";
        //$row = sql_fetch($sql);

        $total_count += $row[cnt];
        if ($row[cnt])
        {
            $board_count++;
            $search_table[] = $g4_search[tables][$i];
            $read_level[]  = $g4_search[read_level][$i];
            $search_table_count[] = $total_count;

            $sql2 = " select bo_subject from $g4[board_table] where bo_table = '{$g4_search[tables][$i]}' ";
            $row2 = sql_fetch($sql2);
            $str_board_list .= "<li><a href='$_SERVER[PHP_SELF]?$search_query&gr_id=$gr_id&onetable={$g4_search[tables][$i]}'>$row2[bo_subject]</a> ($row[cnt])";
        }
    }

    $rows = $srows;
    $total_page  = ceil($total_count / $rows);  // 전체 페이지 계산
    if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
    $from_record = ($page - 1) * $rows; // 시작 열을 구함

    for ($i=0; $i<count($search_table); $i++)
    {
        if ($from_record < $search_table_count[$i])
        {
            $table_index = $i;
            $from_record = $from_record - $search_table_count[$i-1];
            break;
        }
    }

    $bo_subject = array();
    $list = array();

    $k=0;
    for ($idx=$table_index; $idx<count($search_table); $idx++)
    {
        $sql = " select bo_subject from $g4[board_table] where bo_table = '$search_table[$idx]' ";
        $row = sql_fetch($sql);
        $bo_subject[$idx] = $row[bo_subject];

        $tmp_write_table = $g4[write_prefix] . $search_table[$idx];

        $sql = " select * from $tmp_write_table where $sql_search order by wr_id desc limit $from_record, $rows ";
        $result = sql_query($sql);
        for ($i=0; $row=sql_fetch_array($result); $i++)
        {
            // 검색어까지 링크되면 게시판 부하가 일어남
            $list[$idx][$i] = $row;
            $list[$idx][$i][href] = "./board.php?bo_table=$search_table[$idx]&wr_id=$row[wr_parent]";

            if ($row[wr_is_comment])
            {
                $link .= "#c{$row[wr_id]}";
                $sql2 = " select wr_subject, wr_option from $tmp_write_table where wr_id = '$row[wr_parent]' ";
                $row2 = sql_fetch($sql2);
                //$row[wr_subject] = $row2[wr_subject];
                $row[wr_subject] = get_text($row2[wr_subject]);
            }

            // 비밀글은 검색 불가
            if (strstr($row[wr_option].$row2[wr_option], "secret"))
                $row[wr_content] = "[비밀글 입니다.]";

            $subject = $row[wr_subject];
            if (strstr($sfl, "wr_subject"))
                $subject = search_font($stx, $subject);

            if ($read_level[$idx] <= $member[mb_level])
            {
                $content = cut_str(get_text($row[wr_content]),300,"…");
                if (strstr($sfl, "wr_content"))
                    $content = search_font($stx, $content);
            }
            else
                $content = '';

            $list[$idx][$i][subject] = $subject;
            $list[$idx][$i][content] = $content;
            $list[$idx][$i][name] = get_sideview($row[mb_id], cut_str($row[wr_name], $config[cf_cut_name]), $row[wr_email], $row[wr_homepage]);
           
            $k++;
            if ($k >= $rows)
                break;
        }
        sql_free_result($result);
       
        if ($k >= $rows)
            break;

        $from_record = 0;
    }

    $write_pages = get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$search_query&gr_id=$gr_id&srows=$srows&onetable=$onetable&page=");

    echo "<script language=\"javascript\" src=\"$g4[path]/js/sideview.js\"></script>";
}

$group_select = "<select id='gr_id' name='gr_id' class=select><option value=''>전체 분류";
$sql = " select gr_id, gr_subject from $g4[group_table] 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>";

if (!$sfl) $sfl = "wr_subject";
if (!$sop) $sop = "or";

$search_skin_path = "$g4[path]/skin/search/$config[cf_search_skin]";
include_once("$search_skin_path/search.skin.php");

?></td>
              <td width="223">&nbsp;</td>
            </tr>
          </table></td>
          <td width="1"></td>
        </tr>
        <tr>
          <td width="1" bgcolor="#00CCFF"></td>
          <td width="818" height="409"></td>
          <td width="1" bgcolor="#00CCFF"></td>
        </tr>
        <tr>
          <td height="2" colspan="3" bgcolor="#00CCFF"></td>
          </tr>
       
      </table></td>
    </tr>
    <tr>
      <td colspan="3">
        <table id="__01" width="820" height="36" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td>
              <img src="http://www.torrentkorea.com/images/08_01.gif" width="20" height="8" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/08_02.gif" width="150" height="8" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/08_03.gif" width="249" height="8" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/08_04.gif" width="203" height="8" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/08_05.gif" width="177" height="8" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/08_06.gif" width="21" height="8" alt=""></td>
  </tr>
          <tr>
            <td>
              <img src="http://www.torrentkorea.com/images/08_07.gif" width="20" height="20" alt=""></td>
  <td colspan="4" align="center" background="http://www.torrentkorea.com/images/08_08.gif"><span class="style1">토렌트 코리아 소개│이용약관│개인정보 보호정책│청소년 보호정책│ 이메일주소 무단수집 거부│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=k1" target="_self"><font color="#FFFFFF">제휴문의</font></a>│<a href="http://darkhyde.x-y.net/gnuboard4/bbs/board.php?bo_table=k2" target="_self"><font color="#FFFFFF">광고문의</font></a></span></td>
  <td>
    <img src="http://www.torrentkorea.com/images/08_12.gif" width="21" height="20" alt=""></td>
  </tr>
          <tr>
            <td>
              <img src="http://www.torrentkorea.com/images/08_13.gif" width="20" height="8" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/08_14.gif" width="150" height="8" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/08_15.gif" width="249" height="8" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/08_16.gif" width="203" height="8" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/08_17.gif" width="177" height="8" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/08_18.gif" width="21" height="8" alt=""></td>
  </tr>
  </table></td>
  </tr>
    <tr>
      <td>
        <img src="http://www.torrentkorea.com/images/sp.gif" width="120" height="1" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/sp.gif" width="64" height="1" alt=""></td>
  <td>
    <img src="http://www.torrentkorea.com/images/sp.gif" width="636" height="1" alt=""></td>
    </tr>
    <tr>
      <td colspan="3" align="center"><span class="style15">Copyright ⓒ 2008 Torrent korea.com All rights reserved</span></td>
    </tr>
  </table>
  <!-- End ImageReady Slices -->
</div>
</body>
</html>
<?
include_once("$g4[path]/tail.sub.php");
?>
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로