0e4f15c4 by Kevin Burton

merged 229 into tag

1 parent 3afb664f
...@@ -488,7 +488,7 @@ input.dp-applied { ...@@ -488,7 +488,7 @@ input.dp-applied {
488 .cbv-report-list tbody td { text-align:left; font-size: 11px; word-wrap: normal; padding: 3px 5px; } 488 .cbv-report-list tbody td { text-align:left; font-size: 11px; word-wrap: normal; padding: 3px 5px; }
489 .cbv-report-list tbody tr.odd td { background-color: #f5f5f5; } 489 .cbv-report-list tbody tr.odd td { background-color: #f5f5f5; }
490 .cbv-report-list thead th { background-color: #e1e1e1;border-bottom:1px solid #e8e8e8; } 490 .cbv-report-list thead th { background-color: #e1e1e1;border-bottom:1px solid #e8e8e8; }
491 .cbv-report-list tbody td { border-bottom:1px solid #e8e8e8; min-width: 120px;} 491 .cbv-report-list tbody td { border-bottom:1px solid #e8e8e8; min-width: 120px; background-color:#fff;}
492 492
493 #user-list-from { display: block; } 493 #user-list-from { display: block; }
494 494
......
1 <?php 1 <?php
2 namespace Tz\WordPress\Tools\MySQLTable; 2 namespace Tz\WordPress\Tools\MySQLTable;
3 3
4 function array2table($arr,$width) 4 function array2table($arr,$width = "100%")
5 { 5 {
6 $count = count($arr); 6 $count = count($arr);
7 if($count > 0){ 7 if($count > 0){
......
...@@ -219,6 +219,10 @@ class ProfileValidation extends Common\Validation { ...@@ -219,6 +219,10 @@ class ProfileValidation extends Common\Validation {
219 public function degrees($val) { 219 public function degrees($val) {
220 update_user_meta($_POST['uid'], __FUNCTION__, $val); 220 update_user_meta($_POST['uid'], __FUNCTION__, $val);
221 } 221 }
222
223 public function company_type($val) {
224 update_user_meta($_POST['uid'], __FUNCTION__, $val);
225 }
222 226
223 public function description($val) { 227 public function description($val) {
224 update_user_meta($_POST['uid'], __FUNCTION__, User\clean_string($val)); 228 update_user_meta($_POST['uid'], __FUNCTION__, User\clean_string($val));
......
...@@ -170,6 +170,10 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true); ...@@ -170,6 +170,10 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true);
170 <td><input type="text" name="company" value="<?php echo get_user_meta($_GET['uid'], 'company', true);?>" /></td> 170 <td><input type="text" name="company" value="<?php echo get_user_meta($_GET['uid'], 'company', true);?>" /></td>
171 </tr> 171 </tr>
172 <tr class="work-only"> 172 <tr class="work-only">
173 <th>Company Type:</th>
174 <td><?php echo HTML\form_dropdown('company_type', HTML\Vars::$company_types, get_user_meta($_GET['uid'], 'company_type', true), "id='company_type'"); ?></td>
175 </tr>
176 <tr class="work-only">
173 <th>Title:</th> 177 <th>Title:</th>
174 <td><input type="text" name="title" value="<?php echo get_user_meta($_GET['uid'], 'title', true);?>" /></td> 178 <td><input type="text" name="title" value="<?php echo get_user_meta($_GET['uid'], 'title', true);?>" /></td>
175 </tr> 179 </tr>
...@@ -238,7 +242,7 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true); ...@@ -238,7 +242,7 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true);
238 <script src="<?php echo Tools\url('../');?>"></script> 242 <script src="<?php echo Tools\url('../');?>"></script>
239 <script> 243 <script>
240 jQuery(function($) { 244 jQuery(function($) {
241 $('input[rel="mask-phone"]').mask("999-999-9999"); 245 //$('input[rel="mask-phone"]').mask("999-999-9999");
242 $('input[rel="mask-birthdate"]').mask("9999-99-99"); 246 $('input[rel="mask-birthdate"]').mask("9999-99-99");
243 /* 247 /*
244 update_listing_preference(); 248 update_listing_preference();
......