Exemplo n.º 1
0
                    }
                    ?>
						<td height="20" width="80" nowrap="nowrap" class="altLeft">&nbsp;[ <a href="dependency.php?id=<?php 
                    echo $_GET['id'];
                    ?>
&section=targets&request=delete&target_id=<?php 
                    echo $target->getId();
                    ?>
" onClick="javascript:return confirmDelete();">Delete</a> ]</td>
						<td height="20" class="altRight"><?php 
                    switch ($target->getType()) {
                        case 'host':
                            print "<strong>Host:</strong> " . $target->getNagiosHost()->getName();
                            break;
                        case 'hostgroup':
                            print "<strong>Hostgroup:</strong> " . $target->getNagiosHostgroup()->getName();
                            break;
                        case 'service':
                            print "<strong>Service:</strong> " . $target->getNagiosHost()->getName() . " - " . $target->getNagiosService()->getDescription();
                            break;
                    }
                    ?>
						
						</tr>
						<?php 
                    $counter++;
                }
            }
            ?>
				</table>
				<br />