From 8e7d8e39a2ee5801a2f68b95cdc0e84b55da1019 Mon Sep 17 00:00:00 2001 From: arno Date: Thu, 19 Aug 2010 16:32:42 +0200 Subject: [PATCH] printing css style --- application/controllers/AccountController.php | 4 ++-- application/controllers/ContactController.php | 4 ++-- application/controllers/ErrorController.php | 4 ++-- application/controllers/FaqController.php | 4 ++-- application/controllers/IdxController.php | 10 +++++----- application/controllers/ListController.php | 4 ++-- application/controllers/LoginController.php | 4 ++-- application/controllers/NewpwdController.php | 4 ++-- application/controllers/PendingController.php | 4 ++-- application/controllers/TermsofuseController.php | 4 ++-- public/css/faq.css | 7 +++++++ public/css/generic.css | 6 ++++++ public/css/syj.css | 13 +++++++++++++ 13 files changed, 49 insertions(+), 23 deletions(-) diff --git a/application/controllers/AccountController.php b/application/controllers/AccountController.php index f1d977f..57ea4d4 100644 --- a/application/controllers/AccountController.php +++ b/application/controllers/AccountController.php @@ -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")); } diff --git a/application/controllers/ContactController.php b/application/controllers/ContactController.php index e8e2843..e72c467 100644 --- a/application/controllers/ContactController.php +++ b/application/controllers/ContactController.php @@ -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")); } diff --git a/application/controllers/ErrorController.php b/application/controllers/ErrorController.php index 0207587..fed3945 100644 --- a/application/controllers/ErrorController.php +++ b/application/controllers/ErrorController.php @@ -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() { diff --git a/application/controllers/FaqController.php b/application/controllers/FaqController.php index 8a6881c..1cd4622 100644 --- a/application/controllers/FaqController.php +++ b/application/controllers/FaqController.php @@ -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")); } } diff --git a/application/controllers/IdxController.php b/application/controllers/IdxController.php index 6ce7eb2..7728110 100644 --- a/application/controllers/IdxController.php +++ b/application/controllers/IdxController.php @@ -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); diff --git a/application/controllers/ListController.php b/application/controllers/ListController.php index 9ce4d0e..c02f19c 100644 --- a/application/controllers/ListController.php +++ b/application/controllers/ListController.php @@ -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")); } diff --git a/application/controllers/LoginController.php b/application/controllers/LoginController.php index ed1514f..a6c7b46 100644 --- a/application/controllers/LoginController.php +++ b/application/controllers/LoginController.php @@ -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() { diff --git a/application/controllers/NewpwdController.php b/application/controllers/NewpwdController.php index 012738c..1a4ab07 100644 --- a/application/controllers/NewpwdController.php +++ b/application/controllers/NewpwdController.php @@ -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() { diff --git a/application/controllers/PendingController.php b/application/controllers/PendingController.php index d025023..af5278c 100644 --- a/application/controllers/PendingController.php +++ b/application/controllers/PendingController.php @@ -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() { diff --git a/application/controllers/TermsofuseController.php b/application/controllers/TermsofuseController.php index 928966e..1fa7ffc 100644 --- a/application/controllers/TermsofuseController.php +++ b/application/controllers/TermsofuseController.php @@ -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'); } diff --git a/public/css/faq.css b/public/css/faq.css index 902ed7a..56924d9 100644 --- a/public/css/faq.css +++ b/public/css/faq.css @@ -15,3 +15,10 @@ h1, h2 { p { margin: 0.5em 15% 2.0em 15%; } + +@media print { + p { + margin-left: 0; + margin-right: 0; + } +} diff --git a/public/css/generic.css b/public/css/generic.css index 2a8748e..26f1337 100644 --- a/public/css/generic.css +++ b/public/css/generic.css @@ -115,3 +115,9 @@ input { padding-bottom: 3px; border: #1E90FF 1px solid; } + +@media print { + #footer, #other-language { + display: none; + } +} diff --git a/public/css/syj.css b/public/css/syj.css index 76a075b..f166dd5 100644 --- a/public/css/syj.css +++ b/public/css/syj.css @@ -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; + } +} -- 2.39.2