forked from Wavyzz/dolibarr
.
This commit is contained in:
@@ -25,6 +25,48 @@
|
||||
*
|
||||
*/
|
||||
|
||||
function print_date_select() {
|
||||
$strmonth[1] = "Janvier";
|
||||
$strmonth[2] = "Février";
|
||||
$strmonth[3] = "Mars";
|
||||
$strmonth[4] = "Avril";
|
||||
$strmonth[5] = "Mai";
|
||||
$strmonth[6] = "Juin";
|
||||
$strmonth[7] = "Juillet";
|
||||
$strmonth[8] = "Août";
|
||||
$strmonth[9] = "Septembre";
|
||||
$strmonth[10] = "Octobre";
|
||||
$strmonth[11] = "Novembre";
|
||||
$strmonth[12] = "Décembre";
|
||||
|
||||
$smonth = 1;
|
||||
$syear = date("Y", time());
|
||||
|
||||
print "<select name=\"reday\">";
|
||||
for ($day = 1 ; $day < $sday + 32 ; $day++) {
|
||||
print "<option value=\"$day\">$day";
|
||||
}
|
||||
print "</select>";
|
||||
$cmonth = date("n", time());
|
||||
print "<select name=\"remonth\">";
|
||||
for ($month = $smonth ; $month < $smonth + 12 ; $month++) {
|
||||
if ($month == $cmonth) {
|
||||
print "<option value=\"$month\" SELECTED>" . $strmonth[$month];
|
||||
} else {
|
||||
print "<option value=\"$month\">" . $strmonth[$month];
|
||||
}
|
||||
}
|
||||
print "</select>";
|
||||
|
||||
print "<select name=\"reyear\">";
|
||||
|
||||
for ($year = $syear ; $year < $syear + 5 ; $year++) {
|
||||
print "<option value=\"$year\">$year";
|
||||
}
|
||||
print "</select>";
|
||||
|
||||
}
|
||||
|
||||
function price($amount) {
|
||||
|
||||
return number_format($amount, 2, '.', ' ');
|
||||
|
||||
Reference in New Issue
Block a user