mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 13:37:02 +02:00
changed the gui to use twitter's bootstrap
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
|
||||
<?php if(isset($errorstring)){ ?><p class="loginfailed"><?php print $text_error; ?>: <?php print $errorstring; ?></p><?php } ?>
|
||||
<?php if(isset($errorstring)){ ?><p class="text-error bold"><?php print $text_error; ?>: <?php print $errorstring; ?></p><?php } ?>
|
||||
|
||||
|
||||
<form action="index.php?route=user/add" name="adduser" method="post" autocomplete="off">
|
||||
@ -8,23 +8,23 @@
|
||||
<div id="ss1">
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_email_addresses; ?>:</div>
|
||||
<div class="domaincell"><textarea name="email" class="domain"><?php if(isset($post['email'])){ print $post['email']; } ?></textarea></div>
|
||||
<div class="domaincell"><textarea name="email" class="span5"><?php if(isset($post['email'])){ print $post['email']; } ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_username; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="username" value="<?php if(isset($post['username'])){ print $post['username']; } ?>" class="text" /></div>
|
||||
<div class="domaincell"><input type="text" name="username" value="<?php if(isset($post['username'])){ print $post['username']; } ?>" class="span5" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_realname; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="realname" value="<?php if(isset($post['realname'])){ print $post['realname']; } ?>" class="text" /></div>
|
||||
<div class="domaincell"><input type="text" name="realname" value="<?php if(isset($post['realname'])){ print $post['realname']; } ?>" class="span5" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_primary_domain; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="domain">
|
||||
<select name="domain" class="span5">
|
||||
<?php asort($domains); foreach ($domains as $domain) { ?>
|
||||
<option value="<?php if(is_array($domain)){ print $domain['mapped']; } else { print $domain; } ?>"<?php if( (isset($post) && $domain == $post['domain']) || (!isset($post) && isset($_SESSION['last_domain']) && $domain == $_SESSION['last_domain']) ){ ?> selected="selected"<?php } ?>><?php if(is_array($domain)){ print $domain['mapped']; } else { print $domain; } ?></option>
|
||||
<?php } ?>
|
||||
@ -34,58 +34,58 @@
|
||||
|
||||
<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="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 class="domaincell"><input type="text" id="s_piler_domain" name="s_piler_domain" class="span5" placeholder="<?php print $text_search_domain_to_add; ?>" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_domains; ?>**:</div>
|
||||
<div class="domaincell"><textarea 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="span5"><?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="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 class="domaincell"><input type="text" id="s_piler_group" name="s_piler_group" class="span5" placeholder="<?php print $text_search_group_to_add; ?>" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_groups; ?>**:</div>
|
||||
<div class="domaincell"><textarea 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="span5"><?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="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 class="domaincell"><input type="text" id="s_piler_folder" name="s_piler_folder" class="span5" placeholder="<?php print $text_search_folder_to_add; ?>" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_folders; ?>**:</div>
|
||||
<div class="domaincell"><textarea 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="span5"><?php if(isset($user['folder'])){ print $user['folder']; } ?></textarea></div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php if(ENABLE_LDAP_IMPORT_FEATURE == 1) { ?>
|
||||
<div class="domainrow">
|
||||
<div class="domaincell">LDAP DN:</div>
|
||||
<div class="domaincell"><input type="text" name="dn" value="<?php print $user['dn']; ?>" class="text" /><br /> (<?php print $text_dn_asterisk_means_skip_sync; ?>)</div>
|
||||
<div class="domaincell"><input type="text" name="dn" value="<?php print $user['dn']; ?>" class="span5" /><br /> (<?php print $text_dn_asterisk_means_skip_sync; ?>)</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_password; ?>:</div>
|
||||
<div class="domaincell"><input type="password" name="password" value="" class="text" /></div>
|
||||
<div class="domaincell"><input type="password" name="password" value="" class="span5" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_password_again; ?>:</div>
|
||||
<div class="domaincell"><input type="password" name="password2" value="" class="text" /></div>
|
||||
<div class="domaincell"><input type="password" name="password2" value="" class="span5" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_admin_user; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="isadmin">
|
||||
<select name="isadmin" class="span5">
|
||||
<option value="0"<?php if(isset($user['isadmin']) && $user['isadmin'] == 0){ ?> selected="selected"<?php } ?>><?php print $text_user_regular; ?></option>
|
||||
<?php if(Registry::get('admin_user') == 1) { ?><option value="1"<?php if(isset($user['isadmin']) && $user['isadmin'] == 1){ ?> selected="selected"<?php } ?>><?php print $text_user_masteradmin; ?></option><?php } ?>
|
||||
<option value="2"<?php if(isset($user['isadmin']) && $user['isadmin'] == 2){ ?> selected="selected"<?php } ?>><?php print $text_user_auditor; ?></option>
|
||||
@ -101,7 +101,7 @@
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"> </div>
|
||||
<div class="domaincell"><input type="submit" value="<?php print $text_add; ?>" /><input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
<div class="domaincell"><input type="submit" class="btn btn-primary" value="<?php print $text_add; ?>" /><input type="reset" class="btn" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -8,23 +8,23 @@
|
||||
<div id="ss1">
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_email_addresses; ?>:</div>
|
||||
<div class="domaincell"><textarea name="email" class="domain"><?php print $emails; ?></textarea></div>
|
||||
<div class="domaincell"><textarea name="email" class="span5"><?php print $emails; ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_username; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="username" value="<?php print $user['username']; ?>" class="text" /></div>
|
||||
<div class="domaincell"><input type="text" name="username" value="<?php print $user['username']; ?>" class="span5" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_realname; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="realname" value="<?php print $user['realname']; ?>" class="text" /></div>
|
||||
<div class="domaincell"><input type="text" name="realname" value="<?php print $user['realname']; ?>" class="span5" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_primary_domain; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="domain">
|
||||
<select name="domain" class="span5">
|
||||
<?php asort($domains); foreach ($domains as $domain) { ?>
|
||||
<option value="<?php print $domain; ?>"<?php if($domain == $user['domain']){ ?> selected="selected"<?php } ?>><?php print $domain; ?></option>
|
||||
<?php } ?>
|
||||
@ -34,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="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 class="domaincell"><input type="text" id="s_piler_domain" name="s_piler_domain" placeholder="<?php print $text_search_domain_to_add; ?>" class="span5" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_domains; ?>**:</div>
|
||||
<div class="domaincell"><textarea 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="span5"><?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="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 class="domaincell"><input type="text" id="s_piler_group" name="s_piler_group" placeholder="<?php print $text_search_group_to_add; ?>" class="span5" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_groups; ?>**:</div>
|
||||
<div class="domaincell"><textarea 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="span5"><?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="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 class="domaincell"><input type="text" id="s_piler_folder" name="s_piler_folder" placeholder="<?php print $text_search_folder_to_add; ?>" class="span5" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_folders; ?>**:</div>
|
||||
<div class="domaincell"><textarea 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="span5"><?php if(isset($user['folder'])){ print $user['folder']; } ?></textarea></div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -69,18 +69,18 @@
|
||||
<?php if(ENABLE_LDAP_IMPORT_FEATURE == 1) { ?>
|
||||
<div class="domainrow">
|
||||
<div class="domaincell">LDAP DN:</div>
|
||||
<div class="domaincell"><input type="text" name="dn" value="<?php print $user['dn']; ?>" class="text" /><br /> (<?php print $text_dn_asterisk_means_skip_sync; ?>)</div>
|
||||
<div class="domaincell"><input type="text" name="dn" value="<?php print $user['dn']; ?>" class="span5" /><br /> (<?php print $text_dn_asterisk_means_skip_sync; ?>)</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_password; ?>:</div>
|
||||
<div class="domaincell"><input type="password" name="password" value="" class="text" /></div>
|
||||
<div class="domaincell"><input type="password" name="password" value="" class="span5" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_password_again; ?>:</div>
|
||||
<div class="domaincell"><input type="password" name="password2" value="" class="text" /></div>
|
||||
<div class="domaincell"><input type="password" name="password2" value="" class="span5" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
@ -91,7 +91,7 @@
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_admin_user; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="isadmin">
|
||||
<select name="isadmin" class="span5">
|
||||
<option value="0"<?php if($user['isadmin'] == 0){ ?> selected="selected"<?php } ?>><?php print $text_user_regular; ?></option>
|
||||
<?php if(Registry::get('admin_user') == 1) { ?><option value="1"<?php if($user['isadmin'] == 1){ ?> selected="selected"<?php } ?>><?php print $text_user_masteradmin; ?></option><?php } ?>
|
||||
<option value="2"<?php if($user['isadmin'] == 2){ ?> selected="selected"<?php } ?>><?php print $text_user_auditor; ?></option>
|
||||
@ -116,7 +116,7 @@
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"> </div>
|
||||
<div class="domaincell"><input type="submit" value="<?php print $text_modify; ?>" /><input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
<div class="domaincell"><input type="submit" value="<?php print $text_modify; ?>" class="btn btn-primary" /><input type="reset" class="btn" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -124,8 +124,6 @@
|
||||
|
||||
</form>
|
||||
|
||||
<p> </p>
|
||||
<p><a href="index.php?route=user/remove&uid=<?php print $user['uid']; ?>&user=<?php print $user['username']; ?>"><?php print $text_remove_this_user; ?>: <?php print $user['username']; ?></a></p>
|
||||
<p> </p>
|
||||
|
||||
<p>
|
||||
|
@ -5,9 +5,9 @@
|
||||
|
||||
<h4><?php print $text_existing_users; ?></h4>
|
||||
|
||||
<form method="post" name="search1" action="index.php?route=user/list">
|
||||
<form method="post" name="search1" class="form-search" action="index.php?route=user/list">
|
||||
<input type="text" name="search" value="<?php print $search; ?>" />
|
||||
<input type="submit" value="<?php print $text_search; ?>" />
|
||||
<input type="submit" class="btn btn-primary" value="<?php print $text_search; ?>" />
|
||||
</form>
|
||||
|
||||
|
||||
@ -30,6 +30,7 @@
|
||||
<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>
|
||||
<div class="domaincell"><?php print $text_role; ?> <a href="index.php?route=user/list&sort=domain&order=0"><img src="<?php print ICON_ARROW_UP; ?>" border="0"></a> <a href="index.php?route=user/list&sort=domain&order=1"><img src="<?php print ICON_ARROW_DOWN; ?>" border="0"></a></div>
|
||||
<div class="domaincell"> </div>
|
||||
<div class="domaincell"> </div>
|
||||
</div>
|
||||
|
||||
<?php foreach($users as $user) { ?>
|
||||
@ -45,6 +46,7 @@
|
||||
?>
|
||||
</div>
|
||||
<div class="domaincell"><a href="index.php?route=user/edit&uid=<?php print $user['uid']; ?>"><?php print $text_edit_or_view; ?></a></div>
|
||||
<div class="domaincell"><a href="index.php?route=user/remove&confirmed=1&uid=<?php print $user['uid']; ?>" onclick="if(confirm('<?php print $text_remove_this_user; ?>: ' + '\'<?php print $user['realname']; ?> / <?php print $user['email']; ?>\'')) return true; return false;"><?php print $text_remove; ?></a></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<div id="search">
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1 100px"><?php print $text_email_addresses; ?>:</div>
|
||||
<div class="logincell"><?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 100px"><?php print $text_domains; ?>:</div>
|
||||
<div class="logincell"><?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 100px"><?php print $text_groups; ?>:</div>
|
||||
<div class="logincell"><?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 100px"><?php print $text_folders; ?>:</div>
|
||||
<div class="logincell"><?php print $text_folders; ?>:</div>
|
||||
<div class="cell2">
|
||||
<?php print $folders; ?>
|
||||
</div>
|
||||
@ -54,10 +54,11 @@
|
||||
<div id="search">
|
||||
|
||||
<h4><?php print $text_display_settings; ?></h4>
|
||||
|
||||
<div id="search1">
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1 100px"><?php print $text_page_length; ?>:</div>
|
||||
<div class="logincell"><?php print $text_page_length; ?>:</div>
|
||||
<div class="cell2">
|
||||
<select name="pagelen">
|
||||
<option value="10"<?php if($page_len == 10) { ?> selected="selected"<?php } ?>>10
|
||||
@ -69,7 +70,7 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"><?php print $text_theme; ?>:</div>
|
||||
<div class="logincell"><?php print $text_theme; ?>:</div>
|
||||
<div class="cell2">
|
||||
<select name="theme">
|
||||
<?php foreach(Registry::get('themes') as $t) { ?>
|
||||
@ -80,7 +81,7 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"><?php print $text_language; ?>:</div>
|
||||
<div class="logincell"><?php print $text_language; ?>:</div>
|
||||
<div class="cell2">
|
||||
<select name="lang">
|
||||
<option value=""><?php print $text_use_browser_settings; ?></option>
|
||||
@ -93,8 +94,8 @@
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"> </div>
|
||||
<div class="cell2"><input type="submit" value="<?php print $text_set; ?>" /> <input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
<div class="logincell"> </div>
|
||||
<div class="cell2"><input type="submit" value="<?php print $text_set; ?>" class="btn btn-primary" /> <input type="reset" class="btn" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -121,7 +122,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"> </div>
|
||||
<div class="domaincell"><input type="submit" value="<?php print $text_submit; ?>" /> <input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
<div class="domaincell"><input type="submit" class="btn btn-primary" value="<?php print $text_submit; ?>" /> <input type="reset" class="btn" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
Reference in New Issue
Block a user