metastorage/applications/metanews/templates/window.php - view - 1.3
<?php
/*
*
* @(#) $Id: window.php,v 1.3 2006/01/18 03:04:30 mlemos Exp $
*
*/
class template_window_class
{
var $title = '';
var $center = 0;
var $active = 1;
var $width = '';
var $height = '';
var $background_color = '';
var $active_bar_background_color = '#000000';
var $active_title_background_color = '#ffffff';
var $inactive_bar_background_color = '#808080';
var $inactive_title_background_color = '#c0c0c0';
Function Header()
{
if($this->active)
{
$bar_color = $this->active_bar_background_color;
$title_color = $this->active_title_background_color;
}
else
{
$bar_color = $this->inactive_bar_background_color;
$title_color = $this->inactive_title_background_color;
}
?>
<table style="border-width: 1px; border-style: solid; border-top-color: #ffffff; border-left-color: #ffffff; border-bottom-color: #808080; border-right-color: #808080<?php
if($this->center)
{
?>; margin-left: auto; margin-right: auto<?php
}
if(strlen($this->background_color))
{
?>; background-color: <?php
echo $this->background_color;
}
if(strlen($this->width))
{
?>; width: <?php
echo $this->width;
}
if(strlen($this->height))
{
?>; height: <?php
echo $this->height;
}
?>" cellpadding="2" cellspacing="1">
<tr>
<td style="border-style: none; background-color: <?php echo $bar_color; ?>; height: 1%;"><span style="color: <?php echo $title_color; ?>"><b><?php echo (strlen($this->title) ? $this->title : ' '); ?></b></span></td>
</tr>
<tr>
<td style="border-style: none; " valign="top">
<table style="width: 100%; height: 100%">
<tr>
<td>
<?php
}
Function Footer()
{
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php
}
};
?>
|