";
return (eor ($rstring, $return));
}
function html_form_input ($type = NULL, $name = NULL, $value = NULL, $maxlength = NULL, $size = NULL, $checked = NULL, $string = HTML_FORM_INPUT_STRING, $return = 0)
{
if ($type != NULL && $type)
{
if ($type == "checkbox")
{
$value = string_encode ($value, 1);
}
$type = "type=$type";
}
if ($name != NULL && $name)
$name = "name=\"$name\"";
if ($value != NULL && $value)
{
$value = "value=\"$value\"";
}
if (is_int ($maxlength) && $maxlength >= 0)
$maxlength = "maxlength=$maxlength";
if (is_int ($size) && $size >= 0)
$size = "size=$size";
if ($checked != NULL && $checked)
$checked = "checked";
$rstring = "";
return (eor ($rstring, $return));
}
function html_form_textarea ($name = NULL, $rows = NULL, $cols = NULL, $value = NULL, $string = HTML_FORM_TEXTAREA_STRING, $return = 0)
{
if ($name != NULL && $name)
$name = "name=\"$name\"";
if (is_int ($rows) && $rows >= 0)
$rows = "rows=$rows";
if (is_int ($cols) && $cols >= 0)
$cols = "cols=$cols";
$rstring = "";
return (eor ($rstring, $return));
}
function html_form_select_begin ($name = NULL, $return = 0)
{
if ($name != NULL && $name)
$name = "name=$name";
$rstring = "";
return (eor ($rstring, $return));
}
function html_form_option ($value = NULL, $selected = NULL, $return = 0)
{
if ($selected != NULL && $selected)
$selected = "selected";
$rstring = "";
return (eor ($rstring, $return));
}
function html_form_end ($return = 0)
{
$rstring = '';
return (eor ($rstring, $return));
}
function html_nbsp ($times = 1, $return = 0)
{
if ($times == NULL)
$times = 1;
for ($i = 0; $i != $times; $i++)
{
if ($return)
$rstring .= " ";
else
echo " ";
}
if ($return)
return ($rstring);
}
function html ($string, $times = 1, $return = 0)
{
for ($i = 0; $i != $times; $i++)
{
if ($return)
$rstring .= $string;
else
echo $string;
}
if ($return)
return ($rstring);
}
function html_break ($break, $string = "", $return = 0)
{
if ($break == 1)
$break = '
';
if ($break == 2)
$break = '
'; if ($break == 5) $break = '