source: trunk/types/Text.php

Last change on this file was 38, checked in by george, 15 years ago
  • Přidáno: Typy Color pro výběr barvy a Text pro psaní obsáhlejších textů.
  • Opraveno: Ukládání položek do jiných databází než v které je systém.
File size: 535 bytes
Line 
1<?php
2
3class TypeText extends TypeBase
4{
5 var $DatabaseCompareOperators = array('Jako' => 'LIKE', 'Rovno' => '=', 'Nerovno' => '!=');
6
7 function OnView($Item)
8 {
9 $Output = $Item['Value'];
10 return($Output);
11 }
12
13 function OnEdit($Item)
14 {
15 $Output = '<textarea cols="50" rows="20" name="'.$Item['Name'].'">'.$Item['Value'].'</textarea>';
16 return($Output);
17 }
18
19 function OnLoad($Item)
20 {
21 return($_POST[$Item['Name']]);
22 }
23
24 function DatabaseEscape($Value)
25 {
26 return('"'.addslashes($Value).'"');
27 }
28}
29
30?>
Note: See TracBrowser for help on using the repository browser.