Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/public_html/administrator/components/com_allvideoshare/views/approval/ |
<?php
/*
* @version $Id: view.html.php 3.5.0 2020-01-25 $
* @package All Video Share
* @copyright Copyright (C) 2012-2020 MrVinoth
* @license GNU/GPL http://www.gnu.org/licenses/gpl-2.0.html
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
class AllVideoShareViewApproval extends AllVideoShareView {
public function display( $tpl = null ) {
$app = JFactory::getApplication();
$option = $app->input->get( 'option' );
$view = $app->input->get( 'view' );
$model = $this->getModel();
$limit = $app->getUserStateFromRequest( 'global.list.limit', 'limit', $app->getCfg( 'list_limit' ), 'int' );
$limitstart = $app->getUserStateFromRequest( $option . $view . '.limitstart', 'limitstart', 0, 'int' );
$this->limitstart = ( $limit != 0 ? ( floor( $limitstart / $limit ) * $limit ) : 0 );
$this->config = AllVideoShareUtils::getConfig();
$this->items = $model->getItems();
$this->approval = $model->getVideosCountWaitingApproval();
$this->pagination = $model->getPagination();
$this->lists = $model->getLists();
JToolBarHelper::title( JText::_( 'ALL_VIDEO_SHARE' ), 'camera' );
JToolBarHelper::publishList( 'publish', JText::_( 'PUBLISH' ) );
JToolBarHelper::unpublishList( 'unpublish', JText::_( 'UNPUBLISH' ) );
JToolBarHelper::deleteList( JText::_( 'ARE_YOU_SURE_WANT_TO_DELETE_SELECTED_ITEMS'), 'delete', JText::_( 'DELETE' ) );
JToolBarHelper::editList( 'edit', JText::_( 'EDIT' ) );
AllVideoShareUtils::subMenus();
parent::display( $tpl );
}
public function edit( $tpl = null ) {
$model = $this->getModel();
$this->item = $model->getItem();
$this->config = AllVideoShareUtils::getConfig();
JToolBarHelper::title( JText::_( 'EDIT_THE_VIDEO' ), 'camera' );
JToolBarHelper::save( 'save', JText::_( 'SAVE' ) );
JToolBarHelper::apply( 'apply', JText::_( 'APPLY' ) );
JToolBarHelper::cancel( 'cancel', JText::_( 'CANCEL' ) );
parent::display($tpl);
}
}