Browse Source

[svn r19982] Added style button in home page

Arthur Portugal 16 years ago
parent
commit
7242e33fa3
2 changed files with 31 additions and 3 deletions
  1. 28 0
      main/css/public_admin/default.css
  2. 3 3
      whoisonline.php

+ 28 - 0
main/css/public_admin/default.css

@@ -2389,4 +2389,32 @@ button.back {
 #expire_session div{
 	float:left; 
 	padding-left:15px;
+}
+
+/* Fake buttons: links that look like buttons */
+
+.fake_button_back {
+	border: 2px outset;
+	padding: 2px;
+	text-decoration: none;
+    background-color:#E5EDF9;
+    border-color: #D4E2F6;
+    background-image:url(images/button_back.gif);
+    padding-left:30px;
+    background-position:10px;
+    background-repeat:no-repeat;
+}
+.fake_button_back:active {
+	border: 2px inset;
+}
+.fake_button_back:link {
+	border-style: solid;
+	border-width : 1px 2px 2px 1px;
+	text-decoration : none;
+	padding : 4px;
+	border-color : #69f #00f #00f #69f;
+}
+.fake_button_back:hover { 
+	border-color: #ccc;
+	color: #111; 
 }

+ 3 - 3
whoisonline.php

@@ -1,4 +1,4 @@
-<?php // $Id: whoisonline.php 19978 2009-04-22 17:12:23Z iflorespaz $
+<?php // $Id: whoisonline.php 19982 2009-04-22 17:43:37Z aportugal $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
@@ -376,9 +376,9 @@ else
 $referer = empty($_GET['referer'])?'index.php':htmlentities(strip_tags($_GET['referer']),ENT_QUOTES,$charset);
 
 if (isset($_GET['id'])) {
-	echo '<a href="whoisonline.php">&lt; '.get_lang('Back').'</a>';	
+	echo '<a href="whoisonline.php">&lt; '.get_lang('BackHome').'</a>';	
 } else {
-	echo '<a href="'.$referer.'">&lt; '.get_lang('Back').'</a>';	
+	echo '<a href="'.$referer.'" class="fake_button_back">'.get_lang('BackHome').'</a>';	
 } 
 
 /*