Commit 0a0171d5 authored by platyhouse's avatar platyhouse

- encrypted

parent adb2d534
<?
/**
* @var array $items
*/
$chartId = uniqid();
if ($chartType == "")
$chartType = "ComboChart";
?>
<section class="content-header">
<h1>
<?=$title?>
<small><?= $title_desc ?></small>
</h1>
<ol class="breadcrumb">
<li><a href="<?= $this->request->appUrl ?>"><i class="fa fa-dashboard"></i> Home</a>
</li>
</ol>
</section>
<section class="content">
<div class="row">
<div class="col-md-12">
<!-- Horizontal Form -->
<div class="box box-info">
<div class="box-body">
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages': ['corechart']});
google.charts.setOnLoadCallback(drawVisualization);
function drawVisualization() {
var data = google.visualization.arrayToDataTable(<?=$charts?>);
var options = {
title: '<?=$chartTitle?>',
vAxis: {title: '<?=$vAsis?>'},
hAxis: {title: '<?=$hAsis?>'},
seriesType: 'bars',
series: {5: {type: 'line'}},
width: '100%',
height: '100%'
};
var chart = new google.visualization.<?=$chartType?>(document.getElementById('chart_div_<?=$chartId?>'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_div_<?=$chartId?>" style="width: 100%; height: 500px;"></div>
</body>
</div>
</div>
</div>
</div>
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">상품별 조회 순위 (시작일:<?=$ranksDate?>~)</h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div>
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="table-responsive">
<table class="table no-margin">
<thead>
<tr>
<th>조회수</th>
<th>제목</th>
</tr>
</thead>
<tbody>
<? foreach ($items as $item) { ?>
<tr>
<td width="100"><?=$item['cnt']?></span></td>
<td><a href="<?=$this->request->appUrl?>/ptyshop/products/edit/?id=<?=$item['id']?>"><?=$item['title']?></a></td>
</tr>
<? } ?>
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
</div>
<div class="row">
<div class="col-md-12">
<!-- Horizontal Form -->
<div class="box box-info">
<div class="box-body">
</div>
</div>
</div>
</div>
</section>
<?
$chartId = uniqid();
if ($chartType == "")
$chartType = "ComboChart";
?>
<section class="content-header">
<h1>
<?=$title?>
<small><?= $title_desc ?></small>
</h1>
<ol class="breadcrumb">
<li><a href="<?= $this->request->appUrl ?>"><i class="fa fa-dashboard"></i> Home</a>
</li>
</ol>
</section>
<section class="content">
<div class="row">
<div class="col-md-12">
<!-- Horizontal Form -->
<div class="box box-info">
<div class="box-body">
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages': ['corechart']});
google.charts.setOnLoadCallback(drawVisualization);
function drawVisualization() {
var data = google.visualization.arrayToDataTable(<?=$charts?>);
var options = {
title: '<?=$chartTitle?>',
vAxis: {title: '<?=$vAsis?>'},
hAxis: {title: '<?=$hAsis?>'},
seriesType: 'bars',
series: {5: {type: 'line'}},
width: '100%',
height: '100%',
isStacked: true,
};
var chart = new google.visualization.<?=$chartType?>(document.getElementById('chart_div_<?=$chartId?>'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_div_<?=$chartId?>" style="width: 100%; height: 500px;"></div>
</body>
</div>
</div>
</div>
</div>
</section>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment