Save one click when using backup/restore.
This commit is contained in:
parent
cd036aa8ae
commit
d60bb77fea
@ -61,6 +61,8 @@ if ($action == 'delete')
|
|||||||
$form=new Form($db);
|
$form=new Form($db);
|
||||||
$formfile = new FormFile($db);
|
$formfile = new FormFile($db);
|
||||||
|
|
||||||
|
$label=getStaticMember($db, 'label');
|
||||||
|
|
||||||
$help_url='EN:Backups|FR:Sauvegardes|ES:Copias_de_seguridad';
|
$help_url='EN:Backups|FR:Sauvegardes|ES:Copias_de_seguridad';
|
||||||
llxHeader('','',$help_url);
|
llxHeader('','',$help_url);
|
||||||
|
|
||||||
@ -75,7 +77,6 @@ jQuery(document).ready(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hideoptions();
|
hideoptions();
|
||||||
|
|
||||||
jQuery("#radio_dump_mysql").click(function() {
|
jQuery("#radio_dump_mysql").click(function() {
|
||||||
hideoptions();
|
hideoptions();
|
||||||
jQuery("#mysql_options").show();
|
jQuery("#mysql_options").show();
|
||||||
@ -94,6 +95,11 @@ jQuery(document).ready(function() {
|
|||||||
jQuery("#checkbox_dump_disable-add-locks").attr('checked',true);
|
jQuery("#checkbox_dump_disable-add-locks").attr('checked',true);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ($label == 'MySQL') print 'jQuery("#radio_dump_mysql").click();';
|
||||||
|
if ($label == 'PostgreSQL') print 'jQuery("#radio_dump_postgresql").click();';
|
||||||
|
?>
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
@ -114,8 +120,6 @@ if ($_GET["msg"])
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$label=getStaticMember($db, 'label');
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- Dump of a server -->
|
<!-- Dump of a server -->
|
||||||
|
|||||||
@ -33,6 +33,8 @@ if (! $user->admin) accessforbidden();
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$label=getStaticMember($db, 'label');
|
||||||
|
|
||||||
$help_url='EN:Restores|FR:Restaurations|ES:Restauraciones';
|
$help_url='EN:Restores|FR:Restaurations|ES:Restauraciones';
|
||||||
llxHeader('','',$help_url);
|
llxHeader('','',$help_url);
|
||||||
|
|
||||||
@ -48,6 +50,10 @@ jQuery(document).ready(function() {
|
|||||||
jQuery("#radio_dump_postgresql").click(function() {
|
jQuery("#radio_dump_postgresql").click(function() {
|
||||||
jQuery("#postgresql_options").show();
|
jQuery("#postgresql_options").show();
|
||||||
});
|
});
|
||||||
|
<?php
|
||||||
|
if ($label == 'MySQL') print 'jQuery("#radio_dump_mysql").click();';
|
||||||
|
if ($label == 'PostgreSQL') print 'jQuery("#radio_dump_postgresql").click();';
|
||||||
|
?>
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
@ -58,8 +64,6 @@ print $langs->trans("RestoreDesc",DOL_DATA_ROOT).'<br><br>';
|
|||||||
print $langs->trans("RestoreDesc2",DOL_DATA_ROOT).'<br><br>';
|
print $langs->trans("RestoreDesc2",DOL_DATA_ROOT).'<br><br>';
|
||||||
print $langs->trans("RestoreDesc3",DOL_DATA_ROOT).'<br><br>';
|
print $langs->trans("RestoreDesc3",DOL_DATA_ROOT).'<br><br>';
|
||||||
|
|
||||||
$label=getStaticMember($db, 'label');
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<fieldset id="fieldsetexport">
|
<fieldset id="fieldsetexport">
|
||||||
|
|||||||
@ -158,6 +158,7 @@ FileNameToGenerate=File name to generate
|
|||||||
CommandsToDisableForeignKeysForImport=Command to disable foreign keys on import
|
CommandsToDisableForeignKeysForImport=Command to disable foreign keys on import
|
||||||
ExportCompatibility=Compatibility of generated export file
|
ExportCompatibility=Compatibility of generated export file
|
||||||
MySqlExportParameters=MySQL export parameters
|
MySqlExportParameters=MySQL export parameters
|
||||||
|
PostgreSqlExportParameters= PostgreSQL export parameters
|
||||||
UseTransactionnalMode=Use transactional mode
|
UseTransactionnalMode=Use transactional mode
|
||||||
FullPathToMysqldumpCommand=Full path to mysqldump command
|
FullPathToMysqldumpCommand=Full path to mysqldump command
|
||||||
FullPathToPostgreSQLdumpCommand=Full path to pg_dump command
|
FullPathToPostgreSQLdumpCommand=Full path to pg_dump command
|
||||||
|
|||||||
@ -159,6 +159,7 @@ FileNameToGenerate= Nom du fichier à générer
|
|||||||
CommandsToDisableForeignKeysForImport= Commande pour désactiver les clés étrangères à l'import
|
CommandsToDisableForeignKeysForImport= Commande pour désactiver les clés étrangères à l'import
|
||||||
ExportCompatibility= Compatibilité du fichier export généré
|
ExportCompatibility= Compatibilité du fichier export généré
|
||||||
MySqlExportParameters= Paramètres de l'export MySql
|
MySqlExportParameters= Paramètres de l'export MySql
|
||||||
|
PostgreSqlExportParameters= Paramètres de l'export PostgreSQL
|
||||||
UseTransactionnalMode= Utiliser le mode transactionnel
|
UseTransactionnalMode= Utiliser le mode transactionnel
|
||||||
FullPathToMysqldumpCommand= Chemin complet vers la commande mysqldump
|
FullPathToMysqldumpCommand= Chemin complet vers la commande mysqldump
|
||||||
FullPathToPostgreSQLdumpCommand= Chemin complet vers la commande pg_dump
|
FullPathToPostgreSQLdumpCommand= Chemin complet vers la commande pg_dump
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user