검색결과시 이미지 정렬을 가로로 뿌려지게 하려면? > 그누4 질문답변

그누4 질문답변

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

검색결과시 이미지 정렬을 가로로 뿌려지게 하려면? 정보

검색결과시 이미지 정렬을 가로로 뿌려지게 하려면?

본문

스킨 디렉토리에서 여기에서 어케 수정해야 검색결과값을 가로로 뿌려지게 하는지 알려주시면
정말 정말 감사하겠습니다..ㅡㅜ

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

<table align=center width=95% cellpadding=2 cellspacing=0>
<form name=fsearch method=get action="javascript:fsearch_submit(document.fsearch);">
<input type="hidden" name="srows" value="<?=$srows?>">
<tr>
    <td align=center>
        <?=$group_select?>
        <script language="JavaScript">document.getElementById("gr_id").value = "<?=$gr_id?>";</script>

        <select name=sfl class=select>
        <option value="wr_subject||wr_content||wr_1||wr_2||wr_3||wr_4||wr_5||wr_6||wr_7||wr_8||wr_9||wr_10">통합검색</option>
        <option value="wr_3">촬영날짜</option>
        <option value="wr_4">촬영기자</option>
        <option value="wr_5">사진DB 고유시리얼</option>
        <option value="wr_subject||wr_content">제목+내용</option>
        <option value="wr_subject">제목</option>
        <option value="wr_content">내용</option>
        <option value="mb_id">회원아이디</option>
        <option value="wr_name">이름</option>
        </select>

        <input type=text name=stx maxlength=20 required itemname="검색어" value='<?=$text_stx?>'>

        <input type=submit value=" 검 색 ">

        <script language="javascript">
        document.fsearch.sfl.value = "<?=$sfl?>";

        function fsearch_submit(f)
        {
            /*
            // 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
            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 = "";
            f.submit();
        }
        </script>
    </td>
</tr>
<tr>
    <td align=center>
        연산자 &nbsp;
        <input type="radio" name="sop" value="or" <?=($sop == "or") ? "checked" : "";?>>OR &nbsp;
        <input type="radio" name="sop" value="and" <?=($sop == "and") ? "checked" : "";?>>AND
    </td>
</tr>
</form>
</table>
<p>


<table align=center width=100% cellpadding=2 cellspacing=0>
<tr>
    <td style='word-break:break-all;' valign='top'>
<table cellpadding=0 cellspacing=0>
        <tr>         
          <td colspan=3>
<nobr>
        <?
        if ($stx)
        {
            echo "<ul type=circle><li><b>검색된 게시판 리스트</b> (<b>{$board_count}</b>개의 게시판, <b>".number_format($total_count)."</b>개의 게시글, <b>".number_format($page)."/".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>";
                echo $str_board_list;
                echo "</ul></ul>";
            }
            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}'>{$bo_subject[$idx]}</u></a>에서의 검색결과</b></ul>";
            $comment_href = "";
            for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++)
            {
                echo "<ul type=square><li style='line-height:130%;'>";
                if ($list[$idx][$i][wr_is_comment])
                {
                    echo "<font color=999999>[코멘트]</font> ";
                    $comment_href = "#c_".$list[$idx][$i][wr_id];
                }
                echo"<span style='font-size:11pt;'><b>";
                echo $list[$idx][$i][subject];
                echo"</b></span>";               
                echo "</a> [<a href='{$list[$idx][$i][href]}{$comment_href}' target=_blank>새창</a>]";
                echo "<br>";
                echo "<br>";
                echo "<font color='#ED2453'><b>사진DB 고유시리얼</b></font> : {$list[$idx][$i][wr_5]}";
                echo "<br>";
                echo "<font color='#ED2453'><b>촬영날짜</b></font> : {$list[$idx][$i][wr_3]}";               
                echo "<br>";
                echo "<a href='{$list[$idx][$i][href]}{$comment_href}'>";
                //이미지 출력 시작
                $img=$list[$idx][$i][wr_id];
                $roo = sql_fetch(" select bf_file from $g4[board_file_table] where bo_table = '$search_table[$idx]' and wr_id = '$img' and bf_no = '0' ");

if (preg_match("/\.($config[cf_image_extension])$/i", $roo[bf_file]))
                $imgser = "<img src='$g4[path]/data/file/$search_table[$idx]/$roo[bf_file]'  width=130 border=0>";
                // 여기 까지 추가
                echo "<a href='{$list[$idx][$i][href]}{$comment_href}'>";
              echo $imgser;                  // 요거두  추가
                //이미지 출력 끝               
               
                //echo $list[$idx][$i][content];
                echo "<br><font color=#999999>{$list[$idx][$i][wr_datetime]}</font><br>";
                echo "사진DB 작성자 :";               
                echo $list[$idx][$i][name];
                echo "</ul>";
                ?>
   
    </nobr><? } ?></td>
      </td>
      </tr>
  <tr>
    <td><? }?></td>
  </tr>
        </table></td>
  </tr>


 <tr><td><p align=center><?=$write_pages?></td></tr></table>

댓글 전체

전체 6 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT