D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
crsys_ant
/
adm
/
app
/
gre
/
Models
/
Moeda
/
Filename :
ModVerMoeda.php
back
Copy
<?php namespace App\gre\Models\Moeda; if (!defined('URL')) { header("Location: /"); exit(); } Class ModVerMoeda { private $Resultado; private $DadosId; public function verMoeda($DadosId) { $this->DadosId = (int) $DadosId; $verMoeda = new \App\adms\Models\helper\AdmsRead(); $verMoeda->fullRead("SELECT moe.id, date_format(moe.data, '%d/%m/%y') data, format(moe.dolar, 2, 'pt_BR') dolar, format(moe.euro, 2, 'pt_BR') euro, moe.created, moe.usu_created, moe.modified, moe.usu_modified, c.nome nome_c, m.nome nome_m, sit.nome nome_sit, cr.cor cor_cr FROM gre_valor_moedas moe left join adms_usuarios c on c.id = moe.usu_created left join adms_usuarios m on m.id = moe.usu_modified INNER JOIN adms_sits sit ON sit.id= moe.gre_sit_id INNER JOIN adms_cors cr ON cr.id= sit.adms_cor_id WHERE moe.id = :id LIMIT :limit", "id=".$this->DadosId."&limit=1"); $this->Resultado= $verMoeda->getResultado(); return $this->Resultado; } }