mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-28 16:20:11 +01:00
59 lines
2.0 KiB
Smarty
59 lines
2.0 KiB
Smarty
<h4><?php print $text_add_new_domain; ?></h4>
|
|
|
|
<?php if(isset($x)){ ?>
|
|
<div class="alert alert-info"><?php print $x; ?></div>
|
|
<?php } ?>
|
|
|
|
<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>
|
|
|
|
</form>
|
|
|
|
<h4><?php print $text_existing_domains; ?></h4>
|
|
|
|
<div class="listarea">
|
|
|
|
<?php if(isset($domains)){ ?>
|
|
|
|
<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"> </th>
|
|
</tr>
|
|
|
|
<?php foreach($domains as $domain) { ?>
|
|
<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&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>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
<?php } else { ?>
|
|
<div class="alert alert-error lead">
|
|
<?php print $text_not_found; ?>
|
|
</div>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|