' .'

Rent prices - '.$row->description.'

' .'

 

'; mysql_free_result($result); echo '
'."\n" .''."\n" .''."\n"; $p = array( "0" => "Easter", "1" => "2º June", "2" => "1º July", "3" => "2º July", "4" => "1º August", "5" => "2º August", "6" => "1º Septem", "7" => "2º Septem" ); $c=count($p); for ($i = 0; $i < $c; $i++) { echo ''."\n"; } echo ''; # Averiguamos los distintos tipos $result=mysql_query("select numid,tipo from apartamentos",$link); $i=0; while($row=mysql_fetch_object($result)) { $tipo[$i] = $row->tipo; if ($i > 0) { $coincidence="no"; for ($m=0; $m<$i; $m++) { if ($tipo[$i] == $tipo[$m]) { $coincidence="yes"; $m=$i; } } if ($coincidence == "no") { $numid[$i] = $row->numid; $i++; } } else { $numid[$i] = $row->numid; $i++; } } $i = $i - 1; mysql_free_result($result); # Ordenamos la lista for ($j = 0; $j <= $i; $j++) { $result=mysql_query("select tipo from apartamentos where numid=$numid[$j]",$link); $row=mysql_fetch_object($result); $compa=$row->tipo; mysql_free_result($result); for ($k =$j+1; $k <= $i; $k++) { $result=mysql_query("select tipo from apartamentos where numid=$numid[$k]",$link); $row=mysql_fetch_object($result); $compb=$row->tipo; mysql_free_result($result); if ($compa > $compb) { $previous=$numid[$k]; $numid[$k]=$numid[$j]; $numid[$j]=$previous; $j=$j-1; $k=$i; } # Para ver como actua el algoritmo... # for ($l=0; $l<=$i; $l++) { # $result=mysql_query("select tipo from apartamentos where numid=$numid[$l]",$link); # $row=mysql_fetch_array ($result); # print ($row[0]); # print(" "); # mysql_free_result($result); # } # echo "
"; # for ($l=0; $l<=$i; $l++) { # print ($numid_ordered[$l]); # print(" "); # } # print("

"); } } # Preguntamos los precios de los tipos for ($j = 0; $j <= $i; $j++) { $result=mysql_query("select tipo,prec_ssanta,prec_2jun,prec_1jul,prec_2jul,prec_1ago,prec_2ago,prec_1sep,prec_2sep from apartamentos where numid=$numid[$j]",$link); $row=mysql_fetch_row ($result); echo ''; echo ''."\n"; $k++; } echo ''; } mysql_free_result($result); echo '

Date

'."\n" .'

--------

Type

'.$p[$i].'

'.$row[0].'

'."\n"; $k=1; while($row[$k]) { if ($row[$k] == "0") { $row[$k] = "consult"; } echo '

'.$row[$k].' ¤

'; close($link); ?>

Apartments type I are for long term rent. Prices and conditions to be consulted.

All our prices are expressed in EUROS. You may perform the convert to your currency in this link.
The prices may be changed by the enterprise without previus announce.

Our apartments are classified by their independent bedrooms and how many laying persons they admit. You may consult the description of each type here.

Terms:

· Easter: from April 3rd to 11th.
· 2º June: from June 15th to 30th.
· 1º July: from July 1st to 15th.
· 2º July: from July 16th to 31th.
· 1º August: from August 1st to 15th.
· 2º August: from August 16th to 31th.
· 1º Septem: from September 1st to 15th.
· 2º Septem: from September 16th to 30th.