Changeset 1048
- Timestamp:
- 04/20/09 23:24:15 (14 years ago)
- Location:
- plugins/myForms/trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/myForms/trunk/TplFields.php
r962 r1048 22 22 $core->tpl->addValue('myformsFileFieldValue',array('MyFormsTplFields','FileFieldValue')); 23 23 $core->tpl->addBlock('myformsFieldWarning',array('MyFormsTplFields','FieldWarning')); 24 $core->tpl->addBlock('myformsFieldMatches',array('MyFormsTplFields','FieldMatches')); 24 25 $core->tpl->addBlock('myformsTextField',array('MyFormsTplFields','TextField')); 25 26 $core->tpl->addBlock('myformsTextArea',array('MyFormsTplFields','TextArea')); … … 73 74 { 74 75 return '<?php if( !MyForms::validateField("'.$attr['name'].'","'.$attr['validate'].'") ) { ?>'.$content.'<?php } ?>'; 76 } 77 78 // Field Matching 79 public static function FieldMatches($attr,$content) 80 { 81 return '<?php if( MyForms::matchField("'.$attr['name'].'","'.$attr['pattern'].'") ) { ?>'.$content.'<?php } ?>'; 75 82 } 76 83 -
plugins/myForms/trunk/_define.php
r962 r1048 23 23 /* Description*/ "Create a custom form page with custom action (save in db, send email, ...)", 24 24 /* Author */ "Olivier Azeau", 25 /* Version */ '0.3 ',25 /* Version */ '0.3a', 26 26 /* Permissions */ null 27 27 ); -
plugins/myForms/trunk/_public.php
r798 r1048 122 122 } 123 123 124 public static function matchField($fieldName,$pattern) { 125 global $_REQUEST; 126 return preg_match('#'.$pattern.'#', @$_REQUEST["myforms"][$fieldName]); 127 } 128 124 129 public static function checkQueryMatches($queryFilter) 125 130 {
Note: See TracChangeset
for help on using the changeset viewer.