스킨 함수값 설정 어떻게 해야 하나요?

 
최신글 스킨에서 출력되는 의뢰업체 / 등록일 / 진행률을 아래에 있는
게시판 스킨의 보증금 / 월세 / 권리금 이 출력되도록 변환이 가능한가요?
 
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
최신글 스킨
 
 
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%'>∴ 의뢰&nbsp;업체 : ".$list[$i][wr_2]."</td></tr><tr>";
        echo "<tr><td width='100%'>∴ 등&nbsp;&nbsp;록&nbsp;&nbsp;일 : ".$list[$i][datetime]."</td></tr><tr>";
  echo "<td width='100%' align='left'>∴ 진&nbsp;&nbsp;행&nbsp;&nbsp;률 : <font color='red'>".$list[$i][wr_1]."</font>&nbsp;<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>
 
 <!--------------- 여유필드(보증금/월세/권리금) 추가 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>
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
참고로 view.skin.php 파일
 
<!-- [참고] 옵션필드 --//-->
 
$ex7_filed = explode("|",$write[wr_7]);
$ext7_00  = $ex7_filed[0];
$ext7_01  = $ex7_filed[1];
$ext7_02  = $ex7_filed[2];
 
 
 <tr height="24">
    <td class='b_tit2 b_bg2'>&nbsp;+&nbsp;보증금</td>
    <td bgcolor='#FFFFFF'' style='padding-left:5px; padding-right:5px;'>
 <span class='v3'><?=$ext7_00?></span>&nbsp;만원</td>
     <td class='b_tit2 b_bg2'>&nbsp;+&nbsp;월임대료</td>
    <td bgcolor='#FFFFFF'' style='padding-left:5px; padding-right:5px;'>
 <span class='v3'><?=$ext7_01?></span>&nbsp;만원</td>
  </tr>
   <tr height="24">
    <td class='b_tit2 b_bg2'>&nbsp;+&nbsp;권리금</td>
    <td bgcolor='#FFFFFF'' style='padding-left:5px; padding-right:5px;'>
 <span class='v3'><?=$ext6_02?></span>&nbsp;만원</td>
|

댓글 2개

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";
}
?>

직접 해보지는 못했습니다. 일반 확장필드 뽑듯이 하시면 될듯....
천상재회님 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 1,534
18년 전 조회 2,298
18년 전 조회 2,454
18년 전 조회 1,512
18년 전 조회 1,511
18년 전 조회 1,556
18년 전 조회 1,513
18년 전 조회 1,847
18년 전 조회 1,701
18년 전 조회 1,514
18년 전 조회 1,681
18년 전 조회 1,609
18년 전 조회 1,634
18년 전 조회 1,582
18년 전 조회 1,517
18년 전 조회 1,761
18년 전 조회 1,665
18년 전 조회 1,520
18년 전 조회 1,582
18년 전 조회 1,644
🐛 버그신고