<?php
/*
+------------------------------------------------------
| Write2Left
| (c) timdorr
| http://www.write2left.com
| hide@address.com
| See License.txt for license info
|------------------------------------------------------
| Script: Config.php
| Description:
| Contains part of the interface's skin's default output parts
| Created Jul-01-2002
+------------------------------------------------------
*/
/* Class: Skin_Config
* Description:
* The generic skin parts class.
*/
class Skin_Config
{
function body_top()
{
return <<<EOF
<td class="main" valign="top">
<big><b>Weblog Configuration</b></big>
<br /><br />
EOF;
}
function group_top()
{
return '<table><tr><td width="75" valign="top"><table cellpadding="6">';
}
function group_item( $name )
{
return <<<EOF
<tr><td>
<a href="?Action=Config&Group=$name">$name</a>
</td></tr>
EOF;
}
function group_hilight_item( $name )
{
return <<<EOF
<tr><td class="menu" align="center">$name</td></tr>
EOF;
}
function group_bottom()
{
return '</table></td>';
}
function options_top( $name )
{
return <<<EOF
<td>
<form action="?Action=Config&M=save&Group=$name" method="Post">
<table>
EOF;
}
function option_input_item( $title, $desc, $name, $value )
{
return <<<EOF
<tr>
<td width="35%"><b>$title:</b><br /><small>$desc</small></td>
<td valign="middle"><input type="text" name="$name" size="50" value="$value" /></td>
</tr>
EOF;
}
function option_other_item( $title, $desc, $input )
{
return <<<EOF
<tr>
<td width="35%"><b>$title:</b><br /><small>$desc</small></td>
<td valign="middle">$input</td>
</tr>
EOF;
}
function options_bottom( $keys )
{
return <<<EOF
</table>
<br />
<input type="hidden" name="keys" value="$keys" />
<input type="submit" value="Save Options" />
</form>
</td></tr></table>
EOF;
}
function body_bottom()
{
return <<<EOF
</td>
<td class="space"> </td>
</tr>
EOF;
}
}
?>