summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b41a221)
raw | patch | inline | side by side (parent: b41a221)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 Mar 2010 16:16:43 +0000 (16:16 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 Mar 2010 16:16:43 +0000 (16:16 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15815 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/themes/modern/style.css | patch | blob | history | |
gosa-core/include/class_baseSelector.inc | patch | blob | history | |
gosa-core/include/functions.inc | patch | blob | history |
index 56421261891f2d8a04b5c19a6249aa4b77defb6d..e0dce435f10e0bf63a55bed01ab05eb31d4769cf 100644 (file)
}
/* Image with migration color */
+button.img{
+ background:none;
+ border:0;
+ margin:0;
+ padding:2px;
+}
+button.img div.img {
+ border:0;
+}
+
div.img{
background-color:transparent;
background-repeat:no-repeat;
index 5d20269eede72a0dd3f1ca695f45adf1c5461b71..ba182b7f71c4042f4d582938186a37f2c070504f 100644 (file)
// Draw submitter if required
if ($this->submitButton) {
- $this->tree.= " <input class='center' type='image' src='images/lists/submit.png' align='middle' title='"._("Submit")."' name='submit_base_".$this->pid."' id='submit_base_".$this->pid."' alt='"._("Submit")."'>";
+ $this->tree.= image('images/lists/submit.png', null, "submit_base_".$this->pid, _("Submit"));
}
$this->tree.= "<input type='submit' style='display:none' name='submit_tree_base_".$this->pid."' id='submit_tree_base_".$this->pid."'>";
$this->tree.= "<input type='hidden' name='bs_rebase_".$this->pid."' id='bs_rebase_".$this->pid."'>";
index fc2ff20455550af311d61cec75e9f276fa4a758e..9a9e2799c9a9762d31b38ca1fe5ff6edfda95982 100644 (file)
/* Return an image description using the path */
-function image($path, $label= null)
+function image($path, $label= null, $action= "", $title= "")
{
global $config;
global $BASE_DIR;
}
}
- return "<div class='img' style='".$styles[$path]."'>$lbl</div>";
+ // Clickable image or not?
+ if ($action == "") {
+ return "<div class='img' 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>";
+ }
}