From ba5cfbd2c67351c12b14c0ae627c9da82d77fc97 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 14 Feb 2013 17:49:03 +0000 Subject: [PATCH] --- inc/ws/Controlleur/class.ws.url.php | 32 +++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index ffe97cc27..3274bed4a 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -90,12 +90,12 @@ class wsUrl { - $btVoir = '
'.__('voir').''; - $btEdit = '
'.__('éditer').''; - $btStats = '
'.__('stats').''; - $btDownload = '
'.__('télécharger').''; + $btVoir = '
' . __('voir') . ''; + $btEdit = '
' . __('éditer') . ''; + $btStats = '
' . __('stats') . ''; + $btDownload = '
' . __('télécharger') . ''; if ($droits->creation) { - $btDel = '
'.__('suppr.').''; + $btDel = '
' . __('suppr.') . ''; } foreach ($liste as $id => $book) { @@ -220,11 +220,20 @@ class wsUrl { $dao->setFiltres($settings['filtres']); $liste = $dao->getListe($settings['orderby'], $settings['sens'], $settings['limit'], $core->user); + $btVoir = '
' . __('voir') . ''; + $btEdit = '
' . __('éditer') . ''; + $btStats = '
' . __('stats') . ''; + $btDownload = '
' . __('télécharger') . ''; + if ($droits->creation) { + $btDel = '
' . __('suppr.') . ''; + } + + $res = ''; $res .= ''; $res .= ''; $res .= ''; - $res .= str_repeat('', 5); + $res .= str_repeat('', 4); $res.=''; $i = 0; @@ -240,7 +249,12 @@ class wsUrl { } else { $res .= ''; } - + + $res .= ''; + $res .= ''; + $res .= ''; + $res .= ''; + $res.=''; $i++; @@ -248,9 +262,11 @@ class wsUrl { if (!isset($settings['search']) || is_null($settings['search'])) { $odd = cubeMath::isOdd($i) ? ' class="odd"' : ''; - $res .= ''; } $res .= '
' . commonUrl::orderby('#', 'collection_id', $settings, 'sort' . $change) . '' . commonUrl::orderby(__('Nom de la collection'), 'nom', $settings, 'sort' . $change) . '' . commonUrl::orderby(__('Propriétaire'), 'proprietaire_nom', $settings, 'sort' . $change) . '
' . html::escapeHTML($collection->proprietaire_utilisateur) . '' . $btEdit . '
'; + $res .= ''; $res .= commonPage::pager($settings['page'], $dao->count($core->user), $settings['par_page'], 'page' . $change . '/%d'); $res .= commonUrl::formParPage('parPage' . $change, $settings['par_page'], __('collections'), false); + + $res .= '
'; -- 2.39.5