코드 작성 도와주시면 감사합니다..
본문
<?php
if($list[$i]['wr_10']) {
$bque = "SELECT bo_subject from g5_board where bo_table='{$list[$i]['wr_10']}'";
$brow = sql_fetch($bque);
}
echo "<a href=\"".$list[$i]['href']."\"> ";
if($bo_table == 'best') echo "<span style='color:#fe7517;font-weight:bold;font-size:13px;'>[{$row['bo_subject']}] </span>";
if ($list[$i]['is_notice'])
echo "<strong>".$list[$i]['subject']."</strong>";
else
echo $list[$i]['subject'];
echo "</a>";
위 코드를 아래 코드에 넣고 싶은데 어떻게 해야하는지 알려주시면 감사합니다
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sst" value="<?php echo $sst ?>">
<input type="hidden" name="sod" value="<?php echo $sod ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="sw" value="">
<div class="list_01">
<?php if ($is_checkbox) { ?>
<div scope="col">
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
<label for="chkall"><span class="sound_only">현재 페이지 게시물 </span>전체선택</label>
</div>
<?php } ?>
<ul>
<?php
for ($i=0; $i<count($list); $i++) {
$mb = get_member($list[$i]['mb_id']);
?>
<li class="<?php if ($list[$i]['is_notice']) echo "bo_notice"; ?>">
<?php if ($is_checkbox) { ?>
<div class="bo_chk">
<label for="chk_wr_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['subject'] ?></label>
<input type="checkbox" name="chk_wr_id[]" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>">
</div><?php } ?>
<div class="bo_subject">
<?php
if ($is_category && $list[$i]['ca_name']) {
?>
<a href="<?php echo $list[$i]['ca_name_href'] ?>" class="bo_cate_link"><?php echo $list[$i]['ca_name'] ?></a>
<?php } ?>
<a href="<?php echo $list[$i]['href'] ?>" class="bo_subject">
<?php echo $list[$i]['icon_reply']; ?>
<?php if ($list[$i]['is_notice']) { ?><strong class="notice_icon"><i class="fa fa-volume-up" aria-hidden="true"></i>공지</strong><?php } ?>
<?php echo $list[$i]['subject'] ?>
<?php
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
답변 1
<?php
for ($i=0; $i<count($list); $i++) {
$mb = get_member($list[$i]['mb_id']);
if($list[$i]['wr_10']) {
$bque = "SELECT bo_subject from g5_board where bo_table='{$list[$i]['wr_10']}'";
$brow = sql_fetch($bque);
}
echo "<a href=\"".$list[$i]['href']."\"> ";
if($bo_table == 'best') echo "<span style='color:#fe7517;font-weight:bold;font-size:13px;'>[{$row['bo_subject']}] </span>";
if ($list[$i]['is_notice'])
echo "<strong>".$list[$i]['subject']."</strong>";
else
echo $list[$i]['subject'];
echo "</a>";
?>
=> 해당 부분에 추가하시면 됩니다.
답변을 작성하시기 전에 로그인 해주세요.