joomla-component/admin/tmpl/notes/default.php

58 lines
2.2 KiB
PHP
Raw Normal View History

2023-07-26 09:09:42 +00:00
<?php
/*----------------------------------------------------------------------------------| io.vdm.dev |----/
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
@package getBible.net
@created 3rd December, 2015
@author Llewellyn van der Merwe <https://getbible.net>
@git Get Bible <https://git.vdm.dev/getBible>
@github Get Bible <https://github.com/getBible>
@support Get Bible <https://git.vdm.dev/getBible/support>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
// No direct access to this file
defined('_JEXEC') or die;
2023-07-26 09:09:42 +00:00
if ($this->saveOrder)
{
$saveOrderingUrl = 'index.php?option=com_getbible&task=notes.saveOrderAjax&tmpl=component';
Html::_('sortablelist.sortable', 'noteList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl);
2023-07-26 09:09:42 +00:00
}
?>
<form action="<?php echo Route::_('index.php?option=com_getbible&view=notes'); ?>" method="post" name="adminForm" id="adminForm">
2023-07-26 09:09:42 +00:00
<div id="j-main-container">
<?php
// Add the trash helper layout
echo LayoutHelper::render('trashhelper', $this);
2023-07-26 09:09:42 +00:00
// Add the searchtools
echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this));
2023-07-26 09:09:42 +00:00
?>
<?php if (empty($this->items)): ?>
<div class="alert alert-no-items">
<?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
2023-07-26 09:09:42 +00:00
</div>
<?php else : ?>
<table class="table table-striped" id="noteList">
<thead><?php echo $this->loadTemplate('head');?></thead>
<tfoot><?php echo $this->loadTemplate('foot');?></tfoot>
<tbody><?php echo $this->loadTemplate('body');?></tbody>
</table>
<input type="hidden" name="boxchecked" value="0" />
</div>
<?php endif; ?>
<input type="hidden" name="task" value="" />
<?php echo Html::_('form.token'); ?>
2023-07-26 09:09:42 +00:00
</form>