(* mandatory)   


This donation tracker site deployment is no longer active.
"; echo '

'; echo '
This service provided by Blacktie
'; echo '

'; exit; } ?> action('','post','','frmrequest'); $sql = "SELECT * FROM `donation_form` WHERE STATUS =1 ORDER BY fieldgroup ASC";//echo $sql; $res = $mysqli->query($sql) or die("error2"); $groupold = ''; $group = 0; while($row = $res->fetch_array()) { $groupnew = $row['fieldgroup']; if($groupnew != $groupold){ echo ''; } if($groupnew != $groupold){ if($row['fieldgroup'] ==1) $legendName = 'Organization Details'; if($row['fieldgroup'] ==2) $legendName = 'Personal Details'; if($row['fieldgroup'] ==3) $legendName = 'Event Details'; if($row['fieldgroup'] ==4) $legendName = 'Mailing Address'; if($row['fieldgroup'] ==5){ $legendName = ''; $legendClass = ''; }{ $legendClass = 'classlegend'; } echo $form->fieldset($legendName,$legendClass); } if($row['mandatory'] == 1) $mandatory = '*'; else $mandatory = ''; switch ($row['type']) { case "text": if($row['maxLength'] != '') $maxLength = $row['maxLength']; else $maxLength = ''; if($row['name'] == 'state'){ echo '
'; } else{ $form_value = (isset($_POST[$row['name']]) ? $_POST[$row['name']] : ''); echo "
";echo $form->text($row['name'],$form_value,20,$maxLength,'',$row['CssClassID'],'',$row['lable'].': ', $row['js']); } echo $mandatory. " ".$row['defaultText'].""; break; case "textarea": $form_value = (isset($_POST[$row['name']]) ? $_POST[$row['name']] : ''); echo "
";echo $form->textarea($row['name'],$form_value,20,5,'',$row['CssClassID'],$row['lable'],$row['lable'],$row['lable'].': ', $row['js']); echo $mandatory; break; case "file": $form_value = (isset($_POST[$row['name']]) ? $_POST[$row['name']] : ''); echo "
";echo $form->file($row['name'],$form_value,$row['CssClassID'],'',$row['lable'].': '); echo $mandatory. " ".$row['defaultText'].""; break; case "radio": if($row['optionText']){echo '
"; } echo $form->radio($row['name'],$row['values'],$row['checked'],$row['CssClassID'],$row['optionText'] ,$row['lable'], $row['js']);echo ""; echo $mandatory; break; case "checkbox": $form_value = (isset($_POST[$row['name']]) ? $_POST[$row['name']] : ''); echo "
";echo $form->checkbox($row['name'],$form_value,$row['checked'],$row['CssClassID'],'',$row['lable'], $row['js']); echo $mandatory; break; case "select": echo "
";echo $form->select($row['name'],$row['CssClassID'],$row['lable'], $row['js']); //echo $form->option('gif','GIF Image','selected'); echo $mandatory; break; case "hidden": $form_value = (isset($_POST[$row['name']]) ? $_POST[$row['name']] : ''); echo "
";echo $form->hidden($row['name'],$form_value); echo "
";echo $form->hidden('siteid',$siteid); break; } $groupold = $row['fieldgroup']; } echo '
'; echo $form->hidden('storeid', $storeid); echo $form->submit('submit','Submit Form','','','Click here to send info!'); echo '

'; echo '
This service provided by Blacktie
'; echo '

'; echo '
'; ?>