$xml .= add_XML_value("warning", $Project->GetNumberOfWarningBuilds($start, gmdate(FMT_DATETIME))); $xml .= "</project>"; } // Go through the jobs if ($CDASH_MANAGE_CLIENTS) { $ClientJobSchedule = new ClientJobSchedule(); $userJobSchedules = $ClientJobSchedule->getAll($userid, 1000); foreach ($userJobSchedules as $scheduleid) { $ClientJobSchedule = new ClientJobSchedule(); $ClientJobSchedule->Id = $scheduleid; $projectid = $ClientJobSchedule->GetProjectId(); $Project = new Project(); $Project->Id = $projectid; $status = "Scheduled"; $lastrun = "NA"; $lastjobid = $ClientJobSchedule->GetLastJobId(); if ($lastjobid) { $ClientJob = new ClientJob(); $ClientJob->Id = $lastjobid; switch ($ClientJob->GetStatus()) { case CDASH_JOB_RUNNING: $status = "Running"; $ClientSite = new ClientSite(); $ClientSite->Id = $ClientJob->GetSite(); $status .= " (" . $ClientSite->GetName() . ")"; $lastrun = $ClientJob->GetStartDate(); break; case CDASH_JOB_FINISHED: $status = "Finished"; $ClientSite = new ClientSite(); $ClientSite->Id = $ClientJob->GetSite();