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';
|
||||
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">
|
||||
<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) {
|
||||
$_page = new Page(array('Administration'));
|
||||
if (!empty($includeHead) && file_exists($includeHead)) {
|
||||
$_page->setIncludeInHead(array($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>
|
||||
<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';
|
||||
} 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 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 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) {
|
||||
<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";
|
||||
} ?>
|
||||
<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>
|
||||
<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>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
} ?>
|
||||
</div>
|
||||
<?php
|
||||
$panel = 'panel-default';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
include_once $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<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();
|
||||
<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
|
||||
}
|
||||
});
|
||||
});
|
||||
$('.pluginSwitch').change(function (e) {
|
||||
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();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
} 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>
|
||||
<?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>
|
||||
</html>
|
||||
});
|
||||
$('.pluginSwitch').change(function(e) {
|
||||
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 $includeBGAnimation = false;
|
||||
private $includeInHead = array();
|
||||
private $includeInBody = array();
|
||||
private $includeInFooter = array();
|
||||
|
||||
public function __construct($title, $bodyClass = '', $loadBasicCSSAndJS = false)
|
||||
|
@ -92,6 +93,11 @@ class Page
|
|||
$this->includeInHead = $includeInHead;
|
||||
}
|
||||
|
||||
public function setIncludeInBody(array $includeInBody)
|
||||
{
|
||||
$this->includeInBody = $includeInBody;
|
||||
}
|
||||
|
||||
public function setIncludeInFooter(array $includeInFooter)
|
||||
{
|
||||
$this->includeInFooter = $includeInFooter;
|
||||
|
@ -117,7 +123,16 @@ class Page
|
|||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
if (!empty($this->includeInHead)) {
|
||||
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)) {
|
||||
|
@ -157,7 +172,16 @@ class Page
|
|||
}
|
||||
if (!empty($this->includeInFooter)) {
|
||||
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)) {
|
||||
|
@ -181,6 +205,20 @@ class Page
|
|||
$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="_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 '</div>';
|
||||
$this->getFooter();
|
||||
|
@ -207,4 +245,30 @@ class Page
|
|||
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;
|
||||
|
||||
if(!empty($_REQUEST['catName'])){
|
||||
$cat = Category::getCategoryByName($_REQUEST['catName']);
|
||||
$titleArray[] = $cat['name'];
|
||||
}
|
||||
if (!is_array($titleArray)) {
|
||||
$titleArray = [];
|
||||
}
|
||||
|
|
|
@ -222,6 +222,7 @@ function createEmailMessageFromTemplate($message)
|
|||
|
||||
global $global, $config;
|
||||
$text = file_get_contents("{$global['systemRootPath']}view/include/emailTemplate.html");
|
||||
$config = new AVideoConf();
|
||||
$siteTitle = $config->getWebSiteTitle();
|
||||
$logo = "<img src=\"" . getURL($config->getLogo()) . "\" alt=\"{$siteTitle}\"/>";
|
||||
|
||||
|
|
|
@ -7,24 +7,8 @@ if (!User::isAdmin()) {
|
|||
forbiddenPage("You can not do this");
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<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>
|
||||
$_page = new Page(array('VAST'));
|
||||
$_page->setIncludeInHead(array('plugin/AD_Server/index_head.php'));
|
||||
$_page->setIncludeInBody(array('plugin/AD_Server/index_body.php'));
|
||||
$_page->print();
|
||||
?>
|
|
@ -1,28 +1,12 @@
|
|||
<?php
|
||||
global $global, $config;
|
||||
if (!isset($global['systemRootPath'])) {
|
||||
require_once '../../videos/configuration.php';
|
||||
require_once '../../../../videos/configuration.php';
|
||||
}
|
||||
if (!User::isAdmin()) {
|
||||
forbiddenPage("Must be admin");
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<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>
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<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>
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -7,22 +7,6 @@ if (!User::isAdmin()) {
|
|||
forbiddenPage("Must be admin");
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<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>
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -8,22 +8,7 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<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>
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -8,22 +8,8 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<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>
|
||||
$_page = new Page(array('Live Restream'));
|
||||
$_page->setIncludeInHead(array('plugin/Live/view/Live_restreams_logs/index_head.phpp'));
|
||||
$_page->setIncludeInBody(array('plugin/Live/view/Live_restreams_logs/index_body.php'));
|
||||
$_page->print();
|
||||
?>
|
|
@ -8,22 +8,7 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<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>
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<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>
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -7,23 +7,6 @@ if (!User::isAdmin()) {
|
|||
forbiddenPage("You can not do this");
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<!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>
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
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");
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<!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>
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
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");
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<!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>
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<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>
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
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;
|
||||
}
|
||||
|
||||
?>
|
||||
<!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>
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
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");
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<!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>
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
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
|
||||
require_once '../../../videos/configuration.php';
|
||||
AVideoPlugin::loadPlugin("UserNotifications");
|
||||
$_page = new Page(array('UserNotifications'));
|
||||
$_page->loadBasicCSSAndJS();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo $config->getWebSiteTitle(); ?> :: UserNotifications</title>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.css"/>
|
||||
<link href="<?php echo $global['webSiteRootURL']; ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
|
||||
</head>
|
||||
<body class="<?php echo $global['bodyClass']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
?>
|
||||
<div class="container-fluid">
|
||||
<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 class="container-fluid">
|
||||
<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>
|
||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
||||
<script src="<?php echo $global['webSiteRootURL']; ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
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
|
||||
require_once '../../../videos/configuration.php';
|
||||
AVideoPlugin::loadPlugin("VideoTags");
|
||||
$_page = new Page(array('VideoTags'));
|
||||
$_page->loadBasicCSSAndJS();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo $config->getWebSiteTitle(); ?> :: VideoTags</title>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.css"/>
|
||||
<link href="<?php echo $global['webSiteRootURL']; ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
|
||||
</head>
|
||||
<body class="<?php echo $global['bodyClass']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
?>
|
||||
<div class="container-fluid">
|
||||
<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 class="container-fluid">
|
||||
<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>
|
||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
||||
<script src="<?php echo $global['webSiteRootURL']; ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -7,21 +7,8 @@ if (!User::isAdmin()) {
|
|||
forbiddenPage("You can not do this");
|
||||
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;
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<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>
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
|
@ -1,46 +1,30 @@
|
|||
<?php
|
||||
require_once '../../../videos/configuration.php';
|
||||
AVideoPlugin::loadPlugin("VideosStatistics");
|
||||
$_page = new Page(array('VideosStatistics'));
|
||||
$_page->loadBasicCSSAndJS();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo $config->getWebSiteTitle(); ?> :: VideosStatistics</title>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.css"/>
|
||||
<link href="<?php echo $global['webSiteRootURL']; ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
|
||||
</head>
|
||||
<body class="<?php echo $global['bodyClass']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
?>
|
||||
<div class="container-fluid">
|
||||
<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 class="container-fluid">
|
||||
<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>
|
||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
||||
<script src="<?php echo $global['webSiteRootURL']; ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -8,177 +8,162 @@ $global['paymentsTest'] = 1;
|
|||
$myWallet = AVideoPlugin::loadPlugin('YPTWallet');
|
||||
$objWallet = $myWallet->getDataObject();
|
||||
$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;
|
||||
|
||||
|
||||
$_page = new Page(array('Payment tests'));
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<div class="container-fluid">
|
||||
|
||||
<head>
|
||||
<title><?php echo $config->getWebSiteTitle(); ?> :: Show Plans</title>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
?>
|
||||
</head>
|
||||
<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); ?>">
|
||||
|
||||
<body class="<?php echo $global['bodyClass']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
?>
|
||||
<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 class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">Subscription</h3>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">One time payment</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
$myWallet->getAvailablePayments();
|
||||
?>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
$myWallet->getAvailableRecurrentPayments();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">Test Card Numbers for Stripe</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>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 class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">One time payment</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
$myWallet->getAvailablePayments();
|
||||
?>
|
||||
</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 class="col-sm-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">Test Card Numbers for Stripe</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>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 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 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 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>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -13,85 +13,68 @@ if (!empty($paypal)) {
|
|||
$options = _json_decode($obj->addFundsOptions);
|
||||
//unset($_SESSION['addFunds_Success']);
|
||||
//unset($_SESSION['addFunds_Fail']);
|
||||
$_page = new Page(array('Add Funds'));
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo __("Add Funds") . $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';
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo __("Add Funds"); ?></div>
|
||||
<div class="panel-body">
|
||||
<div class="col-sm-6">
|
||||
<?php echo $obj->add_funds_text ?>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo __("Add Funds"); ?></div>
|
||||
<div class="panel-body">
|
||||
<div class="col-sm-6">
|
||||
<?php echo $obj->add_funds_text ?>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<?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>
|
||||
<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
|
||||
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">
|
||||
<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>
|
||||
</select>
|
||||
</div>
|
||||
<?php
|
||||
$plugin->getAvailablePayments();
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -10,144 +10,128 @@ if (!User::isAdmin()) {
|
|||
|
||||
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
|
||||
$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']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
?>
|
||||
<div class="container">
|
||||
|
||||
<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-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>
|
||||
<div class="panel panel-default">
|
||||
<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>
|
||||
|
||||
<div id="userFormModal" 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 __("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">
|
||||
</div>
|
||||
|
||||
</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 -->
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
<div id="userFormModal" 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 __("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">
|
||||
|
||||
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/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);
|
||||
</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 -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#inputUserId').val(row.id);
|
||||
$('#inputUser').val(row.user);
|
||||
$('#inputUserBalance').val(row.balance);
|
||||
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/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();
|
||||
});
|
||||
});
|
||||
|
||||
$('#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;
|
||||
});
|
||||
$('#inputUserId').val(row.id);
|
||||
$('#inputUser').val(row.user);
|
||||
$('#inputUserBalance').val(row.balance);
|
||||
|
||||
$('#userFormModal').modal();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
$('#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;
|
||||
});
|
||||
|
||||
});
|
||||
</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/functions.php';
|
||||
|
||||
if(!User::isLogged()){
|
||||
if (!User::isLogged()) {
|
||||
header("Location: {$global['webSiteRootURL']}");
|
||||
}
|
||||
|
||||
|
@ -12,26 +12,11 @@ $walletDataObject = $plugin->getDataObject();
|
|||
|
||||
$wallet = new Wallet(0);
|
||||
$wallet->setUsers_id(User::getId());
|
||||
$_page = new Page(array('Configuration'));
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo __("Configuration") . $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';
|
||||
?>
|
||||
<br>
|
||||
<div class="container">
|
||||
<?php echo AVideoPlugin::getWalletConfigurationHTML(User::getId(), $wallet, $walletDataObject); ?>
|
||||
</div>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
<div class="container">
|
||||
<?php echo AVideoPlugin::getWalletConfigurationHTML(User::getId(), $wallet, $walletDataObject); ?>
|
||||
</div>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -11,163 +11,149 @@ if (!User::isLogged()) {
|
|||
$users_id = 0;
|
||||
if (!empty($_GET['users_id'])) {
|
||||
$users_id = $_GET['users_id'];
|
||||
}else{
|
||||
} else {
|
||||
$users_id = User::getId();
|
||||
}
|
||||
$_page = new Page(array('History'));
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo __("History") . $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';
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading" style="height: 70px;">
|
||||
<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">
|
||||
<h1><?php echo User::getNameIdentificationById($users_id); ?></h1>
|
||||
</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 class="container">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading" style="height: 70px;">
|
||||
<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">
|
||||
<h1><?php echo User::getNameIdentificationById($users_id); ?></h1>
|
||||
</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>
|
||||
<?php
|
||||
if (AVideoPlugin::isEnabledByName('MonetizeUsers')) {
|
||||
include $global['systemRootPath'] . 'plugin/MonetizeUsers/View/report.php';
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
<?php
|
||||
if(AVideoPlugin::isEnabledByName('MonetizeUsers')){
|
||||
include $global['systemRootPath'] . 'plugin/MonetizeUsers/View/report.php';
|
||||
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
|
||||
}
|
||||
?>
|
||||
} 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
|
||||
}
|
||||
?>
|
||||
}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
|
||||
}
|
||||
?>
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?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");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
$_page->print();
|
||||
?>
|
|
@ -10,112 +10,95 @@ if (!User::isLogged()) {
|
|||
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
|
||||
$obj = $plugin->getDataObject();
|
||||
$options = _json_decode($obj->addFundsOptions);
|
||||
$_page = new Page(array('Add Funds'));
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo __("Add Funds") . $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';
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo __("Add Funds"); ?></div>
|
||||
<div class="panel-body">
|
||||
<div class="col-sm-6">
|
||||
<?php echo $obj->add_funds_text ?>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo __("Add Funds"); ?></div>
|
||||
<div class="panel-body">
|
||||
<div class="col-sm-6">
|
||||
<?php echo $obj->add_funds_text ?>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<?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>
|
||||
<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
|
||||
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">
|
||||
<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>
|
||||
</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>
|
||||
|
||||
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('#manualAddFundsPageButton').click(function () {
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'plugin/YPTWallet/view/manualAddFunds.json.php',
|
||||
type: "POST",
|
||||
data: {
|
||||
value: $('#value').val(),
|
||||
information: $('#information').val(),
|
||||
autoWithdraw: <?php echo empty($autoWithdraw)?0:1; ?>
|
||||
},
|
||||
success: function (response) {
|
||||
modal.hidePleaseWait();
|
||||
if (response.error) {
|
||||
setTimeout(function () {
|
||||
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||
}, 500);
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#manualAddFundsPageButton').click(function() {
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL + 'plugin/YPTWallet/view/manualAddFunds.json.php',
|
||||
type: "POST",
|
||||
data: {
|
||||
value: $('#value').val(),
|
||||
information: $('#information').val(),
|
||||
autoWithdraw: <?php echo empty($autoWithdraw) ? 0 : 1; ?>
|
||||
},
|
||||
success: function(response) {
|
||||
modal.hidePleaseWait();
|
||||
if (response.error) {
|
||||
setTimeout(function() {
|
||||
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||
}, 500);
|
||||
} else {
|
||||
setTimeout(function() {
|
||||
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -10,118 +10,104 @@ if (!User::isLogged()) {
|
|||
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
|
||||
$obj = $plugin->getDataObject();
|
||||
$options = _json_decode($obj->withdrawFundsOptions);
|
||||
$_page = new Page(array('Withdraw Funds'));
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo __("Withdraw Funds") . $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';
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<?php echo __("Withdraw Funds"); ?>
|
||||
<?php
|
||||
if ($obj->enableAutoWithdrawFundsPagePaypal) {
|
||||
?>
|
||||
<label class="label label-success pull-right"><i class="fab fa-paypal"></i> <?php echo __('Automatic Withdraw'); ?></label>
|
||||
<?php
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<?php echo __("Withdraw Funds"); ?>
|
||||
<?php
|
||||
if ($obj->enableAutoWithdrawFundsPagePaypal) {
|
||||
?>
|
||||
<label class="label label-success pull-right"><i class="fab fa-paypal"></i> <?php echo __('Automatic Withdraw'); ?></label>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="col-sm-6">
|
||||
<?php echo $obj->withdraw_funds_text ?>
|
||||
<?php echo AVideoPlugin::getWalletConfigurationHTML(User::getId(), $plugin, $obj); ?>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<?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>
|
||||
<div class="panel-body">
|
||||
<div class="col-sm-6">
|
||||
<?php echo $obj->withdraw_funds_text ?>
|
||||
<?php echo AVideoPlugin::getWalletConfigurationHTML(User::getId(), $plugin, $obj); ?>
|
||||
?>
|
||||
<div class="alert alert-<?php echo $class; ?>">
|
||||
<?php echo $text; ?>
|
||||
</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
|
||||
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">
|
||||
<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>
|
||||
</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>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('#manualWithdrawFundsPageButton').click(function () {
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'plugin/YPTWallet/view/manualWithdrawFunds.json.php',
|
||||
type: "POST",
|
||||
data: {
|
||||
value: $('#value').val(),
|
||||
information: $('#information').val()
|
||||
},
|
||||
success: function (response) {
|
||||
$(".walletBalance").text(response.walletBalance);
|
||||
modal.hidePleaseWait();
|
||||
if (response.error) {
|
||||
setTimeout(function () {
|
||||
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||
}, 500);
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#manualWithdrawFundsPageButton').click(function() {
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL + 'plugin/YPTWallet/view/manualWithdrawFunds.json.php',
|
||||
type: "POST",
|
||||
data: {
|
||||
value: $('#value').val(),
|
||||
information: $('#information').val()
|
||||
},
|
||||
success: function(response) {
|
||||
$(".walletBalance").text(response.walletBalance);
|
||||
modal.hidePleaseWait();
|
||||
if (response.error) {
|
||||
setTimeout(function() {
|
||||
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||
}, 500);
|
||||
} else {
|
||||
setTimeout(function() {
|
||||
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -7,120 +7,106 @@ if (!User::isAdmin()) {
|
|||
forbiddenPage("You can not do this");
|
||||
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']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<?php
|
||||
echo __("Pending Requests");
|
||||
?>
|
||||
</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="user" data-width="150px"><?php echo __("User"); ?></th>
|
||||
<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="150px"><?php echo __("Status"); ?></th>
|
||||
<th data-column-id="created" data-order="desc" data-formatter="created" data-width="150px"><?php echo __("Date"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
$_page = new Page(array('Pending Requests'));
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<?php
|
||||
echo __("Pending Requests");
|
||||
?>
|
||||
</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="user" data-width="150px"><?php echo __("User"); ?></th>
|
||||
<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="150px"><?php echo __("Status"); ?></th>
|
||||
<th data-column-id="created" data-order="desc" data-formatter="created" data-width="150px"><?php echo __("Date"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
<?php
|
||||
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/pendingRequests.json.php",
|
||||
formatters: {
|
||||
"status": function (column, row) {
|
||||
var status = "";
|
||||
status = "<div class=\"btn-group\"><button class='btn btn-success btn-xs command-status-success'>Confirm</button>";
|
||||
status += "<button class='btn btn-danger btn-xs command-status-canceled'>Cancel</button><div>";
|
||||
return status;
|
||||
},
|
||||
"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>';
|
||||
}
|
||||
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/pendingRequests.json.php",
|
||||
formatters: {
|
||||
"status": function(column, row) {
|
||||
var status = "";
|
||||
status = "<div class=\"btn-group\"><button class='btn btn-success btn-xs command-status-success'>Confirm</button>";
|
||||
status += "<button class='btn btn-danger btn-xs command-status-canceled'>Cancel</button><div>";
|
||||
return status;
|
||||
},
|
||||
"description": function(column, row) {
|
||||
if (row.information) {
|
||||
return row.information;
|
||||
} else {
|
||||
return row.description;
|
||||
}
|
||||
}).on("loaded.rs.jquery.bootgrid", function () {
|
||||
|
||||
/* 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-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");
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
"created": function(column, row) {
|
||||
return '<span class="pendingTimers">' + row.created + '</span>';
|
||||
}
|
||||
}
|
||||
}).on("loaded.rs.jquery.bootgrid", function() {
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
/* 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-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;
|
||||
global $global, $config;
|
||||
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/category.php';
|
||||
|
||||
if(AVideoPlugin::isEnabledByName('PlayLists')){
|
||||
if (AVideoPlugin::isEnabledByName('PlayLists')) {
|
||||
PlayLists::loadScripts();
|
||||
}
|
||||
$obj = AVideoPlugin::getObjectData("YouPHPFlix2");
|
||||
$_page = new Page(array(''));
|
||||
$_page->setIncludeInHead(array('plugin/YouPHPFlix2/view/modeFlixHead.php'));
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
var webSiteRootURL = '<?php echo $global['webSiteRootURL']; ?>';
|
||||
</script>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixHead.php';
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
?>
|
||||
<div class="container-fluid nopadding flickity-area" id="mainContainer" style="display:none;">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixBody.php';
|
||||
?>
|
||||
</div>
|
||||
|
||||
<title><?php if(!empty($_REQUEST['catName'])){echo $_REQUEST['catName'].' - ';}; echo $config->getWebSiteTitle(); ?></title>
|
||||
</head>
|
||||
<body class="<?php echo $global['bodyClass']; ?>" style="overflow-x: hidden;">
|
||||
<?php include $global['systemRootPath'] . 'view/include/navbar.php'; ?>
|
||||
|
||||
<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>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixFooter.php';
|
||||
?>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -4,21 +4,8 @@ global $global, $config;
|
|||
if (!isset($global['systemRootPath'])) {
|
||||
require_once '../videos/configuration.php';
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<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>
|
||||
$_page = new Page(array('Dashboard'));
|
||||
$_page->setIncludeInHead(array('view/charts_head.php'));
|
||||
include $global['systemRootPath'] . 'view/charts_body.php';
|
||||
$_page->print();
|
||||
?>
|
|
@ -41,10 +41,6 @@
|
|||
<?php echo AVideoPlugin::getChartContent(); ?>
|
||||
</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">
|
||||
$(document).ready(function () {
|
||||
<?php if (!empty($_GET['jump'])) { ?>
|
||||
|
|
|
@ -11,30 +11,8 @@ if (!User::isAdmin()) {
|
|||
forbiddenPage('');
|
||||
}
|
||||
|
||||
//var_dump($config);exit;
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<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>
|
||||
$_page = new Page(array('Configuration'));
|
||||
$_page->setIncludeInHead(array('view/configurations_head.php'));
|
||||
include $global['systemRootPath'] . 'view/configurations_body.php';
|
||||
$_page->print();
|
||||
?>
|
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"));
|
||||
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"));
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<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>
|
||||
$_page = new Page(array('Plugins'));
|
||||
$_page->setIncludeInHead(array('view/managerPlugins_head.php'));
|
||||
include $global['systemRootPath'] . 'view/managerPlugins_body.php';
|
||||
$_page->print();
|
||||
?>
|
|
@ -8,27 +8,8 @@ if (!Permissions::canAdminUsers()) {
|
|||
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage users"));
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<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>
|
||||
$_page = new Page(array('Users'));
|
||||
$_page->setIncludeInHead(array('view/managerUsers_head.php'));
|
||||
include $global['systemRootPath'] . 'view/managerUsers_body.php';
|
||||
$_page->print();
|
||||
?>
|
|
@ -7,29 +7,8 @@ require_once $global['systemRootPath'] . 'objects/user.php';
|
|||
if (!Permissions::canAdminUserGroups()) {
|
||||
forbiddenPage(__("You can not manage do this"));
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<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>
|
||||
$_page = new Page(array('User Groups'));
|
||||
$_page->setIncludeInHead(array('view/managerUsersGroups_head.php'));
|
||||
include $global['systemRootPath'] . 'view/managerUsersGroups_body.php';
|
||||
$_page->print();
|
||||
?>
|
|
@ -1,71 +1,72 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="btn-group" >
|
||||
<button type="button" class="btn btn-default" id="addUserGroupsBtn">
|
||||
<i class="fa-solid fa-plus"></i></span> <?php echo __("New User Groups"); ?>
|
||||
</button>
|
||||
<a href="<?php echo $global['webSiteRootURL']; ?>mvideos" class="btn btn-success">
|
||||
<span class="fa fa-film" aria-hidden="true"></span> <?php echo __("Videos"); ?>
|
||||
</a>
|
||||
<a href="<?php echo $global['webSiteRootURL']; ?>users" class="btn btn-primary">
|
||||
<span class="fa fa-user" aria-hidden="true"></span> <?php echo __("Users"); ?>
|
||||
</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 class="container-fluid">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default" id="addUserGroupsBtn">
|
||||
<i class="fa-solid fa-plus"></i></span> <?php echo __("New User Groups"); ?>
|
||||
</button>
|
||||
<a href="<?php echo $global['webSiteRootURL']; ?>mvideos" class="btn btn-success">
|
||||
<span class="fa fa-film" aria-hidden="true"></span> <?php echo __("Videos"); ?>
|
||||
</a>
|
||||
<a href="<?php echo $global['webSiteRootURL']; ?>users" class="btn btn-primary">
|
||||
<span class="fa fa-user" aria-hidden="true"></span> <?php echo __("Users"); ?>
|
||||
</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 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 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 Groups Form"); ?></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-compact" id="updateUserGroupsForm" onsubmit="">
|
||||
<input type="hidden" id="inputUserGroupsId" name="id" >
|
||||
<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>
|
||||
<div id="groupFormModal" 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 Groups Form"); ?></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-compact" id="updateUserGroupsForm" onsubmit="">
|
||||
<input type="hidden" id="inputUserGroupsId" name="id">
|
||||
<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>
|
||||
|
||||
<?php
|
||||
if (User::isAdmin()) {
|
||||
<?php
|
||||
if (User::isAdmin()) {
|
||||
?>
|
||||
<hr>
|
||||
<hr>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<?php echo __("Group Permissions"); ?>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
echo Permissions::getForm(); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</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="saveUserGroupsBtn"><?php echo __("Save changes"); ?></button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<?php echo __("Group Permissions"); ?>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
echo Permissions::getForm(); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</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="saveUserGroupsBtn"><?php echo __("Save changes"); ?></button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
</div><!--/.container-->
|
||||
<div id="pluginsPermissionModal" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
|
@ -74,22 +75,22 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
<script>
|
||||
function pluginPermissionsBtn(plugins_id) {
|
||||
modal.showPleaseWait();
|
||||
$('#groupFormModal').modal('hide');
|
||||
$("#pluginsPermissionModalContent").html('');
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'plugin/Permissions/getPermissionsFromPlugin.html.php?plugins_id=' + plugins_id,
|
||||
success: function (response) {
|
||||
url: webSiteRootURL + 'plugin/Permissions/getPermissionsFromPlugin.html.php?plugins_id=' + plugins_id,
|
||||
success: function(response) {
|
||||
modal.hidePleaseWait();
|
||||
$("#pluginsPermissionModalContent").html(response);
|
||||
$('#pluginsPermissionModal').modal();
|
||||
}
|
||||
});
|
||||
}
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function() {
|
||||
var grid = $("#grid").bootgrid({
|
||||
labels: {
|
||||
noResults: "<?php echo __("No results found!"); ?>",
|
||||
|
@ -102,16 +103,15 @@
|
|||
ajax: true,
|
||||
url: "<?php echo $global['webSiteRootURL'] . "objects/usersGroups.json.php"; ?>",
|
||||
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 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;
|
||||
}
|
||||
}
|
||||
}).on("loaded.rs.jquery.bootgrid", function () {
|
||||
}).on("loaded.rs.jquery.bootgrid", function() {
|
||||
/* 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 = $("#grid").bootgrid("getCurrentRows")[row_index];
|
||||
console.log(row);
|
||||
|
@ -122,19 +122,19 @@
|
|||
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'plugin/Permissions/getPermissions.json.php?users_groups_id=' + row.id,
|
||||
success: function (response) {
|
||||
url: webSiteRootURL + 'plugin/Permissions/getPermissions.json.php?users_groups_id=' + row.id,
|
||||
success: function(response) {
|
||||
console.log(response);
|
||||
$(".permissions").prop("checked", false);
|
||||
for (var key in response) {
|
||||
if(typeof key !== 'string'){
|
||||
if (typeof key !== 'string') {
|
||||
continue;
|
||||
}
|
||||
for (var subkey in response[key]) {
|
||||
if(typeof subkey !== 'string' || isNaN(subkey)){
|
||||
if (typeof subkey !== 'string' || isNaN(subkey)) {
|
||||
continue;
|
||||
}
|
||||
var selector = "."+key+"[value=\""+response[key][subkey]+"\"]";
|
||||
var selector = "." + key + "[value=\"" + response[key][subkey] + "\"]";
|
||||
console.log(selector, $(selector));
|
||||
$(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 = $("#grid").bootgrid("getCurrentRows")[row_index];
|
||||
|
||||
swal({
|
||||
title: "<?php echo __("Are you sure?"); ?>",
|
||||
text: "<?php echo __("You will not be able to recover this action!"); ?>",
|
||||
icon: "warning",
|
||||
buttons: true,
|
||||
dangerMode: true,
|
||||
})
|
||||
.then(function (willDelete) {
|
||||
if (willDelete) {
|
||||
title: "<?php echo __("Are you sure?"); ?>",
|
||||
text: "<?php echo __("You will not be able to recover this action!"); ?>",
|
||||
icon: "warning",
|
||||
buttons: true,
|
||||
dangerMode: true,
|
||||
})
|
||||
.then(function(willDelete) {
|
||||
if (willDelete) {
|
||||
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'objects/userGroupsDelete.json.php',
|
||||
data: {"id": row.id},
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
if (response.status === "1") {
|
||||
$("#grid").bootgrid("reload");
|
||||
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your group has been deleted!"); ?>", "success");
|
||||
} else {
|
||||
avideoAlert("<?php echo __("Sorry!"); ?>", "<?php echo __("Your group has NOT been deleted!"); ?>", "error");
|
||||
}
|
||||
modal.hidePleaseWait();
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL + 'objects/userGroupsDelete.json.php',
|
||||
data: {
|
||||
"id": row.id
|
||||
},
|
||||
type: 'post',
|
||||
success: function(response) {
|
||||
if (response.status === "1") {
|
||||
$("#grid").bootgrid("reload");
|
||||
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your group has been deleted!"); ?>", "success");
|
||||
} else {
|
||||
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('');
|
||||
$('#inputName').val('');
|
||||
$('#inputCleanName').val('');
|
||||
|
@ -189,18 +191,18 @@
|
|||
|
||||
});
|
||||
|
||||
$('#saveUserGroupsBtn').click(function (evt) {
|
||||
$('#saveUserGroupsBtn').click(function(evt) {
|
||||
$('#updateUserGroupsForm').submit();
|
||||
});
|
||||
|
||||
$('#updateUserGroupsForm').submit(function (evt) {
|
||||
$('#updateUserGroupsForm').submit(function(evt) {
|
||||
evt.preventDefault();
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: '<?php echo $global['webSiteRootURL'] . "objects/userGroupsAddNew.json.php"; ?>',
|
||||
data: $(this).serialize(),
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
if (response.status) {
|
||||
$('#groupFormModal').modal('hide');
|
||||
$("#grid").bootgrid("reload");
|
||||
|
@ -214,5 +216,4 @@
|
|||
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" />
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading tabbable-line">
|
||||
<div class="btn-group pull-right">
|
||||
<button type="button" class="btn btn-default" id="addUserBtn">
|
||||
<i class="fa-solid fa-plus"></i></span> <?php echo __("New User"); ?>
|
||||
</button>
|
||||
<a href="<?php echo $global['webSiteRootURL']; ?>usersGroups" class="btn btn-warning">
|
||||
<span class="fa fa-users"></span> <?php echo __("User Groups"); ?>
|
||||
</a>
|
||||
<a href="<?php echo $global['webSiteRootURL']; ?>mvideos" class="btn btn-success">
|
||||
<span class="fa fa-film"></span> <?php echo __("Videos"); ?>
|
||||
</a>
|
||||
<a href="<?php echo $global['webSiteRootURL']; ?>objects/getAllEmails.csv.php" class="btn btn-primary">
|
||||
<i class="fas fa-file-csv"></i> <?php echo __("CSV File"); ?>
|
||||
</a>
|
||||
<div class="btn btn-primary" data-toggle="tooltip" title="<?php echo __('Online users'); ?>">
|
||||
<i class="fas fa-users"></i> <span class="total_users_online">0</span>
|
||||
</div>
|
||||
</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 class="container-fluid">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading tabbable-line">
|
||||
<div class="btn-group pull-right">
|
||||
<button type="button" class="btn btn-default" id="addUserBtn">
|
||||
<i class="fa-solid fa-plus"></i></span> <?php echo __("New User"); ?>
|
||||
</button>
|
||||
<a href="<?php echo $global['webSiteRootURL']; ?>usersGroups" class="btn btn-warning">
|
||||
<span class="fa fa-users"></span> <?php echo __("User Groups"); ?>
|
||||
</a>
|
||||
<a href="<?php echo $global['webSiteRootURL']; ?>mvideos" class="btn btn-success">
|
||||
<span class="fa fa-film"></span> <?php echo __("Videos"); ?>
|
||||
</a>
|
||||
<a href="<?php echo $global['webSiteRootURL']; ?>objects/getAllEmails.csv.php" class="btn btn-primary">
|
||||
<i class="fas fa-file-csv"></i> <?php echo __("CSV File"); ?>
|
||||
</a>
|
||||
<div class="btn btn-primary" data-toggle="tooltip" title="<?php echo __('Online users'); ?>">
|
||||
<i class="fas fa-users"></i> <span class="total_users_online">0</span>
|
||||
</div>
|
||||
</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>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="tab-content">
|
||||
|
||||
|
||||
<div id="userFormModal" 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 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
|
||||
foreach ($users_tabs as $value) {
|
||||
?>
|
||||
<div id="<?php echo $value['selector']; ?>Tab" class="tab-pane fade in <?php echo $value['active']; ?>">
|
||||
<?php
|
||||
print AVideoPlugin::getUserOptions();
|
||||
if (!empty($value['userGroupID'])) {
|
||||
?>
|
||||
</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 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>
|
||||
</li>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</form>
|
||||
<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>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</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>
|
||||
</div>
|
||||
|
||||
|
||||
<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 id="userFormModal" 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 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
|
||||
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 class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("Last 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="last_name" class="form-control" readonly>
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("Last 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="last_name" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("Address"); ?></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="address" class="form-control" readonly>
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("Address"); ?></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="address" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("Zip Code"); ?></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="zip_code" class="form-control" readonly>
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("Zip Code"); ?></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="zip_code" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("Country"); ?></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="country" class="form-control" readonly>
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("Country"); ?></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="country" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("Region"); ?></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="region" class="form-control" readonly>
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("Region"); ?></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="region" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("City"); ?></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="city" class="form-control" readonly>
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("City"); ?></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="city" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("Document"); ?></label>
|
||||
<div class="col-md-8 inputGroupContainer">
|
||||
<div class="input-group">
|
||||
<img src="" class="img img-responsive img-thumbnail" id="documentImage" />
|
||||
<div class="row">
|
||||
<label class="col-md-4 control-label"><?php echo __("Document"); ?></label>
|
||||
<div class="col-md-8 inputGroupContainer">
|
||||
<div class="input-group">
|
||||
<img src="" class="img img-responsive img-thumbnail" id="documentImage" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
</div>
|
||||
<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>
|
||||
|
||||
|
@ -401,7 +402,7 @@ foreach ($userGroups as $value) {
|
|||
selectedUserGroups.push($(this).val());
|
||||
});
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'objects/userAddNew.json.php',
|
||||
url: webSiteRootURL + 'objects/userAddNew.json.php',
|
||||
data: {
|
||||
<?php
|
||||
print AVideoPlugin::updateUserFormJS();
|
||||
|
|
|
@ -19,24 +19,9 @@ if (!empty($_GET['iframe'])) {
|
|||
$_GET['noNavbar'] = 1;
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo __("Audio and Video") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
||||
<?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>
|
||||
$_page = new Page(array('Videos'));
|
||||
$_page->loadBasicCSSAndJS();
|
||||
$_page->setIncludeInHead(array('view/managerVideos_head.php'));
|
||||
include $global['systemRootPath'] . 'view/managerVideos_body.php';
|
||||
$_page->print();
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue