- list($code, $descr) = SQL_FETCHROW($result);
- SQL_FREERESULT($result);
-
- // Prepare data, load row template and switch colors
- $content = array(
- 'id' => $id,
- 'code' => $code,
- 'descr' => $descr,
- 'sw' => $SW,
- );
-
- if ($post == "modify") {
- // Generate default selection in edit-mode
- $content['status'] = ADD_OPTION_LINES("/ARRAY/", array("Y","N"), array(YES, NO ), $status);
- } else {
- // Only display status when in delete-mode
- $content['status'] = TRANSLATE_YESNO($status);
- }