} echo "</data>"; break; case 'getdropdown': header("Cache-Control: no-store, no-cache, must-revalidate"); header("content-type: application/xml"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"; echo "<data>"; $whichddl = COM_applyFilter($_POST['whichdropdown'], true); $selected = COM_applyFilter($_POST['selected'], true); $ts = new nexTime(); switch ($whichddl) { case 1: $title = $LANG_NEXTIME_HEADER['nextime_activity_id']; $lid = $CONF_NEXTIME['nexlist_nextime_activities']; $list = $ts->getActivitiesDropDown(0); break; case 2: $title = $LANG_NEXTIME_HEADER['project_id']; $lid = $CONF_NEXTIME['nexlist_nextime_projects']; $list = $ts->getProjectDropDownFromActivityID($selected); break; case 3: $title = $LANG_NEXTIME_HEADER['task_id']; $lid = $CONF_NEXTIME['nexlist_timesheet_tasks']; $list = $ts->getTaskDropDownFromActivityID($selected); break; default: $title = $LANG_NEXTIME_HEADER['nextime_activity_id']; $lid = $CONF_NEXTIME['nexlist_nextime_activities']; break;