$OUT = '';
foreach (postRequestElement('sel') as $id => $value) {
// Load row template and switch colors
- $OUT .= loadTemplate('admin_delete_cats_row', true, $id);
+ $OUT .= loadTemplate('admin_delete_cats_row', TRUE, $id);
} // END - foreach
// Load main template
- loadTemplate('admin_delete_cats', false, $OUT);
+ loadTemplate('admin_delete_cats', FALSE, $OUT);
} elseif ((isFormSent('edit')) && (ifPostContainsSelections())) {
// Edit categories
$OUT = '';
$content['visible_selection'] = addSelectionBox('yn', $content['visible'], 'visible', $content['id']);
// Load row template and switch colors
- $OUT .= loadTemplate('admin_edit_cats_row', true, $content);
+ $OUT .= loadTemplate('admin_edit_cats_row', TRUE, $content);
} // END - foreach
// Load main template
- loadTemplate('admin_edit_cats', false, $OUT);
+ loadTemplate('admin_edit_cats', FALSE, $OUT);
} else {
// Init variable here
$CATS = '';
$CATS .= '<option value="' . $content['sort'] . '">' . $cat . '</option>';
// Load row template and switch color
- $OUT .= loadTemplate('admin_list_cats_row', true, $content);
+ $OUT .= loadTemplate('admin_list_cats_row', TRUE, $content);
} // END - while
// Free memory
SQL_FREERESULT($result);
// Load main template
- loadTemplate('admin_list_cats', false, $OUT);
+ loadTemplate('admin_list_cats', FALSE, $OUT);
} // END - if
// Remember in array
$content['cats'] = $CATS;
// Form to add a new category
- loadTemplate('admin_add_cat', false, $content);
+ loadTemplate('admin_add_cat', FALSE, $content);
}
// [EOF]