source: trunk/Common/Types/Hidden.php@ 484

Last change on this file since 484 was 484, checked in by chronos, 12 years ago
  • Přidáno: Formulářový typ RandomHash pro zajištění funkčnosti generování vlastnosti Salt pro generování hesel.
  • Opraveno: Změna hesla uživatele nyní funguje správně i přes obecnou Správu dat.
File size: 498 bytes
Line 
1<?php
2
3include_once(dirname(__FILE__).'/Base.php');
4
5class TypeHidden extends TypeBase
6{
7 function __construct($System)
8 {
9 parent::__construct($System);
10 $this->Hidden = true;
11 }
12
13 function OnView($Item)
14 {
15 $Output = $Item['Value'];
16 return($Output);
17 }
18
19 function OnEdit($Item)
20 {
21 $Output = '<input type="hidden" name="'.$Item['Name'].'" value="'.$Item['Value'].'" />';
22 return($Output);
23 }
24
25 function OnLoad($Item)
26 {
27 return($_POST[$Item['Name']]);
28 }
29}
30
31?>
Note: See TracBrowser for help on using the repository browser.