{
global $payment_person_types;
- return array_selector($name, $selected_id, $payment_person_types,
+ $items = array();
+ foreach ($payment_person_types as $key=>$type)
+ {
+ if ($key != PT_WORKORDER)
+ $items[$key] = $type;
+ }
+ return array_selector($name, $selected_id, $items,
array( 'select_submit'=> $submit_on_change ) );
}
function systypes_list_cells($label, $name, $value=null, $submit_on_change=false)
{
global $systypes_array;
+
+ if ($label != null)
+ echo "<td>$label</td>\n";
+ echo "<td>";
$str = array_selector($name, $value, $systypes_array,
array(
echo "</td></tr>\n";
}
+//---------------------------------------------------------------------------------------------
+// List of sets of active extensions
+//
+function extset_list($name, $value=null, $submit_on_change=false)
+{
+ global $db_connections;
+
+ $items = array();
+ foreach ($db_connections as $comp)
+ $items[] = sprintf(_("Activated for '%s'"), $comp['name']);
+ array_selector( $name, $value, $items,
+ array(
+ 'spec_option'=> _("Installed on system"),
+ 'spec_id' => -1,
+ 'select_submit'=> $submit_on_change,
+ 'async' => true
+ ));
+}
?>
\ No newline at end of file