]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 14 Feb 2013 17:49:03 +0000 (17:49 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 14 Feb 2013 17:49:03 +0000 (17:49 +0000)
inc/ws/Controlleur/class.ws.url.php

index ffe97cc278efe7a5ede68822d960fa1d759b1846..3274bed4a1bd2b9c2b27c5a39ceace37c167104d 100644 (file)
@@ -90,12 +90,12 @@ class wsUrl {
 \r
 \r
 \r
-               $btVoir = '<div></div><span>'.__('voir').'</span>';\r
-               $btEdit = '<div></div><span>'.__('éditer').'</span>';\r
-               $btStats = '<div></div><span>'.__('stats').'</span>';\r
-               $btDownload = '<div></div><span>'.__('télécharger').'</span>';\r
+               $btVoir = '<div></div><span>' . __('voir') . '</span>';\r
+               $btEdit = '<div></div><span>' . __('éditer') . '</span>';\r
+               $btStats = '<div></div><span>' . __('stats') . '</span>';\r
+               $btDownload = '<div></div><span>' . __('télécharger') . '</span>';\r
                if ($droits->creation) {\r
-                       $btDel = '<div></div><span>'.__('suppr.').'</span>';\r
+                       $btDel = '<div></div><span>' . __('suppr.') . '</span>';\r
                }\r
 \r
                foreach ($liste as $id => $book) {\r
@@ -220,11 +220,20 @@ class wsUrl {
                $dao->setFiltres($settings['filtres']);\r
                $liste = $dao->getListe($settings['orderby'], $settings['sens'], $settings['limit'], $core->user);\r
 \r
+               $btVoir = '<div></div><span>' . __('voir') . '</span>';\r
+               $btEdit = '<div></div><span>' . __('éditer') . '</span>';\r
+               $btStats = '<div></div><span>' . __('stats') . '</span>';\r
+               $btDownload = '<div></div><span>' . __('télécharger') . '</span>';\r
+               if ($droits->creation) {\r
+                       $btDel = '<div></div><span>' . __('suppr.') . '</span>';\r
+               }\r
+\r
+\r
                $res = '<table class="liste">';\r
                $res .= '<tr><th>' . commonUrl::orderby('#', 'collection_id', $settings, 'sort' . $change) . '</th>';\r
                $res .= '<th>' . commonUrl::orderby(__('Nom de la collection'), 'nom', $settings, 'sort' . $change) . '</th>';\r
                $res .= '<th>' . commonUrl::orderby(__('Propriétaire'), 'proprietaire_nom', $settings, 'sort' . $change) . '</th>';\r
-               $res .= str_repeat('<th class="min"></th>', 5);\r
+               $res .= str_repeat('<th class="min"></th>', 4);\r
                $res.='</tr>';\r
 \r
                $i = 0;\r
@@ -240,7 +249,12 @@ class wsUrl {
                        } else {\r
                                $res .= '<td>' . html::escapeHTML($collection->proprietaire_utilisateur) . '</td>';\r
                        }\r
-                       \r
+\r
+                       $res .= '<td class="bouton"><!--<a href="#" class="normallink voir btbook">' . $btVoir . '</a>--></td>';\r
+                       $res .= '<td class="bouton"><a href="/collection/'.$collection->collection_id.'" class="normallink edit btbook">' . $btEdit . '</a></td>';\r
+                       $res .= '<td class="bouton"><!--<a href="#" class="normallink download btbook">' . $btDownload . '</a>--></td>';\r
+                       $res .= '<td class="bouton"><!--<a href="#" class="normallink suppr btbook">' . $btDel . '</a>--></td>';\r
+\r
                        $res.='</tr>';\r
 \r
                        $i++;\r
@@ -248,9 +262,11 @@ class wsUrl {
 \r
                if (!isset($settings['search']) || is_null($settings['search'])) {\r
                        $odd = cubeMath::isOdd($i) ? ' class="odd"' : '';\r
-                       $res .= '<tr' . $odd . '><td colspan="3">';\r
+                       $res .= '<tr' . $odd . '><td colspan="7">';\r
                        $res .= commonPage::pager($settings['page'], $dao->count($core->user), $settings['par_page'], 'page' . $change . '/%d');\r
                        $res .= commonUrl::formParPage('parPage' . $change, $settings['par_page'], __('collections'), false);\r
+\r
+\r
                        $res .= '</td></tr>';\r
                }\r
                $res .= '</table>';\r