@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
/
wlog
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/wlog/log_count_only.php
<? $dbnum = "1"; $table = "psk_count$dbnum"; $sub_titlename = "Àüü¹æ¹®ÀÚ"; if(!$compare) $compare = ""; if(!$basedate1) $basedate1 = date("Y-m-d"); $bdate1 = mktime(0, 0, 0, $expdate[1], $expdate[2], $expdate[0]); if(date("Y-m-d", $bdate1+(60*60*24*30)) < $basedate2){ $basedate2 = date("Y-m-d", $bdate1+(60*60*24*30)); } for($i=0; ; $i++){ $chkdate = $bdate1 + (60*60*24*$i); // ´ÜÀ§ $gtxt[$i] = date("d", $chkdate); $row = $mysql->row($table, "total", "where basedate='".date("Y-m-d", $chkdate)."'", 0); $gval[$i] = $row[0]; $_date[$i] = $chkdate; if(date("Y-m-d", $chkdate) >= $basedate2) break; } $graph[w] = 705; // ±×·¡ÇÁ ³ÐÀÌ $graph[h] = 300; // ±×·¡ÇÁ ³ÐÀÌ $graph[outcolor] = "#999"; // Å׵θ® »ö»ó $graph[grapcolor] = "#333"; // x, y ¼± »ö»ó $graph[barcolor] = "#399"; // ¸·´ë±×·¡ÇÁ »ö»ó $graph[unit] = "(´ÜÀ§ : ÀÏ)"; // ±×·¡ÇÁ ÇÏ´Ü ¹®±¸ $bgraph->barGraph($graph); echo" <br /> <table id='l-table'> <thead> <tr> <th width='33%'>³¯Â¥</th> <th width='33%'>¹æ¹®ÀÚ¼ö</th> <th width='33%'>¹éºÐÀ²</th> </tr> </thead>"; reset($gtxt); reset($gval); $_total = array_sum($gval); if($_total) $perc = round(($_total / $_total) * 100 , 2); else $perc = 0; echo" <tfoot> <tr> <td height='20' style='background-color:#EEE'><b>TOTAL</b></td> <td style='background-color:#EEE'><b>$_total</b></td> <td style='background-color:#EEE'><b>$perc %</b></td> </tr> </tfoot> <tbody>"; reset($gtxt); reset($gval); while(list($key, $val) = each($_date)){ $_count = ($gval[$key]) ? $gval[$key] : "0"; if($_count) $perc = round(($_count / $_total) * 100 , 2); else $perc = 0; echo" <tr> <td height='20'>".date("Y³â m¿ù dÀÏ", $val)."</td> <td>".number_format($_count)."</td> <td>$perc %</td> </tr>"; } echo" </tbody> </table> "; ?>