Uname: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
Software: Apache
PHP version: 5.6.40 [ PHP INFO ] PHP os: Linux
Server Ip: 217.160.0.194
Your Ip: 216.73.217.62
User: u72294154 (9179942) | Group: ftpusers (600)
Safe Mode: OFF
Disable Function:
NONE

name : impresion.php
<div id="impresion">
	<img src="/imagenes/comunes/logo.png" alt="<?=$NOMBRE_EMPRESA?>" id="logo-empresa" />
	<h3 class="referencia">
	<?=$inmueble->datos['referencia']?> - <?=$inmueble->datos['tipologia']?> <?=$tmiqEn?> <?=$inmueble->datos['localidad']?>
	<?if($inmueble->datos['tarifas']){?>
		<span class="precio"><?=($inmueble->datos['precio'] > 0 ? "<sup>$tmiqDesde</sup> ".format_number($inmueble->datos['precio'],$idioma).' €' : $tmiqConsultarPrecio)?></span>
	<?}else{?>
	<span class="precio"><?=($inmueble->datos['precio'] > 0 ? format_number($inmueble->datos['precio'],$idioma).' €'.($inmueble->datos['estado'] == 'alquiler' ? '/'.$tmiqMes : '') : $tmiqConsultarPrecio)?></span>
	<?}?>
	</h3>
	<?
	$imagen = '<img class="principal imagen" src="/imagenes/comunes/no-image.jpg" alt="'.$alt.'" />';
			
	if($inmueble->datos['imagen']){
		$imagen = '<img class="principal imagen" src="/image/inmuebles/'.$inmueble->datos['imagen'].'" alt="'.$alt.'" />';
	}
	?>
	<?=$imagen?>
	<h3><?=$tmiqDatosInmueble?></h3>
	<?if($inmueble->datos['tipologia'] != 'Terrenos'){?>
	<table>
	<tr>
	<td>
	<table>
		<tr>
		<th><?=$tmiqSupConstruida?></th><td><?=($inmueble->datos['sup_construida'] > 0 ? format_number($inmueble->datos['sup_construida'],$idioma) : '-')?> m<sup>2</sup></td>
		</tr>
		<tr>
		<th><?=$tmiqHabitaciones?></th><td><?=($inmueble->datos['habitaciones'] > 0 ? $inmueble->datos['habitaciones'] : '-')?></td>
		</tr>
		<tr>
		<th><?=$tmiqSupUtil?></th><td><?=($inmueble->datos['sup_construida'] > 0 ? format_number($inmueble->datos['sup_construida'],$idioma) : '-')?> m<sup>2</sup></td>
		</tr>
		<tr>
		<th><?=$tmiqBanos?></th><td><?=($inmueble->datos['banos'] > 0 ? $inmueble->datos['banos'] : '-')?></td>
		</tr>
		<tr>
		<th><?=$tmiqPlanta?></th><td><?=($inmueble->datos['planta'] != '' ? $inmueble->datos['planta'] : '-')?></td>
		</tr>
		<tr>
		<th><?=$tmiqAseos?></th><td><?=($inmueble->datos['aseos'] > 0 ? $inmueble->datos['aseos'] : '-')?></td>
		</tr>
	</table>
	</td>
	<td>
<?
	$exterior = array(
						array('label'=>$tmiqOrientacion, 'field'=>'orientacion'),
						array('label'=>$tmiqParcela, 'field'=>'parcela','unit'=>'m<sup>2</sup>','extra'=>'sup_parcela'),
						array('label'=>$tmiqJardin, 'field'=>'jardin','unit'=>'m<sup>2</sup>','extra'=>'sup_jardin'),
						array('label'=>$tmiqTerraza, 'field'=>'terraza','unit'=>'m<sup>2</sup>','extra'=>'sup_terraza'),
						array('label'=>$tmiqBalcon, 'field'=>'balcon','unit'=>'m<sup>2</sup>','extra'=>'sup_balcon'),
						array('label'=>$tmiqPiscina, 'field'=>'piscina'),
						array('label'=>$tmiqGaraje, 'field'=>'garaje'),
						array('label'=>$tmiqTrastero, 'field'=>'trastero'),	
					);
?>
	<?
	$hayExteriores = false;
	foreach($exterior as $caracteristica){
	
		if($inmueble->datos[$caracteristica['field']] != 'no' && $inmueble->datos[$caracteristica['field']] != ''){
			if($caracteristica['extra'] && $inmueble->datos[$caracteristica['extra']] > 0){
				$hayExteriores .= "<tr><th>{$caracteristica['label']}</th><td>{$inmueble->datos[$caracteristica['extra']]} {$caracteristica['unit']}</td></tr>";
			}
			else{
				$hayExteriores .= "<tr><th>{$caracteristica['label']}</th><td>".ucfirst($inmueble->datos[$caracteristica['field']])."</td></tr>";
			}
		}
	}
	
	if($hayExteriores){
		echo "<table>$hayExteriores</table>";
	}
	
	?>

</td><td>
<?
	$interior = array(
						array('label'=>$tmiqCalefaccion, 'field'=>'calefaccion'),
						array('label'=>$tmiqAmueblado, 'field'=>'amueblado'),
						array('label'=>$tmiqArmarios, 'field'=>'armarios'),
						array('label'=>$tmiqAscensor, 'field'=>'ascensor'),
						array('label'=>$tmiqCocina, 'field'=>'cocina'),
						array('label'=>$tmiqCarpinteria, 'field'=>'carpinteria')
					);
?>
	<?
	$hayInteriores = false;
	foreach($interior as $caracteristica){
	
		if($inmueble->datos[$caracteristica['field']] != 'no' && $inmueble->datos[$caracteristica['field']] != ''){
			if($caracteristica['extra'] && $inmueble->datos[$caracteristica['extra']] > 0){
				$hayInteriores .= "<tr><th>{$caracteristica['label']}</th><td>{$inmueble->datos[$caracteristica['extra']]} {$caracteristica['unit']}</td></tr>";
			}
			else{
				$hayInteriores .= "<tr><th>{$caracteristica['label']}</th><td>".ucfirst($inmueble->datos[$caracteristica['field']])."</td></tr>";
			}
		}
	}
	if($hayInteriores){
		echo "<table>$hayInteriores</table>";
	}
	?>
</td></tr>
</table>
<?}
	else{
?>
<table>
<tr>
<td>
	<table>
		<tr>
		<th><?=$tmiqSuperficie?></th><td><?=($inmueble->datos['superficie_terreno'] > 0 ? format_number($inmueble->datos['superficie_terreno'],$idioma) : '-')?> m<sup>2</sup></td>
		</tr>
		<tr>
		<th><?=$tmiqDesnivel?></th><td><?=($inmueble->datos['desnivel_terreno'] != '' ? $inmueble->datos['desnivel_terreno'] : '-')?></td>
		</tr>
	</table>
	</td>
	<td>
	<table>
		<tr>
		<th><?=$tmiqTipoTerreno?></th><td><?=($inmueble->datos['tipo_terreno'] != ''  ? $inmueble->datos['tipo_terreno'] : '-')?></td>
		</tr>
		<tr>
		<th><?=$tmiqSuministros?></th><td><?=($inmueble->datos['suministros_terreno'] != '' ? $inmueble->datos['suministros_terreno'] : '-')?></td>
		</tr>
	</table>
	</td>
	<td>
	<table>
		<tr>
		<th><?=$tmiqVistas?></th><td><?=($inmueble->datos['vistas_terreno'] != '' ? $inmueble->datos['vistas_terreno'] : '-')?></td>
		</tr>
		<tr>
		<th></th><td></td>
		</tr>
	</table>
</td>
</tr>
</table>
<?}?>
<h3><?=$tmiqDescripcion?></h3>
<?/*<?=(strpos('<p>',$inmueble->datos['descripcion_larga']) !== FALSE ? strip_tags($inmueble->datos['descripcion_larga'],'<p><strong><em><a>') : '<p>'.strip_tags($inmueble->datos['descripcion_larga'],'<p><strong><em><a>').'</p>')?>*/?>
<?
	if(strpos($inmueble->datos['descripcion'],"<p>") !== FALSE){
		echo $inmueble->datos['descripcion';
				
	}
	else{
		$descripcion = nl2br( strip_tags($inmueble->datos['descripcion'],'<p><strong><em><a>') );
		$descripcion = str_replace(array('<br>','<br />'),'</p><p>',$descripcion);
		echo $descripcion;
	}
?>
<?if($inmueble->datos['estado'] == 'alquiler-vacacional'){?>
<h3><?=$tmiqEquipamientos2?></h3>
<table>
	<tr>
		<td class="half">
		<?=(strpos('<p>',$inmueble->datos['equipamiento']) !== FALSE ? strip_tags($inmueble->datos['equipamiento'],'<p><strong><em><a>') : '<p>'.strip_tags($inmueble->datos['equipamiento'],'<p><strong><em><a>').'</p>')?>
		<td>
		<td class="half">
			<table class="tarifas">
		<tr><th></th><th><?=$tmiqSemana?></th><th><?=$tmiqQuincena?></th><th><?=$tmiqMes?></th></tr>
		<?
			// volcar_variable($inmueble->datos['tarifas']);
			$meses = array(1=>'Enero',2=>'Febrero',3=>'Marzo',4=>'Abril',5=>'Mayo',6=>'Junio',7=>'Julio',8=>'Agosto',9=>'Septiembre',10=>'Octubre',11=>'Noviembre',12=>'Diciembre');
	
			foreach($inmueble->datos['tarifas'] as $tarifa){
				
				echo "<tr$class>";
				echo '<td class="right">'.$meses[date('n',strtotime($tarifa['mes']))].'</td>';
				echo '<td>'.($tarifa['precio_semana'] > 0 ? format_number($tarifa['precio_semana']).' €' : '-').'</td>';
				echo '<td>'.($tarifa['precio_quincena'] > 0 ? format_number($tarifa['precio_quincena']).' €' : '-').'</td>';
				echo '<td>'.($tarifa['precio_mes'] > 0 ? format_number($tarifa['precio_mes']).' €' : '-').'</td>';
				echo '</tr>';
				
				// if($class == ' class="even"')
					// $class = '';
				// else
					// $class = ' class="even"';
			}
		?>
	</table>
		</td>
	</tr>
</table>
<?}?>
<p id="pie-impresion"><?=strip_tags($tmiqDatosContacto)?> - <?=$tmiqTelefono?> - <?=$tmiqEmail?></p>
</div>
© 2026 GrazzMean