그룹갤러기 최신글에서 wr_1=1인건만 불러올려고 합니다

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
그룹갤러기 최신글에서 wr_1=1인건만 불러올려고 합니다

QA

그룹갤러기 최신글에서 wr_1=1인건만 불러올려고 합니다

본문

그룹갤러기 최신글에서 wr_1=1인건만 불러올려고 합니다 

 

 

 

<?

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

 

if(!$options) $options=4;

 

$cols  = $options; //  이미지 가로갯수 //  이미지 세로 갯수는 메인에서 지정(총 이미지 수)

$image_h  = 12; // 이미지 상하 간격

 

$col_width = (int)(99 / $cols);

 

$data_path = $g4[path]."/data/file/$bo_table";

$thumb_path = $data_path.'/thumb';

?>

<link rel="stylesheet" href="<?=$latest_skin_path?>/style.css" type="text/css" />

<link rel="stylesheet" href="<?=$latest_skin_path?>/basic.css" type="text/css" />

 

<!-- 이미지보이는 부분 시작 -->

<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">

 

<tr><td align='center'>

 

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td align='center'>

<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'>

<?

$image = $list[$i][file][0][file]; //원본

$img=$data_path. "/".$image;  //썸네일이 없을경우 원본출력

$thumb = $thumb_path. "/". $list[$i][wr_id];

 

 if ( file_exists($thumb) )

$img = $thumb;

 

$style = "style='font-family:돋움; font-size:9pt; color:#444444;' ";

if ($list[$i][icon_new]) {

$style = "style='font-family:돋움; font-size:9pt; color:#444444;' "; }

 $subject = "<span $style>".$list[$i][subject]."</span>"; //제목 글자수 자르기

$wr_hit  = $list[$i]['wr_hit'];

$wr_id  = $list[$i]['wr_id'];

//    if ($list[$i]['comment_cnt']) //코

//        $cmt = "({$list[$i]['comment_cnt']})";

 

$bg = "";  //새글? 

if ($list[$i][icon_new])

$bg="la_top_2.gif";

else

$bg="la_top_1.gif";

 

echo $list[$i][icon_reply] . " ";

?>

<div class="bl-wrap">

<ul>

<li class="bl-box">

<div class="bl">

<div class="bl-list">

<table width="210" border="0" align="center" cellpadding="0" cellspacing="0">

<tr><td align=center width="210" height="120">

<div style='float:left; border:1px solid #e3e3e3; background:#fff; padding:0px; font-size:0; line-height:0;'><a href="<?=$list[$i][href]?>"><img src="<?=$img?>" width="210" height="120" border="0"></a></div>

</td></tr>

<tr><td height='40' align=center>

<? if($list[$i][wr_1]==1){?>

<table width="210" border="0" cellspacing="0" cellpadding="0">

<tr><td height="23"><table width="100%" border="0" cellspacing="0" cellpadding="0">

 <tr>

<td><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&sfl=wr_1&stx=1"><img src="<?=$latest_skin_path?>/img/upso.gif" border='0'></a></td>

<td><a href="<?=$g4[path]?>/click.php?id=<?=$list[$i][wr_4]?>"><img src="<?=$latest_skin_path?>/img/pr.jpg" border='0'></a></td>

 </tr>

</table>

</td></tr>

</table>

<? } if($list[$i][wr_1]==2){?>

<table width="210" border="0" cellspacing="0" cellpadding="0">

<tr><td height="23"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&sfl=wr_1&stx=2"><img src="<?=$latest_skin_path?>/img/no_upso.jpg" border='0'></a></td></tr>

</table><? }?>

</td></tr>

<tr><td height="1" align=center bgcolor="#CCCCCC"></td></tr>

<tr><td align=center><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr><td height="24"><a href='<?=$list[$i][ca_name_href]?>'><span style="color:#e52518;font-weight:bold;font-size:13;"><?=$list[$i][ca_name]?></span></a></td></tr>

<tr><td height="24"><a href='<?=$list[$i][href]?>'><span style="color:#444444;font-size:13;font-weight:bold;"><?=$subject?></span></a></td></tr>

<tr><td height="24"><span style="color:#888888;font-size:13;">전화번호:</span><a href='<?=$list[$i][href]?>'><?=$list[$i][wr_2]?></a></td></tr>

</table></td></tr>

</table>

</div>

</div>

</li>

</ul>

</div>

<? }?>

<? 

$cnt = ($i%$cols); 

for ($k=$cnt; $k<$cols && $cnt; $k++) { 

echo "<td width=$col_width%> </td>"; 

}

?> 

 <? if ($i+1 < count($list)) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; } ?> 

 <? if (count($list) == 0) { echo "<td height=80 align=center>게시물이 없습니다.</td>"; } ?>

 </tr>

</table>

</td>

</tr>

</table>

</td></tr>

</table>

<!-- 이미지보이는 부분 끝 --> 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 0 | RSS
QA 내용 검색
  • 개별 목록 구성 제목 답변작성자조회작성일
  • 질문이 없습니다.

회원로그인

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