$msgpulsado = ""; } echo $msgpulsado; /* SELECT */ include_once "classes/class.creditos.php"; $creditos = new creditos(); $creditos->select($id); $idCredito = $creditos->getidCredito(); $idUsuario = $creditos->getidUsuario(); $idProducto = $creditos->getidProducto(); if ($_POST['confirm']) { $id = $_POST['id_credito']; /* DELETE */ include_once "classes/class.creditos.php"; $creditos = new creditos(); $creditos->select($id); $creditos->delete($id); echo '<div class="notify"><p>credito, eliminado!</p><p><a href="v_creditos.php">Regresar</a></p></div>'; } else { echo '<div class="dividerclean"><form action="d_credito.php?id=' . $id . '" id="simpleform" method="post"> <fieldset> <legend><strong> credito </strong></legend> <div class="form-item"> <label for=""></label> <p>Confirma Eliminar este credito? <input type="checkbox" name="confirm" id="confirm" class="checkbox" /></p> </p> <input type="hidden" name="id_credito" name="id_credito" value="' . $id . '" /> <input type="hidden" name="pulsado" value="1" /> </div> <div class="form-item">
?> </a></li> </ul> </div> <div class="three_4"> <?php $idCredito = $_POST['idCredito']; $idUsuario = $_POST['idUsuario']; $idProducto = $_POST['idProducto']; /* UPDATE */ include_once "classes/class.creditos.php"; $creditos = new creditos(); $creditos->select($idCredito); $creditos->idCredito = $idCredito; $creditos->idUsuario = $idUsuario; $creditos->idProducto = $idProducto; $creditos->update($idCredito); echo '<div class="notify"><p>credito actualizada!</p><p><a href="v_creditos.php">Regresar</a></p></div>'; ?> </div> </div> <div class="block"> <footer> <div class="block"> <div class="full"><h5 style="text-align:right;">Designed/Crafted 2012 | www.BuenosWeb.com</h5></div> </div>