piler/webui/view/theme/default/templates/domain/list.tpl

59 lines
2.0 KiB
Smarty
Raw Normal View History

2012-02-08 23:14:28 +01:00
<h4><?php print $text_add_new_domain; ?></h4>
2013-04-05 10:16:33 +02:00
<?php if(isset($x)){ ?>
<div class="alert alert-info"><?php print $x; ?></div>
<?php } ?>
2012-02-08 23:14:28 +01:00
2013-04-05 10:16:33 +02:00
<form method="post" name="add1" action="index.php?route=domain/domain" class="form-horizontal">
<div class="control-group">
<label class="control-label" for="domain"><?php print $text_domain; ?>:</label>
<div class="controls">
<input type="text" class="text" name="domain" placeholder="Domain" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="mapped"><?php print $text_mapped_domain; ?>:</label>
<div class="controls">
<input type="text" class="text" name="mapped" placeholder="Mapped Domain" />
</div>
</div>
<div class="form-actions">
<input type="submit" value="<?php print $text_add; ?>" class="btn btn-primary" />
<input type="reset" value="<?php print $text_clear; ?>" class="btn" />
</div>
2012-02-08 23:14:28 +01:00
</form>
<h4><?php print $text_existing_domains; ?></h4>
2013-02-11 20:24:19 +01:00
<div class="listarea">
2012-11-01 22:33:57 +01:00
2012-02-08 23:14:28 +01:00
<?php if(isset($domains)){ ?>
2013-04-05 10:16:33 +02:00
<table id="ss1" class="table table-striped table-condensed">
<tr>
<th class="domaincell"><?php print $text_domain; ?></th>
<th class="domaincell"><?php print $text_mapped_domain; ?></th>
<th class="domaincell">&nbsp;</th>
</tr>
2012-02-08 23:14:28 +01:00
<?php foreach($domains as $domain) { ?>
2013-04-05 10:16:33 +02:00
<tr>
<td class="domaincell"><a href="index.php?route=user/list&search=@<?php print $domain['domain']; ?>"><?php print $domain['domain']; ?></a></td>
<td class="domaincell"><?php print $domain['mapped']; ?></td>
<td class="domaincell"><a href="index.php?route=domain/remove&amp;domain=<?php print urlencode($domain['domain']); ?>" onclick="javascript:confirm('Delete Domain','Delete','Cancel','<?php print urlencode($domain['domain']); ?>')"><?php print $text_remove; ?></a></td>
</tr>
2012-02-08 23:14:28 +01:00
<?php } ?>
</div>
<?php } else { ?>
2013-04-05 10:16:33 +02:00
<div class="alert alert-error lead">
<?php print $text_not_found; ?>
</div>
2012-02-08 23:14:28 +01:00
<?php } ?>
2012-11-01 22:33:57 +01:00
</div>