session_start(); require_once ('../../../config.php'); $academico=chequeo_priv("gestion_biblioteca"); include("../../../lib.proy.php"); include("../../../lib.proy.02.php"); $conexion=conectar("gestor_biblio" ,"5j9j1k09"); OpenTable('GesBib','Editoriales','../../../../'); 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 order by nombre_editorial"; $tabla_editorial=guardar_select_tabla($conexion,$selec_edit,$num_editorial); ?>