답변 3개
채택된 답변
+20 포인트
스킨파일을 보시면
<select name="sfl" id="sfl">
<?php echo get_board_sfl_select_options($sfl); ?>
</select>
get_board_sfl_select_options 제공 파일은
lib/get_data.lib.php
Copy
function get_board_sfl_select_options($sfl){
global $is_admin;
$str = '';
$str .= '<option value="wr_subject" '.get_selected($sfl, 'wr_subject', true).'>제목</option>';
$str .= '<option value="wr_content" '.get_selected($sfl, 'wr_content').'>내용</option>';
$str .= '<option value="wr_subject||wr_content" '.get_selected($sfl, 'wr_subject||wr_content').'>제목+내용</option>';
if ( $is_admin ){
$str .= '<option value="mb_id,1" '.get_selected($sfl, 'mb_id,1').'>회원아이디</option>';
$str .= '<option value="mb_id,0" '.get_selected($sfl, 'mb_id,0').'>회원아이디(코)</option>';
}
$str .= '<option value="wr_name,1" '.get_selected($sfl, 'wr_name,1').'>글쓴이</option>';
$str .= '<option value="wr_name,0" '.get_selected($sfl, 'wr_name,0').'>글쓴이(코)</option>';
return run_replace('get_board_sfl_select_options', $str, $sfl);
}
영문으로 변경한다면
스킨파일 eng 추가하시고
<select name="sfl" id="sfl">
<?php echo get_board_sfl_select_options_eng($sfl); ?>
</select>
lib/get_data.lib.php 파일에 추가하세요..
Copy
function get_board_sfl_select_options_eng($sfl){
global $is_admin;
$str = '';
$str .= '<option value="wr_subject" '.get_selected($sfl, 'wr_subject', true).'>subject</option>';
$str .= '<option value="wr_content" '.get_selected($sfl, 'wr_content').'>content</option>';
$str .= '<option value="wr_subject||wr_content" '.get_selected($sfl, 'wr_subject||wr_content').'>subject+content</option>';
if ( $is_admin ){
$str .= '<option value="mb_id,1" '.get_selected($sfl, 'mb_id,1').'>Member ID</option>';
$str .= '<option value="mb_id,0" '.get_selected($sfl, 'mb_id,0').'>Member ID (Comment)</option>';
}
$str .= '<option value="wr_name,1" '.get_selected($sfl, 'wr_name,1').'>writer</option>';
$str .= '<option value="wr_name,0" '.get_selected($sfl, 'wr_name,0').'>writer(comment)</option>';
return run_replace('get_board_sfl_select_options', $str, $sfl);
}
답변을 작성하려면 로그인이 필요합니다.
