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
102
admin/index.php
102
admin/index.php
|
@ -189,55 +189,41 @@ switch ($_GET['page']) {
|
|||
$includeBody = $global['systemRootPath'] . 'view/charts_body.php';
|
||||
break;
|
||||
}
|
||||
|
||||
$_page = new Page(array('Administration'));
|
||||
if (!empty($includeHead) && file_exists($includeHead)) {
|
||||
$_page->setIncludeInHead(array($includeHead));
|
||||
}
|
||||
|
||||
?>
|
||||
<!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) {
|
||||
<style>
|
||||
@media (max-width: 767px) {
|
||||
.affix {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
.leftMenu .panel-body {
|
||||
}
|
||||
.leftMenu .panel-body {
|
||||
padding: 0px;
|
||||
}
|
||||
.adminLeftMenu.panel-default i, .adminLeftMenu.panel-default{
|
||||
}
|
||||
.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{
|
||||
}
|
||||
.adminLeftMenu.panel-default i{
|
||||
opacity: 0.2;
|
||||
}
|
||||
.adminLeftMenu:hover.panel-default i{
|
||||
}
|
||||
.adminLeftMenu:hover.panel-default i{
|
||||
opacity: 1;
|
||||
}
|
||||
.adminLeftMenu.panel-default{
|
||||
}
|
||||
.adminLeftMenu.panel-default{
|
||||
opacity: 0.6;
|
||||
}
|
||||
.adminLeftMenu:hover.panel-default{
|
||||
}
|
||||
.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">
|
||||
}
|
||||
</style>
|
||||
<div class="container-fluid">
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class=" col-lg-2 col-md-3 col-sm-3 fixed affix leftMenu">
|
||||
|
@ -265,7 +251,7 @@ switch ($_GET['page']) {
|
|||
<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; ?> >
|
||||
<a <?php echo $href; ?>>
|
||||
<i class="<?php echo $value->icon; ?> "></i> <?php echo $value->title; ?>
|
||||
</a>
|
||||
</h4>
|
||||
|
@ -345,41 +331,39 @@ switch ($_GET['page']) {
|
|||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
include_once $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script>
|
||||
|
||||
$(document).ready(function () {
|
||||
$('.adminOptionsForm').submit(function (e) {
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('.adminOptionsForm').submit(function(e) {
|
||||
e.preventDefault();
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'admin/save.json.php',
|
||||
url: webSiteRootURL + 'admin/save.json.php',
|
||||
data: $(this).serialize(),
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
modal.hidePleaseWait();
|
||||
}
|
||||
});
|
||||
});
|
||||
$('.pluginSwitch').change(function (e) {
|
||||
$('.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")},
|
||||
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) {
|
||||
success: function(response) {
|
||||
modal.hidePleaseWait();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</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;
|
||||
}
|
||||
|
||||
$_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();
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -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(); ?> :: CustomizeUser</title>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_head.php';
|
||||
?>
|
||||
</head>
|
||||
<body class="<?php echo $global['bodyClass']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_body.php';
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -7,22 +7,6 @@ if (!User::isAdmin()) {
|
|||
forbiddenPage("Must be admin");
|
||||
}
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -8,22 +8,7 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -8,22 +8,8 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$_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();
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -8,22 +8,7 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -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 __("Live") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_head.php';
|
||||
?>
|
||||
</head>
|
||||
<body class="<?php echo $global['bodyClass']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_body.php';
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -7,23 +7,6 @@ if (!User::isAdmin()) {
|
|||
forbiddenPage("You can not do this");
|
||||
exit;
|
||||
}
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo __("Login Control") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
include $global['systemRootPath'] . 'plugin/LoginControl/View/{$classname}/index_head.php';
|
||||
?>
|
||||
</head>
|
||||
<body class="<?php echo $global['bodyClass']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
include $global['systemRootPath'] . 'plugin/LoginControl/View/{$classname}/index_body.php';
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$_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;
|
||||
}
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo __("Meet") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_head.php';
|
||||
?>
|
||||
</head>
|
||||
<body class="<?php echo $global['bodyClass']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_body.php';
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$_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;
|
||||
}
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo $config->getWebSiteTitle(); ?> :: PayPalYPT</title>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
include $global['systemRootPath'] . 'plugin/PayPalYPT/View/{$classname}/index_head.php';
|
||||
?>
|
||||
</head>
|
||||
<body class="<?php echo $global['bodyClass']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
include $global['systemRootPath'] . 'plugin/PayPalYPT/View/{$classname}/index_body.php';
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo $config->getWebSiteTitle(); ?> :: Scheduler</title>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_head.php';
|
||||
?>
|
||||
</head>
|
||||
<body class="<?php echo $global['bodyClass']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_body.php';
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$_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;
|
||||
}
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo getLanguage(); ?>">
|
||||
<head>
|
||||
<title><?php echo $config->getWebSiteTitle(); ?> :: Scheduler</title>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/head.php';
|
||||
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_head.php';
|
||||
?>
|
||||
</head>
|
||||
<body class="<?php echo $global['bodyClass']; ?>">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/navbar.php';
|
||||
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_body.php';
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -8,22 +8,6 @@ if (!User::isAdmin()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$_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,22 +1,10 @@
|
|||
<?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="container-fluid">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo __('UserNotifications') ?>
|
||||
<div class="pull-right">
|
||||
|
@ -36,11 +24,7 @@ AVideoPlugin::loadPlugin("UserNotifications");
|
|||
</div>
|
||||
</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>
|
||||
<?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,22 +1,10 @@
|
|||
<?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="container-fluid">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo __('VideoTags') ?>
|
||||
<div class="pull-right">
|
||||
|
@ -36,11 +24,7 @@ AVideoPlugin::loadPlugin("VideoTags");
|
|||
</div>
|
||||
</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>
|
||||
<?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;
|
||||
}
|
||||
|
||||
$_page = new Page(array(''));
|
||||
$_page->printEditorIndexFromFile(__FILE__);
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -1,22 +1,10 @@
|
|||
<?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="container-fluid">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo __('VideosStatistics') ?>
|
||||
<div class="pull-right">
|
||||
|
@ -36,11 +24,7 @@ AVideoPlugin::loadPlugin("VideosStatistics");
|
|||
</div>
|
||||
</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>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -8,25 +8,12 @@ $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(); ?>">
|
||||
|
||||
<head>
|
||||
<title><?php echo $config->getWebSiteTitle(); ?> :: Show Plans</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-fluid">
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="panel panel-default" id="plans">
|
||||
<div class="panel-body">
|
||||
|
@ -176,9 +163,7 @@ $_GET['plans_id'] = -1;
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</div>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -13,21 +13,9 @@ 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="container">
|
||||
<div class="row">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo __("Add Funds"); ?></div>
|
||||
|
@ -62,7 +50,7 @@ $options = _json_decode($obj->addFundsOptions);
|
|||
?>
|
||||
<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" >
|
||||
<select class="form-control" id="value">
|
||||
<?php
|
||||
foreach ($options as $value) {
|
||||
?>
|
||||
|
@ -81,17 +69,12 @@ $options = _json_decode($obj->addFundsOptions);
|
|||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</script>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -10,22 +10,10 @@ 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>
|
||||
|
@ -36,8 +24,8 @@ $obj = $plugin->getDataObject();
|
|||
<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="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>
|
||||
|
@ -45,9 +33,9 @@ $obj = $plugin->getDataObject();
|
|||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="userFormModal" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div id="userFormModal" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
|
@ -56,7 +44,7 @@ $obj = $plugin->getDataObject();
|
|||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-compact" id="updateUserForm" onsubmit="">
|
||||
<input type="hidden" id="inputUserId" >
|
||||
<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>
|
||||
|
@ -70,12 +58,9 @@ $obj = $plugin->getDataObject();
|
|||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
</div><!-- /.modal -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
var grid = $("#grid").bootgrid({
|
||||
labels: {
|
||||
|
@ -89,22 +74,21 @@ $obj = $plugin->getDataObject();
|
|||
ajax: true,
|
||||
url: "<?php echo $global['webSiteRootURL'] . "plugin/YPTWallet/view/users.json.php"; ?>",
|
||||
formatters: {
|
||||
"commands": function (column, row) {
|
||||
"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) {
|
||||
"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 ()
|
||||
{
|
||||
}).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);
|
||||
|
@ -117,22 +101,22 @@ $obj = $plugin->getDataObject();
|
|||
});
|
||||
});
|
||||
|
||||
$('#saveUserBtn').click(function (evt) {
|
||||
$('#saveUserBtn').click(function(evt) {
|
||||
$('#updateUserForm').submit();
|
||||
});
|
||||
|
||||
$('#updateUserForm').submit(function (evt) {
|
||||
$('#updateUserForm').submit(function(evt) {
|
||||
evt.preventDefault();
|
||||
modal.showPleaseWait();
|
||||
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'plugin/YPTWallet/view/saveBalance.php',
|
||||
url: webSiteRootURL + 'plugin/YPTWallet/view/saveBalance.php',
|
||||
data: {
|
||||
"users_id": $('#inputUserId').val(),
|
||||
"balance": $('#inputUserBalance').val()
|
||||
},
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
if (!response.error) {
|
||||
$(".walletBalance").text(response.walletBalance);
|
||||
$('#userFormModal').modal('hide');
|
||||
|
@ -147,7 +131,7 @@ $obj = $plugin->getDataObject();
|
|||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</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">
|
||||
<div class="container">
|
||||
<?php echo AVideoPlugin::getWalletConfigurationHTML(User::getId(), $wallet, $walletDataObject); ?>
|
||||
</div>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
</div>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -11,24 +11,12 @@ 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="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">
|
||||
|
@ -40,7 +28,7 @@ if (!empty($_GET['users_id'])) {
|
|||
<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="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>
|
||||
|
@ -49,17 +37,14 @@ if (!empty($_GET['users_id'])) {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if(AVideoPlugin::isEnabledByName('MonetizeUsers')){
|
||||
</div>
|
||||
<?php
|
||||
if (AVideoPlugin::isEnabledByName('MonetizeUsers')) {
|
||||
include $global['systemRootPath'] . 'plugin/MonetizeUsers/View/report.php';
|
||||
}
|
||||
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
var grid = $("#grid").bootgrid({
|
||||
labels: {
|
||||
|
@ -73,14 +58,14 @@ if (!empty($_GET['users_id'])) {
|
|||
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){
|
||||
"description": function(column, row) {
|
||||
if (row.information) {
|
||||
return row.information;
|
||||
}else{
|
||||
} else {
|
||||
return row.description;
|
||||
}
|
||||
},
|
||||
"status": function (column, row) {
|
||||
"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>";
|
||||
|
@ -89,8 +74,8 @@ if (!empty($_GET['users_id'])) {
|
|||
} else if (row.status == 'canceled') {
|
||||
status = "<span class='label label-danger'>Canceled</span>";
|
||||
}
|
||||
<?php
|
||||
if (User::isAdmin()) {
|
||||
<?php
|
||||
if (User::isAdmin()) {
|
||||
?>
|
||||
|
||||
status += "<br><br><div class=\"btn-group\"><button class='btn btn-default btn-xs command-status-success'>Success</button>";
|
||||
|
@ -98,12 +83,12 @@ if (User::isAdmin()) {
|
|||
status += "<button class='btn btn-default btn-xs command-status-canceled'>Canceled</button><div>";
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
}else{
|
||||
}
|
||||
?>
|
||||
} else {
|
||||
if (row.status == 'success') {
|
||||
status = "<span class='label label-success'>Success</span>";
|
||||
}else if (row.status == 'pending') {
|
||||
} 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>";
|
||||
|
@ -112,50 +97,51 @@ if (User::isAdmin()) {
|
|||
return status;
|
||||
}
|
||||
}
|
||||
}).on("loaded.rs.jquery.bootgrid", function () {
|
||||
<?php
|
||||
if (User::isAdmin()) {
|
||||
}).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) {
|
||||
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) {
|
||||
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) {
|
||||
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()) {
|
||||
}
|
||||
?>
|
||||
});
|
||||
});
|
||||
<?php
|
||||
if (User::isAdmin()) {
|
||||
?>
|
||||
|
||||
function setStatus(status, wallet_log_id) {
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'plugin/YPTWallet/view/changeLogStatus.json.php',
|
||||
url: webSiteRootURL + 'plugin/YPTWallet/view/changeLogStatus.json.php',
|
||||
type: "POST",
|
||||
data: {
|
||||
status: status,
|
||||
wallet_log_id: wallet_log_id
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
$(".walletBalance").text(response.walletBalance);
|
||||
modal.hidePleaseWait();
|
||||
if (response.error) {
|
||||
setTimeout(function () {
|
||||
setTimeout(function() {
|
||||
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||
}, 500);
|
||||
} else {
|
||||
|
@ -165,9 +151,9 @@ if (User::isAdmin()) {
|
|||
});
|
||||
}
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</script>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -10,21 +10,9 @@ 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="container">
|
||||
<div class="row">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo __("Add Funds"); ?></div>
|
||||
|
@ -59,7 +47,7 @@ $options = _json_decode($obj->addFundsOptions);
|
|||
?>
|
||||
<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" >
|
||||
<select class="form-control" id="value">
|
||||
<?php
|
||||
foreach ($options as $value) {
|
||||
?>
|
||||
|
@ -82,32 +70,27 @@ $options = _json_decode($obj->addFundsOptions);
|
|||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('#manualAddFundsPageButton').click(function () {
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#manualAddFundsPageButton').click(function() {
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'plugin/YPTWallet/view/manualAddFunds.json.php',
|
||||
url: webSiteRootURL + 'plugin/YPTWallet/view/manualAddFunds.json.php',
|
||||
type: "POST",
|
||||
data: {
|
||||
value: $('#value').val(),
|
||||
information: $('#information').val(),
|
||||
autoWithdraw: <?php echo empty($autoWithdraw)?0:1; ?>
|
||||
autoWithdraw: <?php echo empty($autoWithdraw) ? 0 : 1; ?>
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
modal.hidePleaseWait();
|
||||
if (response.error) {
|
||||
setTimeout(function () {
|
||||
setTimeout(function() {
|
||||
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||
}, 500);
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
setTimeout(function() {
|
||||
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
||||
}, 500);
|
||||
}
|
||||
|
@ -115,7 +98,7 @@ $options = _json_decode($obj->addFundsOptions);
|
|||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</script>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -10,20 +10,9 @@ 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="container">
|
||||
<div class="row">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
|
@ -68,7 +57,7 @@ $options = _json_decode($obj->withdrawFundsOptions);
|
|||
?>
|
||||
<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" >
|
||||
<select class="form-control" id="value">
|
||||
<?php
|
||||
foreach ($options as $value) {
|
||||
?>
|
||||
|
@ -90,30 +79,27 @@ $options = _json_decode($obj->withdrawFundsOptions);
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('#manualWithdrawFundsPageButton').click(function () {
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#manualWithdrawFundsPageButton').click(function() {
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'plugin/YPTWallet/view/manualWithdrawFunds.json.php',
|
||||
url: webSiteRootURL + 'plugin/YPTWallet/view/manualWithdrawFunds.json.php',
|
||||
type: "POST",
|
||||
data: {
|
||||
value: $('#value').val(),
|
||||
information: $('#information').val()
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
$(".walletBalance").text(response.walletBalance);
|
||||
modal.hidePleaseWait();
|
||||
if (response.error) {
|
||||
setTimeout(function () {
|
||||
setTimeout(function() {
|
||||
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||
}, 500);
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
setTimeout(function() {
|
||||
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
|
||||
}, 500);
|
||||
}
|
||||
|
@ -121,7 +107,7 @@ $options = _json_decode($obj->withdrawFundsOptions);
|
|||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</script>
|
||||
<?php
|
||||
$_page->print();
|
||||
?>
|
|
@ -7,21 +7,10 @@ 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">
|
||||
$_page = new Page(array('Pending Requests'));
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<?php
|
||||
|
@ -35,7 +24,7 @@ if (!User::isAdmin()) {
|
|||
<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="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>
|
||||
|
@ -44,13 +33,9 @@ if (!User::isAdmin()) {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'view/include/footer.php';
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
var grid = $("#grid").bootgrid({
|
||||
labels: {
|
||||
|
@ -64,33 +49,33 @@ if (!User::isAdmin()) {
|
|||
ajax: true,
|
||||
url: "<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/pendingRequests.json.php",
|
||||
formatters: {
|
||||
"status": function (column, row) {
|
||||
"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){
|
||||
"description": function(column, row) {
|
||||
if (row.information) {
|
||||
return row.information;
|
||||
}else{
|
||||
} else {
|
||||
return row.description;
|
||||
}
|
||||
},
|
||||
"created": function (column, row) {
|
||||
return '<span class="pendingTimers">'+row.created+'</span>';
|
||||
"created": function(column, row) {
|
||||
return '<span class="pendingTimers">' + row.created + '</span>';
|
||||
}
|
||||
}
|
||||
}).on("loaded.rs.jquery.bootgrid", function () {
|
||||
}).on("loaded.rs.jquery.bootgrid", function() {
|
||||
|
||||
/* Executes after data is loaded and rendered */
|
||||
grid.find(".command-status-success").on("click", function (e) {
|
||||
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) {
|
||||
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);
|
||||
|
@ -98,20 +83,21 @@ if (!User::isAdmin()) {
|
|||
createTimer('.pendingTimers');
|
||||
});
|
||||
});
|
||||
|
||||
function setStatus(status, wallet_log_id) {
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'plugin/YPTWallet/view/changeLogStatus.json.php',
|
||||
url: webSiteRootURL + 'plugin/YPTWallet/view/changeLogStatus.json.php',
|
||||
type: "POST",
|
||||
data: {
|
||||
status: status,
|
||||
wallet_log_id: wallet_log_id
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
$(".walletBalance").text(response.walletBalance);
|
||||
modal.hidePleaseWait();
|
||||
if (response.error) {
|
||||
setTimeout(function () {
|
||||
setTimeout(function() {
|
||||
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
|
||||
}, 500);
|
||||
} else {
|
||||
|
@ -120,7 +106,7 @@ if (!User::isAdmin()) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</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';
|
||||
?>
|
||||
|
||||
<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;">
|
||||
<div class="container-fluid nopadding flickity-area" id="mainContainer" style="display:none;">
|
||||
<?php
|
||||
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixBody.php';
|
||||
?>
|
||||
</div>
|
||||
</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';
|
||||
}
|
||||
$_page = new Page(array('Dashboard'));
|
||||
$_page->setIncludeInHead(array('view/charts_head.php'));
|
||||
include $global['systemRootPath'] . 'view/charts_body.php';
|
||||
$_page->print();
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -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;
|
||||
$_page = new Page(array('Configuration'));
|
||||
$_page->setIncludeInHead(array('view/configurations_head.php'));
|
||||
include $global['systemRootPath'] . 'view/configurations_body.php';
|
||||
$_page->print();
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
if (User::isAdmin()) {
|
||||
?>
|
||||
|
||||
<div class="container-fluid">
|
||||
<form class="form-compact form-horizontal" id="updateConfigForm" onsubmit="">
|
||||
<div class="panel panel-default ">
|
||||
<div class="panel-heading tabbable-line">
|
||||
|
@ -653,7 +653,7 @@ if (User::isAdmin()) {
|
|||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
var logoCrop;
|
||||
var logoSmallCrop;
|
||||
|
@ -700,7 +700,7 @@ if (User::isAdmin()) {
|
|||
evt.preventDefault();
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'objects/sendEmail.json.php',
|
||||
url: webSiteRootURL + 'objects/sendEmail.json.php',
|
||||
data: {
|
||||
captcha: $('#captchaText').val(),
|
||||
first_name: "Your Site test",
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
$_page = new Page(array('Plugins'));
|
||||
$_page->setIncludeInHead(array('view/managerPlugins_head.php'));
|
||||
include $global['systemRootPath'] . 'view/managerPlugins_body.php';
|
||||
$_page->print();
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -8,27 +8,8 @@ if (!Permissions::canAdminUsers()) {
|
|||
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage users"));
|
||||
exit;
|
||||
}
|
||||
$_page = new Page(array('Users'));
|
||||
$_page->setIncludeInHead(array('view/managerUsers_head.php'));
|
||||
include $global['systemRootPath'] . 'view/managerUsers_body.php';
|
||||
$_page->print();
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -7,29 +7,8 @@ require_once $global['systemRootPath'] . 'objects/user.php';
|
|||
if (!Permissions::canAdminUserGroups()) {
|
||||
forbiddenPage(__("You can not manage do this"));
|
||||
}
|
||||
$_page = new Page(array('User Groups'));
|
||||
$_page->setIncludeInHead(array('view/managerUsersGroups_head.php'));
|
||||
include $global['systemRootPath'] . 'view/managerUsersGroups_body.php';
|
||||
$_page->print();
|
||||
?>
|
||||
<!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>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="container-fluid">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="btn-group" >
|
||||
<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>
|
||||
|
@ -18,16 +19,16 @@
|
|||
<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>
|
||||
<th data-column-id="created" data-width="150px"><?php echo __("Created"); ?></th>
|
||||
<th data-column-id="modified" data-width="150px"><?php echo __("Modified"); ?></th>
|
||||
<th data-column-id="commands" data-formatter="commands" data-sortable="false" data-width="100px"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="groupFormModal" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div id="groupFormModal" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
|
@ -36,7 +37,7 @@
|
|||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-compact" id="updateUserGroupsForm" onsubmit="">
|
||||
<input type="hidden" id="inputUserGroupsId" name="id" >
|
||||
<input type="hidden" id="inputUserGroupsId" name="id">
|
||||
<label for="inputName" class="sr-only"><?php echo __("Name"); ?></label>
|
||||
<input type="text" id="inputName" name="group_name" class="form-control" placeholder="<?php echo __("Name"); ?>" required autofocus>
|
||||
|
||||
|
@ -65,7 +66,7 @@
|
|||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
</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,7 +145,7 @@
|
|||
});
|
||||
|
||||
|
||||
}).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];
|
||||
|
||||
|
@ -156,15 +156,17 @@
|
|||
buttons: true,
|
||||
dangerMode: true,
|
||||
})
|
||||
.then(function (willDelete) {
|
||||
.then(function(willDelete) {
|
||||
if (willDelete) {
|
||||
|
||||
modal.showPleaseWait();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'objects/userGroupsDelete.json.php',
|
||||
data: {"id": row.id},
|
||||
url: webSiteRootURL + 'objects/userGroupsDelete.json.php',
|
||||
data: {
|
||||
"id": row.id
|
||||
},
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
if (response.status === "1") {
|
||||
$("#grid").bootgrid("reload");
|
||||
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your group has been deleted!"); ?>", "success");
|
||||
|
@ -179,7 +181,7 @@
|
|||
});
|
||||
});
|
||||
|
||||
$('#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>
|
|
@ -16,7 +16,8 @@ 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="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">
|
||||
|
@ -92,10 +93,10 @@ foreach ($userGroups as $value) {
|
|||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="userFormModal" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div id="userFormModal" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
|
@ -254,10 +255,10 @@ foreach ($userGroups as $value) {
|
|||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
|
||||
<div id="userInfoModal" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div id="userInfoModal" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
|
@ -345,8 +346,8 @@ foreach ($userGroups as $value) {
|
|||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
</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;
|
||||
}
|
||||
|
||||
$_page = new Page(array('Videos'));
|
||||
$_page->loadBasicCSSAndJS();
|
||||
$_page->setIncludeInHead(array('view/managerVideos_head.php'));
|
||||
include $global['systemRootPath'] . 'view/managerVideos_body.php';
|
||||
$_page->print();
|
||||
?>
|
||||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue