\n";
}
//--------------------------------------------------------------------------------------------------
function alt_table_row_color(&$k)
{
if ($k == 1)
{
echo "
\n";
$k = 0;
}
else
{
echo "
\n";
$k++;
}
}
function table_section_title($msg)
{
echo "
$msg
\n";
}
function table_header($labels)
{
start_row();
foreach ($labels as $label)
labelheader_cell($label);
end_row();
}
function edit_link_cell($param, $title=false)
{
label_cell("" . _("Edit") . "", "nowrap");
}
function delete_link_cell($param, $title=false)
{
label_cell("" . _("Delete") . "", "nowrap");
}
function edit_button_cell($name, $value, $title=false)
{
// php silently changes dots,spaces,'[' and characters 128-159
// to underscore in POST names, to maintain compatibility with register_globals
label_cell("'=2E',' '=>'=20','='=>'=3D','['=>'=5B')))
."\" value=\"$value\""
.($title ? " title='$title'":'')." />\n");
}
//-----------------------------------------------------------------------------------
function start_row($param="")
{
if ($param != "")
echo "
\n";
else
echo "
\n";
}
function end_row()
{
echo "
\n";
}
function br($num=1)
{
for ($i = 0; $i < $num; $i++)
echo " ";
}
$ajax_divs = array();
function div_start($id='', $trigger=null, $non_ajax=false)
{
global $ajax_divs;
if ($non_ajax) { // div for non-ajax elements
array_push($ajax_divs, array($id, null));
echo "