@copyright Copyright (C) 2020 Vast Development Method. All rights reserved. @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html Portal for mobile health clinics /-----------------------------------------------------------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\HTML\HTMLHelper as Html; use VDM\Joomla\Utilities\StringHelper; // set the defaults $items = $displayData->vvyvaccines; $user = Factory::getUser(); $id = $displayData->item->id; // set the edit URL $edit = "index.php?option=com_ehealthportal&view=immunisation_vaccine_types&task=immunisation_vaccine_type.edit"; // set a return value $return = ($id) ? "index.php?option=com_ehealthportal&view=administration_part&layout=edit&id=" . $id : ""; // check for a return value $jinput = Factory::getApplication()->input; if ($_return = $jinput->get('return', null, 'base64')) { $return .= "&return=" . $_return; } // check if return value was set if (StringHelper::check($return)) { // set the referral values $ref = ($id) ? "&ref=administration_part&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return)); } else { $ref = ($id) ? "&ref=administration_part&refid=" . $id : ""; } // set the create new URL $new = "index.php?option=com_ehealthportal&view=immunisation_vaccine_types&task=immunisation_vaccine_type.edit" . $ref; // set the create new and close URL $close_new = "index.php?option=com_ehealthportal&view=immunisation_vaccine_types&task=immunisation_vaccine_type.edit"; // load the action object $can = EhealthportalHelper::getActions('immunisation_vaccine_type'); ?>
get('core.create')): ?>


$item): ?> authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0; $userChkOut = Factory::getUser($item->checked_out); $canDo = EhealthportalHelper::getActions('immunisation_vaccine_type',$item,'immunisation_vaccine_types'); ?> published == 1): ?> published == 0): ?> published == 2): ?> published == -2): ?>
get('core.edit')): ?> escape($item->name); ?> checked_out): ?> name, $item->checked_out_time, 'immunisation_vaccine_types.', $canCheckin); ?> escape($item->name); ?> escape($item->administration_part_name); ?> escape($item->description); ?> id; ?>