그누보드 게시판 write스킨 option value 값을 list스킨으로 받아올 수 있나요?
본문
** write.skin
<div class="option_list">
<select name="product_status" id="product_status">
<option value="">선택</option>
<option value="best" <?php echo ($write['product_status'] === 'best') ? 'selected' : ''; ?>>Best</option>
<?php if($product_status === 'best') { echo 'best'; } ?>
<option value="new" <?php echo ($write['product_status'] === 'new') ? 'selected' : ''; ?>>New</option>
<option value="soldout" <?php echo ($write['product_status'] === 'soldout') ? 'selected' : ''; ?>>품절</option>
</select>
</div>
** list.skin
<div class="icon_box">
<?php
$product_status = $list['product_status'];
if ($product_status === 'best') {
echo '<span class="best">Best</span>';
}
if ($product_status === 'new') {
echo '<span class="new">New</span>';
}
if ($product_status === 'soldout') {
echo '<span class="soldout">품절</span>';
}
?>
</div>
값을 어떻게 불러와야 좋을까요...