Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <script type="text/javascript">
  2. function confirmar() {
  3. confirmar = confirm("¿Desea Actualiza el Paciente?")
  4. if(confirmar) {
  5.  
  6. document.Person.submit()
  7. return true;
  8. }else{
  9. location.reload(true);
  10. return false;
  11.  
  12. }
  13. }
  14. </script>
  15. <div class="form-group col-sm-12">
  16. <center>
  17. <?php echo $this->Form->submit('Actualizar', array('class' => 'btn btn-large btn-primary','onClick'=>'return confirmar();')); ?>
  18. </center>
  19. </div><!-- .form-group -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement