Modification affichage du champs opposition insee, issue #0000117
This commit is contained in:
parent
6f850c48ce
commit
3f1126f51b
@ -1,4 +1,5 @@
|
|||||||
$(document).ready(function(){
|
$(document).ready(function()
|
||||||
|
{
|
||||||
//Initialisation événements
|
//Initialisation événements
|
||||||
$("#jugement").change(function ()
|
$("#jugement").change(function ()
|
||||||
{
|
{
|
||||||
@ -40,6 +41,12 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("[name=oppositionInsee]").change(function ()
|
||||||
|
{
|
||||||
|
if($(this).attr('checked')==1) $('#divOppositionInsee').load('./pages_saisie/oppositioninsee.php');
|
||||||
|
else $('#divOppositionInsee').html('');
|
||||||
|
});
|
||||||
|
|
||||||
//Initialisation
|
//Initialisation
|
||||||
displayFormSource();
|
displayFormSource();
|
||||||
});
|
});
|
||||||
@ -60,8 +67,6 @@ function displayBlock(block){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function loadFormSaisie(eventValue, params){
|
function loadFormSaisie(eventValue, params){
|
||||||
$('#subFormSaisie').html('<p><img src="./img/ajax/19-1.gif" /></p>');
|
$('#subFormSaisie').html('<p><img src="./img/ajax/19-1.gif" /></p>');
|
||||||
if(params!=''){
|
if(params!=''){
|
||||||
|
@ -503,25 +503,12 @@ include('./pages_saisie/event_0000.php');
|
|||||||
<input type="text" size="11" name="frmSaisie[sirenDoublon]" value="<?=$etab['sirenDoublon']?>"/>
|
<input type="text" size="11" name="frmSaisie[sirenDoublon]" value="<?=$etab['sirenDoublon']?>"/>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if($etab['FJ'][0]==1 && 0)
|
if($etab['FJ'][0]==1)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<label>Entreprise ayant exercée sont droit d'opposition en</label>
|
<label>Entreprise ayant exercée sont droit d'opposition en</label>
|
||||||
<select name="frmSaisie[moisOppositionInsee]">
|
<input type="checkbox" name="oppositionInsee" value="1"/>
|
||||||
<?php
|
<div id="divOppositionInsee"></div>
|
||||||
setlocale (LC_TIME, 'fr_FR','fra');
|
|
||||||
$month = date("m");
|
|
||||||
for($i=0;$i<12;$i++)
|
|
||||||
{
|
|
||||||
$lastmonth = mktime(0, 0, 0, $month-$i, date("d"), date("Y"));
|
|
||||||
$selected = '';
|
|
||||||
if($i==1) $selected = 'selected';
|
|
||||||
?>
|
|
||||||
<option value="<?=date('Ym',$lastmonth)?>" <?=$selected?>><?=strftime('%B',$lastmonth)?> <?=date('Y',$lastmonth)?></option>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
15
www/pages_saisie/oppositioninsee.php
Normal file
15
www/pages_saisie/oppositioninsee.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<select name="frmSaisie[moisOppositionInsee]">
|
||||||
|
<?php
|
||||||
|
setlocale (LC_TIME, 'fr_FR','fra');
|
||||||
|
$month = date("m");
|
||||||
|
for($i=0;$i<12;$i++)
|
||||||
|
{
|
||||||
|
$lastmonth = mktime(0, 0, 0, $month-$i, date("d"), date("Y"));
|
||||||
|
$selected = '';
|
||||||
|
if($i==1) $selected = 'selected';
|
||||||
|
?>
|
||||||
|
<option value="<?=date('Ym',$lastmonth)?>" <?=$selected?>><?=strftime('%B',$lastmonth)?> <?=date('Y',$lastmonth)?></option>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
Loading…
x
Reference in New Issue
Block a user