Пример #1
0
}
?>
					<a href="download.php?id=<?php 
print $aRes["id"];
?>
">Download</a>
					<a href="delete.php?id=<?php 
print $aRes["id"];
?>
">Delete</a>
				</td>
			</tr>
		</table>
		<h2>Preview...</h2>
<?php 
for ($i = 0; $i < $aRes["pages"]; ++$i) {
    printf('<img src="thumb.php?id=%d&width=300&page=%d" title="%s"/>', $_GET["id"], $i + 1, "Page " . $i + 1);
}
if ($bDebug) {
    $objDM = new DataMining();
    print "<hr/><h3>Debug information</h3>\n";
    $sText = $objDb->GetRawText($_GET["id"]);
    printf('<pre style="border: 2px inset">%s</pre>', $sText);
    printf('<h4>Date when trying to deduce</h4><br/><pre>');
    print $objDM->GuessOriginalDate($sText, $aRes["added"], TRUE);
    print "</pre>\n";
}
?>
	</body>
</html>