$url = "{$TBDOCBASE}/showslicepub.php?publicid=" . $slice->publicid(); $rows[] = array("Public URL" => "<a href='{$url}'>http:// ...</a>"); } if ($manifest = $slice->GetManifest()) { $popups[] = GeneratePopupDiv("manifest{$manifestidx}", $manifest); $rows[] = array("manifest" => "<a href='#' title='' " . "onclick='PopUpWindowFromDiv(\"manifest{$manifestidx}\");'" . ">manifest</a>\n"); $manifestidx++; } $experiment = Experiment::LookupByUUID($slice->uuid()); if ($experiment) { $eid = $experiment->eid(); $exptidx = $experiment->idx(); $url = CreateURL("showexp", $experiment); $rows[] = array("Experiment" => "<a href='{$url}'>{$eid} ({$exptidx})</a>"); } $geniuser = GeniUser::Lookup($showtype, $slice->creator_uuid()); if ($geniuser) { $rows[] = array("Creator" => $geniuser->urn()); } else { $user = User::LookupByUUID($slice->creator_uuid()); if ($user) { $url = CreateURL("showuser", $user); $rows[] = array("Creator" => "<a href='{$url}'>" . $user->uid() . "</a>"); } } if ($showtype != "sa") { $saslice = GeniSlice::Lookup("sa", $slice->uuid()); if ($saslice) { $saidx = $saslice->idx(); $url = CreateURL("showslice", "slice_idx", $saidx, "showtype", "sa"); $rows[] = array("SA Slice" => "<a href='{$url}'>{$saidx}</a>");
$urn = $slice->urn(); if ($urn) { $rows[] = array("urn" => $slice->urn()); } $rows[] = array("uuid" => $slice->uuid()); $rows[] = array("created" => $slice->created()); $rows[] = array("expires" => $slice->expires()); if ($slice->locked()) { $rows[] = array("locked" => $slice->locked()); } if ($manifest = $slice->GetManifest()) { $popups[] = GeneratePopupDiv("manifest{$manifestidx}", $manifest); $rows[] = array("manifest" => "<a href='#' title='' " . "onclick='PopUpWindowFromDiv(\"manifest{$manifestidx}\");'" . ">manifest</a>\n"); $manifestidx++; } $geniuser = GeniUser::Lookup("cm", $slice->creator_uuid()); if ($geniuser) { $rows[] = array("Creator" => $geniuser->urn()); } else { $user = User::LookupByUUID($slice->creator_uuid()); if ($user) { $rows[] = array("Creator" => $user->uid()); } } list($html, $button) = TableRender($table, $rows); echo $html; foreach ($popups as $i => $popup) { echo "{$popup}\n"; } # # Find all logs associated with this slice.