source:
Base/Types/Hidden.php
      
      | Last change on this file was 1, checked in by , 16 years ago | |
|---|---|
| File size: 395 bytes | |
| Line | |
|---|---|
| 1 | <?php | 
| 2 | |
| 3 | include_once(dirname(__FILE__).'/Base.php'); | 
| 4 | |
| 5 | class TypeHidden extends TypeBase | 
| 6 | { | 
| 7 | function OnView($Item) | 
| 8 | { | 
| 9 | $Output = $Item['Value']; | 
| 10 | return($Output); | 
| 11 | } | 
| 12 | |
| 13 | function OnEdit($Item) | 
| 14 | { | 
| 15 | $Output = '<input type="hidden" name="'.$Item['Name'].'" value="'.$Item['Value'].'" />'; | 
| 16 | return($Output); | 
| 17 | } | 
| 18 | |
| 19 | function OnLoad($Item) | 
| 20 | { | 
| 21 | return($_POST[$Item['Name']]); | 
| 22 | } | 
| 23 | } | 
| 24 | |
| 25 | ?> | 
  Note:
 See   TracBrowser
 for help on using the repository browser.
    ![(please configure the [header_logo] section in trac.ini)](/WebSystem/chrome/site/your_project_logo.png)