Fix: Pb with popu calendar in EI8 and security options of IE6
This commit is contained in:
parent
031bb0a1fc
commit
10f8a52dcc
@ -122,7 +122,7 @@ function xyzToUnixTimestamp($mysqldate){
|
||||
}
|
||||
|
||||
function displayBox($selectedDate,$month,$year){
|
||||
global $dolibarr_main_url_root,$langs,$conf;
|
||||
global $langs,$conf;
|
||||
|
||||
//print "$selectedDate,$month,$year";
|
||||
$thedate=dol_mktime(12,0,0,$month,1,$year);
|
||||
@ -154,15 +154,15 @@ function displayBox($selectedDate,$month,$year){
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dpButtons"
|
||||
onClick="loadMonth('<?php echo $dolibarr_main_url_root.'/lib/' ?>','<?php echo $month?>','<?php echo $year-1?>','<?php echo $xyz ?>')"><<</td>
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/lib/' ?>','<?php echo $month?>','<?php echo $year-1?>','<?php echo $xyz ?>')"><<</td>
|
||||
<td class="dpButtons"
|
||||
onClick="loadMonth('<?php echo $dolibarr_main_url_root.'/lib/' ?>','<?php if($month==1) echo "12"; else echo $month-1?>','<?php if($month==1) echo $year-1; else echo $year?>','<?php echo $xyz ?>')"><</td>
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/lib/' ?>','<?php if($month==1) echo "12"; else echo $month-1?>','<?php if($month==1) echo $year-1; else echo $year?>','<?php echo $xyz ?>')"><</td>
|
||||
<td colspan="3" class="dpButtons"
|
||||
onClick="loadMonth('<?php echo $dolibarr_main_url_root.'/lib/' ?>','<?php echo dol_date('m',$today)?>','<?php echo $todayArray["year"]?>','<?php echo $xyz ?>')"><?php echo $langs->trans("MonthOfDay") ?></td>
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/lib/' ?>','<?php echo dol_date('m',$today)?>','<?php echo $todayArray["year"]?>','<?php echo $xyz ?>')"><?php echo $langs->trans("MonthOfDay") ?></td>
|
||||
<td class="dpButtons"
|
||||
onClick="loadMonth('<?php echo $dolibarr_main_url_root.'/lib/' ?>','<?php if($month==12) echo "1"; else echo $month+1?>','<?php if($month==12) echo $year+1; else echo $year;?>','<?php echo $xyz ?>')">></td>
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/lib/' ?>','<?php if($month==12) echo "1"; else echo $month+1?>','<?php if($month==12) echo $year+1; else echo $year;?>','<?php echo $xyz ?>')">></td>
|
||||
<td class="dpButtons"
|
||||
onClick="loadMonth('<?php echo $dolibarr_main_url_root.'/lib/' ?>','<?php echo $month?>','<?php echo $year+1?>','<?php echo $xyz ?>')">>></td>
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/lib/' ?>','<?php echo $month?>','<?php echo $year+1?>','<?php echo $xyz ?>')">>></td>
|
||||
</tr>
|
||||
<tr class="dpDayNames">
|
||||
<td width="14%"><?php echo $langs->trans("ShortSunday") ?></td>
|
||||
|
||||
@ -162,7 +162,8 @@ function loadMonth(base,month,year,ymd)
|
||||
var req=null;
|
||||
|
||||
req=loadXMLDoc(theURL,null,false);
|
||||
//alert(theURL+req.responseText); // L'url doit avoir la meme racine que la pages et elements sinon pb de securite.
|
||||
if (req.responseText == '') alert('Failed to get URL '.theURL);
|
||||
//alert(theURL+' - '+req.responseText); // L'url doit avoir la meme racine que la pages et elements sinon pb de securite.
|
||||
showDP.box.innerHTML=req.responseText;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user