@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux adweb87 2.6.32-754.el6.x86_64 #1 SMP Tue Jun 19 21:26:04 UTC 2018 x86_64
Current Path :
/
home
/
sanchung
/
public_html
/
admin
/
_popup
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/_popup/pop_write.php
<? // »ö»óÇ¥ //include"./_popup/pop_color.php"; if($amode == "popup_modify"){ $row = $mysql->row("adw_pop_manager", "*", "where num='$num'"); $title = $row[title]; $size_w = $row[size_w]; $size_h = $row[size_h]; $position_x = $row[position_x]; $position_y = $row[position_y]; $sdate = $row[sdate]; $edate = $row[edate]; $backDefault = ($row[selback]) ? $row[selback] : $row[upback]; $bottomback = $row[bottomback]; $bottomfont = $row[bottomfont]; } else { $size_w = 300; $size_h = 400; $position_x = 100; $position_y = 50; $sdate = date("Y-m-d"); $edate = date("Y-m-d", mktime()+(60*60*24*20)); $bottomback = "#000000"; $bottomfont = "#FFFFFF"; } echo" <script type='text/javascript'> <!-- //alert('asdf'); function topbottom_set(){ var f = document.form; document.getElementById('topTitle').innerText = form.title.value; mini_content.body.style.cssText = 'background:url('+form.backDefault.value+'); background-repeat:no-repeat'; } // Ãʱ⠷εù½Ã »ó´Ü&&ÇÏ´Ü »çÀÌÁî ¼ÂÆÃ //window.onload = topbottom_set; //window.attachEvent('onload', topbottom_set); function formReset(){ var f = document.form; /** ÀÔ·Ââ »çÀÌÁî ¼ÂÆÃ **/ mini_obj.style.width = parseFloat(f.size_w.value) + 'px'; mini_obj.style.height = parseFloat(f.size_h.value) + 'px'; } function formResetChk(){ if(event.keyCode == 13) formReset(); } function formchk(){ var f = document.form; if(!valcheck(f.title, '1', 'ÆË¾÷ŸÀÌÆ²À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä ')) return false; if(!valcheck(f.size_w, '1', 'ÆË¾÷»çÀÌÁ ÀÔ·ÂÇØ ÁÖ¼¼¿ä ')) return false; if(!valcheck(f.size_h, '1', 'ÆË¾÷»çÀÌÁ ÀÔ·ÂÇØ ÁÖ¼¼¿ä ')) return false; if(!valcheck(f.position_x, '1', '¿ÀÇÂÀ§Ä¡¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä ')) return false; if(!valcheck(f.position_y, '1', '¿ÀÇÂÀ§Ä¡¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä ')) return false; if(!valcheck(f.sdate, '1', '»ç¿ë±â°£À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä ')) return false; if(!valcheck(f.edate, '1', '»ç¿ë±â°£À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä ')) return false; cont = bodyGet(); f.content.value = cont; } function backSet(){ var f = document.form; mini_content.body.style.cssText = 'background:url('+f.back_upload.value+'); background-repeat:no-repeat'; //alert(f.back_upload.value); // mini_content.body.style.cssText = 'background:url('+backimg+'); background-repeat:no-repeat'; } function BackChoice(obj){ var f = document.form; if(obj.checked == true){ for(i=0; i<f.elements.length; i++){ if(f.elements[i].name == 'back_choice[]'){ if(f.elements[i].value == obj.value) f.elements[i].checked = true; else f.elements[i].checked = false; } } backimg = '/admin/_popup/back/'+obj.value; f.size_w.value = 400; f.size_h.value = 457; formReset(); mini_content.body.style.cssText = 'background:url('+backimg+'); background-repeat:no-repeat'; } else { f.size_w.value = 300; f.size_h.value = 400; formReset(); mini_content.body.style.cssText = ''; // ¾÷·Îµå À̹ÌÁöÀÖÀ»¶§ ¼ÂÆÃ if(form.back_upload.value) backSet(); } } //--> </script> <form name='form' method='post' action='./_popup/pop_proc.php' enctype='multipart/form-data' onsubmit='return formchk()'> <input type='hidden' name='mode' value='$amode' /> <input type='hidden' name='num' value='$row[num]' /> <input type='hidden' name='content' /> <input type='hidden' name='backDefault' value='$backDefault' /> <textarea name='oldcontent' style='display:none' cols='' rows=''>$row[content]</textarea> <h2>ÆË¾÷â µî·Ï</h2> <table id='f-table'> <tr> <th height='30' class='form'>ÆË¾÷ŸÀÌÆ²</th> <td class='form'><input type='text' name='title' value='$title' style='width:350px' onkeyup=\"document.getElementById('topTitle').innerHTML=this.value\" onkeypress=\"document.getElementById('topTitle').innerHTML=this.value\" /></td> </tr> <tr> <th height='30' class='form'>ÆË¾÷»çÀÌÁî</th> <td class='form'><input type='text' name='size_w' value='$size_w' style='width:40px' onblur='formReset()' onkeydown='formResetChk()' class='input1' />Çȼ¿ X <input type='text' name='size_h' value='$size_h' style='width:40px' onblur='formReset()' onkeydown='formResetChk()' class='input1' />Çȼ¿</td> </tr> <tr> <th height='30' class='form'>¿ÀÇÂÀ§Ä¡</th> <td class='form'>Á <input type='text' name='position_x' value='$position_x' style='width:40px' class='input1' />Çȼ¿ , »ó <input type='text' name='position_y' value='$position_y' style='width:40px' class='input1' />Çȼ¿</td> </tr> <tr> <th height='30' class='form'>»ç¿ë±â°£</th> <td class='form'><input type='text' name='sdate' value='$sdate' style='width:75px' onclick=\"makeCal(event, 'document.form', this.name)\" /> ºÎÅÍ ~ <input type='text' name='edate' value='$edate' style='width:75px' onclick=\"makeCal(event, 'document.form', this.name)\" /> ÀÚÁ¤±îÁö</td> </tr> <tr> <th height='30' class='form'>»ç¿ëÀ¯¹«</th> <td class='form'><input type='radio' name='state' id='stateu' value='U' /> <label for='stateu'>»ç¿ëÁß</label> <input type='radio' name='state' id='statep' value='P' /> <label for='statep'>ÀϽÃÁ¤Áö</label></td> </tr> <tr> <th height='30' class='form'>¿ÀÇÂÇü½Ä</th> <td class='form'><input type='radio' name='open_type' id='open_typew' value='window' /> <label for='open_typew'>À©µµ¿ì</label> <input type='radio' name='open_type' id='open_typel' value='layer' /> <label for='open_typel'>·¹À̾î</label></td> </tr> <tr> <th height='30' class='form'>¹è°æÀ̹ÌÁö¾÷·Îµå</th> <td class='form'><input type='file' name='back_upload' onchange='backSet()' style='width:350px' /></td> </tr> <tr> <th height='30' class='form'>¹è°æ¼±ÅÃ</th> <td class='form' style='padding:5px 8px;'> <ul id='back-list' style='overflow:hidden'> <li><label for='backg1'><img src='./_popup/back/back1.jpg' width='80' alt='' /></label><br /> <input type='checkbox' name='back_choice[]' id='backg1' value='back1.jpg' onclick='BackChoice(this)' /> </li> <li><label for='backg2'><img src='./_popup/back/back2.jpg' width='80' alt='' /></label><br /> <input type='checkbox' name='back_choice[]' id='backg2' value='back2.jpg' onclick='BackChoice(this)' /> </li> <li><label for='backg3'><img src='./_popup/back/back3.jpg' width='80' alt='' /></label><br /> <input type='checkbox' name='back_choice[]' id='backg3' value='back3.jpg' onclick='BackChoice(this)' /> </li> <li><label for='backg4'><img src='./_popup/back/back4.jpg' width='80' alt='' /></label><br /> <input type='checkbox' name='back_choice[]' id='backg4' value='back4.jpg' onclick='BackChoice(this)' /> </li> </ul> </td> </tr> <tr> <td colspan='2' class='form' style='padding:5px'>"; include"./_popup/editer/index.php"; echo" </td> </tr> <!-- <tr> <th height='30' class='form'>ÇÏ´Ü¹è°æ»ö</th> <td class='form'><input type='text' name='bottomback' value='$bottomback' style='width:65px;' maxlength='7' class='input1' /> <input type='button' value='»ö»ó¼±ÅÃ' onclick='ColorChart(form.bottomback)' style='font-size:11px; height:19px; border:1px solid #999999; padding-top:2px' /> <div></div> </td> </tr> <tr> <th height='30' class='form'>ÇÏ´ÜÆùÆ®»ö</th> <td class='form'><input type='text' name='bottomfont' value='$bottomfont' style='width:65px' maxlength='7' class='input1' /> <input type='button' value='»ö»ó¼±ÅÃ' onclick='ColorChart(form.bottomfont)' style='font-size:11px; height:18px; border:1px solid #999999; padding-top:2px' /> </td> </tr> --> </table> <p id='bottom-btn'> <input type='submit' value=' È® ÀÎ ' /> <input type='button' value=' Ãë ¼Ò ' onclick=\"location.replace('?amode=popup_list')\" /> </p> </form>"; $_expback = explode("/", $row[selback]); $_back = $_expback[(sizeof($_expback)-1)]; echo $_back; echo" <script type='text/javascript'> <!-- radiosel('document.form', 'state', '$row[state]'); radiosel('document.form', 'open_type', '$row[open_type]'); //radiosel('document.form', 'back_choice', 'back3.jpg'); //alert(back_choice.length); function backSel(back){ var f = document.form; if(back){ for(i=0; i<f.elements.length; i++){ if(f.elements[i].name == 'back_choice[]'){ if(f.elements[i].value == back) f.elements[i].checked = true; else f.elements[i].checked = false; } } } } backSel('$_back'); //--> </script> "; ?>