alert('Encomenda inserida com sucesso'); window.location = "index.php"; }else{ //$('#suppliertype').hide(); alert(newdata); } }); } } </script> <?php if (isset($_GET['pp_bolo_id'])) { //se é um bolo nosso $table = viewBoloGetByFiltro("pp_bolo_id = " . dbInteger(control_post($_GET['pp_bolo_id'])), ""); $data = mysql_fetch_array($table); } else { //novo bolo } ?> <div class="row"> <div class="col-md-7 col-md-offset-2"> <form name="changegr" class="form-horizontal" > <fieldset> <!-- Form Name --> <legend>Criação da Encomenda</legend> <?php if (isset($_GET['pp_bolo_id'])) {
<?php include 'includes/header.php'; ?> <?php $table = viewBoloGetByFiltro("pp_bolo_enable = 1", ""); ?> <table id="mytable" class="table table-bordered display" cellspacing="0" width=""> <!--<thead> <tr> <th>Nº</th> <th>Nome</th> <th>Contacto</th> <th>Data Entrada</th> <th>Data Reparador</th> <th>Data SMS</th> <th>Entregue?</th> <th>Data Levantamento</th> </tr> </thead>--> <tbody> <?php if (is_bool($table) === false) { if (mysql_num_rows($table) > 0) { while ($data = mysql_fetch_array($table)) { ?> <tr class="text-center" onclick="viewGr('<?php echo $data['pp_bolo_id']; ?>