%PDF- %PDF-
| Direktori : /www/varak.net/paste.varak.net-5.6/app/storage/views/ |
| Current File : /www/varak.net/paste.varak.net-5.6/app/storage/views/d970da019d042da607077f21ad3e3055 |
<?php $__env->startSection('module'); ?>
<section id="admin-dashboard">
<div class="row">
<div class="col-sm-12">
<h4>
<span class="glyphicon glyphicon-time"></span>
<?php echo Lang::get('admin.versions'); ?>
</h4>
<div class="row">
<div class="col-sm-6">
<div class="well well-sm well-white">
<b><?php echo Lang::get('admin.php_version'); ?>:</b>
<?php echo $php_version; ?>
</div>
</div>
<div class="col-sm-6">
<div class="well well-sm well-white">
<b><?php echo Lang::get('admin.stickynotes_version'); ?>:</b>
<?php echo $sn_version; ?>
<span data-toggle="ajax" data-onload="true" data-component="version">
<span class="glyphicon glyphicon-refresh"></span>
</span>
</div>
</div>
</div>
<h4>
<span class="glyphicon glyphicon-hdd"></span>
<?php echo Lang::get('admin.data'); ?>
</h4>
<div class="row">
<div class="col-sm-6">
<div class="well well-sm well-white">
<b><?php echo Lang::get('admin.users'); ?>:</b>
<?php echo $users; ?>
</div>
</div>
<div class="col-sm-6">
<div class="well well-sm well-white">
<b><?php echo Lang::get('admin.pastes'); ?>:</b>
<?php echo $pastes; ?>
</div>
</div>
</div>
<h4>
<span class="glyphicon glyphicon-briefcase"></span>
<?php echo Lang::get('admin.system'); ?>
</h4>
<div class="row">
<div class="col-sm-6">
<div class="well well-sm well-white">
<b><?php echo Lang::get('admin.db_driver'); ?>:</b>
<?php echo $db_driver; ?>
</div>
</div>
<div class="col-sm-6">
<div class="well well-sm well-white">
<b><?php echo Lang::get('admin.system_load'); ?>:</b>
<span data-toggle="ajax" data-realtime="true" data-onload="true" data-component="sysload">
<span class="glyphicon glyphicon-refresh"></span>
</span>
</div>
</div>
</div>
<h4>
<span class="glyphicon glyphicon-stats"></span>
<?php echo Lang::get('admin.paste_stats'); ?>
</h4>
<div class="row">
<div class="col-sm-12">
<?php if(count($stats) > 1): ?>
<div id="dashboard-stats" class="well well-sm well-white">
<?php echo $__env->make('skins.bootstrap.common.loader', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
</div>
<script type="text/javascript">
// Load the Visualization API and the piechart package.
google.load('visualization', '1.0', { packages: ['corechart'], language: '<?php echo $site->general->lang; ?>' });
// Set a callback to run when the Google Visualization API is loaded.
google.setOnLoadCallback(function()
{
// Create the data table.
chartData = new google.visualization.DataTable();
// Add columns
chartData.addColumn('date', '<?php echo Lang::get('admin.date'); ?>');
chartData.addColumn('number', '<?php echo Lang::get('admin.web'); ?>');
chartData.addColumn('number', '<?php echo Lang::get('admin.api'); ?>');
// Add rows
<?php foreach($stats as $stat): ?>
chartData.addRow([ new Date('<?php echo $stat['date']; ?>'), <?php echo $stat['web']; ?>, <?php echo $stat['api']; ?> ]);
<?php endforeach; ?>
// Define the chart container
chartContainer = document.getElementById('dashboard-stats');
// Draw the chart
initAreaChart();
});
</script>
<?php else: ?>
<div class="alert alert-info">
<?php echo Lang::get('admin.stat_no_data'); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('skins.bootstrap.admin.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>