Example #1
0
    $id = $_GET['id'];
} else {
    // we will set it to -1 so we can indicate error later
    $id = -1;
}
// now let's see if this is an update
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    // yes! an update
    $domain['dom_id'] = $_POST['dom_id'];
    $domain['dom_name'] = $_POST['dom_name'];
    $domain['dom_reg_id'] = $_POST['dom_reg_id'];
    $domain['dom_reg_date'] = $_POST['dom_reg_date'];
    $domain['dom_exp_date'] = $_POST['dom_exp_date'];
    $domain['dom_comment'] = $_POST['dom_comment'];
    // let's trigger a value so we can print result later on
    if ($d->update($domain)) {
        $updated = true;
    } else {
        $updated = false;
    }
}
pageHead();
?>
<body>
    <?php 
headerHere('Domains', 'Here you can browse all your domains and see if they require attention');
?>
    <div class="container top30">
        <div class="row">
            <div class="span3">
                <ul class="nav nav-tabs nav-stacked sidebar">