summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7289a64)
raw | patch | inline | side by side (parent: 7289a64)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 13 Jan 2010 14:32:34 +0000 (14:32 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 13 Jan 2010 14:32:34 +0000 (14:32 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15163 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_sortableListing.inc | patch | blob | history |
diff --git a/gosa-core/include/class_sortableListing.inc b/gosa-core/include/class_sortableListing.inc
index d023584cf3461e53f744fbe954c69b0983c0ea34..b87136c612f27a00d41ea01159de3103bd41fe90 100644 (file)
private $data= array();
private $columns= 0;
- private $deletable= false;
+ private $deleteable= false;
private $editable= false;
private $instantDelete= true;
private $action;
// Generate instance wide unique ID
$tmp= gettimeofday();
- $this->id= 'l'.md5($t['sec']);
+ $this->id= 'l'.md5($tmp['sec']);
}
$delete_image= $this->deleteable?"<input class='center' type='image' src='images/lists/trash.png' alt='"._("Delete")."' name='%ID' title='"._("Delete this entry")."'>":"";
// Do we need colspecs?
+ $action_width= ($this->editable?20:0) + ($this->deleteable?20:0);
if ($this->colspecs) {
$result.= " <colgroup>\n";
for ($i= 0; $i<$this->columns; $i++) {
}
// Extend by another column if we've actions specified
- $action_width= ($this->editable?20:0) + ($this->deleteable?20:0);
if ($action_width) {
$result.= " <col width='$action_width'/>\n";
}