diff --git a/htdocs/install/check.php b/htdocs/install/check.php index 8b626bc3074..539e33352b7 100644 --- a/htdocs/install/check.php +++ b/htdocs/install/check.php @@ -46,10 +46,10 @@ dolibarr_install_syslog("Dolibarr install/upgrade process started"); pHeader($langs->trans("DolibarrWelcome"),""); // Etape suivante = license print '
Dolibarr logo

'; -print "
"; +print "
\n"; -print $langs->trans("InstallEasy")."
"; +print $langs->trans("InstallEasy")."
\n"; // Si fichier présent et lisible et renseigné clearstatcache(); @@ -107,7 +107,7 @@ else } print "
"; print $langs->trans("ConfFileIsNotWritable",'htdocs/conf/conf.php'); - print "
"; + print "
\n"; $allowinstall=0; } @@ -124,7 +124,7 @@ else } print "
"; print $langs->trans("ConfFileIsWritable",'conf.php'); - print "
"; + print "
\n"; $allowinstall=1; } @@ -150,7 +150,7 @@ else print $langs->trans("InstallNotAllowed"); } print ''; - print ''; + print ''."\n"; print ''.$langs->trans("Upgrade").''; print $langs->trans("UpgradeDesc").''; @@ -164,19 +164,14 @@ else print $langs->trans("NotAvailable"); } print ''; - print ''; + print ''."\n"; print ''; print "\n"; } -print ''; -print ''; -print ''; - -print ''; -print ''; +pFooter(1); ?> diff --git a/htdocs/install/default.css b/htdocs/install/default.css index 841bed35ec8..41c4e014dd4 100644 --- a/htdocs/install/default.css +++ b/htdocs/install/default.css @@ -22,14 +22,14 @@ body { font-size:13px; font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; background-color: #F4F4F4; -margin-left: 5%; -margin-right: 5%; -margin-top: 2em; -margin-bottom: 5%; +margin-left: 20px; +margin-right: 20px; +margin-top: 20px; +margin-bottom: 20px; } div.titre { -padding: 0.5em 0.5em 0.5em; +padding: 5px 5px 5px 5px; margin: 0em 0em 0em 0em; } @@ -38,7 +38,7 @@ font-size:1.1em; font-weight: bold; background: #dcdcd3; color: #4965B3; -padding: 0.5em 0.5em 0.5em; +padding: 5px 5px 5px 5px; margin: 0em 0em 0em 0em; border: 1px solid #8CACBB; } @@ -55,13 +55,13 @@ border-right: 1px solid #8CACBB; text-align: right; } -div.main { +table.main { background: #dcdcd3; text-align: left; border: 1px solid #8CACBB; } -div.main-inside { +table.main-inside { padding-left: 20px; padding-right: 20px; margin-bottom: 40px; diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php index c3601f1e68e..c3517770ddd 100644 --- a/htdocs/install/fileconf.php +++ b/htdocs/install/fileconf.php @@ -150,7 +150,7 @@ print $langs->trans("Examples").":
";

trans("DolibarrDatabase"); ?> -

+

'; print ''; print ''.$langs->trans("DolibarrSetup").''; + print '
'; print ''; - print '
'; + + print '
'; if ($soutitre) { print '
'.$soutitre.'
'; } - print '
'; + + print '
'; + } function pFooter($nonext=0,$setuplang='') @@ -103,7 +107,9 @@ function pFooter($nonext=0,$setuplang='') $langs->load("main"); $langs->load("admin"); - print ''; + print '
'; + print '
'; + if (! $nonext) { print '
">
'; @@ -112,6 +118,7 @@ function pFooter($nonext=0,$setuplang='') { print ''; } + print ''; print ''; print ''; diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index 8bb4cb9f0a3..329458a83fb 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -71,6 +71,7 @@ pHeader($langs->trans('DataMigration'),'etape5','upgrade'); if (isset($_POST['action']) && $_POST['action'] == 'upgrade') { print '

'.$langs->trans('DataMigration').'

'; + print ''; $conf = new Conf();// on pourrait s'en passer @@ -142,7 +143,6 @@ if (isset($_POST['action']) && $_POST['action'] == 'upgrade') print ''; - // Chaque action de migration doit renvoyer une ligne sur 4 colonnes avec // dans la 1ere colonne, la description de l'action a faire // dans la 4eme colonne, le texte 'OK' si fait ou 'AlreadyDone' si rien n'est fait ou 'Error' @@ -159,8 +159,6 @@ if (isset($_POST['action']) && $_POST['action'] == 'upgrade') migrate_contracts_open($db,$langs,$conf); - migrate_paiementfourn_facturefourn($db,$langs,$conf); - migrate_modeles($db,$langs,$conf); migrate_price_propal($db,$langs,$conf); @@ -169,11 +167,14 @@ if (isset($_POST['action']) && $_POST['action'] == 'upgrade') migrate_price_facture($db,$langs,$conf); + migrate_paiementfourn_facturefourn($db,$langs,$conf); + // On commit dans tous les cas. // La procédure etant conçue pour pouvoir passer plusieurs fois quelquesoit la situation. $db->commit(); $db->close(); + } print '
 
