고수님들의 조언 부탁드립니다..질문답변게시판변형 정보
고수님들의 조언 부탁드립니다..질문답변게시판변형첨부파일
본문
목록 게시물 형태는 이렇씁니다...
번호 제목 글쓴이 평가 진행상황
-----------------------------------------------------
1 질문요(1) 홍길동 ☆☆☆☆ 답변완료
2 질문요 이순신 평가대기중 답변대기중
3 질문요(1) 유관순 ☆ 답변완료
* 글쓴이가 코멘트(질문의답)를 보고 코멘트 하단에 아래와 같이
답변내용에 만족 하십니까? () 매우만족 () 만족 ()보통 () 불만족 ()매우 불만족
선택하면 해당질문 평가에 별 표시 하는것입니다...
--------------------------list.skin.php 파일일부----------------------------
<tr bgcolor=#F8F8F9 height=30 align=center>
<td width=50>번호</td>
<? if ($is_category) { ?><td width=70>분류</td><?}?>
<? if ($is_checkbox) { ?><td width=40><INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox></td><?}?>
<td>제목</td>
<td width=80>글쓴이</td>
<td width=80>평가</td>
<td width=80>진행상황</td>
<td width=40><?=subject_sort_link('wr_datetime', $qstr2, 1)?>날짜</a></td>
<? if ($is_good) { ?><td width=40><?=subject_sort_link('wr_good', $qstr2, 1)?>추천</a></td><?}?>
<? if ($is_nogood) { ?><td width=40><?=subject_sort_link('wr_nogood', $qstr2, 1)?>비추천</a></td><?}?>
<td width=50>번호</td>
<? if ($is_category) { ?><td width=70>분류</td><?}?>
<? if ($is_checkbox) { ?><td width=40><INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox></td><?}?>
<td>제목</td>
<td width=80>글쓴이</td>
<td width=80>평가</td>
<td width=80>진행상황</td>
<td width=40><?=subject_sort_link('wr_datetime', $qstr2, 1)?>날짜</a></td>
<? if ($is_good) { ?><td width=40><?=subject_sort_link('wr_good', $qstr2, 1)?>추천</a></td><?}?>
<? if ($is_nogood) { ?><td width=40><?=subject_sort_link('wr_nogood', $qstr2, 1)?>비추천</a></td><?}?>
</tr>
<tr><td colspan=<?=$colspan?> height=1 bgcolor=#86BB07 ></td></tr>
<tr><td colspan=<?=$colspan?> height=1 bgcolor=#86BB07 ></td></tr>
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<tr height=28 align=center>
<td>
<?
if ($list[$i][is_notice]) // 공지사항
echo "<img src=\"$board_skin_path/img/notice_icon.gif\" width=30 height=16>";
else if ($wr_id == $list[$i][wr_id]) // 현재위치
echo "<font color='#2C8CB9'><strong>{$list[$i][num]}</strong>";
else
echo "{$list[$i][num]}";
?></td>
<? if ($is_category) { ?><td><a href="<?=$list[$i][ca_name_href]?>"><font color=gray><span class=small><?=$list[$i][ca_name]?></span></font></a></td><? } ?>
<? if ($is_checkbox) { ?><td><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td><? } ?>
<td align=left style='word-break:break-all;'>
<?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
//echo "<font color='#AF6BE3'><strong>{$list[$i][subject]}</strong></font>";
echo "<font color='#333333'><strong>{$list[$i][subject]}</strong></font>";
else
{
$style1 = $style2 = "";
// 최신글은 검정
//if ($list[$i][icon_new]) $style1 = "color:#222222;";
// 코멘트 없는것만 굵게
//if (!$list[$i][comment_cnt]) $style2 = "text-decoration:underline;";
echo "<span style='$style1 $style2'>{$list[$i][subject]}</span>";
}
echo "</a>";
<? for ($i=0; $i<count($list); $i++) { ?>
<tr height=28 align=center>
<td>
<?
if ($list[$i][is_notice]) // 공지사항
echo "<img src=\"$board_skin_path/img/notice_icon.gif\" width=30 height=16>";
else if ($wr_id == $list[$i][wr_id]) // 현재위치
echo "<font color='#2C8CB9'><strong>{$list[$i][num]}</strong>";
else
echo "{$list[$i][num]}";
?></td>
<? if ($is_category) { ?><td><a href="<?=$list[$i][ca_name_href]?>"><font color=gray><span class=small><?=$list[$i][ca_name]?></span></font></a></td><? } ?>
<? if ($is_checkbox) { ?><td><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td><? } ?>
<td align=left style='word-break:break-all;'>
<?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
//echo "<font color='#AF6BE3'><strong>{$list[$i][subject]}</strong></font>";
echo "<font color='#333333'><strong>{$list[$i][subject]}</strong></font>";
else
{
$style1 = $style2 = "";
// 최신글은 검정
//if ($list[$i][icon_new]) $style1 = "color:#222222;";
// 코멘트 없는것만 굵게
//if (!$list[$i][comment_cnt]) $style2 = "text-decoration:underline;";
echo "<span style='$style1 $style2'>{$list[$i][subject]}</span>";
}
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></a>";
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
//echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_file];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
echo $nobr_end;
?></td>
<td><nobr style='display:block; overflow:hidden; width:95px;'><?=$list[$i][name]?></nobr></td>
<td class=small>
<?if(!$list[$i][comment_cnt]){ <---- 변수를 무엇으로 할지 전혀 모르고 있음
echo "평가대기중!";
} elseif(!$list[$i][comment_cnt]== '1'){
echo "☆";
} elseif(!$list[$i][comment_cnt]== '2'){
echo "☆☆";
} elseif(!$list[$i][comment_cnt]== '3'){
echo "☆☆☆";
} elseif(!$list[$i][comment_cnt]== '4'){
echo "☆☆☆☆";
} elseif(!$list[$i][comment_cnt]== '5') {
echo "☆☆☆☆☆";
} else {
echo "평가대기중";
}
echo " " . $list[$i][icon_file];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
echo $nobr_end;
?></td>
<td><nobr style='display:block; overflow:hidden; width:95px;'><?=$list[$i][name]?></nobr></td>
<td class=small>
<?if(!$list[$i][comment_cnt]){ <---- 변수를 무엇으로 할지 전혀 모르고 있음
echo "평가대기중!";
} elseif(!$list[$i][comment_cnt]== '1'){
echo "☆";
} elseif(!$list[$i][comment_cnt]== '2'){
echo "☆☆";
} elseif(!$list[$i][comment_cnt]== '3'){
echo "☆☆☆";
} elseif(!$list[$i][comment_cnt]== '4'){
echo "☆☆☆☆";
} elseif(!$list[$i][comment_cnt]== '5') {
echo "☆☆☆☆☆";
} else {
echo "평가대기중";
}
?>
</td>
</td>
<td><?if(!$list[$i][comment_cnt]){
echo "<img src='$board_skin_path/img/now1.gif'>";
}else{
echo "<img src='$board_skin_path/img/now2.gif'>";
}
echo "<img src='$board_skin_path/img/now1.gif'>";
}else{
echo "<img src='$board_skin_path/img/now2.gif'>";
}
?>
</td>
<td><?=$list[$i][datetime2]?></td>
<? if ($is_good) { ?><td align="center"><?=$list[$i][wr_good]?></td><? } ?>
<? if ($is_nogood) { ?><td align="center"><?=$list[$i][wr_nogood]?></td><? } ?>
</td>
<td><?=$list[$i][datetime2]?></td>
<? if ($is_good) { ?><td align="center"><?=$list[$i][wr_good]?></td><? } ?>
<? if ($is_nogood) { ?><td align="center"><?=$list[$i][wr_nogood]?></td><? } ?>
------- view_comment_skin.php -------------------------
<!-- 코멘트 출력 -->
<span class="ct lh"><?=$list[$i][content]?></span>
<? if ($list[$i][trackback]) { echo "<p>".$list[$i][trackback]."</p>"; } ?>
<span id='edit_<?=$comment_id?>' style='display:none;'></span><!-- 수정 -->
<span id='reply_<?=$comment_id?>' style='display:none;'></span><!-- 답변 -->
</td>
</tr>
</table>
<span class="ct lh"><?=$list[$i][content]?></span>
<? if ($list[$i][trackback]) { echo "<p>".$list[$i][trackback]."</p>"; } ?>
<span id='edit_<?=$comment_id?>' style='display:none;'></span><!-- 수정 -->
<span id='reply_<?=$comment_id?>' style='display:none;'></span><!-- 답변 -->
</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=20></td></tr>
</table><textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=get_text($list[$i][wr_content], 0)?></textarea></td>
</tr>
</table>
<? } ?>
<!-- 코멘트 리스트 -->
<!-- 평가제작중 -->
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td><?
// 채택된 답변이 없고 게시자의 코멘트가 아니고 로그인 회원이 게시자라면
//관리자가 작성한 글은 제외하고 채택 버튼을 표시함
if ($board[bo_admin]){
$madminmc_id =$board[bo_admin];
} else {
$madminmc_id =$config[cf_admin];
}
if ($write[mb_id] == $madminmc_id) {
echo " ";
} else {
if (!$choice_id && $list[$i][mb_id] != $write[mb_id] && $member[mb_id] == $write[mb_id]) { echo "
echo " ";
} else {
if (!$choice_id && $list[$i][mb_id] != $write[mb_id] && $member[mb_id] == $write[mb_id]) { echo "
<form name='get' method='post' action='./write_comment_update.php' >
<table border='0' cellspacing='0' cellpadding='0' width='100%' class='reply_bg' title='답변만족도 선택 테이블'>
<tr valign='top'>
<td style='padding-left:0;padding-top:0'>
<span tabindex='1020'>
<font class='font_color_blackg'><strong>답변내용에 만족하십니까?</strong></font></span>
</td>
<td style='padding:0 0 0 0;'>
<input type='radio' name='comment_cnt' value='5'>매우 만족
<input type='radio' name='comment_cnt' value='4'>만족
<input type='radio' name='comment_cnt' value='3'>보통
<input type='radio' name='comment_cnt' value='2'>불만족
<input type='radio' name='comment_cnt' value='1' >매우 불만족
</td>
</tr>
</table>
</tr>
</table>
<input type='submit' value='평가전송'>
</form>"
</form>"
;
}
}
?>
}
}
?>
<!-- 평가제작끝 -->
<? if ($is_comment_write) { ?>
<!-- 코멘트 입력 -->
<table width=100% cellpadding=3 cellspacing=0 bgcolor=#FFFFFF><tr><td align=right><a href="javascript:comment_box('', 'c');"><img src='<?=$board_skin_path?>/img/btn_comment_insert.gif' border=0 align=absmiddle></a></td></tr></table>
<span id=comment_write style='display:none;'>
<form name="fviewcomment" method="post" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" autocomplete="off" style="margin:0px;">
<input type=hidden name=w id=w value='c'>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=wr_id value='<?=$wr_id?>'>
<input type=hidden name=comment_id id='comment_id' value=''>
<input type=hidden name=sca
<form name="fviewcomment" method="post" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" autocomplete="off" style="margin:0px;">
<input type=hidden name=w id=w value='c'>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=wr_id value='<?=$wr_id?>'>
<input type=hidden name=comment_id id='comment_id' value=''>
<input type=hidden name=sca
.
.
.
.
.
.
* 많이 답답하시죠^^;
평가를 라디오 버튼을 이용하는데 변수를 어떻게 처리 되고 값이 어떻게 목록게시판으로
넘겨야 될지 몰라서
* 많은 조언 부탁드립니다......
* 감사합니다...
댓글 전체

해당 페이지 주소를 적으시는 게 좋겠네요.
ㄹㅇㄴㄹㄴㅇㄹ