la gestion des modes

This commit is contained in:
Damien LASSERRE 2012-04-18 12:34:49 +00:00
parent 619da73aae
commit 8932eb138a
5 changed files with 149 additions and 88 deletions

View File

@ -2,9 +2,9 @@
</div> -->
<div id="entreprise">
<a href="" style="background-color: silver;padding:5px;border-left:1px solid black">Mode Simplifié</a><a href="" style="border-left:1px solid black;padding:5px;background-color: silver;">Mode Avancé</a>
<span style="padding:5px;float:right;margin-top:-5px;"><?php echo date('d M Y h:i');?></span>
<hr style="margin-top:5px;" />
<span style="text-align:right;padding:5px;margin-top:-5px;"><?php echo date('d M Y h:i');?></span>
<hr />
<div id="s_entreprise">
<ul id="fieldsblock">
<li id="siege"><?php echo $this->Field('siege', $this->fields->get('siege'));?></li>
<li id="sirenGrp" ><?php echo $this->Field('sirenGrp', $this->fields->get('sirenGrp'));?></li>
@ -12,17 +12,29 @@
<li id="fax" ><?php echo $this->Field('fax', $this->fields->get('fax'));?></li>
<li id="web" ><?php echo $this->Field('web', $this->fields->get('web'));?></li>
<li id="mail" ><?php echo $this->Field('mail', $this->fields->get('mail'));?></li>
<li id="presentRcs" ><?php echo $this->Field('presentRcs', $this->fields->get('presentRcs'));?></li>
<li id="presentRcs" ><?php echo $this->Field('present cs', $this->fields->get('presentRcs'));?></li>
<li id="adrDom" ><?php echo $this->Field('adrDom', $this->fields->get('adrDom'));?></li>
<li id="dirNom" ><?php echo $this->Field('dirNom', $this->fields->get('dirNom'));?></li>
<li id="li_dateCrea_etab" ><?php echo $this->Field('dateCrea_etab', $this->fields->get('dateCrea_etab'));?></li>
<li id="part" ><?php echo $this->Field('part', $this->fields->get('part'));?></li>
</ul>
</div>
<div id="a_entreprise" style="display:none">
<fieldset style="border:1px solid silver;padding:5px;">
<legend>Critères Avancés</legend>
<ul id="fieldsblock">
<li id="nbMPublic" ><?php echo $this->Field('nbMPubli', $this->fields->get('nbMPubli'));?></li>
<li id="li_dateCrea_etab" ><?php echo $this->Field('dateCrea_ent',$this->fields->get('dateCrea_ent'));?></li>
<li id="li_dateCrea_etab" ><?php echo $this->Field('dateCrea_etab', $this->fields->get('dateCrea_etab'));?></li>
<li id="action" ><?php echo $this->Field('action', $this->fields->get('action'));?></li>
<li id="nbActio" ><?php echo $this->Field('nbActio', $this->fields->get('nbActio'));?></li>
<li id="part" ><?php echo $this->Field('part', $this->fields->get('part'));?></li>
<li id="nbPart" ><?php echo $this->Field('nbPart', $this->fields->get('nbPart'));?></li>
</ul>
</fieldset>
</div>
<hr style="margin-top:5px;" />
<p style="margin-top:6px;">
<a class="mode" id="a_entreprise" style="cursor:pointer;border-left:1px solid black;padding:5px;background-color: silver;">Avancé</a>
</p>
</div>
<div id="link">
<a class="resetFamille" id="entreprise">Réinitialiser les critères entreprises</a>

View File

