Logo Search packages:      
Sourcecode: ibwebadmin version File versions  Download package

acc_domain.php

<?php
// File           acc_domain.php / ibWebAdmin
// Purpose        html sequence for the domains-panel in accessories.php
// Author         Lutz Brueckner <irie@gmx.de>
// Copyright      (c) 2000, 2001, 2002, 2003, 2004 by Lutz Brueckner,
//                published under the terms of the GNU General Public Licence v.2,
//                see file LICENCE for details
// Created        <00/10/11 12:37:33 lb>
//
// $Id: acc_domain.php,v 1.15 2004/01/29 15:53:46 lbrueckner Exp $

if (isset($s_confirmations['domain'])) {
    $subject = 'domain';
    include('panels/confirm.php');
}

elseif (isset($dom_add_flag)) {

    echo js_collations($s_charsets);
?>
<form method="post" action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?>" name="acc_domain_form">
<?php hidden_session_field(); ?>
<table border cellpadding="3" cellspacing="0">
<?php

    echo get_datatype_definition('dom', $acc_strings['CreateDom'], 1, TRUE);
    echo get_domain_constraint($s_coldefs['dom']);
?>
</table>
<input type="submit" name="acc_dom_create_cancel" value="<?php echo $button_strings['Cancel']; ?>">&nbsp;&nbsp;&nbsp;
<input type="reset" name="acc_dom_create_clear" value="<?php echo $button_strings['Reset']; ?>">&nbsp;&nbsp;&nbsp;
<input type="submit" name="acc_dom_create_doit" value="<?php echo $button_strings['Create']; ?>">
</form>
<?php

} elseif (isset($dom_mod_flag)) {

?>
<form method="post" action="<?php echo $HTTP_SERVER_VARS["PHP_SELF"]; ?>" name="acc_moddom_form">
<?php hidden_session_field(); ?>
<table border cellpadding="5">
<?php

    echo get_datatype_definition('dom', sprintf($acc_strings['ModDomain'], $s_mod_domain));
    echo get_domain_constraint($s_coldefs['dom'], FALSE);
?>
</table>
<input type="submit" name="acc_moddom_cancel" value="<?php echo $button_strings['Cancel']; ?>">
<input type="submit" name="acc_moddom_doit" value="<?php echo $button_strings['Save']; ?>">
</form>

<?php

} elseif ($s_connected) {

    if (count($s_domains) > 0) {

        echo get_domain_table($s_domains);
    }

    echo '<form method="post" action="'.$HTTP_SERVER_VARS['PHP_SELF']."\" name=\"acc_domain_form\">\n";

    if (count($s_domains) > 0) {
        echo '<input type="submit" name="acc_domain_reload" value="'.$button_strings['Reload']."\">&nbsp;&nbsp;&nbsp;\n";
        echo "<br><br>\n";
    }

    hidden_session_field();
?>
<table border cellpadding="3" cellspacing="0">
<tr>
  <th colspan="2" align="left"><?php echo $acc_strings['CreateDom']; ?></th>
  <td><input type="submit" name="acc_domain_create" value="<?php echo $button_strings['Create']; ?>"></td>
</tr>
<tr>
  <td>
    <b><?php echo $acc_strings['SelDomMod']; ?></b>
  </td>
  <td>
    <?php echo get_selectlist('acc_domain_mname', array_keys($s_domains), NULL, TRUE); ?>
  </td>
  <td align="left">
    <input type="submit" name="acc_domain_mod" value="<?php echo $button_strings['Modify']; ?>">
  </td>
</tr>
<tr>
  <td>
    <b><?php echo $acc_strings['SelDomDel']; ?></b>
  </td>
  <td>
    <?php echo get_selectlist('acc_domain_dname', array_keys($s_domains), NULL, TRUE); ?>
  </td>
  <td align="left">
    <input type="submit" name="acc_domain_del" value="<?php echo $button_strings['Delete']; ?>">
  </td>
</tr>
</table>
</form>
<?php

}

?>

Generated by  Doxygen 1.6.0   Back to index