Skip to content

Commit

Permalink
Phew! Added fa icons to management pages. Note: initially added fa fa…
Browse files Browse the repository at this point in the history
…-eye to the show buttons but couldn't work out how to re-add after clicking hide then show again. If that can be done then hide is fa-eye-slash
  • Loading branch information
ronm123 committed Jul 23, 2015
1 parent a0cb572 commit a1d138d
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 34 deletions.
28 changes: 15 additions & 13 deletions management.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function mgt_page($xerte_toolkits_site, $extra)
<input class="xerte_input_box" type="text" size="20" maxlength="100" name="login" id="login_box"/></p>
<p style="margin:4px">Password:
<input class="xerte_input_box" type="password" size="20" maxlength="100" name="password" /></p>
<button type="submit" class="xerte_button_c" style="margin:0 3px 0 0"><?php echo MANAGEMENT_BUTTON_LOGIN; ?></button>
<button type="submit" class="xerte_button_c" style="margin:0 3px 0 0"><?php echo "<i class=\"fa fa-sign-in\"></i> ".MANAGEMENT_BUTTON_LOGIN; ?></button>
</form>
<script>document.getElementById("login_box").focus();</script>
<!--<p><?PHP echo $extra; ?></p>-->
Expand Down Expand Up @@ -180,6 +180,7 @@ function mgt_page($xerte_toolkits_site, $extra)
<link href="website_code/styles/frontpage.css" media="screen" type="text/css" rel="stylesheet" />
<link href="website_code/styles/xerte_buttons.css" media="screen" type="text/css" rel="stylesheet" />
<link href="website_code/styles/management.css" media="screen" type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="modules/xerte/parent_templates/Nottingham/common_html5/font-awesome-4.3.0/css/font-awesome.min.css">
<script type="text/javascript">
<?PHP
echo "var site_url = \"" . $xerte_toolkits_site->site_url . "\";\n";
Expand Down Expand Up @@ -234,15 +235,15 @@ function mgt_page($xerte_toolkits_site, $extra)
?>
<div
style="width:50%; height:100%; float:right; position:relative; background-image:url(<?php echo "branding/logo_right.png";?>); background-repeat:no-repeat; background-position:right; margin-right:10px; float:right">
<p style="float:right; margin:0px; color:#a01a13;"><button type="button" class="xerte_button" onclick="javascript:logout()" ><?PHP echo MANAGEMENT_LOGOUT; ?></button></p>
<p style="float:right; margin:0px; color:#a01a13;"><button type="button" class="xerte_button" onclick="javascript:logout()" ><i class="fa fa-sign-out"></i> <?PHP echo MANAGEMENT_LOGOUT; ?></button></p>
</div>
<?php
}
else {
?>
<div
style="width:50%; height:100%; float:right; position:relative; background-image:url(website_code/images/apereoLogo.png); background-repeat:no-repeat; background-position:right; margin-right:10px; float:right">
<p style="float:right; margin:0px; color:#a01a13;"><button type="button" class="xerte_button" onclick="javascript:logout()" ><?PHP echo MANAGEMENT_LOGOUT; ?></button></p>
<p style="float:right; margin:0px; color:#a01a13;"><button type="button" class="xerte_button" onclick="javascript:logout()" ><i class="fa fa-sign-out"></i> <?PHP echo MANAGEMENT_LOGOUT; ?></button></p>
</div>
<?php
}
Expand Down Expand Up @@ -289,18 +290,19 @@ function mgt_page($xerte_toolkits_site, $extra)
-->

