게시물 새창 띄우기.... > 그누4 질문답변

그누4 질문답변

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

게시물 새창 띄우기.... 정보

게시물 새창 띄우기....

본문

소스 전문을 띄워드릴께요...
스킨 자료실에...구직 스킨중 최신글 스킨이거든요....
 
 
============아래 소스 ======================
 
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols  = 3; //  이미지 가로갯수 //  이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h  = 10; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
?>
<style type="text/css">
<!--
.data  { font-family:돋움; font-size:8pt; color:#999999; }
-->
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr><? for ($i=0; $i<count($list); $i++) { if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; } ?>
    <td width="<?=$col_width?>%" align="center" valign='top'>
      <table cellpadding=0 cellspacing=0 border=0 width="100%">
        <tr>
          <td align='center'>
            <table align="center" cellpadding="0" cellspacing="0" border="0">
              <tr bgcolor="#FFFFFF">
                <td colspan=4></td>
              </tr>
              <tr>
                <td align="center" valign='top'>
                  <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="6" height="6"><img src="<?=$latest_skin_path?>/img/guin009_01.gif" width="6" height="6"></td>
                      <td background="<?=$latest_skin_path?>/img/guin009_02.gif"></td>
                      <td width="6"><img src="<?=$latest_skin_path?>/img/guin009_04.gif" width="5" height="6"></td>
                    </tr>
                    <tr>
                      <td background="<?=$latest_skin_path?>/img/guin009_05.gif"></td>
                      <td valign="top">
                        <?
$ex1_filed = explode("|", $list[$i][wr_1]);
$ext1_00   = explode(" ", $ex1_filed[0]);
$ext1_01   = explode(" ", $ex1_filed[1]);
$ext1_02   = explode(" ", $ex1_filed[2]);
$ex3_filed = explode("|", $list[$i][wr_3]);
$ext3_08   = explode(" ", $ex3_filed[8]);
     $title = get_text($list[$i][wr_subject]);
    $content = cut_str(get_text($list[$i][wr_content]), 75);
    $img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
    if (!file_exists($img) || !$list[$i][file][0][file])
    $img = "$latest_skin_path/img/noimage.gif";
    $href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
 
  echo "<table width='100%' border='0' cellspacing='0' cellpadding='2'><tr><td width='70' align='center' valign='top'><a href='{$list[$i]['href']}', targe='_blank'><img src='{$img}' width='70' height='85' border='0' title='$title'></a></td>";
  echo "<td valign=top><table width='100%' border='0' cellspacing='0' cellpadding='4'><tr><td width=215>";
  echo "<a href='{$list[$i]['href']}', targe='_blank'><b><font color='#0099ff'>{$ext1_00[0]}</font></b> / {$ext1_01[0]} ({$ext1_02[0]}) / {$ext3_08[0]}</a>";
  echo "</td></tr><tr><td height='1' bgcolor='#f0f0f0'></td></tr><tr><td>";
  echo "<a href='{$list[$i]['href']}', targe='_blank'><font color='#ff6600'>{$list[$i][ca_name]}</font></a><br>{$list[$i]['wr_10']}";
  echo "</td></tr><tr><td height='1' bgcolor='#f0f0f0'></td></tr><tr><td>";
  echo "<a href='{$list[$i]['href']}', targe='_blank'><font style='font-family:돋움; font-size:9pt; color:#333333;'>{$list[$i]['subject']}</a><br>";
  echo "</td></tr></table></td>";
  echo "</tr></table>";
?>
                        <? if (count($list) == 0) { echo "게시물이 없습니다."; } ?>
                      </td>
                      <td background="<?=$latest_skin_path?>/img/guin009_07.gif"></td>
                    </tr>
                    <tr>
                      <td height="6"><img src="<?=$latest_skin_path?>/img/guin009_11.gif" width="6" height="6"></td>
                      <td background="<?=$latest_skin_path?>/img/guin009_12.gif"></td>
                      <td><img src="<?=$latest_skin_path?>/img/guin009_14.gif" width="5" height="6"></td>
                    </tr>
                  </table>
                </td>
                                <td></td>
                                <td></td>
                                <td></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td align='center' height="5"></td>
        </tr>
      </table>
</td>
<? } ?>
  </tr>
</table>
 
 
===========================  이상 ===========================
 
 
echo "<table width='100%' border='0' cellspacing='0' cellpadding='2'><tr><td width='70' align='center' valign='top'><a href='{$list[$i]['href']}', targe='_blank'><img src='{$img}' width='70' height='85' border='0' title='$title'></a></td>";
 
예를 들어 여기에서 ...<a href='{$list[$i]['href']}', targe='_blank'>   이렇게 타겟을 줘도 새창으로 뜨지 않네요..
새창으로 게시물만 나오게 해야될 이유가 있어서 그런데 자바스크립트 등을 찾아봐도 잘 않되네요 오류만 나오고..
힌트나 자세한 설명 해주시면 감사 하겠습니다..

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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