mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update page builder
This commit is contained in:
parent
a08af28ae1
commit
8341712d58
49 changed files with 2141 additions and 2740 deletions
348
admin/index.php
348
admin/index.php
|
@ -189,197 +189,181 @@ switch ($_GET['page']) {
|
||||||
$includeBody = $global['systemRootPath'] . 'view/charts_body.php';
|
$includeBody = $global['systemRootPath'] . 'view/charts_body.php';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<?php
|
|
||||||
echo getHTMLTitle(__("Administration"));
|
|
||||||
?>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
if (!empty($includeHead) && file_exists($includeHead)) {
|
|
||||||
echo "<!-- Include $includeHead -->";
|
|
||||||
include $includeHead;
|
|
||||||
echo "<!-- END Include $includeHead -->";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<style>
|
|
||||||
@media (max-width: 767px) {
|
|
||||||
.affix {
|
|
||||||
position: static;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.leftMenu .panel-body {
|
|
||||||
padding: 0px;
|
|
||||||
}
|
|
||||||
.adminLeftMenu.panel-default i, .adminLeftMenu.panel-default{
|
|
||||||
-webkit-transition: opacity 0.5s ease-in-out;
|
|
||||||
-moz-transition: opacity 0.5s ease-in-out;
|
|
||||||
transition: opacity 0.5s ease-in-out;
|
|
||||||
}
|
|
||||||
.adminLeftMenu.panel-default i{
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
.adminLeftMenu:hover.panel-default i{
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
.adminLeftMenu.panel-default{
|
|
||||||
opacity: 0.6;
|
|
||||||
}
|
|
||||||
.adminLeftMenu:hover.panel-default{
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
$_page = new Page(array('Administration'));
|
||||||
<br>
|
if (!empty($includeHead) && file_exists($includeHead)) {
|
||||||
<div class="row">
|
$_page->setIncludeInHead(array($includeHead));
|
||||||
<div class=" col-lg-2 col-md-3 col-sm-3 fixed affix leftMenu">
|
}
|
||||||
<div class="panel-group" id="accordion">
|
|
||||||
<?php
|
?>
|
||||||
$panel = 'panel-default';
|
<style>
|
||||||
if (empty($_REQUEST['page'])) {
|
@media (max-width: 767px) {
|
||||||
$panel = 'panel-primary';
|
.affix {
|
||||||
}
|
position: static;
|
||||||
foreach ($itens as $key => $value) {
|
}
|
||||||
$uid = uniqid();
|
}
|
||||||
$href = 'data-toggle="collapse" data-parent="#accordion" href="#collapse' . $uid . '"';
|
.leftMenu .panel-body {
|
||||||
if (!empty($value->href)) {
|
padding: 0px;
|
||||||
$href = 'href="' . $global['webSiteRootURL'] . 'admin/?page=' . $value->href . '"';
|
}
|
||||||
}
|
.adminLeftMenu.panel-default i, .adminLeftMenu.panel-default{
|
||||||
if (!empty($_REQUEST['page']) && $_REQUEST['page'] == $value->href) {
|
-webkit-transition: opacity 0.5s ease-in-out;
|
||||||
|
-moz-transition: opacity 0.5s ease-in-out;
|
||||||
|
transition: opacity 0.5s ease-in-out;
|
||||||
|
}
|
||||||
|
.adminLeftMenu.panel-default i{
|
||||||
|
opacity: 0.2;
|
||||||
|
}
|
||||||
|
.adminLeftMenu:hover.panel-default i{
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
.adminLeftMenu.panel-default{
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
.adminLeftMenu:hover.panel-default{
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="container-fluid">
|
||||||
|
<br>
|
||||||
|
<div class="row">
|
||||||
|
<div class=" col-lg-2 col-md-3 col-sm-3 fixed affix leftMenu">
|
||||||
|
<div class="panel-group" id="accordion">
|
||||||
|
<?php
|
||||||
|
$panel = 'panel-default';
|
||||||
|
if (empty($_REQUEST['page'])) {
|
||||||
|
$panel = 'panel-primary';
|
||||||
|
}
|
||||||
|
foreach ($itens as $key => $value) {
|
||||||
|
$uid = uniqid();
|
||||||
|
$href = 'data-toggle="collapse" data-parent="#accordion" href="#collapse' . $uid . '"';
|
||||||
|
if (!empty($value->href)) {
|
||||||
|
$href = 'href="' . $global['webSiteRootURL'] . 'admin/?page=' . $value->href . '"';
|
||||||
|
}
|
||||||
|
if (!empty($_REQUEST['page']) && $_REQUEST['page'] == $value->href) {
|
||||||
|
$panel = 'panel-primary';
|
||||||
|
} else {
|
||||||
|
foreach ($value->itens as $key2 => $value2) {
|
||||||
|
if (!empty($_REQUEST['page']) && $_REQUEST['page'] === $value2->href) {
|
||||||
$panel = 'panel-primary';
|
$panel = 'panel-primary';
|
||||||
} else {
|
}
|
||||||
foreach ($value->itens as $key2 => $value2) {
|
}
|
||||||
if (!empty($_REQUEST['page']) && $_REQUEST['page'] === $value2->href) {
|
} ?>
|
||||||
$panel = 'panel-primary';
|
<div class="panel <?php echo $panel; ?> adminLeftMenu <?php echo getCSSAnimationClassAndStyle('animate__bounceInLeft', 'menu'); ?>">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h4 class="panel-title">
|
||||||
|
<a <?php echo $href; ?>>
|
||||||
|
<i class="<?php echo $value->icon; ?> "></i> <?php echo $value->title; ?>
|
||||||
|
</a>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
if (!empty($value->itens)) {
|
||||||
|
$in = '';
|
||||||
|
if (!empty($_GET['page'])) {
|
||||||
|
foreach ($value->itens as $search) {
|
||||||
|
if ($_GET['page'] === $search->href) {
|
||||||
|
$in = "in";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} ?>
|
} ?>
|
||||||
<div class="panel <?php echo $panel; ?> adminLeftMenu <?php echo getCSSAnimationClassAndStyle('animate__bounceInLeft', 'menu'); ?>">
|
<div id="collapse<?php echo $uid; ?>" class="panel-collapse collapse <?php echo $in; ?>">
|
||||||
<div class="panel-heading">
|
<div class="panel-body">
|
||||||
<h4 class="panel-title">
|
<table class="table">
|
||||||
<a <?php echo $href; ?> >
|
<?php
|
||||||
<i class="<?php echo $value->icon; ?> "></i> <?php echo $value->title; ?>
|
$active = '';
|
||||||
</a>
|
if (empty($_GET['page'])) {
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
if (!empty($value->itens)) {
|
|
||||||
$in = '';
|
|
||||||
if (!empty($_GET['page'])) {
|
|
||||||
foreach ($value->itens as $search) {
|
|
||||||
if ($_GET['page'] === $search->href) {
|
|
||||||
$in = "in";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} ?>
|
|
||||||
<div id="collapse<?php echo $uid; ?>" class="panel-collapse collapse <?php echo $in; ?>">
|
|
||||||
<div class="panel-body">
|
|
||||||
<table class="table">
|
|
||||||
<?php
|
|
||||||
$active = '';
|
|
||||||
if (empty($_GET['page'])) {
|
|
||||||
$active = "active";
|
|
||||||
}
|
|
||||||
foreach ($value->itens as $key2 => $value2) {
|
|
||||||
if (!empty($_GET['page']) && $_GET['page'] === $value2->href) {
|
|
||||||
$active = "active";
|
$active = "active";
|
||||||
|
}
|
||||||
|
foreach ($value->itens as $key2 => $value2) {
|
||||||
|
if (!empty($_GET['page']) && $_GET['page'] === $value2->href) {
|
||||||
|
$active = "active";
|
||||||
|
} ?>
|
||||||
|
<tr>
|
||||||
|
<td class="<?php echo $active; ?>">
|
||||||
|
<a href="<?php echo "{$global['webSiteRootURL']}admin/?page=" . $value2->href; ?>"><i class="<?php echo $value2->icon; ?>"></i> <?php echo $value2->title; ?></a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$active = '';
|
||||||
} ?>
|
} ?>
|
||||||
<tr>
|
</table>
|
||||||
<td class="<?php echo $active; ?>">
|
|
||||||
<a href="<?php echo "{$global['webSiteRootURL']}admin/?page=" . $value2->href; ?>"><i class="<?php echo $value2->icon; ?>"></i> <?php echo $value2->title; ?></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$active = '';
|
|
||||||
} ?>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
} ?>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
$panel = 'panel-default';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class=" col-lg-10 col-md-9 col-sm-9 col-sm-offset-3 col-md-offset-3 col-lg-offset-2 ">
|
|
||||||
<?php
|
|
||||||
if (!empty($includeBody)) {
|
|
||||||
if (is_array($includeBody)) {
|
|
||||||
foreach ($includeBody as $value) {
|
|
||||||
if (file_exists($value)) {
|
|
||||||
include $value;
|
|
||||||
} else {
|
|
||||||
?>
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<?php echo __('Please forgive us for bothering you, but unfortunately you do not have this plugin yet. But do not hesitate to purchase it in our online store'); ?>
|
|
||||||
<a class="btn btn-danger" href="https://youphp.tube/marketplace/"><?php echo __('Plugin Store'); ?></a>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (file_exists($includeBody)) {
|
|
||||||
include $includeBody;
|
|
||||||
} else {
|
|
||||||
?>
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<?php echo __('Please forgive us for bothering you, but unfortunately you do not have this plugin yet. But do not hesitate to purchase it in our online store'); ?>
|
|
||||||
<a class="btn btn-danger" href="https://youphp.tube/marketplace/"><?php echo __('Plugin Store'); ?></a>
|
|
||||||
</div>
|
</div>
|
||||||
<?php
|
</div>
|
||||||
}
|
<?php
|
||||||
}
|
} ?>
|
||||||
}
|
</div>
|
||||||
?>
|
<?php
|
||||||
</div>
|
$panel = 'panel-default';
|
||||||
|
}
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class=" col-lg-10 col-md-9 col-sm-9 col-sm-offset-3 col-md-offset-3 col-lg-offset-2 ">
|
||||||
|
<?php
|
||||||
<?php
|
if (!empty($includeBody)) {
|
||||||
include_once $global['systemRootPath'] . 'view/include/footer.php';
|
if (is_array($includeBody)) {
|
||||||
?>
|
foreach ($includeBody as $value) {
|
||||||
<script>
|
if (file_exists($value)) {
|
||||||
|
include $value;
|
||||||
$(document).ready(function () {
|
} else {
|
||||||
$('.adminOptionsForm').submit(function (e) {
|
?>
|
||||||
e.preventDefault();
|
<div class="alert alert-danger">
|
||||||
modal.showPleaseWait();
|
<?php echo __('Please forgive us for bothering you, but unfortunately you do not have this plugin yet. But do not hesitate to purchase it in our online store'); ?>
|
||||||
$.ajax({
|
<a class="btn btn-danger" href="https://youphp.tube/marketplace/"><?php echo __('Plugin Store'); ?></a>
|
||||||
url: webSiteRootURL+'admin/save.json.php',
|
</div>
|
||||||
data: $(this).serialize(),
|
<?php
|
||||||
type: 'post',
|
|
||||||
success: function (response) {
|
|
||||||
modal.hidePleaseWait();
|
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
});
|
} else {
|
||||||
$('.pluginSwitch').change(function (e) {
|
if (file_exists($includeBody)) {
|
||||||
modal.showPleaseWait();
|
include $includeBody;
|
||||||
$.ajax({
|
} else {
|
||||||
url: webSiteRootURL+'objects/pluginSwitch.json.php',
|
?>
|
||||||
data: {"uuid": $(this).attr('uuid'), "name": $(this).attr('name'), "dir": $(this).attr('name'), "enable": $(this).is(":checked")},
|
<div class="alert alert-danger">
|
||||||
type: 'post',
|
<?php echo __('Please forgive us for bothering you, but unfortunately you do not have this plugin yet. But do not hesitate to purchase it in our online store'); ?>
|
||||||
success: function (response) {
|
<a class="btn btn-danger" href="https://youphp.tube/marketplace/"><?php echo __('Plugin Store'); ?></a>
|
||||||
modal.hidePleaseWait();
|
</div>
|
||||||
}
|
<?php
|
||||||
});
|
}
|
||||||
});
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('.adminOptionsForm').submit(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
modal.showPleaseWait();
|
||||||
|
$.ajax({
|
||||||
|
url: webSiteRootURL + 'admin/save.json.php',
|
||||||
|
data: $(this).serialize(),
|
||||||
|
type: 'post',
|
||||||
|
success: function(response) {
|
||||||
|
modal.hidePleaseWait();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
});
|
||||||
</body>
|
$('.pluginSwitch').change(function(e) {
|
||||||
</html>
|
modal.showPleaseWait();
|
||||||
|
$.ajax({
|
||||||
|
url: webSiteRootURL + 'objects/pluginSwitch.json.php',
|
||||||
|
data: {
|
||||||
|
"uuid": $(this).attr('uuid'),
|
||||||
|
"name": $(this).attr('name'),
|
||||||
|
"dir": $(this).attr('name'),
|
||||||
|
"enable": $(this).is(":checked")
|
||||||
|
},
|
||||||
|
type: 'post',
|
||||||
|
success: function(response) {
|
||||||
|
modal.hidePleaseWait();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
$_page->print();
|
||||||
|
?>
|
|
@ -14,6 +14,7 @@ class Page
|
||||||
private $includeFooter = true;
|
private $includeFooter = true;
|
||||||
private $includeBGAnimation = false;
|
private $includeBGAnimation = false;
|
||||||
private $includeInHead = array();
|
private $includeInHead = array();
|
||||||
|
private $includeInBody = array();
|
||||||
private $includeInFooter = array();
|
private $includeInFooter = array();
|
||||||
|
|
||||||
public function __construct($title, $bodyClass = '', $loadBasicCSSAndJS = false)
|
public function __construct($title, $bodyClass = '', $loadBasicCSSAndJS = false)
|
||||||
|
@ -92,6 +93,11 @@ class Page
|
||||||
$this->includeInHead = $includeInHead;
|
$this->includeInHead = $includeInHead;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setIncludeInBody(array $includeInBody)
|
||||||
|
{
|
||||||
|
$this->includeInBody = $includeInBody;
|
||||||
|
}
|
||||||
|
|
||||||
public function setIncludeInFooter(array $includeInFooter)
|
public function setIncludeInFooter(array $includeInFooter)
|
||||||
{
|
{
|
||||||
$this->includeInFooter = $includeInFooter;
|
$this->includeInFooter = $includeInFooter;
|
||||||
|
@ -117,7 +123,16 @@ class Page
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
include $global['systemRootPath'] . 'view/include/head.php';
|
||||||
if (!empty($this->includeInHead)) {
|
if (!empty($this->includeInHead)) {
|
||||||
foreach ($this->includeInHead as $value) {
|
foreach ($this->includeInHead as $value) {
|
||||||
include $global['systemRootPath'] . $value;
|
if(!empty($value)){
|
||||||
|
if(!file_exists($value)){
|
||||||
|
$value = $global['systemRootPath'] . $value;
|
||||||
|
}
|
||||||
|
if(file_exists($value)){
|
||||||
|
include $value;
|
||||||
|
}else{
|
||||||
|
echo "<!-- Page::includeInHead not found {$value} -->";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($this->extraStyles)) {
|
if (!empty($this->extraStyles)) {
|
||||||
|
@ -157,7 +172,16 @@ class Page
|
||||||
}
|
}
|
||||||
if (!empty($this->includeInFooter)) {
|
if (!empty($this->includeInFooter)) {
|
||||||
foreach ($this->includeInFooter as $value) {
|
foreach ($this->includeInFooter as $value) {
|
||||||
include $global['systemRootPath'] . $value;
|
if(!empty($value)){
|
||||||
|
if(!file_exists($value)){
|
||||||
|
$value = $global['systemRootPath'] . $value;
|
||||||
|
}
|
||||||
|
if(file_exists($value)){
|
||||||
|
include $value;
|
||||||
|
}else{
|
||||||
|
echo "<!-- Page::includeInFooter not found {$value} -->";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($this->extraScripts)) {
|
if (!empty($this->extraScripts)) {
|
||||||
|
@ -181,6 +205,20 @@ class Page
|
||||||
$this->getNavBar();
|
$this->getNavBar();
|
||||||
//echo '<div id="_avideoPageContentLoading" class="progress"><div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"><span class="sr-only">Loading...</span></div></div>';
|
//echo '<div id="_avideoPageContentLoading" class="progress"><div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"><span class="sr-only">Loading...</span></div></div>';
|
||||||
//echo '<div id="_avideoPageContent">';
|
//echo '<div id="_avideoPageContent">';
|
||||||
|
if (!empty($this->includeInBody)) {
|
||||||
|
foreach ($this->includeInBody as $value) {
|
||||||
|
if(!empty($value)){
|
||||||
|
if(!file_exists($value)){
|
||||||
|
$value = $global['systemRootPath'] . $value;
|
||||||
|
}
|
||||||
|
if(file_exists($value)){
|
||||||
|
include $value;
|
||||||
|
}else{
|
||||||
|
echo "<!-- Page::includeInBody not found {$value} -->";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
echo $this->bodyContent;
|
echo $this->bodyContent;
|
||||||
//echo '</div>';
|
//echo '</div>';
|
||||||
$this->getFooter();
|
$this->getFooter();
|
||||||
|
@ -207,4 +245,30 @@ class Page
|
||||||
include $global['systemRootPath'] . 'objects/include_end.php';
|
include $global['systemRootPath'] . 'objects/include_end.php';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function printEditorIndex($plugin, $classname)
|
||||||
|
{
|
||||||
|
$this->loadBasicCSSAndJS();
|
||||||
|
$this->setIncludeInHead(array("plugin/{$plugin}/View/{$classname}/index_head.php"));
|
||||||
|
$this->setIncludeInBody(array("plugin/{$plugin}/View/{$classname}/index_body.php"));
|
||||||
|
$this->print();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function printEditorIndexFromFile($file)
|
||||||
|
{
|
||||||
|
global $config, $global;
|
||||||
|
$file = str_replace($global['systemRootPath'], '', $file);
|
||||||
|
$title = str_replace('/index.php', '', $file);
|
||||||
|
$parts = explode('/View/', $title);
|
||||||
|
$title = $parts[1];
|
||||||
|
$title = ucwords(str_replace('_', ' ', $title));
|
||||||
|
$this->setTitle($title);
|
||||||
|
$head = str_replace('index.php', 'index_head.php', $file);
|
||||||
|
$body = str_replace('index.php', 'index_body.php', $file);
|
||||||
|
//var_dump($title, $file, $head, $body);exit;
|
||||||
|
$this->loadBasicCSSAndJS();
|
||||||
|
$this->setIncludeInHead(array($head));
|
||||||
|
$this->setIncludeInBody(array($body));
|
||||||
|
$this->print();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5482,6 +5482,10 @@ function getHTMLTitle($titleArray)
|
||||||
{
|
{
|
||||||
global $config, $global;
|
global $config, $global;
|
||||||
|
|
||||||
|
if(!empty($_REQUEST['catName'])){
|
||||||
|
$cat = Category::getCategoryByName($_REQUEST['catName']);
|
||||||
|
$titleArray[] = $cat['name'];
|
||||||
|
}
|
||||||
if (!is_array($titleArray)) {
|
if (!is_array($titleArray)) {
|
||||||
$titleArray = [];
|
$titleArray = [];
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,6 +222,7 @@ function createEmailMessageFromTemplate($message)
|
||||||
|
|
||||||
global $global, $config;
|
global $global, $config;
|
||||||
$text = file_get_contents("{$global['systemRootPath']}view/include/emailTemplate.html");
|
$text = file_get_contents("{$global['systemRootPath']}view/include/emailTemplate.html");
|
||||||
|
$config = new AVideoConf();
|
||||||
$siteTitle = $config->getWebSiteTitle();
|
$siteTitle = $config->getWebSiteTitle();
|
||||||
$logo = "<img src=\"" . getURL($config->getLogo()) . "\" alt=\"{$siteTitle}\"/>";
|
$logo = "<img src=\"" . getURL($config->getLogo()) . "\" alt=\"{$siteTitle}\"/>";
|
||||||
|
|
||||||
|
|
|
@ -7,24 +7,8 @@ if (!User::isAdmin()) {
|
||||||
forbiddenPage("You can not do this");
|
forbiddenPage("You can not do this");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
$_page = new Page(array('VAST'));
|
||||||
?>
|
$_page->setIncludeInHead(array('plugin/AD_Server/index_head.php'));
|
||||||
<!DOCTYPE html>
|
$_page->setIncludeInBody(array('plugin/AD_Server/index_body.php'));
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
$_page->print();
|
||||||
<head>
|
?>
|
||||||
<?php
|
|
||||||
echo getHTMLTitle(__("VAST"));
|
|
||||||
?>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/AD_Server/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/AD_Server/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,28 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
global $global, $config;
|
global $global, $config;
|
||||||
if (!isset($global['systemRootPath'])) {
|
if (!isset($global['systemRootPath'])) {
|
||||||
require_once '../../videos/configuration.php';
|
require_once '../../../../videos/configuration.php';
|
||||||
}
|
}
|
||||||
if (!User::isAdmin()) {
|
if (!User::isAdmin()) {
|
||||||
forbiddenPage("Must be admin");
|
forbiddenPage("Must be admin");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
$_page = new Page(array(''));
|
||||||
<!DOCTYPE html>
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
?>
|
||||||
<head>
|
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: CustomizeUser</title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
$_page = new Page(array(''));
|
||||||
<!DOCTYPE html>
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
?>
|
||||||
<head>
|
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: CustomizeUser</title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -7,22 +7,6 @@ if (!User::isAdmin()) {
|
||||||
forbiddenPage("Must be admin");
|
forbiddenPage("Must be admin");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
$_page = new Page(array(''));
|
||||||
<!DOCTYPE html>
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
?>
|
||||||
<head>
|
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: CustomizeUser</title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,22 +8,7 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
<!DOCTYPE html>
|
$_page = new Page(array(''));
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<head>
|
?>
|
||||||
<title><?php echo __("Live") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,22 +8,8 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
$_page = new Page(array('Live Restream'));
|
||||||
<!DOCTYPE html>
|
$_page->setIncludeInHead(array('plugin/Live/view/Live_restreams_logs/index_head.phpp'));
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
$_page->setIncludeInBody(array('plugin/Live/view/Live_restreams_logs/index_body.php'));
|
||||||
<head>
|
$_page->print();
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: Live</title>
|
?>
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Live/view/Live_restreams_logs/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Live/view/Live_restreams_logs/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,22 +8,7 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
<!DOCTYPE html>
|
$_page = new Page(array(''));
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<head>
|
?>
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: Live</title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
$_page = new Page(array(''));
|
||||||
<!DOCTYPE html>
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
?>
|
||||||
<head>
|
|
||||||
<title><?php echo __("Live") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -7,23 +7,6 @@ if (!User::isAdmin()) {
|
||||||
forbiddenPage("You can not do this");
|
forbiddenPage("You can not do this");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
$_page = new Page(array(''));
|
||||||
?>
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<!DOCTYPE html>
|
?>
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo __("Login Control") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/LoginControl/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/LoginControl/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_page = new Page(array(''));
|
||||||
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo __("Meet") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -7,23 +7,6 @@ if (!User::isAdmin()) {
|
||||||
forbiddenPage("You can not do this");
|
forbiddenPage("You can not do this");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
$_page = new Page(array(''));
|
||||||
?>
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<!DOCTYPE html>
|
?>
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo __("Meet") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_page = new Page(array(''));
|
||||||
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo __("Meet") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -7,23 +7,6 @@ if (!User::isAdmin()) {
|
||||||
forbiddenPage("You can not do this");
|
forbiddenPage("You can not do this");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
$_page = new Page(array(''));
|
||||||
?>
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<!DOCTYPE html>
|
?>
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: PayPalYPT</title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/PayPalYPT/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/PayPalYPT/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
$_page = new Page(array(''));
|
||||||
<!DOCTYPE html>
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
?>
|
||||||
<head>
|
|
||||||
<title><?php echo __("Permissions") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Permissions/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Permissions/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_page = new Page(array(''));
|
||||||
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo __("PlayLists") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/PlayLists/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/PlayLists/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
$_page = new Page(array(''));
|
||||||
<!DOCTYPE html>
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
?>
|
||||||
<head>
|
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: Scheduler</title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_page = new Page(array(''));
|
||||||
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: Scheduler</title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -7,23 +7,6 @@ if (!User::isAdmin()) {
|
||||||
forbiddenPage("You can not do this");
|
forbiddenPage("You can not do this");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
$_page = new Page(array(''));
|
||||||
?>
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<!DOCTYPE html>
|
?>
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: Scheduler</title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_page = new Page(array(''));
|
||||||
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: UserNotifications</title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/UserNotifications/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/UserNotifications/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -1,46 +1,30 @@
|
||||||
<?php
|
<?php
|
||||||
require_once '../../../videos/configuration.php';
|
require_once '../../../videos/configuration.php';
|
||||||
AVideoPlugin::loadPlugin("UserNotifications");
|
AVideoPlugin::loadPlugin("UserNotifications");
|
||||||
|
$_page = new Page(array('UserNotifications'));
|
||||||
|
$_page->loadBasicCSSAndJS();
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<div class="container-fluid">
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
<div class="panel panel-default">
|
||||||
<head>
|
<div class="panel-heading"><?php echo __('UserNotifications') ?>
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: UserNotifications</title>
|
<div class="pull-right">
|
||||||
<?php
|
<?php echo AVideoPlugin::getSwitchButton("UserNotifications"); ?>
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
</div>
|
||||||
?>
|
</div>
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.css"/>
|
<div class="panel-body">
|
||||||
<link href="<?php echo $global['webSiteRootURL']; ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
|
<ul class="nav nav-tabs">
|
||||||
</head>
|
<li class="active"><a data-toggle="tab" href="#User_notifications"><?php echo __("User Notifications"); ?></a></li>
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
</ul>
|
||||||
<?php
|
<div class="tab-content">
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
<div id="User_notifications" class="tab-pane fade in active" style="padding: 10px;">
|
||||||
?>
|
<?php
|
||||||
<div class="container-fluid">
|
include $global['systemRootPath'] . 'plugin/UserNotifications/View/User_notifications/index_body.php';
|
||||||
<div class="panel panel-default">
|
?>
|
||||||
<div class="panel-heading"><?php echo __('UserNotifications') ?>
|
|
||||||
<div class="pull-right">
|
|
||||||
<?php echo AVideoPlugin::getSwitchButton("UserNotifications"); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<ul class="nav nav-tabs">
|
|
||||||
<li class="active"><a data-toggle="tab" href="#User_notifications"><?php echo __("User Notifications"); ?></a></li>
|
|
||||||
</ul>
|
|
||||||
<div class="tab-content">
|
|
||||||
<div id="User_notifications" class="tab-pane fade in active" style="padding: 10px;">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'plugin/UserNotifications/View/User_notifications/index_body.php';
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
</div>
|
||||||
<script src="<?php echo $global['webSiteRootURL']; ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
$_page->print();
|
||||||
?>
|
?>
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_page = new Page(array(''));
|
||||||
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: VideoTags</title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/VideoTags/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/VideoTags/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -1,46 +1,30 @@
|
||||||
<?php
|
<?php
|
||||||
require_once '../../../videos/configuration.php';
|
require_once '../../../videos/configuration.php';
|
||||||
AVideoPlugin::loadPlugin("VideoTags");
|
AVideoPlugin::loadPlugin("VideoTags");
|
||||||
|
$_page = new Page(array('VideoTags'));
|
||||||
|
$_page->loadBasicCSSAndJS();
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<div class="container-fluid">
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
<div class="panel panel-default">
|
||||||
<head>
|
<div class="panel-heading"><?php echo __('VideoTags') ?>
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: VideoTags</title>
|
<div class="pull-right">
|
||||||
<?php
|
<?php echo AVideoPlugin::getSwitchButton("VideoTags"); ?>
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
</div>
|
||||||
?>
|
</div>
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.css"/>
|
<div class="panel-body">
|
||||||
<link href="<?php echo $global['webSiteRootURL']; ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
|
<ul class="nav nav-tabs">
|
||||||
</head>
|
<li class="active"><a data-toggle="tab" href="#Tags_subscriptions"><?php echo __("Tags Subscriptions"); ?></a></li>
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
</ul>
|
||||||
<?php
|
<div class="tab-content">
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
<div id="Tags_subscriptions" class="tab-pane fade in active" style="padding: 10px;">
|
||||||
?>
|
<?php
|
||||||
<div class="container-fluid">
|
include $global['systemRootPath'] . 'plugin/VideoTags/View/Tags_subscriptions/index_body.php';
|
||||||
<div class="panel panel-default">
|
?>
|
||||||
<div class="panel-heading"><?php echo __('VideoTags') ?>
|
|
||||||
<div class="pull-right">
|
|
||||||
<?php echo AVideoPlugin::getSwitchButton("VideoTags"); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<ul class="nav nav-tabs">
|
|
||||||
<li class="active"><a data-toggle="tab" href="#Tags_subscriptions"><?php echo __("Tags Subscriptions"); ?></a></li>
|
|
||||||
</ul>
|
|
||||||
<div class="tab-content">
|
|
||||||
<div id="Tags_subscriptions" class="tab-pane fade in active" style="padding: 10px;">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'plugin/VideoTags/View/Tags_subscriptions/index_body.php';
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
</div>
|
||||||
<script src="<?php echo $global['webSiteRootURL']; ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
$_page->print();
|
||||||
?>
|
?>
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -7,21 +7,8 @@ if (!User::isAdmin()) {
|
||||||
forbiddenPage("You can not do this");
|
forbiddenPage("You can not do this");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
$_page = new Page(array('Tags'));
|
||||||
|
include $global['systemRootPath'] . 'plugin/VideoTags/index_body.php';
|
||||||
|
$_page->print();
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo __("Tags") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/VideoTags/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
$_page = new Page(array(''));
|
||||||
<!DOCTYPE html>
|
$_page->printEditorIndexFromFile(__FILE__);
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
?>
|
||||||
<head>
|
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: VideosStatistics</title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/VideosStatistics/View/{$classname}/index_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'plugin/VideosStatistics/View/{$classname}/index_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,46 +1,30 @@
|
||||||
<?php
|
<?php
|
||||||
require_once '../../../videos/configuration.php';
|
require_once '../../../videos/configuration.php';
|
||||||
AVideoPlugin::loadPlugin("VideosStatistics");
|
AVideoPlugin::loadPlugin("VideosStatistics");
|
||||||
|
$_page = new Page(array('VideosStatistics'));
|
||||||
|
$_page->loadBasicCSSAndJS();
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<div class="container-fluid">
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
<div class="panel panel-default">
|
||||||
<head>
|
<div class="panel-heading"><?php echo __('VideosStatistics') ?>
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: VideosStatistics</title>
|
<div class="pull-right">
|
||||||
<?php
|
<?php echo AVideoPlugin::getSwitchButton("VideosStatistics"); ?>
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
</div>
|
||||||
?>
|
</div>
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.css"/>
|
<div class="panel-body">
|
||||||
<link href="<?php echo $global['webSiteRootURL']; ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
|
<ul class="nav nav-tabs">
|
||||||
</head>
|
<li class="active"><a data-toggle="tab" href="#Statistics"><?php echo __("Statistics"); ?></a></li>
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
</ul>
|
||||||
<?php
|
<div class="tab-content">
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
<div id="Statistics" class="tab-pane fade in active" style="padding: 10px;">
|
||||||
?>
|
<?php
|
||||||
<div class="container-fluid">
|
include $global['systemRootPath'] . 'plugin/VideosStatistics/View/Statistics/index_body.php';
|
||||||
<div class="panel panel-default">
|
?>
|
||||||
<div class="panel-heading"><?php echo __('VideosStatistics') ?>
|
|
||||||
<div class="pull-right">
|
|
||||||
<?php echo AVideoPlugin::getSwitchButton("VideosStatistics"); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<ul class="nav nav-tabs">
|
|
||||||
<li class="active"><a data-toggle="tab" href="#Statistics"><?php echo __("Statistics"); ?></a></li>
|
|
||||||
</ul>
|
|
||||||
<div class="tab-content">
|
|
||||||
<div id="Statistics" class="tab-pane fade in active" style="padding: 10px;">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'plugin/VideosStatistics/View/Statistics/index_body.php';
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
</div>
|
||||||
<script src="<?php echo $global['webSiteRootURL']; ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
$_page->print();
|
||||||
?>
|
?>
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,177 +8,162 @@ $global['paymentsTest'] = 1;
|
||||||
$myWallet = AVideoPlugin::loadPlugin('YPTWallet');
|
$myWallet = AVideoPlugin::loadPlugin('YPTWallet');
|
||||||
$objWallet = $myWallet->getDataObject();
|
$objWallet = $myWallet->getDataObject();
|
||||||
$myBalance = $myWallet->getBalance(User::getId());
|
$myBalance = $myWallet->getBalance(User::getId());
|
||||||
$planTitle = 'Test payment '.date('Y-m-d h:i:s');
|
$planTitle = 'Test payment ' . date('Y-m-d h:i:s');
|
||||||
$_GET['plans_id'] = -1;
|
$_GET['plans_id'] = -1;
|
||||||
|
|
||||||
|
$_page = new Page(array('Payment tests'));
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<div class="container-fluid">
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
|
|
||||||
<head>
|
<div class="panel panel-default" id="plans">
|
||||||
<title><?php echo $config->getWebSiteTitle(); ?> :: Show Plans</title>
|
<div class="panel-body">
|
||||||
<?php
|
<div class="row">
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
<div class="col-sm-4">
|
||||||
?>
|
<input type="number" class="form-control" id="value<?php echo $_GET['plans_id']; ?>" value="<?php echo YPTWallet::formatFloat(1); ?>">
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
<div class="panel panel-default">
|
||||||
<?php
|
<div class="panel-heading">
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
<h3 class="panel-title">Subscription</h3>
|
||||||
?>
|
|
||||||
<div class="container-fluid">
|
|
||||||
|
|
||||||
<div class="panel panel-default" id="plans">
|
|
||||||
<div class="panel-body">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-4">
|
|
||||||
<input type="number" class="form-control" id="value<?php echo $_GET['plans_id']; ?>" value="<?php echo YPTWallet::formatFloat(1); ?>">
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Subscription</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<?php
|
|
||||||
$myWallet->getAvailableRecurrentPayments();
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="panel panel-default">
|
<div class="panel-body">
|
||||||
<div class="panel-heading">
|
<?php
|
||||||
<h3 class="panel-title">One time payment</h3>
|
$myWallet->getAvailableRecurrentPayments();
|
||||||
</div>
|
?>
|
||||||
<div class="panel-body">
|
|
||||||
<?php
|
|
||||||
$myWallet->getAvailablePayments();
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-4">
|
<div class="panel panel-default">
|
||||||
<div class="panel panel-default">
|
<div class="panel-heading">
|
||||||
<div class="panel-heading">
|
<h3 class="panel-title">One time payment</h3>
|
||||||
<h3 class="panel-title">Test Card Numbers for Stripe</h3>
|
</div>
|
||||||
</div>
|
<div class="panel-body">
|
||||||
<div class="panel-body">
|
<?php
|
||||||
<table class="table table-bordered">
|
$myWallet->getAvailablePayments();
|
||||||
<thead>
|
?>
|
||||||
<tr>
|
|
||||||
<th>Card Number</th>
|
|
||||||
<th>Brand</th>
|
|
||||||
<th>Response</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>4242 4242 4242 4242</td>
|
|
||||||
<td>Visa</td>
|
|
||||||
<td>Success</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>5555 5555 5555 4444</td>
|
|
||||||
<td>Mastercard</td>
|
|
||||||
<td>Success</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>4000 0025 0000 3155</td>
|
|
||||||
<td>Visa (debit)</td>
|
|
||||||
<td>Success</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>4000 0000 0000 9995</td>
|
|
||||||
<td>Visa (declined)</td>
|
|
||||||
<td>Card declined</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>4000 0000 0000 0127</td>
|
|
||||||
<td>Visa (processing error)</td>
|
|
||||||
<td>Processing error</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>4000 0000 0000 0069</td>
|
|
||||||
<td>Visa (fraudulent)</td>
|
|
||||||
<td>Card declined</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>4000 0027 6000 3184</td>
|
|
||||||
<td>Visa</td>
|
|
||||||
<td>3D Secure authentication required</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">Test Card Numbers for PayPal</h3>
|
<h3 class="panel-title">Test Card Numbers for Stripe</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Card Number</th>
|
<th>Card Number</th>
|
||||||
<th>Brand</th>
|
<th>Brand</th>
|
||||||
<th>Response</th>
|
<th>Response</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>4111 1111 1111 1111</td>
|
<td>4242 4242 4242 4242</td>
|
||||||
<td>Visa</td>
|
<td>Visa</td>
|
||||||
<td>Success</td>
|
<td>Success</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>5555 5555 5555 4444</td>
|
<td>5555 5555 5555 4444</td>
|
||||||
<td>Mastercard</td>
|
<td>Mastercard</td>
|
||||||
<td>Success</td>
|
<td>Success</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>4022 0028 8000 6242</td>
|
<td>4000 0025 0000 3155</td>
|
||||||
<td>Visa (debit)</td>
|
<td>Visa (debit)</td>
|
||||||
<td>Success</td>
|
<td>Success</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>4000 0000 0000 0002</td>
|
<td>4000 0000 0000 9995</td>
|
||||||
<td>Visa (declined)</td>
|
<td>Visa (declined)</td>
|
||||||
<td>Card declined</td>
|
<td>Card declined</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>4000 0000 0000 0127</td>
|
<td>4000 0000 0000 0127</td>
|
||||||
<td>Visa (processing error)</td>
|
<td>Visa (processing error)</td>
|
||||||
<td>Processor declined</td>
|
<td>Processing error</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>4000 0000 0000 0069</td>
|
<td>4000 0000 0000 0069</td>
|
||||||
<td>Visa (fraudulent)</td>
|
<td>Visa (fraudulent)</td>
|
||||||
<td>Card declined</td>
|
<td>Card declined</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>4000 0027 6000 3184</td>
|
<td>4000 0027 6000 3184</td>
|
||||||
<td>Visa</td>
|
<td>Visa</td>
|
||||||
<td>3D Secure authentication required</td>
|
<td>3D Secure authentication required</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col-sm-4">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h3 class="panel-title">Test Card Numbers for PayPal</h3>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<table class="table table-bordered">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Card Number</th>
|
||||||
|
<th>Brand</th>
|
||||||
|
<th>Response</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>4111 1111 1111 1111</td>
|
||||||
|
<td>Visa</td>
|
||||||
|
<td>Success</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>5555 5555 5555 4444</td>
|
||||||
|
<td>Mastercard</td>
|
||||||
|
<td>Success</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>4022 0028 8000 6242</td>
|
||||||
|
<td>Visa (debit)</td>
|
||||||
|
<td>Success</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>4000 0000 0000 0002</td>
|
||||||
|
<td>Visa (declined)</td>
|
||||||
|
<td>Card declined</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>4000 0000 0000 0127</td>
|
||||||
|
<td>Visa (processing error)</td>
|
||||||
|
<td>Processor declined</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>4000 0000 0000 0069</td>
|
||||||
|
<td>Visa (fraudulent)</td>
|
||||||
|
<td>Card declined</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>4000 0027 6000 3184</td>
|
||||||
|
<td>Visa</td>
|
||||||
|
<td>3D Secure authentication required</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12"><strong>Note:</strong>
|
|
||||||
These are test credit card numbers and should only be used in a test environment and should not be used for real transactions.
|
|
||||||
CSC can be any 3-digit number and expiration date can be any future date.</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-sm-12"><strong>Note:</strong>
|
||||||
|
These are test credit card numbers and should only be used in a test environment and should not be used for real transactions.
|
||||||
|
CSC can be any 3-digit number and expiration date can be any future date.</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
</div>
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
</div>
|
||||||
?>
|
<?php
|
||||||
</body>
|
$_page->print();
|
||||||
|
?>
|
||||||
</html>
|
|
|
@ -13,85 +13,68 @@ if (!empty($paypal)) {
|
||||||
$options = _json_decode($obj->addFundsOptions);
|
$options = _json_decode($obj->addFundsOptions);
|
||||||
//unset($_SESSION['addFunds_Success']);
|
//unset($_SESSION['addFunds_Success']);
|
||||||
//unset($_SESSION['addFunds_Fail']);
|
//unset($_SESSION['addFunds_Fail']);
|
||||||
|
$_page = new Page(array('Add Funds'));
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<div class="container">
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
<div class="row">
|
||||||
<head>
|
<div class="panel panel-default">
|
||||||
<title><?php echo __("Add Funds") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
<div class="panel-heading"><?php echo __("Add Funds"); ?></div>
|
||||||
<?php
|
<div class="panel-body">
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
<div class="col-sm-6">
|
||||||
?>
|
<?php echo $obj->add_funds_text ?>
|
||||||
</head>
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
<?php
|
||||||
<?php
|
if (!empty($_GET['status'])) {
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
$text = "unknow";
|
||||||
?>
|
$class = "danger";
|
||||||
<div class="container">
|
switch ($_GET['status']) {
|
||||||
<div class="row">
|
case "fail":
|
||||||
<div class="panel panel-default">
|
$text = $obj->add_funds_success_fail;
|
||||||
<div class="panel-heading"><?php echo __("Add Funds"); ?></div>
|
break;
|
||||||
<div class="panel-body">
|
case "success":
|
||||||
<div class="col-sm-6">
|
$text = $obj->add_funds_success_success;
|
||||||
<?php echo $obj->add_funds_text ?>
|
$class = "success";
|
||||||
|
break;
|
||||||
|
case "cancel":
|
||||||
|
$text = $obj->add_funds_success_cancel;
|
||||||
|
$class = "warning";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<div class="alert alert-<?php echo $class; ?>">
|
||||||
|
<?php echo $text; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6">
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="value"><?php echo __("Add Funds"); ?> <?php echo $obj->currency_symbol; ?> <?php echo $obj->currency; ?></label>
|
||||||
|
<select class="form-control" id="value">
|
||||||
|
<?php
|
||||||
|
foreach ($options as $value) {
|
||||||
|
?>
|
||||||
|
<option value="<?php echo $value; ?>"><?php echo $obj->currency_symbol; ?> <?php echo $value; ?> <?php echo $obj->currency; ?></option>
|
||||||
<?php
|
<?php
|
||||||
if (!empty($_GET['status'])) {
|
|
||||||
$text = "unknow";
|
|
||||||
$class = "danger";
|
|
||||||
switch ($_GET['status']) {
|
|
||||||
case "fail":
|
|
||||||
$text = $obj->add_funds_success_fail;
|
|
||||||
break;
|
|
||||||
case "success":
|
|
||||||
$text = $obj->add_funds_success_success;
|
|
||||||
$class = "success";
|
|
||||||
break;
|
|
||||||
case "cancel":
|
|
||||||
$text = $obj->add_funds_success_cancel;
|
|
||||||
$class = "warning";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<div class="alert alert-<?php echo $class; ?>">
|
|
||||||
<?php echo $text; ?>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="form-group">
|
</select>
|
||||||
<label for="value"><?php echo __("Add Funds"); ?> <?php echo $obj->currency_symbol; ?> <?php echo $obj->currency; ?></label>
|
|
||||||
<select class="form-control" id="value" >
|
|
||||||
<?php
|
|
||||||
foreach ($options as $value) {
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $value; ?>"><?php echo $obj->currency_symbol; ?> <?php echo $value; ?> <?php echo $obj->currency; ?></option>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
$plugin->getAvailablePayments();
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<?php
|
||||||
|
$plugin->getAvailablePayments();
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
</div>
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
</div>
|
||||||
?>
|
<script>
|
||||||
<script>
|
$(document).ready(function() {
|
||||||
$(document).ready(function () {
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<?php
|
||||||
</body>
|
$_page->print();
|
||||||
</html>
|
?>
|
|
@ -10,144 +10,128 @@ if (!User::isAdmin()) {
|
||||||
|
|
||||||
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
|
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
|
||||||
$obj = $plugin->getDataObject();
|
$obj = $plugin->getDataObject();
|
||||||
|
$_page = new Page(array('Support Author'));
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo __("Support Author") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
<div class="container">
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="container">
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">Total Site Balance: <b><?php echo YPTWallet::getTotalBalanceText(); ?></b></div>
|
||||||
<div class="panel panel-default">
|
<div class="panel-body">
|
||||||
<div class="panel-heading">Total Site Balance: <b><?php echo YPTWallet::getTotalBalanceText(); ?></b></div>
|
|
||||||
<div class="panel-body">
|
|
||||||
|
|
||||||
<table id="grid" class="table table-condensed table-hover table-striped">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th data-column-id="user" data-formatter="user"><?php echo __("User"); ?></th>
|
|
||||||
<th data-column-id="name" data-order="desc"><?php echo __("Name"); ?></th>
|
|
||||||
<th data-column-id="email" ><?php echo __("E-mail"); ?></th>
|
|
||||||
<th data-column-id="balance" ><?php echo __("Balance"); ?></th>
|
|
||||||
<th data-column-id="commands" data-formatter="commands" data-sortable="false" data-width="100px"></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<table id="grid" class="table table-condensed table-hover table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th data-column-id="user" data-formatter="user"><?php echo __("User"); ?></th>
|
||||||
|
<th data-column-id="name" data-order="desc"><?php echo __("Name"); ?></th>
|
||||||
|
<th data-column-id="email"><?php echo __("E-mail"); ?></th>
|
||||||
|
<th data-column-id="balance"><?php echo __("Balance"); ?></th>
|
||||||
|
<th data-column-id="commands" data-formatter="commands" data-sortable="false" data-width="100px"></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="userFormModal" class="modal fade" tabindex="-1" role="dialog">
|
</div>
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title"><?php echo __("Balance Form"); ?></h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<form class="form-compact" id="updateUserForm" onsubmit="">
|
|
||||||
<input type="hidden" id="inputUserId" >
|
|
||||||
<label for="inputUser" class="sr-only"><?php echo __("User"); ?></label>
|
|
||||||
<input type="text" id="inputUser" class="form-control first" placeholder="<?php echo __("User"); ?>" readonly required="required">
|
|
||||||
<label for="inputUserBalance" class="sr-only"><?php echo __("Balance"); ?></label>
|
|
||||||
<input type="number" id="inputUserBalance" class="form-control last" placeholder="<?php echo __("Balance"); ?>" autofocus required="required">
|
|
||||||
|
|
||||||
</form>
|
<div id="userFormModal" class="modal fade" tabindex="-1" role="dialog">
|
||||||
</div>
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-footer">
|
<div class="modal-content">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __("Close"); ?></button>
|
<div class="modal-header">
|
||||||
<button type="button" class="btn btn-primary" id="saveUserBtn"><?php echo __("Save changes"); ?></button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
</div>
|
<h4 class="modal-title"><?php echo __("Balance Form"); ?></h4>
|
||||||
</div><!-- /.modal-content -->
|
</div>
|
||||||
</div><!-- /.modal-dialog -->
|
<div class="modal-body">
|
||||||
</div><!-- /.modal -->
|
<form class="form-compact" id="updateUserForm" onsubmit="">
|
||||||
<?php
|
<input type="hidden" id="inputUserId">
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
<label for="inputUser" class="sr-only"><?php echo __("User"); ?></label>
|
||||||
?>
|
<input type="text" id="inputUser" class="form-control first" placeholder="<?php echo __("User"); ?>" readonly required="required">
|
||||||
<script>
|
<label for="inputUserBalance" class="sr-only"><?php echo __("Balance"); ?></label>
|
||||||
$(document).ready(function () {
|
<input type="number" id="inputUserBalance" class="form-control last" placeholder="<?php echo __("Balance"); ?>" autofocus required="required">
|
||||||
|
|
||||||
var grid = $("#grid").bootgrid({
|
</form>
|
||||||
labels: {
|
</div>
|
||||||
noResults: "<?php echo __("No results found!"); ?>",
|
<div class="modal-footer">
|
||||||
all: "<?php echo __("All"); ?>",
|
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __("Close"); ?></button>
|
||||||
infos: "<?php echo __("Showing {{ctx.start}} to {{ctx.end}} of {{ctx.total}} entries"); ?>",
|
<button type="button" class="btn btn-primary" id="saveUserBtn"><?php echo __("Save changes"); ?></button>
|
||||||
loading: "<?php echo __("Loading..."); ?>",
|
</div>
|
||||||
refresh: "<?php echo __("Refresh"); ?>",
|
</div><!-- /.modal-content -->
|
||||||
search: "<?php echo __("Search"); ?>",
|
</div><!-- /.modal-dialog -->
|
||||||
},
|
</div><!-- /.modal -->
|
||||||
ajax: true,
|
<script>
|
||||||
url: "<?php echo $global['webSiteRootURL'] . "plugin/YPTWallet/view/users.json.php"; ?>",
|
$(document).ready(function() {
|
||||||
formatters: {
|
|
||||||
"commands": function (column, row) {
|
|
||||||
console.log(row);
|
|
||||||
var editBtn = '<button type="button" class="btn btn-xs btn-default command-edit" data-toggle="tooltip" data-placement="left" title="Edit"><i class="fa-solid fa-pen-to-square"></i></button>'
|
|
||||||
var history = '<a href="<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/history.php?users_id=' + row.user_id + '" class="btn btn-default btn-xs command-history" data-toggle="tooltip" data-placement="left" title="History""><span class="fa fa-history" aria-hidden="true"></span></a>';
|
|
||||||
//return editBtn + deleteBtn;
|
|
||||||
return editBtn + history;
|
|
||||||
},
|
|
||||||
"user": function (column, row) {
|
|
||||||
var photo = "<br><img src='" + row.photo + "' class='img img-responsive img-rounded img-thumbnail' style='max-width:50px;'/>";
|
|
||||||
return row.user + photo;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}).on("loaded.rs.jquery.bootgrid", function ()
|
|
||||||
{
|
|
||||||
/* Executes after data is loaded and rendered */
|
|
||||||
grid.find(".command-edit").on("click", function (e) {
|
|
||||||
var row_index = $(this).closest('tr').index();
|
|
||||||
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
|
||||||
console.log(row);
|
|
||||||
|
|
||||||
$('#inputUserId').val(row.id);
|
var grid = $("#grid").bootgrid({
|
||||||
$('#inputUser').val(row.user);
|
labels: {
|
||||||
$('#inputUserBalance').val(row.balance);
|
noResults: "<?php echo __("No results found!"); ?>",
|
||||||
|
all: "<?php echo __("All"); ?>",
|
||||||
|
infos: "<?php echo __("Showing {{ctx.start}} to {{ctx.end}} of {{ctx.total}} entries"); ?>",
|
||||||
|
loading: "<?php echo __("Loading..."); ?>",
|
||||||
|
refresh: "<?php echo __("Refresh"); ?>",
|
||||||
|
search: "<?php echo __("Search"); ?>",
|
||||||
|
},
|
||||||
|
ajax: true,
|
||||||
|
url: "<?php echo $global['webSiteRootURL'] . "plugin/YPTWallet/view/users.json.php"; ?>",
|
||||||
|
formatters: {
|
||||||
|
"commands": function(column, row) {
|
||||||
|
console.log(row);
|
||||||
|
var editBtn = '<button type="button" class="btn btn-xs btn-default command-edit" data-toggle="tooltip" data-placement="left" title="Edit"><i class="fa-solid fa-pen-to-square"></i></button>'
|
||||||
|
var history = '<a href="<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/history.php?users_id=' + row.user_id + '" class="btn btn-default btn-xs command-history" data-toggle="tooltip" data-placement="left" title="History""><span class="fa fa-history" aria-hidden="true"></span></a>';
|
||||||
|
//return editBtn + deleteBtn;
|
||||||
|
return editBtn + history;
|
||||||
|
},
|
||||||
|
"user": function(column, row) {
|
||||||
|
var photo = "<br><img src='" + row.photo + "' class='img img-responsive img-rounded img-thumbnail' style='max-width:50px;'/>";
|
||||||
|
return row.user + photo;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).on("loaded.rs.jquery.bootgrid", function() {
|
||||||
|
/* Executes after data is loaded and rendered */
|
||||||
|
grid.find(".command-edit").on("click", function(e) {
|
||||||
|
var row_index = $(this).closest('tr').index();
|
||||||
|
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
||||||
|
console.log(row);
|
||||||
|
|
||||||
$('#userFormModal').modal();
|
$('#inputUserId').val(row.id);
|
||||||
});
|
$('#inputUser').val(row.user);
|
||||||
});
|
$('#inputUserBalance').val(row.balance);
|
||||||
|
|
||||||
$('#saveUserBtn').click(function (evt) {
|
|
||||||
$('#updateUserForm').submit();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#updateUserForm').submit(function (evt) {
|
|
||||||
evt.preventDefault();
|
|
||||||
modal.showPleaseWait();
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
url: webSiteRootURL+'plugin/YPTWallet/view/saveBalance.php',
|
|
||||||
data: {
|
|
||||||
"users_id": $('#inputUserId').val(),
|
|
||||||
"balance": $('#inputUserBalance').val()
|
|
||||||
},
|
|
||||||
type: 'post',
|
|
||||||
success: function (response) {
|
|
||||||
if (!response.error) {
|
|
||||||
$(".walletBalance").text(response.walletBalance);
|
|
||||||
$('#userFormModal').modal('hide');
|
|
||||||
$("#grid").bootgrid("reload");
|
|
||||||
} else {
|
|
||||||
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your user has NOT been saved!"); ?>", "error");
|
|
||||||
}
|
|
||||||
modal.hidePleaseWait();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
|
$('#userFormModal').modal();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
$('#saveUserBtn').click(function(evt) {
|
||||||
</body>
|
$('#updateUserForm').submit();
|
||||||
</html>
|
});
|
||||||
|
|
||||||
|
$('#updateUserForm').submit(function(evt) {
|
||||||
|
evt.preventDefault();
|
||||||
|
modal.showPleaseWait();
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: webSiteRootURL + 'plugin/YPTWallet/view/saveBalance.php',
|
||||||
|
data: {
|
||||||
|
"users_id": $('#inputUserId').val(),
|
||||||
|
"balance": $('#inputUserBalance').val()
|
||||||
|
},
|
||||||
|
type: 'post',
|
||||||
|
success: function(response) {
|
||||||
|
if (!response.error) {
|
||||||
|
$(".walletBalance").text(response.walletBalance);
|
||||||
|
$('#userFormModal').modal('hide');
|
||||||
|
$("#grid").bootgrid("reload");
|
||||||
|
} else {
|
||||||
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your user has NOT been saved!"); ?>", "error");
|
||||||
|
}
|
||||||
|
modal.hidePleaseWait();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
$_page->print();
|
||||||
|
?>
|
|
@ -3,7 +3,7 @@ require_once '../../../videos/configuration.php';
|
||||||
require_once $global['systemRootPath'] . 'objects/user.php';
|
require_once $global['systemRootPath'] . 'objects/user.php';
|
||||||
require_once $global['systemRootPath'] . 'objects/functions.php';
|
require_once $global['systemRootPath'] . 'objects/functions.php';
|
||||||
|
|
||||||
if(!User::isLogged()){
|
if (!User::isLogged()) {
|
||||||
header("Location: {$global['webSiteRootURL']}");
|
header("Location: {$global['webSiteRootURL']}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,26 +12,11 @@ $walletDataObject = $plugin->getDataObject();
|
||||||
|
|
||||||
$wallet = new Wallet(0);
|
$wallet = new Wallet(0);
|
||||||
$wallet->setUsers_id(User::getId());
|
$wallet->setUsers_id(User::getId());
|
||||||
|
$_page = new Page(array('Configuration'));
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<div class="container">
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
<?php echo AVideoPlugin::getWalletConfigurationHTML(User::getId(), $wallet, $walletDataObject); ?>
|
||||||
<head>
|
</div>
|
||||||
<title><?php echo __("Configuration") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
<?php
|
||||||
<?php
|
$_page->print();
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
?>
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
?>
|
|
||||||
<br>
|
|
||||||
<div class="container">
|
|
||||||
<?php echo AVideoPlugin::getWalletConfigurationHTML(User::getId(), $wallet, $walletDataObject); ?>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -11,163 +11,149 @@ if (!User::isLogged()) {
|
||||||
$users_id = 0;
|
$users_id = 0;
|
||||||
if (!empty($_GET['users_id'])) {
|
if (!empty($_GET['users_id'])) {
|
||||||
$users_id = $_GET['users_id'];
|
$users_id = $_GET['users_id'];
|
||||||
}else{
|
} else {
|
||||||
$users_id = User::getId();
|
$users_id = User::getId();
|
||||||
}
|
}
|
||||||
|
$_page = new Page(array('History'));
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<div class="container">
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
<div class="panel panel-default">
|
||||||
<head>
|
<div class="panel-heading" style="height: 70px;">
|
||||||
<title><?php echo __("History") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
<img src="<?php echo User::getPhoto($users_id); ?>" class="img img-responsive img-circle pull-left" style="height: 50px; margin-right: 10px;" alt="User Photo">
|
||||||
<?php
|
<h1><?php echo User::getNameIdentificationById($users_id); ?></h1>
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
</div>
|
||||||
?>
|
<div class="panel-body">
|
||||||
</head>
|
<div class="row bgWhite list-group-item">
|
||||||
|
<table id="grid" class="table table-condensed table-hover table-striped">
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
<thead>
|
||||||
<?php
|
<tr>
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
<th data-column-id="valueText" data-width="150px"><?php echo __("Value"); ?></th>
|
||||||
?>
|
<th data-column-id="description" data-formatter="description"><?php echo __("Description"); ?></th>
|
||||||
<div class="container">
|
<th data-column-id="status" data-formatter="status" data-width="250px"><?php echo __("Status"); ?></th>
|
||||||
<div class="panel panel-default">
|
<th data-column-id="created" data-order="desc" data-width="150px"><?php echo __("Date"); ?></th>
|
||||||
<div class="panel-heading" style="height: 70px;">
|
</tr>
|
||||||
<img src="<?php echo User::getPhoto($users_id); ?>" class="img img-responsive img-circle pull-left" style="height: 50px; margin-right: 10px;" alt="User Photo">
|
</thead>
|
||||||
<h1><?php echo User::getNameIdentificationById($users_id); ?></h1>
|
</table>
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div class="row bgWhite list-group-item">
|
|
||||||
<table id="grid" class="table table-condensed table-hover table-striped">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th data-column-id="valueText" data-width="150px"><?php echo __("Value"); ?></th>
|
|
||||||
<th data-column-id="description" data-formatter="description" ><?php echo __("Description"); ?></th>
|
|
||||||
<th data-column-id="status" data-formatter="status" data-width="250px"><?php echo __("Status"); ?></th>
|
|
||||||
<th data-column-id="created" data-order="desc" data-width="150px"><?php echo __("Date"); ?></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
if (AVideoPlugin::isEnabledByName('MonetizeUsers')) {
|
||||||
|
include $global['systemRootPath'] . 'plugin/MonetizeUsers/View/report.php';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
<?php
|
var grid = $("#grid").bootgrid({
|
||||||
if(AVideoPlugin::isEnabledByName('MonetizeUsers')){
|
labels: {
|
||||||
include $global['systemRootPath'] . 'plugin/MonetizeUsers/View/report.php';
|
noResults: "<?php echo __("No results found!"); ?>",
|
||||||
|
all: "<?php echo __("All"); ?>",
|
||||||
|
infos: "<?php echo __("Showing {{ctx.start}} to {{ctx.end}} of {{ctx.total}} entries"); ?>",
|
||||||
|
loading: "<?php echo __("Loading..."); ?>",
|
||||||
|
refresh: "<?php echo __("Refresh"); ?>",
|
||||||
|
search: "<?php echo __("Search"); ?>",
|
||||||
|
},
|
||||||
|
ajax: true,
|
||||||
|
url: "<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/log.json.php?users_id=<?php echo $users_id; ?>",
|
||||||
|
formatters: {
|
||||||
|
"description": function(column, row) {
|
||||||
|
if (row.information) {
|
||||||
|
return row.information;
|
||||||
|
} else {
|
||||||
|
return row.description;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"status": function(column, row) {
|
||||||
|
var status = "";
|
||||||
|
if (row.type == "<?php echo YPTWallet::MANUAL_ADD; ?>" || row.type == "<?php echo YPTWallet::MANUAL_WITHDRAW; ?>") {
|
||||||
|
status = "<span class='label label-success'>Success</span>";
|
||||||
|
if (row.status == 'pending') {
|
||||||
|
status = "<span class='label label-warning'>Pending</span>";
|
||||||
|
} else if (row.status == 'canceled') {
|
||||||
|
status = "<span class='label label-danger'>Canceled</span>";
|
||||||
|
}
|
||||||
|
<?php
|
||||||
|
if (User::isAdmin()) {
|
||||||
|
?>
|
||||||
|
|
||||||
|
status += "<br><br><div class=\"btn-group\"><button class='btn btn-default btn-xs command-status-success'>Success</button>";
|
||||||
|
status += "<button class='btn btn-default btn-xs command-status-pending'>Pending</button>";
|
||||||
|
status += "<button class='btn btn-default btn-xs command-status-canceled'>Canceled</button><div>";
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
} else {
|
||||||
|
if (row.status == 'success') {
|
||||||
|
status = "<span class='label label-success'>Success</span>";
|
||||||
|
} else if (row.status == 'pending') {
|
||||||
|
status = "<span class='label label-warning'>Pending</span>";
|
||||||
|
} else if (row.status == 'canceled') {
|
||||||
|
status = "<span class='label label-danger'>Canceled</span>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).on("loaded.rs.jquery.bootgrid", function() {
|
||||||
|
<?php
|
||||||
|
if (User::isAdmin()) {
|
||||||
|
?>
|
||||||
|
/* Executes after data is loaded and rendered */
|
||||||
|
grid.find(".command-status-success").on("click", function(e) {
|
||||||
|
var row_index = $(this).closest('tr').index();
|
||||||
|
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
||||||
|
setStatus("success", row.id);
|
||||||
|
});
|
||||||
|
|
||||||
|
grid.find(".command-status-pending").on("click", function(e) {
|
||||||
|
var row_index = $(this).closest('tr').index();
|
||||||
|
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
||||||
|
setStatus("pending", row.id);
|
||||||
|
});
|
||||||
|
|
||||||
|
grid.find(".command-status-canceled").on("click", function(e) {
|
||||||
|
var row_index = $(this).closest('tr').index();
|
||||||
|
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
||||||
|
setStatus("canceled", row.id);
|
||||||
|
});
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
});
|
||||||
|
});
|
||||||
|
<?php
|
||||||
|
if (User::isAdmin()) {
|
||||||
|
?>
|
||||||
|
|
||||||
|
function setStatus(status, wallet_log_id) {
|
||||||
|
modal.showPleaseWait();
|
||||||
|
$.ajax({
|
||||||
|
url: webSiteRootURL + 'plugin/YPTWallet/view/changeLogStatus.json.php',
|
||||||
|
type: "POST",
|
||||||
|
data: {
|
||||||
|
status: status,
|
||||||
|
wallet_log_id: wallet_log_id
|
||||||
|
},
|
||||||
|
success: function(response) {
|
||||||
|
$(".walletBalance").text(response.walletBalance);
|
||||||
|
modal.hidePleaseWait();
|
||||||
|
if (response.error) {
|
||||||
|
setTimeout(function() {
|
||||||
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
|
}, 500);
|
||||||
|
} else {
|
||||||
|
$("#grid").bootgrid("reload");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script>
|
|
||||||
$(document).ready(function () {
|
|
||||||
|
|
||||||
var grid = $("#grid").bootgrid({
|
|
||||||
labels: {
|
|
||||||
noResults: "<?php echo __("No results found!"); ?>",
|
|
||||||
all: "<?php echo __("All"); ?>",
|
|
||||||
infos: "<?php echo __("Showing {{ctx.start}} to {{ctx.end}} of {{ctx.total}} entries"); ?>",
|
|
||||||
loading: "<?php echo __("Loading..."); ?>",
|
|
||||||
refresh: "<?php echo __("Refresh"); ?>",
|
|
||||||
search: "<?php echo __("Search"); ?>",
|
|
||||||
},
|
|
||||||
ajax: true,
|
|
||||||
url: "<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/log.json.php?users_id=<?php echo $users_id; ?>",
|
|
||||||
formatters: {
|
|
||||||
"description": function (column, row) {
|
|
||||||
if(row.information){
|
|
||||||
return row.information;
|
|
||||||
}else{
|
|
||||||
return row.description;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"status": function (column, row) {
|
|
||||||
var status = "";
|
|
||||||
if (row.type == "<?php echo YPTWallet::MANUAL_ADD; ?>" || row.type == "<?php echo YPTWallet::MANUAL_WITHDRAW; ?>") {
|
|
||||||
status = "<span class='label label-success'>Success</span>";
|
|
||||||
if (row.status == 'pending') {
|
|
||||||
status = "<span class='label label-warning'>Pending</span>";
|
|
||||||
} else if (row.status == 'canceled') {
|
|
||||||
status = "<span class='label label-danger'>Canceled</span>";
|
|
||||||
}
|
|
||||||
<?php
|
|
||||||
if (User::isAdmin()) {
|
|
||||||
?>
|
|
||||||
|
|
||||||
status += "<br><br><div class=\"btn-group\"><button class='btn btn-default btn-xs command-status-success'>Success</button>";
|
|
||||||
status += "<button class='btn btn-default btn-xs command-status-pending'>Pending</button>";
|
|
||||||
status += "<button class='btn btn-default btn-xs command-status-canceled'>Canceled</button><div>";
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
}else{
|
|
||||||
if (row.status == 'success') {
|
|
||||||
status = "<span class='label label-success'>Success</span>";
|
|
||||||
}else if (row.status == 'pending') {
|
|
||||||
status = "<span class='label label-warning'>Pending</span>";
|
|
||||||
} else if (row.status == 'canceled') {
|
|
||||||
status = "<span class='label label-danger'>Canceled</span>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}).on("loaded.rs.jquery.bootgrid", function () {
|
|
||||||
<?php
|
|
||||||
if (User::isAdmin()) {
|
|
||||||
?>
|
?>
|
||||||
/* Executes after data is loaded and rendered */
|
</script>
|
||||||
grid.find(".command-status-success").on("click", function (e) {
|
|
||||||
var row_index = $(this).closest('tr').index();
|
|
||||||
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
|
||||||
setStatus("success", row.id);
|
|
||||||
});
|
|
||||||
|
|
||||||
grid.find(".command-status-pending").on("click", function (e) {
|
|
||||||
var row_index = $(this).closest('tr').index();
|
|
||||||
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
|
||||||
setStatus("pending", row.id);
|
|
||||||
});
|
|
||||||
|
|
||||||
grid.find(".command-status-canceled").on("click", function (e) {
|
|
||||||
var row_index = $(this).closest('tr').index();
|
|
||||||
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
|
||||||
setStatus("canceled", row.id);
|
|
||||||
});
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
});
|
|
||||||
});
|
|
||||||
<?php
|
<?php
|
||||||
if (User::isAdmin()) {
|
$_page->print();
|
||||||
?>
|
?>
|
||||||
function setStatus(status, wallet_log_id) {
|
|
||||||
modal.showPleaseWait();
|
|
||||||
$.ajax({
|
|
||||||
url: webSiteRootURL+'plugin/YPTWallet/view/changeLogStatus.json.php',
|
|
||||||
type: "POST",
|
|
||||||
data: {
|
|
||||||
status: status,
|
|
||||||
wallet_log_id: wallet_log_id
|
|
||||||
},
|
|
||||||
success: function (response) {
|
|
||||||
$(".walletBalance").text(response.walletBalance);
|
|
||||||
modal.hidePleaseWait();
|
|
||||||
if (response.error) {
|
|
||||||
setTimeout(function () {
|
|
||||||
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
|
||||||
}, 500);
|
|
||||||
} else {
|
|
||||||
$("#grid").bootgrid("reload");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -10,112 +10,95 @@ if (!User::isLogged()) {
|
||||||
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
|
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
|
||||||
$obj = $plugin->getDataObject();
|
$obj = $plugin->getDataObject();
|
||||||
$options = _json_decode($obj->addFundsOptions);
|
$options = _json_decode($obj->addFundsOptions);
|
||||||
|
$_page = new Page(array('Add Funds'));
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<div class="container">
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
<div class="row">
|
||||||
<head>
|
<div class="panel panel-default">
|
||||||
<title><?php echo __("Add Funds") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
<div class="panel-heading"><?php echo __("Add Funds"); ?></div>
|
||||||
<?php
|
<div class="panel-body">
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
<div class="col-sm-6">
|
||||||
?>
|
<?php echo $obj->add_funds_text ?>
|
||||||
</head>
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
<?php
|
||||||
<?php
|
if (!empty($_GET['status'])) {
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
$text = "unknow";
|
||||||
?>
|
$class = "danger";
|
||||||
<div class="container">
|
switch ($_GET['status']) {
|
||||||
<div class="row">
|
case "fail":
|
||||||
<div class="panel panel-default">
|
$text = $obj->add_funds_success_fail;
|
||||||
<div class="panel-heading"><?php echo __("Add Funds"); ?></div>
|
break;
|
||||||
<div class="panel-body">
|
case "success":
|
||||||
<div class="col-sm-6">
|
$text = $obj->add_funds_success_success;
|
||||||
<?php echo $obj->add_funds_text ?>
|
$class = "success";
|
||||||
|
break;
|
||||||
|
case "cancel":
|
||||||
|
$text = $obj->add_funds_success_cancel;
|
||||||
|
$class = "warning";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<div class="alert alert-<?php echo $class; ?>">
|
||||||
|
<?php echo $text; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6">
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="value"><?php echo __("Specify Amount"); ?> <?php echo $obj->currency_symbol; ?> <?php echo $obj->currency; ?></label>
|
||||||
|
<select class="form-control" id="value">
|
||||||
|
<?php
|
||||||
|
foreach ($options as $value) {
|
||||||
|
?>
|
||||||
|
<option value="<?php echo $value; ?>"><?php echo $obj->currency_symbol; ?> <?php echo $value; ?> <?php echo $obj->currency; ?></option>
|
||||||
<?php
|
<?php
|
||||||
if (!empty($_GET['status'])) {
|
|
||||||
$text = "unknow";
|
|
||||||
$class = "danger";
|
|
||||||
switch ($_GET['status']) {
|
|
||||||
case "fail":
|
|
||||||
$text = $obj->add_funds_success_fail;
|
|
||||||
break;
|
|
||||||
case "success":
|
|
||||||
$text = $obj->add_funds_success_success;
|
|
||||||
$class = "success";
|
|
||||||
break;
|
|
||||||
case "cancel":
|
|
||||||
$text = $obj->add_funds_success_cancel;
|
|
||||||
$class = "warning";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<div class="alert alert-<?php echo $class; ?>">
|
|
||||||
<?php echo $text; ?>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="form-group">
|
</select>
|
||||||
<label for="value"><?php echo __("Specify Amount"); ?> <?php echo $obj->currency_symbol; ?> <?php echo $obj->currency; ?></label>
|
|
||||||
<select class="form-control" id="value" >
|
|
||||||
<?php
|
|
||||||
foreach ($options as $value) {
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $value; ?>"><?php echo $obj->currency_symbol; ?> <?php echo $value; ?> <?php echo $obj->currency; ?></option>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="information"><?php echo __("Information"); ?></label>
|
|
||||||
<textarea class="form-control" id="information" name="information"></textarea>
|
|
||||||
</div>
|
|
||||||
<button class="btn btn-primary" id="manualAddFundsPageButton">
|
|
||||||
<?php echo $obj->manualAddFundsPageButton; ?>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="information"><?php echo __("Information"); ?></label>
|
||||||
|
<textarea class="form-control" id="information" name="information"></textarea>
|
||||||
|
</div>
|
||||||
|
<button class="btn btn-primary" id="manualAddFundsPageButton">
|
||||||
|
<?php echo $obj->manualAddFundsPageButton; ?>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
</div>
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
</div>
|
||||||
?>
|
<script>
|
||||||
<script>
|
$(document).ready(function() {
|
||||||
$(document).ready(function () {
|
$('#manualAddFundsPageButton').click(function() {
|
||||||
$('#manualAddFundsPageButton').click(function () {
|
modal.showPleaseWait();
|
||||||
modal.showPleaseWait();
|
$.ajax({
|
||||||
$.ajax({
|
url: webSiteRootURL + 'plugin/YPTWallet/view/manualAddFunds.json.php',
|
||||||
url: webSiteRootURL+'plugin/YPTWallet/view/manualAddFunds.json.php',
|
type: "POST",
|
||||||
type: "POST",
|
data: {
|
||||||
data: {
|
value: $('#value').val(),
|
||||||
value: $('#value').val(),
|
information: $('#information').val(),
|
||||||
information: $('#information').val(),
|
autoWithdraw: <?php echo empty($autoWithdraw) ? 0 : 1; ?>
|
||||||
autoWithdraw: <?php echo empty($autoWithdraw)?0:1; ?>
|
},
|
||||||
},
|
success: function(response) {
|
||||||
success: function (response) {
|
modal.hidePleaseWait();
|
||||||
modal.hidePleaseWait();
|
if (response.error) {
|
||||||
if (response.error) {
|
setTimeout(function() {
|
||||||
setTimeout(function () {
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
}, 500);
|
||||||
}, 500);
|
} else {
|
||||||
} else {
|
setTimeout(function() {
|
||||||
setTimeout(function () {
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
||||||
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
}, 500);
|
||||||
}, 500);
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
</script>
|
});
|
||||||
|
});
|
||||||
</body>
|
</script>
|
||||||
</html>
|
<?php
|
||||||
|
$_page->print();
|
||||||
|
?>
|
|
@ -10,118 +10,104 @@ if (!User::isLogged()) {
|
||||||
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
|
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
|
||||||
$obj = $plugin->getDataObject();
|
$obj = $plugin->getDataObject();
|
||||||
$options = _json_decode($obj->withdrawFundsOptions);
|
$options = _json_decode($obj->withdrawFundsOptions);
|
||||||
|
$_page = new Page(array('Withdraw Funds'));
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<div class="container">
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
<div class="row">
|
||||||
<head>
|
<div class="panel panel-default">
|
||||||
<title><?php echo __("Withdraw Funds") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
<div class="panel-heading">
|
||||||
<?php
|
<?php echo __("Withdraw Funds"); ?>
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
<?php
|
||||||
?>
|
if ($obj->enableAutoWithdrawFundsPagePaypal) {
|
||||||
</head>
|
?>
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
<label class="label label-success pull-right"><i class="fab fa-paypal"></i> <?php echo __('Automatic Withdraw'); ?></label>
|
||||||
<?php
|
<?php
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
}
|
||||||
?>
|
?>
|
||||||
<div class="container">
|
</div>
|
||||||
<div class="row">
|
<div class="panel-body">
|
||||||
<div class="panel panel-default">
|
<div class="col-sm-6">
|
||||||
<div class="panel-heading">
|
<?php echo $obj->withdraw_funds_text ?>
|
||||||
<?php echo __("Withdraw Funds"); ?>
|
<?php echo AVideoPlugin::getWalletConfigurationHTML(User::getId(), $plugin, $obj); ?>
|
||||||
<?php
|
</div>
|
||||||
if ($obj->enableAutoWithdrawFundsPagePaypal) {
|
<div class="col-sm-6">
|
||||||
?>
|
<?php
|
||||||
<label class="label label-success pull-right"><i class="fab fa-paypal"></i> <?php echo __('Automatic Withdraw'); ?></label>
|
if (!empty($_GET['status'])) {
|
||||||
<?php
|
$text = "unknow";
|
||||||
|
$class = "danger";
|
||||||
|
switch ($_GET['status']) {
|
||||||
|
case "fail":
|
||||||
|
$text = $obj->add_funds_success_fail;
|
||||||
|
break;
|
||||||
|
case "success":
|
||||||
|
$text = $obj->add_funds_success_success;
|
||||||
|
$class = "success";
|
||||||
|
break;
|
||||||
|
case "cancel":
|
||||||
|
$text = $obj->add_funds_success_cancel;
|
||||||
|
$class = "warning";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
<div class="alert alert-<?php echo $class; ?>">
|
||||||
<div class="panel-body">
|
<?php echo $text; ?>
|
||||||
<div class="col-sm-6">
|
|
||||||
<?php echo $obj->withdraw_funds_text ?>
|
|
||||||
<?php echo AVideoPlugin::getWalletConfigurationHTML(User::getId(), $plugin, $obj); ?>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6">
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="value"><?php echo __("Specify Amount"); ?> <?php echo $obj->currency_symbol; ?> <?php echo $obj->currency; ?></label>
|
||||||
|
<select class="form-control" id="value">
|
||||||
|
<?php
|
||||||
|
foreach ($options as $value) {
|
||||||
|
?>
|
||||||
|
<option value="<?php echo $value; ?>"><?php echo $obj->currency_symbol; ?> <?php echo $value; ?> <?php echo $obj->currency; ?></option>
|
||||||
<?php
|
<?php
|
||||||
if (!empty($_GET['status'])) {
|
|
||||||
$text = "unknow";
|
|
||||||
$class = "danger";
|
|
||||||
switch ($_GET['status']) {
|
|
||||||
case "fail":
|
|
||||||
$text = $obj->add_funds_success_fail;
|
|
||||||
break;
|
|
||||||
case "success":
|
|
||||||
$text = $obj->add_funds_success_success;
|
|
||||||
$class = "success";
|
|
||||||
break;
|
|
||||||
case "cancel":
|
|
||||||
$text = $obj->add_funds_success_cancel;
|
|
||||||
$class = "warning";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<div class="alert alert-<?php echo $class; ?>">
|
|
||||||
<?php echo $text; ?>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="form-group">
|
</select>
|
||||||
<label for="value"><?php echo __("Specify Amount"); ?> <?php echo $obj->currency_symbol; ?> <?php echo $obj->currency; ?></label>
|
|
||||||
<select class="form-control" id="value" >
|
|
||||||
<?php
|
|
||||||
foreach ($options as $value) {
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $value; ?>"><?php echo $obj->currency_symbol; ?> <?php echo $value; ?> <?php echo $obj->currency; ?></option>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="information"><?php echo __("Information"); ?></label>
|
|
||||||
<textarea class="form-control" id="information" name="information"></textarea>
|
|
||||||
</div>
|
|
||||||
<button class="btn btn-primary btn-block" id="manualWithdrawFundsPageButton">
|
|
||||||
<i class="fas fa-dollar-sign"></i>
|
|
||||||
<?php echo $obj->manualWithdrawFundsPageButton; ?>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="information"><?php echo __("Information"); ?></label>
|
||||||
|
<textarea class="form-control" id="information" name="information"></textarea>
|
||||||
|
</div>
|
||||||
|
<button class="btn btn-primary btn-block" id="manualWithdrawFundsPageButton">
|
||||||
|
<i class="fas fa-dollar-sign"></i>
|
||||||
|
<?php echo $obj->manualWithdrawFundsPageButton; ?>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
</div>
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
</div>
|
||||||
?>
|
<script>
|
||||||
<script>
|
$(document).ready(function() {
|
||||||
$(document).ready(function () {
|
$('#manualWithdrawFundsPageButton').click(function() {
|
||||||
$('#manualWithdrawFundsPageButton').click(function () {
|
modal.showPleaseWait();
|
||||||
modal.showPleaseWait();
|
$.ajax({
|
||||||
$.ajax({
|
url: webSiteRootURL + 'plugin/YPTWallet/view/manualWithdrawFunds.json.php',
|
||||||
url: webSiteRootURL+'plugin/YPTWallet/view/manualWithdrawFunds.json.php',
|
type: "POST",
|
||||||
type: "POST",
|
data: {
|
||||||
data: {
|
value: $('#value').val(),
|
||||||
value: $('#value').val(),
|
information: $('#information').val()
|
||||||
information: $('#information').val()
|
},
|
||||||
},
|
success: function(response) {
|
||||||
success: function (response) {
|
$(".walletBalance").text(response.walletBalance);
|
||||||
$(".walletBalance").text(response.walletBalance);
|
modal.hidePleaseWait();
|
||||||
modal.hidePleaseWait();
|
if (response.error) {
|
||||||
if (response.error) {
|
setTimeout(function() {
|
||||||
setTimeout(function () {
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
}, 500);
|
||||||
}, 500);
|
} else {
|
||||||
} else {
|
setTimeout(function() {
|
||||||
setTimeout(function () {
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
||||||
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
}, 500);
|
||||||
}, 500);
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
</script>
|
});
|
||||||
|
});
|
||||||
</body>
|
</script>
|
||||||
</html>
|
<?php
|
||||||
|
$_page->print();
|
||||||
|
?>
|
|
@ -7,120 +7,106 @@ if (!User::isAdmin()) {
|
||||||
forbiddenPage("You can not do this");
|
forbiddenPage("You can not do this");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo __("Pending Requests") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
$_page = new Page(array('Pending Requests'));
|
||||||
<?php
|
?>
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
<div class="container">
|
||||||
?>
|
<div class="panel panel-default">
|
||||||
<div class="container">
|
<div class="panel-heading">
|
||||||
<div class="panel panel-default">
|
<?php
|
||||||
<div class="panel-heading">
|
echo __("Pending Requests");
|
||||||
<?php
|
?>
|
||||||
echo __("Pending Requests");
|
</div>
|
||||||
?>
|
<div class="panel-body">
|
||||||
</div>
|
<div class="row bgWhite list-group-item">
|
||||||
<div class="panel-body">
|
<table id="grid" class="table table-condensed table-hover table-striped">
|
||||||
<div class="row bgWhite list-group-item">
|
<thead>
|
||||||
<table id="grid" class="table table-condensed table-hover table-striped">
|
<tr>
|
||||||
<thead>
|
<th data-column-id="user" data-width="150px"><?php echo __("User"); ?></th>
|
||||||
<tr>
|
<th data-column-id="valueText" data-width="150px"><?php echo __("Value"); ?></th>
|
||||||
<th data-column-id="user" data-width="150px"><?php echo __("User"); ?></th>
|
<th data-column-id="description" data-formatter="description"><?php echo __("Description"); ?></th>
|
||||||
<th data-column-id="valueText" data-width="150px"><?php echo __("Value"); ?></th>
|
<th data-column-id="status" data-formatter="status" data-width="150px"><?php echo __("Status"); ?></th>
|
||||||
<th data-column-id="description" data-formatter="description" ><?php echo __("Description"); ?></th>
|
<th data-column-id="created" data-order="desc" data-formatter="created" data-width="150px"><?php echo __("Date"); ?></th>
|
||||||
<th data-column-id="status" data-formatter="status" data-width="150px"><?php echo __("Status"); ?></th>
|
</tr>
|
||||||
<th data-column-id="created" data-order="desc" data-formatter="created" data-width="150px"><?php echo __("Date"); ?></th>
|
</thead>
|
||||||
</tr>
|
</table>
|
||||||
</thead>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
<?php
|
var grid = $("#grid").bootgrid({
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
labels: {
|
||||||
?>
|
noResults: "<?php echo __("No results found!"); ?>",
|
||||||
<script>
|
all: "<?php echo __("All"); ?>",
|
||||||
$(document).ready(function () {
|
infos: "<?php echo __("Showing {{ctx.start}} to {{ctx.end}} of {{ctx.total}} entries"); ?>",
|
||||||
|
loading: "<?php echo __("Loading..."); ?>",
|
||||||
var grid = $("#grid").bootgrid({
|
refresh: "<?php echo __("Refresh"); ?>",
|
||||||
labels: {
|
search: "<?php echo __("Search"); ?>",
|
||||||
noResults: "<?php echo __("No results found!"); ?>",
|
},
|
||||||
all: "<?php echo __("All"); ?>",
|
ajax: true,
|
||||||
infos: "<?php echo __("Showing {{ctx.start}} to {{ctx.end}} of {{ctx.total}} entries"); ?>",
|
url: "<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/pendingRequests.json.php",
|
||||||
loading: "<?php echo __("Loading..."); ?>",
|
formatters: {
|
||||||
refresh: "<?php echo __("Refresh"); ?>",
|
"status": function(column, row) {
|
||||||
search: "<?php echo __("Search"); ?>",
|
var status = "";
|
||||||
},
|
status = "<div class=\"btn-group\"><button class='btn btn-success btn-xs command-status-success'>Confirm</button>";
|
||||||
ajax: true,
|
status += "<button class='btn btn-danger btn-xs command-status-canceled'>Cancel</button><div>";
|
||||||
url: "<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/pendingRequests.json.php",
|
return status;
|
||||||
formatters: {
|
},
|
||||||
"status": function (column, row) {
|
"description": function(column, row) {
|
||||||
var status = "";
|
if (row.information) {
|
||||||
status = "<div class=\"btn-group\"><button class='btn btn-success btn-xs command-status-success'>Confirm</button>";
|
return row.information;
|
||||||
status += "<button class='btn btn-danger btn-xs command-status-canceled'>Cancel</button><div>";
|
} else {
|
||||||
return status;
|
return row.description;
|
||||||
},
|
|
||||||
"description": function (column, row) {
|
|
||||||
if(row.information){
|
|
||||||
return row.information;
|
|
||||||
}else{
|
|
||||||
return row.description;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"created": function (column, row) {
|
|
||||||
return '<span class="pendingTimers">'+row.created+'</span>';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}).on("loaded.rs.jquery.bootgrid", function () {
|
},
|
||||||
|
"created": function(column, row) {
|
||||||
/* Executes after data is loaded and rendered */
|
return '<span class="pendingTimers">' + row.created + '</span>';
|
||||||
grid.find(".command-status-success").on("click", function (e) {
|
}
|
||||||
var row_index = $(this).closest('tr').index();
|
|
||||||
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
|
||||||
setStatus("success", row.id);
|
|
||||||
});
|
|
||||||
|
|
||||||
grid.find(".command-status-canceled").on("click", function (e) {
|
|
||||||
var row_index = $(this).closest('tr').index();
|
|
||||||
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
|
||||||
setStatus("canceled", row.id);
|
|
||||||
});
|
|
||||||
createTimer('.pendingTimers');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
function setStatus(status, wallet_log_id) {
|
|
||||||
modal.showPleaseWait();
|
|
||||||
$.ajax({
|
|
||||||
url: webSiteRootURL+'plugin/YPTWallet/view/changeLogStatus.json.php',
|
|
||||||
type: "POST",
|
|
||||||
data: {
|
|
||||||
status: status,
|
|
||||||
wallet_log_id: wallet_log_id
|
|
||||||
},
|
|
||||||
success: function (response) {
|
|
||||||
$(".walletBalance").text(response.walletBalance);
|
|
||||||
modal.hidePleaseWait();
|
|
||||||
if (response.error) {
|
|
||||||
setTimeout(function () {
|
|
||||||
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
|
||||||
}, 500);
|
|
||||||
} else {
|
|
||||||
$("#grid").bootgrid("reload");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
}).on("loaded.rs.jquery.bootgrid", function() {
|
||||||
|
|
||||||
</script>
|
/* Executes after data is loaded and rendered */
|
||||||
</body>
|
grid.find(".command-status-success").on("click", function(e) {
|
||||||
</html>
|
var row_index = $(this).closest('tr').index();
|
||||||
|
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
||||||
|
setStatus("success", row.id);
|
||||||
|
});
|
||||||
|
|
||||||
|
grid.find(".command-status-canceled").on("click", function(e) {
|
||||||
|
var row_index = $(this).closest('tr').index();
|
||||||
|
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
||||||
|
setStatus("canceled", row.id);
|
||||||
|
});
|
||||||
|
createTimer('.pendingTimers');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
function setStatus(status, wallet_log_id) {
|
||||||
|
modal.showPleaseWait();
|
||||||
|
$.ajax({
|
||||||
|
url: webSiteRootURL + 'plugin/YPTWallet/view/changeLogStatus.json.php',
|
||||||
|
type: "POST",
|
||||||
|
data: {
|
||||||
|
status: status,
|
||||||
|
wallet_log_id: wallet_log_id
|
||||||
|
},
|
||||||
|
success: function(response) {
|
||||||
|
$(".walletBalance").text(response.walletBalance);
|
||||||
|
modal.hidePleaseWait();
|
||||||
|
if (response.error) {
|
||||||
|
setTimeout(function() {
|
||||||
|
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||||
|
}, 500);
|
||||||
|
} else {
|
||||||
|
$("#grid").bootgrid("reload");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
$_page->print();
|
||||||
|
?>
|
|
@ -2,41 +2,27 @@
|
||||||
$isFirstPage = 1;
|
$isFirstPage = 1;
|
||||||
global $global, $config;
|
global $global, $config;
|
||||||
if (!isset($global['systemRootPath'])) {
|
if (!isset($global['systemRootPath'])) {
|
||||||
require_once '../videos/configuration.php';
|
require_once __DIR__ . '/../../../videos/configuration.php';
|
||||||
}
|
}
|
||||||
require_once $global['systemRootPath'] . 'objects/video.php';
|
require_once $global['systemRootPath'] . 'objects/video.php';
|
||||||
require_once $global['systemRootPath'] . 'objects/category.php';
|
require_once $global['systemRootPath'] . 'objects/category.php';
|
||||||
|
|
||||||
if(AVideoPlugin::isEnabledByName('PlayLists')){
|
if (AVideoPlugin::isEnabledByName('PlayLists')) {
|
||||||
PlayLists::loadScripts();
|
PlayLists::loadScripts();
|
||||||
}
|
}
|
||||||
$obj = AVideoPlugin::getObjectData("YouPHPFlix2");
|
$obj = AVideoPlugin::getObjectData("YouPHPFlix2");
|
||||||
|
$_page = new Page(array(''));
|
||||||
|
$_page->setIncludeInHead(array('plugin/YouPHPFlix2/view/modeFlixHead.php'));
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<div class="container-fluid nopadding flickity-area" id="mainContainer" style="display:none;">
|
||||||
<html>
|
<?php
|
||||||
<head>
|
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixBody.php';
|
||||||
<script>
|
?>
|
||||||
var webSiteRootURL = '<?php echo $global['webSiteRootURL']; ?>';
|
</div>
|
||||||
</script>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixHead.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<title><?php if(!empty($_REQUEST['catName'])){echo $_REQUEST['catName'].' - ';}; echo $config->getWebSiteTitle(); ?></title>
|
<?php
|
||||||
</head>
|
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixFooter.php';
|
||||||
<body class="<?php echo $global['bodyClass']; ?>" style="overflow-x: hidden;">
|
?>
|
||||||
<?php include $global['systemRootPath'] . 'view/include/navbar.php'; ?>
|
<?php
|
||||||
|
$_page->print();
|
||||||
<div class="container-fluid nopadding flickity-area" id="mainContainer" style="display:none;">
|
?>
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixBody.php';
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixFooter.php';
|
|
||||||
?>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -4,21 +4,8 @@ global $global, $config;
|
||||||
if (!isset($global['systemRootPath'])) {
|
if (!isset($global['systemRootPath'])) {
|
||||||
require_once '../videos/configuration.php';
|
require_once '../videos/configuration.php';
|
||||||
}
|
}
|
||||||
?>
|
$_page = new Page(array('Dashboard'));
|
||||||
<!DOCTYPE html>
|
$_page->setIncludeInHead(array('view/charts_head.php'));
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
include $global['systemRootPath'] . 'view/charts_body.php';
|
||||||
<head>
|
$_page->print();
|
||||||
<title><?php echo __("Dashboard") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
?>
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'view/charts_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'view/charts_body.php';
|
|
||||||
include_once $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -41,10 +41,6 @@
|
||||||
<?php echo AVideoPlugin::getChartContent(); ?>
|
<?php echo AVideoPlugin::getChartContent(); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
|
||||||
<?php
|
|
||||||
include_once $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
<?php if (!empty($_GET['jump'])) { ?>
|
<?php if (!empty($_GET['jump'])) { ?>
|
||||||
|
|
|
@ -11,30 +11,8 @@ if (!User::isAdmin()) {
|
||||||
forbiddenPage('');
|
forbiddenPage('');
|
||||||
}
|
}
|
||||||
|
|
||||||
//var_dump($config);exit;
|
$_page = new Page(array('Configuration'));
|
||||||
?>
|
$_page->setIncludeInHead(array('view/configurations_head.php'));
|
||||||
<!DOCTYPE html>
|
include $global['systemRootPath'] . 'view/configurations_body.php';
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
$_page->print();
|
||||||
<head>
|
?>
|
||||||
<title><?php echo __("Configuration") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'view/configurations_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
?>
|
|
||||||
<div class="container-fluid">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/configurations_body.php';
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
File diff suppressed because it is too large
Load diff
|
@ -9,22 +9,9 @@ if (!Category::canCreateCategory()) {
|
||||||
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage categories"));
|
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage categories"));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
$_page = new Page(array('Categories'));
|
||||||
|
$_page->setIncludeInHead(array('view/managerCategories_head.php'));
|
||||||
|
include $global['systemRootPath'] . 'view/managerCategories_body.php';
|
||||||
|
$_page->print();
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
|
||||||
<head>
|
|
||||||
<title><?php echo __("Categories") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
|
|
||||||
include $global['systemRootPath'] . 'view/managerCategories_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'view/managerCategories_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php'; ?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -7,22 +7,8 @@ if (!User::isAdmin()) {
|
||||||
gotToLoginAndComeBackHere(__("You can not manage plugins"));
|
gotToLoginAndComeBackHere(__("You can not manage plugins"));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
?>
|
$_page = new Page(array('Plugins'));
|
||||||
<!DOCTYPE html>
|
$_page->setIncludeInHead(array('view/managerPlugins_head.php'));
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
include $global['systemRootPath'] . 'view/managerPlugins_body.php';
|
||||||
<head>
|
$_page->print();
|
||||||
<title><?php echo __("Plugins") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
?>
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'view/managerPlugins_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'view/managerPlugins_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,27 +8,8 @@ if (!Permissions::canAdminUsers()) {
|
||||||
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage users"));
|
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage users"));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
?>
|
$_page = new Page(array('Users'));
|
||||||
<!DOCTYPE html>
|
$_page->setIncludeInHead(array('view/managerUsers_head.php'));
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
include $global['systemRootPath'] . 'view/managerUsers_body.php';
|
||||||
<head>
|
$_page->print();
|
||||||
<title><?php echo __("Users") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
?>
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'view/managerUsers_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
?>
|
|
||||||
<div class="container-fluid">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/managerUsers_body.php';
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -7,29 +7,8 @@ require_once $global['systemRootPath'] . 'objects/user.php';
|
||||||
if (!Permissions::canAdminUserGroups()) {
|
if (!Permissions::canAdminUserGroups()) {
|
||||||
forbiddenPage(__("You can not manage do this"));
|
forbiddenPage(__("You can not manage do this"));
|
||||||
}
|
}
|
||||||
?>
|
$_page = new Page(array('User Groups'));
|
||||||
<!DOCTYPE html>
|
$_page->setIncludeInHead(array('view/managerUsersGroups_head.php'));
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
include $global['systemRootPath'] . 'view/managerUsersGroups_body.php';
|
||||||
<head>
|
$_page->print();
|
||||||
<title><?php echo __("UserGroups") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
?>
|
||||||
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'view/managerUsersGroups_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
?>
|
|
||||||
<div class="container-fluid">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/managerUsersGroups_body.php';
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,71 +1,72 @@
|
||||||
<div class="panel panel-default">
|
<div class="container-fluid">
|
||||||
<div class="panel-heading">
|
<div class="panel panel-default">
|
||||||
<div class="btn-group" >
|
<div class="panel-heading">
|
||||||
<button type="button" class="btn btn-default" id="addUserGroupsBtn">
|
<div class="btn-group">
|
||||||
<i class="fa-solid fa-plus"></i></span> <?php echo __("New User Groups"); ?>
|
<button type="button" class="btn btn-default" id="addUserGroupsBtn">
|
||||||
</button>
|
<i class="fa-solid fa-plus"></i></span> <?php echo __("New User Groups"); ?>
|
||||||
<a href="<?php echo $global['webSiteRootURL']; ?>mvideos" class="btn btn-success">
|
</button>
|
||||||
<span class="fa fa-film" aria-hidden="true"></span> <?php echo __("Videos"); ?>
|
<a href="<?php echo $global['webSiteRootURL']; ?>mvideos" class="btn btn-success">
|
||||||
</a>
|
<span class="fa fa-film" aria-hidden="true"></span> <?php echo __("Videos"); ?>
|
||||||
<a href="<?php echo $global['webSiteRootURL']; ?>users" class="btn btn-primary">
|
</a>
|
||||||
<span class="fa fa-user" aria-hidden="true"></span> <?php echo __("Users"); ?>
|
<a href="<?php echo $global['webSiteRootURL']; ?>users" class="btn btn-primary">
|
||||||
</a>
|
<span class="fa fa-user" aria-hidden="true"></span> <?php echo __("Users"); ?>
|
||||||
<a href="#" class="btn btn-info pull-right" data-toggle="popover" title="<?php echo __("What is User Groups"); ?>" data-placement="bottom" data-content="<?php echo __("This is where you can create groups and associate them with your videos and users. This will make your videos private. Only users who are in the same group as the videos can view them"); ?>"><span class="fa fa-question-circle" aria-hidden="true"></span> <?php echo __("What is User Groups"); ?></a>
|
</a>
|
||||||
|
<a href="#" class="btn btn-info pull-right" data-toggle="popover" title="<?php echo __("What is User Groups"); ?>" data-placement="bottom" data-content="<?php echo __("This is where you can create groups and associate them with your videos and users. This will make your videos private. Only users who are in the same group as the videos can view them"); ?>"><span class="fa fa-question-circle" aria-hidden="true"></span> <?php echo __("What is User Groups"); ?></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<table id="grid" class="table table-condensed table-hover table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th data-column-id="group_name" data-order="asc"><?php echo __("Name"); ?></th>
|
||||||
|
<th data-column-id="created" data-width="150px"><?php echo __("Created"); ?></th>
|
||||||
|
<th data-column-id="modified" data-width="150px"><?php echo __("Modified"); ?></th>
|
||||||
|
<th data-column-id="commands" data-formatter="commands" data-sortable="false" data-width="100px"></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
|
||||||
<table id="grid" class="table table-condensed table-hover table-striped">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th data-column-id="group_name" data-order="asc"><?php echo __("Name"); ?></th>
|
|
||||||
<th data-column-id="created" data-width="150px" ><?php echo __("Created"); ?></th>
|
|
||||||
<th data-column-id="modified" data-width="150px" ><?php echo __("Modified"); ?></th>
|
|
||||||
<th data-column-id="commands" data-formatter="commands" data-sortable="false" data-width="100px" ></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="groupFormModal" class="modal fade" tabindex="-1" role="dialog">
|
<div id="groupFormModal" class="modal fade" tabindex="-1" role="dialog">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
<h4 class="modal-title"><?php echo __("User Groups Form"); ?></h4>
|
<h4 class="modal-title"><?php echo __("User Groups Form"); ?></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form class="form-compact" id="updateUserGroupsForm" onsubmit="">
|
<form class="form-compact" id="updateUserGroupsForm" onsubmit="">
|
||||||
<input type="hidden" id="inputUserGroupsId" name="id" >
|
<input type="hidden" id="inputUserGroupsId" name="id">
|
||||||
<label for="inputName" class="sr-only"><?php echo __("Name"); ?></label>
|
<label for="inputName" class="sr-only"><?php echo __("Name"); ?></label>
|
||||||
<input type="text" id="inputName" name="group_name" class="form-control" placeholder="<?php echo __("Name"); ?>" required autofocus>
|
<input type="text" id="inputName" name="group_name" class="form-control" placeholder="<?php echo __("Name"); ?>" required autofocus>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (User::isAdmin()) {
|
if (User::isAdmin()) {
|
||||||
?>
|
?>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<?php echo __("Group Permissions"); ?>
|
<?php echo __("Group Permissions"); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<?php
|
<?php
|
||||||
echo Permissions::getForm(); ?>
|
echo Permissions::getForm(); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __("Close"); ?></button>
|
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __("Close"); ?></button>
|
||||||
<button type="button" class="btn btn-primary" id="saveUserGroupsBtn"><?php echo __("Save changes"); ?></button>
|
<button type="button" class="btn btn-primary" id="saveUserGroupsBtn"><?php echo __("Save changes"); ?></button>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.modal-content -->
|
</div><!-- /.modal-content -->
|
||||||
</div><!-- /.modal-dialog -->
|
</div><!-- /.modal-dialog -->
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
</div><!--/.container-->
|
</div><!--/.container-->
|
||||||
<div id="pluginsPermissionModal" class="modal fade" tabindex="-1" role="dialog">
|
<div id="pluginsPermissionModal" class="modal fade" tabindex="-1" role="dialog">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
|
@ -74,22 +75,22 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
|
||||||
|
|
||||||
|
<script>
|
||||||
function pluginPermissionsBtn(plugins_id) {
|
function pluginPermissionsBtn(plugins_id) {
|
||||||
modal.showPleaseWait();
|
modal.showPleaseWait();
|
||||||
$('#groupFormModal').modal('hide');
|
$('#groupFormModal').modal('hide');
|
||||||
$("#pluginsPermissionModalContent").html('');
|
$("#pluginsPermissionModalContent").html('');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: webSiteRootURL+'plugin/Permissions/getPermissionsFromPlugin.html.php?plugins_id=' + plugins_id,
|
url: webSiteRootURL + 'plugin/Permissions/getPermissionsFromPlugin.html.php?plugins_id=' + plugins_id,
|
||||||
success: function (response) {
|
success: function(response) {
|
||||||
modal.hidePleaseWait();
|
modal.hidePleaseWait();
|
||||||
$("#pluginsPermissionModalContent").html(response);
|
$("#pluginsPermissionModalContent").html(response);
|
||||||
$('#pluginsPermissionModal').modal();
|
$('#pluginsPermissionModal').modal();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$(document).ready(function () {
|
$(document).ready(function() {
|
||||||
var grid = $("#grid").bootgrid({
|
var grid = $("#grid").bootgrid({
|
||||||
labels: {
|
labels: {
|
||||||
noResults: "<?php echo __("No results found!"); ?>",
|
noResults: "<?php echo __("No results found!"); ?>",
|
||||||
|
@ -102,16 +103,15 @@
|
||||||
ajax: true,
|
ajax: true,
|
||||||
url: "<?php echo $global['webSiteRootURL'] . "objects/usersGroups.json.php"; ?>",
|
url: "<?php echo $global['webSiteRootURL'] . "objects/usersGroups.json.php"; ?>",
|
||||||
formatters: {
|
formatters: {
|
||||||
"commands": function (column, row)
|
"commands": function(column, row) {
|
||||||
{
|
|
||||||
var editBtn = '<button type="button" class="btn btn-xs btn-default command-edit" data-row-id="' + row.id + '" data-toggle="tooltip" data-placement="left" title="<?php echo __('Edit'); ?>"><i class="fa-solid fa-pen-to-square"></i></button>'
|
var editBtn = '<button type="button" class="btn btn-xs btn-default command-edit" data-row-id="' + row.id + '" data-toggle="tooltip" data-placement="left" title="<?php echo __('Edit'); ?>"><i class="fa-solid fa-pen-to-square"></i></button>'
|
||||||
var deleteBtn = '<button type="button" class="btn btn-default btn-xs command-delete" data-row-id="' + row.id + ' data-toggle="tooltip" data-placement="left" title="<?php echo __('Delete'); ?>""><i class="fa fa-trash"></i></button>';
|
var deleteBtn = '<button type="button" class="btn btn-default btn-xs command-delete" data-row-id="' + row.id + ' data-toggle="tooltip" data-placement="left" title="<?php echo __('Delete'); ?>""><i class="fa fa-trash"></i></button>';
|
||||||
return editBtn + deleteBtn;
|
return editBtn + deleteBtn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).on("loaded.rs.jquery.bootgrid", function () {
|
}).on("loaded.rs.jquery.bootgrid", function() {
|
||||||
/* Executes after data is loaded and rendered */
|
/* Executes after data is loaded and rendered */
|
||||||
grid.find(".command-edit").on("click", function (e) {
|
grid.find(".command-edit").on("click", function(e) {
|
||||||
var row_index = $(this).closest('tr').index();
|
var row_index = $(this).closest('tr').index();
|
||||||
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
||||||
console.log(row);
|
console.log(row);
|
||||||
|
@ -122,19 +122,19 @@
|
||||||
|
|
||||||
modal.showPleaseWait();
|
modal.showPleaseWait();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: webSiteRootURL+'plugin/Permissions/getPermissions.json.php?users_groups_id=' + row.id,
|
url: webSiteRootURL + 'plugin/Permissions/getPermissions.json.php?users_groups_id=' + row.id,
|
||||||
success: function (response) {
|
success: function(response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
$(".permissions").prop("checked", false);
|
$(".permissions").prop("checked", false);
|
||||||
for (var key in response) {
|
for (var key in response) {
|
||||||
if(typeof key !== 'string'){
|
if (typeof key !== 'string') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
for (var subkey in response[key]) {
|
for (var subkey in response[key]) {
|
||||||
if(typeof subkey !== 'string' || isNaN(subkey)){
|
if (typeof subkey !== 'string' || isNaN(subkey)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
var selector = "."+key+"[value=\""+response[key][subkey]+"\"]";
|
var selector = "." + key + "[value=\"" + response[key][subkey] + "\"]";
|
||||||
console.log(selector, $(selector));
|
console.log(selector, $(selector));
|
||||||
$(selector).prop("checked", true);
|
$(selector).prop("checked", true);
|
||||||
}
|
}
|
||||||
|
@ -145,41 +145,43 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}).end().find(".command-delete").on("click", function (e) {
|
}).end().find(".command-delete").on("click", function(e) {
|
||||||
var row_index = $(this).closest('tr').index();
|
var row_index = $(this).closest('tr').index();
|
||||||
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
var row = $("#grid").bootgrid("getCurrentRows")[row_index];
|
||||||
|
|
||||||
swal({
|
swal({
|
||||||
title: "<?php echo __("Are you sure?"); ?>",
|
title: "<?php echo __("Are you sure?"); ?>",
|
||||||
text: "<?php echo __("You will not be able to recover this action!"); ?>",
|
text: "<?php echo __("You will not be able to recover this action!"); ?>",
|
||||||
icon: "warning",
|
icon: "warning",
|
||||||
buttons: true,
|
buttons: true,
|
||||||
dangerMode: true,
|
dangerMode: true,
|
||||||
})
|
})
|
||||||
.then(function (willDelete) {
|
.then(function(willDelete) {
|
||||||
if (willDelete) {
|
if (willDelete) {
|
||||||
|
|
||||||
modal.showPleaseWait();
|
modal.showPleaseWait();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: webSiteRootURL+'objects/userGroupsDelete.json.php',
|
url: webSiteRootURL + 'objects/userGroupsDelete.json.php',
|
||||||
data: {"id": row.id},
|
data: {
|
||||||
type: 'post',
|
"id": row.id
|
||||||
success: function (response) {
|
},
|
||||||
if (response.status === "1") {
|
type: 'post',
|
||||||
$("#grid").bootgrid("reload");
|
success: function(response) {
|
||||||
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your group has been deleted!"); ?>", "success");
|
if (response.status === "1") {
|
||||||
} else {
|
$("#grid").bootgrid("reload");
|
||||||
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your group has NOT been deleted!"); ?>", "error");
|
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your group has been deleted!"); ?>", "success");
|
||||||
}
|
} else {
|
||||||
modal.hidePleaseWait();
|
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your group has NOT been deleted!"); ?>", "error");
|
||||||
}
|
}
|
||||||
});
|
modal.hidePleaseWait();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#addUserGroupsBtn').click(function (evt) {
|
$('#addUserGroupsBtn').click(function(evt) {
|
||||||
$('#inputUserGroupsId').val('');
|
$('#inputUserGroupsId').val('');
|
||||||
$('#inputName').val('');
|
$('#inputName').val('');
|
||||||
$('#inputCleanName').val('');
|
$('#inputCleanName').val('');
|
||||||
|
@ -189,18 +191,18 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#saveUserGroupsBtn').click(function (evt) {
|
$('#saveUserGroupsBtn').click(function(evt) {
|
||||||
$('#updateUserGroupsForm').submit();
|
$('#updateUserGroupsForm').submit();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#updateUserGroupsForm').submit(function (evt) {
|
$('#updateUserGroupsForm').submit(function(evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
modal.showPleaseWait();
|
modal.showPleaseWait();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '<?php echo $global['webSiteRootURL'] . "objects/userGroupsAddNew.json.php"; ?>',
|
url: '<?php echo $global['webSiteRootURL'] . "objects/userGroupsAddNew.json.php"; ?>',
|
||||||
data: $(this).serialize(),
|
data: $(this).serialize(),
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function(response) {
|
||||||
if (response.status) {
|
if (response.status) {
|
||||||
$('#groupFormModal').modal('hide');
|
$('#groupFormModal').modal('hide');
|
||||||
$("#grid").bootgrid("reload");
|
$("#grid").bootgrid("reload");
|
||||||
|
@ -214,5 +216,4 @@
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
</script>
|
||||||
</script>
|
|
|
@ -16,337 +16,338 @@ foreach ($userGroups as $value) {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<link href="<?php echo getURL('node_modules/flickity/dist/flickity.min.css'); ?>" rel="stylesheet" type="text/css" />
|
<link href="<?php echo getURL('node_modules/flickity/dist/flickity.min.css'); ?>" rel="stylesheet" type="text/css" />
|
||||||
<div class="panel panel-default">
|
<div class="container-fluid">
|
||||||
<div class="panel-heading tabbable-line">
|
<div class="panel panel-default">
|
||||||
<div class="btn-group pull-right">
|
<div class="panel-heading tabbable-line">
|
||||||
<button type="button" class="btn btn-default" id="addUserBtn">
|
<div class="btn-group pull-right">
|
||||||
<i class="fa-solid fa-plus"></i></span> <?php echo __("New User"); ?>
|
<button type="button" class="btn btn-default" id="addUserBtn">
|
||||||
</button>
|
<i class="fa-solid fa-plus"></i></span> <?php echo __("New User"); ?>
|
||||||
<a href="<?php echo $global['webSiteRootURL']; ?>usersGroups" class="btn btn-warning">
|
</button>
|
||||||
<span class="fa fa-users"></span> <?php echo __("User Groups"); ?>
|
<a href="<?php echo $global['webSiteRootURL']; ?>usersGroups" class="btn btn-warning">
|
||||||
</a>
|
<span class="fa fa-users"></span> <?php echo __("User Groups"); ?>
|
||||||
<a href="<?php echo $global['webSiteRootURL']; ?>mvideos" class="btn btn-success">
|
</a>
|
||||||
<span class="fa fa-film"></span> <?php echo __("Videos"); ?>
|
<a href="<?php echo $global['webSiteRootURL']; ?>mvideos" class="btn btn-success">
|
||||||
</a>
|
<span class="fa fa-film"></span> <?php echo __("Videos"); ?>
|
||||||
<a href="<?php echo $global['webSiteRootURL']; ?>objects/getAllEmails.csv.php" class="btn btn-primary">
|
</a>
|
||||||
<i class="fas fa-file-csv"></i> <?php echo __("CSV File"); ?>
|
<a href="<?php echo $global['webSiteRootURL']; ?>objects/getAllEmails.csv.php" class="btn btn-primary">
|
||||||
</a>
|
<i class="fas fa-file-csv"></i> <?php echo __("CSV File"); ?>
|
||||||
<div class="btn btn-primary" data-toggle="tooltip" title="<?php echo __('Online users'); ?>">
|
</a>
|
||||||
<i class="fas fa-users"></i> <span class="total_users_online">0</span>
|
<div class="btn btn-primary" data-toggle="tooltip" title="<?php echo __('Online users'); ?>">
|
||||||
</div>
|
<i class="fas fa-users"></i> <span class="total_users_online">0</span>
|
||||||
</div>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
<?php
|
|
||||||
$_REQUEST['rowCount'] = $_rowCount;
|
|
||||||
$_REQUEST['current'] = $current;
|
|
||||||
$items = array();
|
|
||||||
foreach ($users_tabs as $value) {
|
|
||||||
$label = "<i class=\"{$value['icon']}\"></i> " . __($value['title']);
|
|
||||||
$items[] = array('href' => "#{$value['selector']}Tab", 'tooltip' => __($value['title']), 'onclick' => "startUserGrid('#{$value['selector']}', '{$value['queryString']}', " . intval($value['userGroupID']) . ");", 'label' => $label);
|
|
||||||
}
|
|
||||||
generateHorizontalFlickity($items);
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<div class="tab-content">
|
|
||||||
|
|
||||||
<?php
|
|
||||||
foreach ($users_tabs as $value) {
|
|
||||||
?>
|
|
||||||
<div id="<?php echo $value['selector']; ?>Tab" class="tab-pane fade in <?php echo $value['active']; ?>">
|
|
||||||
<?php
|
|
||||||
if (!empty($value['userGroupID'])) {
|
|
||||||
?>
|
|
||||||
<div class="btn-group pull-left" id="filterButtonsUG<?php echo $value['userGroupID']; ?>">
|
|
||||||
<div class="btn-group ">
|
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
||||||
<span class="activeFilter"><?php echo __('All'); ?></span> <span class="caret"></span></button>
|
|
||||||
<ul class="dropdown-menu" role="menu">
|
|
||||||
<li><a href="#" id="filter<?php echo $value['userGroupID']; ?>_" onclick="userGroupFilter(<?php echo $value['userGroupID']; ?>, '');return false;"><?php echo __('All'); ?></a></li>
|
|
||||||
<li><a href="#" id="filter<?php echo $value['userGroupID']; ?>_dynamic" onclick="userGroupFilter(<?php echo $value['userGroupID']; ?>, 'dynamic');return false;"><i class="fas fa-link"></i> <?php echo __('Dynamic User groups'); ?> (<?php echo __('Added by a plugin, PPV or Subscription'); ?>)</a></li>
|
|
||||||
<li><a href="#" id="filter<?php echo $value['userGroupID']; ?>_permanent" onclick="userGroupFilter(<?php echo $value['userGroupID']; ?>, 'permanent');return false;;"><i class="fas fa-lock"></i> <?php echo __('Permanent User groups'); ?></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<table id="<?php echo $value['selector']; ?>" class="table table-condensed table-hover table-striped">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th data-column-id="id" data-width="80px"><?php echo __("#"); ?></th>
|
|
||||||
<th data-column-id="user" data-formatter="user"><?php echo __("User"); ?></th>
|
|
||||||
<th data-column-id="name" data-order="desc"><?php echo __("Name"); ?></th>
|
|
||||||
<th data-column-id="email"><?php echo __("E-mail"); ?></th>
|
|
||||||
<th data-column-id="phone"><?php echo __("Phone"); ?></th>
|
|
||||||
<th data-column-id="created"><?php echo __("Created"); ?></th>
|
|
||||||
<th data-column-id="modified"><?php echo __("Modified"); ?></th>
|
|
||||||
<th data-column-id="tags" data-formatter="tags" data-sortable="false"><?php echo __("Tags"); ?></th>
|
|
||||||
<th data-column-id="commands" data-formatter="commands" data-sortable="false" data-width="200px"></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="clearfix"></div>
|
||||||
<?php
|
<?php
|
||||||
|
$_REQUEST['rowCount'] = $_rowCount;
|
||||||
|
$_REQUEST['current'] = $current;
|
||||||
|
$items = array();
|
||||||
|
foreach ($users_tabs as $value) {
|
||||||
|
$label = "<i class=\"{$value['icon']}\"></i> " . __($value['title']);
|
||||||
|
$items[] = array('href' => "#{$value['selector']}Tab", 'tooltip' => __($value['title']), 'onclick' => "startUserGrid('#{$value['selector']}', '{$value['queryString']}', " . intval($value['userGroupID']) . ");", 'label' => $label);
|
||||||
}
|
}
|
||||||
|
generateHorizontalFlickity($items);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="panel-body">
|
||||||
</div>
|
<div class="tab-content">
|
||||||
|
|
||||||
|
<?php
|
||||||
<div id="userFormModal" class="modal fade" tabindex="-1" role="dialog">
|
foreach ($users_tabs as $value) {
|
||||||
<div class="modal-dialog" role="document">
|
?>
|
||||||
<div class="modal-content">
|
<div id="<?php echo $value['selector']; ?>Tab" class="tab-pane fade in <?php echo $value['active']; ?>">
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title"><?php echo __("User Form"); ?></h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<form class="form-compact" id="updateUserForm" onsubmit="">
|
|
||||||
<input type="hidden" id="inputUserId">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<label for="inputUser"><?php echo __("User"); ?></label>
|
|
||||||
<input type="text" id="inputUser" class="form-control first" placeholder="<?php echo __("User"); ?>" autofocus required="required" data-toggle="tooltip" title="<?php echo __('User'); ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<label for="inputPassword"><?php echo __("Password"); ?></label><?php
|
|
||||||
getInputPassword("inputPassword", 'class="form-control" required="required" autocomplete="off"', __("Password"));
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<label for="inputName">
|
|
||||||
<?php echo __("Name"); ?>
|
|
||||||
</label>
|
|
||||||
<input type="text" id="inputName" class="form-control " placeholder="<?php echo __("Name"); ?>" data-toggle="tooltip" title="<?php echo __('Name'); ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<label for="inputEmail">
|
|
||||||
<?php echo __("E-mail"); ?>
|
|
||||||
</label>
|
|
||||||
<input type="email" id="inputEmail" class="form-control" placeholder="<?php echo __("E-mail"); ?>" data-toggle="tooltip" title="<?php echo __('E-mail'); ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<label for="inputChannelName">
|
|
||||||
<?php echo __("Channel Name"); ?>
|
|
||||||
</label>
|
|
||||||
<input type="text" id="inputChannelName" class="form-control" placeholder="<?php echo __("Channel Name"); ?>" data-toggle="tooltip" title="<?php echo __('Channel Name'); ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<label for="inputBirth">
|
|
||||||
<?php echo __("Birth Date"); ?>
|
|
||||||
</label>
|
|
||||||
<input type="date" id="inputBirth" class="form-control" placeholder="<?php echo __("Birth Date"); ?>" data-toggle="tooltip" title="<?php echo __('Birth'); ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<label for="inputPhone">
|
|
||||||
<?php echo __("Phone"); ?>
|
|
||||||
</label>
|
|
||||||
<input type="text" id="inputPhone" class="form-control" placeholder="<?php echo __("Phone"); ?>" data-toggle="tooltip" title="<?php echo __('Phone'); ?>">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<label for="inputAnalyticsCode">
|
|
||||||
<?php echo __("Analytics Code"); ?>
|
|
||||||
</label>
|
|
||||||
<input type="text" id="inputAnalyticsCode" class="form-control last" placeholder="Google Analytics Code: UA-123456789-1" data-toggle="tooltip" title="<?php echo __('Analytics Code'); ?>">
|
|
||||||
<small>Do not paste the full javascript code, paste only the gtag id</small>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
if (empty($advancedCustomUser->disableCompanySignUp) || !empty($advancedCustomUser->enableAffiliation)) {
|
|
||||||
?>
|
|
||||||
<label for="is_company"><?php echo __("is a Company"); ?></label>
|
|
||||||
<select name="is_company" id="is_company" class="form-control last">
|
|
||||||
<?php
|
|
||||||
foreach (User::$is_company_status as $key => $value) {
|
|
||||||
if (!empty($advancedCustomUser->disableCompanySignUp) && $key == User::$is_company_status_WAITINGAPPROVAL) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
echo "<option value='{$key}'>" . __($value) . "</option>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
<?php }
|
|
||||||
?>
|
|
||||||
|
|
||||||
<ul class="list-group">
|
|
||||||
<li class="list-group-item <?php echo User::isAdmin() ? "" : "hidden"; ?>">
|
|
||||||
<?php echo __("is Admin"); ?>
|
|
||||||
<div class="material-switch pull-right">
|
|
||||||
<input type="checkbox" value="isAdmin" id="isAdmin" />
|
|
||||||
<label for="isAdmin" class="label-success"></label>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<?php echo __("Can Stream Videos"); ?>
|
|
||||||
<div class="material-switch pull-right">
|
|
||||||
<input type="checkbox" value="canStream" id="canStream" />
|
|
||||||
<label for="canStream" class="label-success"></label>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<?php echo __("Can Upload Videos"); ?>
|
|
||||||
<div class="material-switch pull-right">
|
|
||||||
<input type="checkbox" value="canUpload" id="canUpload" />
|
|
||||||
<label for="canUpload" class="label-success"></label>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<?php echo __("Can view chart"); ?>
|
|
||||||
<div class="material-switch pull-right">
|
|
||||||
<input type="checkbox" value="canViewChart" id="canViewChart" />
|
|
||||||
<label for="canViewChart" class="label-success"></label>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<?php echo __("Can create meet"); ?>
|
|
||||||
<div class="material-switch pull-right">
|
|
||||||
<input type="checkbox" value="canCreateMeet" id="canCreateMeet" />
|
|
||||||
<label for="canCreateMeet" class="label-success"></label>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<?php echo __("E-mail Verified"); ?>
|
|
||||||
<div class="material-switch pull-right">
|
|
||||||
<input type="checkbox" value="isEmailVerified" id="isEmailVerified" />
|
|
||||||
<label for="isEmailVerified" class="label-success"></label>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<?php echo __("is Active"); ?>
|
|
||||||
<div class="material-switch pull-right">
|
|
||||||
<input type="checkbox" value="status" id="status" />
|
|
||||||
<label for="status" class="label-success"></label>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<?php
|
<?php
|
||||||
print AVideoPlugin::getUserOptions();
|
if (!empty($value['userGroupID'])) {
|
||||||
?>
|
?>
|
||||||
</ul>
|
<div class="btn-group pull-left" id="filterButtonsUG<?php echo $value['userGroupID']; ?>">
|
||||||
<ul class="list-group">
|
<div class="btn-group ">
|
||||||
<li class="list-group-item active">
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||||
<?php echo __("User Groups"); ?>
|
<span class="activeFilter"><?php echo __('All'); ?></span> <span class="caret"></span></button>
|
||||||
<a href="#" class="btn btn-info btn-xs pull-right" data-toggle="popover" title="<?php echo __("What is User Groups"); ?>" data-placement="bottom" data-content="<?php echo __("By associating groups with this user, they will be able to see all the videos that are related to this group"); ?>"><span class="fa fa-question-circle" aria-hidden="true"></span> <?php echo __("Help"); ?></a>
|
<ul class="dropdown-menu" role="menu">
|
||||||
</li>
|
<li><a href="#" id="filter<?php echo $value['userGroupID']; ?>_" onclick="userGroupFilter(<?php echo $value['userGroupID']; ?>, '');return false;"><?php echo __('All'); ?></a></li>
|
||||||
<?php
|
<li><a href="#" id="filter<?php echo $value['userGroupID']; ?>_dynamic" onclick="userGroupFilter(<?php echo $value['userGroupID']; ?>, 'dynamic');return false;"><i class="fas fa-link"></i> <?php echo __('Dynamic User groups'); ?> (<?php echo __('Added by a plugin, PPV or Subscription'); ?>)</a></li>
|
||||||
foreach ($userGroups as $value) {
|
<li><a href="#" id="filter<?php echo $value['userGroupID']; ?>_permanent" onclick="userGroupFilter(<?php echo $value['userGroupID']; ?>, 'permanent');return false;;"><i class="fas fa-lock"></i> <?php echo __('Permanent User groups'); ?></a></li>
|
||||||
?>
|
</ul>
|
||||||
<li class="list-group-item usergroupsLi" id="usergroupsLi<?php echo $value['id']; ?>">
|
|
||||||
<span class="fa fa-unlock"></span>
|
|
||||||
<?php echo $value['group_name']; ?>
|
|
||||||
<span class="label label-info"><?php echo $value['total_videos']; ?> <?php echo __("Videos linked"); ?></span>
|
|
||||||
<span class="label label-warning dynamicLabel"><i class="fas fa-link"></i> <?php echo __("Dynamic group"); ?></span>
|
|
||||||
<div class="material-switch pull-right">
|
|
||||||
<input id="userGroup<?php echo $value['id']; ?>" type="checkbox" value="<?php echo $value['id']; ?>" class="userGroups" />
|
|
||||||
<label for="userGroup<?php echo $value['id']; ?>" class="label-warning"></label>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
<table id="<?php echo $value['selector']; ?>" class="table table-condensed table-hover table-striped">
|
||||||
</form>
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th data-column-id="id" data-width="80px"><?php echo __("#"); ?></th>
|
||||||
|
<th data-column-id="user" data-formatter="user"><?php echo __("User"); ?></th>
|
||||||
|
<th data-column-id="name" data-order="desc"><?php echo __("Name"); ?></th>
|
||||||
|
<th data-column-id="email"><?php echo __("E-mail"); ?></th>
|
||||||
|
<th data-column-id="phone"><?php echo __("Phone"); ?></th>
|
||||||
|
<th data-column-id="created"><?php echo __("Created"); ?></th>
|
||||||
|
<th data-column-id="modified"><?php echo __("Modified"); ?></th>
|
||||||
|
<th data-column-id="tags" data-formatter="tags" data-sortable="false"><?php echo __("Tags"); ?></th>
|
||||||
|
<th data-column-id="commands" data-formatter="commands" data-sortable="false" data-width="200px"></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
</div>
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __("Close"); ?></button>
|
</div>
|
||||||
<button type="button" class="btn btn-primary" id="saveUserBtn"><?php echo __("Save changes"); ?></button>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.modal-content -->
|
|
||||||
</div><!-- /.modal-dialog -->
|
|
||||||
</div><!-- /.modal -->
|
|
||||||
|
|
||||||
|
|
||||||
<div id="userInfoModal" class="modal fade" tabindex="-1" role="dialog">
|
<div id="userFormModal" class="modal fade" tabindex="-1" role="dialog">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
<h4 class="modal-title"><?php echo __("User Info"); ?></h4>
|
<h4 class="modal-title"><?php echo __("User Form"); ?></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="row">
|
<form class="form-compact" id="updateUserForm" onsubmit="">
|
||||||
<label class="col-md-4 control-label"><?php echo __("First Name"); ?></label>
|
<input type="hidden" id="inputUserId">
|
||||||
<div class="col-md-8 inputGroupContainer">
|
<div class="row">
|
||||||
<div class="input-group">
|
<div class="col-sm-6">
|
||||||
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
<label for="inputUser"><?php echo __("User"); ?></label>
|
||||||
<input id="first_name" class="form-control" type="text" readonly>
|
<input type="text" id="inputUser" class="form-control first" placeholder="<?php echo __("User"); ?>" autofocus required="required" data-toggle="tooltip" title="<?php echo __('User'); ?>">
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<label for="inputPassword"><?php echo __("Password"); ?></label><?php
|
||||||
|
getInputPassword("inputPassword", 'class="form-control" required="required" autocomplete="off"', __("Password"));
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<label for="inputName">
|
||||||
|
<?php echo __("Name"); ?>
|
||||||
|
</label>
|
||||||
|
<input type="text" id="inputName" class="form-control " placeholder="<?php echo __("Name"); ?>" data-toggle="tooltip" title="<?php echo __('Name'); ?>">
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<label for="inputEmail">
|
||||||
|
<?php echo __("E-mail"); ?>
|
||||||
|
</label>
|
||||||
|
<input type="email" id="inputEmail" class="form-control" placeholder="<?php echo __("E-mail"); ?>" data-toggle="tooltip" title="<?php echo __('E-mail'); ?>">
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<label for="inputChannelName">
|
||||||
|
<?php echo __("Channel Name"); ?>
|
||||||
|
</label>
|
||||||
|
<input type="text" id="inputChannelName" class="form-control" placeholder="<?php echo __("Channel Name"); ?>" data-toggle="tooltip" title="<?php echo __('Channel Name'); ?>">
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<label for="inputBirth">
|
||||||
|
<?php echo __("Birth Date"); ?>
|
||||||
|
</label>
|
||||||
|
<input type="date" id="inputBirth" class="form-control" placeholder="<?php echo __("Birth Date"); ?>" data-toggle="tooltip" title="<?php echo __('Birth'); ?>">
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<label for="inputPhone">
|
||||||
|
<?php echo __("Phone"); ?>
|
||||||
|
</label>
|
||||||
|
<input type="text" id="inputPhone" class="form-control" placeholder="<?php echo __("Phone"); ?>" data-toggle="tooltip" title="<?php echo __('Phone'); ?>">
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<label for="inputAnalyticsCode">
|
||||||
|
<?php echo __("Analytics Code"); ?>
|
||||||
|
</label>
|
||||||
|
<input type="text" id="inputAnalyticsCode" class="form-control last" placeholder="Google Analytics Code: UA-123456789-1" data-toggle="tooltip" title="<?php echo __('Analytics Code'); ?>">
|
||||||
|
<small>Do not paste the full javascript code, paste only the gtag id</small>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
if (empty($advancedCustomUser->disableCompanySignUp) || !empty($advancedCustomUser->enableAffiliation)) {
|
||||||
|
?>
|
||||||
|
<label for="is_company"><?php echo __("is a Company"); ?></label>
|
||||||
|
<select name="is_company" id="is_company" class="form-control last">
|
||||||
|
<?php
|
||||||
|
foreach (User::$is_company_status as $key => $value) {
|
||||||
|
if (!empty($advancedCustomUser->disableCompanySignUp) && $key == User::$is_company_status_WAITINGAPPROVAL) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
echo "<option value='{$key}'>" . __($value) . "</option>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
<?php }
|
||||||
|
?>
|
||||||
|
|
||||||
|
<ul class="list-group">
|
||||||
|
<li class="list-group-item <?php echo User::isAdmin() ? "" : "hidden"; ?>">
|
||||||
|
<?php echo __("is Admin"); ?>
|
||||||
|
<div class="material-switch pull-right">
|
||||||
|
<input type="checkbox" value="isAdmin" id="isAdmin" />
|
||||||
|
<label for="isAdmin" class="label-success"></label>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<?php echo __("Can Stream Videos"); ?>
|
||||||
|
<div class="material-switch pull-right">
|
||||||
|
<input type="checkbox" value="canStream" id="canStream" />
|
||||||
|
<label for="canStream" class="label-success"></label>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<?php echo __("Can Upload Videos"); ?>
|
||||||
|
<div class="material-switch pull-right">
|
||||||
|
<input type="checkbox" value="canUpload" id="canUpload" />
|
||||||
|
<label for="canUpload" class="label-success"></label>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<?php echo __("Can view chart"); ?>
|
||||||
|
<div class="material-switch pull-right">
|
||||||
|
<input type="checkbox" value="canViewChart" id="canViewChart" />
|
||||||
|
<label for="canViewChart" class="label-success"></label>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<?php echo __("Can create meet"); ?>
|
||||||
|
<div class="material-switch pull-right">
|
||||||
|
<input type="checkbox" value="canCreateMeet" id="canCreateMeet" />
|
||||||
|
<label for="canCreateMeet" class="label-success"></label>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<?php echo __("E-mail Verified"); ?>
|
||||||
|
<div class="material-switch pull-right">
|
||||||
|
<input type="checkbox" value="isEmailVerified" id="isEmailVerified" />
|
||||||
|
<label for="isEmailVerified" class="label-success"></label>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<?php echo __("is Active"); ?>
|
||||||
|
<div class="material-switch pull-right">
|
||||||
|
<input type="checkbox" value="status" id="status" />
|
||||||
|
<label for="status" class="label-success"></label>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<?php
|
||||||
|
print AVideoPlugin::getUserOptions();
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
<ul class="list-group">
|
||||||
|
<li class="list-group-item active">
|
||||||
|
<?php echo __("User Groups"); ?>
|
||||||
|
<a href="#" class="btn btn-info btn-xs pull-right" data-toggle="popover" title="<?php echo __("What is User Groups"); ?>" data-placement="bottom" data-content="<?php echo __("By associating groups with this user, they will be able to see all the videos that are related to this group"); ?>"><span class="fa fa-question-circle" aria-hidden="true"></span> <?php echo __("Help"); ?></a>
|
||||||
|
</li>
|
||||||
|
<?php
|
||||||
|
foreach ($userGroups as $value) {
|
||||||
|
?>
|
||||||
|
<li class="list-group-item usergroupsLi" id="usergroupsLi<?php echo $value['id']; ?>">
|
||||||
|
<span class="fa fa-unlock"></span>
|
||||||
|
<?php echo $value['group_name']; ?>
|
||||||
|
<span class="label label-info"><?php echo $value['total_videos']; ?> <?php echo __("Videos linked"); ?></span>
|
||||||
|
<span class="label label-warning dynamicLabel"><i class="fas fa-link"></i> <?php echo __("Dynamic group"); ?></span>
|
||||||
|
<div class="material-switch pull-right">
|
||||||
|
<input id="userGroup<?php echo $value['id']; ?>" type="checkbox" value="<?php echo $value['id']; ?>" class="userGroups" />
|
||||||
|
<label for="userGroup<?php echo $value['id']; ?>" class="label-warning"></label>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __("Close"); ?></button>
|
||||||
|
<button type="button" class="btn btn-primary" id="saveUserBtn"><?php echo __("Save changes"); ?></button>
|
||||||
|
</div>
|
||||||
|
</div><!-- /.modal-content -->
|
||||||
|
</div><!-- /.modal-dialog -->
|
||||||
|
</div><!-- /.modal -->
|
||||||
|
|
||||||
|
|
||||||
|
<div id="userInfoModal" class="modal fade" tabindex="-1" role="dialog">
|
||||||
|
<div class="modal-dialog" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
|
<h4 class="modal-title"><?php echo __("User Info"); ?></h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
|
<label class="col-md-4 control-label"><?php echo __("First Name"); ?></label>
|
||||||
|
<div class="col-md-8 inputGroupContainer">
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
||||||
|
<input id="first_name" class="form-control" type="text" readonly>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-4 control-label"><?php echo __("Last Name"); ?></label>
|
<label class="col-md-4 control-label"><?php echo __("Last Name"); ?></label>
|
||||||
<div class="col-md-8 inputGroupContainer">
|
<div class="col-md-8 inputGroupContainer">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
||||||
<input id="last_name" class="form-control" readonly>
|
<input id="last_name" class="form-control" readonly>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-4 control-label"><?php echo __("Address"); ?></label>
|
<label class="col-md-4 control-label"><?php echo __("Address"); ?></label>
|
||||||
<div class="col-md-8 inputGroupContainer">
|
<div class="col-md-8 inputGroupContainer">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
||||||
<input id="address" class="form-control" readonly>
|
<input id="address" class="form-control" readonly>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-4 control-label"><?php echo __("Zip Code"); ?></label>
|
<label class="col-md-4 control-label"><?php echo __("Zip Code"); ?></label>
|
||||||
<div class="col-md-8 inputGroupContainer">
|
<div class="col-md-8 inputGroupContainer">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
||||||
<input id="zip_code" class="form-control" readonly>
|
<input id="zip_code" class="form-control" readonly>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-4 control-label"><?php echo __("Country"); ?></label>
|
<label class="col-md-4 control-label"><?php echo __("Country"); ?></label>
|
||||||
<div class="col-md-8 inputGroupContainer">
|
<div class="col-md-8 inputGroupContainer">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
||||||
<input id="country" class="form-control" readonly>
|
<input id="country" class="form-control" readonly>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="row">
|
<label class="col-md-4 control-label"><?php echo __("Region"); ?></label>
|
||||||
<label class="col-md-4 control-label"><?php echo __("Region"); ?></label>
|
<div class="col-md-8 inputGroupContainer">
|
||||||
<div class="col-md-8 inputGroupContainer">
|
<div class="input-group">
|
||||||
<div class="input-group">
|
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
||||||
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
<input id="region" class="form-control" readonly>
|
||||||
<input id="region" class="form-control" readonly>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="row">
|
<label class="col-md-4 control-label"><?php echo __("City"); ?></label>
|
||||||
<label class="col-md-4 control-label"><?php echo __("City"); ?></label>
|
<div class="col-md-8 inputGroupContainer">
|
||||||
<div class="col-md-8 inputGroupContainer">
|
<div class="input-group">
|
||||||
<div class="input-group">
|
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
||||||
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
|
<input id="city" class="form-control" readonly>
|
||||||
<input id="city" class="form-control" readonly>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-4 control-label"><?php echo __("Document"); ?></label>
|
<label class="col-md-4 control-label"><?php echo __("Document"); ?></label>
|
||||||
<div class="col-md-8 inputGroupContainer">
|
<div class="col-md-8 inputGroupContainer">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<img src="" class="img img-responsive img-thumbnail" id="documentImage" />
|
<img src="" class="img img-responsive img-thumbnail" id="documentImage" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div><!-- /.modal-content -->
|
||||||
</div>
|
</div><!-- /.modal-dialog -->
|
||||||
</div><!-- /.modal-content -->
|
</div><!-- /.modal -->
|
||||||
</div><!-- /.modal-dialog -->
|
</div>
|
||||||
</div><!-- /.modal -->
|
|
||||||
|
|
||||||
<script src="<?php echo getURL('node_modules/flickity/dist/flickity.pkgd.min.js'); ?>" type="text/javascript"></script>
|
<script src="<?php echo getURL('node_modules/flickity/dist/flickity.pkgd.min.js'); ?>" type="text/javascript"></script>
|
||||||
<script src="<?php echo getURL('node_modules/flickity-bg-lazyload/bg-lazyload.js'); ?>" type="text/javascript"></script>
|
<script src="<?php echo getURL('node_modules/flickity-bg-lazyload/bg-lazyload.js'); ?>" type="text/javascript"></script>
|
||||||
|
|
||||||
|
@ -401,7 +402,7 @@ foreach ($userGroups as $value) {
|
||||||
selectedUserGroups.push($(this).val());
|
selectedUserGroups.push($(this).val());
|
||||||
});
|
});
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: webSiteRootURL+'objects/userAddNew.json.php',
|
url: webSiteRootURL + 'objects/userAddNew.json.php',
|
||||||
data: {
|
data: {
|
||||||
<?php
|
<?php
|
||||||
print AVideoPlugin::updateUserFormJS();
|
print AVideoPlugin::updateUserFormJS();
|
||||||
|
|
|
@ -19,24 +19,9 @@ if (!empty($_GET['iframe'])) {
|
||||||
$_GET['noNavbar'] = 1;
|
$_GET['noNavbar'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
$_page = new Page(array('Videos'));
|
||||||
<!DOCTYPE html>
|
$_page->loadBasicCSSAndJS();
|
||||||
<html lang="<?php echo getLanguage(); ?>">
|
$_page->setIncludeInHead(array('view/managerVideos_head.php'));
|
||||||
<head>
|
include $global['systemRootPath'] . 'view/managerVideos_body.php';
|
||||||
<title><?php echo __("Audio and Video") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
$_page->print();
|
||||||
<?php
|
?>
|
||||||
include $global['systemRootPath'] . 'view/include/head.php';
|
|
||||||
include $global['systemRootPath'] . 'view/managerVideos_head.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="<?php echo $global['bodyClass']; ?>">
|
|
||||||
<?php
|
|
||||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
||||||
include $global['systemRootPath'] . 'view/managerVideos_body.php';
|
|
||||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
||||||
?>
|
|
||||||
<script src="<?php echo getCDN(); ?>view/js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Add table
Add a link
Reference in a new issue