Example #1
0
                    <li class="divider"></li>
                    <li class=""><a href="settings.php"><i class="icon-wrench"></i> Settings</a></li>
                    <li class=""><a href="new.php"><i class="icon-plus-sign"></i> Add new</a></li>
                </ul>
            </div>
            <div class="span9" style="text-align: center;">
                <?php 
if ($id >= 0) {
    if ($confirmed) {
        if ($d->delete($id)) {
            box('Success', 'Domain has been successfully deleted', 'info');
        } else {
            box('Oh boy', 'Something went terribly wrong', 'warning');
        }
    } else {
        $dom = $d->get($id);
        echo '<h3>You are about to delete</h3><br><h2>' . $dom['dom_name'] . '</h2>';
        echo '
                        <form class="form-horizontal" action="delete.php?id=' . $id . '" method="post">
                            <input type="hidden" name="action" value="delete">
                            <div style="text-align:center;"><button type="submit" class="btn btn-warning"><i class="icon-edit"></i> Delete</button></div>
                        </form>';
    }
}
?>
            </div>
        </div>
    </div>
    <?php 
footerHere();
?>
Example #2
0
                    <li class="divider"></li>
                    <li class=""><a href="settings.php"><i class="icon-wrench"></i> Settings</a></li>
                    <li class=""><a href="new.php"><i class="icon-plus-sign"></i> Add new</a></li>
                </ul>
            </div>
            <div class="span9">
                <?php 
// did we just perform an update?
if (isset($updated)) {
    if ($updated) {
        box('Domain updated', 'Domain details has been successfully updated', 'success');
    } else {
        box('Error', 'Something went wrong while updating the domain', 'error');
    }
}
if ($id >= 0 && $d->get($id) > -1) {
    $dom = $d->get($id);
    $rget = $r->get($dom['dom_reg_id']);
    $dname = $rget['reg_name'];
    echo '
                <div class="row">
                    <div class="span8">
                        <div class="row">
                            <div class="span5">
                                <form class="form-horizontal" action="single.php?id=' . $id . '" method="post">
                                    <fieldset>
                                        <input type="hidden" name="dom_id" value="' . $dom['dom_id'] . '">
                                        <input type="hidden" name="action" value="update">
                                        <div class="control-group">
                                            <label class="control-label">Domain name</label>
                                            <div class="controls">