@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_list.php
<? echo" <script id='catejs'></script> <script type='text/javascript'> function lcate_sel(lcode){ f = document.mform; mdiv = getobj('mcate_form'); mdiv.style.display = 'inline'; if(mdiv.style.display == 'inline') f.lcate_code.value = lcode; // catejs.src = './_category/cate_js.php?mode=mcate_list&lcate_code='+lcode; } function mcate_sel(lcode, mcode){ document.all.scate_form.style.display = 'inline'; if(document.all.scate_form.style.display == 'inline'){ sform.lcate_code.value = lcode; sform.mcate_code.value = mcode; } catejs.src = './_category/cate_js.php?mode=scate_list&lcate_code='+lcode+'&mcate_code='+mcode; } 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 lcate_r(){ var f = document.lform; if(!valcheck(f.lcate_name, 1, 'Ä«Å×°í¸® À̸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä ')) return false; f.submit(); } function file_upch(gv, form){ switch(gv){ case\"A\": document.all.cate_text.style.display = 'none'; document.all.cate_img.style.display = 'none'; document.all.cate_roll.style.display = 'none'; break; case\"B\": document.all.cate_text.style.display = 'none'; document.all.cate_img.style.display = 'inline'; document.all.cate_roll.style.display = 'none'; break; case\"C\": document.all.cate_text.style.display = 'none'; document.all.cate_img.style.display = 'none'; document.all.cate_roll.style.display = 'inline'; break; } } </script> <h2>Ä«Å×°í¸® µî·Ï</h2> <p>¡Ø 1Â÷ Ä«Å×°í¸®¸¦ ¼±ÅÃÇϽøé 2Â÷Ä«Å×°í¸®¸¦ µî·ÏÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.</p> <form name='lform' method='post' action='./_category/process.php' enctype='multipart/form-data' onsubmit='return lcate_r()'> <input type='hidden' name='mode' value='lcate_regist'> <table id='d-table'> <tr height='30'> <th>Ä«Å×°í¸® À̸§</th> <td><input type='text' name='lcate_name' class='inputT' size='30'></td> </tr> <tr height='30'> <th>Á¦Ç°Ãâ·ÂÇü½Ä</th> <td><input type='radio' name='cate_type' value='G' checked> °¶·¯¸®Çü½Ä <!-- <input type='radio' name='cate_type' value='L'> ¸®½ºÆ®Çü½Ä --></td> </tr> </table> <p id='bottom-btn'><input type='submit' value=' µî ·Ï '></p> </form> <div> <h2>Ä«Å×°í¸® ¸ñ·Ï</h2> <table id='d-table'> <tr height='30' align='center' bgcolor='#F6F6F6'> <th width='33%'>1Â÷ Ä«Å×°í¸®</th> <th width='33%'>2Â÷ Ä«Å×°í¸®</th> <th width='33%'>3Â÷ Ä«Å×°í¸®</th> </tr> <tr> <td style='padding:5px 0px'> <table width='90%' border='0' cellpadding='0' cellspacing='0'> <tr> <td width='90%'><select style='width:100%; height:115px' size='8' name='lcode' onchange='lcate_sel(this.value)'>"; $lib->selectoption("lcode", "cate_name", "adw_cate", "where cate_level='L' order by cate_step asc"); 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:115px' size='8' name='mcode' onchange='mcate_sel(document.all.lcode.value, this.value)'></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:115px' size='8' name='scode'></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> </div> <div id='mcate_form' style='display:none'> <form name='mform' method='post' action='./_category/process.php' enctype='multipart/form-data' onsubmit='return mcate_r()'> <input type='hidden' name='lcate_code'> <input type='hidden' name='mode' value='mcate_regist'> <h2>2Â÷ Ä«Å×°í¸® µî·Ï</h2> <table id='d-table'> <tr height='30'> <th>2Â÷ Ä«Å×°í¸® À̸§</th> <td><input type='text' name='mcate_name' class='inputT' size='30'></td> </tr> <tr height='30'> <th>Á¦Ç°Ãâ·ÂÇü½Ä</th> <td><input type='radio' name='cate_type' value='G' checked> °¶·¯¸®Çü½Ä <input type='radio' name='cate_type' value='L'> ¸®½ºÆ®Çü½Ä</td> </tr> </form> </table> <p id='bottom-btn'><input type='submit' value=' µî ·Ï '></p> </div> <div id='scate_form' style='display:none'> <form name='sform' method='post' action='./_category/process.php' enctype='multipart/form-data' onsubmit='return scate_r()'> <input type='hidden' name='lcate_code'> <input type='hidden' name='mcate_code'> <input type='hidden' name='mode' value='scate_regist'> <h2>3Â÷ Ä«Å×°í¸® µî·Ï</h2> <table id='d-table'> <tr height='30'> <th>3Â÷ Ä«Å×°í¸® À̸§</th> <td><input type='text' name='scate_name' class='inputT' size='30'></td> </tr> <tr height='30'> <th>Á¦Ç°Ãâ·ÂÇü½Ä</th> <td><input type='radio' name='cate_type' value='G' checked> °¶·¯¸®Çü½Ä <input type='radio' name='cate_type' value='L'> ¸®½ºÆ®Çü½Ä</td> </tr> </table> <p id='bottom-btn'><input type='submit' value=' µî ·Ï '></p> </form> </div> "; ?> <script> function form_show(cate){ if(cate == 'm'){ document.all.mcate_form.style.display = 'inline'; document.all.scate_form.style.display = 'none'; } else { document.all.mcate_form.style.display = 'none'; document.all.scate_form.style.display = 'inline'; } } function mcate_r(){ f = document.mform; if(document.all.lcode.value) form.lcate_code.value = document.all.lcode.value; if(!valcheck(f.lcate_code, 1, '1Â÷ Ä«Å×°í¸®¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä')) return false; if(!valcheck(f.mcate_name, 1, '2Â÷ Ä«Å×°í¸® À̸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä')) return false; f.submit(); } function scate_r(){ form = document.sform; if(document.all.lcode.value) form.lcate_code.value = document.all.lcode.value; if(document.all.mcode.value) form.mcate_code.value = document.all.mcode.value; if(!form.lcate_code.value){ alert('1Â÷ Ä«Å×°í¸®¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä'); document.all.lcode.focus(); return; } if(!form.mcate_code.value){ alert('2Â÷ Ä«Å×°í¸®¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä'); document.all.mcode.focus(); return; } if(!form.scate_name.value){ alert('3Â÷ Ä«Å×°í¸® À̸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); form.scate_name.focus(); return; } form.submit(); } </script>