'; @@ -196,6 +197,8 @@ pFooter($error,$setuplang); */ function migrate_paiements($db,$langs,$conf) { + print ''; + print '
'; print ''.$langs->trans('MigrationPaymentsUpdate')."
\n"; @@ -258,7 +261,9 @@ function migrate_paiements($db,$langs,$conf) else { print $langs->trans('MigrationPaymentsNothingToUpdate')."
\n"; - } + } + + print ''; } @@ -267,6 +272,8 @@ function migrate_paiements($db,$langs,$conf) */ function migrate_contracts_det($db,$langs,$conf) { + print ''; + $nberr=0; print '
'; @@ -346,7 +353,9 @@ function migrate_contracts_det($db,$langs,$conf) { print $langs->trans('MigrationContractsFieldDontExist')."
\n"; // dolibarr_print_error($db); - } + } + + print ''; } @@ -355,6 +364,8 @@ function migrate_contracts_det($db,$langs,$conf) */ function migrate_contracts_date1($db,$langs,$conf) { + print ''; + print '
'; print ''.$langs->trans('MigrationContractsEmptyDatesUpdate')."
\n"; @@ -373,6 +384,8 @@ function migrate_contracts_date1($db,$langs,$conf) print $langs->trans('MigrationContractsEmptyCreationDatesUpdateSuccess')."
\n"; else print $langs->trans('MigrationContractsEmptyCreationDatesNothingToUpdate')."
\n"; + + print ''; } @@ -381,6 +394,8 @@ function migrate_contracts_date1($db,$langs,$conf) */ function migrate_contracts_date2($db,$langs,$conf) { + print ''; + $nberr=0; print '
'; @@ -433,6 +448,8 @@ function migrate_contracts_date2($db,$langs,$conf) { dolibarr_print_error($db); } + + print ''; } @@ -441,6 +458,8 @@ function migrate_contracts_date2($db,$langs,$conf) */ function migrate_contracts_date3($db,$langs,$conf) { + print ''; + print '
'; print ''.$langs->trans('MigrationContractsIncoherentCreationDateUpdate')."
\n"; @@ -451,6 +470,8 @@ function migrate_contracts_date3($db,$langs,$conf) print $langs->trans('MigrationContractsIncoherentCreationDateUpdateSuccess')."
\n"; else print $langs->trans('MigrationContractsIncoherentCreationDateNothingToUpdate')."
\n"; + + print ''; } @@ -459,6 +480,8 @@ function migrate_contracts_date3($db,$langs,$conf) */ function migrate_contracts_open($db,$langs,$conf) { + print ''; + print '
'; print ''.$langs->trans('MigrationReopeningContracts')."
\n"; @@ -501,6 +524,8 @@ function migrate_contracts_open($db,$langs,$conf) } } else print $langs->trans('MigrationReopeningContractsNothingToUpdate')."
\n"; + + print ''; } @@ -600,6 +625,8 @@ function migrate_price_facture($db,$langs,$conf) dolibarr_install_syslog("Upgrade data for invoice"); + print ''; + print '
'; print ''.$langs->trans('MigrationInvoice')."
\n"; @@ -686,8 +713,9 @@ function migrate_price_facture($db,$langs,$conf) $db->rollback(); } - print '
'; + print '

'; + print ''; } } @@ -703,6 +731,8 @@ function migrate_price_propal($db,$langs,$conf) dolibarr_install_syslog("Upgrade data for propal"); + print ''; + print '
'; print ''.$langs->trans('MigrationProposal')."
\n"; @@ -790,6 +820,8 @@ function migrate_price_propal($db,$langs,$conf) } print '
'; + + print ''; } } @@ -805,6 +837,8 @@ function migrate_price_commande($db,$langs,$conf) dolibarr_install_syslog("Upgrade data for order"); + print ''; + print '
'; print ''.$langs->trans('MigrationOrder')."
\n"; @@ -899,6 +933,8 @@ function migrate_price_commande($db,$langs,$conf) } print '
'; + + print ''; } } diff --git a/mysql/tables/llx_facture.sql b/mysql/tables/llx_facture.sql index 7a93f6b9e0a..1968c67bcd4 100644 --- a/mysql/tables/llx_facture.sql +++ b/mysql/tables/llx_facture.sql @@ -36,8 +36,8 @@ create table llx_facture remise_absolue real DEFAULT 0, -- remise absolue remise real DEFAULT 0, -- remise totale calculee - close_code varchar(12) after remise; -- Code motif cloture sans paiement complet - close_note varchar(128) after close_code; -- Commentaire cloture sans paiement complet + close_code varchar(12), -- Code motif cloture sans paiement complet + close_note varchar(128), -- Commentaire cloture sans paiement complet tva real DEFAULT 0, -- montant tva apres remise totale total real DEFAULT 0, -- montant total ht apres remise totale