* * 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/admin/imports/index.php \ingroup core \brief Page accueil de la zone import \version $Revision$ */ require_once("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT."/admin/import/dolibarrimport.class.php"); $langs->load("exports"); if (! $user->societe_id == 0) accessforbidden(); $export=new DolibarrImport($db); //$export->load_arrays($user); llxHeader('',$langs->trans("ImportArea")); print_fiche_titre($langs->trans("ImportArea")); print $langs->trans("FormatedImportDesc1").'
'; print $langs->trans("FormatedImportDesc2").'
'; print '
'; print ''; print ''; print '
'; // Liste des formats d'exports disponibles $var=true; print ''; print ''; print ''; print ''; print ''; print ''; include_once(DOL_DOCUMENT_ROOT.'/includes/modules/export/modules_export.php'); $model=new ModeleExports(); $liste=$model->liste_modeles($db); foreach($liste as $key) { $var=!$var; print ''; print ''; print ''; print ''; print ''; } print '
'.$langs->trans("AvailableFormats").''.$langs->trans("LibraryUsed").''.$langs->trans("LibraryVersion").'
'.$model->getDriverLabel($key).''.$model->getLibLabel($key).''.$model->getLibVersion($key).'
'; print '
'; // Affiche les modules d'exports print ''; print ''; print ''; print ''; //print ''; print ''; $val=true; if (sizeof($export->array_export_code)) { foreach ($export->array_export_code as $key => $value) { $val=!$val; print ''; // print ''; print ''; } print ''; } else { print ''; } print '
'.$langs->trans("Module").''.$langs->trans("ImportableDatas").' 
'; print img_object($export->array_export_module[$key]->getName(),$export->array_export_module[$key]->picto).' '; print $export->array_export_module[$key]->getName(); print ''; $string=$langs->trans($export->array_export_label[$key]); print ($string!=$export->array_export_label[$key]?$string:$export->array_export_label[$key]); print ''; // print ''.img_picto($langs->trans("NewExport"),'filenew').''; // print '
'.$langs->trans("NoImportableData").'
'; // Affiche les profils d'exports $sql = "SELECT rowid, label, public, fk_user, ".$db->pdate("datec"); $sql .= " FROM ".MAIN_DB_PREFIX."export as e"; $result=$db->query($sql); if ($result) { print '
'; print ''; print ''; print ''; print ''; $num = $db->num_rows($result); if ($num > 0) { $var = true; $i = 0; while ($i < $num ) { $obj = $db->fetch_object($result); $var=!$var; print ""; print ''; print ''; print ''; $i++; } } print "
'.$langs->trans("ExportProfiles").''.$langs->trans("Public").'
'.$obj->label.''.$yn($obj->public).'
"; } print '
'; $db->close(); llxFooter('$Date$ - $Revision$'); ?>