달력부분이 클릭되지 않는데 한번 봐주세요
본문
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
$rand_number = rand(111111,999999);
if(!$wr_3) $wr_3 = 0; // 접수상태
$requestboard = new Request($board_skin_url);
$captcha_js = $is_guest = '';
?>
<script src="<?php echo $board_skin_url?>/js/jquery.metadata.js" type="text/javascript"></script>
<style type="text/css">
#container{width:1250px !important; margin: 0 auto; float: inherit;}
#wrapper{ width: 100%; margin: 144px auto 0;}
.pagename{ font-size: 38px; color: #854f9a; text-align: center; line-height:4em;}
#bo_w{ margin: 0 auto 100px; width: 1200px;}
.tbl_frm01_simple{ width: 900px; margin: auto;}
.fwrite_simple{ }
#bo_w table{ width: 100%; }
.tbl_frm01_simple table{ margin-bottom:40px;}
.tbl_frm01.tbl_frm01_simple th{width: 110px; padding: 27px 13px; border: 0; border-left: 0; background: none; text-align: center; font-size: 16px;}
.tbl_frm01.tbl_frm01_simple td{border:0;}
.simple_write_tbo tr{ margin: 10px 0;}
.simple_write_tbo input, .simple_write_tbo select{
width: 340px; height: 42px; border-radius: 5px; border: 1px solid #cfcfcf; background-color: #fff !important; box-sizing: border-box; padding: 4px 10px;
}
.simple_write_tbo input.simple_chek{ width: 14px; height: 14px; margin-right: 6px;}
.simple_chek_tr td{ display: inline-block; width:120px;}
.btn_submit{ background-color: #854f9a;}
textarea#wr_content{ width: width: 384px; border-radius: 5px; border: 1px solid #cfcfcf; background-color: #fff !important; box-sizing: border-box;}
.simple_chek{ width: 100px;}
.tbl_frm01 td{ padding: 10px;}
#captcha #captcha_key{ width: 200px;}
p.strtotime{ text-align: center; margin: 10px auto 20px; font-size: 18px;}
</style>
<h3 class="pagename">예약신청</h3>
<div class="date_wrapper">
<div class="date_l">
<div class="schedule01" id="cal_body">
</div>
</div>
<div class="date_r">
<div class="schedule02" id="time_body">
</div>
</div>
</div>
<!--<?php if($w && $is_admin || $board['bo_admin'] == $member['mb_id']) {?>
<p class="strtotime">
<span><?php echo $name ?>고객님이 요청한 예약 날짜와 시간은</span>
<span><?php echo date("Y년 m월 d일",strtotime($wr_1)) ?></span>
<span><?php echo $wr_2 ?> 입니다.</span>
</p>
<?php } ?>-->
<section id="bo_w">
<h2 id="container_title" class="sound_only"><?php echo $g5['title'] ?></h2>
<!-- 게시물 작성/수정 시작 { -->
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:100%; background-color: #fcfcfc; border-top: 3px solid #854f9a; border-bottom: 1px solid #e3e3e3; padding: 54px 0 24px;">
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<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="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="wr_1" id="wr_1" value="" />
<input type="hidden" name="wr_2" id="wr_2" value="" />
<?php
$option = '';
$option_hidden = '';
if ($is_notice || $is_html || $is_secret || $is_mail) {
$option = '';
if ($is_notice) {
$option .= "\n".'<input type="checkbox" id="notice" name="notice" value="1" '.$notice_checked.'>'."\n".'<label for="notice">공지</label>';
}
if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= '<input type="hidden" value="html1" name="html">';
} else {
$option .= "\n".'<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="html">html</label>';
}
}
if ($is_secret) {
if ($is_admin || $is_secret==1) {
$option .= "\n".'<input type="checkbox" id="secret" name="secret" value="secret" '.$secret_checked.'>'."\n".'<label for="secret">비밀글</label>';
} else {
$option_hidden .= '<input type="hidden" name="secret" value="secret">';
}
}
if ($is_mail) {
$option .= "\n".'<input type="checkbox" id="mail" name="mail" value="mail" '.$recv_email_checked.'>'."\n".'<label for="mail">답변메일받기</label>';
}
}
echo $option_hidden;
?>
<div class="tbl_frm01 tbl_frm01_simple tbl_wrap">
<table class="simple_write_tbo">
<colgroup>
<col style="width: 20%"/>
<col style="width: 80%"/>
</colgroup>
<tbody>
<?php if ($is_category) { ?>
<tr>
<th scope="row"><label for="ca_name">분류<strong class="sound_only">필수</strong></label></th>
<td class="border_r0">
<select name="ca_name" id="ca_name" required class="required form-control input_type1" >
<option value="">선택하세요</option>
<?php echo $category_option ?>
</select>
</td>
</tr>
<?php } ?>
<tr style="">
<th scope="row"><label for="wr_subject">예약 기기<strong class="sound_only">필수</strong></label></th>
<td>
<select type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject">
<option>::: 선택하기 :::</option>
<option value="AI 600 (Chemi doc)">AI 600 (Chemi doc)</option>
<option value="형광 현미경">형광 현미경</option>
<option value="FACS">FACS</option>
<option value="Realtime PCR">Realtime PCR</option>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="wr_content">소속<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_content" value="<?php echo $name ?>" id="wr_content" required class="frm_input required" size="10" maxlength="20" placeholder="소속을 입력해주세요"></td>
</tr>
<?php if ($is_name) { ?>
<tr>
<th scope="row"><label for="wr_name">성함<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20" placeholder="Name"></td>
</tr>
<?php } ?>
<?php if ($is_password) { ?>
<tr>
<th scope="row"><label for="wr_password">비밀번호<strong class="sound_only">필수</strong></label></th>
<td><input type="password" name="wr_password" id="wr_password" class="frm_input" maxlength="20" value=""></td>
</tr>
<?php } ?>
<?php if ($is_homepage) { ?>
<tr>
<th scope="row"><label for="wr_homepage">전화번호</label></th>
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input required" size="50" placeholder="ex) 원내 6491 or *** 개인정보보호를 위한 휴대폰번호 노출방지 ***"></td>
</tr>
<?php } ?>
<?php if($w && $is_admin) {?>
<tr>
<th scope="row"><label for="wr_stat">진행상황</label></th>
<td class="border_r0 state">
<?php $val = $requestboard->getStatVal($wr_3);
echo "<span class='".$val['css']."' style='display:inline-block;'>현재 : ".$val['val']."</span>";
?>
<select id='wr_stat' name='wr_3' class='form-control inline-block' style="display:inline-block;">
<option value=''>진행상황변경</option>
<option value='1'>1: 예약대기</option>
<option value='2'>2: 예약완료</option>
<option value='3'>3: 예약취소</option>
</select>
</td>
</tr>
<?php } else { ?>
<input type="hidden" name="wr_3" value="<?php echo $wr_3?>" />
<?php }?>
</tbody>
</table>
</div>
<div class="btn_confirm">
<input type="submit" value="예약하기" id="btn_submit" accesskey="s" class="btn_submit" style=";">
<? if($is_admin) {?><a href="./board.php?bo_table=<?php echo $bo_table ?>" class="btn_cancel">목록보기</a><?}?>
</div>
</form>
<script>
var board_skin = "<?php echo $board_skin_url?>";
<?php if($write_min || $write_max) { ?>
// 글자수 제한
var char_min = parseInt(<?php echo $write_min; ?>); // 최소
var char_max = parseInt(<?php echo $write_max; ?>); // 최대
check_byte("wr_content", "char_count");
$(function() {
$("#wr_content").on("keyup", function() {
check_byte("wr_content", "char_count");
});
});
<?php } ?>
function html_auto_br(obj)
{
if (obj.checked) {
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
if (result)
obj.value = "html2";
else
obj.value = "html1";
}
else
obj.value = "";
}
function fwrite_submit(f)
{
<?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
var subject = "";
var content = "";
$.ajax({
url: g5_bbs_url+"/ajax.filter.php",
type: "POST",
data: {
"subject": f.wr_subject.value,
"content": f.wr_content.value
},
dataType: "json",
async: false,
cache: false,
success: function(data, textStatus) {
subject = data.subject;
content = data.content;
}
});
if (subject) {
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
f.wr_subject.focus();
return false;
}
if (content) {
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
if (typeof(ed_wr_content) != "undefined")
ed_wr_content.returnFalse();
else
f.wr_content.focus();
return false;
}
if (!f.wr_1.value)
{
alert("예약날짜를 선택해주세요.");
return false;
}
if (!f.wr_2.value)
{
alert("예약시간을 선택해주세요.");
return false;
}
if (document.getElementById("char_count")) {
if (char_min > 0 || char_max > 0) {
var cnt = parseInt(check_byte("wr_content", "char_count"));
if (char_min > 0 && char_min > cnt) {
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
return false;
}
else if (char_max > 0 && char_max < cnt) {
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return false;
}
}
}
document.getElementById("btn_submit").disabled = "disabled";
return true;
}
function getCal(year,month)
{
$.ajax({
url: board_skin+'/cal.php',
data: {
year : year
, month : month
, bo_table : "<?php echo $bo_table?>"
},
type: 'get',
dataType: 'html',
error: function(XMLHttpRequest, textStatus, errorThrown) {
},
success: function(response) {
$('#cal_body').html(response);
}
});
}
getCal("<?php echo date("Y",time())?>","<?php echo date("n",time())?>");
function getTime(currdate)
{
$.ajax({
url: board_skin+'/time.php',
data: {
currdate : currdate
},
type: 'get',
dataType: 'html',
error: function(XMLHttpRequest, textStatus, errorThrown) {
},
success: function(response) {
$('#time_body').html(response);
}
});
}
$(document).ready(function() {
$('.yes').on("click",function() {
var currdate = $(this).metadata().curr_date
, year = currdate.substr(0,4) + "년 "
, month = currdate.substr(4,2) + "월 "
, day = currdate.substr(6,2) + "일"
, currdate_text = year + month + day
;
getTime(currdate);
$('.date_choice.year_class').html(currdate_text);
$('.yes').removeClass('on');
$(this).addClass('on');
$('.yeardate').show();
$('.timedate').hide();
$('#wr_1').val(currdate);
});
$('.time_cls').on("click",function() {
var currtime = $(this).metadata().currtime
, reservation_yn = $(this).metadata().reservation_yn
;
if (reservation_yn == 'N')
{
$('.timedate').hide();
$('#wr_2').val(currtime);
alert('예약이 불가능한 시간대입니다.');
}
else {
$('.date_choice.time_class').html(currtime);
$('.timedate').show();
$('.time_cls a').removeClass('on');
$(this).find('a').addClass('on');
$('#wr_2').val(currtime);
}
});
});
</script>
</section>
<!-- } 게시물 작성/수정 끝 -->
http://www.kucm.ac.kr/bbs/write.php?bo_table=res
에서 달력부분이 클릭되지 않는데 혹시 무슨 문제인지 한번 봐주세요ㅜㅜ
!-->
답변을 작성하시기 전에 로그인 해주세요.