Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export MySQL en php only corrigé #21

354 changes: 354 additions & 0 deletions htdocs/admin/customfields.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion htdocs/admin/societe_extrafields.php
Expand Up @@ -250,7 +250,7 @@
// Label
print '<tr><td class="fieldrequired" required>'.$langs->trans("Label").'</td><td class="valeur"><input type="text" name="label" size="40" value="'.GETPOST('label').'"></td></tr>';
// Code
print '<tr><td class="fieldrequired" required>'.$langs->trans("AttributeCode").' ('.$langs->trans("AlphaNumOnlyCharsAndNoSpace").')</td><td class="valeur"><input type="text" name="attrname" size="10" value"'.GETPOST('attrname').'"></td></tr>';
print '<tr><td class="fieldrequired" required>'.$langs->trans("AttributeCode").' ('.$langs->trans("AlphaNumOnlyCharsAndNoSpace").')</td><td class="valeur"><input type="text" name="attrname" size="10" value="'.GETPOST('attrname').'"></td></tr>';
// Type
print '<tr><td class="fieldrequired" required>'.$langs->trans("Type").'</td><td class="valeur">';
print $form->selectarray('type',$type2label,GETPOST('type'));
Expand Down
21 changes: 18 additions & 3 deletions htdocs/admin/tools/dolibarr_export.php
Expand Up @@ -45,13 +45,25 @@
?>
<script type="text/javascript" language="javascript">
jQuery(document).ready(function() {
jQuery("#mysql_options").hide();
jQuery("#postgresql_options").hide();

function hideoptions () {
jQuery("#mysql_options").hide();
jQuery("#mysql_options_nobin").hide();
jQuery("#postgresql_options").hide();
}

hideoptions();

jQuery("#radio_dump_mysql").click(function() {
hideoptions();
jQuery("#mysql_options").show();
});
jQuery("#radio_dump_mysql_nobin").click(function() {
hideoptions();
jQuery("#mysql_options_nobin").show();
});
jQuery("#radio_dump_postgresql").click(function() {
hideoptions();
jQuery("#postgresql_options").show();
});
});
Expand Down Expand Up @@ -96,6 +108,9 @@
<div class="formelementrow"><input type="radio" name="what" value="mysql" id="radio_dump_mysql" />
<label for="radio_dump_mysql">MySQL Dump (mysqldump)</label>
</div>
<div class="formelementrow"><input type="radio" name="what" value="mysqlnobin" id="radio_dump_mysql_nobin" />
<label for="radio_dump_mysql">MySQL Dump (php)</label>
</div>
<?php
}
else if ($db->label == 'PostgreSQL')
Expand Down Expand Up @@ -332,4 +347,4 @@
$db->close();

llxFooter('$Date: 2011/08/03 00:45:43 $ - $Revision: 1.40 $');
?>
?>