견적문의 최신글에서 견적대기, 견적완료 이미지 변경.. 정보
견적문의 최신글에서 견적대기, 견적완료 이미지 변경..본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
메인에 견적의뢰 최신글을 넣었는데.. 제목옆에 견적대기중/ 견적완료 이미지가 자동으로 변하게 하려면 어떻게 해야하나요?
스킨은 자료실에서 다운받은 이디자인인데요
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=145934&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EA%B2%AC%EC%A0%81%EC%9D%98%EB%A2%B0
*소스
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="247" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=estimate"> <img src="<?=$latest_skin_path?>/img/main_con2_2.gif" width="247" height="18" border=0></a></td>
</tr>
<tr>
<td style="padding-top:5px;padding-left:4px">
<table width="220" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<?
$wr_9 = explode("|",$list[$i][wr_9]); //
$wr_9_00 = $wr_9[0]; //견적완료여부 Y/N
if($wr_9_00 == "Y") $wr_9_00_img = "2";
else $wr_9_00_img = "1";
?>
<tr>
<td width="182" height="19" class="font11_grey2"><? echo "<a href='{$list[$i]['href']}'>"; ?><?=conv_subject($list[$i][wr_name],4)?>*<?=conv_subject($list[$i][subject],22)?>..</a></td>
<td width="48" align="right"><img src="<?=$latest_skin_path?>/img/main_con2_estimate<?=$wr_9_00_img?>.gif" width="48" height="16"></td>
</tr>
<? } ?>
</table>
</td>
</tr>
</table>
--------------------------------------------------------------------------------------
불러온 게시판에서 글을 쓰면 견적대기중으로 뜨는데 답글을 달거나 댓글을 달아도 견적완료로 안바뀌네요..?
연결해놓은 게시판은 이거구요..
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=120272&sca=%EA%B2%8C%EC%8B%9C%ED%8C%90&sfl=wr_subject%7C%7Cwr_content&stx=%EA%B2%AC%EC%A0%81
어떻게해야 견적대기에서 견적완료로 img가 바뀌나요? ㅠㅠ
초보인점 감안하고 답변해주시면 감사하겠습니다.
오류 주소 :
메인에 견적의뢰 최신글을 넣었는데.. 제목옆에 견적대기중/ 견적완료 이미지가 자동으로 변하게 하려면 어떻게 해야하나요?
스킨은 자료실에서 다운받은 이디자인인데요
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=145934&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EA%B2%AC%EC%A0%81%EC%9D%98%EB%A2%B0
*소스
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="247" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=estimate"> <img src="<?=$latest_skin_path?>/img/main_con2_2.gif" width="247" height="18" border=0></a></td>
</tr>
<tr>
<td style="padding-top:5px;padding-left:4px">
<table width="220" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<?
$wr_9 = explode("|",$list[$i][wr_9]); //
$wr_9_00 = $wr_9[0]; //견적완료여부 Y/N
if($wr_9_00 == "Y") $wr_9_00_img = "2";
else $wr_9_00_img = "1";
?>
<tr>
<td width="182" height="19" class="font11_grey2"><? echo "<a href='{$list[$i]['href']}'>"; ?><?=conv_subject($list[$i][wr_name],4)?>*<?=conv_subject($list[$i][subject],22)?>..</a></td>
<td width="48" align="right"><img src="<?=$latest_skin_path?>/img/main_con2_estimate<?=$wr_9_00_img?>.gif" width="48" height="16"></td>
</tr>
<? } ?>
</table>
</td>
</tr>
</table>
--------------------------------------------------------------------------------------
불러온 게시판에서 글을 쓰면 견적대기중으로 뜨는데 답글을 달거나 댓글을 달아도 견적완료로 안바뀌네요..?
연결해놓은 게시판은 이거구요..
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=120272&sca=%EA%B2%8C%EC%8B%9C%ED%8C%90&sfl=wr_subject%7C%7Cwr_content&stx=%EA%B2%AC%EC%A0%81
어떻게해야 견적대기에서 견적완료로 img가 바뀌나요? ㅠㅠ
초보인점 감안하고 답변해주시면 감사하겠습니다.
댓글 전체
===========================================
$wr_9 = explode("|",$list[$i][wr_9]); //
$wr_9_00 = $wr_9[0]; //견적완료여부 Y/N
===========================================
귀차니즘으로 스킨을 다운받아보진 않았지만..
위 부분은 여분필드를 이용한 것이구요..
답글이나 덧글로 구분을 지으실 꺼면 위 부분을 아래와 같이 고쳐보세요..
===========================================
/*
$wr_9 = explode("|",$list[$i][wr_9]); //
$wr_9_00 = $wr_9[0]; //견적완료여부 Y/N
*/
$wr_9_00 ='N'; //기본을 N 으로 지정
if($list[$i][wr_reply] !='' || $list[$i][wr_comment] > 0)
{
$wr_9_00 = 'Y';
}
============================================
$wr_9 = explode("|",$list[$i][wr_9]); //
$wr_9_00 = $wr_9[0]; //견적완료여부 Y/N
===========================================
귀차니즘으로 스킨을 다운받아보진 않았지만..
위 부분은 여분필드를 이용한 것이구요..
답글이나 덧글로 구분을 지으실 꺼면 위 부분을 아래와 같이 고쳐보세요..
===========================================
/*
$wr_9 = explode("|",$list[$i][wr_9]); //
$wr_9_00 = $wr_9[0]; //견적완료여부 Y/N
*/
$wr_9_00 ='N'; //기본을 N 으로 지정
if($list[$i][wr_reply] !='' || $list[$i][wr_comment] > 0)
{
$wr_9_00 = 'Y';
}
============================================
감사합니다!