summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 23a0b0c)
raw | patch | inline | side by side (parent: 23a0b0c)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 2 Mar 2010 07:17:07 +0000 (07:17 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 2 Mar 2010 07:17:07 +0000 (07:17 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15823 594d385d-05f5-0310-b6e9-bd551577e9d8
index abd788fd71f2d19995afcd121f4b88f834a6fbea..f69757487f111ce54ceffb2710bd5340dc719bb9 100644 (file)
}
/* Image with migration color */
-button.img{
- background:none;
+
+input[type=submit].img{
border:0;
- margin:0;
padding:0;
+ margin:0;
+ display:inline-block;
+ display:-moz-inline-block;
+ background-color:transparent;
+ background-repeat:no-repeat;
+ position:relative;
+ cursor:pointer;
}
div.img{
+ display:inline-block;
+ display:-moz-inline-block;
background-color:transparent;
background-repeat:no-repeat;
position:relative;
- float:left;
}
div.img div {
cursor:pointer;
}
+.icon-menu-item div.img{
+ float:left;
+}
+
.icon-menu-item div.dsc{
margin-left:55px
}
index 3edac053a2764a8df4d8fd63de79c56515c34e1f..8b43c3fe35057978c1c8ec0a0dd52e5f4a5c9a7c 100644 (file)
<!-- Include correct theme icon sets -->
<style type="text/css">
- div.img{
- background-image:url(themes/modern/img.png);
- }
- div.img div {
+ div.img, div.img div, input[type=submit].img{
background-image:url(themes/modern/img.png);
}
</style>
index 37efe409d57c98598959e78a68e7a572df0c69ee..3af94e18f995405171b30086a6d5cb215d3860e3 100644 (file)
foreach ($this->objectTypes as $objectType) {
if (isset($this->objectTypeCount[$objectType['label']])) {
$label= _($objectType['label']);
- $result.= "<img class='center' src='".$objectType['image']."' title='$label' alt='$label'> ".$this->objectTypeCount[$objectType['label']]." ";
+ $result.= image($objectType['image'], null, null, $label)." ".$this->objectTypeCount[$objectType['label']]." ";
}
}
// Override base if we got signals from the navigation elements
$action= "";
foreach ($_POST as $key => $value) {
- if (preg_match('/^(ROOT|BACK|HOME)_x$/', $key, $match)) {
+ if (preg_match('/^(ROOT|BACK|HOME)(_x)?$/', $key, $match)) {
$action= $match[1];
break;
}
/* Draw root button */
if($enableRoot){
- $result["ROOT"]= "<input class='center' type='image' src='images/lists/root.png' align='middle' ".
- "title='"._("Go to root department")."' name='ROOT' alt='"._("Root")."'>";
+ $result["ROOT"]= image('images/lists/root.png', null, 'ROOT', _("Root"));
}else{
- $result["ROOT"]= "<img src='images/lists/root_grey.png' class='center' alt='"._("Root")."'>";
+ $result["ROOT"]= image('images/lists/root-grey.png', null, null, _("Root"));
}
/* Draw back button */
if($enableBack){
- $result["BACK"]= "<input class='center' type='image' align='middle' src='images/lists/back.png' ".
- "title='"._("Go up one department")."' alt='"._("Up")."' name='BACK'>";
+ $result["BACK"]= image('images/lists/back.png', null, 'BACK', _("Go up one department"));
}else{
- $result["BACK"]= "<img src='images/lists/back_grey.png' class='center' alt='"._("Up")."'>";
+ $result["BACK"]= image('images/lists/back-grey.png', null, null, _("Go up one department"));
}
/* Draw home button */
+ /* Draw home button */
if($enableHome){
- $result["HOME"]= "<input class='center' type='image' align='middle' src='images/lists/home.png' ".
- "title='"._("Go to users department")."' alt='"._("Home")."' name='HOME'>";
+ $result["HOME"]= image('images/lists/home.png', null, 'HOME', _("Go to users department"));
}else{
- $result["HOME"]= "<img src='images/lists/home_grey.png' class='center' alt='"._("Home")."'>";
+ $result["HOME"]= image('images/lists/home-grey.png', null, null, _("Go to users department"));
}
+
/* Draw reload button, this button is enabled everytime */
- $result["RELOAD"]= "<input class='center' type='image' src='images/lists/reload.png' align='middle' ".
- "title='"._("Reload list")."' name='REFRESH' alt='"._("Submit")."'>";
+ $result["RELOAD"]= image('images/lists/reload.png', null, 'REFRESH', _("Reload list"));
return ($result);
}
index 9a9e2799c9a9762d31b38ca1fe5ff6edfda95982..24d9328ae29d984925b03cadf984c30a79a2a8b6 100644 (file)
}
// Clickable image or not?
+ if ($title != "") {
+ $title= "title='$title'";
+ }
if ($action == "") {
- return "<div class='img' style='".$styles[$path]."'>$lbl</div>";
+ return "<div class='img' $title style='".$styles[$path]."'>$lbl</div>";
} else {
- return "<button class='img' id='$action' name='$action' title='$title' type='submit'><div class='img' style='".$styles[$path]."'>$lbl</div></button>";
+ return "<input type='submit' class='img' id='$action' value='' name='$action' $title style='".$styles[$path]."'>";
}
}