@@ -660,6 +660,12 @@ protected function ProcessField($num, &$field, $id)
660
660
{
661
661
// Do nothing if type is not specified.
662
662
}
663
+ else if ($ field ["type " ] == "hidden " )
664
+ {
665
+ ?>
666
+ <input type="hidden" id="<?php echo htmlspecialchars ($ id ); ?> " name="<?php echo htmlspecialchars ($ field ["name " ]); ?> " value="<?php echo htmlspecialchars ($ field ["value " ]); ?> " />
667
+ <?php
668
+ }
663
669
else if (isset ($ this ->state ["customfieldtypes " ][$ field ["type " ]]))
664
670
{
665
671
// Output custom fields.
@@ -743,19 +749,11 @@ protected function ProcessField($num, &$field, $id)
743
749
break ;
744
750
}
745
751
case "text " :
746
- {
747
- ?>
748
- <div class="formitemdata">
749
- <div class="textitemwrap"<?php if (isset ($ field ["width " ])) echo " style= \"" . ($ this ->state ["responsive " ] ? "max- " : "" ) . "width: " . htmlspecialchars ($ field ["width " ]) . "; \"" ; ?> ><input class="text" type="text" id="<?php echo htmlspecialchars ($ id ); ?> " name="<?php echo htmlspecialchars ($ field ["name " ]); ?> " value="<?php echo htmlspecialchars ($ field ["value " ]); ?> "<?php if ($ this ->state ["autofocused " ] === $ id ) echo " autofocus " ; ?> /></div>
750
- </div>
751
- <?php
752
- break ;
753
- }
754
752
case "password " :
755
753
{
756
754
?>
757
755
<div class="formitemdata">
758
- <div class="textitemwrap"<?php if (isset ($ field ["width " ])) echo " style= \"" . ($ this ->state ["responsive " ] ? "max- " : "" ) . "width: " . htmlspecialchars ($ field ["width " ]) . "; \"" ; ?> ><input class="text" type="password " id="<?php echo htmlspecialchars ($ id ); ?> " name="<?php echo htmlspecialchars ($ field ["name " ]); ?> " value="<?php echo htmlspecialchars ($ field ["value " ]); ?> "<?php if ($ this ->state ["autofocused " ] === $ id ) echo " autofocus " ; ?> /></div>
756
+ <div class="textitemwrap"<?php if (isset ($ field ["width " ])) echo " style= \"" . ($ this ->state ["responsive " ] ? "max- " : "" ) . "width: " . htmlspecialchars ($ field ["width " ]) . "; \"" ; ?> ><input class="text" type="<?php echo htmlspecialchars ( isset ( $ field [ " subtype " ]) ? $ field [ " subtype " ] : $ field [ " type " ]); ?> " id="<?php echo htmlspecialchars ($ id ); ?> " name="<?php echo htmlspecialchars ($ field ["name " ]); ?> " value="<?php echo htmlspecialchars ($ field ["value " ]); ?> "<?php if ($ this ->state ["autofocused " ] === $ id ) echo " autofocus " ; ?> /></div>
759
757
</div>
760
758
<?php
761
759
break ;
@@ -1113,9 +1111,10 @@ protected function ProcessSubmit(&$options)
1113
1111
foreach ($ options ["submit " ] as $ name => $ val )
1114
1112
{
1115
1113
if (is_int ($ name ) && isset ($ options ["submitname " ])) $ name = $ options ["submitname " ];
1116
- ?>
1117
- <input class="submit" type="submit"<?php if ($ name !== "" ) echo " name= \"" . htmlspecialchars (isset ($ options ["hashnames " ]) && $ options ["hashnames " ] ? $ this ->GetHashedFieldName ($ name ) : $ name ) . "\"" ; ?> value="<?php echo htmlspecialchars (self ::FFTranslate ($ val )); ?> " />
1118
- <?php
1114
+
1115
+ echo "<input class= \"submit \" type= \"submit \"" ;
1116
+ if ($ name !== "" ) echo " name= \"" . htmlspecialchars (isset ($ options ["hashnames " ]) && $ options ["hashnames " ] ? $ this ->GetHashedFieldName ($ name ) : $ name ) . "\"" ;
1117
+ echo " value= \"" . htmlspecialchars (self ::FFTranslate ($ val )) . "\" /> " ;
1119
1118
}
1120
1119
?>
1121
1120
</div>
0 commit comments