forked from Wavyzz/dolibarr
Fix: traduction du calendrier eldy
This commit is contained in:
@@ -93,8 +93,8 @@ if ($_POST['action'] == 'classin' && $user->rights->commande->creer)
|
||||
if ($_POST['action'] == 'add' && $user->rights->commande->creer)
|
||||
{
|
||||
$datecommande='';
|
||||
$datecommande = @mktime(12, 0, 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']);
|
||||
$datelivraison = @mktime(12, 0, 0, $_POST['liv_month'],$_POST['liv_day'],$_POST['liv_year']);
|
||||
$datecommande = dolibarr_mktime(12, 0, 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']);
|
||||
$datelivraison = dolibarr_mktime(12, 0, 0, $_POST['liv_month'],$_POST['liv_day'],$_POST['liv_year']);
|
||||
|
||||
$commande = new Commande($db);
|
||||
$commande->socid=$_POST['socid'];
|
||||
@@ -202,7 +202,7 @@ if ($_POST['action'] == "setabsolutediscount" && $user->rights->propale->creer)
|
||||
|
||||
if ($_POST['action'] == 'setdate_livraison' && $user->rights->commande->creer)
|
||||
{
|
||||
$datelivraison=@mktime(0, 0, 0, $_POST['liv_month'], $_POST['liv_day'], $_POST['liv_year']);
|
||||
$datelivraison=dolibarr_mktime(0, 0, 0, $_POST['liv_month'], $_POST['liv_day'], $_POST['liv_year']);
|
||||
$commande = new Commande($db);
|
||||
$commande->fetch($_GET['id']);
|
||||
$result=$commande->set_date_livraison($user,$datelivraison);
|
||||
|
||||
@@ -379,3 +379,18 @@ CurrencyCHF=Swiss Francs
|
||||
CurrencyEUR=Euros
|
||||
CurrencyGBP=GB Pounds
|
||||
CurrencyUSD=Dollar US
|
||||
# Week day
|
||||
Monday=Monday
|
||||
Tuesday=Tuesday
|
||||
Wednesday=Wednesday
|
||||
Thursday=Thursday
|
||||
Friday=Friday
|
||||
Saturday=Saturday
|
||||
Sunday=Sunday
|
||||
ShortMonday=M
|
||||
ShortTuesday=T
|
||||
ShortWednesday=W
|
||||
ShortThursday=T
|
||||
ShortFriday=F
|
||||
ShortSaturday=S
|
||||
ShortSunday=S
|
||||
@@ -383,3 +383,18 @@ CurrencyCHF=Francs suisses
|
||||
CurrencyEUR=Euros
|
||||
CurrencyGBP=Livre sterling
|
||||
CurrencyUSD=Dollar US
|
||||
# Week day
|
||||
Monday=Lundi
|
||||
Tuesday=Mardi
|
||||
Wednesday=Mercredi
|
||||
Thursday=Jeudi
|
||||
Friday=Vendredi
|
||||
Saturday=Samedi
|
||||
Sunday=Dimanche
|
||||
ShortMonday=L
|
||||
ShortTuesday=M
|
||||
ShortWednesday=M
|
||||
ShortThursday=J
|
||||
ShortFriday=V
|
||||
ShortSaturday=S
|
||||
ShortSunday=D
|
||||
@@ -72,7 +72,13 @@ function displayBox($selectedDate,$month,$year){
|
||||
?>
|
||||
<table class="dp" cellspacing="0" cellpadding="0" border=0>
|
||||
<tr>
|
||||
<td colspan=6 class="dpHead"><?php echo date("F, Y", $thedate) ?></td>
|
||||
<td colspan=6 class="dpHead">
|
||||
<?php
|
||||
$selectMonth = date("F", $thedate);
|
||||
$selectYear = date("Y", $thedate);
|
||||
echo $langs->trans($selectMonth).", ".$selectYear;
|
||||
?>
|
||||
</td>
|
||||
<td class="dpHead"><button type="buttton" class="dpInvisibleButtons" id="DPCancel" onClick="closeDPBox();">X</button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -83,13 +89,13 @@ function displayBox($selectedDate,$month,$year){
|
||||
<td class="dpButtons" onClick="loadMonth('<?php echo $dolibarr_main_url_root.'/lib/' ?>','<?php echo $month?>','<?php echo $year+1?>','<?php echo $xyz ?>')">>></td>
|
||||
</tr>
|
||||
<tr class="dpDayNames">
|
||||
<td width="14.286%">S</td>
|
||||
<td width="14.286%">M</td>
|
||||
<td width="14.286%">T</td>
|
||||
<td width="14.286%">W</td>
|
||||
<td width="14.286%">R</td>
|
||||
<td width="14.286%">F</td>
|
||||
<td width="14.286%">S</td>
|
||||
<td width="14.286%"><?php echo $langs->trans("ShortSunday") ?></td>
|
||||
<td width="14.286%"><?php echo $langs->trans("ShortMonday") ?></td>
|
||||
<td width="14.286%"><?php echo $langs->trans("ShortTuesday") ?></td>
|
||||
<td width="14.286%"><?php echo $langs->trans("ShortWednesday") ?></td>
|
||||
<td width="14.286%"><?php echo $langs->trans("ShortThursday") ?></td>
|
||||
<td width="14.286%"><?php echo $langs->trans("ShortFriday") ?></td>
|
||||
<td width="14.286%"><?php echo $langs->trans("ShortSaturday") ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$firstdate=getdate($thedate);
|
||||
@@ -122,14 +128,14 @@ function displayBox($selectedDate,$month,$year){
|
||||
if($mydate["wday"]!=0){
|
||||
for($i=6;$i>=$mydate["wday"];$i--)
|
||||
echo "<TD> </TD>";
|
||||
echo "</TR";
|
||||
echo "</TR>";
|
||||
}
|
||||
?>
|
||||
<tr><td id="dpExp" class="dpExplanation" colspan="7"><?php
|
||||
if($selDate)
|
||||
{
|
||||
$tempDate=getdate($selDate);
|
||||
print $tempDate["month"]." ";
|
||||
print $langs->trans($tempDate["month"])." ";
|
||||
print sprintf("%02s",$tempDate["mday"]);
|
||||
print ", ".$tempDate["year"];
|
||||
}
|
||||
|
||||
@@ -556,15 +556,15 @@ function dolibarr_stringtotime($string)
|
||||
/**
|
||||
\brief Retourne une date fabriqu<71>e depuis infos.
|
||||
Remplace la fonction mktime non impl<70>ment<6E>e sous Windows si ann<6E>e < 1970
|
||||
\param x X
|
||||
\param y Y
|
||||
\param z Z
|
||||
\param hour Heure
|
||||
\param minute Minute
|
||||
\param second Seconde
|
||||
\param month Mois
|
||||
\param day Jour
|
||||
\param year Ann<6E>e
|
||||
\return date Date
|
||||
*/
|
||||
function dolibarr_mktime($x,$y,$z,$month,$day,$year)
|
||||
function dolibarr_mktime($hour,$minute,$second,$month,$day,$year)
|
||||
{
|
||||
$montharray=array(1=>'january',2=>'february',3=>'march',4=>'april',5=>'may',6=>'june',
|
||||
7=>'july',8=>'august',9=>'september',10=>'october',11=>'november',12=>'december');
|
||||
@@ -581,7 +581,7 @@ function dolibarr_mktime($x,$y,$z,$month,$day,$year)
|
||||
}
|
||||
else
|
||||
{
|
||||
return mktime($x,$y,$z,$month,$day,$year);
|
||||
return mktime($hour,$minute,$second,$month,$day,$year);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -206,7 +206,19 @@ function dpClickDay(year,month,day,format)
|
||||
|
||||
function dpHighlightDay(year,month,day){
|
||||
var displayinfo=getObjectFromID("dpExp");
|
||||
var months=Array("January","February","March","April","May","June","July","August","September","October","November","December");
|
||||
var months=Array("January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
);
|
||||
displayinfo.innerHTML=months[month-1]+" "+day+", "+year;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user