ÿØÿà 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"; ?> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title">팝업창<span class="arrow">></span><strong>팝업창관리</strong></div> <div class="contents_detail"> <div class="setting_wrap"> <!-- 내용 --> <? $PSQL ="SELECT PIdx,PTitle,PTitleUse,PWidth,PHeight,PScroll,PType,PCookie,PCont,PView,PViewM,PImg,PTOP,PLEFT,PCenter,RegDate,OrderNum,Plang "; $PSQL.="FROM TB_Popup where 1 "; $PSQL.="ORDER BY OrderNum,RegDate DESC "; $PResult = db_query($PSQL); $PNum = db_num($PResult); ?> <form name='good_form' id="good_form" method='post' action='state.html?<?=$Param?>'> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_list mt40"> <colgroup> <col style=" width:80px" /> <col style=" width:80px" /> <col style=" width:100px" /> <col style=" width:80px" /> <col /> <col style=" width:80px" /> </colgroup> <tr> <th><a href="javascript:;" onclick="MainStopProc('순서','order');">순서</a></td> <th>사용</td> <th>팝업시 제목</td> <th>언어</td> <th>제목</td> <th>-</td> </tr> <? if($PNum>0){ $Num = $PNum; for($k=0;$k<$PNum;$k++){ $PRow = db_fetch_array($PResult); $PIdx = $PRow[PIdx]; $PTitle = $PRow[PTitle]; $PTitleUse = $PRow[PTitleUse]; $PTOP = $PRow[PTOP]; $PLEFT = $PRow[PLEFT]; $PCenter = $PRow[PCenter]; $PScroll = $PRow[PScroll]; if($PScroll == "0"){ $ViewScroll="no"; $PWidth = $PRow[PWidth]; //$PHeight = $PRows[PHeight]; } else{ $ViewScroll="yes"; $PWidth = $PRow[PWidth]+17; } $PHeight = $PRow[PHeight]+30; $PType = $PRow[PType]; $PCookie = $PRow[PCookie]; if($PCookie == "0"){ $PCookieStr="no"; } else{ $PCookieStr="yes"; } $PCont = $PRow[PCont]; $PView = $PRow[PView]; $PViewM = $PRow[PViewM]; // PC 팝업 if ($PView==1) $PView_opp = 0; else $PView_opp = 1; if($PView=="0"){ $ok_img = "../image/btn/btn_stop.gif"; }else{ $ok_img = "../image/btn/btn_check.gif"; } // 모바일 팝업 if ($PViewM=="Y") $PViewM_opp = "N"; else $PViewM_opp = "Y"; if($PViewM=="N"){ $ok_Mimg = "../image/btn/btn_stop.gif"; }else{ $ok_Mimg = "../image/btn/btn_check.gif"; } $PImg = $PRow[PImg]; $RegDate = $PRow[RegDate]; $OrderNum = $PRow[OrderNum]; if($PType=="0"){ $ExplainType="텍스트+HTML"; } else if($PType=="1"){ $ExplainType="이미지"; } //언어 if($PRow[Plang]=='ko') $lang = '한국'; elseif($PRow[Plang]=='en') $lang = '영어'; elseif($PRow[Plang]=='cn') $lang = '간체'; elseif($PRow[Plang]=='hk') $lang = '번체'; // 팝업시 제목표시 설정 (20091021 ) $PTitleUse_str = "출력안함"; if ($PTitleUse == "Y") $PTitleUse_str = "<span style='color:#FF6600; font-weight:bold;'>출력함</span>"; ?> <tr> <td><input type='hidden' name='OrderValue[]' value='<?=$PIdx?>'><input type="text" class="t_no" maxlength="3" name='OrderNum[]' value='<?=$PRow[OrderNum]?>' style="text-align:center; width:30px;" style="ime-mode:inactive;ime-mode:disabled" onKeyDown="ChkNum(this,event);" ></td> <td style="text-align: left;"> PC<span id="ajax_check_<?=$PIdx?>"><img src="<?=$ok_img?>" onclick="ajax_obj_loader('popup_proc.html?SqlType=DelFlag&PIdx=<?=$PIdx?>&PView=<?=$PView_opp?>','ajax_check_<?=$PIdx?>');" ></span> <?php if ($cf['redir_mobile']) {?> <br>Mobile<span id="ajax_mcheck_<?=$PIdx?>"><img src="<?=$ok_Mimg?>" onclick="ajax_obj_loader('popup_proc.html?SqlType=DelFlagM&PIdx=<?=$PIdx?>&PViewM=<?=$PViewM_opp?>','ajax_mcheck_<?=$PIdx?>');" ></span> <?php }?> </td> <td><?=$PTitleUse_str?></td> <td><?=$lang?></td> <td class="txt_l pl10"><a href="popup_edit.html?PIdx=<?=$PIdx?>&page=<?=$page?>"><b><?=$PTitle?></b></a></td> <td><a href="javascript:;" class="Table_btn" onclick="if(!confirm('정말 삭제하시겠습니까?'))return;ajax_loader('popup_proc.html?SqlType=popup_delete&PIdx=<?=$PIdx?>','',false);" >삭제</a></td> </tr> <? $Num--; } ?> <!--페이징--> <?}else{?> <tr align="center" > <td colspan="5">등록된 팝업이 없습니다.</td> </tr> <?}?> </table> <!-- /내용 --> </div> </div> </div> </div> <SCRIPT language="JavaScript"> var rptype="0"; var rtop="0"; var rleft="0"; function View_Ajax(tagName,ajax_id,ptype,top,left) { rptype=ptype; rtop=top; rleft=left; Result_Ajax="ViewResult_"+ajax_id; switch(ajax_id) { case "inputLayerPop" ://레이어 팝업 Result_Ajax=ViewResult_inputLayerPop; break; } var url = tagName; var myAjax = new Ajax.Request(url, { method: 'post', parameters: {v:tagName}, onSuccess: Result_Ajax } ); } function ViewResult_inputLayerPop(reqResult) { document.getElementById("inputLayerPop").style.display="block"; $('inputLayerPop').innerHTML = reqResult.responseText ; if(rptype=="1"){ LayerCenter(document.getElementById("inputLayerPop"),"N"); }else{ document.getElementById("inputLayerPop").style.top=rtop; document.getElementById("inputLayerPop").style.left=rleft; } } function closeWin(){ document.getElementById("inputLayerPop").style.display="none"; $('inputLayerPop').innerHTML = "" ; } function CheckAllMain() { if(document.getElementById("ChkGidxAll").checked==true){ for(i=0; i<document.getElementsByName("ChkGidx[]").length; i++){ document.getElementsByName("ChkGidx[]")[i].checked = true; } }else{ for(i=0; i<document.getElementsByName("ChkGidx[]").length; i++){ document.getElementsByName("ChkGidx[]")[i].checked = false; } } } function MainStopProc(title,mode){ if(mode !="order"){ var f=document.good_form; var _cnt = 0; for(i=0; i<document.getElementsByName("ChkGidx[]").length; i++){ if(document.getElementsByName("ChkGidx[]")[i].checked == true){ _cnt++; } } if(_cnt <= 0){ alert(title+"할 번호를 체크해주세요"); return false; } /* for(var i=0; i<document.getElementsByName("ChkRidx[]").length; i++){ if(document.getElementsByName("ChkRidx[]")[i].checked==true ){ chkArry += "&"+ document.getElementsByName("ChkRidx[]")[i].id + "=" + encodeURIComponent(document.getElementsByName("ChkRidx[]")[i].value); } } */ } if(mode=="alldel"){ if(confirm('정말삭제하시겠습니까?')){MainModProc('pop_Proc.php?SqlType=alldel');}else{return false;} }else if(mode=="use"){ MainModProc('good_Proc.php?<?=$Param?>&SqlType=alluse') }else if(mode=="stop"){ MainModProc('good_Proc.php?<?=$Param?>&SqlType=allstop') }else if(mode=="order"){ ajax_post('','popup_proc.html?SqlType=allorder','good_form'); } return false; } function MainModProc(tagName) { loadingBarOn(); var url = tagName; var good_form=document.good_form; var myAjax = new Ajax.Updater ( { success : 'ajax_Proc' }, // 성공시 실행할 함수 url, { method : 'POST', parameters : $(good_form).serialize(), // 파라메터 onFailure : function() { alert('문제가 발생하였습니다');loadingBarOff();} , // 실패시 실행할 함수 evalScripts : true // 읽어들이는 파일내에 스크립트허용 } ); } function Proc_Ajax(tagName,N) { if(N=="N"){ loadingBarOn('N'); } var url = tagName; var myAjax = new Ajax.Updater ( { success : 'ajax_Proc' }, // 성공시 실행할 함수 url, { method : 'POST', parameters : {v:tagName}, // 파라메터 onFailure : function() { alert('문제가 발생하였습니다');loadingBarOff();} , // 실패시 실행할 함수 evalScripts : true // 읽어들이는 파일내에 스크립트허용 } ); } </script> <? include "../include/footer.html" ?>