$device['device_id'], 'app_type' => $app), 'applications'); } } if ($updated) { print_message("Applications updated!"); } else { print_message("No changes."); } } } # Show list of apps with checkboxes $apps_enabled = dbFetchRows("SELECT * from `applications` WHERE `device_id` = ? ORDER BY app_type", array($device['device_id'])); if (safe_count($apps_enabled)) { foreach ($apps_enabled as $application) { $app_enabled[] = $application['app_type']; } ?>
'Applications', 'header-border' => TRUE)); ?> "); //echo(" '); //echo(" "); echo(" "); echo(" "); $row++; } } ?>
Enable Application
"); $item = array( 'id' => 'app_' . $app, 'type' => 'switch-ng', 'off-text' => 'Yes', 'off-color' => 'success', 'on-color' => 'danger', 'on-text' => 'No', 'size' => 'mini', //'height' => '15px', //'title' => 'Show/Hide Removed', //'placeholder' => 'Removed', 'readonly' => $readonly, //'disabled' => TRUE, //'submit_by_key' => TRUE, 'value' => 1 ); echo(''.generate_form_element($item).'". nicecase($app) . "