<div class="admin_mgt_area_middle_button_left">
<button type="button" style="margin-left:10px;" class="xerte_button" onclick="javascript:site_list();"><?PHP echo MANAGEMENT_MENUBAR_SITE; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:templates_list();"><?PHP echo MANAGEMENT_MENUBAR_CENTRAL; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:users_list();"><?PHP echo MANAGEMENT_MENUBAR_USERS; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:user_templates_list();"><?PHP echo MANAGEMENT_MENUBAR_TEMPLATES; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:errors_list();"><?PHP echo MANAGEMENT_MENUBAR_ERRORS; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:play_security_list();"><?PHP echo MANAGEMENT_MENUBAR_PLAY; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:categories_list();"><?PHP echo MANAGEMENT_MENUBAR_CATEGORIES; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:licenses_list();"><?PHP echo MANAGEMENT_MENUBAR_LICENCES; ?> </button>
<button type="button" style="margin-right:10px;" class="xerte_button" onclick="javascript:feeds_list();"><?PHP echo MANAGEMENT_MENUBAR_FEEDS; ?> </button>
<button type="button" style="margin-left:10px;" class="xerte_button" onclick="javascript:site_list();"><i class="fa fa-sitemap"></i> <?PHP echo MANAGEMENT_MENUBAR_SITE; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:templates_list();"><i class="fa fa-file-code-o"></i> <?PHP echo MANAGEMENT_MENUBAR_CENTRAL; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:users_list();"><i class="fa fa-users"></i> <?PHP echo MANAGEMENT_MENUBAR_USERS; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:user_templates_list();"><i class="fa fa-file-text-o"></i> <?PHP echo MANAGEMENT_MENUBAR_TEMPLATES; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:errors_list();"><i class="fa fa-exclamation-triangle
"></i> <?PHP echo MANAGEMENT_MENUBAR_ERRORS; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:play_security_list();"><i class="fa fa-key"></i> <?PHP echo MANAGEMENT_MENUBAR_PLAY; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:categories_list();"><i class="fa fa-list-ul"></i> <?PHP echo MANAGEMENT_MENUBAR_CATEGORIES; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:licenses_list();"><i class="fa fa-cc"></i> <?PHP echo MANAGEMENT_MENUBAR_LICENCES; ?> </button>
<button type="button" style="margin-right:10px;" class="xerte_button" onclick="javascript:feeds_list();"><i class="fa fa-rss"></i> <?PHP echo MANAGEMENT_MENUBAR_FEEDS; ?> </button>
</div>
<div class="admin_mgt_area_middle_button_right">
<button type="button" class="xerte_button" onclick="javascript:save_changes()"><?PHP echo MANAGEMENT_MENUBAR_SAVE; ?> </button>
<button type="button" class="xerte_button" onclick="javascript:save_changes()"><i class="fa fa-floppy-o"></i> <?PHP echo MANAGEMENT_MENUBAR_SAVE; ?></button>
</div>
<div id="admin_area">
</div>
Expand Down
5 changes: 3 additions & 2 deletions website_code/php/login_library.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function login_prompt($messages, $extra_path = '') {
</p>
<div>

<form method="post" enctype="application/x-www-form-urlencoded" ><p><?php echo INDEX_USERNAME; ?> <input type="text" size="20" maxlength="100" name="login" id="login_box"/></p><p><?PHP echo INDEX_PASSWORD; ?><input type="password" size="20" maxlength="100" name="password" /></p><p style="clear:left; width:95%; padding-bottom:15px;"><button type="submit" class="xerte_button" style="float:right"><?php echo INDEX_BUTTON_LOGIN; ?></button></p></form>
<form method="post" enctype="application/x-www-form-urlencoded" ><p><?php echo INDEX_USERNAME; ?> <input type="text" size="20" maxlength="100" name="login" id="login_box"/></p><p><?PHP echo INDEX_PASSWORD; ?><input type="password" size="20" maxlength="100" name="password" /></p><p style="clear:left; width:95%; padding-bottom:15px;"><button type="submit" class="xerte_button" style="float:right"><i class="fa fa-sign-in"></i> <?php echo INDEX_BUTTON_LOGIN; ?></button></p></form>
<script> document.getElementById("login_box").focus(); </script>
<?php
if (!empty($messages)) {
Expand Down Expand Up @@ -198,6 +198,7 @@ function login_form($messages, $xerte_toolkits_site)

<link href="website_code/styles/xerte_buttons.css" media="screen" type="text/css" rel="stylesheet" />
<link href="website_code/styles/frontpage.css" media="screen" type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="modules/xerte/parent_templates/Nottingham/common_html5/font-awesome-4.3.0/css/font-awesome.min.css">

<!--

Expand Down Expand Up @@ -259,7 +260,7 @@ function login_form($messages, $xerte_toolkits_site)
<input class="xerte_input_box" type="text" size="20" maxlength="100" name="login" id="login_box"/></p>
<p style="margin:4px"><?PHP echo INDEX_PASSWORD; ?>:
<input class="xerte_input_box" type="password" size="20" maxlength="100" name="password" /></p>
<button type="submit" class="xerte_button_c" style="margin:0 3px 0 0"><?php echo INDEX_BUTTON_LOGIN; ?></button>
<button type="submit" class="xerte_button_c" style="margin:0 3px 0 0"><i class="fa fa-sign-in"></i> <?php echo INDEX_BUTTON_LOGIN; ?></button>
</form>
<script>document.getElementById("login_box").focus(); </script>
</div>
Expand Down
2 changes: 1 addition & 1 deletion website_code/php/management/error_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

$error_file_list = opendir($path);

echo "<div style=\"float:left; margin:10px; width:100%; height:30px; position:relative; border-bottom:1px solid #999\"><button type=\"button\" class=\"xerte_button\" onclick=\"javascript:delete_error_logs()\">" . DELETE_ALL . "</button></div>";
echo "<div style=\"float:left; margin:10px; width:100%; height:30px; position:relative; border-bottom:1px solid #999\"><button type=\"button\" class=\"xerte_button\" onclick=\"javascript:delete_error_logs()\"><i class=\"fa fa-trash-o\"></i> " . DELETE_ALL . "</button></div>";

while($file = readdir($error_file_list)){

Expand Down
8 changes: 4 additions & 4 deletions website_code/php/management/get_templates_for_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
echo "<tr><td>" . USERS_MANAGEMENT_TEMPLATE_PLAYS . "</td><td>" . $row_templates['number_of_uses'] . "</td></tr>";
echo "<tr><td>" . USERS_MANAGEMENT_TEMPLATE_ACCESS . "</td><td>" . $row_templates['access_to_whom'] . "</td></tr>";
echo "</table>";
echo "<p><button type=\"button\" class=\"xerte_button\" onclick=\"javascript:edit_window('" . $row_templates['template_id'] . "')\">" . USERS_MANAGEMENT_TEMPLATE_EDIT . "</button>";
echo " - <button type=\"button\" class=\"xerte_button\" onclick=\"javascript:preview_window('" . $row_templates['template_id'] . "')\">" . USERS_MANAGEMENT_TEMPLATE_PREVIEW . "</button>";
echo " - <button type=\"button\" class=\"xerte_button\" onclick=\"javascript:properties_window('" . $row_templates['template_id'] . "')\">" . USERS_MANAGEMENT_TEMPLATE_PROPERTIES . "</button></p>";
echo "<p><button type=\"button\" class=\"xerte_button\" onclick=\"javascript:edit_window('" . $row_templates['template_id'] . "')\"><i class=\"fa fa-pencil-square-o\"></i> " . USERS_MANAGEMENT_TEMPLATE_EDIT . "</button>";
echo " - <button type=\"button\" class=\"xerte_button\" onclick=\"javascript:preview_window('" . $row_templates['template_id'] . "')\"><i class=\"fa fa-play\"></i> " . USERS_MANAGEMENT_TEMPLATE_PREVIEW . "</button>";
echo " - <button type=\"button\" class=\"xerte_button\" onclick=\"javascript:properties_window('" . $row_templates['template_id'] . "')\"><i class=\"fa fa-info-circle\"></i> " . USERS_MANAGEMENT_TEMPLATE_PROPERTIES . "</button></p>";

echo "<p>" . USERS_MANAGEMENT_TEMPLATE_GIVE . "</p>";

Expand All @@ -117,7 +117,7 @@

//}

echo "<input type=\"hidden\" value=\"" . $row['login_id'] . "_" . $row_templates['template_id'] . "\" name=\"template_id\" /><button type=\"submit\" class=\"xerte_button\">" . USERS_MANAGEMENT_TEMPLATE_GIVE_BUTTON . "</button></form></div>";
echo "<input type=\"hidden\" value=\"" . $row['login_id'] . "_" . $row_templates['template_id'] . "\" name=\"template_id\" /><button type=\"submit\" class=\"xerte_button\"><i class=\"fa fa-share\"></i> " . USERS_MANAGEMENT_TEMPLATE_GIVE_BUTTON . "</button></form></div>";
// Next record

}
Expand Down
Loading

0 comments on commit a1d138d

Please sign in to comment.