<?php require_once 'cls/clientesClass.php'; $cli = new clientesClass(); $cli->buscarUm($_GET['id']); $cliente = mysql_fetch_array($cli->getconsulta()); ?> <form class="form-horizontal" method = POST action = 'processarAtualizarClientes.php'> <fieldset> <!-- Form Name --> <legend align = "center">Atualizar Cliente</legend> <input type = hidden name = id value = <?php echo $cliente['idCliente']; ?> > <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="textinput">Nome</label> <div class="col-md-2"> <input id="nome" name="nome" type="text" value = "<?php echo $cliente['nome']; ?> " class="form-control input-md" required=""> </div> </div> <!-- Text input--> <div class="form-group">
$cliente->mostrar(); $active = 'clientes'; ?> <div align ="center"> <table border ="1"> <tr> <td align="center" style = "background-color:yellow;">ID</td> <td align="center" style = "background-color:yellow;">Nome</td> <td align="center" style = "background-color:yellow;">Endereco</td> <td align="center" style = "background-color:yellow;">Email</td> <td style = "background-color:yellow;"> Editar </td> <td style = "background-color:yellow;"> Deletar </td> <td style = "background-color:yellow;"> Mostrar pagamentos </td> </tr> <?php while ($linha = mysql_fetch_array($cliente->getconsulta())) { ?> <tr> <td align="center"><? echo $linha['idCliente'];?></td> <td align="center"><? echo $linha['nome'];?></td> <td align="center"> <?echo $linha['endereco']?></td> <td align="center"><? echo $linha['email'];?></td> <td align="center"><a href = 'principal.php?m=a&id=<?php echo $linha['idCliente']; ?> '>Editar</a></td> <td align="center"><a href = "javascript:deletar(<?php echo $linha['idCliente']; ?> , '<?php echo $linha['nome'];