mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-08 00:57:01 +03:00
more sex-appeal! initial commit
1.) Redesign of the login page 2.) Navbar using foundation5, searchbox in navbar (the clear button inside the searchbox has to be modified, looks displaced at the moment) 2.) add option to hide slave-zones, e.g. $showslavezones, line 170
This commit is contained in:
parent
f657f64085
commit
f67229b8a4
1 changed files with 132 additions and 83 deletions
167
index.php
167
index.php
|
@ -20,15 +20,19 @@ if (!is_logged_in() and isset($_POST['formname']) and $_POST['formname'] === "lo
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||||
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>NSEdit!</title>
|
<title>NSEdit!</title>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width">
|
||||||
|
<link rel="stylesheet" href="theme/css/dtsi.css">
|
||||||
|
<link rel="stylesheet" href="theme/fnd5/css/foundation.css">
|
||||||
|
<script src="theme/fnd5/js/vendor/modernizr.js"></script>
|
||||||
<link href="jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"/>
|
<link href="jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"/>
|
||||||
<link href="jtable/lib/themes/metro/blue/jtable.min.css" rel="stylesheet" type="text/css"/>
|
<link href="jtable/lib/themes/metro/blue/jtable.min.css" rel="stylesheet" type="text/css"/>
|
||||||
<link href="css/base.css" rel="stylesheet" type="text/css"/>
|
<link href="css/base.css" rel="stylesheet" type="text/css"/>
|
||||||
<?php if ($menutype === horizontal) { ?>
|
|
||||||
<link href="css/horizontal-menu.css" rel="stylesheet" type="text/css"/>
|
|
||||||
<?php } ?>
|
|
||||||
<script src="jquery-ui/jquery-1.10.2.js" type="text/javascript"></script>
|
<script src="jquery-ui/jquery-1.10.2.js" type="text/javascript"></script>
|
||||||
<script src="jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
|
<script src="jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
|
||||||
<script src="jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
|
<script src="jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
|
||||||
|
@ -43,47 +47,69 @@ if (!is_logged_in() and isset($_POST['formname']) and $_POST['formname'] === "lo
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (!is_logged_in()) {
|
if (!is_logged_in()) {
|
||||||
?>
|
?>
|
||||||
<body onload="document.getElementById('username').focus()">
|
<body onload="document.getElementById('username').focus()">
|
||||||
<div class="loginblock">
|
<!--<nav class="top-bar" data-topbar role="navigation">
|
||||||
<div class="logo">
|
<ul class="title-area">
|
||||||
<img src="https://www.tuxis.nl/uploads/images/nsedit.png" alt="Logo"/>
|
<li class="name">
|
||||||
|
<h2><a href="#">NSEdit!</a></h1>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>-->
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="large-12 columns">
|
||||||
|
<?php if (isset($errormsg)) { echo '<div data-alert class="alert-box alert">' . $errormsg . '<a href="#" class="close">×</a></div>'; } ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="login">
|
|
||||||
<?php if (isset($errormsg)) {
|
<div class="large-6 large-centered columns">
|
||||||
echo '<span style="color: red">' . $errormsg . '</span><br />';
|
<div class="login-box">
|
||||||
}
|
<div class="row">
|
||||||
?>
|
<div class="large-12 columns">
|
||||||
<form action="index.php" method="post">
|
<form action="index.php" method="post">
|
||||||
<table>
|
<div class="row">
|
||||||
<tr>
|
<div class="large-12 columns">
|
||||||
<td class="label">Username:</td>
|
<p class="text-center"><img src="https://www.powerdns.com/img/powerdns-logo-220px.png"/></p>
|
||||||
<td><input id="username" type="text" name="username"></td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="row">
|
||||||
<td class="label">Password:</td>
|
<div class="large-12 columns">
|
||||||
<td><input type="password" name="password"></td>
|
<input id="username" type="text" name="username" placeholder="Username">
|
||||||
</tr>
|
</div>
|
||||||
<?php
|
</div>
|
||||||
if (isset($secret) && $secret) {
|
<div class="row">
|
||||||
?>
|
<div class="large-12 columns">
|
||||||
<tr>
|
<input type="password" name="password" placeholder="Password">
|
||||||
<td class="label">Remember me:</td>
|
</div>
|
||||||
<td><input type="checkbox" name="autologin" value="1"></td>
|
</div>
|
||||||
</tr>
|
<div class="row">
|
||||||
<?php
|
<div class="large-12 large-centered columns">
|
||||||
}
|
<input type="submit" class="button expand" <?php if ($blocklogin == TRUE) { echo "disabled"; }; ?> value="Log In"/>
|
||||||
?>
|
</div>
|
||||||
<tr>
|
</div>
|
||||||
<td></td>
|
<?php if (isset($secret) && $secret) { ?>
|
||||||
<td><input type="submit" name="submit" value="Log me in!" <?php if ($blocklogin === TRUE) { echo "disabled"; }; ?>></td>
|
<div class="row">
|
||||||
</tr>
|
<div class="large-12 large-centered columns">
|
||||||
</table>
|
<input id="autologin" type="checkbox" value="1"><label for="autologin">Remember me</label>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
<input type="hidden" name="formname" value="loginform">
|
<input type="hidden" name="formname" value="loginform">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<script src="theme/fnd5/js/vendor/jquery.js"></script>
|
||||||
|
<script src="theme/fnd5/js/foundation.min.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).foundation();
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
@ -100,33 +126,50 @@ if ($blocklogin === TRUE) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<body>
|
<body>
|
||||||
<div id="wrap">
|
<nav class="top-bar" data-topbar role="navigation">
|
||||||
<div id="dnssecinfo">
|
<ul class="title-area">
|
||||||
</div>
|
<li class="name">
|
||||||
<div id="menu" class="jtable-main-container <?php if ($menutype === horizontal) { ?>horizontal<?php } ?>">
|
<h2><a href="#">NSEdit!</a></h1>
|
||||||
<div class="jtable-title menu-title">
|
</li>
|
||||||
<div class="jtable-title-text">
|
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
|
||||||
NSEdit!
|
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
|
||||||
<ul>
|
<section class="top-bar-section">
|
||||||
|
<!-- Right Nav Section -->
|
||||||
|
<ul class="right">
|
||||||
|
<!-- <?php if (is_adminuser() or $allowzoneadd === TRUE) { ?><li><a href=# id="ImportZone">Import Zone</a></li><?php } ?> -->
|
||||||
<li><a href="#" id="zoneadmin">Zones</a></li>
|
<li><a href="#" id="zoneadmin">Zones</a></li>
|
||||||
<?php if (is_adminuser()) { ?>
|
<?php if (is_adminuser()) { ?><li><a href="#" id="useradmin">Users</a></li><?php } ?>
|
||||||
<li><a href="#" id="useradmin">Users</a></li>
|
|
||||||
<?php } ?>
|
|
||||||
<li><a href="index.php?logout=1">Logout</a></li>
|
<li><a href="index.php?logout=1">Logout</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<!-- Left Nav Section -->
|
||||||
|
<ul class="left">
|
||||||
|
<li class="has-form">
|
||||||
|
<div class="row collapse">
|
||||||
|
<div class="large-8 small-9 columns">
|
||||||
|
<input id="domsearch" type="text" name="domsearch" placeholder="Search...">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="large-4 small-3 columns">
|
||||||
|
<a href="#" class="alert button expand">Search</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
<div id="zones">
|
<div id="zones">
|
||||||
<?php if (is_adminuser() or $allowzoneadd === TRUE) { ?>
|
<?php if (is_adminuser() or $allowzoneadd === TRUE) { ?>
|
||||||
<div style="visibility: hidden;" id="ImportZone"></div>
|
<div style="visibility: hidden;" id="ImportZone"></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div class="tables" id="MasterZones">
|
<div class="tables" id="MasterZones">
|
||||||
<div class="searchbar" id="searchbar">
|
|
||||||
<input type="text" id="domsearch" name="domsearch" placeholder="Search...."/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<?php if ($showslavezones === TRUE) { ?>
|
||||||
<div class="tables" id="SlaveZones"></div>
|
<div class="tables" id="SlaveZones"></div>
|
||||||
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<?php if (is_adminuser()) { ?>
|
<?php if (is_adminuser()) { ?>
|
||||||
<div id="users">
|
<div id="users">
|
||||||
|
@ -134,6 +177,7 @@ if ($blocklogin === TRUE) {
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.csrf_token = '<?php echo CSRF_TOKEN ?>';
|
window.csrf_token = '<?php echo CSRF_TOKEN ?>';
|
||||||
|
|
||||||
|
@ -564,18 +608,23 @@ $(document).ready(function () {
|
||||||
title: 'Type',
|
title: 'Type',
|
||||||
width: '2%',
|
width: '2%',
|
||||||
options: function() {
|
options: function() {
|
||||||
/*
|
|
||||||
zonename = new String(zone.record.name);
|
zonename = new String(zone.record.name);
|
||||||
if (zonename.match(/(\.in-addr|\.ip6)\.arpa/)) {
|
if (zonename.match(/(\.in-addr|\.ip6)\.arpa/)) {
|
||||||
return {
|
return {
|
||||||
'PTR':'PTR',
|
'PTR': 'PTR',
|
||||||
'NS':'NS',
|
'NS': 'NS',
|
||||||
'MX':'MX',
|
'MX': 'MX',
|
||||||
'TXT':'TXT',
|
'TXT': 'TXT',
|
||||||
'SOA':'SOA'
|
'SOA': 'SOA',
|
||||||
|
'A': 'A',
|
||||||
|
'AAAA': 'AAAA',
|
||||||
|
'CNAME': 'CNAME',
|
||||||
|
'NAPTR': 'NAPTR',
|
||||||
|
'SPF': 'SPF',
|
||||||
|
'SRV': 'SRV',
|
||||||
|
'TLSA': 'TLSA',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
return {
|
return {
|
||||||
'A': 'A',
|
'A': 'A',
|
||||||
'AAAA': 'AAAA',
|
'AAAA': 'AAAA',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue