<?php
require("class.tobacco.en.php");
$tests = new tobacco('FDH');
?><!DOCTYPE html>
<head>
<title>Tobacco tests</title>
<meta charset="UTF-8">
<?php
$tests->styles();
$tests->write_js();
?>
</head>
<body>
<?php
if(!$_POST['submit']) {
echo "<form method='post' name='tobacco' action='".$_SERVER['PHP_SELF']."' onsubmit='return verif()'>\n";
$tests->display();
echo "</form>\n"; }
else {
$tests->evaluate();
// $tests->showresults();
}
?>
<p> </p>
<?php
if($tests->horn and $_POST['submit']) {
echo "<p class='p'>In the smoker profile, if some reasons are underlined (10 points or more),<br/>";
echo "they indicate those which really encourage you to smoke. The others also<br/>";
echo "contribute to it but it will be less difficult for you to control them.</p>\n";
echo "<p class='p'>Never forget: you can get help from hospitals or from your doctor.</p>\n";
}
?>
</body>
</html>
|