Example #1
0
 private function busca_cliente_ajax($texto = '')
 {
     $ret = "";
     $consulta = new Query_model();
     $consulta->SetCampos('nome,cpf,id');
     $consulta->SetCondicao(" nome like '%" . $texto . "%' OR cpf like '%" . $texto . "%' ");
     $consulta->SetTabelas("clientes");
     $consulta->SetTipoRetorno(0);
     $consulta_dados = $consulta->get();
     if (count($consulta_dados) == 0) {
         $ret .= '<tr><td colspan="3">' . reprovado("Nunhum Cliente encotrado!<hr>" . bt_link("clientes/formulario", "Novo Cliente")) . '</td></tr>';
     }
     foreach ($consulta_dados as $key => $value) {
         $link_processos = anchor('processos/proc/' . $value['id'] . '/0/ver', '<i class="fa fa-cog fa-spin"></i><b> Processos </b></i>');
         $ret .= "" . "<tr>" . "<td>" . $value['nome'] . "</td>" . "<td>" . $value['cpf'] . "</td>" . "<td>" . $link_processos . "</td>" . "</tr>";
     }
     return $ret;
 }
Example #2
0
            <td>Data</td>
            <td>Item</td>
            <td>Responsavel</td>
            <td>Item</td>
            <td>Ação</td>
        </tr>
    </thead>
    <tbody>';
$link = base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/' . $this->uri->segment(3) . '/' . $this->uri->segment(4) . '/' . $this->uri->segment(5) . '/';
foreach ($dados['talefas_list'] as $key => $value) {
    $mensagem .= '<tr>
                <td>' . data_br($value['data']) . '</td>                
                <td>' . $value['item'] . '</td>
                <td>' . $value['nome'] . '</td>
                <td>' . $value['obs'] . '</td>
                <td>' . bt_link($link . 'tarefas/' . $value['id'], "Finalizar") . '</td>
            </tr>';
}
$mensagem .= '</tbody>
</table>';
if (count($dados['talefas_list']) == 0) {
    echo mensagem_alerta("Nenhum alerta para esse processo");
} else {
    echo reprovado($mensagem);
}
//*******************************************
echo SubTitulo('<hr>');
echo SubTitulo('STATUS PARA O RESUMO DO PROCESSO');
echo monta_select($tamanho = 3, $label = 'Status', $nome = 'status', $dados['status_select'], $dados['form']['status'], $id = "status");
echo SubTitulo('');
echo monta_input($tamanho = 12, $label = 'Observação', $tipo_campo = 'txt', $nome = 'obs', $value = "", $maxlength = "100", $classes = "");
Example #3
0
                $link_pagar = '';
                $link_editar = bt_link("processos/proc/" . $this->uri->segment(3) . "/" . $this->uri->segment(4) . "/pagamentos/form/" . $value['id'], '<i class="fa fa-pencil"></i>');
                $link_confirmar_pg = bt_link("processos/proc/" . $this->uri->segment(3) . "/" . $this->uri->segment(4) . "/pagamentos/confirmar/" . $value['id'], '<i class="fa fa-thumbs-o-up fa-1x">      ');
                $link_add = bt_link("processos/proc/" . $this->uri->segment(3) . "/" . $this->uri->segment(4) . "/pagamentos/form/", '<i class="fa fa-plus-square"></i> Adicionar Parcela');
            }
            if ($value['status'] == 2) {
                $link_pagar = '';
                $link_editar = bt_link("processos/proc/" . $this->uri->segment(3) . "/" . $this->uri->segment(4) . "/pagamentos/form/" . $value['id'], '<i class="fa fa-pencil"></i>');
                $link_confirmar_pg = "";
                $link_add = bt_link("processos/proc/" . $this->uri->segment(3) . "/" . $this->uri->segment(4) . "/pagamentos/form/", '<i class="fa fa-plus-square"></i> Adicionar Parcela');
            }
            if ($value['status'] == 0) {
                $link_pagar = bt_link("processos/proc/" . $this->uri->segment(3) . "/" . $this->uri->segment(4) . "/pagamentos/pagar/" . $value['id'], '<i class="fa fa-money"></i>');
                $link_editar = bt_link("processos/proc/" . $this->uri->segment(3) . "/" . $this->uri->segment(4) . "/pagamentos/form/" . $value['id'], '<i class="fa fa-pencil"></i>');
                $link_confirmar_pg = bt_link("processos/proc/" . $this->uri->segment(3) . "/" . $this->uri->segment(4) . "/pagamentos/confirmar/" . $value['id'], '<i class="fa fa-thumbs-o-up fa-1x">      ');
                $link_add = bt_link("processos/proc/" . $this->uri->segment(3) . "/" . $this->uri->segment(4) . "/pagamentos/form/", '<i class="fa fa-plus-square"></i> Adicionar Parcela');
            }
        }
        echo '<tr>
                    <td>' . $value['n_parcela'] . '</td>
                    <td>' . data_br($value['data']) . '</td>
                    <td> R$ ' . decimal2str($value['valor']) . '</td>
                    <td>' . $quem . '</td>
                    <td>' . $status . '</td>
                    <td>' . $link_editar . ' | ' . $link_pagar . ' | ' . $link_confirmar_pg . '</td>
                </tr>';
    }
    echo '<tr><td colspan="6">' . $link_add . '</td></tr>';
    ?>

        </tbody>
