ÿØÿà 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/toadmin/design/ |
Upload File : |
<? include "../include/top.html"; include "_common.php"; if($e_idx){ $sql="SELECT * FROM TB_EVENT where e_idx='".$e_idx."' "; $data = db_fetch($sql); $data['event_header'] = view_smart($data['event_header'],"editor"); $data['event_footer'] = view_smart($data['event_footer'],"editor"); $SqlType = "edit"; }else{ $SqlType = "insert"; // 기본값 $data['event_status'] = 'Y'; $data['event_lang'] = 'ko'; $data['event_bgcolor'] = 'FFFFFF'; $data['event_start'] = date('Y-m-d'); $data['event_end'] = date('Y-m-d'); } // 파라메터 $href = "BD_CD=$BD_CD"; $href.= "&b_uid_s=$b_uid_s"; $href.= "&m_uid_s=$m_uid_s"; $href.= "&s_uid_s=$s_uid_s"; $href.= "&mode=$mode"; $href.= "&select_key=$select_key"; $href.= "&input_key=$input_key"; $param = $href."&page=$page"; ?> <style> .labelGoodEdit, .valueGoodEdit{float:left} .labelGoodEdit{background-color: #f9f9f9; /*border-bottom: 1px solid #e4e4e4;*/ font-weight: normal; font-size: 13px; color: #1f1f1f; padding: 8px 13px; text-align: center; border-left:1px solid #e4e4e4; border-right:1px solid #e4e4e4; width:98px;} .valueGoodEdit{margin-left:10px;margin-right:70px} .valueGoodEdit input{width:136px !important; margin-top:2px} .valueGoodEdit b{float: left;margin-top: 7px;color:red} #time_sale_people_cnt{float: left;margin-top: 7px;} </style> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title">이벤트<span class="arrow">></span><strong>이벤트 <?=($e_idx)?"수정":"등록"?></strong></div> <div class="contents_detail"> <div id="Content_box"> <form name="event_ins_form" id="event_ins_form" method="post" enctype="multipart/form-data" action="event_proc.php"> <input type="hidden" name="param" id="param" value="<?=$param?>" /> <input type="hidden" name="e_idx" id="e_idx" value="<?=$data[e_idx]?>" /> <input type="hidden" name="SqlType" id="SqlType" value="<?=$SqlType?>" /> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register mt30"> <caption>이벤트 등록</caption> <tbody> <tr> <th width="150">언어</th> <td> <select name="event_lang" hname="언어" required> <option value="" <?if($data['event_lang']=='') echo ' selected';?> >==언어선택==</option> <option value="ko" <?if($data['event_lang']=='ko') echo ' selected';?> >한국</option> <option value="hk" <?if($data['event_lang']=='hk') echo ' selected';?> >번체</option> <option value="en" <?if($data['event_lang']=='en') echo ' selected';?> >영어</option> <option value="cn" <?if($data['event_lang']=='cn') echo ' selected';?> >간체</option> </select> <span style="color:red;">* 선택한 사이트에서만 페이지를 볼 수 있습니다.</span> </td> </tr> <tr> <th scope="row"><label for="event_code">이벤트 코드</label></th> <td> <input name="event_code" id="event_code" type="text" size="35" class="input_text" value="<?=$data['event_code']?>" style='ime-mode:active' hname="이벤트 코드" required /> <span style="color:red;">* 영문과 숫자만 사용해주세요. / 중복되지 않도록 주의해주세요.</span> </td> </tr> <tr> <th scope="row"><label for="MEM_NM">이벤트 사용여부</label></th> <td> <label><input type="radio" name="event_status" value="Y" <?if($data['event_status']=='Y') echo ' checked';?>> 사용 </label> <label><input type="radio" name="event_status" value="N" <?if($data['event_status']=='N') echo ' checked';?>> 미사용 </label> </td> </tr> <tr> <th scope="row"><label for="event_title">이벤트 제목</label></th> <td><input name="event_title" id="event_title" type="text" size="80" class="input_text" value="<?=$data['event_title']?>" style='ime-mode:active' hname="이벤트 제목" required /></td> </tr> <tr> <th scope="row"><label for="event_date">이벤트 기간</label></th> <td> <input type="text" name="event_start" id="event_start" class="cal_input" value="<?=$data['event_start']?>" onclick="AjaxCal(this,event,{'add_event':'clear_period_date()'});" hname="시작일" readonly> ~ <input type="text" name="event_end" id="event_end" class="cal_input" value="<?=$data['event_end']?>" onclick="AjaxCal(this,event,{'add_event':'clear_period_date()'});" hname="시작일" readonly> <span style="color:red;">* 이벤트 기간이 아닐 경우 이벤트 페이지를 볼 수 없습니다.</span> </td> </tr> <?php // if(devCookie()){ ?> <tr> <th scope="row"><label for="MEM_NM">타임세일 사용여부</label></th> <td> <label><input type="radio" name="time_sale_status" value="Y" <?if($data['time_sale_status']=='Y') echo ' checked';?>> 사용 </label> <label><input type="radio" name="time_sale_status" value="N" <?if($data['time_sale_status']=='N') echo ' checked';?>> 미사용 </label> </td> </tr> <tr> <th scope="row"><label for="time_sale_people_cnt">타임세일 총인원</label></th> <td style="padding:0 0 0 13px"> <input type="text" name="time_sale_people_cnt" id="time_sale_people_cnt" class="input_text" value="<?=$data['time_sale_people_cnt']?>" hname="타임세일총인원" > <div class="labelGoodEdit" style="padding:13px 0;width:124px;margin-left:84px">타임세일 마감일</div> <div class="valueGoodEdit"> <input name="time_sale_deadline" id="time_sale_deadline" type="text" value="<?=$data['time_sale_deadline']?>" style="width:100px;margin-top:7px;margin-right:3px" onclick="AjaxCal(this,event,{'add_event':'clear_period_date()'});" class="cal_input" maxlength="100" /> </div> <span style="color: red;margin-top: 13px;float: left;">* 이 날짜를 기준으로 타임세일 시간이 지정됩니다.</span> </td> </tr> <?php // } ?> <tr> <th scope="row">목록 이미지</th> <td> <div style="width:350px; float:left;"> [PC버전] <br><input type="file" name="event_list_image" id="event_list_image" size="30" class="input_file"> <br><span style="color:#F00;">※ 이미지 사이즈 (870px X 280px)</span> <?if($data['event_list_image']){?><div style="margin-top:10px;"><img src="/FileData/event/<?=$data['event_list_image']?>" alt="목록이미지" style="cursor:pointer; max-height:80px;" onClick="to_dialog.image(this.src,'목록이미지')" /></div><?}?> </div> <div> [모바일버전] <br><input type="file" name="event_list_image_m" id="event_list_image_m" size="30" class="input_file"> <br><span style="color:#F00;">※ 이미지 사이즈 (1264px X 400px)</span> <?if($data['event_list_image_m']){?><div style="margin-top:10px;"><img src="/FileData/event/<?=$data['event_list_image_m']?>" alt="목록이미지" style="cursor:pointer; max-height:80px;" onClick="to_dialog.image(this.src,'목록이미지')" /></div><?}?> </div> </td> </tr> <tr> <th scope="row">상단 이미지</th> <td> <input type="file" name="event_top_image" id="event_top_image" size="30" class="input_file"> <br><span style="color:#F00;">※ 이미지 사이즈 (1920px X 1280px)</span> <?if($data['event_top_image']){?><div style="margin-top:10px;"><img src="/FileData/event/<?=$data['event_top_image']?>" alt="상단이미지" style="cursor:pointer; max-height:80px;" onClick="to_dialog.image(this.src,'상단이미지')" /></div><?}?> <br><label><input type="checkbox" name="event_gradent" value="Y" <?if($data['event_gradent']=='Y') echo ' checked';?>> 배경 색상 그라데이션 사용 </label> </td> </tr> <tr> <th scope="row"><label for="event_bgcolor">배경 색상</label></th> <td> # <input name="event_bgcolor" id="event_bgcolor" type="text" size="8" class="input_text" value="<?=$data['event_bgcolor']?>" style='ime-mode:active' hname="배경 색상" required /> <? if($data['event_bgcolor']) { ?> <input type="text" size="3" class="input_text" style="background-color:#<?=$data['event_bgcolor']?>;" readonly> <? } ?> </td> </tr> <tr> <th scope="row"><label for="event_header">상단 HTML</label></th> <td><textarea name="event_header" id="event_header" class="ckeditor"><?=$data['event_header']?></textarea></td> </tr> <tr> <th scope="row"><label for="event_footer">하단 HTML</label></th> <td><textarea name="event_footer" id="event_footer" class="ckeditor"><?=$data['event_footer']?></textarea></td> </tr> <tr> <th scope="row"><label for="event_footer">페이지 CSS</label></th> <td> <textarea name="event_css" id="event_css" style="width:780px; height:200px; padding:10px;"><?=$data['event_css']?></textarea> <br>ex)<br> - 아이콘 색상 : #contents_event .good_info .icon { background-color : #F00;}<br> - 가격 색상 : #contents_event .good_info .price { color : #F00;} </td> </tr> </tbody> </table> </form> <span id="event_good_ajax"><div style="both:clean;width:100%;font-weight:bold;">:: 이벤트 먼저 등록 후 관리 가능합니다 ::</div></span> <div class="btn_wrap_C pt30" style="width:980px; margin:0; background-color:#edf0f5;"> <a class="Bbtn red" href="#" onclick="check_frm_event();"><?=($e_idx)?"수정":"저장"?>하기</a> <a class="Bbtn gray" href="event_list.html?<?=$param?>">목록으로</a> </div> <div id="check_in" style="width:100%;height:300px; background-color:#edf0f5;"></div> </div> </div> </div> <iframe name="IMGIF" id="IMGIF" width="0" height="0" style="display:none;"></iframe> <script type="text/javascript"> $(function(){ CKEDITOR.replace('event_header', {width:'800px',height:'350px'}); CKEDITOR.replace('event_footer', {width:'800px',height:'350px'}); ajax_loader('event_good_list_ajax.php?e_idx=<?=$e_idx?>','event_good_ajax'); }); function check_frm_event() { var f = document.event_ins_form; var result = to_validation(f); if(result==false) return false; CKEDITOR.instances.event_header.updateElement(); CKEDITOR.instances.event_footer.updateElement(); ajax_post("ajax_proc","event_proc.php","event_ins_form"); } function clear_period_date() { //no op } </script> <? include "../include/footer.html" ?>