diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
index 6d75876341b..8d58222fb08 100644
--- a/.settings/org.eclipse.core.resources.prefs
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -1,4 +1,4 @@
-#Tue Feb 19 23:17:47 GMT 2008
+#Fri May 16 20:28:51 CEST 2008
eclipse.preferences.version=1
encoding//dev/skeletons/modMyModule.class.php=ISO-8859-1
encoding//htdocs/about.php=ISO-8859-1
@@ -40,6 +40,7 @@ encoding//htdocs/expedition/stats/month.php=ISO-8859-1
encoding//htdocs/facture.class.php=ISO-8859-1
encoding//htdocs/fichinter/fichinter.class.php=ISO-8859-1
encoding//htdocs/fourn/facture/fiche.php=ISO-8859-1
+encoding//htdocs/fourn/facture/paiement.php=UTF-8
encoding//htdocs/fourn/facture/paiementfourn.class.php=ISO-8859-1
encoding//htdocs/fourn/liste.php=ISO-8859-1
encoding//htdocs/html.form.class.php=ISO-8859-1
diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php
index 8b179ec21cc..582e682d05a 100644
--- a/htdocs/exports/export.php
+++ b/htdocs/exports/export.php
@@ -80,26 +80,48 @@ $formfile = new FormFile($db);
if ($action=='selectfield')
{
- $array_selected[$_GET["field"]]=sizeof($array_selected)+1;
- //print_r($array_selected);
- $_SESSION["export_selected_fields"]=$array_selected;
+ if ($_GET["field"]=='all')
+ {
+ $fieldsarray=$objexport->array_export_alias[0];
+ foreach($fieldsarray as $key=>$val)
+ {
+ if (! empty($array_selected[$key])) continue; // If already selected, select next
+ $array_selected[$key]=sizeof($array_selected)+1;
+ //print_r($array_selected);
+ $_SESSION["export_selected_fields"]=$array_selected;
+ }
+ }
+ else
+ {
+ $array_selected[$_GET["field"]]=sizeof($array_selected)+1;
+ //print_r($array_selected);
+ $_SESSION["export_selected_fields"]=$array_selected;
+ }
+
}
if ($action=='unselectfield')
{
- unset($array_selected[$_GET["field"]]);
- // Renumerote champs de array_selected (de 1 � nb_elements)
- asort($array_selected);
- $i=0;
- $array_selected_save=$array_selected;
- foreach($array_selected as $code=>$value)
+ if ($_GET["field"]=='all')
{
- $i++;
- $array_selected[$code]=$i;
- //print "x $code x $i y
";
+ $array_selected=array();
+ $_SESSION["export_selected_fields"]=$array_selected;
+ }
+ else
+ {
+ unset($array_selected[$_GET["field"]]);
+ // Renumber fields of array_selected (from 1 to nb_elements)
+ asort($array_selected);
+ $i=0;
+ $array_selected_save=$array_selected;
+ foreach($array_selected as $code=>$value)
+ {
+ $i++;
+ $array_selected[$code]=$i;
+ //print "x $code x $i y
";
+ }
+ $_SESSION["export_selected_fields"]=$array_selected;
}
- $_SESSION["export_selected_fields"]=$array_selected;
}
-
if ($action=='downfield' || $action=='upfield')
{
$pos=$array_selected[$_GET["field"]];
@@ -297,14 +319,14 @@ if ($step == 2 && $datatoexport)
print $objexport->array_export_module[0]->getName();
print '';
- // Lot de donn�es � exporter
+ // Lot de donnees a exporter
print '