<tr> <th class="h2" colspan="2">Connection Parameters</th> </tr> <tr> <th class="right">{$prompt_dbhost}:</th> <td class="left">##dbhost.input.20##</td> </tr> <tr> <th class="right">{$prompt_dbport}:</th> <td class="left">##dbport.input.5##</td> </tr> <tr> <th class="right">{$prompt_dbname}:</th> <td class="left">##dbname.input.20##</td> </tr> <tr> <th class="right">{$prompt_dbuser}:</th> <td class="left">##dbuser.input.20##</td> </tr> <tr> <th class="right">{$prompt_dbpass}:</th> <td class="left">##dbpass.password.20##</td> </tr> <tr> <th class="h2" colspan="2">Operation Parameters</th> </tr> <tr> <th class="right">{$prompt_app_user}:</th> <td class="left">##app_user.input.20##</td> </tr> <tr> <th class="right">{$prompt_do_patch}:</th> <td class="left">##apply_patches.checkbox##</td> </tr> <tr> <th class="right">{$prompt_owner}:</th> <td class="left">##owner.input.20##</td> </tr> <tr> <th class="right"></th> <td class="left" colspan="2">##submit##</td> </tr> </table> </form> EOTEMPLATE; $editor->SetTemplate($template); $page_elements[] = $editor; $c->stylesheets[] = 'css/edit.css'; include "page-header.php"; /** * Page elements could be an array of viewers, browsers or something else * that supports the Render() method... or a non-object which we assume is * just a string of text that we echo. */ $heading_level = null; foreach ($page_elements as $k => $page_element) { if (is_object($page_element)) { echo $page_element->Render($heading_level); $heading_level = 'h2'; } else { echo $page_element;