diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php new file mode 100644 index 00000000000..a25f8a05566 --- /dev/null +++ b/htdocs/exports/export.php @@ -0,0 +1,59 @@ + + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + * $Source$ + */ + +/** + \file htdocs/exports/export.php + \ingroup core + \brief Page d'edition d'un export + \version $Revision$ +*/ + +require("./pre.inc.php"); + +$langs->load("commercial"); +$langs->load("orders"); + +$user->getrights(); + +if (! $user->societe_id == 0) + accessforbidden(); + + + + + + +llxHeader('',$langs->trans("NewExport")); + +print_fiche_titre($langs->trans("NewExport")); + +print ''; + + + +print '
'; + +$db->close(); + + +llxFooter('$Date$ - $Revision$'); + +?> diff --git a/htdocs/exports/index.php b/htdocs/exports/index.php index 48ef5973716..1033c856d89 100644 --- a/htdocs/exports/index.php +++ b/htdocs/exports/index.php @@ -158,6 +158,7 @@ $sql .= " FROM ".MAIN_DB_PREFIX."export as e"; $result=$db->query($sql); if ($result) { + print '
'; print ''; print ''; print ''; @@ -181,8 +182,9 @@ if ($result) $i++; } } + + print "
'.$langs->trans("ExportProfiles").'
"; } -print "
"; print ''; diff --git a/htdocs/exports/pre.inc.php b/htdocs/exports/pre.inc.php index c75d0eae1c3..2b77874836e 100644 --- a/htdocs/exports/pre.inc.php +++ b/htdocs/exports/pre.inc.php @@ -38,6 +38,7 @@ function llxHeader($head = "", $title = "") $menu = new Menu(); $menu->add(DOL_URL_ROOT."/exports/index.php", $langs->trans("Exports")); + $menu->add_submenu(DOL_URL_ROOT."/exports/export.php", $langs->trans("NewExport")); left_menu($menu->liste); } diff --git a/htdocs/includes/menus/barre_left/eldy_backoffice.php b/htdocs/includes/menus/barre_left/eldy_backoffice.php index be4337521bc..1ca7651de03 100644 --- a/htdocs/includes/menus/barre_left/eldy_backoffice.php +++ b/htdocs/includes/menus/barre_left/eldy_backoffice.php @@ -562,6 +562,7 @@ class MenuLeft { } $newmenu->add_submenu(DOL_URL_ROOT."/exports/index.php?leftmenu=export",$langs->trans("Exports"),0,1); + $newmenu->add_submenu(DOL_URL_ROOT."/exports/export.php?leftmenu=export",$langs->trans("NewExport"),1,1); } /* diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 95f8bf5f410..07f0d5c8d94 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -147,6 +147,7 @@ Permission71=Read members Permission72=Create/modify members Permission74=Delete members Permission75=Setup types and attributes for members +Permission76=Export datas Permission78=Read subscriptions Permission79=Create/modify subscriptions Permission81=Read customers orders diff --git a/htdocs/langs/en_US/other.lang b/htdocs/langs/en_US/other.lang index 6208fdfba23..8f194c0b37e 100644 --- a/htdocs/langs/en_US/other.lang +++ b/htdocs/langs/en_US/other.lang @@ -36,6 +36,9 @@ UseAnExternalHttpLinkOrRelativeDolibarrLink=Use an external http URL or a relati ChooseIfANewWindowMustBeOpenedOnClickOnBookmark=Choose if page opened by link must appear on current or new window BookmarksManagement=Bookmarks management ListOfBookmarks=List of bookmarks +NoExportableData=No exportable data (no modules with exportable data loaded, or missing permissions) +ToExport=Export +NewExport=New export ##### Webcal ##### LoginWebcal=Login for Webcalendar AddCalendarEntry=Add entry in calendar diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index 51f6da71ec8..2ea1ccfd3a3 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -147,6 +147,7 @@ Permission71=Consulter les fiches adh Permission72=Créer/modifier les adhérents Permission74=Supprimer les adhérents Permission75=Configurer les types et caractéristiques des adhérents +Permission76=Exporter les données Permission78=Consulter les cotisations Permission79=Créer/modifier les cotisations Permission81=Consulter les commandes clients diff --git a/htdocs/langs/fr_FR/other.lang b/htdocs/langs/fr_FR/other.lang index 66aa9f224c6..5ea8ea3245b 100644 --- a/htdocs/langs/fr_FR/other.lang +++ b/htdocs/langs/fr_FR/other.lang @@ -36,6 +36,9 @@ UseAnExternalHttpLinkOrRelativeDolibarrLink=Saisir une URL http externe ou une U ChooseIfANewWindowMustBeOpenedOnClickOnBookmark=Choisir si le raccourci doit ouvrir la page dans une nouvelle fenêtre ou fenêtre courante BookmarksManagement=Gestion des marque-pages ListOfBookmarks=Liste des marque-pages +NoExportableData=Pas de données exportables (pas de modules avec données exportables chargés, ou manque de permissions) +ToExport=Exporter +NewExport=Nouvel export ##### Webcal ##### LoginWebcal=Login Webcalendar AddCalendarEntry=Ajouter entrée dans le calendrier