@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
/
_poll
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/_poll/poll_list.php
<? $poll_color = array("FFCC33", "FF9999", "FFCC99", "99CC66", "CCCC66", "66CCCC", "6699CC", "CC99CC", "FF99CC", "CCCCCC"); echo" <script> function delChk(code){ if(confirm('¼³¹®À» »èÁ¦ ÇϽðڽÀ´Ï±î? ')){ location.replace('./_poll/proc.php?mode=delete&code='+code); } } </script> <table width='100%' cellpadding='0' cellspacing='1' border='0'> <form name='infoform' method='post' action='./sms_process.php'> <input type='hidden' name='mode' value='info'> <input type='hidden' name='BACK_URL' value='$PHP_SELF'> <tr height='30'> <td><b>¼³¹® ¸®½ºÆ®</b></td> </tr> <tr> <td> <TABLE width='100%' cellpadding='0' cellspacing='0' align='center' border='0' background='./img/board_bg.gif'> <tr height='28' align='center'> <th width='10%'><FONT style='COLOR:#ffffff;font-size:11px'>¹øÈ£</th> <th width='75%'><FONT style='COLOR:#ffffff;font-size:11px'>¼³¹®³»¿ë</th> <th width='15%'><FONT style='COLOR:#ffffff;font-size:11px'>¼öÁ¤ / »èÁ¦</th> </tr>"; if($keyword) $addwhere = " && $category like '%$keyword%' "; $row = $mysql->row("adw_poll", "count(num)", "where p_type='M' $addwhere"); $total = $row[0]; $item = $page_skip; if(!$item) $item = 5; $pageitem = $pagenumber; if(!$pageitem) $pageitem = 10; if(!$page) $page = 1; $start = ($page - 1) * $item; $totalpage = ceil($total / $item); $pnum = $total - (($page-1) * $item); $res = $mysql->res("adw_poll", "*", "where p_type='M' $addwhere order by num desc limit $start, $item"); while($row = mysql_fetch_array($res)){ if($row[stat] == 0 || $row[edate] < date("Y-m-d")) $pstat = "¼³¹®Á¾·á"; else $pstat = "ÁøÇàÁß"; echo" <tr bgcolor='#F6F6F6'> <td align='center'>".$pnum--."</td> <td> <table width='100%' border='0' cellpadding='2' cellspacing='0'> <tr height='26'> <TD colspan='4'> <b>Q. $row[subject]</b> ($row[sdate] ~ $row[edate]) $pstat</td> </tr>"; $hit_sql = "select sum(hit) from adw_poll where code='$row[code]' && p_type='S'"; $hit_row = mysql_fetch_array(mysql_query($hit_sql)); $hit_total = $hit_row[0]; $sub_sql = "select * from adw_poll where code='$row[code]' && p_type='S' order by num asc "; $sub_res = mysql_query($sub_sql); $kk = 0; while($sub_row = mysql_fetch_array($sub_res)){ if($sub_row[hit]) $width = round(($sub_row[hit] / $hit_total) * 100)."%"; else $width = "1"; if($sub_row[hit]) $perc = round(($sub_row[hit] / $hit_total) * 100, 2); else $perc = 0; echo" <tr height='25'> <TD width=30%> $sub_row[subject]</TD> <TD width=15% align=center>$sub_row[hit] ¸í</TD> <TD width=55% style='padding-left:5'> <div style='position:absolute; padding-left:80'>$perc %</div> <table border='0' width='$width' cellpadding='0' cellspacing='0'> <tr height='15' bgcolor='#$poll_color[$kk]'> <td></td> </tr> </table> </td> </tr>"; $kk++; } echo" </table> </td> <td align='center'><a href='?amode=poll_modify&code=$row[code]'>¼öÁ¤</a> / <a href=\"javascript:delChk('$row[code]')\">»èÁ¦</a></td> </tr> <tr height='1' bgcolor='#DDDDDD'> <td colspan='3'></td> </tr> "; } if(!$total){ echo" <tr height='30' bgcolor='#FFFFFF' align='center'> <td colspan='3'>µî·ÏµÈ ¼³¹®ÀÌ ¾ø½À´Ï´Ù.</td> </tr> <tr height='1' bgcolor='#DDDDDD'> <td colspan='3'></td> </tr>"; } echo" </TR> </table> </td> </tr> <tr align='center' height='50'> <td colspan='3'>"; $fquery = "pollpg=$pollpg&amode=$amode"; $lib->psk_pagelink($totalpage, $pageitem, $page, "./img/left_arr.gif", "./img/right_arr.gif", $fquery); echo" </td> </tr> </TABLE> "; ?>