function html_form_begin ($action, $method = "post", $enctype = NULL, $string = HTML_FORM_BEGIN_STRING, $return = 0)
{
global $phpgw;
global $sep;
$action = string_encode ($action, 1);
$action = $sep . $action;
$action = $phpgw->link ($action);
if ($method != NULL && $method)
$method = "method=$method";
if ($enctype != NULL && $enctype)
$enctype = "enctype=$enctype";
$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 = '
';
return (eor ($break . $string, $return));
}
function html_page_begin ($title = NULL, $return = 0)
{
// $rstring = HTML_PAGE_BEGIN_BEFORE_TITLE . $title . HTML_PAGE_BEGIN_AFTER_TITLE;
return (eor ($rstring, $return));
}
function html_page_body_begin ($bgcolor = HTML_PAGE_BODY_COLOR, $background = NULL, $text = NULL, $link = NULL, $vlink = NULL, $alink = NULL, $string = HTML_PAGE_BODY_STRING, $return = 0)
{
if ($bgcolor != NULL && $bgcolor)
$bgcolor = "bgcolor=$bgcolor";
if ($background != NULL && $background)
$background = "background=$background";
if ($text != NULL && $text)
$text = "text=$text";
if ($link != NULL && $link)
$link = "link=$link";
if ($vlink != NULL && $vlink)
$vlink = "vlink=$vlink";
if ($alink != NULL && $alink)
$alink = "alink=$alink";
// $rstring = "";
return (eor ($rstring, $return));
}
function html_page_body_end ($return = 0)
{
// $rstring = "";
return (eor ($rstring, $return));
}
function html_page_end ($return = 0)
{
// $rstring = "