Location: PHPKode > projects > LDAP Navigator > ldapnavigator-0.9.6/modules/schema/objectclass.properties.php
<?

include_once( "./config.php" );

// load the schema object ($s)
include_once( "./modules/schema/loader.php" );	


$pageTitle = "$oc objectclass";

include_once( "./page.header.php" );


html::form( $PHP_SELF, "get" );

html::hidden( "A", $A );

?>
<style type="text/css">

div.ocdetail {
	margin-left: 2em;
	padding: 1em;
/*	overflow: auto; */
}

</style>

<?php
	
	
	
	
	$oclass = $s->objectclasses[strtolower($oc)];
	if( ! is_array( $oclass ) )
		ErrorPage(  "Error", "No such objectclasse : $oc" );


	FormStart( $pageTitle );

	FormLine( "Name",  $oclass['name'] );
	FormLine( "Type",  $oclass['type'] );
	FormLine( "Extends",  $oclass['superiorClass'] );

	$tmpstr = "";
	if( is_array( $oclass['requires'] ) ) {
		foreach( $oclass['requires'] as $attrname ) {
			$attrname = trim($attrname);
			$tmpstr .= "<a href=\"?A=attribute.info&atr=$attrname\">$attrname</a> (*)<br>\n";
		}
	}
	
	if( is_array( $oclass['allows'] ) ) {
		foreach( $oclass['allows'] as $attrname ) {
			$attrname = trim($attrname);
			$tmpstr .= "<a href=\"?A=attribute.info&atr=$attrname\">$attrname</a><br>\n";
		}
	}
	FormLine( "Attributes",  $tmpstr );
	
	// creates buttons...
	$wBack = new Button( "Back", "javascript:history.go(-1)", "backBtn" );
	$wAbList  = new Button( "Attributes list", "document.location='$PHP_SELF?A=attribute.list'", "abListBtn" );

	// ...and display buttons bar
	echo "<tr><td class=form colspan=2 align=right>",
            $wBack->toString(), "\n",
            $wAbList->toString(), "\n",
        "</td></tr>";
 

	echo "</table>";
	echo "(*) indicates attribute is mandatory";
	echo "</form>";
	
	include_once ("./page.footer.php");

?>
Return current item: LDAP Navigator