1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
Daniel Neto 2023-07-03 16:54:37 -03:00
parent fcf782cbb5
commit 8c9c5d239e
3 changed files with 44 additions and 47 deletions

View file

@ -25,18 +25,16 @@ foreach ($rows as $key => $value) {
$chartDataCount[] = $value['count']; $chartDataCount[] = $value['count'];
} }
?> ?>
<div class="container-fluid"> <div class="container">
<div class="row"> <div class="panel panel-default">
<div class="col-md-12"> <div class="panel-heading" style="height: 70px;">
<h1><?php echo __('Reward'); ?></h1>
</div>
<div class="panel"> <div class="panel">
<div class="panel-body"> <div class="panel-body">
<canvas id="rewardChart" style="width:100%; height:400px;"></canvas> <canvas id="rewardChart" style="width:100%; height:400px;"></canvas>
</div> </div>
</div> <div class="panel-footer">
</div>
<div class="col-md-12">
<div class="panel">
<div class="panel-body">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
@ -59,7 +57,7 @@ foreach ($rows as $key => $value) {
$records = array(); $records = array();
foreach ($row['data'] as $key => $recordData) { foreach ($row['data'] as $key => $recordData) {
$link = Video::getLinkToVideo($recordData['videos_id']); $link = Video::getLinkToVideo($recordData['videos_id']);
$records[] = "".($key+1)." - <a href=\"{$link}\" target=\"_blank\">[{$recordData['record_created']}] ".strip_tags($recordData['title'])."</a>"; $records[] = "" . ($key + 1) . " - <a href=\"{$link}\" target=\"_blank\">[{$recordData['record_created']}] " . strip_tags($recordData['title']) . "</a>";
} }
echo implode('<br>', $records); echo implode('<br>', $records);
echo '</td>'; echo '</td>';
@ -71,9 +69,6 @@ foreach ($rows as $key => $value) {
</div> </div>
</div> </div>
</div> </div>
</div>
</div> </div>
<script src="<?php echo getURL('node_modules/chart.js/dist/chart.umd.js'); ?>" type="text/javascript"></script> <script src="<?php echo getURL('node_modules/chart.js/dist/chart.umd.js'); ?>" type="text/javascript"></script>

View file

@ -285,8 +285,6 @@ class VideosStatistics extends PluginAbstract {
$obj->totalLikes += $video->total_likes; $obj->totalLikes += $video->total_likes;
$obj->totalDislikes += $video->total_dislikes; $obj->totalDislikes += $video->total_dislikes;
} }
} else {
die($sql . '\nError : (' . $global['mysqli']->errno . ') ' . $global['mysqli']->error);
} }
if (!empty($obj->videos)) { if (!empty($obj->videos)) {

View file

@ -52,6 +52,10 @@ if (!empty($_GET['users_id'])) {
</div> </div>
<?php <?php
if(AVideoPlugin::isEnabledByName('MonetizeUsers')){
include $global['systemRootPath'] . 'plugin/MonetizeUsers/View/report.php';
}
include $global['systemRootPath'] . 'view/include/footer.php'; include $global['systemRootPath'] . 'view/include/footer.php';
?> ?>
<script> <script>