$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
// $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
return $res;\r
}\r
\r
- public static function editbook($args)\r
+ public static function editor($args)\r
{\r
global $core;\r
\r
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
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
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
$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
$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