Location: PHPKode > projects > Informium > informium/admin/stylesheet.php
<?

//
// Copyright (c) 2002, Cameron McKay
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions 
// are met:

// * Redistributions of source code must retain the above copyright 
//   notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright 
//   notice, this list of conditions and the following disclaimer in the 
//   documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 
// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
// OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//

//
// Informium -- Advanced News Script
//
// Stylesheet (stylesheet.php)
//
// Author: Cameron McKay
// Note:   Used to keep the look of Informium uniform as easily and
//         as cleanly as possible (with as little effort).
//

$font_family  = 'Verdana, Helvetica, Arial, Sans-serif';
$font[small]  = '8pt';
$font[medium] = '10pt';
$font[large]  = '12pt';

$colour[border]      = '#000000';

$colour[header_back] = '#00204E';
$colour[header_text] = '#FFFFFF';

$colour[normal_back] = '#00204E';
$colour[normal_text] = '#FFFFFF';

//
// Function: e ( $variable )
//
// Purpose:  A quick and easy way of saying echo().
//
// Returns:  Nothing.
//

function e($variable)
{
	// Echo the variable.
	echo $variable;
}

?>

<style>

body  { font-family: <? e($font_family); ?>; font-size: <? e($font[medium]); ?>; } 
td    { font-family: <? e($font_family); ?>; font-size: <? e($font[medium]); ?>; }
pre   { font-family: monospace;              font-size: <? e($font[medium]); ?>; }        

.small  { font-family: <? e($font_family); ?>; font-size: <? e($font[small]);  ?>; }
.medium { font-family: <? e($font_family); ?>; font-size: <? e($font[medium]); ?>; }
.large  { font-family: <? e($font_family); ?>; font-size: <? e($font[large]);  ?>; }
                                                    
.header {
	background-color: <? e($colour[header_back]); ?>;
	color:            <? e($colour[header_text]); ?>;
	font-weight:      bold; 
}                                                  
                                                   
.normal { 
	background-color: <? e($colour[normal_back]); ?>;
	color:            <? e($colour[normal_text]); ?>;
}

input {
	font-family:      <? e($font_family); ?>;
	font-size:        <? e($font[medium]); ?>;
	background-color: #EEEEEE;
	border-color:     #808080;
	border-style:     solid;
}

input.checkbox {
	font-family:      <? e($font_family); ?>;
	font-size:        <? e($font[medium]); ?>;
	background-color: <? e($colour[normal_back]); ?>;
}

select {
	font-family:      <? e($font_family); ?>;
	font-size:        <? e($font[medium]); ?>;
	background-color: #EEEEEE;
	border-color:     #808080;
	border-style:     solid;
}

textarea {
	font-family:      <? e($font_family); ?>;
	font-size:        <? e($font[medium]); ?>;
	background-color: #EEEEEE;
	border-color:     #808080;
	border-style:     solid;
}

a {
	text-decoration:  none;
	font-style:       none;
	font-weight:      bold;
}

a:hover {
	text-decoration:  none;
	font-style:       none;
	color:            #ADD8E6;
}

</style>
Return current item: Informium