ÿØÿà 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 ($cd_b) { $arr = base_codeb("CMM","{$cd_b}","N"); $t1 = $arr[0]; $arr = base_codec("CMM","{$cd_b}",$pos,"N"); $t2 = $arr[0]; } //p($pos); $data = homepage_banner($pos); //p($data); ?> <style> .link_url{height: 16px;float: left;overflow: hidden;} </style> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title"><?=$t1['CdName']?><span class="arrow">></span><strong><?=$t2['cd_nm']?></strong></div> <div class="contents_detail"> <div class="setting_wrap"> <div class="lo_left" style="width:73%;"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write"> <tbody> <tr> <th width="140">배너제목</th> <td><?=$t2['cd_nm']?></td> </tr> <tr> <th>구분</th> <td><?=$t2['cd_memo']?></td> </tr> <!-- NEW작업_TK_KEN_2020.08.30 --> <th> <?if($t2['cd_memo']=='BOARD'){?>게시판이름<?}else{?>이미지사이즈(px)<?}?> </th> <td> <span style="color:red;font-weight: 500;"> <? if($t2['cd_memo2']){ ?> (<?=$t2['cd_memo2']?>) <? } else { if($pos == "TMS2007"){ // 여행대장(PC)>메인 하단 배너 echo "(PC : 1100 x 224)"; }else if($pos == "TMS2007"){ }else{ echo "(PC : 1920 x 589 / Mobile : 783 x 313)"; } ?> <? } ?> </span> </td> </tr> </tbody> </table> <div class="top_txt_s"> <div class="bar_wrap"> <ul class="search_rt_btn"> <li><a class="Tbtn red" href="javascript:;" onClick="to_dialog.iframe('homepage_banner_write.html?pos=<?=$pos?>&cd_b=<?=$cd_b?>','배너등록','700','700',true,true,'no')">등록</a></li> </ul> </div> </div> <!-- 폼 --> <form name="frm_banner" id="frm_banner" method="post"> <INPUT TYPE="hidden" NAME="SqlType" value="chgorder"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_list"> <thead> <tr> <td colspan="7" class="t_top_line"></td> </tr> <tr> <th width="30">사용</th> <th width="45"><span onClick="change_ordernum();" style="cursor:pointer;">순서</span></th> <th width="100">이미지</th> <th width="200">URL</th> <th width="300">검색 키워드</th> <th width="100">등록일</th> <?php // if($pos == 'TMS2001' || $pos == 'TMMB001'){ ?> <th width="60">여행대장</th> <th width="60">휴가샵</th> <th width="60">베네피아</th> <th width="60">E-제너두</th> <?php // } ?> <th width="50">-</th> </tr> </thead> <tbody class="tbb"> <? for($i=0,$j=1 ; $i < count($data) ; $i++,$j++){ $row = $data[$i]; if($row['disp_yn']=="Y") { $opp = "btn_check.gif"; $opp_str = "N"; }else{ $opp = "btn_stop.gif"; $opp_str = "Y"; } ?> <tr> <td> <span id="disp_yn_<?=$row['idx']?>" style="cursor:pointer;"> <img src="<?=$row['icon']?>" onClick="ajax_obj_loader('homepage_banner_proc.html?SqlType=disp_yn&idx=<?=$row['idx']?>&disp_yn=<?=$row['opp']?>','disp_yn_<?=$row['idx']?>');" alt="사용여부체크" /> </span> </td> <td><input type="text" name="order_num_arr[]" value="<?=$row['order_num']?>" class="t_no" maxlength="3" style="width:24px; text-align:center;" onKeyDown="ChkNum(this,event);" autocomplete='off'><input type="hidden" name="idx_arr[]" value="<?=$row['idx']?>" /></td> <?php // mp4파일 등록시 video태그로 표시 // by taeyoung // 2022.06.02 if(strpos($row['img_big'],'mp4') !== false){ ?> <td><video src="<?=$row['img_big']?>" width="90" autoplay mute loop></video><br>mp4 파일</td> <?php }else{ ?> <td><img src="<?=$row['img_big']?>" width="90" onclick="to_dialog.image('<?=$row['img_big']?>');" style="cursor:pointer;"></td> <?php } ?> <td style="text-align:left;"><a href="<?=str_replace('../',"http://".$cf['url']."/",$row['link_url'])?>" target="_blank" title="<?=$row['link_url']?>" class="link_url"><?=cut_str($row['link_url'],50,"...")?></a></td> <td style="text-align:left"><?=str_replace("+",",",$row['search_keyword'])?></td> <!-- 검색키워드 --> <td><?=substr($row['ins_dt'],0,10)?></td> <?php // if($pos == 'TMS2001' || $pos == 'TMMB001'){ ?> <td> <input type="checkbox" name="disp_site_tb" class="setTb" idx="<?=$row['idx']?>" <?=(($row['disp_site_tb'] == 'Y') ? 'checked' : '')?> /> </td> <td> <input type="checkbox" name="disp_site_bpvc" class="setBpvc" idx="<?=$row['idx']?>" <?=(($row['disp_site_bpvc'] == 'Y') ? 'checked' : '')?> /> </td> <td> <input type="checkbox" name="disp_site_bp" class="setBp" idx="<?=$row['idx']?>" <?=(($row['disp_site_bp'] == 'Y') ? 'checked' : '')?> /> </td> <td> <input type="checkbox" name="disp_site_eb" class="setEb" idx="<?=$row['idx']?>" <?=(($row['disp_site_eb'] == 'Y') ? 'checked' : '')?> /> </td> <?php // } ?> <td><img src="../image/btn/icon_write.gif" style="cursor:pointer;" onClick="to_dialog.iframe('homepage_banner_write.html?idx=<?=$row['idx']?>&pos=<?=$pos?>&cd_b=<?=$cd_b?>','수정','700','700',true,true,'yes')"> <img src="../image/btn/icon_del.gif" style="cursor:pointer;" onClick="delete_frm(<?=$row['idx']?>);"></td> </tr> <?}?> </tbody> </table> </form> <!-- /폼 --> </div> <div class="lo_left" style="padding-left:2%; width:25%;"> <div style="border:1px solid #e4e4e4"><img src="<?=$t1['CdImg']?>" width="100%" /><br /><span style="padding-top:15px; display:block; "></span><!-- <img src="../image/board/admin_main_explain2.jpg" width="100%"/> 사용하지 않는 메뉴 이미지 [수정일: 2018-04-25] --></div> </div> </div> </div> </div> </div> <script language="javascript"> $(window).load(function(){ $('.setTb').click(function(){ console.log($(this).attr('idx')); console.log($(this).prop("checked")); setValue = 'N'; if($(this).prop("checked")){ setValue = 'Y'; } setBannerShowSite($(this).attr('idx'), setValue, 'tb'); }) $('.setBp').click(function(){ console.log($(this).attr('idx')); console.log($(this).prop("checked")); setValue = 'N'; if($(this).prop("checked")){ setValue = 'Y'; } setBannerShowSite($(this).attr('idx'), setValue, 'bp'); }) $('.setBpvc').click(function(){ console.log($(this).attr('idx')); console.log($(this).prop("checked")); setValue = 'N'; if($(this).prop("checked")){ setValue = 'Y'; } setBannerShowSite($(this).attr('idx'), setValue, 'bpvc'); }) $('.setEb').click(function(){ setValue = 'N'; if($(this).prop("checked")){ setValue = 'Y'; } setBannerShowSite($(this).attr('idx'), setValue, 'eb'); }) }) function setBannerShowSite(idx, value, site){ siteName = "여행대장"; if(site == 'bp'){ siteName = "베네피아"; } else if(site == 'bp'){ siteName = "E-제너두"; } else if(site == 'bpvc'){ siteName = "휴가샵"; } $.ajax({ type: "POST", url: "/toadmin/ajaxData/", data: {mode:'setBannerShowSite', idx, value, site}, dataType: 'json', async: false, success: function (data) { // console.log('data is ' + JSON.stringify(data)); if (data.result == true) { successMsg = "비"; if(value == 'Y'){ successMsg = ""; } iziToast.show({ timeout:2000, color: 'green', title: siteName + ' 배너 '+successMsg+'노출 설정', message: "완료되었습니다.", }); } else { iziToast.show({ timeout:2000, color: 'red', title: siteName + ' 배너 노출 설정', message: "실패했습니다.", }); iziToast.show({ timeout:2000, color: 'red', title: siteName + ' 배너 노출 설정', message: "실패했습니다.", }); iziToast.show({ timeout:2000, color: 'red', title: siteName + ' 배너 노출 설정', message: "실패했습니다.", }); iziToast.show({ timeout:2000, color: 'red', title: siteName + ' 배너 노출 설정', message: "실패했습니다.", }); iziToast.show({ timeout:2000, color: 'red', title: siteName + ' 배너 노출 설정', message: "실패했습니다.", }); } }, error: function (e) { iziToast.show({ timeout:10000, color: 'red', title: '설정 실패 개발자 문의', message: "에러 발생.", }); iziToast.show({ timeout:10000, color: 'red', title: '설정 실패 개발자 문의', message: "에러 발생.", }); iziToast.show({ timeout:10000, color: 'red', title: '설정 실패 개발자 문의', message: "에러 발생.", }); iziToast.show({ timeout:10000, color: 'red', title: '설정 실패 개발자 문의', message: "에러 발생.", }); iziToast.show({ timeout:10000, color: 'red', title: '설정 실패 개발자 문의', message: "에러 발생.", }); } }); } function delete_frm(idx) { if(!idx) return; if(!confirm("정말 삭제하시겠습니까?")) return false; parent.ajax_post("ajax_proc","homepage_banner_proc.html?SqlType=delete&idx="+idx); } //순서조정 function change_ordernum() { if(!confirm('순서를 변경하시겠습니까?')) return; ajax_post('ajax_proc','homepage_banner_proc.html','frm_banner'); } </script> <? include "../include/footer.html" ?>