echo isset($_POST["last_name"]) ? "checked" : ""; ?> /> </td> </tr> <tr> <td>Phone</td> <td> <input type='checkbox' name='phone' value='1' <?php echo isset($_POST["phone"]) ? "checked" : ""; ?> /> </td> </tr> <?php $customFields = MM_CustomField::getCustomFieldsList(); if (count($customFields) > 0) { foreach ($customFields as $id => $displayName) { $customField = new MM_CustomField($id); if ($customField->isValid()) { ?> <tr> <td><?php echo $customField->getDisplayName(); ?> </td> <td> <input type='checkbox' name='custom_field_<?php echo $id; ?> ' value='1' <?php
</table> <p class="mm-myaccount-dialog-section-header">Change Password</p> <table> <tr> <td><span class="mm-myaccount-dialog-label">New Password</span></td> <td><input name="mm_new_password" id="mm_new_password" type="password" class="mm-myaccount-form-field" value=""/></td> </tr> <tr> <td><span class="mm-myaccount-dialog-label">Confirm Password</span></td> <td><input name="mm_new_password_confirm" id="mm_new_password_confirm" type="password" class="mm-myaccount-form-field" value=""/></td> </tr> </table> <?php $fields = MM_CustomField::getCustomFieldsList(true); if (count($fields) > 0) { ?> <p class="mm-myaccount-dialog-section-header">Additional Information</p> <table> <?php foreach ($fields as $id => $displayName) { $customField = new MM_CustomField($id); $value = $user->getCustomDataByFieldId($id)->getValue(); if ($customField->isValid()) { ?> <tr> <td> <span class="mm-myaccount-dialog-label"><?php echo $customField->getDisplayName(); ?>
?> <tr> <td>Custom Field 1</td> <td> <select id="mm-member-custom-field" onchange="mmjs.changeCustomField('mm-member-custom-field');"> <option value=''>None</option> <?php echo MM_HtmlUtils::getCustomFields(null, false); ?> </select> <br /> <input type='text' id='mm-member-custom-field-value' value='' style='width: 200px;display:none' /> </td> </tr> <?php if (count(MM_CustomField::getCustomFieldsList(false, false)) > 1) { ?> <tr> <td>Custom Field 2</td> <td> <select id="mm-member-custom-field2" onchange="mmjs.changeCustomField('mm-member-custom-field2');"> <option value=''>None</option> <?php echo MM_HtmlUtils::getCustomFields(null, false); ?> </select> <br /> <input type='text' id='mm-member-custom-field2-value' value='' style='width: 200px;display:none' /> </td> </tr> <?php