* @author Rod Roark * @author Daniel Pflieger * @author Ken Chapple * @copyright Copyright (c) 2018-2019 Brady Miller * @copyright Copyright (c) 2021 Daniel Pflieger * @copyright Copyright (c) 2021 Ken Chapple * @copyright Copyright (c) 2021 Rod Roark * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ require_once("../globals.php"); require_once("$srcdir/calendar.inc"); require_once("$srcdir/options.inc.php"); require_once("$srcdir/erx_javascript.inc.php"); use OpenEMR\Common\Acl\AclExtended; use OpenEMR\Common\Acl\AclMain; use OpenEMR\Common\Csrf\CsrfUtils; use OpenEMR\Common\Twig\TwigContainer; use OpenEMR\Core\Header; use OpenEMR\Menu\MainMenuRole; use OpenEMR\Menu\PatientMenuRole; use OpenEMR\Services\FacilityService; use OpenEMR\Services\UserService; if (!empty($_GET)) { if (!CsrfUtils::verifyCsrfToken($_GET["csrf_token_form"])) { CsrfUtils::csrfNotVerified(); } } $facilityService = new FacilityService(); if (!AclMain::aclCheckCore('admin', 'users')) { echo (new TwigContainer(null, $GLOBALS['kernel']))->getTwig()->render('core/unauthorized.html.twig', ['pageTitle' => xl("Edit User")]); exit; } if (!$_GET["id"]) { exit(); } $res = sqlStatement("select * from users where id=?", array($_GET["id"])); for ($iter = 0; $row = sqlFetchArray($res); $iter++) { $result[$iter] = $row; } $iter = $result[0]; ?>
  >

" >
: " disabled> **:
:
: '> : /> : /> : /> : />
: "> : ">
: "> :
 
: "> : ">
: "> :
: "> : ">
: "> :
: "> : 'width:150px')); ?>
: "> : ">
:
: getEventDispatcher()); echo $menuMain->displayMenuRoleSelector($iter["main_menu_role"]); ?> : displayMenuRoleSelector($iter["patient_menu_role"]); ?>
: :  
:
: :
:

*

*' . xlt('View mode - only administrator can edit another administrator user') . '.

'; } ?>
 
">