<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:59:"F:\www\EduWork/./application/admin\view\teacher\update.html";i:1477642216;}*/ ?>
<form class="form-horizontal bv-form" role="form" id="listForm">
    <input type="hidden" id="id" name="id" value="<?php echo $teacher['id']; ?>">
    <div class="form-group">
        <label class="col-sm-3 control-label">姓名</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="name" name="teacher_name" value="<?php echo $teacher['teacher_name']; ?>" style="width:200px;" >
        </div>
	</div>	
	<div class="form-group">
        <label class="col-sm-3 control-label">性别</label>
        &nbsp;&nbsp;&nbsp;
        <div class="col-sm-5">
                <div class="radio-inline">
                    <label>
                        <input type="radio" name="teacher_gender" value="0" <?php if($teacher['teacher_gender']=='0'): ?>checked<?php endif; ?>> 男
                    </label>
                </div>
                <div class="radio-inline">
                    <label>
                        <input type="radio" name="teacher_gender" value="1" <?php if($teacher['teacher_gender']=='1'): ?>checked<?php endif; ?>> 女
                    </label>
                </div>
        </div>
    </div>
   
	<div class="form-group">
        <label class="col-sm-3 control-label">身份证</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="idcard" name="teacher_idcard" value="<?php echo $teacher['teacher_idcard']; ?>" style="width:200px;" >
        </div>
    </div>
	<div class="form-group">
        <label class="col-sm-3 control-label">银行卡号</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="bankaccount" name="teacher_bankaccount" value="<?php echo $teacher['teacher_bankaccount']; ?>" style="width:200px;" >
        </div>
    </div>
	<div class="form-group">
        <label class="col-sm-3 control-label">工作类型</label>
        <div class="col-sm-5">
            <select class="form-control" name="teacher_jobtype"  style="height:33px;width:200px;border-radius:2px;" >
				<option value='1' <?php if($teacher['teacher_jobtype']=='1'): ?>selected<?php endif; ?>>全职</option>
				<option value='0' <?php if($teacher['teacher_jobtype']=='0'): ?>selected<?php endif; ?>>兼职</option>
            </select>
        </div>
    </div>
	<div class="form-group">
        <label class="col-sm-3 control-label">是否在职</label>
        <div class="col-sm-5">
            <select class="form-control" name="teacher_status"  style="height:33px;width:200px;border-radius:2px;" >
				<option value='1' <?php if($teacher['teacher_status']=='1'): ?>selected<?php endif; ?>>在职</option>
				<option value='0' <?php if($teacher['teacher_status']=='0'): ?>selected<?php endif; ?>>离职</option>
            </select>
        </div>
    </div>
	<div class="form-group">
        <label class="col-sm-3 control-label">所教科目</label>
        <div class="col-sm-5">
            <select class="form-control" name="teacher_subject_id" id="select_subject_id" style="height:33px;width:200px;border-radius:2px;" >
				<?php if(is_array($subjects) || $subjects instanceof \think\Collection): $i = 0; $__LIST__ = $subjects;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$subject): $mod = ($i % 2 );++$i;?>
				<option value='<?php echo $subject['id']; ?>' <?php if($teacher['teacher_subject_id']==$subject['id']): ?>selected<?php endif; ?>><?php echo $subject['subject_name']; ?></option>
				<?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
        </div>
    </div>
	<div class="form-group">
        <label class="col-sm-3 control-label">所教年级</label>
        <div class="col-sm-5">
            <select class="form-control" name="teacher_grade_id" id="select_grade_id" style="height:33px;width:200px;border-radius:2px;" >
				<?php if(is_array($grades) || $grades instanceof \think\Collection): $i = 0; $__LIST__ = $grades;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$grade): $mod = ($i % 2 );++$i;?>
				<option value='<?php echo $grade['id']; ?>' <?php if($teacher['teacher_grade_id']==$grade['id']): ?>selected<?php endif; ?>><?php echo $grade['grade_name']; ?></option>
				<?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
        </div>
    </div>
	 <div class="form-group">
        <label class="col-sm-3 control-label">联系方式</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="telphone" name="teacher_telphone" value="<?php echo $teacher['teacher_telphone']; ?>" style="width:200px;">
        </div>
	</div>
	<div class="form-group">
        <label class="col-sm-3 control-label">邮箱</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="email" name="teacher_email" value="<?php echo $teacher['teacher_email']; ?>" style="width:200px;">
        </div>
	</div>
    <div class="form-group">
        <label class="col-sm-3 control-label">qq</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="qq" name="teacher_qq" value="<?php echo $teacher['teacher_qq']; ?>" style="width:200px;">
        </div>
	</div>
	<div class="form-group">
        <label class="col-sm-3 control-label">入职日期</label>
        <div class="col-sm-5">
            <input type="text" readonly class="form-control" id="joindate_update" name="teacher_joindate" value="<?php echo $teacher['teacher_joindate']; ?>"  style="width:200px;" >
        </div>
	</div>
    <div class="form-group">
        <label class="col-sm-3 control-label">转正日期</label>
        <div class="col-sm-5">
            <input type="text" readonly class="form-control" id="befulldate_update" name="teacher_befulldate" value="<?php echo $teacher['teacher_befulldate']; ?>"  style="width:200px;" >
        </div>
	</div>	
	
    <div class="form-group">
        <label class="col-sm-3 control-label">备注</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="remark" name="teacher_remark" data-toggle="tooltip"
                   data-placement="bottom" title="Tooltip for last name" value="<?php echo $teacher['teacher_remark']; ?>" style="width:200px;"  >
        </div>
    </div>
</form>
<script>
    $('#joindate_update').datepicker({
        format : "yyyy-mm-dd",
        todayBtn : "linked",
        autoclose : true,
        todayHighlight : true,
        clearBtn : true
    });
	$('#befulldate_update').datepicker({
        format : "yyyy-mm-dd",
        todayBtn : "linked",
        autoclose : true,
        todayHighlight : true,
        clearBtn : true
    });
</script>
