admin_member_form_common_part.php 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <tr class="swpm-admin-edit-membership-level">
  2. <th scope="row"><label for="membership_level"><?php echo SwpmUtils::_('Membership Level'); ?></label></th>
  3. <td><select class="regular-text" name="membership_level" id="membership_level">
  4. <?php foreach ($levels as $level): ?>
  5. <option <?php echo ($level['id'] == $membership_level) ? "selected='selected'" : ""; ?> value="<?php echo $level['id']; ?>"> <?php echo $level['alias'] ?></option>
  6. <?php endforeach; ?>
  7. </select>
  8. </td>
  9. </tr>
  10. <tr class="swpm-admin-edit-access-starts">
  11. <th scope="row"><label for="subscription_starts"><?php echo SwpmUtils::_('Access Starts') ?> </label></th>
  12. <td><input class="regular-text" name="subscription_starts" type="text" id="subscription_starts" value="<?php echo esc_attr($subscription_starts); ?>" /></td>
  13. </tr>
  14. <tr class="swpm-admin-edit-first-name">
  15. <th scope="row"><label for="first_name"><?php echo SwpmUtils::_('First Name') ?> </label></th>
  16. <td><input class="regular-text" name="first_name" type="text" id="first_name" value="<?php echo esc_attr($first_name); ?>" /></td>
  17. </tr>
  18. <tr class="swpm-admin-edit-last-name">
  19. <th scope="row"><label for="last_name"><?php echo SwpmUtils::_('Last Name') ?> </label></th>
  20. <td><input class="regular-text" name="last_name" type="text" id="last_name" value="<?php echo esc_attr($last_name); ?>" /></td>
  21. </tr>
  22. <tr class="swpm-admin-edit-gender">
  23. <th scope="row"><label for="gender"><?php echo SwpmUtils::_('Gender'); ?></label></th>
  24. <td><select class="regular-text" name="gender" id="gender">
  25. <?php echo SwpmUtils::gender_dropdown($gender) ?>
  26. </select>
  27. </td>
  28. </tr>
  29. <tr class="swpm-admin-edit-phone">
  30. <th scope="row"><label for="phone"><?php echo SwpmUtils::_('Phone') ?> </label></th>
  31. <td><input class="regular-text" name="phone" type="text" id="phone" value="<?php echo esc_attr($phone); ?>" /></td>
  32. </tr>
  33. <tr class="swpm-admin-edit-address-street">
  34. <th scope="row"><label for="address_street"><?php echo SwpmUtils::_('Street') ?> </label></th>
  35. <td><input class="regular-text" name="address_street" type="text" id="address_street" value="<?php echo esc_attr($address_street); ?>" /></td>
  36. </tr>
  37. <tr class="swpm-admin-edit-address-city">
  38. <th scope="row"><label for="address_city"><?php echo SwpmUtils::_('City') ?> </label></th>
  39. <td><input class="regular-text" name="address_city" type="text" id="address_city" value="<?php echo esc_attr($address_city); ?>" /></td>
  40. </tr>
  41. <tr class="swpm-admin-edit-address-state">
  42. <th scope="row"><label for="address_state"><?php echo SwpmUtils::_('State') ?> </label></th>
  43. <td><input class="regular-text" name="address_state" type="text" id="address_state" value="<?php echo esc_attr($address_state); ?>" /></td>
  44. </tr>
  45. <tr class="swpm-admin-edit-address-zipcode">
  46. <th scope="row"><label for="address_zipcode"><?php echo SwpmUtils::_('Zipcode') ?> </label></th>
  47. <td><input class="regular-text" name="address_zipcode" type="text" id="address_zipcode" value="<?php echo esc_attr($address_zipcode); ?>" /></td>
  48. </tr>
  49. <tr class="swpm-admin-edit-address-country">
  50. <th scope="row"><label for="country"><?php echo SwpmUtils::_('Country') ?> </label></th>
  51. <td><select class="regular-text" id="country" name="country"><?php echo SwpmMiscUtils::get_countries_dropdown($country) ?></select></td>
  52. </tr>
  53. <tr class="swpm-admin-edit-company">
  54. <th scope="row"><label for="company_name"><?php echo SwpmUtils::_('Company') ?></label></th>
  55. <td><input name="company_name" type="text" id="company_name" class="regular-text" value="<?php echo esc_attr($company_name); ?>" /></td>
  56. </tr>
  57. <tr class="swpm-admin-edit-birth-place">
  58. <th scope="row"><label for="birth_place"><?php echo SwpmUtils::_('Birth Place') ?> </label></th>
  59. <td><input class="regular-text" name="birth_place" type="text" id="birth_place" value="<?php echo esc_attr($birth_place); ?>" /></td>
  60. </tr>
  61. <tr class="swpm-admin-edit-birth-date">
  62. <th scope="row"><label for="birth_date"><?php echo SwpmUtils::_('Birth Date') ?> </label></th>
  63. <td><input name="birth_date" type="date" id="birth_date" value="<?php echo esc_attr($birth_date); ?>" /></td>
  64. </tr>
  65. <tr class="swpm-admin-edit-member-since">
  66. <th scope="row"><label for="member_since"><?php echo SwpmUtils::_('Member Since') ?> </label></th>
  67. <td><input class="regular-text" name="member_since" type="text" id="member_since" value="<?php echo esc_attr($member_since); ?>" /></td>
  68. </tr>