051ace63 by Kevin Burton

updates to the user admin, add the company type, and remove the phone limitation.

1 parent 03a6e094
......@@ -220,6 +220,10 @@ class ProfileValidation extends Common\Validation {
update_user_meta($_POST['uid'], __FUNCTION__, $val);
}
public function company_type($val) {
update_user_meta($_POST['uid'], __FUNCTION__, $val);
}
public function description($val) {
update_user_meta($_POST['uid'], __FUNCTION__, User\clean_string($val));
}
......
......@@ -170,6 +170,10 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true);
<td><input type="text" name="company" value="<?php echo get_user_meta($_GET['uid'], 'company', true);?>" /></td>
</tr>
<tr class="work-only">
<th>Company Type:</th>
<td><?php echo HTML\form_dropdown('company_type', HTML\Vars::$company_types, get_user_meta($_GET['uid'], 'company_type', true), "id='company_type'"); ?></td>
</tr>
<tr class="work-only">
<th>Title:</th>
<td><input type="text" name="title" value="<?php echo get_user_meta($_GET['uid'], 'title', true);?>" /></td>
</tr>
......@@ -238,7 +242,7 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true);
<script src="<?php echo Tools\url('../');?>"></script>
<script>
jQuery(function($) {
$('input[rel="mask-phone"]').mask("999-999-9999");
//$('input[rel="mask-phone"]').mask("999-999-9999");
$('input[rel="mask-birthdate"]').mask("9999-99-99");
/*
update_listing_preference();
......