Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <?php
  2. include ('script.inc.php');
  3. ////////////////////////////////////////////////////
  4. $identificador = '232'; //test
  5. //$identificador = $_POST['id']; //produccion
  6.  
  7. update_move($identificador); //Ejecucion INPORTANTE
  8. $nombre = get_nombre($identificador);
  9. $count_ = get_count($identificador);
  10. $tipo = get_tipo($identificador);
  11. // entrada salida
  12. if ($tipo == '1') {
  13. if ($count_ == '1') {
  14. add_entrada($identificador,$nombre);
  15. }
  16. if ($count_ == '2') {
  17. add_salida($identificador,$nombre);
  18. reset_cout($identificador);
  19. }
  20.  
  21. }
  22. // entrada salida , entrada salida
  23. if ($tipo == '2') {
  24. if ($count_ == '1') {
  25. add_entrada($identificador,$nombre);
  26. }
  27. if ($count_ == '2') {
  28. add_salida($identificador,$nombre);
  29. }
  30. if ($count_ == '3') {
  31. add_entrada($identificador,$nombre);
  32. }
  33. if ($count_ == '4') {
  34. add_salida($identificador,$nombre);
  35. reset_cout($identificador);
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement