Debug
This commit is contained in:
parent
f93d321759
commit
3f403eb89b
1 changed files with 1 additions and 21 deletions
22
vendor/view/users/users_datagrid.php
vendored
22
vendor/view/users/users_datagrid.php
vendored
|
|
@ -3,7 +3,6 @@
|
|||
/** Importação de classes */
|
||||
use vendor\model\Users;
|
||||
use vendor\model\Companies;
|
||||
use vendor\controller\company\CompanyValidate;
|
||||
use vendor\controller\companies\CompaniesValidate;
|
||||
|
||||
/** Verifica se o token de acesso é válido */
|
||||
|
|
@ -12,7 +11,6 @@ if($Main->verifyToken()){
|
|||
/** Instânciamento de classes */
|
||||
$Users = new Users();
|
||||
$Companies = new Companies();
|
||||
$CompanyValidate = new CompanyValidate;
|
||||
$CompaniesValidate = new CompaniesValidate;
|
||||
|
||||
/** Carrega as configurações de paginação */
|
||||
|
|
@ -28,7 +26,6 @@ if($Main->verifyToken()){
|
|||
$max = isset($config->{'app'}->{'datagrid'}->{'rows'}) ? $config->{'app'}->{'datagrid'}->{'rows'} : null;
|
||||
|
||||
/** Valida o campo */
|
||||
$CompanyValidate->setCompanyId($companyId);
|
||||
$CompaniesValidate->setCompanyId($companiesId);
|
||||
|
||||
/** Consulta a quantidade de registros */
|
||||
|
|
@ -48,24 +45,7 @@ if($Main->verifyToken()){
|
|||
<div class="col-md-8">
|
||||
|
||||
<h5>
|
||||
|
||||
<?php
|
||||
|
||||
/** Verifica se a empresa foi informada */
|
||||
if($CompaniesValidate->getClientsId() == 0 && $CompanyValidate->getCompanyId() > 0){
|
||||
|
||||
/** Consulta os dados da empresa */
|
||||
$CompanyResult = $Company->Get($CompanyValidate->getCompanyId());
|
||||
|
||||
/** Verifica se a empresa existe */
|
||||
if($CompanyResult->company_id > 0){
|
||||
|
||||
echo $CompanyResult->fantasy_name . ' :: ';
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Usuários
|
||||
|
||||
</h5>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue