if (countPostSelection() > 0) {
// Something has been selected, so start displaying one by one
$SW = 2; $OUT = '';
- foreach (postRequestElement('sel') as $id=>$sel) {
+ foreach (postRequestElement('sel') as $id => $sel) {
// Is this selected?
if ($sel == 1) {
// Load this network's data
$networkData['network_request_type']
);
- // Add row template and switch color
+ // Add row template for editing
$OUT .= loadTemplate('admin_edit_networks_row', true, $networkData);
} elseif (isPostRequestElementSet('del')) {
// Translate the request type
$networkData['network_request_type'] = getMessage('ADMIN_NETWORK_REQUEST_TYPE_' . $networkData['network_request_type']);
- // Add row template and switch color
+ // Add row template for deleting
$OUT .= loadTemplate('admin_del_networks_row', true, $networkData);
} else {
// Problem!
debug_report_bug('Cannot detect edit/del.');
}
+
+ // Switch colors
$SW = 3 - $SW;
} // END - if
} // END - if
$networkData = array();
// Transfer whole array, except 'sel'
- foreach (postRequestArray() as $key=>$entry) {
+ foreach (postRequestArray() as $key => $entry) {
// Skip 'sel' and submit button
if (in_array($key, array('sel', 'change'))) continue;