Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include ('script.inc.php');
- ////////////////////////////////////////////////////
- $identificador = '232'; //test
- //$identificador = $_POST['id']; //produccion
- update_move($identificador); //Ejecucion INPORTANTE
- $nombre = get_nombre($identificador);
- $count_ = get_count($identificador);
- $tipo = get_tipo($identificador);
- // entrada salida
- if ($tipo == '1') {
- if ($count_ == '1') {
- add_entrada($identificador,$nombre);
- }
- if ($count_ == '2') {
- add_salida($identificador,$nombre);
- reset_cout($identificador);
- }
- }
- // entrada salida , entrada salida
- if ($tipo == '2') {
- if ($count_ == '1') {
- add_entrada($identificador,$nombre);
- }
- if ($count_ == '2') {
- add_salida($identificador,$nombre);
- }
- if ($count_ == '3') {
- add_entrada($identificador,$nombre);
- }
- if ($count_ == '4') {
- add_salida($identificador,$nombre);
- reset_cout($identificador);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement