servnest/form.ns.php

60 lines
1.5 KiB
PHP
Raw Normal View History

2021-05-16 14:55:39 +00:00
<label for="action">Action</label>
<select name="action" id="action">
2022-04-18 14:05:00 +00:00
<option value="add">Ajouter</option>
<option value="delete">Retirer</option>
2021-05-16 14:55:39 +00:00
</select>
<br>
<fieldset>
2022-04-18 14:05:00 +00:00
<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>
2021-05-16 14:55:39 +00:00
2022-04-18 14:05:00 +00:00
<?php
$zones = nsListUserZones($_SESSION['username']);
2021-05-16 14:55:39 +00:00
2022-04-18 14:05:00 +00:00
if (!empty($zones)) {
foreach ($zones as $zone)
echo "<option value='" . $zone . "'>" . $zone . "</option>";
}
?>
</select>
</div>
</fieldset>
2021-05-16 14:55:39 +00:00
<fieldset>
2022-04-18 14:05:00 +00:00
<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>
2021-05-16 14:55:39 +00:00
</fieldset>