Ajustando Users_datagrid
This commit is contained in:
parent
43ee281888
commit
13318b4239
1 changed files with 6 additions and 6 deletions
12
vendor/view/users/users_datagrid.php
vendored
12
vendor/view/users/users_datagrid.php
vendored
|
|
@ -29,7 +29,7 @@ if($Main->verifyToken()){
|
|||
$CompaniesValidate->setCompanyId($companiesId);
|
||||
|
||||
/** Consulta a quantidade de registros */
|
||||
$NumberRecords = $Users->Count($CompanyValidate->getCompanyId())->qtde;
|
||||
$NumberRecords = $Users->Count($CompaniesValidate->getCompanyId())->qtde;
|
||||
|
||||
/** Verifico a quantidade de registros localizados */
|
||||
if ($NumberRecords > 0){?>
|
||||
|
|
@ -54,7 +54,7 @@ if($Main->verifyToken()){
|
|||
|
||||
<div class="col-md-4 text-right">
|
||||
|
||||
<button type="button" class="btn btn-success btn-sm" onclick="request('FOLDER=view&TABLE=users&ACTION=users_form&company_id=<?php echo $CompanyValidate->getCompanyId();?>&company_id=<?php echo $CompaniesValidate->getClientsId();?>', '#loadContent', true, '', '', '', 'Preparando formulário', 'blue', 'circle', 'sm', true)" data-toggle="tooltip" data-placement="left" title="Cadastrar novo usuário">
|
||||
<button type="button" class="btn btn-success btn-sm" onclick="request('FOLDER=view&TABLE=users&ACTION=users_form&company_id=<?php echo $CompaniesValidate->getCompanyId();?>&company_id=<?php echo $CompaniesValidate->getClientsId();?>', '#loadContent', true, '', '', '', 'Preparando formulário', 'blue', 'circle', 'sm', true)" data-toggle="tooltip" data-placement="left" title="Cadastrar novo usuário">
|
||||
|
||||
<i class="fas fa-plus-circle mr-1"></i>Novo
|
||||
|
||||
|
|
@ -62,7 +62,7 @@ if($Main->verifyToken()){
|
|||
|
||||
<?php
|
||||
/** Verifica se a empresa foi informada */
|
||||
if($CompanyValidate->getCompanyId() > 0){
|
||||
if($CompaniesValidate->getCompanyId() > 0){
|
||||
|
||||
/** Verifica se a empresa existe */
|
||||
if($CompanyResult->company_id > 0){ ?>
|
||||
|
|
@ -107,7 +107,7 @@ if($Main->verifyToken()){
|
|||
<?php
|
||||
|
||||
/** Consulta a quantidade de registros */
|
||||
$resultUsers = $Users->All($start, $max, $CompanyValidate->getCompanyId(), $CompaniesValidate->getClientsId());
|
||||
$resultUsers = $Users->All($start, $max, $CompaniesValidate->getCompanyId(), $CompaniesValidate->getClientsId());
|
||||
|
||||
/** Consulta os usuário cadastrados*/
|
||||
foreach ($resultUsers as $resultKey => $result)
|
||||
|
|
@ -121,7 +121,7 @@ if($Main->verifyToken()){
|
|||
<td><?php echo $result->email; ?></td>
|
||||
<td class="text-center" width="30"><?php echo date("d/m/Y",strtotime($result->date_register)); ?></td>
|
||||
<td class="text-center" width="40"><?php echo $result->active == "S" ? "Sim" : "Não"; ?></td>
|
||||
<td class="text-center" width="20"><a type="button" class="btn btn-light btn-sm" onclick="request('FOLDER=view&TABLE=users&ACTION=users_form&users_id=<?php echo $result->users_id; ?>&company_id=<?php echo $CompanyValidate->getCompanyId(); ?>&company_id=<?php echo $CompaniesValidate->getClientsId(); ?>', '#loadContent', true, '', '', '', 'Preparando formulário', 'blue', 'circle', 'sm', true)"><i class="far fa-edit mr-1"></i></a></td>
|
||||
<td class="text-center" width="20"><a type="button" class="btn btn-light btn-sm" onclick="request('FOLDER=view&TABLE=users&ACTION=users_form&users_id=<?php echo $result->users_id; ?>&company_id=<?php echo $CompaniesValidate->getCompanyId(); ?>&company_id=<?php echo $CompaniesValidate->getClientsId(); ?>', '#loadContent', true, '', '', '', 'Preparando formulário', 'blue', 'circle', 'sm', true)"><i class="far fa-edit mr-1"></i></a></td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
|
@ -170,7 +170,7 @@ if($Main->verifyToken()){
|
|||
|
||||
<div class="col-md-4 text-right">
|
||||
|
||||
<button type="button" class="btn btn-success btn-sm" onclick="request('FOLDER=view&TABLE=users&ACTION=users_form&company_id=<?php echo $CompanyValidate->getCompanyId();?>', '#loadContent', true, '', '', '', 'Preparando formulário', 'blue', 'circle', 'sm', true)">
|
||||
<button type="button" class="btn btn-success btn-sm" onclick="request('FOLDER=view&TABLE=users&ACTION=users_form&company_id=<?php echo $CompaniesValidate->getCompanyId();?>', '#loadContent', true, '', '', '', 'Preparando formulário', 'blue', 'circle', 'sm', true)">
|
||||
|
||||
<i class="fas fa-plus-circle mr-1"></i>Cadastrar novo usuário
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue