D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
novonote
/
adm
/
app
/
gre
/
Models
/
Orcamento
/
Filename :
ModListarOrcamento.php
back
Copy
<?php namespace App\gre\Models\Orcamento; if (!defined('URL')) { header("Location: /"); exit(); } class ModListarOrcamento { private $Resultado; public function listarOrcamento() { $listarOrcamento = new \App\adms\Models\helper\AdmsRead(); $listarOrcamento->fullRead("SELECT orc.*, c.nome nome_cliente, c.email email, date_format(orc.data_validade, '%d/%m/%Y') data, sit.nome nome_sit, cr.cor cor_cr FROM gre_cab_propostas orc inner join gre_clientes c on c.id = orc.cliente_id INNER JOIN adms_sit_proposta sit ON sit.id=orc.gre_sit_id INNER JOIN adms_cors cr ON cr.id=sit.adms_cor_id where orc.empr_id = {$_SESSION['id_user']} ORDER BY orc.id DESC"); $this->Resultado = $listarOrcamento->getResultado(); //var_dump( $this->Resultado); //die; return $this->Resultado; } }