123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:73:"D:\wamp\www\yczd\yczd\public/../application/manage\view\doctors\edit.html";i:1537433848;s:47:"../application/manage/view/commons/headers.html";i:1537433847;}*/ ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>TODO supply a title</title>
- <meta charset="UTF-8"><?php $req_rmd= rand(1,9999999) ?>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="/static/js/jquery-easyui-1.5.5.6/themes/material/easyui.css?t=<?php echo $req_rmd; ?>" rel="stylesheet" type="text/css" />
- <link href="/static/js/jquery-easyui-1.5.5.6/themes/material/panel.css?t=<?php echo $req_rmd; ?>" rel="stylesheet" type="text/css" />
- <link href="/static/manage/css/manage.css?t=<?php echo $req_rmd; ?>" rel="stylesheet" type="text/css" />
- <link href="/static/js/jquery-easyui-1.5.5.6/themes/icon.css?t=<?php echo $req_rmd; ?>" rel="stylesheet" type="text/css" />
- <script src="/static/js/jquery-easyui-1.5.5.6/jquery.min.js?t=<?php echo $req_rmd; ?>" type="text/javascript" ></script>
- <script src="/static/js/jquery-easyui-1.5.5.6/jquery.easyui.min.js?t=<?php echo $req_rmd; ?>" type="text/javascript" ></script>
- <script src="/static/js/jquery-easyui-1.5.5.6/locale/easyui-lang-zh_CN.js?t=<?php echo $req_rmd; ?>" type="text/javascript" ></script>
- <script src="/static/js/commons.js?t=<?php echo $req_rmd; ?>" type="text/javascript" ></script>
- <script>
- // 保存信息
- function save() {
- var data = $("#myform").serialize();
- $.ajax({
- url: "/manage/doctors/save",
- data: data,
- type: "get",
- success: function(rs) {
- if (rs.indexOf("insert_ok") >= 0) {
- document.location.href = "edit?id=" + rs.split(";")[1];
- } else if (rs == "success") {
- alert('保存成功');
- document.location.reload();
- } else {
- alert("保存失败!");
- }
- },
- error: function(e, e1, e2) {
- alert(e2);
- }
- });
- }
- $(function() {
- $('#institution_id').combotree({
- required:true,multiple:false,editable:false,
- valueField:'id',textField:'name',panelWidth:350,
- url:"/manage/doctors/insCombobox"
- });
- });
- </script>
- </head>
- <body>
- <form id="myform" action="" method="get">
- <input name="id" type="hidden" value="<?php if(isset($doctors)): ?><?php echo $doctors['id']; endif; ?>" />
- <table class="editform" width="99%" border="0" style="margin: 5px auto;" cellpadding="1" cellspacing="1">
- <tr>
- <th height="38" align="right">属性 </th>
- <th colspan="3">信息</th>
- </tr>
- <tr>
- <th height="32" width="15%" align="right">用户名:</th>
- <td width="35%" >
- <input name="username" type="text" class="easyui-textbox" size="25" value="<?php if(isset($doctors)): ?><?php echo $doctors['username']; endif; ?>" />
- </td>
- <th height="32" width="15%" align="right">密码:</th>
- <td width="35%" >
- <input name="password" type="password" class="easyui-textbox" size="25" value="<?php if(isset($doctors)): ?><?php echo $doctors['password']; endif; ?>" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right">真实姓名:</th>
- <td >
- <input name="realname" type="text" class="easyui-textbox" size="25" value="<?php if(isset($doctors)): ?><?php echo $doctors['realname']; endif; ?>" />
- </td>
- <th height="32" align="right">手机号:</th>
- <td >
- <input name="phone" type="text" class="easyui-textbox" size="25" value="<?php if(isset($doctors)): ?><?php echo $doctors['phone']; endif; ?>" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right">机构:</th>
- <td >
- <input name="institution_id" id="institution_id" type="text" size="20" value="<?php if(isset($doctors)): ?><?php echo $doctors['institution_id']; endif; ?>" />
- </td>
- <th height="32" align="right">主要科室:</th>
- <td >
- <select name="department_id" class="easyui-combobox" style="width:100px;" >
- <?php if(is_array($department) || $department instanceof \think\Collection || $department instanceof \think\Paginator): $i = 0; $__LIST__ = $department;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$dpm): $mod = ($i % 2 );++$i;?>
- <option value="<?php echo $dpm['id']; ?>" <?php if(isset($doctors)): if($dpm['id']==$doctors['department_id']): ?>selected<?php endif; endif; ?>><?php echo $dpm['department_name']; ?></option>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </select>
- </td>
- </tr>
- <tr>
- <th height="32" align="right">职称:</th>
- <td >
- <input name="doctor_title" type="text" class="easyui-textbox" size="25" value="<?php if(isset($doctors)): ?><?php echo $doctors['doctor_title']; endif; ?>" />
- </td>
- <th height="32" align="right">医生角色:</th>
- <td >
- <input name="doctor_role[]" id="doctor_role_local" type="checkbox" size="35" value="1" <?php if(isset($doctors) && in_array(1,$doctors['doctor_role'])): ?>checked="check" <?php endif; ?> /><label for="doctor_role_local" >本地医生</label>
- <input name="doctor_role[]" id="doctor_role_remote" type="checkbox" size="35" value="2" <?php if(isset($doctors) && in_array(2,$doctors['doctor_role'])): ?>checked="check" <?php endif; ?> /><label for="doctor_role_remote" >远程医生</label>
- </td>
- </tr>
- <tr>
- <th height="32" align="right">是否能写报告:</th>
- <td >
- <input name="is_report" id="is_report_1" type="radio" size="35" value="1" <?php if(isset($doctors) && $doctors['is_report']=='1'): ?>checked="check" <?php endif; ?> /><label for="is_report_1" >是</label>
- <input name="is_report" id="is_report_0" type="radio" size="35" value="0" <?php if(isset($doctors) && $doctors['is_report']=='0'): ?>checked="check" <?php endif; ?> /><label for="is_report_0">否</label>
- </td>
- <th height="32" align="right">附件:</th>
- <td >
- <a href="<?php if(isset($doctors)): ?><?php echo $doctors['attachment']; endif; ?>" download="">下载附件</a>
- </td>
- </tr>
- <tr>
- <th height="32" align="right">备注:</th>
- <td colspan="3">
- <input name="remark" type="text" size="55" class="easyui-textbox" value="<?php if(isset($doctors)): ?><?php echo $doctors['remark']; endif; ?>" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right">信息状态:</th>
- <td colspan="3" >
- <input name="status" id="status_1" type="radio" size="35" value="1" <?php if(isset($doctors) && $doctors['status']=='1'): ?>checked="check" <?php endif; ?> /><label for="status_1" >正常</label>
- <input name="status" id="status_0" type="radio" size="35" value="0" <?php if(isset($doctors) && $doctors['status']=='0'): ?>checked="check" <?php endif; ?> /><label for="status_0" >屏蔽</label>
- </td>
- </tr>
- <tr>
- <th height="32" align="right">分类:</th>
- <td colspan="3" >
- <?php foreach($doctorclas as $key => $val): ?>
- <input name="doctorcla[]" id="sorts_<?php echo $val['constant_key']; ?>" type="checkbox" size="55" value="<?php echo $val['constant_key']; ?>" <?php if(isset($doctorcla) && in_array($val['constant_key'],$doctorcla)): ?>checked<?php endif; ?> /><label for="sorts_<?php echo $val['constant_key']; ?>" ><?php echo $val['name']; ?></label>
- <?php endforeach; ?>
- </td>
- </tr>
- <tr>
- <th height="32"> </th>
- <td colspan="3" height="50" >
- <a type="button" class="easyui-linkbutton" data-options="iconCls:'icon-save'" icon="icon-save" onclick="save()">保存</a>
- <a type="button" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="window.parent.closeEditWin('reload');">关闭</a>
- </td>
- </tr>
- <tr>
- <th height="32"> </th>
- <td colspan="3">
-
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>
|