mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
8ab17a971d
commit
f8ee494b67
2 changed files with 11 additions and 2 deletions
|
@ -226,6 +226,14 @@ class Subscribe extends ObjectYPT{
|
||||||
$row['backgroundURL'] = User::getBackground($row['users_id']);
|
$row['backgroundURL'] = User::getBackground($row['users_id']);
|
||||||
$row['photoURL'] = User::getPhoto($row['users_id']);
|
$row['photoURL'] = User::getPhoto($row['users_id']);
|
||||||
|
|
||||||
|
|
||||||
|
$row['channel_identification'] = User::getNameIdentificationById($row['subscriber_id']);
|
||||||
|
if ($row['channel_identification'] === __("Unknown User")) {
|
||||||
|
$row['channel_identification'] = $row['email'];
|
||||||
|
}
|
||||||
|
$row['channel_backgroundURL'] = User::getBackground($row['subscriber_id']);
|
||||||
|
$row['channel_photoURL'] = User::getPhoto($row['subscriber_id']);
|
||||||
|
|
||||||
$subscribe[] = $row;
|
$subscribe[] = $row;
|
||||||
}
|
}
|
||||||
//$subscribe = $res->fetch_all(MYSQLI_ASSOC);
|
//$subscribe = $res->fetch_all(MYSQLI_ASSOC);
|
||||||
|
|
|
@ -32,6 +32,7 @@ $_page = new Page(array('Subscribes'));
|
||||||
<table id="grid" class="table table-condensed table-hover table-striped">
|
<table id="grid" class="table table-condensed table-hover table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th data-column-id="channel_identification"><?php echo __("Channel"); ?></th>
|
||||||
<th data-column-id="identification"><?php echo __("My Subscribers"); ?></th>
|
<th data-column-id="identification"><?php echo __("My Subscribers"); ?></th>
|
||||||
<th data-column-id="created"><?php echo __("Created"); ?></th>
|
<th data-column-id="created"><?php echo __("Created"); ?></th>
|
||||||
<th data-column-id="modified"><?php echo __("Modified"); ?></th>
|
<th data-column-id="modified"><?php echo __("Modified"); ?></th>
|
||||||
|
@ -98,7 +99,7 @@ $_page = new Page(array('Subscribes'));
|
||||||
search: "<?php echo __("Search"); ?>",
|
search: "<?php echo __("Search"); ?>",
|
||||||
},
|
},
|
||||||
ajax: true,
|
ajax: true,
|
||||||
url: "<?php echo $global['webSiteRootURL'] . "objects/subscribes.json.php"; ?>",
|
url: webSiteRootURL+"objects/subscribes.json.php",
|
||||||
formatters: {
|
formatters: {
|
||||||
"status": function(column, row) {
|
"status": function(column, row) {
|
||||||
var subscribe = '<button type="button" class="btn btn-xs btn-success command-status" id="subscribe' + row.id + '" data-toggle="tooltip" data-placement="left" title="Unsubscribe"><span class="fa fa-check" aria-hidden="true"></span></button>'
|
var subscribe = '<button type="button" class="btn btn-xs btn-success command-status" id="subscribe' + row.id + '" data-toggle="tooltip" data-placement="left" title="Unsubscribe"><span class="fa fa-check" aria-hidden="true"></span></button>'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue