} $which = $type == "cm" ? "Component Manager" : ($type == "sa" ? "Slice Authority" : "Clearing House"); if (!$slicelist || !count($slicelist)) { continue; } # The form attributes: $table = array('#id' => $type, '#title' => $which, '#sortable' => 1, '#headings' => array("idx" => "ID", "hrn" => "HRN", "created" => "Created", "expires" => "Expires")); $rows = array(); foreach ($slicelist as $slice) { $slice_idx = $slice->idx(); $slice_hrn = $slice->hrn(); $created = $slice->created(); $expires = $slice->expires(); $url = CreateURL("showslice", "showtype", $type, "slice_idx", $slice_idx); $href = "<a href='{$url}'>{$slice_hrn}</a>"; $experiment = Experiment::LookupByUUID($slice->uuid()); if ($experiment) { $eid = $experiment->eid(); $expurl = CreateURL("showexp", $experiment); $href = "{$href} (<a href='{$expurl}'>{$eid}</a>)"; } $rows[$slice_idx] = array("idx" => $slice_idx, "hrn" => $href, "created" => $created, "expires" => $expires); } list($html, $button) = TableRender($table, $rows); echo $html; } # # Standard Testbed Footer # PAGEFOOTER(); ?>