if ($s_connected == TRUE && $s_enter_name == '') {
    ?>
    <form method="post" action="<?php 
    echo url_session($_SERVER['PHP_SELF']);
    ?>
" name="dt_enter_form">
        <table class="table table-bordered">
            <tr>
                <td colspan="2"><b><?php 
    echo $dt_strings['SelTable'];
    ?>
</b><br>
                    <?php 
    echo get_table_selectlist('dt_enter_name', array('noviews', 'insert'), NULL, TRUE);
    ?>
                </td>
                <td valign="bottom">
                    <input type="submit" class="btn btn-default" name="dt_enter_select" value="<?php 
    echo $button_strings['Select'];
    ?>
">
                </td>
            </tr>
        </table>
    </form>
<?php 
} elseif ($s_connected == TRUE) {
    $js_stack .= js_giveFocus('dt_enter_form', 'dt_enter_field_0');
    $df = new DataFormEnter($s_enter_name, $s_fields[$s_enter_name], $s_enter_values);
    echo $df->renderHTML();
}
<?php

// Purpose        html sequence for the sql_enter-panel in sql.php
// Author         Lutz Brueckner <*****@*****.**>
// Copyright      (c) 2000-2006 by Lutz Brueckner,
//                published under the terms of the GNU General Public Licence v.2,
//                see file LICENCE for details
$js_stack .= js_giveFocus('sql_enter_form', 'sql_script');
?>
<form method="post" action="<?php 
echo url_session($_SERVER['PHP_SELF']);
?>
" name="sql_enter_form" enctype="multipart/form-data">
   <table class="table" cellpadding="3" cellspacing="0">
      <tr>
         <td colspan="5">
            <textarea class="form-control" name="sql_script" id="sql_script" wrap="virtual" rows="10"><?php 
echo htmlspecialchars($sql_script);
?>
</textarea>
         </td>
      </tr>
      <tr>
         <td colspan="5" align="right">
            <input name="sql_file" type="file" size="50" maxlength="100000" accept="text/*">
            <input class="btn btn-primary" type="submit" name="sql_load" value="<?php 
echo $button_strings['Load'];
?>
">
            <input class="btn btn-primary" type="submit" name="sql_execute" value="<?php 
echo $button_strings['Execute'];