Location: PHPKode > projects > DOOR - Digital Open Object Repository > door/admin/node_info.php
<?php
    // include libraries
    require_once("../setup.php");
    
if($logged_in != 1) { //not logged
    error_catcher(1);
    exit;
}
else{
    // check for parameters
    if(!isset($_GET['id'])){
        @ob_clean();
        error_catcher(44);
        exit;
    }
    
    //istanzia l'oggetto
    $id = $_GET['id'];
    $nod = nodeinfo($id);
    if($nod->father!=0){
	    $temp = nodeinfo($nod->father);
	    $avo = $temp->name;
    }else{
	    $avo ="";
    }

    if($nod!=false || $temp!=false){
?>
        <div id="content_area">
            <p class="pagetitle"><?php echo get_string('object', 'Node'); ?>: <?php echo $nod->name ?></p>
            <table cellspacing="10" width="100%">
                <tr>
                    <td class="formfield" width="25%"><?php echo get_string('object', 'NodeFather'); ?></td><td class="txt"><A HREF="<?php print($_SERVER['PHP_SELF']."?action=node_info&id=".$nod->father); ?>"><?php echo $avo ?></A></td>
                </tr>
                <tr>
                    <td class="formfield"><?php echo get_string('object', 'NodeObjects'); ?></td>
                    <td class="txt">
                    <?php 
                        if(isset($nod->obj)){
	                        if (is_array($nod->obj)) {
		                        while(list($key, $name) = each($nod->obj)){
			                        print("<A HREF=".$_SERVER['PHP_SELF']."?action=object_info&id=".$key.">".$name."</A><br>");
		                        }
	                        }
                        }else{ 
	                        echo get_string('object', 'NodeObjectsEmpty');
                        }
                    ?>
                    </td>
                </tr>
            </table>
        </div>
<?php 
		} 
	}
?>
Return current item: DOOR - Digital Open Object Repository