extranet/includes/giant/templates/rapport/CompanyAddress.tpl.php

45 lines
923 B
PHP

<?php
function AfficheAdress($Adress, $config) {
static $info;
foreach ($Adress as $champ => $valeur)
{
if(!is_object($valeur))
$info .= $valeur . ';';
}
return ($info);
}
function _parsePeriod($period)
{
static $info = array();
static $indent = 0;
foreach($period as $value) {
foreach($value as $p => $val)
$info[$indent] .= $val .':';
$indent++;
}
foreach($info as $champ) {
$infos = explode(':', $champ);
foreach($infos as $row)
echo $row . ' ';
}
}
$adress = explode(';', AfficheAdress($CompanyAddress, $this->labelConfig));
?>
<a target="_blank" href="http://<?php echo $_GET['pays'];?>.mappy.com/#d=<?php echo $adress[0].'+'.$adress[1].'+'.$adress[2].'+'.$adress[3].'+'.$adress[3]?>&p=map">
<?php echo $adress[1]?>
<?php echo $adress[0]?><br />
<?php echo $adress[2]?>
<?php echo $adress[3]?>
<?php echo $adress[4]?>
</a>