D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
gre
/
Models
/
Filename :
GreVerIntercorrencia.php
back
Copy
<?php namespace App\gre\Models; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of GreVerIntercorrencia * * @copyright (c) year, Carlos Marques */ class GreVerIntercorrencia { private $Resultado; private $DadosId; public function verIntercor($DadosId) { //var_dump($DadosId); $this->DadosId = $DadosId; $Intercor = new \App\adms\Models\helper\AdmsRead(); $Intercor->fullRead("select intercor.*, date_format(intercor.data_email_recebido, '%d/%m/%Y %H:%i:%s') data_email_recebido, resid.nome resid_nome, sit.nome nome_sit, intercor.adms_sit_id, cr.cor cor_cr FROM gre_intercorrencia intercor join gre_residente resid on resid.id = intercor.gre_residente_id INNER JOIN gre_status_intercor sit ON sit.id=intercor.adms_sit_id INNER JOIN adms_cors cr ON cr.id= sit.adms_cor_id WHERE intercor.id = :id LIMIT :limit", "id=". $this->DadosId['id']. "&limit=1"); $this->Resultado= $Intercor->getResultado(); return $this->Resultado; } }