作者 曹东东

学号修改

... ... @@ -362,6 +362,10 @@ class User extends ManystoreBase
unset($params['password'] );
}
unset($params['confirem_password'] );
$exist = Db::name('user')->where(['student_no' => $params['student_no']])->where('id','neq',$row['id'])->find();
if($exist) {
$this->error(__('该学号已被使用'));
}
$result = false;
Db::startTrans();
try {
... ...
... ... @@ -9,7 +9,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Student_no')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-student_no" class="form-control" readonly name="row[student_no]" type="text" value="{$row.student_no|htmlentities}">
<input id="c-student_no" class="form-control" name="row[student_no]" type="text" value="{$row.student_no|htmlentities}">
</div>
</div>
... ...