Ejemplo n.º 1
0
require 'header.php';
$permissao = verifica_permissao('Conta', $controle_id_departamento_p, $controle_id_departamento_s);
if ($permissao == 'FALSE') {
    echo '<br><br><strong>Você não tem permissão para acessar essa página</strong>';
    exit;
}
?>

<div id="topo">
<h1 class="tit"><img src="../images/tit/tit_conta.png" alt="Título" />Conta</h1>
<hr class="tit" />
</div>
<div id="meio"><?php 
$bancoDAO = new BancoDAO();
$bancos = $bancoDAO->listar();
pt_register('POST', 'submit');
if ($submit) {
    //check for errors
    $errors = array();
    $done = false;
    $error = "<b>Ocorreram os seguintes erros:</b><ul>";
    pt_register('POST', 'id_banco');
    pt_register('POST', 'conta');
    pt_register('POST', 'agencia');
    pt_register('POST', 'status');
    pt_register('POST', 'sigla');
    $con = new stdClass();
    $con->id_empresa = trim($controle_id_empresa);
    $con->id_banco = trim($id_banco);
    $con->agencia = trim($agencia);
    echo '<option value="' . $l->id_classificacao . '" >' . $l->classificacao . '</option>';
}
?>
                </select><font color="#FF0000">*</font>
            </td>
        </tr>
        <tr>
            <td width="150">
                <div align="right"><strong>Banco: </strong></div>
            </td>
            <td colspan="3">
                <select name="financeiro_banco" style="width: 490px" class="form_estilo">
                    <option value=""></option>
                    <?php 
$bancoDAO = new BancoDAO();
$lista = $bancoDAO->listar();
foreach ($lista as $l) {
    echo '<option value="' . $l->id_banco . '" >' . $l->banco . '</option>';
}
?>
                </select></td>
        </tr>

        <tr>
            <td width="150">
                <div align="right"><strong>Agência: </strong></div>
            </td>
            <td><input type="text" class="form_estilo" name="financeiro_agencia"
                       style="width: 150px" /></td>
            <td>
                <div align="right"><b>Conta:</b></div>
Ejemplo n.º 3
0
"
					maxlength="2" /><font color="#FF0000">*</font></td>
			</tr>
			<tr>
				<td colspan="4" class="tabela_tit">Dados Bancários</td>
			</tr>
			<tr>
				<td>
				<div align="right"><strong>Banco: </strong></div>
				</td>
				<td>
					<select name="id_banco" style="width: 200px" class="form_estilo">
						<option value=""></option>
						<?php 
$bancoDAO = new BancoDAO();
$fin = $bancoDAO->listar();
$p_valor = "";
foreach ($fin as $f) {
    $p_valor .= '<option value="' . $f->id_banco . '" ';
    if ($c->id_banco == $f->id_banco) {
        $p_valor .= ' selected ';
    }
    $p_valor .= '>' . $f->banco . '</option>';
}
echo $p_valor;
?>
					</select>
				</td>
				<td>
				<div align="right"><strong>Código:</strong></div>
				</td>
Ejemplo n.º 4
0
							</a>
						</div>
					</div>
					<div class="box-content">
						
						<table class="table table-striped table-bordered bootstrap-datatable datatable">
						  <thead>
							  <tr>
							  	  <th>Ag&ecirc;ncia</th>
								  <th>Conta</th>
								  <th width="18%">A&ccedil;&atilde;o</th>
							  </tr>
						  </thead>   
						  <tbody>
							<?php 
$DAO->listar();
?>
						  </tbody>
					  </table>            
					</div>
				</div>
			</div>
					
					<!-- content ends -->
			</div><!--/#content.span10-->
				</div><!--/fluid-row-->
				
		<hr>

		<?php 
include_once '../../footer.php';