@ -1,4 +1,7 @@
<div id="financiere">
<span style="text-align:right;padding:5px;margin-top:-5px;"><?php echo date('d M Y h:i');?></span>
<hr />
<div id="s_financier">
<ul id="fieldsblock" style="width:100%;height:100%;">
<li style="background: none; height:80px;">
<div id="bilType_ex" class="exclusion" style="display:none">
@ -30,8 +33,14 @@
</div>
Valeurs exclusions : <input value="1" type="checkbox" class="checkbox_ex" name="bilTca" />
</li>
<li><?php echo $this->Field('bilEE', $this->fields->get('bilEE'));?></li>
<li><?php echo $this->Field('bilFL', $this->fields->get('bilFL'));?></li>
</ul>
</div>
<div id="a_financiere" style="display:none">
<fieldset style="border:1px solid silver;padding:2px;">
<legend>Critères Avancés</legend>
<ul id="fieldsblock">
<li><?php echo $this->Field('bilEE', $this->fields->get('bilEE'));?></li>
<li><?php echo $this->Field('bilFK', $this->fields->get('bilFK'));?></li>
<li><?php echo $this->Field('bilFR', $this->fields->get('bilFR'));?></li>
<li><?php echo $this->Field('bilGF', $this->fields->get('bilGF'));?></li>
@ -44,6 +53,12 @@
<li><?php echo $this->Field('bilHN', $this->fields->get('bilHN'));?></li>
<li><?php echo $this->Field('bilYP', $this->fields->get('bilYP'));?></li>
</ul>
</fieldset>
</div>
<hr style="margin-top:5px;" />
<p style="margin-top:6px;">
<a class="mode" id="a_financiere" style="cursor:pointer;border-left:1px solid black;padding:5px;background-color: silver;">Avancé</a>
</p>
</div>
<div style="text-align:right;margin-top:20px;">
<a class="resetFamille" id="financier">Réinitialiser les critères financiers</a>

View File

@ -1,4 +1,7 @@
<div id="juridique">
<span style="text-align:right;padding:5px;margin-top:-5px;"><?php echo date('d M Y h:i');?></span>
<hr />
<div id="s_juridique">
<ul id="fieldsblock">
<li><?php echo $this->Field('cj', $this->fields->get('cj'));?></li>
<li>
@ -18,10 +21,22 @@
</li>
<li><?php echo $this->Field('actifEco', $this->fields->get('actifEco'));?></li>
<li><?php echo $this->Field('procolHisto', $this->fields->get('procolHisto'));?></li>
<li><?php echo $this->Field('tvaIntraValide', $this->fields->get('tvaIntraValide'));?></li>
<li><?php echo $this->Field('dateImmat', $this->fields->get('dateImmat'));?></li>
</ul>
</div>
<div id="a_juridique" style="display:none">
<fieldset style="border:1px solid silver;padding:2px;">
<legend>Critères Avancés</legend>
<ul id="fieldsblock">
<li><?php echo $this->Field('tvaIntraValide', $this->fields->get('tvaIntraValide'));?></li>
</ul>
</fieldset>
</div>
<hr style="margin-top:5px;" />
<p style="margin-top:6px;">
<a class="mode" id="a_juridique" style="cursor:pointer;border-left:1px solid black;padding:5px;background-color: silver;">Avancé</a>
</p>
</div>
<div style="text-align:right;margin-top:20px;">
<a class="resetFamille" id="econmique">Réinitialiser les critères juridique</a>
</div>

View File

@ -2,7 +2,7 @@ $(document).ready(function(){
$('.overHelp').hover(function(){
if($(this).attr('div') == '_entreprise') {
$('#helper').html('<div style="padding:10px;">Aide Entreprise</div>');
$('#helper').html('Aide Entreprise');
}
if($(this).attr('div') == '_economique') {
$('#helper').html('Aide Economique');
@ -93,5 +93,17 @@ $(document).ready(function(){
else
$('.'+id).hide('blind');
});
$('.mode').click(function(){
var id = $(this).attr('id');
if($('#'+id).css('display') == 'none') {
$('#'+id).show('blind');
$(this).html('Cacher');
}
else {
$('#'+id).hide('blind');
$(this).html('Avancé');
}
});
});

View File

@ -369,3 +369,10 @@ table.ciblage td {
}
.range {background-color:transparent;}
#helper
{
border:2px solid silver;
background-color: #CBD3D2;
padding:10px;
}