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";
25 //---------------------------------------------------------------------------------
27 function end_form($breaks=0)
31 echo "<input type=\"hidden\" name=\"_focus\" value=\"".$_POST['_focus']."\">\n";
35 function start_table($extra="", $padding='2', $spacing='0')
37 echo "<center><table";
40 echo " cellpadding=$padding cellspacing=$spacing>\n";
43 function end_table($breaks=0)
45 echo "</table></center>\n";
50 function meta_forward($forward_to, $params="")
52 echo "<meta http-equiv='Refresh' content='0; url=$forward_to?$params'>\n";
53 echo "<center><br>" . _("You should automatically be forwarded.");
54 echo " " . _("If this does not happen") . " " . "<a href='$forward_to'>" . _("click here") . "</a> " . _("to continue") . ".<br><br>\n";
58 //-----------------------------------------------------------------------------------
60 function hyperlink_back($center=true)
62 echo get_js_go_back();
66 echo "<a href='javascript:goBack();'>"._("Back")."</a>\n";
72 function hyperlink_no_params($target, $label, $center=true)
76 echo "<a href='$target?=" . SID . "'>$label</a>\n";
81 function hyperlink_no_params_td($target, $label)
84 hyperlink_no_params($target, $label);
88 //-----------------------------------------------------------------------------------
90 function hyperlink_params($target, $label, $params, $center=true)
94 echo "<a href='$target?$params'>$label</a>\n";
99 function hyperlink_params_td($target, $label, $params)
102 hyperlink_params($target, $label, $params);
106 //-----------------------------------------------------------------------------------
108 function hyperlink_params_separate($target, $label, $params, $center=false)
112 echo "<a target='_blank' href='$target?$params" . SID . "'>$label</a>\n";
117 function hyperlink_params_separate_td($target, $label, $params)
120 hyperlink_params_separate($target, $label, $params);
124 //--------------------------------------------------------------------------------------------------
126 function alt_table_row_color(&$k)
130 echo "<tr class='oddrow'>\n";
135 echo "<tr class='evenrow'>\n";
140 function table_section_title($msg)
142 echo "<tr><td colspan=2 class='tableheader'>$msg</td><tr>\n";
145 function table_header($labels)
148 foreach ($labels as $label)
149 labelheader_cell($label);
153 function edit_link_cell($param)
155 label_cell("<a href='" . $_SERVER['PHP_SELF']. "?" . "$param'>" . _("Edit") . "</a>", "nowrap");
158 function delete_link_cell($param)
160 label_cell("<a href='" . $_SERVER['PHP_SELF']. "?" . "$param'>" . _("Delete") . "</a>", "nowrap");
163 function edit_button_cell($name, $value)
165 label_cell("<input type=\"submit\" class=\"editbutton\" name=\"$name\" value=\"$value\" />\n");
168 //-----------------------------------------------------------------------------------
170 function start_row($param="")
173 echo "<tr $param>\n";
185 for ($i = 0; $i < $num; $i++)