<!-- Padrão -->
<div class="row">
    <div class="col-md-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <table style="width: 100%;">
                    <tr>
                        <td style="text-align:left;"><h4>Cliente</h4></td>
                        <td style="text-align:right;"><?php 
echo bt_link("processos/proc/" . $this->uri->segment(3) . "/0/ver/", "Processo", 'success');
?>
        </td>
                    </tr>
                </table>
                
            </div>
            <div class="panel-body">
                
                <?php 
echo form_open($this->uri->segment(1) . '/' . $this->uri->segment(2) . '/' . $this->uri->segment(3) . '/' . $this->uri->segment(4) . '/' . $this->uri->segment(5) . '/' . $this->uri->segment(6) . '/' . $this->uri->segment(7));
if ($this->uri->segment(4) == "telefone" && $this->uri->segment(6) == "1") {
    echo SubTitulo('Editar Telefone');
    echo monta_input($tamanho = 3, $label = 'Nº', $tipo_campo = 'txt', $nome = 'n_tel', $value = $dados['form']['n_tel'], $maxlength = "15", $classes = "telefone");
    echo monta_select($tamanho = 2, $label = 'Tipo', $nome = 't_tel', $dados['tel_tipo'], $dados['form']['t_tel'], $id = "");
    echo monta_input($tamanho = 7, $label = 'Obs', $tipo_campo = 'txt', $nome = 'o_tel', $value = $dados['form']['o_tel'], $maxlength = "100", $classes = "");
    //echo bt_form($tamanho_espaco = '11', $tamanho_bt = '1', $texto = "Alterar", $id = "", $class = "validar_clientes");
} elseif ($this->uri->segment(4) == "ajuda" && $this->uri->segment(6) == "1") {
    echo SubTitulo('Editar Ajuda financeira');
    echo monta_input($tamanho = 6, $label = 'Nome', $tipo_campo = 'txt', $nome = 'a_nome', $value = $dados['form']['a_nome'], $maxlength = "100", $classes = "");
    echo monta_input($tamanho = 6, $label = 'CPF', $tipo_campo = 'txt', $nome = 'a_cpf', $value = $dados['form']['a_cpf'], $maxlength = "100", $classes = "");
Example #5
0
</td>
            <td><?php 
echo $dados['icms'] == 1 ? bt_link("processos/proc/" . $this->uri->segment(3) . '/' . $this->uri->segment(4) . '/icms', '<i class="fa fa-eye fa-1x"></i>') : '<i class="fa fa-ban"></i>';
?>
</td>
            <td><?php 
echo $dados['ipva'] == 1 ? bt_link("processos/proc/" . $this->uri->segment(3) . '/' . $this->uri->segment(4) . '/ipva', '<i class="fa fa-eye fa-1x"></i>') : '<i class="fa fa-ban"></i>';
?>
</td>
            <td><?php 
echo $dados['rodizio'] == 1 ? bt_link("processos/proc/" . $this->uri->segment(3) . '/' . $this->uri->segment(4) . '/rodizio', '<i class="fa fa-eye fa-1x"></i>') : '<i class="fa fa-ban"></i>';
?>
</td>
            
            <td><?php 
echo $dados['baixa_ipva'] == 1 ? bt_link("processos/proc/" . $this->uri->segment(3) . '/' . $this->uri->segment(4) . '/baixa_ipva', '<i class="fa fa-eye fa-1x"></i>') : '<i class="fa fa-ban"></i>';
?>
</td>
            <td><?php 
echo $dados['baixa_rodizio'] == 1 ? bt_link("processos/proc/" . $this->uri->segment(3) . '/' . $this->uri->segment(4) . '/baixa_rodizio', '<i class="fa fa-eye fa-1x"></i>') : '<i class="fa fa-ban"></i>';
?>
</td>
        </tr>
    </tbody>
</table>
<?php 
echo SubTitulo('Anexos');
foreach ($dados['arquivos'] as $key => $value) {
    $caminho = base_url() . 'anexos/' . $value['anexo'];
    echo '<iframe class=" col-md-6" src="' . $caminho . '" width="800px" height="600px" ></iframe>';
}
function navegacao_produtos_processador($controle, $tipo_produto, $marca, $tipo_maquina, $id_produto, $navegacao)
{
    $link = $controle . '/form_processador/' . $tipo_produto . '/' . $marca . '/' . $tipo_maquina . '/' . $id_produto;
    return '<table class="table">
          <tr>
            <td>' . bt_link($link . '/3', $texto = '<i class="fa fa-plus-circle fa-4x"></i><br>Estoque') . '</td>
            <td>' . bt_link($link . '/1', $texto = '<i class="fa fa-pencil-square-o fa-4x"></i><br>Editar') . '</td>
            <td>' . bt_link($link . '/2', $texto = '<i class="fa fa-search fa-4x"></i><br>Ver') . '</td>
          </tr>
        </table>';
}
Example #7
0
<?php

echo SubTitulo('Cliente');
echo monta_input_ver($tamanho = 6, $label = 'Nome Completo', $tipo_campo = 'txt', $nome = 'nome', $value = $dados['form']['nome'], $maxlength = "100", $classes = "", $id = "");
echo monta_input_ver($tamanho = 6, $label = 'CPF', $tipo_campo = 'txt', $nome = 'cpf', $value = $dados['form']['cpf'], $maxlength = "100", $classes = "cpf", $id = "");
echo SubTitulo('');
echo SubTitulo('NAVEGAÇÂO');
if ($this->uri->segment(4) != 0) {
    echo bt_link("processos/proc/" . $this->uri->segment(3) . '/' . $this->uri->segment(4) . "/editar", "EDITAR PROCESSO");
    echo ' ';
    echo bt_link("processos/proc/" . $this->uri->segment(3) . '/' . $this->uri->segment(4) . "/pagamentos", "PAGAMENTO");
    echo ' ';
    echo bt_link("processos/proc/" . $this->uri->segment(3) . '/' . $this->uri->segment(4) . "/ver", "VER");
    echo ' <hr>';
} else {
    echo bt_link("clientes/formulario_concluir/" . $this->uri->segment(3), "EDITAR CLIENTE");
    echo ' <hr>';
    echo ' ';
}
echo SubTitulo('');