@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/msg_send_list.php
<? if(!$item) $item = 10; if(!$pageitem) $pageitem = 5; if(!$page) $page = 1; $start = ($page - 1) * $item; if($word) $addwhere = " && $part like '%$word%' "; $sql = "select count(num) from message where send_id='admin' && send_del='N' $addwhere"; $res = mysql_query($sql); $row = mysql_fetch_array($res); $total = $row[0]; $totalpage = ceil($total / $item); $pnum = $total - (($page-1) * $item); $sql = "select * from message where send_id='admin' && send_del='N' $addwhere order by num desc limit $start, $item"; $res = mysql_query($sql); ?> <script language="javascript"> function check_del(num){ if(!confirm("»èÁ¦ ÇÏ½Ã¸é ¸ðµç Á¤º¸°¡ »ç¶óÁý´Ï´Ù. »èÁ¦ ÇÒ±î¿ä?")){ return; } location.href=("./message/process.php?mode=send_del&page=<?=$page?>&num="+num+"<?=$search?>"); } </script> <TABLE width=100% border=0 cellpadding=0 cellspacing=0> <tr height='30'> <td><b>ÂÊÁö ¹ß¼Û ¸®½ºÆ®</b></td> </tr> <tr> <td style='border:1 solid #CCCCCC'> <TABLE width='100%' cellpadding='0' cellspacing='2' align='center' border='0' bgcolor='#FFFFFF'> <tr height='28' bgcolor='#EEEEEE' align='center'> <td width='6%' nowrap>¹øÈ£</td> <td width='15%' nowrap>¼ö½ÅÀÚ¾ÆÀ̵ð</td> <td width='15%' nowrap>¼ö½ÅÀÚ¼º¸í</td> <td width='*' nowrap>Á¦¸ñ</td> <td width='13%' nowrap>¼ö½ÅÈ®ÀÎÀÏ</td> <td width='13%' nowrap>¹ß¼ÛÀÏ</td> <td width='6%' nowrap>»èÁ¦</td> </tr> <? while($row = mysql_fetch_array($res)){ $rec_date = (substr($row[rec_date], 0, 10) == "0000-00-00") ? "¹ÌÈ®ÀÎ" : substr($row[rec_date], 0, 10); $send_date = substr($row[send_date], 0, 10); echo" <TR height='25' bgcolor='#FFFFFF' align='center'> <td>".$pnum--."</td> <td>$row[rec_id]</td> <td>$row[rec_name]</td> <td align='left'> <a href='?amode=member_send_read&num=$row[num]&page=$page'>$row[subject]</a></td> <td>$rec_date</td> <td>$send_date</td> <td><a href=\"javascript:check_del('$row[num]');\"><font color=red>»èÁ¦</font></a></td> </tr> <tr height='1' bgcolor='#EEEEEE'> <td colspan='10'></td> </tr> "; } if(!$total){ echo " <tr height='100' bgcolor='#ffffff' align='center'> <td colspan='10'><b>µî·Ï(°Ë»ö)µÈ ÀÚ·á°¡ ¾ø½À´Ï´Ù.</b></td> </tr> <tr height='1' bgcolor='#EEEEEE'> <td colspan='10'></td> </tr>"; } echo"</table> </td> </tr> <tr> <td> <table width='100%' cellpadding='0' cellspacing='0'> <tr align='center' height='50'> <td>"; $fquery = "amode=member_send_list"; $lib->psk_pagelink($totalpage, $pageitem, $page, "/admin/img/left_arr.gif", "/admin/img/right_arr.gif", $fquery); echo" </td> </tr> </table> </td> </tr> </table>"; ?>