@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
/
_phone
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/_phone/menu_form.php
<? include"../_setup.php"; if($_GET[num]){ $row = $mysql->row("adw_phone_menu", "*", "where num='$_GET[num]'", 0); if(!$motion) $motion = "menu_modify"; if(!$level) $level = "M"; } else { if(!$motion) $motion = "menu_write"; if(!$level) $level = "L"; } echo" <html> <style> body {margin:0px; padding:5px} * {font-size:12px} #content #f-table {width:100%; background-color:#FFF; border:1px solid #CCC; border-collapse:separate; border-spacing:2px;} #content #f-table th.form {color:#444; width:25%; background-color:#EEE; border:0px solid #F00;} #content #f-table td.form {background-color:#F6F6F6; padding-left:5px;} p#bottom-btn { margin:18px 0; text-align:center;} </style> <script type='text/javascript'> function valcheck(obj, focus, msg){ if(!obj.value){ alert(msg); if(focus) obj.focus(); } else return true; } function delCheck(num){ if(confirm('ÇÏÀ§ ¸Þ´º°¡ ÀÖÀ»°æ¿ì ÇÏÀ§¸Þ´ºµµ »èÁ¦ µË´Ï´Ù. \\n\\n»èÁ¦ ÇϽðڽÀ´Ï±î? ')){ location.replace('./proc.php?motion=menu_delete&num='+num); } } function formchk(){ var f = document.form if(!valcheck(f.name, 1, '¸Þ´º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä ')) return false; f.content.value = bodyGet(); } </script> <div id='content'> <form method='post' name='form' action='./proc.php' onsubmit='return formchk()' enctype='multipart/form-data'> <input type='hidden' name='motion' value='$motion'> <input type='hidden' name='lcode' value='$row[lcode]'> <input type='hidden' name='level' value='$level'> <input type='hidden' name='num' value='$row[num]'> <table id='f-table'> <tr height='30'> <th class='form'>¸Þ´º¸í</th> <td class='form'><input class='form02' type='text' name='name' value='$row[name]' style='width:150px'></td> </tr>"; //echo $row[level]; if($level == "M" && $row[level] == "L"){ echo" <tr height='46'> <th class='form'>ÇÏÀ§¸Þ´º¸í</th> <td class='form'><input class='form02' type='text' name='sub_name' value='' style='width:150px'><br> ¼ºê¸Þ´º µî·Ï½Ã¸¸ ÀÔ·ÂÇϼ¼¿ä</td> </tr>"; } // ¼ºê¸Þ´º°¡ ¾Æ´Ò¶§ if($row[level] != "M"){ echo" <tr height='30'> <th class='form'>¹öư(±âº»)</th> <td class='form' style='padding-top:5px; padding-bottom:5px'><input class='form02' type='file' name='imgout' value='' style='width:96%'>"; if($row[btn_out]) echo"<img src='../updata/phone/$row[btn_out]'>"; echo" </td> </tr> <tr height='30'> <th class='form'>¹öư(¿À¹ö)</th> <td class='form' style='padding-top:5px; padding-bottom:5px'><input class='form02' type='file' name='imgover' value='' style='width:96%'>"; if($row[btn_over]) echo"<img src='../updata/phone/$row[btn_over]'>"; echo" </td> </tr>"; } if($row[num]){ if($row[level] == "M") $_addsql = " && lcode='$row[lcode]'"; $_row = $mysql->row("adw_phone_menu", "count(num)", "where level='$row[level]' $_addsql", 0); echo" <tr height='30'> <th class='form'>¼ø ¼</th> <td class='form'><select name='step' style='width:50px'>"; for($i=1; $i<=$_row[0]; $i++){ echo"<option value='$i' "; if($i == $row[step]) echo"selected"; echo">$i</option>"; } echo" </select> </td> </tr>"; } echo" </table> <p id='bottom-btn'> <input type='submit' value=' È® ÀÎ '> <input type='button' value=' Ãë ¼Ò ' onclick=\"location.replace('$_SERVER[PHP_SELF]')\">"; if($_GET[num]){ echo" <input type='button' value=' »è Á¦ ' onclick=\"delCheck('$row[num]')\">"; } echo" </p> </form> </div> </body> </html> "; ?>