+ if ($selected_id == -1)
+ {
+ text_row_ex(_("Host"), 'host', 30, 60);
+ text_row_ex(_("Port"), 'port', 30, 60);
+ text_row_ex(_("Database User"), 'dbuser', 30);
+ text_row_ex(_("Database Password"), 'dbpassword', 30);
+ text_row_ex(_("Database Name"), 'dbname', 30);
+ collations_list_row(_("Database Collation:"), 'collation');
+ yesno_list_row(_("Table Pref"), 'tbpref', 1, $_POST['tbpref'], _("None"), false);
+ check_row(_("Default Company"), 'def');
+ coa_list_row(_("Database Script"), 'coa');
+ text_row_ex(_("New script Admin Password"), 'admpassword', 20);
+ } else {
+ label_row(_("Host"), $_POST['host']);
+ label_row(_("Port"), $_POST['port']);
+ label_row(_("Database User"), $_POST['dbuser']);
+ label_row(_("Database Name"), $_POST['dbname']);
+ collations_list_row(_("Database Collation:"), 'collation');
+ label_row(_("Table Pref"), $_POST['tbpref']);
+ if (!get_post('def'))
+ check_row(_("Default Company"), 'def');
+ else
+ label_row(_("Default Company"), _("Yes"));
+ }