| 
<html>
<head>
 <title>Offline Page Comparison Tool</title>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 <link rel="stylesheet" href="style.css">
 </head>
 
 <body>
 <?
 
 if ($HTTP_POST_VARS['submit'] == 'submit')
 {
 include("pageContent.php");
 $data = new getPageContents;
 
 $first_url = $HTTP_POST_VARS['first_url'];
 $second_url = $HTTP_POST_VARS['second_url'];
 
 $res = $data->pageCompare($first_url,$second_url);
 
 ?>
 <table class="Table_Border" align="center" width="70%">
 <tr class="approved">
 <td>
 <strong>First URL: </strong><?=$first_url?><br>
 <br><strong>Linear Similarity:</strong> <?=$res['linSim']?><br>
 <strong>Proportional Similarity:</strong> <?=$res['nonLinSim']?><br><br>
 <strong>Second URL: </strong><?=$second_url?>
 </td>
 </tr>
 </table>
 <?
 
 
 }
 
 ?>
 <br><br><br>
 <form action="page-compare-index.php" method="post">
 <table align="center" width="70%" class="Table_Border">
 <tr class="rejected">
 <td colspan="2" align="center" >
 <strong>Page Comparison Tool</strong>
 </td>
 </tr>
 
 <tr class="approve">
 <td>
 <strong>First URL:</strong>
 </td>
 <td>
 <input type="text" name="first_url" size="100">
 </td>
 </tr>
 <tr class="approve">
 <td height="4" colspan="2"> 
 
 </td>
 </tr>
 <tr class="approve">
 <td width="20%">
 <strong>Second URL:</strong>
 </td>
 <td>
 <input type="text" name="second_url" size="100">
 </td>
 </tr>
 
 <tr class="rejected">
 <td colspan="2" align="center">
 <input type="submit" name="submit" value="submit">
 </td>
 </tr>
 <tr class="rejected">
 <td height="4" colspan="2"> 
 
 </td>
 </tr>
 </table>
 </form>
 
 </body>
 </html>
 
 |