Beispiel #1
0
    echo "     </tr>\n";
    echo "     <tr>\n";
    echo "       <td colspan=\"2\">" . _('Template Name') . "</td>\n";
    echo "       <td><input class=\"wide\" type=\"text\" name=\"templ_name\" value=\"\"></td>\n";
    echo "      </tr>\n";
    echo "      <tr>\n";
    echo "       <td colspan=\"2\">" . _('Template Description') . "</td>\n";
    echo "       <td><input class=\"wide\" type=\"text\" name=\"templ_descr\" value=\"\"></td>\n";
    echo "      </tr>\n";
    echo "    </table>\n";
    echo "     <input type=\"submit\" class=\"button\" name=\"commit\" value=\"" . _('Commit changes') . "\">\n";
    echo "     <input type=\"reset\" class=\"button\" name=\"reset\" value=\"" . _('Reset changes') . "\">\n";
    echo "     <input type=\"submit\" class=\"button\" name=\"save_as\" value=\"" . _('Save as template') . "\">\n";
    if ($pdnssec_use) {
        $zone_name = get_zone_name_from_id($zone_id);
        if (dnssec_is_zone_secured($zone_name)) {
            echo "     <input type=\"button\" class=\"button\" name=\"dnssec\" onclick=\"location.href = 'dnssec.php?id=" . $zone_id . "';\" value=\"" . _('DNSSEC') . "\">\n";
            echo "     <input type=\"submit\" class=\"button\" name=\"unsign_zone\" value=\"" . _('Unsign this zone') . "\">\n";
        } else {
            echo "     <input type=\"submit\" class=\"button\" name=\"sign_zone\" value=\"" . _('Sign this zone') . "\">\n";
        }
    }
    echo "    </form>\n";
}
if ($perm_content_edit == "all" || ($perm_content_edit == "own" || $perm_content_edit == "own_as_client") && $user_is_zone_owner == "1") {
    if ($domain_type != "SLAVE") {
        $zone_name = get_zone_name_from_id($zone_id);
        echo "     <form method=\"post\" action=\"add_record.php?id=" . $zone_id . "\">\n";
        echo "      <input type=\"hidden\" name=\"domain\" value=\"" . $zone_id . "\">\n";
        echo "      <table border=\"0\" cellspacing=\"4\">\n";
        echo "       <tr>\n";
Beispiel #2
0
        if ($count_zones_edit > 0 && ($perm_edit == "all" || $perm_edit == "own" && $user_is_zone_owner == "1")) {
            echo "       <input type=\"checkbox\" name=\"zone_id[]\" value=\"" . $zone['id'] . "\">";
        }
        echo "          </td>\n";
        echo "          <td class=\"actions\">\n";
        echo "           <a href=\"edit.php?name=" . $zone['name'] . "&id=" . $zone['id'] . "\"><img src=\"images/edit.gif\" title=\"" . _('View zone') . " " . $zone['name'] . "\" alt=\"[ " . _('View zone') . " " . $zone['name'] . " ]\"></a>\n";
        if ($perm_edit == "all" || $perm_edit == "own" && $user_is_zone_owner == "1") {
            echo "           <a href=\"delete_domain.php?name=" . $zone['name'] . "&id=" . $zone["id"] . "\"><img src=\"images/delete.gif\" title=\"" . _('Delete zone') . " " . $zone['name'] . "\" alt=\"[ " . _('Delete zone') . " " . $zone['name'] . " ]\"></a>\n";
        }
        echo "          </td>\n";
        echo "          <td class=\"name\">" . $zone["name"] . "</td>\n";
        echo "          <td class=\"type\">" . strtolower($zone["type"]) . "</td>\n";
        echo "          <td class=\"count\">" . $zone["count_records"] . "</td>\n";
        echo "          <td class=\"owner\">" . $zone_owners . "</td>\n";
        if ($iface_zonelist_serial) {
            if ($serial != "") {
                echo "          <td class=\"y\">" . $serial . "</td>\n";
            } else {
                echo "          <td class=\"n\">&nbsp;</td>\n";
            }
        }
        if ($pdnssec_use) {
            echo "          <td class=\"dnssec\"><input type=\"checkbox\" onclick=\"return false\" " . (dnssec_is_zone_secured($zone['name']) ? 'checked' : '') . "></td>\n";
        }
        echo "           </tr>\n";
    }
    echo "          </table>\n";
    echo "      <input type=\"submit\" name=\"commit\" value=\"" . _('Delete zone(s)') . "\" class=\"button\">\n";
    echo "     </form>\n";
}
include_once "inc/footer.inc.php";