-function get_tab_title($tab)
-{
- global $tabs, $names;
- for ($i = 0; $i < count($tabs); $i++)
- {
- if ($tabs[$i] == $tab)
- return $names[$i];
- }
- return "";
-}
-
-function tab_list_row($label, $name, $selected)
-{
- global $tabs, $names;
- echo "<tr>\n";
- if ($label != null)
- echo "<td>$label</td>\n";
- if ($selected == null)
- $selected = (!isset($_POST[$name]) ? "orders" : $_POST[$name]);
- echo "<td><select name='$name'>";
- for ($i = 0; $i < count($tabs); $i++)
- {
- if ($selected == $tabs[$i])
- echo "<option selected value='".$tabs[$i]."'>" . $names[$i]. "</option>\n";
- else
- echo "<option value='".$tabs[$i]."'>" . $names[$i]. "</option>\n";
- }
- echo "</select></td>\n";
- echo "</tr>\n";
-}
-
-//---------------------------------------------------------------------------------------------
-