]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 3 Dec 2010 10:43:26 +0000 (10:43 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 3 Dec 2010 10:43:26 +0000 (10:43 +0000)
inc/prepend.php
inc/ws/Controlleur/class.ws.url.php
inc/ws/Metier/class.ws.book.parametres.php

index 54d0f7a40a18d6ddcaffe1b9b720a8abea43baf3..006e28b2b81b5dc0e40fcb408cfde61b15d7033d 100644 (file)
@@ -19,8 +19,10 @@ $core = new extranetCore();
 $core->url->registerDefault(array('extranetUrl', 'home'));\r
 $core->url->register('ajax', 'ajax', '^ajax(.*)$', array('cubeAjax', 'ajax'));\r
 $core->url->register('cleanDownload', 'cleanDownload', '^cleanDownload$', array('extranetUrl', 'cleanDownload'));\r
+// Fluidbook Workshop\r
 $core->url->register('flash', 'flash', '^flash(.*)$', array('wsFlash', 'in'));\r
-$core->url->register('editbook', 'editbook', '^editbook/(.*)$', array('wsUrl', 'editbook'));\r
+$core->url->register('editor', 'editor', '^editor/(.*)$', array('wsUrl', 'editor'));\r
+$core->url->register('viewer', 'viewer', '^viewer/(.*)$', array('wsUrl', 'viewer'));\r
 \r
 if (isset($_POST['q'])) {\r
        $_SESSION['q'] = $_POST['q']?$_POST['q']:null;\r
index 974a7d692a988860c89e0f12c6bff4956a4fc226..a49da9bd225966fe85a7d4c085ae33118a1ce3bb 100644 (file)
@@ -65,8 +65,8 @@ class wsUrl {
                        // $f = $book->facturable;\r
                        $res .= '<td>' ./* $f .*/ '</td>';\r
                        $res .= '<td>' . $core->books_status[$book->status] . '</td>';\r
-                       $res .= '<td class="bouton"><a href="' . SITE_PATH . 'voirbook/' . $book->book_id . '_' . $book->hash . '_' . TIME . '/" class="popupFS">' . $btVoir . '</a></td>';\r
-                       $res .= '<td class="bouton"><a class="popupFS" href="' . SITE_PATH . 'editbook/' . $book->book_id . '">' . $btEdit . '</a></td>';\r
+                       $res .= '<td class="bouton"><a href="' . SITE_PATH . 'viewer/' . $book->book_id . '_' . $book->hash . '/" class="popupFS">' . $btVoir . '</a></td>';\r
+                       $res .= '<td class="bouton"><a class="popupFS" href="' . SITE_PATH . 'editor/' . $book->book_id . '">' . $btEdit . '</a></td>';\r
                        $res .= '<td class="bouton"><a href="' . SITE_PATH . 'stats/' . $book->book_id . '">' . $btStats . '</a></td>';\r
                        $res .= '<td class="bouton"><a href="' . SITE_PATH . 'supprimebook/' . $book->book_id . '">' . $btDownload . '</a></td>';\r
                        $res .= '<td class="bouton"><a href="#" rel="supprimeBook/' . $book->book_id . '" class="ajax" title="' . __('Êtes-vous certain de vouloir supprimer cette publication ?') . '">' . $btDel . '</a></td>';\r
@@ -84,7 +84,7 @@ class wsUrl {
                return $res;\r
        }\r
 \r
-       public static function editbook($args)\r
+       public static function editor($args)\r
        {\r
                global $core;\r
 \r
@@ -94,7 +94,7 @@ class wsUrl {
                if ($book_id == 'new') {\r
                        $dao = new wsDAOBook($core->con);\r
                        $book = $dao->creeEmpty($core->user->utilisateur_id, $core->user->lang);\r
-                       http::redirect(SITE_PATH . 'editbook/' . $book->book_id);\r
+                       http::redirect(SITE_PATH . 'editor/' . $book->book_id);\r
                }\r
 \r
                $res = '<html><head><style type="text/css">';\r
@@ -119,6 +119,18 @@ html{height:100%}' . "\n";
                return wsStats::display($bid, $annee, $mois);\r
        }\r
 \r
+       public static function viewer($args)\r
+       {\r
+               $args = cubePage::getArgs($args);\r
+\r
+               $e = explode('_', $args[0]);\r
+               if (count($e) == 2) {\r
+                       $e[] = TIME;\r
+                       http::redirect(SITE_PATH . '/viewer/' . implode('_', $e));\r
+                       exit;\r
+               }\r
+       }\r
+\r
        public static function statsxls($args)\r
        {\r
                $bid = (isset($args[1]))?$args[1]:null;\r
@@ -149,7 +161,7 @@ html{height:100%}' . "\n";
        public static function testAS()\r
        {\r
                global $core;\r
-               //cubePHP::neverStop();\r
+               // cubePHP::neverStop();\r
                $dao = new wsDAOBook($core->con);\r
                header('Content-type: text/plain');\r
                ob_clean();\r
index 0732bdd4ab9c8064203d33027d93fff67425490d..bb9aa793701761253f2f7b1846275c8fd2a81d9f 100644 (file)
@@ -38,13 +38,15 @@ class wsBookParametres extends wsParametres {
                $this->fields['height'] = array('type' => 'float', 'default' => '', 'editable' => false, 'label' => __('Hauteur'), 'extra' => false, 'grade' => 0);\r
                // .\r
                $this->fields['twoDmode'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __("Activer le mode 2D"), 'extra' => false, 'grade' => 1);\r
+               $this->fields['pagesBaseAngle'] = array('type' => 'integer', 'default' => 2, 'editable' => true, 'label' => __('Angle de base entre les pages'), 'extra' => true, grade => 1,\r
+                       'hint' => __("0 : Publication à plat") . "\n" . __('2 : Valeur par défaut'), 'min' => 0, 'max' => 20);\r
                $this->fields['print'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __("Activer l'impression"), 'extra' => false, 'grade' => 1);\r
                $this->fields['search'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Activer le moteur de recherche'), 'extra' => false, 'grade' => 1);\r
                $this->fields['bookmark'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Activer les marques-pages'), 'extra' => false, 'grade' => 1);\r
                $this->fields['fullscreen'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Activer le mode plein-écran'), 'extra' => false, 'grade' => 1);\r
                $this->fields['url_link'] = array('type' => 'text', 'default' => 'http://', 'editable' => true, 'label' => __("URL du lien de retour au site"), 'extra' => false, 'grade' => 1);\r
                $this->forms['general'] = array('label' => __('Fonctionnalités générales'),\r
-                       'fieldsnames' => array('print', 'search', 'bookmark', 'fullscreen','twoDmode', 'pages', 'width', 'height'));\r
+                       'fieldsnames' => array('print', 'search', 'bookmark', 'fullscreen', 'twoDmode', 'pagesBaseAngle', 'pages', 'width', 'height'));\r
                // .\r
                $this->fields['first_page_nr'] = array('type' => 'integer', 'default' => 1, 'editable' => true, 'label' => __('La numérotation débute à la page'), 'extra' => false, 'grade' => 1);\r
                $this->fields['preload'] = array('type' => 'integer', 'default' => 16, 'editable' => true, 'label' => __('Nombre de pages à précharger'), 'extra' => false, 'grade' => 1);\r
@@ -70,10 +72,9 @@ class wsBookParametres extends wsParametres {
                $this->fields['stats'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Activer les statistiques'), 'extra' => false, 'grade' => 1);\r
                $this->fields['statsWeborama'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Statistiques Weborama'), 'size' => 10, 'extra' => true, 'grade' => 1);\r
                $this->fields['googleAnalytics'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Code Google Analytics'), 'size' => 10, 'extra' => true, 'grade' => 1);\r
-               $this->fields['stats_score']= array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Affiche le score dans les statistiques'), 'extra' => false, 'grade' => 1);\r
+               $this->fields['stats_score'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Affiche le score dans les statistiques'), 'extra' => false, 'grade' => 1);\r
                $this->forms['stats'] = array('label' => __('Statistiques'),\r
                        'fieldsnames' => array('stats', 'statsWeborama'));\r
-\r
                // .\r
                $this->fields['displayChaptersAtStart'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __("Afficher le sommaire au chargement de la publication"), 'extra' => true, 'grade' => 4);\r
                $this->fields['chaptersPosition'] = array('type' => 'combo',\r