Secect 박스를 Radio 형태로 변경하는 법 아시나요? 채택완료
https://sir.kr/g5_skin/40207?sfl=wr_subject%7C%7Cwr_content&stx=%EA%B0%84%ED%8E%B8%EC%83%81%EB%8B%B4">https://sir.kr/g5_skin/40207?sfl=wr_subject%7C%7Cwr_content&stx=%EA%B0%84%ED%8E%B8%EC%83%81%EB%8B%B4
그누보드 간편상담 최신글 형식의 스킨을 사용중입니다.

현재 '지역' 선택창이 Select 형식으로 되어 있는데 이것을 내용을 수정해 Radio 체크 형태로 변경하고 싶습니다.
----------------------------------------
단순히
이렇게 변경하면 되는건지....
완전 초보라서 문의드립니다.
--------ajax.request_save.php 내용-------------------
if(!$bo_table) die(json_encode(array('error'=>'위젯설정에서 보드아이디를 설정해주세요.')));
if(!$is_member && $is_login) die(json_encode(array('error'=>'회원가입후 이용해주세요.')));
$wr_1 = trim($_POST['name']); //이름 $wr_2 = trim($_POST['region']); //성별 $wr_3 = trim($_POST['married']); //결혼 $wr_4 = trim($_POST['tel1'].'-'.$_POST['tel2'].'-'.$_POST['tel3']); //연락처
//$bo_table = "online"; $write_table = $g5['write_prefix'] . $bo_table;
$wr_num = get_next_num($write_table); $wr_reply = ""; $html = 'html1';
if ($member['mb_id']) { $mb_id = $member['mb_id']; $wr_name = addslashes(clean_xss_tags($board['bo_use_name'] ? $member['mb_name'] : $member['mb_nick'])); $wr_password = $member['mb_password']; } else { $mb_id = ''; // 비회원의 경우 이름이 누락되는 경우가 있음 $wr_name = clean_xss_tags(trim($wr_1)); if (!$wr_name) alert('이름은 필히 입력하셔야 합니다.'); $wr_password = get_encrypt_string($wr_3); }
//분류 if($board['bo_use_category']){ $ca_name = $_POST['ca_name']; }
$wr_subject = $wr_1.'님 상담신청'; $wr_content = $wr_1.'님 상담신청입니다. '; $wr_content .= '이름 : '.$wr_1.' '; $wr_content .= '성별 : '.$wr_2.' '; $wr_content .= '결혼 : '.$wr_3.' '; $wr_content .= '연락처 : '.$wr_4;
$sql = " insert into $write_table set wr_num = '$wr_num', wr_reply = '$wr_reply', wr_comment = 0, ca_name = '$ca_name', wr_option = '$html,$secret,$mail', wr_subject = '$wr_subject', wr_content = '$wr_content', wr_link1 = '$wr_link1', wr_link2 = '$wr_link2', wr_link1_hit = 0, wr_link2_hit = 0, wr_hit = 0, wr_good = 0, wr_nogood = 0, mb_id = '$mb_id', wr_password = '$wr_password', wr_name = '$wr_name', wr_email = '$wr_email', wr_datetime = '".G5_TIME_YMDHIS."', wr_last = '".G5_TIME_YMDHIS."', wr_ip = '{$_SERVER['REMOTE_ADDR']}', wr_1 = '$wr_1', wr_2 = '$wr_2', wr_3 = '$wr_3', wr_4 = '$wr_4', wr_5 = '$wr_5', wr_6 = '$wr_6', wr_7 = '$wr_7', wr_8 = '$wr_8', wr_9 = '$wr_9', wr_10 = '$wr_10' ";
if(sql_query($sql)){
$wr_id = sql_insert_id();
// 부모 아이디에 UPDATE sql_query(" update $write_table set wr_parent = '$wr_id' where wr_id = '$wr_id' ");
// 새글 INSERT sql_query(" insert into {$g5['board_new_table']} ( bo_table, wr_id, wr_parent, bn_datetime, mb_id ) values ( '{$bo_table}', '{$wr_id}', '{$wr_id}', '".G5_TIME_YMDHIS."', '{$member['mb_id']}' ) ");
// 게시글 1 증가 sql_query("update {$g5['board_table']} set bo_count_write = bo_count_write + 1 where bo_table = '{$bo_table}'");
delete_cache_latest($bo_table);
die(json_encode(array('error'=>'')));
}else{ die(json_encode(array('error'=>'접수에 문제가 있습니다. 관리자에게 문의하세요.'))); } ?>
--------------latest.skin.php--------------------
global $g5, $config, $member, $is_member;
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0);
$row = sql_fetch("select count(*) as cnt from {$g5['member_table']} "); $total_count = $row['cnt'];
//간편상담 높이 $options['footer_h'] = (isset($options['footer_h']) && $options['footer_h']) ? $options['footer_h'] : '155';
//배경이미지 & 색상 $options['bgcolor'] = (isset($options['bgcolor']) && $options['bgcolor']) ? $options['bgcolor'] : '#161d2e'; $options['background'] = (isset($options['background']) && $options['background']) ? $options['background'] : ''; //$options['background'] = (isset($options['background']) && $options['background']) ? $options['background'] : $latest_skin_url.'/img/foo_bo_bg.png';
// 타이틀 $is_title = (isset($options['title_chk']) && $options['title_chk']) ? true : false; $title = (isset($options['title']) && $options['title']) ? $options['title'] : $config['cf_title'].'에 고객님들이 관심을 보여주셨습니다.'; $title_fs = (isset($options['title_fs']) && $options['title_fs']) ? $options['title_fs'] : '30'; $title_fc = (isset($options['title_fc']) && $options['title_fc']) ? $options['title_fc'] : 'black';
//버튼명 & 색상 $options['btn'] = (isset($options['btn']) && $options['btn']) ? $options['btn'] : '간편상담'; $options['btnc'] = (isset($options['btnc']) && $options['btnc']) ? $options['btnc'] : 'black';
//회원,비회원구분 $is_login = (isset($options['is_login']) && $options['is_login']) ? true : false;
//분류 $board = array(); $board = get_board_db($bo_table, true); if($board['bo_use_category']){ $categories = explode("|", $board['bo_category_list']); //분류값이 없을경우 첫번째 분류값을 적용 $ca_name = ($options['category'])?$options['category']:$categories[0]; }
//배경 $options['background'] = ($options['background'])?$options['background']:$latest_skin_url.'/img/foo_bo_bg2.png';
?>
답변 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인