]> dev.renevier.net Git - syj.git/commitdiff
printing css style
authorarno <arno@renevier.net>
Thu, 19 Aug 2010 14:32:42 +0000 (16:32 +0200)
committerarno <arno@renevier.net>
Thu, 19 Aug 2010 14:32:42 +0000 (16:32 +0200)
13 files changed:
application/controllers/AccountController.php
application/controllers/ContactController.php
application/controllers/ErrorController.php
application/controllers/FaqController.php
application/controllers/IdxController.php
application/controllers/ListController.php
application/controllers/LoginController.php
application/controllers/NewpwdController.php
application/controllers/PendingController.php
application/controllers/TermsofuseController.php
public/css/faq.css
public/css/generic.css
public/css/syj.css

index f1d977facaf70ec4818cc3ba20b026c57b8326c9..57ea4d41d04be8c489a63181d8db3ad7e4bf7a34 100644 (file)
@@ -11,8 +11,8 @@ class AccountController extends Zend_Controller_Action
         $this->view->headScript()->appendFile('js/prototype.js');
         $this->view->headScript()->appendFile('js/utils.js');
         $this->view->headScript()->appendFile('js/account.js');
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/account.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/account.css', 'all');
         $this->view->headTitle($this->view->translate("my account"));
     }
 
index e8e2843d35d9d064760407428ee47da4e6eae844..e72c467514b4bb89bda10917af81261fcb995ae5 100644 (file)
@@ -9,8 +9,8 @@ class ContactController extends Zend_Controller_Action
         $this->view->headScript()->appendFile('js/prototype.js');
         $this->view->headScript()->appendFile('js/utils.js');
         $this->view->headScript()->appendFile('js/contact.js');
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/contact.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/contact.css', 'all');
         $this->view->headTitle($this->view->translate("contact form"));
     }
 
index 0207587bf89633f4ab6cf0461cf33091b91d6eff..fed3945cbd7dbf89322fb1604c1278f70d0f157f 100644 (file)
@@ -10,8 +10,8 @@ class ErrorController extends Zend_Controller_Action
 
     public function init() {
         $this->_helper->SyjReset->resetPlaceHolders();
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/error.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/error.css', 'all');
     }
 
     public function errorAction() {
index 8a6881c19655d5411a815cd4597caae3c7ce3894..1cd46228f048856179d0b25ba46bc53e2f6aab18 100644 (file)
@@ -5,8 +5,8 @@
 class FaqController extends Zend_Controller_Action
 {
     public function indexAction() {
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/faq.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/faq.css', 'all');
         $this->view->headTitle($this->view->translate("Frequently asked questions"));
     }
 }
index 6ce7eb21f614e249472afe7fbc9a2dd019b274c0..77281103f48ff648a6164e999878c1f488fe1176 100644 (file)
@@ -12,16 +12,16 @@ class IdxController extends Zend_Controller_Action
         $this->view->headScript()->appendFile('js/simplebox.js');
         $this->view->headScript()->appendFile('js/utils.js');
         $this->view->headScript()->appendFile('js/syj.js');
-        $this->view->headLink()->appendStylesheet('css/openlayers/style.css');
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/syj.css');
+        $this->view->headLink()->appendStylesheet('css/openlayers/style.css', "all");
+        $this->view->headLink()->appendStylesheet('css/generic.css', "all");
+        $this->view->headLink()->appendStylesheet('css/syj.css', "all");
     }
 
     public function rawmode(Syj_Model_Path $path) {
         $this->_helper->SyjReset->resetPlaceHolders();
 
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/syjraw.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/syjraw.css', 'all');
         $this->view->headScript()->appendFile('js/OpenLayers.js');
         $this->view->headScript()->appendFile('js/syjraw.js');
         $this->view->headTitle($path->displayTitle);
index 9ce4d0e828f7812749a1536b53d0684379f7c65a..c02f19cf93ee7f34e376b212e8f856bce7c05d7e 100644 (file)
@@ -13,8 +13,8 @@ class ListController extends Zend_Controller_Action
         $this->view->headScript()->appendFile('js/utils.js');
         $this->view->headScript()->appendFile('js/list.js');
 
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/list.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/list.css', 'all');
         $this->view->headTitle($this->view->translate("my routes"));
     }
 
index ed1514f1ec85ce1b776802b07a55fc8c8f63e1e8..a6c7b46707130f7a98ab13d17358913346f55254 100644 (file)
@@ -9,8 +9,8 @@ class LoginController extends Zend_Controller_Action
         $this->view->headScript()->appendFile('js/prototype.js');
         $this->view->headScript()->appendFile('js/utils.js');
         $this->view->headScript()->appendFile('js/login.js');
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/login.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/login.css', 'all');
     }
 
     public function loginAction() {
index 012738c07045d765a865779abd367844d232bd8a..1a4ab0798bc7d1c7f0d4bbc4e9e7b3e42fd94e12 100644 (file)
@@ -9,8 +9,8 @@ class NewpwdController extends Zend_Controller_Action
         $this->view->headScript()->appendFile('js/prototype.js');
         $this->view->headScript()->appendFile('js/newpwd.js');
         $this->view->headScript()->appendFile('js/utils.js');
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/newpwd.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/newpwd.css', 'all');
     }
 
     public function indexAction() {
index d025023dd8197987025597099b1bb24e166cd847..af5278c2a40b1a1033d31c4e2b1dd62389395a87 100644 (file)
@@ -6,8 +6,8 @@ class PendingController extends Zend_Controller_Action
 {
 
     public function init() {
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/pending.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/pending.css', 'all');
     }
 
     public function indexAction() {
index 928966ed5af11d71b5584072a4a3f796ded973fa..1fa7ffcb4394b459d9d359849d0c04969333bc41 100644 (file)
@@ -5,8 +5,8 @@
 class TermsofuseController extends Zend_Controller_Action
 {
     public function indexAction() {
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/termsofuse.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/termsofuse.css', 'all');
         $this->view->headTitle($this->view->translate("terms of use"));
         $this->view->rawmode = ($this->getRequest()->getQuery('format') == 'raw');
     }
index 902ed7a6f5b0a04a94b7e4e0f8079e520b5f6e63..56924d93bc78ed03c1cf31b9fba09d4899c5b58c 100644 (file)
@@ -15,3 +15,10 @@ h1, h2 {
 p {
     margin: 0.5em 15% 2.0em 15%;
 }
+
+@media print {
+    p {
+        margin-left: 0;
+        margin-right: 0;
+    }
+}
index 2a8748ed1cf41b214f199501cd6265297a27ce6a..26f133718689f5774f523e0dcd3bf630a4529bfc 100644 (file)
@@ -115,3 +115,9 @@ input {
     padding-bottom: 3px;
     border: #1E90FF 1px solid;
 }
+
+@media print {
+    #footer, #other-language {
+        display: none;
+    }
+}
index 76a075b20cc258adf0208f8d784898b223287249..f166dd512b42de6c543e364c3a93ca6ba9517d64 100644 (file)
@@ -165,3 +165,16 @@ body, html {
     opacity: 1;
     filter:alpha(opacity=100);
 }
+
+/*
+ * printing
+ */
+@media print {
+    @page {
+      size: landscape;
+    }
+
+    #message, #data_controls, #login_controls, #user_area, #login_area, #newpwd_area, .olControlPanZoom{
+        display: none;
+    }
+}