* Finish task #3797

This commit is contained in:
JackWuLieHao
2018-03-29 15:39:14 +08:00
parent 408152f2f0
commit 960ec7c84c
3 changed files with 2 additions and 6 deletions

View File

@@ -10,7 +10,3 @@ function changeGroup(role)
}
$('#group').trigger("chosen:updated");
}
/*
设置用户的入职日期,默认为当天
*/
document.getElementById('join').value = new Date().format("yyyy-MM-dd");

View File

@@ -53,7 +53,7 @@
</tr>
<tr>
<th><?php echo $lang->user->join;?></th>
<td><input type="date" name="join" id="join" class="form-control" ></td>
<td><?php echo html::input('join', date('Y-m-d'), "class='form-control form-date'");?></td>
</tr>
<tr>
<th><?php echo $lang->user->role;?></th>

View File

@@ -36,7 +36,7 @@
</tr>
<tr>
<th><?php echo $lang->user->join;?></th>
<td><input type="date" name="join" value="<?php echo $user->join;?>" class="form-control"></td>
<td><?php echo html::input('join', $user->join, "class='form-control form-date'");?></td>
</tr>
<tr>
<th><?php echo $lang->group->priv;?></th>