From e2b18d565acfe170c81b717d7c27a49933ea6042 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Wed, 6 Jul 2011 20:56:48 +0000 Subject: [PATCH] Fix: Bad order on documents pages --- htdocs/adherents/document.php | 6 ++--- htdocs/comm/action/document.php | 6 ++--- htdocs/comm/propal/document.php | 14 ++++++------ htdocs/commande/document.php | 36 +++++++++++++++--------------- htdocs/compta/facture/document.php | 14 ++++++------ htdocs/contrat/document.php | 6 ++--- htdocs/ecm/docmine.php | 6 ++--- htdocs/ecm/index.php | 10 ++++----- htdocs/ecm/search.php | 6 ++--- htdocs/fichinter/document.php | 6 ++--- htdocs/fourn/commande/document.php | 6 ++--- htdocs/fourn/facture/document.php | 6 ++--- htdocs/product/document.php | 6 ++--- htdocs/projet/document.php | 6 ++--- htdocs/projet/tasks/document.php | 6 ++--- htdocs/societe/document.php | 6 ++--- 16 files changed, 73 insertions(+), 73 deletions(-) diff --git a/htdocs/adherents/document.php b/htdocs/adherents/document.php index 80f097a64c8..304afe52e41 100644 --- a/htdocs/adherents/document.php +++ b/htdocs/adherents/document.php @@ -23,7 +23,7 @@ * \file htdocs/adherents/document.php * \brief Tab for documents linked to third party * \ingroup societe - * \version $Id: document.php,v 1.7 2011/07/05 16:10:56 hregis Exp $ + * \version $Id: document.php,v 1.8 2011/07/06 20:56:50 eldy Exp $ */ require("../main.inc.php"); @@ -134,7 +134,7 @@ if ($id > 0) // Construit liste des fichiers - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -231,6 +231,6 @@ else $db->close(); -llxFooter('$Date: 2011/07/05 16:10:56 $ - $Revision: 1.7 $'); +llxFooter('$Date: 2011/07/06 20:56:50 $ - $Revision: 1.8 $'); ?> diff --git a/htdocs/comm/action/document.php b/htdocs/comm/action/document.php index fddcace3e95..d0dc9bdc989 100755 --- a/htdocs/comm/action/document.php +++ b/htdocs/comm/action/document.php @@ -24,7 +24,7 @@ * \file htdocs/comm/action/document.php * \ingroup agenda * \brief Page des documents joints sur les actions - * \version $Id$ + * \version $Id: document.php,v 1.57 2011/07/06 20:56:49 eldy Exp $ */ require("../../main.inc.php"); @@ -202,7 +202,7 @@ if ($objectid > 0) print '</table><br><table class="border" width="100%">'; // Construit liste des fichiers - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -240,5 +240,5 @@ else $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/06 20:56:49 $ - $Revision: 1.57 $'); ?> diff --git a/htdocs/comm/propal/document.php b/htdocs/comm/propal/document.php index 11c80c81bfd..561c68482de 100644 --- a/htdocs/comm/propal/document.php +++ b/htdocs/comm/propal/document.php @@ -23,7 +23,7 @@ * \file htdocs/comm/propal/document.php * \ingroup propale * \brief Page de gestion des documents attaches a une proposition commerciale - * \version $Id: document.php,v 1.65 2011/07/05 16:10:56 hregis Exp $ + * \version $Id: document.php,v 1.66 2011/07/06 20:56:49 eldy Exp $ */ require("../../main.inc.php"); @@ -71,7 +71,7 @@ if ($_POST["sendit"] && ! empty($conf->global->MAIN_UPLOAD_DOC)) if ($object->fetch($id)) { $object->fetch_thirdparty(); - + $upload_dir = $conf->propale->dir_output . "/" . dol_sanitizeFileName($object->ref); if (create_exdir($upload_dir) >= 0) @@ -107,7 +107,7 @@ if ($action == 'confirm_deletefile' && $confirm == 'yes') if ($object->fetch($id)) { $object->fetch_thirdparty(); - + $upload_dir = $conf->propale->dir_output . "/" . dol_sanitizeFileName($object->ref); $file = $upload_dir . '/' . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP). dol_delete_file($file); @@ -129,7 +129,7 @@ if ($id > 0 || ! empty($ref)) if ($object->fetch($id,$ref)) { $object->fetch_thirdparty(); - + $upload_dir = $conf->propale->dir_output.'/'.dol_sanitizeFileName($object->ref); $head = propal_prepare_head($object); @@ -137,7 +137,7 @@ if ($id > 0 || ! empty($ref)) // Construit liste des fichiers - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -177,7 +177,7 @@ if ($id > 0 || ! empty($ref)) print '</div>'; dol_htmloutput_mesg($mesg,$mesgs); - + /* * Confirmation suppression fichier */ @@ -209,5 +209,5 @@ else $db->close(); -llxFooter('$Date: 2011/07/05 16:10:56 $ - $Revision: 1.65 $'); +llxFooter('$Date: 2011/07/06 20:56:49 $ - $Revision: 1.66 $'); ?> diff --git a/htdocs/commande/document.php b/htdocs/commande/document.php index 43c0b3094b3..6b27978ce6f 100644 --- a/htdocs/commande/document.php +++ b/htdocs/commande/document.php @@ -23,7 +23,7 @@ * \file htdocs/commande/document.php * \ingroup order * \brief Page de gestion des documents attachees a une commande - * \version $Id: document.php,v 1.33 2011/07/05 16:10:56 hregis Exp $ + * \version $Id: document.php,v 1.34 2011/07/06 20:56:49 eldy Exp $ */ require("../main.inc.php"); @@ -74,9 +74,9 @@ if ($_POST["sendit"] && ! empty($conf->global->MAIN_UPLOAD_DOC)) if ($object->fetch($id)) { $object->fetch_thirdparty(); - + $upload_dir = $conf->commande->dir_output . "/" . dol_sanitizeFileName($object->ref); - + if (create_exdir($upload_dir) >= 0) { $resupload=dol_move_uploaded_file($_FILES['userfile']['tmp_name'], $upload_dir . "/" . $_FILES['userfile']['name'],0,0,$_FILES['userfile']['error']); @@ -110,7 +110,7 @@ if ($action == 'confirm_deletefile' && $confirm == 'yes') if ($object->fetch($id)) { $object->fetch_thirdparty(); - + $upload_dir = $conf->commande->dir_output . "/" . dol_sanitizeFileName($object->ref); $file = $upload_dir . '/' . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP). dol_delete_file($file); @@ -132,37 +132,37 @@ if ($id > 0 || ! empty($ref)) if ($object->fetch($id, $ref)) { $object->fetch_thirdparty(); - + $upload_dir = $conf->commande->dir_output.'/'.dol_sanitizeFileName($object->ref); $head = commande_prepare_head($object); dol_fiche_head($head, 'documents', $langs->trans('CustomerOrder'), 0, 'order'); - - + + // Construit liste des fichiers - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { $totalsize+=$file['size']; } - - + + print '<table class="border"width="100%">'; - + // Ref print '<tr><td width="30%">'.$langs->trans('Ref').'</td><td colspan="3">'; print $html->showrefnav($object,'ref','',1,'ref','ref'); print '</td></tr>'; - + print '<tr><td>'.$langs->trans('Company').'</td><td colspan="3">'.$object->thirdparty->getNomUrl(1).'</td></tr>'; print '<tr><td>'.$langs->trans("NbOfAttachedFiles").'</td><td colspan="3">'.sizeof($filearray).'</td></tr>'; print '<tr><td>'.$langs->trans("TotalSizeOfAttachedFiles").'</td><td colspan="3">'.$totalsize.' '.$langs->trans("bytes").'</td></tr>'; print "</table>\n"; print "</div>\n"; - + dol_htmloutput_mesg($mesg,$mesgs); - + /* * Confirmation suppression fichier */ @@ -171,12 +171,12 @@ if ($id > 0 || ! empty($ref)) $ret=$html->form_confirm($_SERVER["PHP_SELF"].'?id='.$id.'&urlfile='.urldecode($_GET["urlfile"]), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile', '', 0, 1); if ($ret == 'html') print '<br>'; } - + // Affiche formulaire upload $formfile=new FormFile($db); $formfile->form_attach_new_file(DOL_URL_ROOT.'/commande/document.php?id='.$object->id,'',0,0,$user->rights->commande->creer); - - + + // List of document $param='&id='.$object->id; $formfile->list_of_documents($filearray,$object,'commande',$param); @@ -193,5 +193,5 @@ else $db->close(); -llxFooter('$Date: 2011/07/05 16:10:56 $ - $Revision: 1.33 $'); +llxFooter('$Date: 2011/07/06 20:56:49 $ - $Revision: 1.34 $'); ?> diff --git a/htdocs/compta/facture/document.php b/htdocs/compta/facture/document.php index f96fb1d4c59..9c7d62baa30 100644 --- a/htdocs/compta/facture/document.php +++ b/htdocs/compta/facture/document.php @@ -23,7 +23,7 @@ * \file htdocs/compta/facture/document.php * \ingroup facture * \brief Page for attached files on invoices - * \version $Id: document.php,v 1.43 2011/07/05 16:10:56 hregis Exp $ + * \version $Id: document.php,v 1.44 2011/07/06 20:56:49 eldy Exp $ */ require("../../main.inc.php"); @@ -76,7 +76,7 @@ if ($_POST["sendit"] && ! empty($conf->global->MAIN_UPLOAD_DOC)) if ($object->fetch($id)) { $object->fetch_thirdparty(); - + $upload_dir = $conf->facture->dir_output . "/" . dol_sanitizeFileName($object->ref); if (create_exdir($upload_dir) >= 0) @@ -112,7 +112,7 @@ if ($action == 'confirm_deletefile' && $confirm == 'yes') if ($object->fetch($id)) { $object->fetch_thirdparty(); - + $upload_dir = $conf->facture->dir_output . "/" . dol_sanitizeFileName($object->ref); $file = $upload_dir . '/' . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP). dol_delete_file($file); @@ -135,7 +135,7 @@ if ($id > 0 || ! empty($ref)) if ($object->fetch($id,$ref) > 0) { $object->fetch_thirdparty(); - + $upload_dir = $conf->facture->dir_output.'/'.dol_sanitizeFileName($object->ref); $head = facture_prepare_head($object); @@ -143,7 +143,7 @@ if ($id > 0 || ! empty($ref)) // Construit liste des fichiers - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -180,7 +180,7 @@ if ($id > 0 || ! empty($ref)) print "</div>\n"; dol_htmloutput_mesg($mesg,$mesgs); - + /* * Confirmation suppression fichier */ @@ -213,5 +213,5 @@ else $db->close(); -llxFooter('$Date: 2011/07/05 16:10:56 $ - $Revision: 1.43 $'); +llxFooter('$Date: 2011/07/06 20:56:49 $ - $Revision: 1.44 $'); ?> diff --git a/htdocs/contrat/document.php b/htdocs/contrat/document.php index 8f70fa27876..df48a79cabf 100644 --- a/htdocs/contrat/document.php +++ b/htdocs/contrat/document.php @@ -24,7 +24,7 @@ * \file htdocs/contrat/document.php * \ingroup contrat * \brief Page des documents joints sur les contrats - * \version $Id$ + * \version $Id: document.php,v 1.24 2011/07/06 20:56:50 eldy Exp $ */ require ("../main.inc.php"); @@ -132,7 +132,7 @@ if ($contrat->id) // Construit liste des fichiers - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -173,5 +173,5 @@ else $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/06 20:56:50 $ - $Revision: 1.24 $'); ?> diff --git a/htdocs/ecm/docmine.php b/htdocs/ecm/docmine.php index 40931053356..7160973422d 100644 --- a/htdocs/ecm/docmine.php +++ b/htdocs/ecm/docmine.php @@ -21,7 +21,7 @@ * \file htdocs/ecm/docmine.php * \ingroup ecm * \brief Card of a directory for ECM module - * \version $Id$ + * \version $Id: docmine.php,v 1.46 2011/07/06 20:56:50 eldy Exp $ * \author Laurent Destailleur */ @@ -212,7 +212,7 @@ $form=new Form($db); // Construit liste des fichiers -$filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); +$filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -379,5 +379,5 @@ if ($user->rights->ecm->read) // End of page $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/06 20:56:50 $ - $Revision: 1.46 $'); ?> diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php index 663aaf6a2d1..35cdb9fb64e 100644 --- a/htdocs/ecm/index.php +++ b/htdocs/ecm/index.php @@ -21,7 +21,7 @@ * \file htdocs/ecm/index.php * \ingroup ecm * \brief Main page for ECM section area - * \version $Id: index.php,v 1.99 2011/07/06 11:40:21 eldy Exp $ + * \version $Id: index.php,v 1.100 2011/07/06 20:56:49 eldy Exp $ * \author Laurent Destailleur */ @@ -805,7 +805,7 @@ if ($module == 'invoice_supplier') // Auto area for suppliers invoices { $relativepath='facture'; $upload_dir = $conf->fournisseur->dir_output.'/'.$relativepath; - $filearray=dol_dir_list($upload_dir,"files",1,'',array('^SPECIMEN\.pdf$','^\.','\.meta$','^temp$','^CVS$'),$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",1,'',array('^SPECIMEN\.pdf$','^\.','\.meta$','^temp$','^CVS$'),$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $param='&module='.$module; $textifempty=($section?$langs->trans("NoFileFound"):($showonrightsize=='featurenotyetavailable'?$langs->trans("FeatureNotYetAvailable"):$langs->trans("ECMSelectASection"))); @@ -815,7 +815,7 @@ if ($module == 'invoice_supplier') // Auto area for suppliers invoices else if ($module == 'invoice') // Auto area for suppliers invoices { $upload_dir = $conf->facture->dir_output; - $filearray=dol_dir_list($upload_dir,"files",1,'',array('^SPECIMEN\.pdf$','^\.','\.meta$','^temp$','^payments$','^CVS$'),$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",1,'',array('^SPECIMEN\.pdf$','^\.','\.meta$','^temp$','^payments$','^CVS$'),$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $param='&module='.$module; $textifempty=($section?$langs->trans("NoFileFound"):($showonrightsize=='featurenotyetavailable'?$langs->trans("FeatureNotYetAvailable"):$langs->trans("ECMSelectASection"))); @@ -826,7 +826,7 @@ else // Manual area { $relativepath=$ecmdir->getRelativePath(); $upload_dir = $conf->ecm->dir_output.'/'.$relativepath; - $filearray=dol_dir_list($upload_dir,"files",0,'',array('^\.','\.meta$'),$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'',array('^\.','\.meta$'),$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $param='&section='.$section; $textifempty=($section?$langs->trans("NoFileFound"):($showonrightsize=='featurenotyetavailable'?$langs->trans("FeatureNotYetAvailable"):$langs->trans("ECMSelectASection"))); @@ -887,5 +887,5 @@ else // End of page $db->close(); -llxFooter('$Date: 2011/07/06 11:40:21 $ - $Revision: 1.99 $'); +llxFooter('$Date: 2011/07/06 20:56:49 $ - $Revision: 1.100 $'); ?> diff --git a/htdocs/ecm/search.php b/htdocs/ecm/search.php index acfcef0777f..432b9ad7325 100644 --- a/htdocs/ecm/search.php +++ b/htdocs/ecm/search.php @@ -21,7 +21,7 @@ * \file htdocs/ecm/index.php * \ingroup ecm * \brief Main page for ECM section area - * \version $Id$ + * \version $Id: search.php,v 1.18 2011/07/06 20:56:50 eldy Exp $ * \author Laurent Destailleur */ @@ -191,7 +191,7 @@ print '</td><td valign="top">'; // Right area $relativepath=$ecmdir->getRelativePath(); $upload_dir = $conf->ecm->dir_output.'/'.$relativepath; -$filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); +$filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $formfile=new FormFile($db); $param='&section='.$section; @@ -214,5 +214,5 @@ print '<br>'; // End of page $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/06 20:56:50 $ - $Revision: 1.18 $'); ?> diff --git a/htdocs/fichinter/document.php b/htdocs/fichinter/document.php index 05989883782..3c5aaa99a6b 100644 --- a/htdocs/fichinter/document.php +++ b/htdocs/fichinter/document.php @@ -25,7 +25,7 @@ * \file htdocs/fichinter/document.php * \ingroup fichinter * \brief Page des documents joints sur les contrats - * \version $Id: document.php,v 1.20 2011/07/02 17:33:24 eldy Exp $ + * \version $Id: document.php,v 1.21 2011/07/06 20:56:50 eldy Exp $ */ require("../main.inc.php"); @@ -134,7 +134,7 @@ if ($object->id) // Construit liste des fichiers - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -174,5 +174,5 @@ else $db->close(); -llxFooter('$Date: 2011/07/02 17:33:24 $ - $Revision: 1.20 $'); +llxFooter('$Date: 2011/07/06 20:56:50 $ - $Revision: 1.21 $'); ?> diff --git a/htdocs/fourn/commande/document.php b/htdocs/fourn/commande/document.php index b3352425990..e17f9f3684d 100644 --- a/htdocs/fourn/commande/document.php +++ b/htdocs/fourn/commande/document.php @@ -23,7 +23,7 @@ * \file htdocs/fourn/commande/document.php * \ingroup supplier * \brief Page de gestion des documents attachees a une commande fournisseur - * \version $Id$ + * \version $Id: document.php,v 1.23 2011/07/06 20:56:50 eldy Exp $ */ require("../../main.inc.php"); @@ -142,7 +142,7 @@ if ($id > 0 || ! empty($ref)) // Construit liste des fichiers - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -217,5 +217,5 @@ else $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/06 20:56:50 $ - $Revision: 1.23 $'); ?> diff --git a/htdocs/fourn/facture/document.php b/htdocs/fourn/facture/document.php index 3727d404be4..b74544c401f 100644 --- a/htdocs/fourn/facture/document.php +++ b/htdocs/fourn/facture/document.php @@ -23,7 +23,7 @@ * \file htdocs/fourn/facture/document.php * \ingroup facture, fournisseur * \brief Page de gestion des documents attachees a une facture fournisseur - * \version $Id$ + * \version $Id: document.php,v 1.45 2011/07/06 20:56:48 eldy Exp $ */ require("../../main.inc.php"); @@ -140,7 +140,7 @@ if ($facid > 0) // Construit liste des fichiers - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -196,5 +196,5 @@ else $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/06 20:56:48 $ - $Revision: 1.45 $'); ?> diff --git a/htdocs/product/document.php b/htdocs/product/document.php index 223a9f03969..131c278e151 100755 --- a/htdocs/product/document.php +++ b/htdocs/product/document.php @@ -24,7 +24,7 @@ * \file htdocs/product/document.php * \ingroup product * \brief Page des documents joints sur les produits - * \version $Id$ + * \version $Id: document.php,v 1.68 2011/07/06 20:56:49 eldy Exp $ */ require('../main.inc.php'); @@ -135,7 +135,7 @@ if ($product->id) // Construit liste des fichiers - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -189,5 +189,5 @@ else $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/06 20:56:49 $ - $Revision: 1.68 $'); ?> diff --git a/htdocs/projet/document.php b/htdocs/projet/document.php index 9c51c12828d..906d33b10af 100644 --- a/htdocs/projet/document.php +++ b/htdocs/projet/document.php @@ -20,7 +20,7 @@ * \file htdocs/projet/document.php * \ingroup project * \brief Page de gestion des documents attachees a un projet - * \version $Id$ + * \version $Id: document.php,v 1.13 2011/07/06 20:56:49 eldy Exp $ */ require('../main.inc.php'); @@ -135,7 +135,7 @@ if ($id > 0 || ! empty($ref)) dol_fiche_head($head, 'document', $langs->trans("Project"), 0, ($project->public?'projectpub':'project')); // Files list constructor - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -203,5 +203,5 @@ else $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/06 20:56:49 $ - $Revision: 1.13 $'); ?> diff --git a/htdocs/projet/tasks/document.php b/htdocs/projet/tasks/document.php index e597529d2ac..259f551a7e8 100644 --- a/htdocs/projet/tasks/document.php +++ b/htdocs/projet/tasks/document.php @@ -20,7 +20,7 @@ * \file htdocs/projet/tasks/document.php * \ingroup project * \brief Page de gestion des documents attachees a une tache d'un projet - * \version $Id$ + * \version $Id: document.php,v 1.15 2011/07/06 20:56:50 eldy Exp $ */ require('../../main.inc.php'); @@ -145,7 +145,7 @@ if ($id > 0 || ! empty($ref)) dol_fiche_head($head, 'document', $langs->trans("Task"), 0, 'projecttask'); // Files list constructor - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -205,5 +205,5 @@ else $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/06 20:56:50 $ - $Revision: 1.15 $'); ?> diff --git a/htdocs/societe/document.php b/htdocs/societe/document.php index 7d49c9813dc..cb031662e83 100644 --- a/htdocs/societe/document.php +++ b/htdocs/societe/document.php @@ -23,7 +23,7 @@ * \file htdocs/societe/document.php * \brief Tab for documents linked to third party * \ingroup societe - * \version $Id: document.php,v 1.36 2011/07/06 18:20:49 eldy Exp $ + * \version $Id: document.php,v 1.37 2011/07/06 20:56:49 eldy Exp $ */ require("../main.inc.php"); @@ -149,7 +149,7 @@ if ($socid > 0) // Construit liste des fichiers - $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_ASC:SORT_DESC),1); + $filearray=dol_dir_list($upload_dir,"files",0,'','\.meta$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1); $totalsize=0; foreach($filearray as $key => $file) { @@ -241,6 +241,6 @@ else $db->close(); -llxFooter('$Date: 2011/07/06 18:20:49 $ - $Revision: 1.36 $'); +llxFooter('$Date: 2011/07/06 20:56:49 $ - $Revision: 1.37 $'); ?> -- GitLab