作者 曹东东
... ... @@ -179,11 +179,11 @@
<p style="margin: 0;">{$vo.container_name}</p>
</div>
<div class="program">
<!-- {if $vo.review_stage == 0 && $vo.project_approval_status == 0 && $vo.qr_code}-->
<!-- <div class="verify">-->
<!-- <a title="教师审核二维码" href="javascript:;" id="qr_code"><img src="{$vo.qr_code}" width="75" height="75" ></a>-->
<!-- </div>-->
<!-- {/if}-->
{if $vo.review_stage == 0 && $vo.project_approval_status == 0 && $vo.qr_code}
<div class="verify">
<a title="教师审核二维码" href="javascript:;" id="qr_code"><img src="{$vo.qr_code}" width="75" height="75" ></a>
</div>
{/if}
<div class="pic">
<text class="iconfont" style="font-size: 1.5rem;">&#xe617;</text>
<text class="center ">
... ...
... ... @@ -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>
... ...