<?php
/*
+------------------------------------------------------
| Write2Left
| (c) timdorr
| http://www.write2left.com
| hide@address.com
| See License.txt for license info
|------------------------------------------------------
| Script: Options.php
| Description:
| Contains part of the interface's skin's default output parts
| Created Dec-05-2002
+------------------------------------------------------
*/
/* Class: Skin_Options
* Description:
* The generic skin parts class.
*/
class Skin_Options
{
function body_top()
{
return <<<EOF
<td class="main" valign="top">
<big><b>Write2Left Options</b></big>
<br /><br />
EOF;
}
function group_top()
{
return <<<EOF
<form action="?Action=Options&M=save" method="Post">
<table>
EOF;
}
function group_item( $name )
{
return <<<EOF
<tr><td class="menu" align="center" width="75" >$name</td>
EOF;
}
function group_bottom( $keys )
{
return <<<EOF
</table>
<br />
<input type="hidden" name="keys" value="$keys" />
<input type="submit" value="Save Options" />
</form>
EOF;
}
function options_top()
{
return <<<EOF
<td>
<table>
EOF;
}
function option_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 options_bottom()
{
return <<<EOF
</table>
<br />
</td></tr>
EOF;
}
function body_bottom()
{
return <<<EOF
</td>
<td class="space"> </td>
</tr>
EOF;
}
}
?>