<?php

#
#   FILE:  SPT--ImportDataExecute.html
#
#   FUNCTIONS PROVIDED:
#       None
#
#   FUNCTIONS EXPECTED:
#       None
#
#   Part of the Scout Portal Toolkit
#   Copyright 2001 Internet Scout Project
#   http://scout.cs.wisc.edu
#

?>
<table cellspacing="3" cellpadding="3" border="0" bgcolor="#FFFFFF" align="center">
    <tr>
    
<?PHP PrintDebugInfo(); ?>

<?PHP if($ImportComplete == 1) { ?>

        <td colspan="2" class="colorHeader"><h1>Import Completed Successfully</h1></td>

<?PHP } else { ?> 

        <td colspan="2" class="colorHeader"><h1>Importing Data</h1></td>

<?PHP } ?>

    </tr>
	<tr class="lightBody">
		<td valign="top">
       <h1>     
       <span class="Message"><?PHP echo $TotalLineCount-1; ?> Lines Read.</span><br>
       <span class="Message"><?PHP echo $ResourceCount; ?> Resources Added.</span><br>
       <span class="Message"><?PHP echo $ControlledNameCount; ?> ControlledNames Added.</span><br>
       <span class="Message"><?PHP echo $ClassificationCount; ?> Classifications Added.</span><br>
        </h1>  
		</td>
	</tr>
</table>
<?PHP if($ImportComplete == 0) { ?>

    <table cellspacing="3" cellpadding="3" border="0" bgcolor="#FFFFFF" align="center">
        <tr>
            <td>
                <form name="importdata" method="post" action="index.php?P=ImportDataExecute">
                    <input type="submit" name="Submit" value="Cancel">
                </form>
            </td>
        </tr>
    </table>

<?PHP
}
else
{
?>
    <table cellspacing="3" cellpadding="3" border="0" bgcolor="#FFFFFF" align="center">
        <tr>
            <td>
                <b>Both the search and recommender databases must be rebuilt so that searching and the recommender system will work correctly with the new resources.
                </b>
            </td>
        </tr>
    </table>                

<?PHP
}
?>
