. require_once("../inc/util_ops.inc"); function show_assign($asgn) { $when = time_str($asgn->create_time); switch ($asgn->target_type) { case 0: $x = "All hosts"; break; case 1: $x = "id>Host $asgn->target_id"; break; case 2: if ($asgn->multi) { $y = "All hosts belonging to "; } else { $y = "One host belonging to "; } $x = "$ytarget_id>Host $asgn->target_id"; break; case 3: if ($asgn->multi) { $y = "All hosts belonging to "; } else { $y = "One host belonging to "; } $x = "$ytarget_id>Team $asgn->target_id"; break; } echo "