2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Rodolphe Quiedeville
2002-05-04 21:28:42 +00:00
parent ae1327ea57
commit 632b4662d5
24 changed files with 388 additions and 203 deletions

View File

@@ -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, '.', ' ');