Changeset 19 for types/Hyperlink.php
- Timestamp:
- Oct 22, 2008, 9:12:20 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
types/Hyperlink.php
r11 r19 1 1 <?php 2 2 3 function TypeHyperlinkOnView($Item) 3 class TypeHyperlink 4 4 { 5 $Output = '<a href="'.$Item['Value'].'">'.$Item['Value'].'</a>'; 6 return($Output); 5 function OnView($Item) 6 { 7 $Output = '<a href="'.$Item['Value'].'">'.$Item['Value'].'</a>'; 8 return($Output); 9 } 10 11 function OnEdit($Item) 12 { 13 $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'">'; 14 return($Output); 15 } 16 17 function OnLoad($Item) 18 { 19 return($_POST[$Item['Name']]); 20 } 7 21 } 8 22 9 function TypeHyperlinkOnEdit($Item) 10 { 11 $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'">'; 12 return($Output); 13 } 14 15 function TypeHyperlinkOnLoad($Item) 16 { 17 return($_POST[$Item['Name']]); 18 } 23 $TypeDefinitionList['Hyperlink'] = new TypeHyperlink; 19 24 20 25 ?>
Note:
See TracChangeset
for help on using the changeset viewer.