@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
/
_member
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/_member/member_level.php
<? $res = $mysql->res("adw_member_level", "*", "order by level asc"); echo" <script type='text/javascript' language='javascript'> <!-- function regchk(){ if(form.level){ if(!valcheck(form.level, 1, 'ȸ¿øµî±ÞÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä. ')) return false; if(isNaN(form.level.value)){ alert('ȸ¿øµî±ÞÀº ¼ýÀڷθ¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); form.level.focus(); return false; } if(parseInt(form.level.value) < 1){ alert('ȸ¿øµî±ÞÀº 1º¸´Ù Å« ¼ýÀڷθ¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä. '); form.level.focus(); return false; } } if(!valcheck(form.name, 1, 'ȸ¿øµî±Þ¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä. ')) return false; form.submit(); } function delchk(num){ if(confirm('ÇØ´çµî±Þ¿¡ µî·ÏµÈ ȸ¿øÀº ¸ðµÎ »èÁ¦ µË´Ï´Ù. \\n\\n»èÁ¦ ÇϽðڽÀ´Ï±î?')){ location.replace('./_member/proc.php?motion=level_delete&num='+num); } } //--> </script> <h2>ȸ¿øµî±Þ ¸®½ºÆ®</h2> <table id='l-table'> <tr> <th width='10%'>µî±Þ</th> <th width='23%'>µî±Þ¸í</th> <th width='35%'>·Î±×ÀÎÁ¦ÇÑ</th> <th width='*'>µî·ÏÀÏ</th> <th width='15%'>¼öÁ¤ / »èÁ¦</th> </tr>"; while($row = mysql_fetch_array($res)){ if($row[level] == "1"){ $_close = "readonly style='background-color:#EEEEEE'"; $_del = "<font color='#DDDDDD'>»èÁ¦</font>"; } else { $_close = ""; $_del = "<a href='./_member/proc.php?motion=level_delete&num=$row[num]' onclick=\"delchk('$row[num]'); return false;\">»èÁ¦</a>"; } $_access = ($row[access] == "Y") ? "·Î±×Àΰ¡´É" : "·Î±×ÀÎÁ¦ÇÑ"; echo" <tr> <td>$row[level]</td> <td>$row[name]</td> <td>$_access</td> <td>".substr($row[wdate], 0, 10)."</td> <td><a href='?amode=member_level&num=$row[num]&mode=modify'>¼öÁ¤</a> / $_del</td> </tr>"; $_cnt++; } echo " </table> <br />"; $_title = "ȸ¿ø µî±Þ µî·Ï"; $motion = "level_regist"; if($mode == "modify" && $num){ $row = $mysql->row("adw_member_level", "*", "where num='$num'", 0); $_title = "ȸ¿ø µî±Þ ¼öÁ¤"; $motion = "level_modify"; } echo" <h2>$_title</h2> <form name='form' action='./_member/proc.php' method='post' onsubmit='return regchk()'> <input type='hidden' name='motion' value='$motion' /> <input type='hidden' name='num' value='$row[num]' /> <table id='d-table'> <tr> <th height='30'>ȸ¿øµî±Þ</th>"; if($row[level] == "1"){ echo" <td>$row[level]</td>"; } else { echo" <td><input type='text' name='level' value='$row[level]' size='5' maxlength='3' /> ¼ýÀÚ¸¸ ÀÔ·Â (³·Àº ¼ýÀÚÀϼö·Ï ¿î¿µÀÚ µî±Þ¿¡ °¡±õ½À´Ï´Ù)/Áߺ¹µî·ÏÀº µÇÁö ¾Ê½À´Ï´Ù.</td>"; } echo" </tr> <tr> <th height='30'>ȸ¿øµî±Þ¸í</th> <td><input type='text' name='name' value='$row[name]' /></td> </tr> <tr> <th height='30'>·Î±×ÀÎÁ¦ÇÑ</th> <td><input type='radio' name='access' id='loginopen' value='Y' /> <label for='loginopen'>·Î±×Àΰ¡´É</label> <input type='radio' name='access' id='loginclose' value='N' /> <label for='loginclose'>·Î±×ÀÎÁ¦ÇÑ</label> </td> </tr> </table> <p id='bottom-btn'><input type='submit' value=' È® ÀÎ ' /> <input type='button' value=' Ãë ¼Ò ' onclick=\"location.href='?amode=member_level'\" /></p> </form> <script type='text/javascript'> <!-- radiosel('document.form', 'access', '$row[access]'); //--> </script> "; ?>