mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 13:17:03 +02:00
heavy code cleanup in the webui
This commit is contained in:
@ -34,33 +34,33 @@
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_search_domains; ?>*:</div>
|
||||
<div class="domaincell"><input type="text" id="s_piler_domain" name="s_piler_domain" value="<?php print $text_search_domain_to_add; ?>" class="autocompletetext" onfocus="javascript:toggle_hint('s_piler_domain', '<?php print $text_search_domain_to_add; ?>', 1);" onblur="javascript:toggle_hint('s_piler_domain', '<?php print $text_search_domain_to_add; ?>', 0);" /></div>
|
||||
<div class="domaincell"><input type="text" id="s_piler_domain" name="s_piler_domain" value="<?php print $text_search_domain_to_add; ?>" class="autocompletetext" onfocus="Piler.toggle_hint('s_piler_domain', '<?php print $text_search_domain_to_add; ?>', 1);" onblur="Piler.toggle_hint('s_piler_domain', '<?php print $text_search_domain_to_add; ?>', 0);" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_domains; ?>**:</div>
|
||||
<div class="domaincell"><textarea style="height:80px;" name="domains" id="domains" class="domain"><?php if(isset($post['domains'])){ print $post['domains']; } ?></textarea></div>
|
||||
<div class="domaincell"><textarea name="domains" id="domains" class="domain"><?php if(isset($post['domains'])){ print $post['domains']; } ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_search_groups; ?>*:</div>
|
||||
<div class="domaincell"><input type="text" id="s_piler_group" name="s_piler_group" value="<?php print $text_search_group_to_add; ?>" class="autocompletetext" onfocus="javascript:toggle_hint('s_piler_group', '<?php print $text_search_group_to_add; ?>', 1);" onblur="javascript:toggle_hint('s_piler_group', '<?php print $text_search_group_to_add; ?>', 0);" /></div>
|
||||
<div class="domaincell"><input type="text" id="s_piler_group" name="s_piler_group" value="<?php print $text_search_group_to_add; ?>" class="autocompletetext" onfocus="Piler.toggle_hint('s_piler_group', '<?php print $text_search_group_to_add; ?>', 1);" onblur="Piler.toggle_hint('s_piler_group', '<?php print $text_search_group_to_add; ?>', 0);" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_groups; ?>**:</div>
|
||||
<div class="domaincell"><textarea style="height:80px;" name="group" id="group" class="domain"><?php if(isset($post['group'])){ print $post['group']; } ?></textarea></div>
|
||||
<div class="domaincell"><textarea name="group" id="group" class="domain"><?php if(isset($post['group'])){ print $post['group']; } ?></textarea></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_search_folders; ?>*:</div>
|
||||
<div class="domaincell"><input type="text" id="s_piler_folder" name="s_piler_folder" value="<?php print $text_search_folder_to_add; ?>" class="autocompletetext" onfocus="javascript:toggle_hint('s_piler_folder', '<?php print $text_search_folder_to_add; ?>', 1);" onblur="javascript:toggle_hint('s_piler_folder', '<?php print $text_search_folder_to_add; ?>', 0);" /></div>
|
||||
<div class="domaincell"><input type="text" id="s_piler_folder" name="s_piler_folder" value="<?php print $text_search_folder_to_add; ?>" class="autocompletetext" onfocus="Piler.toggle_hint('s_piler_folder', '<?php print $text_search_folder_to_add; ?>', 1);" onblur="Piler.toggle_hint('s_piler_folder', '<?php print $text_search_folder_to_add; ?>', 0);" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_folders; ?>**:</div>
|
||||
<div class="domaincell"><textarea style="height:80px;" name="folder" id="folder" class="domain"><?php if(isset($user['folder'])){ print $user['folder']; } ?></textarea></div>
|
||||
<div class="domaincell"><textarea name="folder" id="folder" class="domain"><?php if(isset($user['folder'])){ print $user['folder']; } ?></textarea></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
|
||||
|
||||
<?php if(isset($user)) {
|
||||
|
||||
$userbasedn = preg_replace("/cn=([\w]+),/", "", $user['dn']); ?>
|
||||
<?php if(isset($user)) { ?>
|
||||
|
||||
<form action="index.php?route=user/edit" name="adduser" method="post" autocomplete="off">
|
||||
<input type="hidden" name="uid" value="<?php print $uid; ?>" />
|
||||
@ -36,34 +34,34 @@
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_search_domains; ?>*:</div>
|
||||
<div class="domaincell"><input type="text" id="s_piler_domain" name="s_piler_domain" value="<?php print $text_search_domain_to_add; ?>" class="autocompletetext" onfocus="javascript:toggle_hint('s_piler_domain', '<?php print $text_search_domain_to_add; ?>', 1);" onblur="javascript:toggle_hint('s_piler_domain', '<?php print $text_search_domain_to_add; ?>', 0);" /></div>
|
||||
<div class="domaincell"><input type="text" id="s_piler_domain" name="s_piler_domain" value="<?php print $text_search_domain_to_add; ?>" class="autocompletetext" onfocus="Piler.toggle_hint('s_piler_domain', '<?php print $text_search_domain_to_add; ?>', 1);" onblur="Piler.toggle_hint('s_piler_domain', '<?php print $text_search_domain_to_add; ?>', 0);" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_domains; ?>**:</div>
|
||||
<div class="domaincell"><textarea style="height:80px;" name="domains" id="domains" class="domain"><?php if(isset($user['domains'])){ print $user['domains']; } ?></textarea></div>
|
||||
</div>
|
||||
<div class="domaincell"><textarea name="domains" id="domains" class="domain"><?php if(isset($post['domains'])){ print $post['domains']; } ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_search_groups; ?>*:</div>
|
||||
<div class="domaincell"><input type="text" id="s_piler_group" name="s_piler_group" value="<?php print $text_search_group_to_add; ?>" class="autocompletetext" onfocus="javascript:toggle_hint('s_piler_group', '<?php print $text_search_group_to_add; ?>', 1);" onblur="javascript:toggle_hint('s_piler_group', '<?php print $text_search_group_to_add; ?>', 0);" /></div>
|
||||
<div class="domaincell"><input type="text" id="s_piler_group" name="s_piler_group" value="<?php print $text_search_group_to_add; ?>" class="autocompletetext" onfocus="Piler.toggle_hint('s_piler_group', '<?php print $text_search_group_to_add; ?>', 1);" onblur="Piler.toggle_hint('s_piler_group', '<?php print $text_search_group_to_add; ?>', 0);" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_groups; ?>**:</div>
|
||||
<div class="domaincell"><textarea style="height:80px;" name="group" id="group" class="domain"><?php if(isset($user['group'])){ print $user['group']; } ?></textarea></div>
|
||||
<div class="domaincell"><textarea name="group" id="group" class="domain"><?php if(isset($user['group'])){ print $user['group']; } ?></textarea></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_search_folders; ?>*:</div>
|
||||
<div class="domaincell"><input type="text" id="s_piler_folder" name="s_piler_folder" value="<?php print $text_search_folder_to_add; ?>" class="autocompletetext" onfocus="javascript:toggle_hint('s_piler_folder', '<?php print $text_search_folder_to_add; ?>', 1);" onblur="javascript:toggle_hint('s_piler_folder', '<?php print $text_search_folder_to_add; ?>', 0);" /></div>
|
||||
<div class="domaincell"><input type="text" id="s_piler_folder" name="s_piler_folder" value="<?php print $text_search_folder_to_add; ?>" class="autocompletetext" onfocus="Piler.toggle_hint('s_piler_folder', '<?php print $text_search_folder_to_add; ?>', 1);" onblur="Piler.toggle_hint('s_piler_folder', '<?php print $text_search_folder_to_add; ?>', 0);" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_folders; ?>**:</div>
|
||||
<div class="domaincell"><textarea style="height:80px;" name="folder" id="folder" class="domain"><?php if(isset($user['folder'])){ print $user['folder']; } ?></textarea></div>
|
||||
<div class="domaincell"><textarea name="folder" id="folder" class="domain"><?php if(isset($user['folder'])){ print $user['folder']; } ?></textarea></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ss1" style="margin-top: 10px;">
|
||||
<div id="ss1">
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_realname; ?> <a href="index.php?route=user/list&sort=realname&order=0"><img src="<?php print ICON_ARROW_UP; ?>" border="0"></a> <a href="index.php?route=user/list&sort=realname&order=1"><img src="<?php print ICON_ARROW_DOWN; ?>" border="0"></a></div>
|
||||
<div class="domaincell"><?php print $text_email; ?> <a href="index.php?route=user/list&sort=email&order=0"><img src="<?php print ICON_ARROW_UP; ?>" border="0"></a> <a href="index.php?route=user/list&sort=email&order=1"><img src="<?php print ICON_ARROW_DOWN; ?>" border="0"></a></div>
|
||||
@ -35,7 +35,7 @@
|
||||
<?php foreach($users as $user) { ?>
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $user['realname']; ?></div>
|
||||
<div class="domaincell"><?php if($user['email'] != $user['shortemail']){ ?><span onmouseover="Tip('<?php print $user['email']; ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()"><?php print $user['shortemail']; ?></span><?php } else { print $user['email']; } ?></div>
|
||||
<div class="domaincell"><?php if($user['email'] != $user['shortemail']){ ?><span><?php print $user['shortemail']; ?></span><?php } else { print $user['email']; } ?></div>
|
||||
<div class="domaincell">
|
||||
<?php
|
||||
if($user['isadmin'] == 0){ print $text_user_regular; }
|
||||
|
@ -1,14 +1,14 @@
|
||||
|
||||
<?php if(!isset($x)){ ?>
|
||||
|
||||
<form action="settings.php" method="post" name="setpagelen" style="margin-bottom: 30px;">
|
||||
<form action="settings.php" method="post" name="setpagelen" class="formbottom">
|
||||
|
||||
<h4><?php print $text_access_settings; ?></h4>
|
||||
|
||||
<div id="search">
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1" style="width: 100px;"><?php print $text_email_addresses; ?>:</div>
|
||||
<div class="cell1 100px"><?php print $text_email_addresses; ?>:</div>
|
||||
<div class="cell2">
|
||||
<?php print $emails; ?>
|
||||
</div>
|
||||
@ -17,7 +17,7 @@
|
||||
<?php if(Registry::get('auditor_user') == 1 && RESTRICTED_AUDITOR == 1) { ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1" style="width: 100px;"><?php print $text_domains; ?>:</div>
|
||||
<div class="cell1 100px"><?php print $text_domains; ?>:</div>
|
||||
<div class="cell2">
|
||||
<?php print $domains; ?>
|
||||
</div>
|
||||
@ -28,7 +28,7 @@
|
||||
<?php if(Registry::get('auditor_user') == 0 || RESTRICTED_AUDITOR == 0) { ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1" style="width: 100px;"><?php print $text_groups; ?>:</div>
|
||||
<div class="cell1 100px"><?php print $text_groups; ?>:</div>
|
||||
<div class="cell2">
|
||||
<?php print $groups; ?>
|
||||
</div>
|
||||
@ -39,7 +39,7 @@
|
||||
<?php if(ENABLE_FOLDER_RESTRICTIONS == 1) { ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1" style="width: 100px;"><?php print $text_folders; ?>:</div>
|
||||
<div class="cell1 100px"><?php print $text_folders; ?>:</div>
|
||||
<div class="cell2">
|
||||
<?php print $folders; ?>
|
||||
</div>
|
||||
@ -57,7 +57,7 @@
|
||||
<div id="search1">
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1" style="width: 100px;"><?php print $text_page_length; ?>:</div>
|
||||
<div class="cell1 100px"><?php print $text_page_length; ?>:</div>
|
||||
<div class="cell2">
|
||||
<select name="pagelen">
|
||||
<option value="10"<?php if($page_len == 10) { ?> selected="selected"<?php } ?>>10
|
||||
@ -97,8 +97,8 @@
|
||||
|
||||
<?php if(PASSWORD_CHANGE_ENABLED == 1) { ?>
|
||||
<div id="search">
|
||||
<form method="post" name="pwdchange" action="settings.php" style="margin-bottom: 30px;">
|
||||
<div id="ss1" style="margin-top: 10px;">
|
||||
<form method="post" name="pwdchange" action="settings.php" class="formbottom">
|
||||
<div id="ss1">
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_password; ?>:</div>
|
||||
<div class="domaincell"><input type="password" class="text" name="password" /></div>
|
||||
|
Reference in New Issue
Block a user