require("../lib.proy.php"); require_once("../config.php"); $academico=chequeo_priv("gestion_biblioteca"); phpBook_header(); $conexion=conectar("gestor_biblio" ,"5j9j1k09"); if($accion=="BORRAR") { $borrado="delete from editorial_biblio where codigo_edit=$cod_edit_a and identificador=$institucion"; $in=pg_exec($conexion,$borrado); } if($accion=="MODIFICAR") { $modifica="update editorial_biblio set nombre_editorial='$nombre_editorial', nacionalidad_editorial='$nacionalidad' where codigo_edit=$cod_edit_a and identificador=$institucion"; $in=pg_exec($conexion,$modifica); } if($accion=="INSERTAR") { $inserta="insert into editorial_biblio (nombre_editorial, nacionalidad_editorial, identificador) values ('$nombre_editorial','$nacionalidad',$institucion)"; $in=pg_exec($conexion,$inserta); } $selec_edit="select nombre_editorial, nacionalidad_editorial,codigo_edit from editorial_biblio t0 where t0.identificador=$institucion"; $tabla_editorial=guardar_select_tabla($conexion,$selec_edit,$num_editorial); $selec="SELECT nombre_institucion FROM institucion WHERE identificador='$institucion'"; $tabla=guardar_select_tabla($conexion,$selec,$num); $centro=$tabla[0][0]; $centro_may=strtoupper($centro); echo "