From: vincent@cubedesigners.com Date: Mon, 26 Jul 2021 09:37:51 +0000 (+0000) Subject: wait #4528 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3b30c15bae9685fcb16ca8609404397f58a7dd2a;p=cubeextranet.git wait #4528 @0.25 --- diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 09db6fb46..06f9ae6cc 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -57,6 +57,8 @@ class wsUrl $context_status_id = is_null($dashboard) ? 'contextStatusBook' : 'contextDashboard_Status' . $dashboard; $context_view_id = is_null($dashboard) ? 'contextViewBook' : 'contextView_Status' . $dashboard; + $report = THEME === 'ysl'; + if (isset($settings['search']) && !is_null($settings['search'])) { $dao->setSearch($settings['search']); } @@ -85,20 +87,23 @@ class wsUrl $res .= '' . commonUrl::orderby(sprintf(__('Date de%smodification'), '
'), 'changedate', $settings, 'sort' . $change) . ''; $res .= '' . commonUrl::orderby(__(''), 'lang', $settings, 'sort' . $change) . ''; $res .= '' . __('Pages') . ''; - if ($droits->admin) { - $res .= '' . commonUrl::orderby('C', 'demo_counter', $settings, 'sort' . $change, __('Compteur de démos')) . ''; - } - if ($droits->revendeur) { - $res .= '' . commonUrl::orderby(__('Proprietaire'), 'proprietaire_nom', $settings, 'sort' . $change) . ''; - } else { - $res .= '' . commonUrl::orderby(__('Proprietaire'), 'proprietaire_utilisateur', $settings, 'sort' . $change) . ''; - } - if ($droits->admin) { - $res .= '' . commonUrl::orderby(__('Facturation'), 'facturable', $settings, 'sort' . $change) . ''; - } - if ($droits->revendeur) { - $res .= '' . commonUrl::orderby(__('Status'), 'status', $settings, 'sort' . $change) . ''; - $res .= '' . __('V') . ''; + + if (!$report) { + if ($droits->admin) { + $res .= '' . commonUrl::orderby('C', 'demo_counter', $settings, 'sort' . $change, __('Compteur de démos')) . ''; + } + if ($droits->revendeur) { + $res .= '' . commonUrl::orderby(__('Proprietaire'), 'proprietaire_nom', $settings, 'sort' . $change) . ''; + } else { + $res .= '' . commonUrl::orderby(__('Proprietaire'), 'proprietaire_utilisateur', $settings, 'sort' . $change) . ''; + } + if ($droits->admin) { + $res .= '' . commonUrl::orderby(__('Facturation'), 'facturable', $settings, 'sort' . $change) . ''; + } + if ($droits->revendeur) { + $res .= '' . commonUrl::orderby(__('Status'), 'status', $settings, 'sort' . $change) . ''; + $res .= '' . __('V') . ''; + } } $res .= str_repeat('', 5); $res .= ''; @@ -107,6 +112,8 @@ class wsUrl $btVoir = '
' . __('voir') . ''; $btEdit = '
' . __('éditer') . ''; $btStats = '
' . __('stats') . ''; + + $btReport = '
' . __('report') . ''; $btDownload = '
' . __('télécharger') . ''; if ($droits->creation) { $btDel = '
' . __('suppr.') . ''; @@ -121,33 +128,35 @@ class wsUrl $res .= '' . date('Y-m-d', $book->changedate) . ''; $res .= '' . mb_strtoupper($book->lang) . ''; $res .= '' . $book->parametres->pages . ''; - if ($droits->admin) { - $res .= '' . $book->demo_counter . ''; - } + if (!$report) { + if ($droits->admin) { + $res .= '' . $book->demo_counter . ''; + } - if ($droits->revendeur) { - $p = str_replace(" (", '
', html::escapeHTML($book->proprietaire)); - $p = str_replace(')', '', $p); - $res .= '' . $p . ''; - } else { - $res .= '' . html::escapeHTML($book->proprietaire_utilisateur) . ''; - } - if ($droits->admin) { - $res .= '' . html::escapeHTML($book->facturable) . ''; - } - if ($droits->revendeur) { - if ($droits->admin || $book->status < 1) { - $p = ''; - if (!is_null($book->projet)) { - $p = ' ' . cubeMedia::silk('arrow_right.png') . ''; - } - $res .= '' . $core->books_status[$book->status] . '' . $p . ''; + if ($droits->revendeur) { + $p = str_replace(" (", '
', html::escapeHTML($book->proprietaire)); + $p = str_replace(')', '', $p); + $res .= '' . $p . ''; } else { - $res .= '' . $core->books_status[1] . ''; + $res .= '' . html::escapeHTML($book->proprietaire_utilisateur) . ''; + } + if ($droits->admin) { + $res .= '' . html::escapeHTML($book->facturable) . ''; + } + if ($droits->revendeur) { + if ($droits->admin || $book->status < 1) { + $p = ''; + if (!is_null($book->projet)) { + $p = ' ' . cubeMedia::silk('arrow_right.png') . ''; + } + $res .= '' . $core->books_status[$book->status] . '' . $p . ''; + } else { + $res .= '' . $core->books_status[1] . ''; + } + $res .= '' . $book->version . ''; } - $res .= '' . $book->version . ''; } - if ($book->version > 1 || $droits->admin) { + if (!$report && ($book->version > 1 || $droits->admin)) { $types = ['html5']; $defaultPlayer = 'viewerh'; if ($book->parametres->scorm_enable) { @@ -160,7 +169,9 @@ class wsUrl $res .= ''; } $res .= '' . $btStats . ''; - if ($book->version > 1) { + if ($report) { + $res .= '' . $btReport . ''; + } elseif ($book->version > 1) { if ($droits->admin) { $res .= '' . $btDownload . ''; } else { @@ -170,7 +181,7 @@ class wsUrl } else { $res .= ''; } - if ($droits->creation && $book->status < 0) { + if (!$report && ($droits->creation && $book->status < 0)) { $res .= '' . $btDel . ''; } else { $res .= ''; @@ -1333,7 +1344,7 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co $data[] = [date('Y-m-d H:i:s', $r->date), $r->page, $r->rating, $r->country, $r->function, $r->suggestions]; } - CubeIT_Excel::simple('Survey data #'.$bid, $data, $head, $tmp, 100); + CubeIT_Excel::simple('Survey data #' . $bid, $data, $head, $tmp, 100); files::$mimeType['xlsx'] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; cubeHTTP::downloadFile($tmp, 'ysl_survey_' . $bid . '.xlsx');