@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
/
_category
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/_category/cate_edit.php
<? echo" <script id='catejs'></script> <script> function lcate_sel(lcode){ catejs.src = './_category/cate_editjs.php?mode=lsel&lcate_code='+lcode; } function mcate_sel(lcode, mcode){ catejs.src = './_category/cate_editjs.php?mode=msel&lcate_code='+lcode+'&mcate_code='+mcode; } function scate_sel(lcode, mcode, scode){ catejs.src = './_category/cate_editjs.php?mode=ssel&lcate_code='+lcode+'&mcate_code='+mcode+'&scate_code='+scode; } function cate_upL(lcode){ if(!lcode){ alert('¼±ÅÃµÈ Ä«Å×°í¸®°¡ ¾ø½À´Ï´Ù.'); return; } if(document.all.lcode[0].selected == true) return; catejs.src = './_category/cate_js.php?mode=stepupL&lcode='+lcode; } function cate_upM(lcode, mcode){ if(!mcode){ alert('¼±ÅÃµÈ Ä«Å×°í¸®°¡ ¾ø½À´Ï´Ù.'); return; } if(document.all.mcode[0].selected == true) return; catejs.src = './_category/cate_js.php?mode=stepupM&lcode='+lcode+'&mcode='+mcode; } function cate_upS(lcode, mcode, scode){ if(!scode){ alert('¼±ÅÃµÈ Ä«Å×°í¸®°¡ ¾ø½À´Ï´Ù.'); return; } if(document.all.scode[0].selected == true) return; catejs.src = './_category/cate_js.php?mode=stepupS&lcode='+lcode+'&mcode='+mcode+'&scode='+scode; } function cate_dnL(lcode){ if(!lcode){ alert('¼±ÅÃµÈ Ä«Å×°í¸®°¡ ¾ø½À´Ï´Ù.'); return; } arrnum = document.all.lcode.length - 1; if(document.all.lcode[arrnum].selected == true) return; catejs.src = './_category/cate_js.php?mode=stepdnL&lcode='+lcode; } function cate_dnM(lcode, mcode){ if(!mcode){ alert('¼±ÅÃµÈ Ä«Å×°í¸®°¡ ¾ø½À´Ï´Ù.'); return; } arrnum = document.all.mcode.length - 1; if(document.all.mcode[arrnum].selected == true) return; catejs.src = './_category/cate_js.php?mode=stepdnM&lcode='+lcode+'&mcode='+mcode; } function cate_dnS(lcode, mcode, scode){ if(!scode){ alert('¼±ÅÃµÈ Ä«Å×°í¸®°¡ ¾ø½À´Ï´Ù.'); return; } arrnum = document.all.scode.length - 1; if(document.all.scode[arrnum].selected == true) return; catejs.src = './_category/cate_js.php?mode=stepdnS&lcode='+lcode+'&mcode='+mcode+'&scode='+scode; } function cate_edit(){ var form = document.cateform; form.mode.value = 'edit'; if(!form.cate_name.value){ alert('Ä«Å×°í¸® À̸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); form.cate_name.focus(); return false; } form.submit(); } function cate_del(){ var form = document.cateform; form.mode.value = 'del'; if(!form.num.value || !form.cate_level.value){ alert('»èÁ¦ÇÏ½Ç Ä«Å×°í¸®¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä'); return false; } if(confirm('Ä«Å×°í¸® »èÁ¦½Ã ÇÏÀ§Ä«Å×°í¸® ¹× µî·Ï »óǰ¸ðµÎ°¡ »èÁ¦ µË´Ï´Ù.')){ form.submit(); } } </script> <h2>Ä«Å×°í¸® ¸ñ·Ï</h2> <table width='100%' cellpadding='0' cellspacing='1' border='0' bgcolor='#DDDDDD'> <tr height='30' align='center'> <th width='33%' bgcolor='#F6F6F6'>1Â÷ Ä«Å×°í¸®</th> <th width='33%' bgcolor='#F6F6F6'>2Â÷ Ä«Å×°í¸®</th> <th width='33%' bgcolor='#F6F6F6'>3Â÷ Ä«Å×°í¸®</th> </tr> <tr align='center' bgcolor='#FFFFFF' style='padding-top:7px; padding-bottom:7px'> <td> <table width='90%' border='0' cellpadding='0' cellspacing='0'> <tr> <td width='90%'><select style='width:100%; height:87px' size='6' name='lcode' onchange='lcate_sel(this.value)'>"; $_lres = $mysql->res("adw_cate", "*", "where cate_level='L' order by cate_step asc"); while($_lrow = $mysql->farray($_lres)){ echo" <option value='$_lrow[lcode]'>$_lrow[cate_name]</option>\n"; } echo" </select></td> <td width='10%' align='center'> <a href=\"javascript:cate_upL(document.all.lcode.value)\">¡ã</a><br> <a href=\"javascript:cate_dnL(document.all.lcode.value)\">¡å</a></td> </tr> </table> </td> <td> <table width='90%' border='0' cellpadding='0' cellspacing='0'> <tr> <td width='90%'><select style='width:100%; height:87px' size='6' name='mcode' onchange='mcate_sel(document.all.lcode.value, this.value)' style='font-size:9pt'></select></td> <td width='10%' align='center'> <a href=\"javascript:cate_upM(document.all.lcode.value, document.all.mcode.value)\">¡ã</a><br> <a href=\"javascript:cate_dnM(document.all.lcode.value, document.all.mcode.value)\">¡å</a></td> </tr> </table> </td> <td> <table width='90%' border='0' cellpadding='0' cellspacing='0'> <tr> <td width='90%'><select style='width:100%; height:87px' size='6' name='scode' onchange='scate_sel(document.all.lcode.value, document.all.mcode.value, this.value)' style='font-size:9pt'></select></td> <td width='10%' align='center'> <a href=\"javascript:cate_upS(document.all.lcode.value, document.all.mcode.value, document.all.scode.value)\">¡ã</a><br> <a href=\"javascript:cate_dnS(document.all.lcode.value, document.all.mcode.value, document.all.scode.value)\">¡å</a></td> </tr> </table> </td> </tr> </table> <h2>Ä«Å×°í¸® ¼öÁ¤/»èÁ¦</h2> <form name='cateform' method='post' action='./_category/process.php' enctype='multipart/form-data'> <input type='hidden' name='mode' value=''> <input type='hidden' name='num' value=''> <input type='hidden' name='cate_level' value=''> <table id='d-table'> <tr height='30'> <th>Ä«Å×°í¸® À̸§</th> <td><input type='text' name='cate_name' class='inputT' size='30'></td> </tr> <tr height='30'> <th>Á¦Ç°Ãâ·ÂÇü½Ä</th> <td><input type='radio' name='cate_type' value='G'> °¶·¯¸®Çü½Ä <input type='radio' name='cate_type' value='L'> ¸®½ºÆ®Çü½Ä</td> </tr> </table> <p id='bottom-btn'> <input type='button' onclick='cate_edit()' value=' ¼ö Á¤ '> <input type='button' onclick='cate_del()' value=' »è Á¦ '> </p> </form> "; ?> <script> <? $lres = $mysql->res("adw_cate", "*", "where cate_level='L' order by cate_step asc"); $i = 0; while($lrow = mysql_fetch_array($lres)){ echo"document.all.lcode.options[$i] = new Option('$lrow[cate_name]', '$lrow[lcode]');\n"; $i++; } ?> </script>