This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row divDeclaracaoMedica"> | |
<div class="col-md-5"> | |
<?php | |
// file[] => declaracao_medica[] | |
echo | |
$this->Form->input('declaracao_medica[]', [ | |
'div' => ['class' => 'form-group withHelper' ], | |
'class' => 'form-control', | |
'type' => 'file', | |
'label' => 'Declaração Medica / Exame *', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function uploadArquivoAgendamento($sigla, $name){ | |
try { | |
$this->loadModel("TempUploadArquivo"); | |
$qtdMaxUpload = $this->getQtdMaxArquivoUpload(); | |
$tempoMaxUpload = $this->getTempoMaxArquivoUpload(); | |
$formatosValidos = Configure::read('FORMATOS_UPLOAD'); | |
$tmp = explode('.', $this->request->data['Agendamento'][$name]['name']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!empty($this->request->data['Agendamento']['declaracao_medica']['name'])){ | |
$this->uploadArquivoAgendamento('dm', 'declaracao_medica'); | |
}else{ | |
$this->request->data['Agendamento']['declaracao_medica'] = null; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(in_array($tipologiaAgendamento, array( TIPOLOGIA_LICENCA_MEDICA_TRATAMENTO_SAUDE))):?> | |
<fieldset class="scheduler-border"> | |
<legend class="scheduler-border">Arquivos</legend> | |
<div class="row"> | |
<?php | |
$existFile = (isset($this->data['Agendamento']['declaracao_medica_path']) && isset($this->data['Agendamento']['id'])); | |
var_dump($existFile); die(); | |
if($existFile){?> | |
<div class="col-md-3" > | |
<label style="font-weight: bold">Declaração Medica </label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row divDeclaracaoMedica"> | |
<div class="col-md-5"> | |
<?php | |
echo | |
$this->Form->input('files[]', [ | |
'div' => ['class' => 'form-group withHelper' ], | |
'class' => 'form-control', | |
'type' => 'file', | |
'label' => 'Declaração Medica / Exame *', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function uploadArquivoAgendamento($sigla, $name){ | |
try { | |
$this->loadModel("TempUploadArquivo"); | |
$qtdMaxUpload = $this->getQtdMaxArquivoUpload(); | |
$tempoMaxUpload = $this->getTempoMaxArquivoUpload(); | |
$formatosValidos = Configure::read('FORMATOS_UPLOAD'); | |
$tmp = explode('.', $this->request->data['Agendamento'][$name]['name']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class WebserviceController extends AppController | |
{ | |
const URI= "http://:8080/axis2/services/WSSPM02?wsdl"; | |
public function ler_do_webservice() { | |
$SoapClient = new SoapClient (URI); | |
$params = array ('args0' => '', ); | |
$response = $SoapClient->ADNWSPM2 ($params); | |
return $response; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
get_header(); | |
$id_form = opt('FORMULARIO_INTERESSE'); | |
?> | |
<?php | |
if ( have_posts() ) : | |
while ( have_posts() ) : the_post(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
get_header(); | |
$estrutura = get_estrutura_pesquisa(); | |
?> | |
<script type="text/javascript"> | |
var _estrutura = <?php echo json_encode($estrutura); ?>; | |
var can_publish = <?php echo json_encode(posso_publicar()); ?>; | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function search(){ | |
$dirId=Diretoria::find(Auth::user()->diretoria); | |