class Empresa{
var $Nif;
var $Nombre;
var $Direccion;
var $CP;
var $Ciudad;
var $Provincia;
var $Telefono;
var $Email;
var $Fax;
var $NombreEntrega;
var $DireccionEntrega;
var $CPEntrega;
var $ProvinciaEntrega;
var $TelefonoEntrega;
var $EmailEntrega;
var $FaxEntrega;
var $TelefonoAC;
var $EmailAC;
var $HorarioAC;
var $QuienesSomos;
/* Funcion de clase */
function Empresa(){
$this->Nif="";
$this->Nombre="";
$this->Direccion="";
$this->CP="";
$this->Ciudad="";
$this->Provincia="";
$this->Telefono="";
$this->Email="";
$this->Fax="";
$this->NombreEntrega="";
$this->DireccionEntrega="";
$this->CPEntrega="";
$this->ProvinciaEntrega="";
$this->TelefonoEntrega="";
$this->EmailEntrega="";
$this->FaxEntrega="";
$this->TelefonoAC="";
$this->EmailAC="";
$this->HorarioAC="";
$this->QuienesSomos="";
}
/* Funcion para el almacenamiento del enlace actual en la base de datos */
function Almacenar($conexion){
$accion="INSERT INTO P0114_empresa (Nif,Nombre,Direccion,CP,Ciudad,Provincia,
Telefono,Email,Fax,NombreEntrega,DireccionEntrega,CPEntrega,CiudadEntrega,
ProvinciaEntrega,TelefonoEntrega,EmailEntrega,FaxEntrega,TelefonoAC,EmailAC,HorarioAC,
QuienesSomos)
VALUES ('".addslashes($this->Nif)."','".addslashes($this->Nombre)."','".addslashes($this->Direccion)."',
'".addslashes($this->CP)."','".addslashes($this->Ciudad)."','".addslashes($this->Provincia)."','".addslashes($this->Telefono)."','".addslashes($this->Email)."',
'$this->Fax','".addslashes($this->NombreEntrega)."','".addslashes($this->DireccionEntrega)."','".addslashes($this->CPEntrega)."',
'".addslashes($this->CiudadEntrega)."', '".addslashes($this->ProvinciaEntrega)."','".addslashes($this->TelefonoEntrega)."','".addslashes($this->EmailEntrega)."',
'$this->FaxEntrega','$this->TelefonoAC','$this->EmailAC','".addslashes($this->HorarioAC)."','".addslashes($this->QuienesSomos)."')";
mysqli_query($conexion,$accion);
//print($accion);
}
/* Funcion para la actualizacion de la cantidad de producto */
function Actualizar($conexion){
$accion="UPDATE P0114_empresa SET Nif='".addslashes($this->Nif)."',
Nombre='".addslashes($this->Nombre)."',
Direccion='".addslashes($this->Direccion)."',
CP='".addslashes($this->CP)."',
Ciudad='".addslashes($this->Ciudad)."',
Provincia='".addslashes($this->Provincia)."',
Telefono='".addslashes($this->Telefono)."',
Email='".addslashes($this->Email)."',
Fax='$this->Fax',
NombreEntrega='".addslashes($this->NombreEntrega)."',
DireccionEntrega='".addslashes($this->DireccionEntrega)."',
CPEntrega='".addslashes($this->CPEntrega)."',
CiudadEntrega='".addslashes($this->CiudadEntrega)."',
ProvinciaEntrega='".addslashes($this->ProvinciaEntrega)."',
TelefonoEntrega='".addslashes($this->TelefonoEntrega)."',
EmailEntrega='".addslashes($this->EmailEntrega)."',
FaxEntrega='$this->FaxEntrega',
TelefonoAC='$this->TelefonoAC',
EmailAC='$this->EmailAC',
HorarioAC='".addslashes($this->HorarioAC)."',
QuienesSomos='".addslashes($this->QuienesSomos)."'";
//print($accion);
mysqli_query($conexion,$accion);
return ($accion);
}
/* Funcion para borrar una compra de la base de datos */
function Eliminar($conexion){
$accion="DELETE FROM P0114_empresa WHERE Referencia='".$this->Referencia."'";
mysqli_query($conexion,$accion);
//print($accion);
}
/* Consultas */
function Consulta($conexion,$restricciones){
$accion="SELECT * FROM P0114_empresa ";
if ($restricciones!=""){
$accion=$accion." ".$restricciones;
}
$this->consulta=mysqli_query($conexion,$accion);
return($accion);
}
function FilasEnConsulta(){
$aux=mysqli_num_rows($this->consulta);
return($aux);
}
function EjecutarConsulta($fil){
mysqli_data_seek($this->consulta, $fil);
/* obtener fila */
$row = mysqli_fetch_row($this->consulta);
$this->Nif=$row[0];
$this->Nombre=$row[1];
$this->Direccion=stripcslashes($row[2]);
$this->CP=$row[3];
$this->Ciudad=$row[4];
$this->Provincia=$row[4];
$this->Telefono=$row[6];
$this->Email=$row[7];
$this->Fax=$row[8];
$this->NombreEntrega=$row[9];
$this->DireccionEntrega=stripcslashes($row[10]);
$this->CPEntrega=$row[11];
$this->CiudadEntrega=$row[12];
$this->ProvinciaEntrega=$row[13];
$this->TelefonoEntrega=$row[14];
$this->EmailEntrega=$row[15];
$this->FaxEntrega=$row[16];
$this->TelefonoAC=$row[17];
$this->EmailAC=$row[18];
$this->HorarioAC=stripcslashes($row[19]);
$this->QuienesSomos=stripcslashes($row[20]);
}
}
?>
Parse error: Unclosed '{' on line 181 in /var/www/vhosts/granadaesnoticia.com/granadaesnoticia.com/admin/librerias/frontend.php on line 634