{
if (strpos($action, "?"))
$action .= "&" . SID;
- else
+ else
$action .= "?" . SID;
- }
+ }
if ($multi)
- echo "<form enctype='multipart/form-data' method='post' action='$action' $name>\n";
+ echo "<form enctype='multipart/form-data' method='post' action='$action' $name>\n";
else
- echo "<form method='post' action='$action' $name>\n";
+ echo "<form method='post' action='$action' $name>\n";
}
if ($extra != "")
echo " $extra";
echo " cellpadding=$padding cellspacing=$spacing>\n";
-}
+}
function end_table($breaks=0)
{
global $Ajax;
echo "<meta http-equiv='Refresh' content='0; url=$forward_to?$params'>\n";
echo "<center><br>" . _("You should automatically be forwarded.");
- echo " " . _("If this does not happen") . " " . "<a href='$forward_to'>" . _("click here") . "</a> " . _("to continue") . ".<br><br>\n";
+ echo " " . _("If this does not happen") . " " . "<a href='$forward_to'>" . _("click here") . "</a> " . _("to continue") . ".<br><br></center>\n";
$Ajax->redirect($forward_to.'?'.$params);
exit;
}
echo "<a href='javascript:goBack();'>"._("Back")."</a>\n";
if ($center)
echo "</center>";
- echo "<br>";
+ echo "<br>";
}
function hyperlink_no_params($target, $label, $center=true)
{
echo "<tr class='oddrow'>\n";
$k = 0;
- }
- else
+ }
+ else
{
echo "<tr class='evenrow'>\n";
$k++;
}
}
-function table_section_title($msg)
+function table_section_title($msg)
{
echo "<tr><td colspan=2 class='tableheader'>$msg</td><tr>\n";
}
-function table_header($labels)
+function table_header($labels)
{
start_row();
foreach ($labels as $label)
labelheader_cell($label);
- end_row();
+ end_row();
}
-function edit_link_cell($param)
+function edit_link_cell($param)
{
label_cell("<a href='" . $_SERVER['PHP_SELF']. "?" . "$param'>" . _("Edit") . "</a>", "nowrap");
}
//-----------------------------------------------------------------------------------
-function start_row($param="")
+function start_row($param="")
{
if ($param != "")
echo "<tr $param>\n";
- else
+ else
echo "<tr>\n";
}
-function end_row()
+function end_row()
{
echo "</tr>\n";
-}
+}
function br($num=1)
{
{
global $ajax_divs, $Ajax;
- if (count($ajax_divs)) {
- $id = array_pop($ajax_divs);
- $Ajax->addUpdate($id, $id, ob_get_flush());
- echo "</div>";
+ if (count($ajax_divs))
+ {
+ $id = array_pop($ajax_divs);
+ $Ajax->addUpdate($id, $id, ob_get_flush());
+ echo "</div>";
}
}
?>
\ No newline at end of file