1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Daniel Neto 2025-05-09 19:15:36 -03:00
parent 8ab17a971d
commit f8ee494b67
2 changed files with 11 additions and 2 deletions

View file

@ -226,6 +226,14 @@ class Subscribe extends ObjectYPT{
$row['backgroundURL'] = User::getBackground($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 = $res->fetch_all(MYSQLI_ASSOC);

View file

@ -32,6 +32,7 @@ $_page = new Page(array('Subscribes'));
<table id="grid" class="table table-condensed table-hover table-striped">
<thead>
<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="created"><?php echo __("Created"); ?></th>
<th data-column-id="modified"><?php echo __("Modified"); ?></th>
@ -98,7 +99,7 @@ $_page = new Page(array('Subscribes'));
search: "<?php echo __("Search"); ?>",
},
ajax: true,
url: "<?php echo $global['webSiteRootURL'] . "objects/subscribes.json.php"; ?>",
url: webSiteRootURL+"objects/subscribes.json.php",
formatters: {
"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>'
@ -125,4 +126,4 @@ $_page = new Page(array('Subscribes'));
</script>
<?php
$_page->print();
?>
?>