]> _ Git - cubeextranet.git/commitdiff
wait #5330 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 22 Jun 2022 09:32:10 +0000 (09:32 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 22 Jun 2022 09:32:10 +0000 (09:32 +0000)
inc/commons/class.common.tools.php
inc/ws/Metier/class.ws.book.parametres.php

index 0d4b9c8929a7f0b1305ab101e3da06fc488cd96e..4cf3be912bae26aabc858e6735a3bd7916900688 100644 (file)
@@ -1456,6 +1456,28 @@ class commonTools
         die(json_encode($res));
     }
 
+    public static function excelTranslationM($args)
+    {
+        $name = $_REQUEST['name'] ?? 'translations';
+
+        $o = json_decode($_REQUEST['str'], true);
+        $tmp = CubeIT_Files::tempnam();
+        $width = [];
+        foreach ($o['locales'] as $locale) {
+            $width[] = 50;
+        }
+        CubeIT_Excel::simple($name, $o['translations'], $o['locales'], $tmp, $width);
+
+        $n = $name . '.xlsx';
+
+        header('Content-Disposition: attachment; filename=' . $n);
+        header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
+        ob_end_clean();
+        readfile($tmp);
+        unlink($tmp);
+        exit;
+    }
+
     public static function excelTranslation($args)
     {
         $name = $_REQUEST['name'] ?? 'translations';
index 4df55a11b1160fafc0979ee78503b5c2f156484e..47ebb4a5b28c86529fd51519833699d3e43a6186 100644 (file)
@@ -2739,10 +2739,6 @@ L,index',
         'label' => __('Version precompilée'),
         'grade' => 3,
     ],
-    'section_elearning' => [
-        'label' => 'E-Learning',
-        'default' => NULL,
-    ],
     'gamify_coins_pages' => [
         'type' => 'textarea',
         'default' => '',
@@ -3452,7 +3448,6 @@ L,index',
             7 => 'download_win_cd_html',
             8 => 'download_win_html',
             9 => 'download_precompiled',
-            10 => 'section_elearning',
         ],
     ],
     'gamify' => [