Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function confirmar() {
- confirmar = confirm("¿Desea Actualiza el Paciente?")
- if(confirmar) {
- document.Person.submit()
- return true;
- }else{
- location.reload(true);
- return false;
- }
- }
- </script>
- <div class="form-group col-sm-12">
- <center>
- <?php echo $this->Form->submit('Actualizar', array('class' => 'btn btn-large btn-primary','onClick'=>'return confirmar();')); ?>
- </center>
- </div><!-- .form-group -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement