스킨 함수값 설정 어떻게 해야 하나요? 정보
스킨 함수값 설정 어떻게 해야 하나요?본문
최신글 스킨에서 출력되는 의뢰업체 / 등록일 / 진행률을 아래에 있는
게시판 스킨의 보증금 / 월세 / 권리금 이 출력되도록 변환이 가능한가요?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
최신글 스킨
var slidegraph=new Array()
<?
for ($i=0; $i<count($list); $i++) {
$how[$i] = $list[$i][wr_1];
echo "slidegraph[".$i."]=\"";
echo "<table border='0' width='200' cellpadding='0' cellspacing='0' height='40'><tr><td width='100%' height='2'></td></tr><tr>";
echo "<tr><td width='100%'>∴ 의뢰 업체 : ".$list[$i][wr_2]."</td></tr><tr>";
echo "<tr><td width='100%'>∴ 등 록 일 : ".$list[$i][datetime]."</td></tr><tr>";
echo "<td width='100%' align='left'>∴ 진 행 률 : <font color='red'>".$list[$i][wr_1]."</font> <font color='blue'>%</font></td></tr><tr><td width='100%' height='5'></td></tr>";
echo "<tr><td width='100%' align='left'><img src='$latest_skin_path/img/graph.gif' width='".$list[$i][wr_1]."%' height='5></td></tr><tr><td width='100%' height='5'></td></tr>";
echo "<tr><td width='100%' align='left'><img src='$latest_skin_path/img/progress.gif' width='200'></td></tr></table>";
echo "\";\n";
}
?>
for ($i=0; $i<count($list); $i++) {
$how[$i] = $list[$i][wr_1];
echo "slidegraph[".$i."]=\"";
echo "<table border='0' width='200' cellpadding='0' cellspacing='0' height='40'><tr><td width='100%' height='2'></td></tr><tr>";
echo "<tr><td width='100%'>∴ 의뢰 업체 : ".$list[$i][wr_2]."</td></tr><tr>";
echo "<tr><td width='100%'>∴ 등 록 일 : ".$list[$i][datetime]."</td></tr><tr>";
echo "<td width='100%' align='left'>∴ 진 행 률 : <font color='red'>".$list[$i][wr_1]."</font> <font color='blue'>%</font></td></tr><tr><td width='100%' height='5'></td></tr>";
echo "<tr><td width='100%' align='left'><img src='$latest_skin_path/img/graph.gif' width='".$list[$i][wr_1]."%' height='5></td></tr><tr><td width='100%' height='5'></td></tr>";
echo "<tr><td width='100%' align='left'><img src='$latest_skin_path/img/progress.gif' width='200'></td></tr></table>";
echo "\";\n";
}
?>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
출력을 원하는 게시판 list.skin.php 파일
<td width="50" align="center" class="b_bg"><span class='b_tit'>보증금</span></td>
<td width="50" align="center" class="b_bg"><span class='b_tit'>월세</span></td>
<td width="50" align="center" class="b_bg"><span class='b_tit'>권리금</span></td>
<td width="50" align="center" class="b_bg"><span class='b_tit'>월세</span></td>
<td width="50" align="center" class="b_bg"><span class='b_tit'>권리금</span></td>
<!--------------- 여유필드(보증금/월세/권리금) 추가 2 ---//-->
<td align="center"><span class='b2'><?=$ext7_00?></span></td>
<td align="center"><span class='b2'><?=$ext7_01?></span></td>
<td align="center"><span class='b2'><?=$ext6_02?></span></td>
<td align="center"><span class='b2'><?=$ext8_00?></span></td>
<td align="center"><span class='b2'><?=$ext7_00?></span></td>
<td align="center"><span class='b2'><?=$ext7_01?></span></td>
<td align="center"><span class='b2'><?=$ext6_02?></span></td>
<td align="center"><span class='b2'><?=$ext8_00?></span></td>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
참고로 view.skin.php 파일
<!-- [참고] 옵션필드 --//-->
$ex7_filed = explode("|",$write[wr_7]);
$ext7_00 = $ex7_filed[0];
$ext7_01 = $ex7_filed[1];
$ext7_02 = $ex7_filed[2];
$ext7_00 = $ex7_filed[0];
$ext7_01 = $ex7_filed[1];
$ext7_02 = $ex7_filed[2];
<tr height="24">
<td class='b_tit2 b_bg2'> + 보증금</td>
<td bgcolor='#FFFFFF'' style='padding-left:5px; padding-right:5px;'>
<span class='v3'><?=$ext7_00?></span> 만원</td>
<td class='b_tit2 b_bg2'> + 월임대료</td>
<td bgcolor='#FFFFFF'' style='padding-left:5px; padding-right:5px;'>
<span class='v3'><?=$ext7_01?></span> 만원</td>
</tr>
<td class='b_tit2 b_bg2'> + 보증금</td>
<td bgcolor='#FFFFFF'' style='padding-left:5px; padding-right:5px;'>
<span class='v3'><?=$ext7_00?></span> 만원</td>
<td class='b_tit2 b_bg2'> + 월임대료</td>
<td bgcolor='#FFFFFF'' style='padding-left:5px; padding-right:5px;'>
<span class='v3'><?=$ext7_01?></span> 만원</td>
</tr>
<tr height="24">
<td class='b_tit2 b_bg2'> + 권리금</td>
<td bgcolor='#FFFFFF'' style='padding-left:5px; padding-right:5px;'>
<span class='v3'><?=$ext6_02?></span> 만원</td>
<td class='b_tit2 b_bg2'> + 권리금</td>
<td bgcolor='#FFFFFF'' style='padding-left:5px; padding-right:5px;'>
<span class='v3'><?=$ext6_02?></span> 만원</td>
댓글 전체

