function show_otherdb_form() { $ns = e107::getRender(); $parm = altAuthGetParams('otherdb'); $frm = new form(); $text = $frm->form_open("post", e_SELF); $text .= "<table class='table adminform'>"; $text .= "<tr><td>" . LAN_ALT_26 . "</td><td>"; $text .= OTHERDB_LAN_15; $text .= "</td></tr>"; $text .= alt_auth_get_db_fields('otherdb', $frm, $parm, 'server|uname|pwd|db|table|ufield|pwfield|salt'); $text .= "<tr><td>" . OTHERDB_LAN_9 . "</td><td>"; $text .= altAuthGetPasswordSelector('otherdb_password_method', $frm, $parm['otherdb_password_method'], TRUE); $text .= "</td></tr>"; $text .= "<tr><td class='forumheader2' colspan='2'>" . LAN_ALT_27 . "</td></tr>"; $text .= alt_auth_get_field_list('otherdb', $frm, $parm, FALSE); $text .= "<tr><td class='forumheader' colspan='2' style='text-align:center;'>"; $text .= e107::getForm()->admin_button("update", LAN_UPDATE, 'update'); $text .= '</td></tr>'; $text .= '</table>'; $text .= $frm->form_close(); $ns->tablerender(OTHERDB_LAN_10, $text); $ns->tablerender(LAN_ALT_40 . LAN_ALT_41, alt_auth_test_form('otherdb', $frm)); }
function show_e107db_form() { $ns = e107::getRender(); $parm = altAuthGetParams('e107db'); $frm = new form(); $text = $frm->form_open('post', e_SELF); $text .= "<table class='table adminform'>\r\n\t<colgroup span='2'>\r\n\t\t<col class='col-label' />\r\n\t\t<col class='col-control' />\r\n\t</colgroup>"; $text .= "<tr><td>" . LAN_ALT_26 . "</td><td>"; $text .= E107DB_LAN_1; $text .= "</td></tr>"; $text .= alt_auth_get_db_fields('e107db', $frm, $parm, 'server|uname|pwd|db|prefix|classfilt'); $text .= "<tr><td>" . E107DB_LAN_9 . "</td><td>"; $text .= altAuthGetPasswordSelector('e107db_password_method', $frm, $parm['e107db_password_method'], FALSE); $text .= "</td></tr>"; $text .= "<tr><td colspan='2'><br />" . E107DB_LAN_11 . "</td></tr>"; $text .= alt_auth_get_field_list('e107db', $frm, $parm, TRUE); $text .= "</table><div class='buttons-bar center'>"; $text .= e107::getForm()->admin_button("update", LAN_UPDATE, 'update'); // $text .= $frm -> form_button("submit", "update", LAN_ALT_UPDATESET); $text .= '</div>'; $text .= $frm->form_close(); $ns->tablerender(E107DB_LAN_10, $text); $ns->tablerender(LAN_ALT_40 . LAN_ALT_41, alt_auth_test_form('e107db', $frm)); }