64 lines
1.9 KiB
PHTML
64 lines
1.9 KiB
PHTML
<div id="tabs">
|
|
<ul>
|
|
<li><a href="#tabs-1">Critères Entreprise</a></li>
|
|
<li><a href="<?=$this->url(array('controller'=>'criteres', 'action'=>'economique'))?>">Situation économique</a></li>
|
|
<li><a href="<?=$this->url(array('controller'=>'criteres', 'action'=>'geographique'))?>">Secteur géographique</a></li>
|
|
<li><a href="<?=$this->url(array('controller'=>'criteres', 'action'=>'juridique'))?>">Situation juridique</a></li>
|
|
<li><a href="<?=$this->url(array('controller'=>'criteres', 'action'=>'financiere'))?>">Situation financière</a></li>
|
|
</ul>
|
|
<div id="tabs-1">
|
|
<?=$this->action('entreprise', 'criteres')?>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="result">
|
|
<div id="critères">
|
|
<div id="accordion">
|
|
<h3><a href="">Résultats</a></h3>
|
|
<div style="padding:0px;height:100px;">
|
|
<div id="comptage" style="margin-bottom:40px;">
|
|
Nombre sélectionnées :
|
|
<span style="font-weight:800;" id="count"><?php echo ((!empty($this->total))?$this->total:'-');?></span>
|
|
<br/>
|
|
(dont <span style="font-weight:800;" id="insee"><?php echo ((!empty($this->insee))?$this->insee:'-');?></span> unité(s) insee)
|
|
</div>
|
|
<div id="attente" style="text-align:center;display:none;">
|
|
<img width="15%" src="/themes/default/images/ajax.gif" /><br />
|
|
Chargement...
|
|
</div>
|
|
</div>
|
|
<?php echo $this->action('criteres', 'index');?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$(function() {
|
|
var icons = {
|
|
header: "ui-icon-circle-arrow-e",
|
|
headerSelected: "ui-icon-circle-arrow-s"
|
|
};
|
|
$( "#accordion" ).accordion({
|
|
icons: icons
|
|
});
|
|
$( "#toggle" ).button().toggle(function() {
|
|
$( "#accordion" ).accordion( "option", "icons", false );
|
|
}, function() {
|
|
$( "#accordion" ).accordion( "option", "icons", icons );
|
|
});
|
|
});
|
|
|
|
$(function() {
|
|
$( "#tabs" ).tabs({
|
|
cache: true,
|
|
cookie: {
|
|
expires: 1
|
|
},
|
|
ajaxOptions: {
|
|
error: function( xhr, status, index, anchor ) {
|
|
$( anchor.hash ).html("Erreur lors du chargement...");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
</script>
|