diff --git a/Dockerfile b/Dockerfile index e83523c..e1975dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,3 +11,4 @@ COPY . /var/www/html/ RUN chown -R www-data:www-data /var/www/html COPY docker/apache.conf /etc/apache2/sites-available/000-default.conf +COPY docker/php.ini /usr/local/etc/php/conf.d/uploads.ini diff --git a/docker/php.ini b/docker/php.ini new file mode 100644 index 0000000..81297f7 --- /dev/null +++ b/docker/php.ini @@ -0,0 +1,3 @@ +upload_max_filesize = 20M +post_max_size = 25M +memory_limit = 256M diff --git a/garage.php b/garage.php index 92e79a2..0700ef8 100644 --- a/garage.php +++ b/garage.php @@ -14,11 +14,24 @@ require __DIR__ . '/header.php'; +
0 = tr('garage_maintenances') ?> · Total : --
+Aucune pi\u00e8ce
| Photo | Nom | V\u00e9hicule | Marque | R\u00e9f\u00e9rence | Cat\u00e9gorie | Prix unit. | Qt\u00e9 | Total | Entretien | |
|---|---|---|---|---|---|---|---|---|---|---|
| '+(p.photo?' | '+
- ''+p.name+' | '+ - ''+(p.vehicle_name?''+p.vehicle_name+'':'--')+' | '+ - ''+(p.brand||'--')+' | '+ - ''+(p.reference||'--')+' | '+
- ''+p.category+' | '+ - ''+fmtPrice(p.price)+' | '+ - ''+p.quantity+' '+p.unit+' | '+ - ''+fmtPrice(parseFloat(p.price||0)*parseInt(p.quantity||1))+' | '+ - ''+(p.maintenance_type?p.maintenance_type+' ('+fmtDate(p.maintenance_date)+')':'--')+' | '+ - ''+ - ' |
| Photo | Nom | Marque | R\u00e9f\u00e9rence | Cat\u00e9gorie | Prix unit. | Qt\u00e9 | Total | Entretien | |
|---|---|---|---|---|---|---|---|---|---|
| '+(p.photo?' | '+
+ ''+escHtml(p.name)+' | '+ + ''+(p.brand||'--')+' | '+ + ''+(p.reference||'--')+' | '+
+ ''+p.category+' | '+ + ''+fmtPrice(p.price)+' | '+ + ''+p.quantity+' '+p.unit+' | '+ + ''+fmtPrice(parseFloat(p.price||0)*parseInt(p.quantity||1))+' | '+ + ''+(p.maintenance_type?p.maintenance_type+' ('+fmtDate(p.maintenance_date)+')':'--')+' | '+ + ''+ + ' |
Aucun véhicule
| Date | Type | Description | Km | Coût M.O. | Pièces | Total | Mécanicien | |
|---|---|---|---|---|---|---|---|---|
| '+fmtDate(m.date)+' | '+ + ''+m.type+' | '+ + ''+escHtml(m.description||'--')+' | '+ + ''+(m.km?fmt(m.km)+' km':'--')+' | '+ + ''+fmtPrice(m.cost)+' | '+ + ''+(m.parts_count>0?m.parts_count+' ('+fmtPrice(m.parts_cost)+')':'--')+' | '+ + ''+fmtPrice(parseFloat(m.cost||0)+parseFloat(m.parts_cost||0))+' | '+ + ''+(m.mechanic||'--')+' | '+ + ''+ + ' |
Aucun entretien