ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/admin/good/ |
Upload File : |
<? include "../include/top.html"; include "_common.php"; // 상품정보 $good_data = db_fetch("select * from good where g_uid='{$g_uid}' "); // 행사구분 $data_date_type = good_date_type($g_uid,"","N","Y"); /* p($dtid); */ if($credate_days > 0) { $timeline_days = $credate_days; $timeline_times = 5; } else { } // 일정표 // $arr = toad_schedule($g_uid," and d_uid='{$d_uid}' and Sort='0' "); $sch_data = array(); // 공통일정표 $comm_sch_data = toad_schedule(""," and Sort='2' and b_uid in('{$good_data['b_uid']}','','0') "); // 기본일정표 $base_sch_data = toad_schedule($g_uid," and Sort='0' "); // 출발일 정보 $arr = date_list($g_uid,"none"," and d_uid='{$d_uid}' "); $dstart_data = $arr[0]; // 상품에 세팅된 지역코드 목록 $area_data = TO_get_air_city_array($good_data['Bidx'],"","","DelFlag"); ?> <style> .setting_write th {padding:7px 6px 7px 6px;} .setting_write td {padding:5px 8px 5px 8px;} </style> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title"><strong><?=$good_data['g_title']?></strong></div> <div class="contents_detail"> <!-- 본문 --> <div id="Content_box"> <? include "_menu.html"; ?> <table style="margin-top:20px;"> <tr> <td style="vertical-align:top; width:calc((100vw - 60px) / 3); height:130px;"> <h2>일정표 만들기</h2> <form name="frm_create_timeline" id="frm_create_timeline" method="post"> <input type="hidden" name="SqlType" value="date_create"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register"> <colgroup> <col width="100px" /> <col /> </colgroup> <tbody> <tr> <th>행사구분</th> <td> <select name="dtid" id="dtid" style="width:100%;"> <? for($i=0 ; $i<count($data_date_type) ;$i++) { $r=$data_date_type[$i]; ?> <option value="<?=$r['dtid']?>"><?=$r['date_type_nm']?></option> <?}?> </select> </td> </tr> <tr> <th>일정구분</th> <td> <select name="credate_days" id="credate_days" style="width:150px;"> <option value="">==기본일정선택==</option> <? for( $i=1 ; $i<=5 ; $i++){ ?> <option value="<?=$i?>" <?if($timeline_days==$i) echo 'selected';?>><?=$i?> Day</option> <?}?> </select> <input type="button" name="" id="" value="일정생성하기" class="Table_btn red" onclick="create_timeline();"> </td> </tr> </tbody> </table> </form> </td> <td style="width:30px;"></td> <td style="vertical-align:top; width:calc((100vw - 60px) / 3); height:130px;"> <!-- 폼 --> <h2>옵션사항</h2> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register"> <colgroup> <col width="100px" /> <col /> </colgroup> <tbody> <tr> <th>일정표복사</th> <td> <input type="button" name="" id="" value="다른 상품에서 일정표 복사해오기" class="Table_btn blue" onclick="common_base_dateform('copy')"> <input type="button" name="" id="" value="일정을 견적서로 보내기" class="Table_btn blue" onclick=""> <input type="button" name="" id="" value="판매가 표기" class="Table_btn blue" onclick=""> </td> </tr> <tr> <th>일정아이콘</th> <td height="28"> 시작 <i class="xi-marker-circle" style="font-size:18px;"></i> 종료 <i class="xi-marker-circle xi-rotate-180" style="font-size:18px;"></i> 일반 <i class="xi-full-moon" style="font-size:15px;"></i> 미팅 <i class="xi-flag-triangle" style="font-size:18px;"></i> 버스 <i class="xi-bus" style="font-size:18px;"></i> 식사 <i class="xi-restaurants" style="font-size:18px;"></i> 관광지 <i class="xi-map-marker" style="font-size:18px;"></i> 호텔 <i class="xi-building" style="font-size:18px;"></i> </td> </tr> </tbody> </table> <!-- /폼 --> </td> <td style="width:30px;"></td> <td rowspan="3" style="vertical-align:top; width:calc((100vw - 60px) / 3);"> <h2> 일정표 미리보기 <input type="button" name="" id="" value="PDF 다운로드" class="Table_btn red" style="float:right;" onclick="alert('PDF');"> </h2> <div class="result_list" id="result_list" style="height:600px;overflow-y:scroll;"></div> </td> </tr> <tr> <td colspan="3" style="vertical-align:top;"> <? for($d=1; $d<=$timeline_days; $d++){ ?> <h2 style="margin-top:30px;"><?=$d?> Day<input type="button" class="Table_btn red item_add_timeline" style="float:right;" value="항목추가(+)" days="<?=$d?>"></h2> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write"> <colgroup> <col width="120px" /> <col /> <col width="85px" /> <col width="90px" /> <col width="40px" /> <col width="280px" /> <col width="40px" /> </colgroup> <tbody> <tr> <th>시간</th> <th>제목/내용</th> <th>아이콘</th> <th>글색상</th> <th>굵게</th> <th>사진첨부</th> <th>삭제</th> </tr> <? for($t=1; $t<=$timeline_times; $t++){ ?> <tr> <td> <input type="hidden" name="time_days[]" value="<?=$d?>"> <input type="text" name="time_start[]" class="input_text" style="width:calc(50% - 14px);"> ~ <input type="text" name="time_end[]" class="input_text" style="width:calc(50% - 14px);"> </td> <td><input type="text" name="time_contents[]" class="input_text" style="width:calc(100% - 6px);"></td> <td> <select style="width:100%;"> <option>시작</option> <option>종료</option> <option>일반</option> <option>미팅</option> <option>버스</option> <option>식사</option> <option>관광지</option> <option>호텔</option> </select> </td> <td># <input type="text" name="time_textcolor[]" class="input_text" style="width:50px;"></td> <td style="text-align:center;"><input type="checkbox" name="time_textdeco[]" value="b"></td> <td> <input type="file" name="T_UserFile<?=$f?>" class="input_file input_text" style="width:123px;" /> <input type="file" name="T_UserFile<?=$f?>" class="input_file input_text" style="width:123px;" /> </td> <td style="text-align:center;"> <img src="../image/btn/icon_del.gif" title="취소" style="cursor:pointer;" onclick="del_row($(this));"> </td> </tr> <? } ?> </tbody> </table> <? } ?> </td> </tr> </table> </div> <div class="btn_wrap_C mt30" style="background-color:#edf0f5"> <span id="button_edit" class="inblock" style="display:none;"><a href="javascript:;" onclick="chk_form('edit');" class="Bbtn red" >일정표 저장</a></span> <span id="button_delete" class="inblock" style="display:none;"><a href="javascript:;" onclick="chk_form('delete');" class="Bbtn gray" >일정표 삭제</a></span> </div> <!-- /본문 --> </div> </div> <script type="text/javascript"> // 호텔/지역정보 선택탭 no var ht_tab_num=0; function create_timeline() { var f=document.frm_create_timeline; var days = $('#credate_days').val(); if(days == ''){ alert('일정구분을 선택하세요.'); $('#credate_days').focus(); return false; } var result = to_validation(f); if ( result == false ) return false; if (!confirm('일정표를 생성하시겠습니까?\n기존에 입력된 일정은 모두 초기화됩니다.')) return false; f.action="good_date_timeline_edit.html?<?=$_shref?>&<?=$_href?>"; f.submit(); } function del_row($row) { var row_count = $row.parent().parent().parent().find('tr').length; if(row_count <= 2){ alert('일정당 한개 이상의 일정은 필수입니다.'); return false; } $row.parent().parent().remove(); } // 일정표 불러오기 function common_base_dateform(mode,sidx) { switch (mode) { case 'base' : $("#comm_dateform_list").val(0); // 기본일정표 초기화 $("#ScheduleTitle").val($("#bas_dateform_list option:selected").text()); // 제목 세팅 ajax_post('','good_date_proc.html?SqlType=date_recv&SiDX='+sidx,'','fn_create_date_ckeditor'); // 공통일정표 break; case 'common' : $("#bas_dateform_list").val(0); // 공통일정표 초기화 $("#SiDX").val($("#comm_dateform_list option:selected").val()); // 일정표 id 세팅 $("#ScheduleTitle").val($("#comm_dateform_list option:selected").text()); // 제목 세팅 ajax_post('','good_date_proc.html?SqlType=date_recv&SiDX='+sidx,'','fn_create_date_ckeditor'); // 기본일정표 break; case 'copy' : to_dialog.ajax('good_date_sch_copy_ajax.html?g_uid=<?=$g_uid?>&d_uid=<?=$d_uid?>&layer_id=<?=$tmp_layer_id?>','일정표 복사','400','400',true,false); // 일정표 복사해오기 break; } // 버튼정리 check_button_ui(); } // 버튼정리 function check_button_ui() { if ($("#SiDX").val()) { $("#button_edit").show(); // 일정표 수정 $("#button_save").show(); // 일정표 새로저장 $("#button_delete").show(); // 일정표 삭제 }else{ $("#button_edit").hide(); // 일정표 수정 $("#button_save").show(); // 일정표 새로저장 $("#button_delete").hide(); // 일정표 삭제 } } // 지역,호텔 불러오기 텝 function tab(num) { if (num==0) { mode = "hotel"; }else{ mode = "area"; } ht_tab_num = num; $(".tab_wrap").click(function(){ $(this).find("li").each(function(index){ if (num==index){ $(this).addClass("on"); }else{ $(this).removeClass(); } }); }); // 초기화 ajax_loader('good_area_info_ajax.html?mode='+mode+'&Bidx=<?=$good_data['Bidx']?>&Cidx=<?=$good_data['Cidx']?>','result_list'); $("#hotel_area_sel").val("<?=$good_data['Cidx']?>"); } function hotel_area_list(params) { var url = ""; var mode = "hotel"; if (ht_tab_num==1) mode = "area"; url = "good_area_info_ajax.html?"+params+"&mode="+mode; ajax_loader(url,'result_list'); } function chk_form(mode) { var f = document.frm_dateform; if (!f.ScheduleTitle.value) { alert('제목을 입력해주세요.'); f.ScheduleTitle.focus(); return; } if (mode=="edit") { $("#SqlType").val("common_dateform_edit"); if (!confirm('수정하시겠습니까?')) return; } else if(mode=="new"){ $("#SqlType").val("common_dateform_create"); if (!confirm('새로저장하시겠습니까?')) return; } else { $("#SqlType").val("common_dateform_delete"); if (!confirm('정말 삭제하시겠습니까?')) return; } f.action="good_date_proc.html?<?=$_shref?>&<?=$_href?>"; f.submit(); } window.onload=function(){ ajax_loader('good_area_info_ajax.html?mode=hotel&Bidx=<?=$good_data['Bidx']?>&Cidx=<?=$good_data['Cidx']?>','result_list'); } $(function(){ // 항목 추가 $(".item_add_timeline").on('click', function(){ var day = $(this).attr('days'); var day_table = $(this).parent().next(); var org_tr = $(day_table).find('tr').eq(1).clone();; var aaa = $(day_table).append(org_tr); $(org_tr).find('input').each(function(){ console.log($(this).attr('type')); if($(this).attr('type') == 'checkbox'){ $(this).attr('checked', false); } else if($(this).attr('type') == 'text'){ $(this).val(''); } }); }); }); </script> <!-- /본문 --> </div> </div> </div> <? include "../include/footer.html"; ?>