$res[0]['id_supervisor'] = $res[0]['id_supervisor'][0]; $res[0]['id_turno'] = $objturno->searchDB($res[0]['id_turno'], 'id', 1); $res[0]['id_turno'] = $res[0]['id_turno'][0]; $res[0]['id_trayecto'] = $objtrayecto->searchDB($res[0]['id_trayecto'], 'id', 1); $res[0]['id_trayecto'] = $res[0]['id_trayecto'][0]; $res[0]['id_configuracion_vehiculo'] = $objconfiguracion_vehiculo->searchDB($res[0]['id_configuracion_vehiculo'], 'id', 1); $res[0]['id_configuracion_vehiculo'] = $res[0]['id_configuracion_vehiculo'][0]; $res[0]['id_estado_carga'] = $objestado_carga->searchDB($res[0]['id_estado_carga'], 'id', 1); $res[0]['id_estado_carga'] = $res[0]['id_estado_carga'][0]; echo json_encode($res[0]); } else { echo json_encode(0); } break; case 'list': $res = $objregistro->listDB(); if (is_array($res)) { foreach ($res as &$act) { $act['id_conductor'] = $objconductor->searchDB($act['id_conductor'], 'id', 1); $act['id_conductor'] = $act['id_conductor'][0]; $act['id_supervisor'] = $objsupervisor->searchDB($act['id_supervisor'], 'id', 1); $act['id_supervisor'] = $act['id_supervisor'][0]; $act['id_turno'] = $objturno->searchDB($act['id_turno'], 'id', 1); $act['id_turno'] = $act['id_turno'][0]; $act['id_trayecto'] = $objtrayecto->searchDB($act['id_trayecto'], 'id', 1); $act['id_trayecto'] = $act['id_trayecto'][0]; $act['id_configuracion_vehiculo'] = $objconfiguracion_vehiculo->searchDB($act['id_configuracion_vehiculo'], 'id', 1); $act['id_configuracion_vehiculo'] = $act['id_configuracion_vehiculo'][0]; $act['id_estado_carga'] = $objestado_carga->searchDB($act['id_estado_carga'], 'id', 1); $act['id_estado_carga'] = $act['id_estado_carga'][0]; }
</h4> </div> <div id="cp1" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="hp1"> <div class="panel-body"> <iframe style='width: 100%;height:700px;' frameborder="0" id="frame_procesos"></iframe> <button type='button' class='btn btn-danger' onclick='fin()'>Finalizar</button> <button type='button' class='btn btn-warning' onclick='cancelar()'>Cancelar</button> </div> </div> </div> </form> <hr/> <?php include_once 'nucleo/registro.php'; $obj = new registro(); $objs = $obj->listDB(); include_once 'nucleo/conductor.php'; include_once 'nucleo/supervisor.php'; include_once 'nucleo/turno.php'; include_once 'nucleo/trayecto.php'; include_once 'nucleo/configuracion_vehiculo.php'; include_once 'nucleo/estado_carga.php'; include_once 'nucleo/acople.php'; ?> <div class='contenedor-tabla'> <table id='tb' class='display' cellspacing='0' width='100%'> <thead> <tr> <th>Id</th> <th>Conductor</th> <th>Supervisor</th>