xpath('computer'); echo ''; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; foreach ($array as &$value) { $slave = $value->displayName; $idle = $value->idle; $slave_url = getSlaveUrl($slave); $status = getSlaveStatus($slave); if ($status == "online" and $idle == "true") { $status = "online / idle"; $color = "#C8D6C3"; } else if ($status == "online") $color = "#BEFAAA"; else $color = "#FAAAAB"; $job_name = ""; $job_url = ""; $job_scenario = ""; if ($status == 'online') { $job_params = getJJob($slave); $job_name = $job_params['name']; $job_url = $job_params['url']; $job_scenario = $job_params['scenario']; } echo ""; echo ""; echo ""; echo ""; echo ""; } echo ''; echo '
Slave nameStatusCurrent build
".$slave."".$status."".$job_name."
'; ?>