Example #1
0
				</tr>
				<?php 
    mysql_data_seek($rsCustomFields, 0);
    while ($rowCustomField = mysql_fetch_array($rsCustomFields, MYSQL_BOTH)) {
        extract($rowCustomField);
        if ($aSecurityType[$custom_FieldSec] == 'bAll' or $_SESSION[$aSecurityType[$custom_FieldSec]]) {
            echo "<tr><td class=\"LabelColumn\">" . $custom_Name . "</td><td class=\"TextColumn\">";
            if (array_key_exists($custom_Field, $aCustomData)) {
                $currentFieldData = trim($aCustomData[$custom_Field]);
            } else {
                $currentFieldData = "";
            }
            if ($type_ID == 11) {
                $custom_Special = $sPhoneCountry;
            }
            formCustomField($type_ID, $custom_Field, $currentFieldData, $custom_Special, !isset($_POST["PersonSubmit"]));
            if (isset($aCustomErrors[$custom_Field])) {
                echo "<span style=\"color: red; \">" . $aCustomErrors[$custom_Field] . "</span>";
            }
            echo "</td></tr>";
        }
    }
    ?>
			</table>
			</td>
		<?php 
}
?>

	<tr>
		<td>&nbsp;</td>
Example #2
0
    while ($rowCustomField = mysql_fetch_array($rsCustomFields, MYSQL_BOTH)) {
        extract($rowCustomField);
        if ($aSecurityType[$fam_custom_FieldSec] == 'bAll' or $_SESSION[$aSecurityType[$fam_custom_FieldSec]]) {
            ?>
			<div class="row">
				<div class="form-group col-xs-5">
				<label><?php 
            echo $fam_custom_Name;
            ?>
 </label>
				<?php 
            $currentFieldData = trim($aCustomData[$fam_custom_Field]);
            if ($type_ID == 11) {
                $fam_custom_Special = $sCountry;
            }
            formCustomField($type_ID, $fam_custom_Field, $currentFieldData, $fam_custom_Special, !isset($_POST["FamilySubmit"]));
            echo "<span style=\"color: red; \">" . $aCustomErrors[$fam_custom_Field] . "</span>";
            echo "</div></div>";
        }
    }
    ?>
		</div>
	</div>
	<?php 
}
?>
	<div class="box box-info clearfix">
		<div class="box-header">
			<h3 class="box-title"><?php 
echo gettext("Family Members");
?>
        extract($rowPropList);
        ?>
		<tr>
			<td class="LabelColumn"><?php 
        echo $prop_Name;
        ?>
</td>
			<td class="TextColumn">

			<?php 
        $currentFieldData = trim($aPersonProps[$prop_Field]);
        if ($type_ID == 11) {
            $prop_Special = $sPhoneCountry;
        }
        // ugh.. an argument with special cases!
        formCustomField($type_ID, $prop_Field, $currentFieldData, $prop_Special, !isset($_POST["GroupPropSubmit"]));
        echo "<span style=\"color: red; \">" . $aPropErrors[$prop_Field] . "</span>";
        ?>
</td>

			<td class="TextColumn"><?php 
        echo $prop_Description;
        ?>
</td>
		</tr>
	<?php 
    }
    ?>

		<tr>
			<td align="center" colspan="3">