58 lines
1.6 KiB
PHP
58 lines
1.6 KiB
PHP
<label for="action">Action</label>
|
|
<select name="action" id="action">
|
|
<option value="add">Ajouter</option>
|
|
<option value="delete">Retirer</option>
|
|
</select>
|
|
<br>
|
|
|
|
<fieldset>
|
|
<legend>Domaine</legend>
|
|
<div>
|
|
<label for="subdomain">Sous-domaine</label>
|
|
<br>
|
|
<input id="subdomain" size="16" placeholder="www" pattern="^(([a-z0-9_-]{1,63}\.?){1,127})|(@){1}$" name="subdomain" type="text">
|
|
</div>
|
|
<div>
|
|
<label for="zone">Zone</label>
|
|
<br>
|
|
<select required="" name="zone" id="zone">
|
|
<option value="" disabled="" selected="">-</option>
|
|
<?php
|
|
$zones = nsListUserZones($_SESSION['username']);
|
|
|
|
if (!empty($zones))
|
|
foreach ($zones as $zone)
|
|
echo "<option value='" . $zone . "'>" . $zone . "</option>";
|
|
?>
|
|
|
|
</select>
|
|
</div>
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<legend><abbr title="Time To Live">TTL</abbr></legend>
|
|
<div>
|
|
<label for="ttl-value">Valeur</label>
|
|
<br>
|
|
<input required="" id="ttl-value" list="ttls" name="ttl-value" size="6" type="number" min="1" max="432000" value="10800" placeholder="10800">
|
|
<datalist id="ttls">
|
|
<option value="900">
|
|
<option value="1800">
|
|
<option value="3600">
|
|
<option value="10800">
|
|
<option value="21600">
|
|
<option value="86400">
|
|
<option value="432000">
|
|
</datalist>
|
|
</div>
|
|
<div>
|
|
<label for="ttl-multiplier">Unité</label>
|
|
<br>
|
|
<select required="" name="ttl-multiplier" id="ttl-multiplier">
|
|
<option value="1">seconde</option>
|
|
<option value="60">minute</option>
|
|
<option value="3600">heure</option>
|
|
<option value="86400">jour</option>
|
|
</select>
|
|
</div>
|
|
</fieldset>
|