php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -4,11 +4,14 @@ include_once('./_common.php');
|
||||
|
||||
check_demo();
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
$g5['title'] = '글,댓글 현황';
|
||||
include_once ('./admin.head.php');
|
||||
|
||||
$graph = isset($_GET['graph']) ? clean_xss_tags($_GET['graph'], 1, 1) : '';
|
||||
$period = isset($_GET['period']) ? clean_xss_tags($_GET['period'], 1, 1) : '';
|
||||
|
||||
// http://www.jqplot.com/
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_PLUGIN_URL.'/jqplot/jquery.jqplot.css">', 1);
|
||||
add_javascript('<script src="'.G5_PLUGIN_URL.'/jqplot/jquery.jqplot.js"></script>', 1);
|
||||
@ -75,6 +78,8 @@ $sql_bo_table = '';
|
||||
if ($bo_table)
|
||||
$sql_bo_table = "and bo_table = '$bo_table'";
|
||||
|
||||
$line1 = $line2 = array();
|
||||
|
||||
switch ($day) {
|
||||
case '시간' :
|
||||
$sql = " select substr(bn_datetime,6,8) as hours, sum(if(wr_id=wr_parent,1,0)) as wcount, sum(if(wr_id=wr_parent,0,1)) as ccount from {$g5['board_new_table']} where substr(bn_datetime,1,10) between '$from' and '$to' {$sql_bo_table} group by hours order by bn_datetime ";
|
||||
@ -175,8 +180,8 @@ if (empty($line1) || empty($line2)) {
|
||||
<div id="chart1" style="height:500px; width:100%;"></div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
var line1 = [<?php echo implode($line1, ','); ?>];
|
||||
var line2 = [<?php echo implode($line2, ','); ?>];
|
||||
var line1 = [<?php echo implode(',', $line1); ?>];
|
||||
var line2 = [<?php echo implode(',', $line2); ?>];
|
||||
var plot1 = $.jqplot ('chart1', [line1, line2], {
|
||||
seriesDefaults: {
|
||||
<?php if ($graph == 'bar') { ?>
|
||||
@ -205,5 +210,4 @@ $(document).ready(function(){
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
include_once ('./admin.tail.php');
|
||||
?>
|
||||
include_once ('./admin.tail.php');
|
||||
Reference in New Issue
Block a user