| Line |   | 
|---|
| 1 | <?php
 | 
|---|
| 2 | 
 | 
|---|
| 3 | include_once(dirname(__FILE__).'/Base.php');
 | 
|---|
| 4 | 
 | 
|---|
| 5 | class TypeInteger extends TypeBase
 | 
|---|
| 6 | {
 | 
|---|
| 7 |   var $DatabaseCompareOperators = array('Rovno' => '=', 'Nerovno' => '!=', 'Menší' => '<', 'Větší' => '>');
 | 
|---|
| 8 | 
 | 
|---|
| 9 |   function OnView($Item)
 | 
|---|
| 10 |   {
 | 
|---|
| 11 |     $Output = $Item['Value'];
 | 
|---|
| 12 |     return($Output);
 | 
|---|
| 13 |   }
 | 
|---|
| 14 | 
 | 
|---|
| 15 |   function OnEdit($Item)
 | 
|---|
| 16 |   {
 | 
|---|
| 17 |     $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'"/>';
 | 
|---|
| 18 |     return($Output);
 | 
|---|
| 19 |   }
 | 
|---|
| 20 | 
 | 
|---|
| 21 |   function OnLoad($Item)
 | 
|---|
| 22 |   {
 | 
|---|
| 23 |     return($_POST[$Item['Name']]);
 | 
|---|
| 24 |   }
 | 
|---|
| 25 | }
 | 
|---|
| 26 | 
 | 
|---|
| 27 | ?>
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.