2014-01-23 02:46:16 +01:00
|
|
|
<% include header.tt %>
|
2014-01-23 00:25:33 +01:00
|
|
|
<% include sidebar.tt %>
|
2014-01-24 22:37:02 +01:00
|
|
|
<% include error.tt %>
|
2014-01-20 01:08:03 +01:00
|
|
|
|
|
|
|
<div id="page">
|
2014-01-21 01:33:17 +01:00
|
|
|
|
|
|
|
<h3>Fichier de zone de <% domain %></h3>
|
|
|
|
|
2014-01-24 20:18:49 +01:00
|
|
|
<% IF expert %>
|
2014-01-25 02:33:38 +01:00
|
|
|
<a href='/domain/details/<% domain %>'><button type="button" class="btn btn-primary">Visualisation pour débutants</button></a>
|
2014-01-24 22:42:34 +01:00
|
|
|
<form class="form" action='/domain/updateraw/<% domain %>' method="post" >
|
2014-01-25 02:33:38 +01:00
|
|
|
<textarea name="zoneupdated" rows="15" cols="75"><% domain_zone %></textarea>
|
|
|
|
<input type="submit" value="Mettre à jour la zone" />
|
2014-01-24 20:18:49 +01:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<% ELSE %>
|
|
|
|
|
2014-01-25 02:33:38 +01:00
|
|
|
<table class="table" >
|
2014-01-24 20:18:49 +01:00
|
|
|
<caption>
|
|
|
|
<td>Name</td>
|
|
|
|
<td>Class</td>
|
|
|
|
<td>Type</td>
|
|
|
|
<td>Host</td>
|
|
|
|
<td>TTL</td>
|
|
|
|
</caption>
|
|
|
|
|
|
|
|
<% FOREACH address in ns %>
|
|
|
|
<tr>
|
|
|
|
<td><% address.name %></td>
|
|
|
|
<td><% address.class %></td>
|
|
|
|
<td>NS</td>
|
|
|
|
<td><% address.host %></td>
|
|
|
|
<td><% address.ttl %></td>
|
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
<% FOREACH address in a %>
|
|
|
|
<tr>
|
|
|
|
<td><% address.name %></td>
|
|
|
|
<td><% address.class %></td>
|
|
|
|
<td>A</td>
|
|
|
|
<td><% address.host %></td>
|
|
|
|
<td><% address.ttl %></td>
|
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
<% FOREACH address in aaaa %>
|
|
|
|
<tr>
|
|
|
|
<td><% address.name %></td>
|
|
|
|
<td><% address.class %></td>
|
|
|
|
<td>AAAA</td>
|
|
|
|
<td><% address.host %></td>
|
|
|
|
<td><% address.ttl %></td>
|
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
<% FOREACH address in cname %>
|
|
|
|
<tr>
|
|
|
|
<td><% address.name %></td>
|
|
|
|
<td><% address.class %></td>
|
|
|
|
<td>CNAME</td>
|
|
|
|
<td><% address.host %></td>
|
|
|
|
<td><% address.ttl %></td>
|
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
<% FOREACH address in ptr %>
|
|
|
|
<tr>
|
|
|
|
<td><% address.name %></td>
|
|
|
|
<td><% address.class %></td>
|
|
|
|
<td>PTR</td>
|
|
|
|
<td><% address.host %></td>
|
|
|
|
<td><% address.ttl %></td>
|
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
<% FOREACH address in mx %>
|
|
|
|
<tr>
|
|
|
|
<td><% address.name %></td>
|
|
|
|
<td><% address.class %></td>
|
|
|
|
<td>MX</td>
|
|
|
|
<td><% address.host %> (<% address.priority %>)</td>
|
|
|
|
<td><% address.ttl %></td>
|
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
|
|
|
|
</table>
|
2014-01-25 02:33:38 +01:00
|
|
|
<a href='/domain/details/<% domain %>?expert=1'><button type="button" class="btn btn-primary">Visualisation en mode expert</button></a>
|
2014-01-24 22:42:34 +01:00
|
|
|
|
|
|
|
<br /><br />
|
|
|
|
|
|
|
|
Ajouter un enregistrement : <br />
|
|
|
|
<form action='/domain/update/<% domain %>' method='post' >
|
2014-01-25 02:33:38 +01:00
|
|
|
|
2014-01-24 22:42:34 +01:00
|
|
|
<label for="name">Nom : </label><input type="text" name="name" />
|
|
|
|
<label for="type">Type : </label><select name="type" id="type" >
|
|
|
|
<option value="A">A</option>
|
|
|
|
<option value="AAAA">AAAA</option>
|
|
|
|
<option value="CNAME">CNAME</option>
|
|
|
|
<option value="MX">MX</option>
|
|
|
|
<option value="NS">NS</option>
|
|
|
|
<option value="PTR">PTR</option>
|
|
|
|
</select>
|
2014-01-25 02:33:38 +01:00
|
|
|
|
2014-01-24 22:42:34 +01:00
|
|
|
<label for="value">Valeur : </label><input type="text" id="value" name="value" />
|
2014-01-25 02:33:38 +01:00
|
|
|
<label for="input_ttl">TTL</label><input type="number" id="input_ttl" name="ttl" min='1' value="3600"/>
|
|
|
|
<button type="submit" class="btn btn-sm btn-primary">Valider</button>
|
2014-01-24 22:42:34 +01:00
|
|
|
</form>
|
|
|
|
|
2014-01-24 20:18:49 +01:00
|
|
|
<% END %>
|
2014-01-21 01:33:17 +01:00
|
|
|
|
2014-01-20 01:08:03 +01:00
|
|
|
</div>
|
2014-01-21 01:33:17 +01:00
|
|
|
|
2014-01-23 02:46:16 +01:00
|
|
|
</div> <!-- fin de colonne -->
|
|
|
|
</div> <!-- fin de ligne -->
|