issue #0001627: search form and entreprise identity
This commit is contained in:
parent
6f5b29be85
commit
cf7f39d741
35
application/views/mobile/helpers/NewsDate.php
Normal file
35
application/views/mobile/helpers/NewsDate.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
Class Zend_View_Helper_NewsDate extends Zend_View_Helper_Abstract
|
||||
{
|
||||
protected $mois = array (
|
||||
'Jan' => 1,
|
||||
'Feb' => 2,
|
||||
'Mar' => 3,
|
||||
'Apr' => 4,
|
||||
'May' => 5,
|
||||
'Jun' => 6,
|
||||
'Jul' => 7,
|
||||
'Aug' => 8,
|
||||
'Sep' => 9,
|
||||
'Oct' => 10,
|
||||
'Nov' => 11,
|
||||
'Dev' => 12,
|
||||
);
|
||||
|
||||
public function NewsDate($date)
|
||||
{
|
||||
$tmp = explode(', ', $date);
|
||||
$tabDate = explode(' ', $tmp[1]);
|
||||
$tabTime = explode(':', $tabDate[3]);
|
||||
$timestamp = gmmktime(
|
||||
$tabTime[0]-1,
|
||||
$tabTime[1],
|
||||
$tabTime[2],
|
||||
$this->mois[$tabDate[1]],
|
||||
$tabDate[0],
|
||||
$tabDate[2]
|
||||
);
|
||||
$pubDate = date('d/m/Y à H:i', $timestamp);
|
||||
return $pubDate;
|
||||
}
|
||||
}
|
35
application/views/mobile/scripts/identite/facade.phtml
Normal file
35
application/views/mobile/scripts/identite/facade.phtml
Normal file
@ -0,0 +1,35 @@
|
||||
<?php if ($this->source == 'google'):?>
|
||||
|
||||
<div id="infogeo_photo">
|
||||
<?=$this->action('streetview', 'identite', null, array(
|
||||
'lat' => $this->infos->GeoLat,
|
||||
'lon' => $this->infos->GeoLon,
|
||||
'siret' => $this->infos->Siret,
|
||||
));?>
|
||||
</div>
|
||||
|
||||
<?php elseif ($this->source == 'mappy'):?>
|
||||
<div><img id="pp-cb-thumb" width="300px" /></div>
|
||||
<script src="<?=$this->lienJs?>"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
var photoService = new Mappy.api.visiocity.PhotoService();
|
||||
var geo = new Mappy.api.geolocation.Geocoder();
|
||||
|
||||
var address = "<?=$this->adresse?>";
|
||||
geo.geocode(address, function(result) {
|
||||
photoService.search(result[0], "f", serviceHandler);
|
||||
}, function(error) {});
|
||||
|
||||
var serviceHandler = function(result) {
|
||||
if (result instanceof Mappy.api.visiocity.Frontage) {
|
||||
var current = result.getCurrent();
|
||||
var img = $('<img src="' + current.getURL(320, null) +
|
||||
'" alt="' + current.getDescription() +
|
||||
'" width="300px" />');
|
||||
$('#pp-cb-thumb').replaceWith(img);
|
||||
}
|
||||
};
|
||||
});
|
||||
</script>
|
||||
<?php endif;?>
|
18
application/views/mobile/scripts/identite/fiche-item.phtml
Normal file
18
application/views/mobile/scripts/identite/fiche-item.phtml
Normal file
@ -0,0 +1,18 @@
|
||||
<?php if ( $this->texte ) {?>
|
||||
<tr>
|
||||
<td width="50" class="aide">
|
||||
<?php if ( !empty($this->aide) ) {?>
|
||||
<img src="/themes/default/images/interfaces/aideligne.png" width="16" height="16" style="display:none;"/>
|
||||
<div id="<?=$this->id?>" style="display:none;"><?=$this->aide?></div>
|
||||
<?php } ?></td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->label?></td>
|
||||
<?php
|
||||
if (!empty($this->titre)) {
|
||||
$titre = ' title="'.$this->titre.'"';
|
||||
} else {
|
||||
$titre = '';
|
||||
}
|
||||
?>
|
||||
<td width="350" class="StyleInfoData"<?=$titre?>><?=$this->texte?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
84
application/views/mobile/scripts/identite/fiche.phtml
Normal file
84
application/views/mobile/scripts/identite/fiche.phtml
Normal file
@ -0,0 +1,84 @@
|
||||
<div id="center">
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<h2 class="titre">FICHE D'IDENTITÉ</h2>
|
||||
<?php }?>
|
||||
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<?php
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Siret']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['SiretSiege']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['TvaNumero']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Isin']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Capitalisation']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->logo);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NumRC']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['AutreId']);
|
||||
//echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NumRM']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Actif']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['SituationJuridique']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['AutreSiren']);
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div data-role="content">
|
||||
<div data-role="collapsible-set">
|
||||
<div data-role="collapsible">
|
||||
<h3>Raison sociale & Coordonnées</h3>
|
||||
<table>
|
||||
<?php
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['RaisonSociale']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NomCommercial']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['EnseigneSigle']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['FormeJuridique']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateImmat']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateCreaEn']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateCreaEt']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Adresse']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Zones']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Tel']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Fax']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Web']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Mail']);
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div data-role="collapsible">
|
||||
<h3>Activité(s) & Chiffre d'affaires</h3>
|
||||
<table>
|
||||
<?php
|
||||
//Remplace Siren pour texte
|
||||
//$this->dBlock['ActiviteEn']['texte'] = $this->RemplaceSiren($this->dBlock['ActiviteEn']['texte']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ActiviteEn']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ActiviteEt']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Naf4']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Nace']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NatureActivite']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['SurfaceMagasin']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['OrigineFond']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['TypeExploitation']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Saisonnalite']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NbEtabActif']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Capital']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ChiffreAffaire']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Dirigeants']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Effectif']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['EffectifEtab']);
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
<div data-role="collapsible">
|
||||
<h3>Localisation géographique</h3>
|
||||
<?=$this->action('geo', 'identite', null, array('infos' => $this->infos));?>
|
||||
</div>
|
||||
<div data-role="collapsible">
|
||||
<h3>Information presse (Source Google News ©)</h3>
|
||||
<?=$this->action('news', 'identite');?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
37
application/views/mobile/scripts/identite/geo.phtml
Normal file
37
application/views/mobile/scripts/identite/geo.phtml
Normal file
@ -0,0 +1,37 @@
|
||||
<h2>Localisation géographique</h2>
|
||||
<div class="paragraph">
|
||||
<div id="infogeo" class="clearfix">
|
||||
<div id="infogeo_txt">
|
||||
<?php if ( $this->infos->GeoLat && $this->infos->GeoLon ):?>
|
||||
<span id=geolocalisation>
|
||||
<b>Information géographique :</b><br/>
|
||||
Latitude : <?=$this->decLat?> (<?=$this->infos->GeoLat?>)<br />
|
||||
Longitude : <?=$this->decLon?> (<?=$this->infos->GeoLon?>)<br />
|
||||
</span>
|
||||
<a id="lien-google" href="<?=$this->mapsHref?>" target="_blank">
|
||||
Afficher l'adresse sur Google Map ©</a><br/>
|
||||
<br/>
|
||||
<?endif;?>
|
||||
<b>Code commune / Rivoli :</b><br/>
|
||||
<?=$this->infos->Dept.' '.$this->infos->codeCommune.' / '.$this->infos->Rivoli; ?>
|
||||
<?php
|
||||
if (count($this->infos->InfosIris)>0){
|
||||
$InfosIris = $this->infos->InfosIris;
|
||||
$codComIris = str_replace($InfosIris->codIris, '', $InfosIris->codComIris);
|
||||
?>
|
||||
<br/><br/><b>Iris :</b>
|
||||
<?php if (intval($InfosIris->codIris) == 0){ ?>
|
||||
<br/>Commune non découpée en Iris
|
||||
<?php } else {?>
|
||||
<br/>Code : <?=$codComIris?> <?=$InfosIris->codIris?>
|
||||
<br/>Libellé : <a title="Consulter le plan d'assemblage de la commune" href="<?=$this->url(array('controller'=>'identite', 'action'=>'iris', 'code'=>$codComIris), null, true)?>" target="_blank"><?=$InfosIris->libIris?></a>
|
||||
<img title="<?=$InfosIris->typIris?>" style="vertical-align:middle;" src="/themes/default/images/info.gif">
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<?php if($this->facade):?>
|
||||
<?=$this->action('facade', 'identite', null, array('infos' => $this->infos));?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1 @@
|
||||
<img src="/fichier/imgcache/<?php echo $this->name;?>" />
|
16
application/views/mobile/scripts/identite/news.phtml
Normal file
16
application/views/mobile/scripts/identite/news.phtml
Normal file
@ -0,0 +1,16 @@
|
||||
<?php if(!$this->disable):?>
|
||||
<div id="news">
|
||||
<h2>Information presse (Source Google News ©)</h2>
|
||||
<div id="paragraph">
|
||||
<ul>
|
||||
<?php foreach($this->items as $item):?>
|
||||
<li style="padding-top:2px;">
|
||||
<a target="_blank" href="<?=$item->link()?>">
|
||||
Le <?=$this->NewsDate($item->pubDate())?> - <?=$item->title()?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach;?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
@ -25,16 +25,7 @@ if (!empty($this->info)) {
|
||||
<?php
|
||||
foreach ( $this->liste as $item ) {
|
||||
?>
|
||||
<li style="list-style-type:decimal;border: 1px solid #efefef;
|
||||
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.60);
|
||||
-moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.60);
|
||||
-webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.60);
|
||||
-moz-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
-khtml-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
behavior: url(/pie.htc);
|
||||
padding: 17px;" class="StyleInfoData" type="1" value="<?=$item['position']?>">
|
||||
<li class="StyleInfoData liste_li" type="1" value="<?=$item['position']?>">
|
||||
<b><a title="Voir la fiche d'identité de cet établissement" href="<?=$this->url(array(
|
||||
'controller' => 'identite',
|
||||
'action' => 'fiche',
|
||||
|
@ -1,3 +1,32 @@
|
||||
.fbuttons {
|
||||
text-align: right;
|
||||
text-align: right;
|
||||
}
|
||||
#center {
|
||||
background-color: #FFF;
|
||||
padding: 5px 0;
|
||||
}
|
||||
.titre {
|
||||
clear: both;
|
||||
margin: 5px;
|
||||
padding: 5px;
|
||||
background: #606060;
|
||||
color: #FFF;
|
||||
font: 600 1.4em Arial, Verdana, Sans-serif;
|
||||
letter-spacing: 1px;
|
||||
line-height: 1.2em;
|
||||
}
|
||||
.liste_li {
|
||||
list-style-type: decimal;
|
||||
border: 1px solid #efefef;
|
||||
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.60);
|
||||
-moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.60);
|
||||
-webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.60);
|
||||
-moz-border-radius: 7px;
|
||||
-webkit-border-radius: 7px;
|
||||
-khtml-border-radius: 7px;
|
||||
border-radius: 7px;
|
||||
behavior: url(/pie.htc);
|
||||
padding: 17px;
|
||||
margin-bottom: 11px;
|
||||
background: #FFF;
|
||||
}
|
Loading…
Reference in New Issue
Block a user