';
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)
{
$text = ' ';
if ($type != NULL && $type)
{
if ($type == 'checkbox')
{
$value = string_encode ($value, 1);
}
$text .= 'type="'.$type.'" ';
}
if ($name != NULL && $name)
{
$text .= 'name="'.$name.'" ';
}
if ($value != NULL && $value)
{
$text .= 'value="'.$value.'" ';
}
if (is_int ($maxlength) && $maxlength >= 0)
{
$text .= 'maxlength="'.$maxlength.'" ';
}
if (is_int ($size) && $size >= 0)
{
$text .= 'size="'.$size.'" ';
}
if ($checked != NULL && $checked)
{
$text .= '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)
{
$text =' ';
if ($name != NULL && $name)
{
$text .= 'name="'.$name.'" ';
}
if (is_int ($rows) && $rows >= 0)
{
$text .= 'rows="'.$rows.'" ';
}
if (is_int ($cols) && $cols >= 0)
{
$text .= 'cols="'.$cols.'" ';
}
$rstring = '';
return (eor ($rstring, $return));
}
function html_form_select_begin ($name = NULL, $return = 0)
{
$text = ' ';
if ($name != NULL && $name)
{
$text .= 'name="'.$name.'" ';
}
$rstring = '';
return (eor ($rstring, $return));
}
function html_form_option ($value = NULL, $displayed = NULL, $selected = NULL, $return = 0)
{
$text = ' ';
if ($value != NULL && $value)
{
$text .= ' value="'.$value.'" ';
}
if ($selected != NULL && $selected)
{
$text .= ' 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)
{
switch($break)
{
case 1:
$break_str = '
';
break;
case 2:
$break_str = '
'; break; case 5: $break_str = '