/////////////////////////////////////////////////////////////////////////////
// File: documents.php
// Desc: Displays the current documents we have for Abstract Designs
// Author: John Martinez-Capolino
// Version: 1.0
// Date: 03-14-2003
//
// Revision: 1.0 - 03-14-2003
// Initial Version
//
/////////////////////////////////////////////////////////////////////////////
//
// Name: ReadInPageData
// Desc: Reads in the data file that describes the function of this page.
//
function ReadInPageData()
{
// Storage of the data from the data file.
global $pageData;
global $lineCount;
if( !file_exists( "docdefinition.data" ) )
{
readfile( "fileerror.html" );
exit();
}
// Read in the data.
$pageData = file( "docdefinition.data" );
// Remove the newlines at the end of the data.
for( $i = 0; $i < count( $pageData ); $i++ )
{
$pageData[$i] = trim( $pageData[$i] );
}
$lineCount = count($pageData);
}
ReadInPageData();
//---------------------------------------------------------------------------
?>
Abstract Designs - Documents
|
|
$line = 0;
while( $line < $lineCount )
{
?>
|
|
print( trim( "$pageData[$line]" ) );
$line++;
$numDocs = trim( "$pageData[$line]" );
settype( $pageCount, "integer" );
$line++;
?>
|
|
|
|
|
}
?>