최신글 추출 급합니다.. 정보
최신글 추출 급합니다..본문
lastet.skin.php에서
echo "<tr><td align='center' height='25'>
<b> <span style='font-size:9pt;color:#F00'>[{$ext6_08}원]</b></span></a></td></tr>";
$ext6_08}원" 금액을 추출해야 하는데 안 먹이네요..
list.skin.php에서 이렇게 되어있습니다..
<td width="80"><font color='#F05500'><?=$ext6_08?> 만원</font></td>
lastet.skin.php에 적용소스를 어떻게 해야 할까요??
echo "<tr><td align='center' height='25'>
<b> <span style='font-size:9pt;color:#F00'>[{$ext6_08}원]</b></span></a></td></tr>";
$ext6_08}원" 금액을 추출해야 하는데 안 먹이네요..
list.skin.php에서 이렇게 되어있습니다..
<td width="80"><font color='#F05500'><?=$ext6_08?> 만원</font></td>
lastet.skin.php에 적용소스를 어떻게 해야 할까요??
댓글 전체
$ext6_08 을 어디서 함수로 가지고 오는건가요..? 일단
<?=$ext6_08?> 해보세요..
<span style='font-size:9pt;color:#F00'>[<?=$ext6_08?>원]</b></span>
<?=$ext6_08?> 해보세요..
<span style='font-size:9pt;color:#F00'>[<?=$ext6_08?>원]</b></span>
해 보았습니다..안되서
write skin은
<input class='field' name=ext6_08 style="text-align:left; WIDTH: 100px;" onkeyup="document.fwrite.ext6_08.value=PointComma(document.fwrite.ext6_08.value)" itemname="희망가격" required value="<?=$ext6_08?>">
list skin 은
<td width="80"><font color='#F05500'><?=$ext6_08?> 만원</font></td>
이렇습니다..
listet skin 상단에 다른 주석을 달아야 하나요??
아님 방법이라도..
write skin은
<input class='field' name=ext6_08 style="text-align:left; WIDTH: 100px;" onkeyup="document.fwrite.ext6_08.value=PointComma(document.fwrite.ext6_08.value)" itemname="희망가격" required value="<?=$ext6_08?>">
list skin 은
<td width="80"><font color='#F05500'><?=$ext6_08?> 만원</font></td>
이렇습니다..
listet skin 상단에 다른 주석을 달아야 하나요??
아님 방법이라도..
희망가격이 db 에 저장이 되는 건가요?
db에 저장된다면 필드 명을 알려주세요.
그리고 latest에서의 소스도 보여주세요.
db에 저장된다면 필드 명을 알려주세요.
그리고 latest에서의 소스도 보여주세요.
{$list[$i][ext6_08]}원
이것도 안 먹히네요..ㅠㅠ
이것도 안 먹히네요..ㅠㅠ
$ext6_08 이라는 변수는 아마두 그누보드 다른 필드에 여러개로 합쳐져서 저장된 값을
짤러 놓은것 같은데
list.skin.php 파일에 보시면 $ext6_08 변수에 값을 가져오는 부분이 있을꺼에요!
그 부분도 lastet.skin.php에서 선언을 해주셔야 합니다.
짤러 놓은것 같은데
list.skin.php 파일에 보시면 $ext6_08 변수에 값을 가져오는 부분이 있을꺼에요!
그 부분도 lastet.skin.php에서 선언을 해주셔야 합니다.
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<?
$ex2_filed = explode("|",$list[$i][wr_2]); //전화,핸드폰
$view_TEL = $ex2_filed[0] .") ". $ex2_filed[1] ."-".$ex2_filed[2];
$view_HP = $ex2_filed[3] .") ". $ex2_filed[4] ."-".$ex2_filed[5];
$ext2_06 = $ex2_filed[6]; //
$ext2_07 = $ex2_filed[7]; //
$ext2_08 = $ex2_filed[8]; //
$ext2_09 = $ex2_filed[9]; //
$ex6_filed = explode("|",$list[$i][wr_6]);
$ext6_00 = $ex6_filed[0]; // 제조사
$ext6_01 = $ex6_filed[1]; // 모델명
$ext6_02 = $ex6_filed[2]; // 상품상태
$ext6_03 = $ex6_filed[3]; // 수량
$ext6_04 = $ex6_filed[4]; // 사용기간
$ext6_05 = $ex6_filed[5]; // 구입가격
$ext6_06 = $ex6_filed[6]; // 거래방법
$ext6_07 = $ex6_filed[7]; // 거래상황
$ext6_08 = $ex6_filed[8]; // 희망가
?>
위에 "$ext6_08 = $ex6_filed[8]; // 희망가" 이 분을 넣으면 될까요??
<? for ($i=0; $i<count($list); $i++) { ?>
<?
$ex2_filed = explode("|",$list[$i][wr_2]); //전화,핸드폰
$view_TEL = $ex2_filed[0] .") ". $ex2_filed[1] ."-".$ex2_filed[2];
$view_HP = $ex2_filed[3] .") ". $ex2_filed[4] ."-".$ex2_filed[5];
$ext2_06 = $ex2_filed[6]; //
$ext2_07 = $ex2_filed[7]; //
$ext2_08 = $ex2_filed[8]; //
$ext2_09 = $ex2_filed[9]; //
$ex6_filed = explode("|",$list[$i][wr_6]);
$ext6_00 = $ex6_filed[0]; // 제조사
$ext6_01 = $ex6_filed[1]; // 모델명
$ext6_02 = $ex6_filed[2]; // 상품상태
$ext6_03 = $ex6_filed[3]; // 수량
$ext6_04 = $ex6_filed[4]; // 사용기간
$ext6_05 = $ex6_filed[5]; // 구입가격
$ext6_06 = $ex6_filed[6]; // 거래방법
$ext6_07 = $ex6_filed[7]; // 거래상황
$ext6_08 = $ex6_filed[8]; // 희망가
?>
위에 "$ext6_08 = $ex6_filed[8]; // 희망가" 이 분을 넣으면 될까요??
latest.skin.php 파일에도
이부분이 있을꺼에요
<? for ($i=0; $i<count($list); $i++) { ?>
그 다음줄에 다가 넣어주시고
<?
$ex6_filed = explode("|",$list[$i][wr_6]);
$ext6_08 = $ex6_filed[8]; // 희망가
?>
원래 소스 있던대로 해보세요~!
echo "<tr><td align='center' height='25'>
<b> <span style='font-size:9pt;color:#F00'>[{$ext6_08}원]</b></span></a></td></tr>";
이부분이 있을꺼에요
<? for ($i=0; $i<count($list); $i++) { ?>
그 다음줄에 다가 넣어주시고
<?
$ex6_filed = explode("|",$list[$i][wr_6]);
$ext6_08 = $ex6_filed[8]; // 희망가
?>
원래 소스 있던대로 해보세요~!
echo "<tr><td align='center' height='25'>
<b> <span style='font-size:9pt;color:#F00'>[{$ext6_08}원]</b></span></a></td></tr>";
원" 표시에서
이제 "[{ext6_08}]원" 이렇게 됩니다..
이제 "[{ext6_08}]원" 이렇게 됩니다..
용좌님!!
latest에서의 소스입니다
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 5; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$imgwidth=150; //표시할 이미지의 가로사이즈
$imgheight=150; //표시할 이미지의 세로사이즈
$image_h = 20; // 이미지 상하 간격
$col_width = (int)(100 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#F5F5F5">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="35" style="padding-left:10px;color:#333"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><b>>> <?=$board[bo_subject]?></b></a></td>
<td width="30" height="35" align="center" valign="middle"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><img src="<?=$latest_skin_path?>/img/btn_more.gif" alt="전체보기" border="0" title="전체보기" /></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="5"><!--여백--></td>
</tr>
<tr>
<td align="center" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?
shuffle($list);
for ($i=0; $i<count($list); $i++) {
$ex6_filed = explode("|",$list[$i][wr_6]);
$ext6_08 = $ex6_filed[8]; // 희망가
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">
<?
$list[$i][wr_12] = number_format($list[$i][wr_12]);
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
echo $list[$i][icon_reply] . " ";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td align='center' height='25'><a href='{$list[$i]['href']}'><span style='font-size:9pt;color:#333'><b>{$list[$i]['subject']}</span> </a></td></tr>";
echo "<tr><td valign='top' align='center'><a href='{$list[$i]['href']}'><img src='$img' width='{$imgwidth}' height='{$imgheight}' align='center' style='width:{$imgwidth}px;height:{$imgheight}px;border:1px solid #CECECE; padding:5px 0 5px 0'></a></td></tr>";
echo "<tr><td align='center' height='25'>
<b><span style='font-size:9pt;color:#F00'>[{ext6_08}]원</b></span></a></td></tr>";
echo "</table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%></td>";
}
?>
<? if (count($list) == 0) { echo "<td align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
</td>
</tr>
</table>
latest에서의 소스입니다
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 5; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$imgwidth=150; //표시할 이미지의 가로사이즈
$imgheight=150; //표시할 이미지의 세로사이즈
$image_h = 20; // 이미지 상하 간격
$col_width = (int)(100 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#F5F5F5">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="35" style="padding-left:10px;color:#333"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><b>>> <?=$board[bo_subject]?></b></a></td>
<td width="30" height="35" align="center" valign="middle"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><img src="<?=$latest_skin_path?>/img/btn_more.gif" alt="전체보기" border="0" title="전체보기" /></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="5"><!--여백--></td>
</tr>
<tr>
<td align="center" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?
shuffle($list);
for ($i=0; $i<count($list); $i++) {
$ex6_filed = explode("|",$list[$i][wr_6]);
$ext6_08 = $ex6_filed[8]; // 희망가
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">
<?
$list[$i][wr_12] = number_format($list[$i][wr_12]);
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
echo $list[$i][icon_reply] . " ";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td align='center' height='25'><a href='{$list[$i]['href']}'><span style='font-size:9pt;color:#333'><b>{$list[$i]['subject']}</span> </a></td></tr>";
echo "<tr><td valign='top' align='center'><a href='{$list[$i]['href']}'><img src='$img' width='{$imgwidth}' height='{$imgheight}' align='center' style='width:{$imgwidth}px;height:{$imgheight}px;border:1px solid #CECECE; padding:5px 0 5px 0'></a></td></tr>";
echo "<tr><td align='center' height='25'>
<b><span style='font-size:9pt;color:#F00'>[{ext6_08}]원</b></span></a></td></tr>";
echo "</table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%></td>";
}
?>
<? if (count($list) == 0) { echo "<td align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
</td>
</tr>
</table>
echo "<tr><td align='center' height='25'>
<b><span style='font-size:9pt;color:#F00'>[{ext6_08}]원</b></span></a></td></tr>";
여기 ext6_08 변수앞에 $ 빠진듯..
<b><span style='font-size:9pt;color:#F00'>[{ext6_08}]원</b></span></a></td></tr>";
여기 ext6_08 변수앞에 $ 빠진듯..
아 그러네 ..ㅋㅋ 뒤늦게 발견하고 댓글 달라했는데 강한남님이 발견.ㅋㅋ
강한남 님 : 해결했습니다..감사합니다..나도 눈이 어두어 보지 못했습니다..
용좌님께도 감사 말씀드립니다..
용좌님께도 감사 말씀드립니다..