mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 12:47:03 +02:00
added support for multiple AD
This commit is contained in:
19
webui/view/theme/default/templates/ldap/domains.tpl
Normal file
19
webui/view/theme/default/templates/ldap/domains.tpl
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
<?php foreach($domains as $domain) { ?>
|
||||
<a href="#" onclick="append_value_from_slider('domains', '<?php print $domain['domain']; ?>');"><?php print $domain['domain']; ?></a><br />
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div id="pagenav">
|
||||
<?php if($page > 0){ ?><a href="index.php?route=domain/domains&page=0&term=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> « <?php if($page > 0){ ?></a><?php } ?>
|
||||
|
||||
<?php if($page > 0){ ?><a href="index.php?route=domain/domains&page=<?php print $prev_page; ?>&term=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> ‹ <?php if($page > 0){ ?></a><?php } ?>
|
||||
|
||||
<?php if(count($domains) > 0) { print $domains[0][$sort]; ?> - <?php print $domains[count($domains)-1][$sort]; } ?>
|
||||
|
||||
<?php if($total >= $page_len*($page+1) && $total > $page_len){ ?><a href="index.php?route=domain/domains&page=<?php print $next_page; ?>&term=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> › <?php if($total >= $page_len*($page+1) && $total > $page_len){ ?></a><?php } ?>
|
||||
|
||||
<?php if($page < $total_pages){ ?><a href="index.php?route=domain/domains&page=<?php print $total_pages; ?>&term=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> » <?php if($page < $total_pages){ ?></a><?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="top20px"><a href="#" onclick="window.close();">close</a></div>
|
81
webui/view/theme/default/templates/ldap/list.tpl
Normal file
81
webui/view/theme/default/templates/ldap/list.tpl
Normal file
@ -0,0 +1,81 @@
|
||||
<h4><?php print $text_add_new_entry; ?></h4>
|
||||
|
||||
<?php if(isset($x)){ ?>
|
||||
<div class="alert alert-info"><?php print $x; ?></div>
|
||||
<?php } ?>
|
||||
|
||||
<form method="post" name="add1" action="index.php?route=ldap/list" class="form-horizontal">
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="description"><?php print $text_description; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="text" name="description" id="description" placeholder="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="ldap_host"><?php print $text_ldap_host; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="text" name="ldap_host" id="ldap_host" placeholder="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="ldap_base_dn"><?php print $text_ldap_base_dn; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="text" name="ldap_base_dn" id="ldap_base_dn" placeholder="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="ldap_bind_dn"><?php print $text_ldap_bind_dn; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="text" name="ldap_bind_dn" id="ldap_bind_dn" placeholder="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="ldap_bind_pw"><?php print $text_ldap_bind_pw; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="password" class="password" name="ldap_bind_pw" id="ldap_bind_pw" placeholder="" /> <input type="button" value="<?php print $text_test_connection; ?>" class="btn btn-danger" onclick="Piler.test_ldap_connection(); return false;" /> <span id="LDAPTEST"></span>
|
||||
</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" onclick="Piler.clear_ldap_test();" />
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<h4><?php print $text_existing_entries; ?></h4>
|
||||
|
||||
<div class="listarea">
|
||||
|
||||
<?php if(isset($entries)){ ?>
|
||||
|
||||
<table id="ss1" class="table table-striped table-condensed">
|
||||
<tr>
|
||||
<th class="domaincell"><?php print $text_description; ?></th>
|
||||
<th class="domaincell"><?php print $text_ldap_host; ?></th>
|
||||
<td class="domaincell"><?php print $text_ldap_base_dn; ?></td>
|
||||
<td class="domaincell"><?php print $text_ldap_bind_dn; ?></td>
|
||||
<th class="domaincell"> </th>
|
||||
</tr>
|
||||
|
||||
<?php foreach($entries as $e) { ?>
|
||||
<tr>
|
||||
<td class="domaincell"><?php print $e['description']; ?></td>
|
||||
<td class="domaincell"><?php print $e['ldap_host']; ?></td>
|
||||
<td class="domaincell"><?php print $e['ldap_base_dn']; ?></td>
|
||||
<td class="domaincell"><?php print $e['ldap_bind_dn']; ?></td>
|
||||
<td class="domaincell"><a href="index.php?route=ldap/remove&id=<?php print $e['id']; ?>&description=<?php print urlencode($e['description']); ?>&confirmed=1" onclick="if(confirm('<?php print $text_remove; ?>: ' + '\'<?php print $e['description']; ?>\'')) return true; return false;"><?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>
|
||||
|
11
webui/view/theme/default/templates/ldap/remove.tpl
Normal file
11
webui/view/theme/default/templates/ldap/remove.tpl
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
<p>
|
||||
|
||||
<?php if($confirmed){ ?>
|
||||
|
||||
<?php print $x; ?>. <a href="index.php?route=ldap/list"><?php print $text_back; ?></a>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user