미채택 완료

모바일 최신글 링크

안녕하세요.

모바일에서 

최신글을 들고 오는데.

 

<a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>" style="color:#41b5ce;">+ 전체보기</a> 

이렇게 했는데요.

 

갑자기 bo_table이 인식이 안되는데 

왜그러는걸까요?
 

Copy
<?phpif (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가include_once(G5_LIB_PATH.'/thumbnail.lib.php');  if (!$width) $width = 120;if (!$height) $height = 80;if (!$content_length1) $content_length1 = 39;if (!$content_length2) $content_length2 = 50 ; add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0); ?> <div class="lts">	<!-- <h3><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject; ?></a></h3> --><ul class="latest-zinex"<?php if ($wrap_width) { echo ' style="width:'.$wrap_width.'px;"'; } ?>><?php for ($i=0; $i<count($list); $i++) { 			$thumb = $list[$i]['thumb'];			if($thumb['src']) {				$img_content = '<a href="'.$list[$i]['href'].'"><img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width='.$width.' height='.$height.' class="img"></a>';			} else {				$img_content = '<img src="/theme/danakka/skin/latest/webzine/img/1.jpg" class="img">';			}echo $write_table; 	?><li>	<?php echo $img_content; ?>	<div class="article" style="min-height:<?php echo $height; ?>px; margin-left:<?php echo $width+10; ?>px;">		<span class="board_tt">[&nbsp<?php echo $list[$i]['wr_name']; ?>&nbsp]</span>		<span class="name"><?php echo $list[$i]['bo_subject']; ?></span>		<strong class="title"><a href="<?php echo $list[$i]['href']; ?>"><?php echo cut_str(preg_replace("/&nbsp;/", "", strip_tags($list[$i]['subject'])), $content_length1); ?></a></strong>		<div class="co"><a href="<?php echo $list[$i]['href']; ?>"><?=cut_str(strip_tags($list[$i]['wr_content']),43,'...')?> </a></div>	</div></li><?php}if (count($list) == 0) { //게시물이 없을 때  ?>	<li class="nodata">게시물이 없습니다.</li><?php }  ?></ul> <a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>" style="color:#41b5ce;">+ 전체보기</a> </div>
|

답변 1개

최신글은 new.php 일거에요 확인해보세요 

답변을 작성하려면 로그인이 필요합니다.