diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php new file mode 100644 index 0000000000000000000000000000000000000000..a25f8a05566dbbf2c882bb1df99a8f19f7c3ae92 --- /dev/null +++ b/htdocs/exports/export.php @@ -0,0 +1,59 @@ +<?php +/* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net> + * + * 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 '<table class="notopnoleftnoright" width="100%">'; + + + +print '</table>'; + +$db->close(); + + +llxFooter('$Date$ - $Revision$'); + +?> diff --git a/htdocs/exports/index.php b/htdocs/exports/index.php index 48ef59737161d2e89a51bfe8068667291561f237..1033c856d89c6137236f4d071d455b2d6c0be72e 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 '<br>'; print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td colspan="2">'.$langs->trans("ExportProfiles").'</td>'; @@ -181,8 +182,9 @@ if ($result) $i++; } } + + print "</table>"; } -print "</table><br>"; print '</td></tr>'; diff --git a/htdocs/exports/pre.inc.php b/htdocs/exports/pre.inc.php index c75d0eae1c3352147c40032034ce71aa9fcbc39e..2b77874836efcdec041dcd363c4c7c29982c7dbc 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 be4337521bc40a90b885836d9ae5175c9d7acfa0..1ca7651de03af41c4ff7b312f328eac8bbc6eada 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 95f8bf5f4105178fd649b00a07a5dbfd36087aff..07f0d5c8d94b71c18c3818d86932fcd8aa8458bc 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 6208fdfba2346ed1faa15084e78974e59d05fde6..8f194c0b37e946fe864182e68dc0e2812e09ed29 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 51f6da71ec8655f44dc7d3ffaa4c46443fee2bb5..2ea1ccfd3a3a25b48772100388c25a375a4abdb5 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 66aa9f224c6a94b5d162634d27e276e793a3f3e2..5ea8ea3245b429fb3ae3f92486682a5798b3c4a4 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