-
bbs/write.php
263라인
-
function get_category_option1($bo_table='', $ca_name='')
{
global $g5, $board, $is_admin;$categories = explode("|", $board['bo_category_list'].($is_admin?"|공지":"")); // 구분자가 | 로 되어 있음
$str = "";
for ($i=0; $i<count($categories); $i++) {
$category = trim($categories[$i]);
if (!$category) continue;$str .= "<label class='radio'><input type=\"radio\" name=\"ca_name\" value=\"$categories[$i]\" ";
if($i==0) $str .= ' checked';
if ($category == $ca_name) {
$str .= ' checked';
}
$str .= "> $categories[$i] </label>";
}return $str;
}
$category_option1 = '';
if ($board['bo_use_category']) {
$ca_name = "";
if (isset($write['ca_name']))
$ca_name = $write['ca_name'];
$category_option1 = get_category_option1($bo_table, $ca_name);
$is_category = true;
} -
-
-
-
write.skin.php
-
-
<?php if ($is_category) { echo $category_option1;}?>
댓글 3개
게시글 목록
| 번호 | 제목 |
|---|---|
| 17620 | |
| 17610 | |
| 17609 | |
| 17601 | |
| 17549 | |
| 17541 | |
| 17537 | |
| 17519 | |
| 17497 | |
| 17492 | |
| 17471 | |
| 17447 | |
| 17442 | |
| 17423 | |
| 17420 | |
| 17414 | |
| 17411 | |
| 17410 | |
| 17409 | |
| 17408 | |
| 17395 | |
| 17351 | |
| 17350 | |
| 17349 | |
| 17348 | |
| 17347 | |
| 17335 | |
| 17325 | |
| 17314 | |
| 17293 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기