3 //---------------------------------------------------------------------------------
5 function start_form($multi=false, $sid=false, $action="", $name="")
8 $name = "name='$name'";
10 $action = $_SERVER['PHP_SELF'];
13 if (strpos($action, "?"))
19 echo "<form enctype='multipart/form-data' method='post' action='$action' $name>\n";
21 echo "<form method='post' action='$action' $name>\n";
24 //---------------------------------------------------------------------------------
26 function end_form($breaks=0)
33 function start_table($extra="", $padding='2', $spacing='0')
35 echo "<center><table";
38 echo " cellpadding=$padding cellspacing=$spacing>\n";
41 function end_table($breaks=0)
43 echo "</table></center>\n";
48 function meta_forward($forward_to, $params="")
50 echo "<meta http-equiv='Refresh' content='0; url=$forward_to?$params'>\n";
51 echo "<center><br>" . _("You should automatically be forwarded.");
52 echo " " . _("If this does not happen") . " " . "<a href='$forward_to'>" . _("click here") . "</a> " . _("to continue") . ".<br><br>\n";
56 //-----------------------------------------------------------------------------------
58 function hyperlink_back($center=true)
60 echo get_js_go_back();
64 echo "<a href='javascript:goBack();'>"._("Back")."</a>\n";
70 function hyperlink_no_params($target, $label, $center=true)
74 echo "<a href='$target?=" . SID . "'>$label</a>\n";
79 function hyperlink_no_params_td($target, $label)
82 hyperlink_no_params($target, $label);
86 //-----------------------------------------------------------------------------------
88 function hyperlink_params($target, $label, $params, $center=true)
92 echo "<a href='$target?$params'>$label</a>\n";
97 function hyperlink_params_td($target, $label, $params)
100 hyperlink_params($target, $label, $params);
104 //-----------------------------------------------------------------------------------
106 function hyperlink_params_separate($target, $label, $params, $center=false)
110 echo "<a target='_blank' href='$target?$params" . SID . "'>$label</a>\n";
115 function hyperlink_params_separate_td($target, $label, $params)
118 hyperlink_params_separate($target, $label, $params);
122 //--------------------------------------------------------------------------------------------------
124 function alt_table_row_color(&$k)
128 echo "<tr class='oddrow'>\n";
133 echo "<tr class='evenrow'>\n";
138 function table_section_title($msg)
140 echo "<tr><td colspan=2 class='tableheader'>$msg</td><tr>\n";
143 function table_header($labels)
146 foreach ($labels as $label)
147 labelheader_cell($label);
151 function edit_link_cell($param)
153 label_cell("<a href='" . $_SERVER['PHP_SELF']. "?" . "$param'>" . _("Edit") . "</a>", "nowrap");
156 function delete_link_cell($param)
158 label_cell("<a href='" . $_SERVER['PHP_SELF']. "?" . "$param'>" . _("Delete") . "</a>", "nowrap");
161 //-----------------------------------------------------------------------------------
163 function start_row($param="")
166 echo "<tr $param>\n";
178 for ($i = 0; $i < $num; $i++)