]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 27 Apr 2010 13:00:46 +0000 (13:00 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 27 Apr 2010 13:00:46 +0000 (13:00 +0000)
inc/prepend.php
inc/ws/Controlleur/class.ws.url.php
js/extranet.js
style/ws/style.css
swf/_src/wsComposer.fla

index 5454c289f9bfdf8126b837e7bd10ebc9525ef459..0ae51760eef909116dbeff67f578d288b0970d65 100644 (file)
@@ -19,6 +19,7 @@ $core->url->registerDefault(array('extranetUrl', 'home'));
 $core->url->register('ajax', 'ajax', '^ajax(.*)$', array('cubeAjax', 'ajax'));\r
 $core->url->register('cleanDownload', 'cleanDownload', '^cleanDownload$', array('extranetUrl', 'cleanDownload'));\r
 $core->url->register('flash', 'flash', '^flash(.*)$', array('wsFlash', 'in'));\r
+$core->url->register('editbook', 'editbook', '^editbook/(.*)$', array('wsUrl', 'editbook'));\r
 \r
 if (isset($_POST['q'])) {\r
        $_SESSION['q'] = $_POST['q']?$_POST['q']:null;\r
index b30cc70fe2e4c0a67e84b91f37bf247b149ddc8b..bcc006334ab4582687043530562be88235375bc5 100644 (file)
@@ -58,7 +58,7 @@ class wsUrl {
                        $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">' . cubeMedia::cssRollover($core->typo->Voir('voir', '', false)) . '</a></td>';\r
-                       $res .= '<td class="bouton"><a href="' . SITE_PATH . 'editbook/' . $book->book_id . '/#/composition">' . cubeMedia::cssRollover($core->typo->Editer('éditer', '', false)) . '</a></td>';\r
+                       $res .= '<td class="bouton"><a class="popupFS" href="' . SITE_PATH . 'editbook/' . $book->book_id . '">' . cubeMedia::cssRollover($core->typo->Editer('éditer', '', false)) . '</a></td>';\r
                        $res .= '<td class="bouton"><a href="' . SITE_PATH . 'stats/' . $book->book_id . '">' . cubeMedia::cssRollover($core->typo->Stats('stats', '', false)) . '</a></td>';\r
                        $res .= '<td class="bouton"><a href="' . SITE_PATH . 'supprimebook/' . $book->book_id . '">' . cubeMedia::cssRollover($core->typo->Telecharger('télécharger', '', false)) . '</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 ?') . '">' . cubeMedia::cssRollover($core->typo->Supprimer('suppr.', '', false)) . '</a></td>';\r
@@ -79,7 +79,8 @@ class wsUrl {
        public static function editbook($args)\r
        {\r
                global $core;\r
-               $book_id = $args[1];\r
+               $args = cubePage::getArgs($args);\r
+               $book_id = $args[0];\r
 \r
                if ($book_id == 'new') {\r
                        $dao = new wsDAOBook($core->con);\r
@@ -117,30 +118,37 @@ class wsUrl {
                        $i++;\r
                }*/\r
 \r
-               $res = extranetPage::barre(null , null, null, null);\r
+               /*$res = extranetPage::barre(null , null, null, null);\r
                $res .= extranetPage::tMain(null, true);\r
-               $res .= extranetPage::bh();\r
-               $res .= '<div id="listeBooks">';\r
-\r
+               $res .= extranetPage::bh();*/\r
+               $res = '<html><head><style type="text/css">';\r
+               $res .= '#composerSwf{width:100%;height:100%;margin:0 auto;}\r
+body{margin:0;padding:0;height:100%;overflow:hidden;background:#d2d3c7;}\r
+html{height:100%}' . "\n";\r
+               $res .= '</style>';\r
+               $res .= '<title>' . __('Edition de la publication') . ' #' . $args[0].'</title>';\r
+               $res .= '</head>';\r
+               $res .= '<body>';\r
                $res .= self::editComposition($args);\r
-\r
-               $res .= '</div>';\r
+               $res .= '</body>';\r
+               $res .= '</html>';\r
+               /*\r
                $res .= extranetPage::bf();\r
-               $res .= extranetPage::bMain();\r
-               return $res;\r
+               $res .= extranetPage::bMain();*/\r
+               echo $res;\r
        }\r
 \r
        public static function editComposition($args)\r
        {\r
                $fv = array(session_name() => session_id(),\r
-                       'book_id' => $args[1],\r
+                       'book_id' => $args[0],\r
                        'finishedText' => __('Transfert terminé'),\r
                        'loadingFileText' => __('Chargement du fichier'),\r
                        'totalText' => __('Total'),\r
                        'browseText' => __('Parcourir') . ' ...',\r
                        'titreUpload' => __('Sélectionnez un ou plusieurs document PDF sur votre ordinateur'),\r
                        'titreComposition' => __('Organisez le(s) document(s) pour composer votre fluidbook'));\r
-               $res = cubeMedia::flash(WEBROOT . '/swf/composer.swf?junk=' . TIME, '960', '100%', $fv, 'composerSwf', 'swfPanel', 9, '#ffffff', '', 'false', 'noscale', 'normal', array(), false, true,true);\r
+               $res = cubeMedia::flash(WEBROOT . '/swf/composer.swf?junk=' . TIME, '100%', '100%', $fv, 'composerSwf', 'swfPanel', 9, '#d2d3c7', '', 'false', 'noscale', 'normal', array(), false, true, true);\r
                return $res;\r
        }\r
 }\r
index 7fb6e63491224ddfe3487815baaa06001a30592a..23070c8592b669f18864dd51cc0c470ffba5e68e 100644 (file)
@@ -175,8 +175,6 @@ function resize(){
        var mh=h-$("#header").height()-$("#footer").height()-$("#bar").height()-30-13;\r
        mh=Math.max(mh,450);\r
        $("#main").css('height',mh);\r
-\r
-       $(".swfPanel").css('height',mh-30);\r
 }\r
 \r
 \r
index eae975695afc43e4034f8990f268d404bde56a8e..172ef2931e41767e5982cdc3c8f997910ead5dc6 100644 (file)
@@ -432,4 +432,6 @@ display:none;
 \r
 #uploaderContainer{width:970px;height:50px;}\r
 \r
-.gris{background-color:#ecedf0;}
\ No newline at end of file
+.gris{background-color:#ecedf0;}\r
+\r
+#listeBooks{width:100%;height:100%;}
\ No newline at end of file
index f880a180ca9dc1382900403db92c4580d447e092..26707572ac8a93b7b39b840d91fae3a11a97c488 100644 (file)
Binary files a/swf/_src/wsComposer.fla and b/swf/_src/wsComposer.fla differ