From e98b5ee51c6cb4e5b46a526a3263b04495827f25 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 23 Oct 2005 06:17:49 +0000 Subject: [PATCH] Added CSS abilities to the printer class --- images/tcat.gif | Bin 0 -> 3524 bytes images/thead.gif | Bin 0 -> 2855 bytes printer.css | 270 +++++++++++++++++++++++++++++++++++++++++++++++ printer.php | 32 +++++- 4 files changed, 301 insertions(+), 1 deletion(-) create mode 100755 images/tcat.gif create mode 100755 images/thead.gif create mode 100755 printer.css diff --git a/images/tcat.gif b/images/tcat.gif new file mode 100755 index 0000000000000000000000000000000000000000..cdc9bdb024a3c5539c24bd29f3eed496b3e7dc70 GIT binary patch literal 3524 zcmV;#4LkBjNk%w1VI%--0QUd@aD9wYVRSf3UT1WKN?L6@Okrqrggi}QI!a(jSZhdF zYJQ29VQzq2YI{suZhVNAQDAa#e2Z#$hdfPUdW4fuUU5)ga%OUaa(<3US!`Zxem_uS ze2A4gN?$xqVq|cEPF!$CR%v*Hl1Nr-PF!z%hm}4~WMpuHOImGMW_NLZj5_`YI1&!Kv88rPGWh5lSEZ$Y?@X;)--LQ!RRgpof^V_|N7Rbq8QQD#F^Xi{QxPF`_CRA@p|XGT?O zc7u?1gOPfLl08jgS7dfrW_ej=cxrZqS!Q`*aDZcQf^K_@RbzBVR%<& zYJEdeW;jV+A^8LV00000EC2ui03-lx000R80RIUbNU)&6g9sBUT*$DY!-o(fN}NbB zp#UNO1PsI|P=LmP7cFkgC=jENlmAYdL)MsecdcK)Y~|XW%XV$yzkUzcRjluT;sTB#JC6K#u;sy(4@{VBcfvcz zn(`!JPw@QtwQJ3@XH#qKdh>4Ays4#mx4X6R-@uI%U%tF} z@ib|6Ll^%1negemojgxNg&LLa)SQU_|L%m!Gx6oqm*@VBij(u-zo&VY#tC=sRLZE= z&)-Rz|N5mTPI~!?C(eH+h^OBM0RFeZgJnP%A%hJz$e@G}Ubw^tOW;w)5*u#N&4VF6 z$l-=4rnp2m6LN^h5@^7>I_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Y0^vbC#d#ef9lI@h^kK(2JPs|5C{SG?YJuXx=nE(W^|T(qJUg($>fx3P^v zG`0}9a4cjKi`c|Qma>X1#3e3)3}7fD6vzn0CF((qP=FR0$^eFFfkBT;h?W|_poTJB z3ye$u%vQ937zQ8!0gc@bqaVB7Z9jDD+u-UJxV(i%Z-cvAA|QbX(QqyiocrAAKDWBk ztu7Lxd);UtVY}a@fepq>1M%8Gyyz|OdDA;y^0s%qCaY(f+j)`ciAObL8!*uuJ?M2IWQ z;Z0EZ!<4Y_H5kE&M?8WTEPio|VeH~-ltUl9sPQ9M+~OARn8my(2PsIgh*y+i$cs2~ zkzY~dQZTs`Nq#bvNde_oAbAm3{=gxAafmK=S<7Jla+rVd0Wy;r%v#>^2iA;$3m~BX z&2GMcoaanuIlnp1ZH6VAZS4t+R&A#1fmtKXhAUA(TYCDJPwU$ zN1x-+Vdy{@!eD_2Xj;>r{&WW-;OR_<`qP;nbq7Z6X;SMT0y=oLt6?4MSd*I8u%@-F zYi(;CKmrnk2sR|_(08O#ngu&V%UOEAOQmf!?G$YBXEe@I@?S@efnT z;@|-9cRcd#i+?-(;Si6w#3xSiid+2R7|*!IH_q{nd;H@d54p%kPV$nQ{NyMEhj>5$ F06V6k2+05d literal 0 HcmV?d00001 diff --git a/printer.css b/printer.css new file mode 100755 index 0000000..be26300 --- /dev/null +++ b/printer.css @@ -0,0 +1,270 @@ +/*=====================================================================*\ +|| ################################################################### +|| # Iris Studios Shared Object Framework [#]version[#] +|| # Copyright ©2002-[#]year[#] Iris Studios, Inc. +|| # +|| # This program is free software; you can redistribute it and/or modify +|| # it under the terms of the GNU General Public License as published by +|| # the Free Software Foundation; version [#]gpl[#] of the License. +|| # +|| # This program is distributed in the hope that it will be useful, but +|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +|| # more details. +|| # +|| # You should have received a copy of the GNU General Public License along +|| # with this program; if not, write to the Free Software Foundation, Inc., +|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +|| ################################################################### +\*=====================================================================*/ + +/* ################################################################### */ +/* Body and table elements */ +/* ################################################################### */ + +/* Main window background colour and font colour */ +body +{ + color: #D2D3F0; + background: #68768A; +} + +/* The row that goes on top of all other content */ +.phead +{ + color: #1C1C21; + font-size: 11pt; + font-weight: bold; + text-align: left; + border-bottom: outset 3px; + background: #445B78; + padding: 2px 25px; 2px; 25px; +} + +/* Border area around tables and inbetween spacing */ +.tborder +{ + border: ridge 4px; +} + +/* First row set in all tables */ +.tcat +{ + color: #97A9C4; + background: #38495E url(images/tcat.gif); + border-bottom: outset 1px; +} + +/* Links within the TCAT class */ +.tcat a:link, .tcat a:visited, .tcat a:active +{ + color: #97A9C4; +} + +/* Row under the TCAT row (often used for column headers) */ +td.thead, .thead td, .alt3 +{ + color: #D6E1EC; + font-weight: bold; + background: #445B78 url(images/thead.gif); + border: inset 1px; +} + +/* Links for the THEAD class */ +.thead a:link, .thead a:visited, .thead a:active, .alt3 a:link, .alt3 a:visited, .alt3 a:active +{ + color: #D6E1EC; +} + +/* The first type of row used in the alternation cycle */ +.alt1 +{ + color: #38495E; + background: #8994A4; +} + +/* The second type of row used in the alternation cycle */ +.alt2 +{ + color: #38495E; + background: #ABB2BC; +} + +/* The third alternation, used in special cases */ +.alt3 +{ + border: 0px; +} + +/* The last row in the table (often used for the submit buttons) */ +.tfoot +{ + color: #7D7CA3; + background: #ECE8D8; + border: outset 1px; +} + +/* ################################################################### */ +/* Text elements */ +/* ################################################################### */ + +/* Font settings for all non-styled elements */ +body, p, td, tr, ol, ul +{ + font: 12px verdana, geneva, arial, helvetica, sans-serif; +} + +/* Small text (used in copyright) */ +.smallfont, .copyright, dfn +{ + font: 11px tahoma, verdana, geneva, arial, helvetica, sans-serif; +} + +/* Description text */ +dfn +{ + font-style: italic; +} + +/* Table headings */ +.tcat, .thead, .tfoot +{ + font: 12px tahoma, verdana, geneva, arial, helvetica, sans-serif; +} + +/* Normal links */ +a:link, a:visited, a:active +{ + color: #293F5B; + background: none; +} + +/* Hover links */ +a:hover, .tcat a:hover, .thead a:hover, .tfoot a:hover +{ + color: #D6E1EC; + background: #38495E; +} + +.copyright a:hover, .copyright a:link, .copyright a:visited, .copyright a:active +{ + text-decoration: none; +} + +/* Mono-space */ +.code +{ + font: 9pt 'courier new', courier, monospace; +} + +/* ################################################################### */ +/* Form styling elements */ +/* ################################################################### */ + +/* Input elements in a form */ +input, textarea, select, option +{ + font: 12px verdana, geneva, arial, helvetica, sans-serif; +} + +/* Input formatting */ +.input +{ + font: bold 11px tahoma, verdana, geneva, arial, helvetica, sans-serif; + text-indent: 5px; + margin: 1px; + margin-top: 3px; +} + +/* Button styling */ +.button +{ + color: #000000; + font: bold 11px tahoma, verdana, geneva, arial, helvetica, sans-serif; + margin: 1px; + margin-top: 3px; +} + +/* ################################################################### */ +/* Navigation panel */ +/* ################################################################### */ + +/* The background colour for the navigation frame */ +.nav_body +{ + background: #38495E; +} + +.nav_body a:link, .nav_body a:active, .nav_body a:hover, .nav_body a:visited +{ + color: #FFFFFF; + text-decoration: none; +} + +/* Formatting for groups of nav elements */ +.nav_group +{ + color: #D6E1EC; + background: #445B78; + border: #97A9C4 solid 2px; + border-width: 0px 2px 1px 2px; +} + +/* Nav title border */ +.nav_title +{ + font: 11px tahoma, verdana, geneva, arial, helvetica, sans-serif; + padding: 2px; + border: #97A9C4 solid 2px; + border-width: 0px 2px 2px 2px; +} + +/* Cold nav items */ +.nav_item +{ + font: 11px tahoma, verdana, geneva, arial, helvetica, sans-serif; + padding: 2px 2px 1px 7px; + background: #5D7490; + border-bottom: #97A9C4 solid 1px; +} + +/* Hot nav items */ +.nav_item_hot +{ + font: 11px tahoma, verdana, geneva, arial, helvetica, sans-serif; + padding: 2px 2px 1px 7px; + background: #4A5F78; + border-bottom: #97A9C4 solid 1px; +} + +/* ################################################################### */ +/* Template manager */ +/* ################################################################### */ + +/* The body of the template manager */ +.manager_body +{ + background: #38495E; + color: #FFFFFF; +} + +/* A group of templates */ +.manager_group +{ + background: #28394E; + color: #8994A4; +} + +/* Items in a template group */ +.manager_group_item +{ + background: #364D6F; + color: #AABBD3; +} + +/*=====================================================================*\ +|| ################################################################### +|| # $HeadURL$ +|| # $Id$ +|| ################################################################### +\*=====================================================================*/ \ No newline at end of file diff --git a/printer.php b/printer.php index 0a873ec..76b6b90 100644 --- a/printer.php +++ b/printer.php @@ -52,6 +52,12 @@ class Printer */ var $realm = '[UNDEFINED REALM]'; + /** + * CSS to place in the page + * @var string + */ + var $css = ''; + /** * Constructor */ @@ -141,7 +147,8 @@ EOD; echo "\n"; echo "\n\t$title"; echo "\n\t"; - echo "\n\t" . (($extra) ? "\n$extra" : ''); + echo $this->css; + echo ($extra ? "\n$extra" : ''); echo "\n\n\n"; if (!defined('HIDE_SETUP') AND function_exists('_printer_page_start')) @@ -157,6 +164,29 @@ EOD; } } + /** + * Links CSS to the page from a given relative path + * + * @param string Relative path to the CSS file + */ + function css_link($path) + { + $this->css .= "\n\t"; + } + + /** + * Imbeds actual CSS information into the page in "; + } + /** * Places raw HTML code directly into the documet at the current position * -- 2.43.5