Atualizando users_form.php

This commit is contained in:
Kenio 2025-07-18 10:16:31 -03:00
parent 01ac281683
commit d7627ce108

View file

@ -58,10 +58,10 @@ if($Main->verifyToken()){
<?php
if($ClientsValidate->getCompaniesId() > 0){
if($CompaniesValidate->getCompaniesId() > 0){
?>
<button type="button" class="btn btn-success btn-sm" onclick="request('FOLDER=view&TABLE=clients&ACTION=clients_form&clients_id=<?php echo $ClientsValidate->getCompaniesId();?>', '#loadContent', true, '', '', '', 'Carregando usuários cadastrados', 'blue', 'circle', 'sm', true)" data-toggle="tooltip" data-placement="left" title="Retornar a tela anterior">
<button type="button" class="btn btn-success btn-sm" onclick="request('FOLDER=view&TABLE=clients&ACTION=clients_form&clients_id=<?php echo $CompaniesValidate->getCompaniesId();?>', '#loadContent', true, '', '', '', 'Carregando usuários cadastrados', 'blue', 'circle', 'sm', true)" data-toggle="tooltip" data-placement="left" title="Retornar a tela anterior">
<i class="fa fa-backward mr-1"></i>Retornar
@ -69,7 +69,7 @@ if($Main->verifyToken()){
<?php } ?>
<button type="button" class="btn btn-info btn-sm" onclick="request('FOLDER=view&TABLE=users&ACTION=users_datagrid&company_id=<?php echo $CompaniesValidate->getCompanyId();?>&clients_id=<?php echo $ClientsValidate->getCompaniesId();?>', '#loadContent', true, '', '', '', 'Carregando usuários cadastrados', 'blue', 'circle', 'sm', true)" data-toggle="tooltip" data-placement="left" title="Carregar usuários cadastrados">
<button type="button" class="btn btn-info btn-sm" onclick="request('FOLDER=view&TABLE=users&ACTION=users_datagrid&company_id=<?php echo $CompaniesValidate->getCompanyId();?>&clients_id=<?php echo $CompaniesValidate->getCompaniesId();?>', '#loadContent', true, '', '', '', 'Carregando usuários cadastrados', 'blue', 'circle', 'sm', true)" data-toggle="tooltip" data-placement="left" title="Carregar usuários cadastrados">
<i class="fas fa-plus-circle mr-1"></i>Usuários Cadastrados
@ -119,7 +119,7 @@ if($Main->verifyToken()){
foreach($ClientsResult as $ClientsKey => $Result){
?>
<option value="<?php echo $Result->clients_id;?>" <?php echo $Result->clients_id == $ClientsValidate->getCompaniesId() ? 'selected' : '';?> ><?php echo $Result->fantasy_name;?></option>
<option value="<?php echo $Result->clients_id;?>" <?php echo $Result->clients_id == $CompaniesValidate->getCompaniesId() ? 'selected' : '';?> ><?php echo $Result->fantasy_name;?></option>
<?php } ?>