* adjust for user contact.

This commit is contained in:
wangyidong
2019-05-31 10:31:00 +08:00
parent 7aa9cb1be3
commit 6143a0ae5b
4 changed files with 16 additions and 2 deletions
+2
View File
@@ -77,6 +77,7 @@
</table>
<table align='center' class='table table-form'>
<caption class='text-left text-muted'><?php echo $lang->user->contactInfo;?></caption>
<?php if(!empty($config->user->contactField)):?>
<?php $i = 0;?>
<?php foreach(explode(',', $config->user->contactField) as $field):?>
<?php if($i % 2 == 0) echo '<tr>';?>
@@ -85,6 +86,7 @@
<td><?php echo html::input($field, $user->$field, "class='form-control'");?></td>
<?php if($i % 2 == 0) echo '</tr>';?>
<?php endforeach;?>
<?php endif;?>
<tr>
<th><?php echo $lang->user->address;?></th>
<td><?php echo html::input('address', $user->address, "class='form-control'");?></td>