File: demo.en.php

Recommend this page to a friend!
  Classes of Pierre FAUQUE  >  Tobacco Class  >  demo.en.php  >  Download  
File: demo.en.php
Role: Example script
Content type: text/plain
Description: Example (English)
Class: Tobacco Class
Display and evaluate tobacco tests
Author: By
Last change: Convertion into utf-8 encoded file
Date: 3 years ago
Size: 939 bytes
 

Contents

Class file image Download
<?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>&nbsp;</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>


For more information send a message to info at phpclasses dot org.