PHP Classes

File: mixer_example.php

Recommend this page to a friend!
  Classes of juergen kaucher  >  mixer  >  mixer_example.php  >  Download  
File: mixer_example.php
Role: Example script
Content type: text/plain
Description: example of mixer.class.php
Class: mixer
color mixer for vga (16/120/216 colors)
Author: By
Last change: small table is now possible
Date: 20 years ago
Size: 573 bytes
 

Contents

Class file image Download
<?php
include('mixer.class.php');
if (!
$value) {
    print(
"<form action=".$PHP_SELF." method=post><select name=value>\n");
    print(
"<option value=16>16 colors\n");
    print(
"<option value=216>216 colors\n");
    print(
"<option value=120>120 colors\n");
    print(
"</select><br>");
    print(
"<input type=checkbox name=small value=true checked>small table<br>");
    print(
"<input type=submit value=submit></form>");
} else {
    if (
$small==true) {
       
$mixer = new Mixer();
       
$mixer->Small_table($value);
    } else {
       
$mixer = new Mixer();
       
$mixer->Big_table($value);
    }
}
?>