var slidegraph=new Array()
<?
for ($i=0; $i<count($list); $i++) {
$ex7_filed = explode("|",$list[$i][wr_7]);
$ext7_00 = $ex7_filed[0];
$ext7_01 = $ex7_filed[1];
$ext7_02 = $ex7_filed[2];
//$how[$i] = $list[$i][wr_7];
echo "slidegraph[".$i."]=\"";
echo "<table border='0' width='200' cellpadding='0' cellspacing='0' height='40'><tr><td width='100%' height='2'></td></tr><tr>";
echo "<tr><td width='100%'>∴ 의뢰 업체 : ".$ext7_00."</td></tr><tr>";
echo "<tr><td width='100%'>∴ 등 록 일 : ".$ext7_01."</td></tr><tr>";
echo "<td width='100%' align='left'>∴ 진 행 률 : <font color='red'>".$ext7_02."</font> <font color='blue'>%</font></td></tr><tr><td width='100%' height='5'></td></tr>";
echo "<tr><td width='100%' align='left'><img src='$latest_skin_path/img/graph.gif' width='".$list[$i][wr_1]."%' height='5></td></tr><tr><td width='100%' height='5'></td></tr>";
echo "<tr><td width='100%' align='left'><img src='$latest_skin_path/img/progress.gif' width='200'></td></tr></table>";
echo "\";\n";
}
?>
직접 해보지는 못했습니다. 일반 확장필드 뽑듯이 하시면 될듯....
<?
for ($i=0; $i<count($list); $i++) {
$ex7_filed = explode("|",$list[$i][wr_7]);
$ext7_00 = $ex7_filed[0];
$ext7_01 = $ex7_filed[1];
$ext7_02 = $ex7_filed[2];
//$how[$i] = $list[$i][wr_7];
echo "slidegraph[".$i."]=\"";
echo "<table border='0' width='200' cellpadding='0' cellspacing='0' height='40'><tr><td width='100%' height='2'></td></tr><tr>";
echo "<tr><td width='100%'>∴ 의뢰 업체 : ".$ext7_00."</td></tr><tr>";
echo "<tr><td width='100%'>∴ 등 록 일 : ".$ext7_01."</td></tr><tr>";
echo "<td width='100%' align='left'>∴ 진 행 률 : <font color='red'>".$ext7_02."</font> <font color='blue'>%</font></td></tr><tr><td width='100%' height='5'></td></tr>";
echo "<tr><td width='100%' align='left'><img src='$latest_skin_path/img/graph.gif' width='".$list[$i][wr_1]."%' height='5></td></tr><tr><td width='100%' height='5'></td></tr>";
echo "<tr><td width='100%' align='left'><img src='$latest_skin_path/img/progress.gif' width='200'></td></tr></table>";
echo "\";\n";
}
?>
직접 해보지는 못했습니다. 일반 확장필드 뽑듯이 하시면 될듯....
천상재회님 감사합니다.