@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
/
message
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/message/address.htm
<? session_start(); include"$_SERVER[DOCUMENT_ROOT]/admin/_setup.php"; $member_id = $_SESSION[MEMBER_ID]; if(!$member_id){ echo"<script> alert('ȸ¿ø ·Î±×ÀÎ Á¤º¸°¡ ¾ø½À´Ï´Ù.'); self.close(); </script>"; } echo" <html> <head> <title>::: ¸¶ÀÌÆäÀÌÁö :::</title> <meta http-equiv='Content-Type' content='text/html; charset=euc-kr'> <link rel='stylesheet' href='/style/style.css'> <script> function addPer(){ window.open('./add1.htm', 'personadd', 'width=275, height=225'); } function addGrp(){ window.open('./add2.htm', 'groupadd', 'width=275, height=225'); } function editGrp(name, num){ window.open('./edit2.htm?category='+name+'&num='+num, 'groupedit', 'width=275, height=225'); } function formchk(form){ if(!form.keyword.value){ alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); form.keyword.focus(); return false; } form.submit(); } function delChk(){ var ck; for(i=0; i<lform.elements.length; i++){ if(lform.elements[i].name == 'mid[]' && lform.elements[i].checked == true){ ck = 'y'; } } if(ck != 'y'){ alert('»èÁ¦ÇÒ È¸¿øÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä'); return; } if(confirm('ÁÖ¼Ò·ÏÀ» »èÁ¦ ÇϽðڽÀ´Ï±î?')){ lform.action = './process.php'; lform.mode.value = 'delete'; lform.submit(); } } function sendChk(){ var memid = ''; for(i=0; i<lform.elements.length; i++){ if(lform.elements[i].name == 'mid[]' && lform.elements[i].checked == true){ memid = memid + ',' + lform.elements[i].value; } } if(!memid){ alert('¸Þ¼¼Áö¸¦ º¸³¾ ȸ¿øÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä'); return; } lform.memid.value = memid; lform.action = './message.htm'; lform.submit(); } function catDel(name, num){ if(confirm('»èÁ¦½Ã º¹±¸ÇÒ ¼ö ¾ø½À´Ï´Ù.»èÁ¦ ÇϽðڽÀ´Ï±î?')){ location.replace('./process.php?mode=categorydel&category='+name+'&num='+num); } } function allchk(){ for(i=0; i<lform.elements.length; i++){ if(lform.elements[i].name == 'mid[]'){ if(lform.ck.value == 'Y') lform.elements[i].checked = true; else lform.elements[i].checked = false; } } if(lform.ck.value == 'N') lform.ck.value = 'Y'; else lform.ck.value = 'N'; } </script> </head> <body leftmargin='0' topmargin='0'> <table width='650' height='650' border='0' cellpadding='0' cellspacing='0'> <tr> <td height='100' valign='bottom' background='../images/message/tit.gif' style='padding-left:25'> <table border='0' cellspacing='0' cellpadding='0'> <tr> <td><a href='../message/message.htm'><img src='../images/message/btn_message.gif' width='96' height='30' border='0'></a></td> <td><a href='../message/address.htm'><img src='../images/message/btn_address.gif' width='72' height='30' border='0'></a></td> <td><a href='../message/my1.htm'><img src='../images/message/btn_my1.gif' width='92' height='30' border='0'></a></td> <td valign='bottom' class='txt_S'><a href='../message/my2.htm'><img src='../images/message/btn_my2.gif' width='92' height='30' border='0'></a></td> </tr> </table> </td> </tr> <tr> <td height='550' align='center' valign='top'> <table width='630' border='0' cellspacing='0' cellpadding='0'> <tr> <td><img src='../images/message/box1.gif' width='630' height='12'></td> </tr> <tr> <td align='center' background='../images/message/box3.gif'> <table width='600' border='0' cellspacing='0' cellpadding='0'> <tr valign=top> <td width='210'>"; $msql = "select count(num) from adw_member where userid!='$member_id' "; $mrow = mysql_fetch_array(mysql_query($msql)); $sql = "select count(num) from message_address where id='$member_id' "; $row = mysql_fetch_array(mysql_query($sql)); echo" <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td width='20'><img src='../images/message/i_fold.gif' width='15' height='20'></td> <td colspan='4'><a href='?tb=member'><b class='txt_orange'>ȸ¿øÀüü($mrow[0])</b></a></td> </tr> <tr> <td width='20'><img src='../images/message/i_fold.gif' width='15' height='20'></td> <td colspan='4'><a href='?'><b class='txt_orange'>Àüü($row[0])</b></a></td> </tr>"; $sql = "select category, num from message_addrbook where id='$member_id' order by num asc "; $res = mysql_query($sql); while($row = mysql_fetch_array($res)){ $csql = "select count(num) from message_address where id='$member_id' && category='$row[category]' "; $crow = mysql_fetch_array(mysql_query($csql)); echo" <tr> <td width='20'> </td> <td width='20'><img src='../images/message/i_fold.gif' width='15' height='20'></td> <td width='130'><a href='?category=$row[category]'>$row[category] ($crow[0])</a></td> <td width='39'><img style='cursor:hand' onmouseover=\"smenu$row[category].style.visibility='visible';\" onmouseout=\"smenu$row[category].style.visibility='hidden';\" src='../images/message/i_menu.gif' width='39' height='14' border='0'></td> <td width='1' valign='top'> <div id='smenu$row[category]' style='visibility:hidden; position:absolute; width:85; border:1 solid #EEEEEE ' onmouseover=\"this.style.visibility='visible';\" onmouseout=\"this.style.visibility='hidden';\"> <table width='100%' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'> <tr height='22'> <td onclick=\"catDel('$row[category]', '$row[num]')\" style='cursor:hand'> »èÁ¦</td> </tr> <tr height='22' bgcolor='#F6F6F6'> <td onclick=\"javascript:editGrp('$row[category]', '$row[num]')\" style='cursor:hand'> ¼öÁ¤</td> </tr> <tr height='22'> <td onclick=\"location.replace('./process.php?mode=groupsend&category=$row[category]')\" style='cursor:hand'> ±×·ì¹ß¼Û</td> </tr> </table> </div> </td> </tr>"; } echo" </table> </td> <td width='20' style='background-repeat:no-repeat; background-position:100% 100%'> </td> <td width='370' style='background-repeat:no-repeat; background-position:100% 100%'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td><img src='../images/message/box3_1.gif' width='370' height='10'></td> </tr> <tr> <td align='center' background='../images/message/box3_3.gif'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <form name='form' method='post' action='?'> <input type='hidden' name='category' value='$category'> <input type='hidden' name='tb' value='$tb'> <tr> <td width='15'> </td> <td width='105'> <select name='column' class='input1' style='width:100'> <option value='name'>ÀÌ ¸§</option> </select> </td> <td width='155'><input name='keyword' type='text' class='input1' style='width:150'></td> <td><input type='image' onclick='formchk(this.form); return false;' src='../images/message/i_search.gif' width='40' height='21'></td> </tr> </form> </table> </td> </tr> <tr> <td><img src='../images/message/box3_2.gif' width='370' height='10'></td> </tr> </table> </td> </tr> <tr> <td height=5></td> </tr> <tr> <td> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <form name='lform' method='post' action=''> <input type='hidden' name='mode' value=''> <input type='hidden' name='category' value='$category'> <input type='hidden' name='memid'> <input type='hidden' name='ck' value='Y'> <tr> <td><img src='../images/message/box3_1.gif' width='370' height='10'></td> </tr> <tr> <td height='400' align='center' background='../images/message/box3_3.gif' valign='top'> <div style='border:0 solid #333333; height:400; overflow-y:scroll; width:350'> <table width='335' border='0' cellspacing='0' cellpadding='0'> <col span=5 align=center> <tr background='../images/message/add_p03.gif'> <td width='6'><img src='../images/message/add_p02.gif' width='6' height='28'></td> <td width='60' background='../images/message/add_p03.gif'><a href='javascript:allchk()'><b>Àü ü</b></a></td> <td width='100' background='../images/message/add_p03.gif'><b>¾ÆÀ̵ð</b></td> <td width='*' background='../images/message/add_p03.gif'><b>ÀÌ ¸§</b></td> <td width='6'><img src='../images/message/add_p01.gif' width='6' height='26'></td> </tr> <tr> <td colspan='5' height=10></td> </tr>"; if($column && $keyword) $addsql .= " && $column like '%$keyword%' "; if($tb == "member"){ $sql = "select count(num) from adw_member where num<>0 $addsql order by name asc "; $row = mysql_fetch_array(mysql_query($sql)); $total = $row[0]; if(!$item) $item = 13; if(!$pageitem) $pageitem = 5; if(!$page) $page = 1; $start = ($page - 1) * $item; $totalpage = ceil($total / $item); $pnum = $total - (($page-1) * $item); //$sql = "select * from member where num>0 $addsql order by name asc limit $start, $item"; $sql = "select * from adw_member where num<>0 && userid!='$member_id' $addsql order by name asc"; $res = mysql_query($sql); } else { if($category) $addsql .= " && category='$category' "; $sql = "select count(num) from message_address where id='$member_id' $addsql "; $row = mysql_fetch_array(mysql_query($sql)); $total = $row[0]; if(!$item) $item = 13; if(!$pageitem) $pageitem = 5; if(!$page) $page = 1; $start = ($page - 1) * $item; $totalpage = ceil($total / $item); $pnum = $total - (($page-1) * $item); $sql = "select * from message_address where id='$member_id' $addsql order by name asc limit $start, $item"; $sql = "select * from message_address where id='$member_id' $addsql order by name asc "; $res = mysql_query($sql); } $i = 0; while($row = mysql_fetch_array($res)){ if($i > 0){ echo" <tr> <td colspan='5' class='lineDot' height=5> <table width='100%' cellpadding='0' cellspacing='0'> <tr> <td bgcolor='#EEEEEE'></td> </tr> </table> </td> </tr>"; } if($tb == "member"){ $name = $row[name]; $mid = $row[userid]; } else { $name = $row[name]; $mid = $row[mid]; } echo" <tr> <td></td> <td><input type='checkbox' name='mid[]' value='$mid'></td> <td>$mid</td> <td>$name</td> <td></td> </tr>"; $i++; } if(!$total){ echo" <tr> <td></td> <td colspan='3' align='center'>µî·Ï(°Ë»ö)µÈ ÀÚ·á°¡ ¾ø½À´Ï´Ù.</td> <td></td> </tr>"; } echo" <tr> <td colspan='5' height=10></td> </tr> <tr> <td><img src='../images/message/add_p02.gif' width='6' height='28'></td> <td colspan='3' align='center' background='../images/message/add_p03.gif'> <!-- <table border='0' cellspacing='0' cellpadding='3'> <tr> <td>"; $fquery = "board_db=$board_db&column=$column&keyword=$keyword&tb=$tb"; psk_pagelink($totalpage, $pageitem, $page, "../images/sms/i_prev.gif", "../images/sms/i_next.gif", $fquery, "../images/sms/i_prev2.gif", "../images/sms/i_next2.gif"); echo" </td> </tr> </table> --> </td> <td><img src='../images/message/add_p01.gif' width='6' height='28'></td> </tr> </table> </div> </td> </tr> <tr> <td><img src='../images/message/box3_2.gif' width='370' height='10'></td> </tr> </form> </table> </td> </tr> </table> </td> </tr> <tr valign=top> <td colspan='3' height=10></td> </tr> <tr valign=top> <td><a href='javascript:addPer()'><img src='../images/message/add_btn_ad1.gif' width='92' height='32' border='0'></a> <a href='javascript:addGrp()'><img src='../images/message/add_btn_ad2.gif' width='92' height='32' border='0'></a></td> <td style='background-repeat:no-repeat; background-position:100% 100%'> </td> <td align='right' style='background-repeat:no-repeat; background-position:100% 100%'> <a href='javascript:sendChk()'><img src='../images/message/add_btn_mes.gif' width='92' height='32' border='0'></a> "; if($tb == "member") echo"<img src='../images/message/add_btn_del.gif' width='62' height='32' border='0'></td>"; else echo"<a href='javascript:delChk()'><img src='../images/message/add_btn_del.gif' width='62' height='32' border='0'></a></td>"; echo" </tr> </table> </td> </tr> <tr> <td><img src='../images/message/box2.gif' width='630' height='12'></td> </tr> </table> </td> </tr> </table> </body> </html> "; function psk_pagelink($totalpage, $pageitem, $page, $left, $right, $query){ $linknum = ceil($totalpage / $pageitem); echo"<table cellpadding='0' cellspacing='0' border='0' style='font-size:9pt'><tr>"; $start = (ceil($page / $pageitem) * $pageitem) - ($pageitem - 1); if($start > 1){ $pg = $start - 1; echo "<td width='25' align='center'><a href='$PHP_SELF?page=$pg&$query'><img src='$left' border='0'></a></td>"; } else echo "<td width='25' align='center'><img src='$left' border='0'></td>"; for($i=$start; $i<$start + $pageitem; $i++){ if($i > $totalpage) break; if($page == $i) echo"<td width='23' align='center' style='font-size:9pt; font-family:µ¸¿ò; padding:3 0 0 0;color:#FF0000'>[$i]</td>"; else echo"<td width='23' align='center' style='font-size:9pt; font-family:µ¸¿ò; padding:3 0 0 0;'><a href='$PHP_SELF?page=$i&$query'>[$i]</a></td>"; } if($i - 1 < $totalpage){ echo "<td width='25' align='center'><a href='$PHP_SELF?page=$i&$query'><img src='$right' border='0'></a></td>"; } else echo "<td width='25' align='center'><img src='$right' border='0'></td>"; echo"</tr></table>"; } ?>