From 4b798e4fede7eda1687bd260f7bb96e265a378d8 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 7 Jun 2013 13:06:15 +0200 Subject: [PATCH] various improvements add links for delete/editing object. Fix wrong tagging of submit button. set start folder appropriately. --- views/bootstrap/class.Search.php | 50 ++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php index f0513d0e4..62ed4b554 100644 --- a/views/bootstrap/class.Search.php +++ b/views/bootstrap/class.Search.php @@ -61,6 +61,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style { $attributes = $this->params['attributes']; $categories = $this->params['categories']; $owner = $this->params['owner']; + $startfolder = $this->params['startfolder']; $startdate = $this->params['startdate']; $stopdate = $this->params['stopdate']; $expstartdate = $this->params['expstartdate']; @@ -219,7 +220,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style { - + @@ -283,7 +284,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style { - + @@ -317,6 +318,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style { print "".getMLText("name")."\n"; print "".getMLText("attributes")."\n"; print "".getMLText("status")."\n"; + print "".getMLText("action")."\n"; print "\n\n\n"; $previewer = new SeedDMS_Preview_Previewer($cachedir, 40); @@ -384,6 +386,28 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style { $display_status=$lc->getStatus(); print "".getOverallStatusText($display_status["status"]). ""; + print ""; + print "
"; + if($document->getAccessMode($user) >= M_ALL) { +?> + + + +getAccessMode($user) >= M_READWRITE) { +?> + + + +"; + print ""; print "\n"; } elseif(get_class($entry) == 'SeedDMS_Core_Folder') { @@ -422,6 +446,28 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style { } print ""; print ""; + print ""; + print "
"; + if($folder->getAccessMode($user) >= M_ALL) { +?> + + + +getAccessMode($user) >= M_READWRITE) { +?> + + + +"; + print ""; print "\n"; } }