Fix no form inside a table
This commit is contained in:
parent
e2a9bf3a83
commit
0abe05c6b7
@ -87,73 +87,78 @@ if (GETPOST('withtab', 'alpha')) {
|
|||||||
$linkback = '<a href="' . ($backtopage ? $backtopage : DOL_URL_ROOT . '/admin/modules.php') . '">' . $langs->trans("BackToModuleList") . '</a>';
|
$linkback = '<a href="' . ($backtopage ? $backtopage : DOL_URL_ROOT . '/admin/modules.php') . '">' . $langs->trans("BackToModuleList") . '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||||
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
print '<input type="hidden" name="action" value="update">';
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("ModuleSetup") . ' ' . $langs->trans('Modulebuilder'), $linkback);
|
print load_fiche_titre($langs->trans("ModuleSetup") . ' ' . $langs->trans('Modulebuilder'), $linkback);
|
||||||
|
|
||||||
if (GETPOST('withtab', 'alpha')) {
|
if (GETPOST('withtab', 'alpha')) {
|
||||||
dol_fiche_head($head, 'modulebuilder', '', -1);
|
dol_fiche_head($head, 'modulebuilder', '', -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">' . $langs->trans("ModuleBuilderDesc") . "</span><br>\n";
|
print '<span class="opacitymedium">' . $langs->trans("ModuleBuilderDesc") . "</span><br>\n";
|
||||||
|
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>' . $langs->trans("Key") . '</td>';
|
print '<td>' . $langs->trans("Key") . '</td>';
|
||||||
print '<td>' . $langs->trans("Value") . '</td>';
|
print '<td>' . $langs->trans("Value") . '</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
print '<tr class="oddeven">';
|
|
||||||
print '<td>' . $langs->trans("UseAboutPage") . '</td>';
|
if ($conf->global->MAIN_FEATURES_LEVEL >= 2)
|
||||||
print '<td align="center">';
|
{
|
||||||
if ($conf->use_javascript_ajax) {
|
// What is use cas of this 2 options ?
|
||||||
print ajax_constantonoff('MODULEBUILDER_USE_ABOUT');
|
|
||||||
} else {
|
print '<tr class="oddeven">';
|
||||||
if (empty($conf->global->MODULEBUILDER_USE_ABOUT)) {
|
print '<td>' . $langs->trans("UseAboutPage") . '</td>';
|
||||||
print '<a href="' . $_SERVER['PHP_SELF'] . '?action=set_MODULEBUILDER_USE_ABOUT">' . img_picto($langs->trans("Disabled"), 'off') . '</a>';
|
print '<td align="center">';
|
||||||
} else {
|
if ($conf->use_javascript_ajax) {
|
||||||
print '<a href="' . $_SERVER['PHP_SELF'] . '?action=del_MODULEBUILDER_USE_ABOUT">' . img_picto($langs->trans("Enabled"), 'on') . '</a>';
|
print ajax_constantonoff('MODULEBUILDER_USE_ABOUT');
|
||||||
}
|
} else {
|
||||||
|
if (empty($conf->global->MODULEBUILDER_USE_ABOUT)) {
|
||||||
|
print '<a href="' . $_SERVER['PHP_SELF'] . '?action=set_MODULEBUILDER_USE_ABOUT">' . img_picto($langs->trans("Disabled"), 'off') . '</a>';
|
||||||
|
} else {
|
||||||
|
print '<a href="' . $_SERVER['PHP_SELF'] . '?action=del_MODULEBUILDER_USE_ABOUT">' . img_picto($langs->trans("Enabled"), 'on') . '</a>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
print '<tr class="oddeven">';
|
||||||
|
print '<td>' . $langs->trans("UseDocFolder") . '</td>';
|
||||||
|
print '<td align="center">';
|
||||||
|
if ($conf->use_javascript_ajax) {
|
||||||
|
print ajax_constantonoff('MODULEBUILDER_USE_DOCFOLDER');
|
||||||
|
} else {
|
||||||
|
if (empty($conf->global->MODULEBUILDER_USE_DOCFOLDER)) {
|
||||||
|
print '<a href="' . $_SERVER['PHP_SELF'] . '?action=set_MODULEBUILDER_USE_DOCFOLDER">' . img_picto($langs->trans("Disabled"), 'off') . '</a>';
|
||||||
|
} else {
|
||||||
|
print '<a href="' . $_SERVER['PHP_SELF'] . '?action=del_MODULEBUILDER_USE_DOCFOLDER">' . img_picto($langs->trans("Enabled"), 'on') . '</a>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td>' . $langs->trans("UseDocFolder") . '</td>';
|
print '<td class="tdtop">' . $langs->trans("UseSpecificReadme") . '</td>';
|
||||||
print '<td align="center">';
|
print '<td>';
|
||||||
if ($conf->use_javascript_ajax) {
|
print '<textarea class="centpercent" rows="20" name="MODULEBUILDER_SPECIFIC_README">'.$conf->global->MODULEBUILDER_SPECIFIC_README.'</textarea>';
|
||||||
print ajax_constantonoff('MODULEBUILDER_USE_DOCFOLDER');
|
print '</td>';
|
||||||
} else {
|
print '</tr>';
|
||||||
if (empty($conf->global->MODULEBUILDER_USE_DOCFOLDER)) {
|
|
||||||
print '<a href="' . $_SERVER['PHP_SELF'] . '?action=set_MODULEBUILDER_USE_DOCFOLDER">' . img_picto($langs->trans("Disabled"), 'off') . '</a>';
|
|
||||||
} else {
|
|
||||||
print '<a href="' . $_SERVER['PHP_SELF'] . '?action=del_MODULEBUILDER_USE_DOCFOLDER">' . img_picto($langs->trans("Enabled"), 'on') . '</a>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<tr class="oddeven">';
|
|
||||||
print '<td>' . $langs->trans("UseSpecificReadme") . '</td>';
|
|
||||||
print '<td align="center">';
|
|
||||||
print '<textarea cols="100" rows="20" name="MODULEBUILDER_SPECIFIC_README">'.$conf->global->MODULEBUILDER_SPECIFIC_README.'</textarea>';
|
|
||||||
print '</td></tr>';
|
|
||||||
print '<tr class="oddeven">';
|
|
||||||
print '<td colspan="2"><center>';
|
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("Update").'" name="Button">';
|
|
||||||
print '</center></td></tr>';
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
print '<center><input type="submit" class="button" value="'.$langs->trans("Save").'" name="Button"></center>';
|
||||||
|
|
||||||
if (GETPOST('withtab', 'alpha')) {
|
if (GETPOST('withtab', 'alpha')) {
|
||||||
dol_fiche_end();
|
dol_fiche_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<br><br>';
|
print '<br>';
|
||||||
|
|
||||||
|
print '</form>';
|
||||||
|
|
||||||
// End of page
|
// End of page
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user