X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fclass_listing.inc;h=bfc9c0735a2f92d51c02d637568023cd84faa39c;hb=b9fc1972cf2270252fc2a9940feab21c93372e94;hp=7b2cab1807c9923965c06e46a7888a3ddfddac02;hpb=5de75f2bcaedeb2b3153e0291ada31e05d244c2f;p=gosa.git
diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc
index 7b2cab180..bfc9c0735 100644
--- a/gosa-core/include/class_listing.inc
+++ b/gosa-core/include/class_listing.inc
@@ -28,6 +28,7 @@ class listing {
var $departmentBrowser= false;
var $departmentRootVisible= false;
var $multiSelect= false;
+ var $singleSelect= false;
var $template;
var $headline;
var $base;
@@ -121,6 +122,12 @@ class listing {
}
+ function getFilter()
+ {
+ return($this->filter);
+ }
+
+
function setFilter($filter)
{
$this->filter= &$filter;
@@ -154,7 +161,7 @@ class listing {
$this->xmlData= $this->xmlData["list"];
// Load some definition values
- foreach (array("departmentBrowser", "departmentRootVisible", "multiSelect", "baseMode") as $token) {
+ foreach (array("departmentBrowser", "departmentRootVisible", "multiSelect","singleSelect", "baseMode") as $token) {
if (isset($this->xmlData['definition'][$token]) &&
$this->xmlData['definition'][$token] == "true"){
$this->$token= true;
@@ -238,21 +245,21 @@ class listing {
isset($config['sortType'])) {
$this->sortAttribute= $config['sortAttribute'];
$this->sortType= $config['sortType'];
- $sorter= " ";
+ $sorter= " ".image("images/lists/sort-".($this->sortDirection[$index]?"up":"down").".png", null, $this->sortDirection[$index]?_("Sort ascending"):_("Sort descending"), "text-top");
}
$sortable= (isset($config['sortAttribute']));
$link= "href='?plug=".$_GET['plug']."&PID=".$this->pid."&act=SORT_$index'";
if (isset($config['label'])) {
if ($sortable) {
- $this->header[$index]= "
\n"; + $result.= " | "; + if($this->multiSelect){ + $result.= ""; + }else{ + $result.= " "; + } + $result.=" | \n"; } foreach ($this->header as $header) { $result.= $header; @@ -325,7 +339,7 @@ class listing { $result.="||
"; } @@ -362,6 +376,10 @@ class listing { $trow.=" | \n"; } + if ($this->singleSelect) { + $trow.=" | \n"; + } + foreach ($this->xmlData['table']['column'] as $index => $config) { $renderedCell= $this->renderCell($config['value'], $entry, $row); $trow.=" | colprops[$index]." class='list0'>".$renderedCell." | \n"; @@ -382,8 +400,16 @@ class listing { // Complete list by sorting entries for _sort$index and appending them to the output $entryIterator= new listingSortIterator($this->entries, $this->sortDirection[$this->sortColumn], "_sort".$this->sortColumn, $this->sortType); foreach ($entryIterator as $row => $entry){ - $result.="
"; } } + $result.= " |