Search:

# CWIS Developers Documentation

- Main Page
- Classes
- Files

- Search for |

- File List
- File Members

# CheckboxFormField.php

Go to the documentation of this file.

    00001 <?PHP
    00002
    00008 class CheckboxFormField extends FormField {
    00009
    00010     # ---- PUBLIC INTERFACE --------------------------------------------------
    00011
    00017     function CheckboxFormField($Name, $Label)
    00018     {
    00019         $this->FormField($Name, FALSE, $Label, NULL, NULL);
    00020     }
    00021
    00027     function PrintField($DisplayErrorIndicator = FALSE)
    00028     {
    00029         $this->PrintInput($DisplayErrorIndicator);
    00030         $this->PrintLabel($DisplayErrorIndicator);
    00031     }
    00032
    00038     function PrintInput($DisplayErrorIndicator = FALSE)
    00039     {
    00040         print("<input type=\"checkbox\""
    00041                 ." name=\"".$this->MyName."\""
    00042                 ." id=\"".$this->MyName."\""
    00043                 .($this->MyValue ? " checked" : "")
    00044                 .">\n");
    00045     }
    00046
    00047
    00048     # ---- PRIVATE INTERFACE -------------------------------------------------
    00049
    00050 }
    00051
    00052 ?>