<?php define("ROOT", "../.."); define("NAV", "side_btn_c"); require ROOT . "/libs/lib_list.php"; $search = null; if (array_key_exists("search", $_GET)) { $search = $_GET['search']; } $dao = new ClienteDAO(get_connection()); $clientes = $dao->listar_clientes($search); require ROOT . "/site/header.php"; require ROOT . "/site/sidebar.php"; ?> <div class="sub_body"> <fieldset> <legend>Clientes</legend> <div class="panel panel-default panel-body"> <form class="input-group input-group-sm"> <input name="search" type="text" class="form-control" placeholder="Digite sua busca aqui..." value="<?php echo $search; ?> "> <span class="input-group-btn"> <button class="btn btn-default" type="submit">Procurar</button> </span> </form> </div> <?php
<div class="row"> <div class="col-lg-5"> <div class="input-group"> <span class="input-group-addon" id="addon_tf_projeto">Nome do Projeto:</span> <input id="tf_nome_completo" type="text" class="form-control" aria-describedby="addon_tf_projeto"> </div> </div> <div class="col-lg-3"> <div class="input-group"> <span class="input-group-addon" id="addon_cb_cliente">Cliente:</span> <select id="cb_cliente" class="form-control" aria-describedby="addon_cb_cliente"> <?php $cDao = new ClienteDAO(get_connection()); $clientes = $cDao->listar_clientes(null); foreach ($clientes as $c) { ?> <option value="<?=$c['codigo']?>"><?=$c['nome_completo']?></option> <? } ?> </select> </div> </div> <div id="controls_padding" class="col-lg-4"> <div class="btn-group"> <a href="listar.php" class="btn btn-primary">Voltar</a> <a href="downloads/listar.php?cod_projeto=<?=$projeto['codigo']?>" class="btn btn-primary locks" disabled>Downloads</a>