123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>TODO supply a title</title>
- {include file="../application/manage/view/commons/headers.html" }
- <script>
- // 保存信息
- function save() {
- var data = $("#myform").serialize();
- $.ajax({
- url: "/manage/insdoctors/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() {
- });
- </script>
- </head>
- <body>
- <form id="myform" action="" method="get">
- <input name="id" type="hidden" value="{if isset($doctors) }{$doctors.id}{/if}" />
- <table class="editform" width="99%" border="0" style="margin: 5px auto;" cellpadding="1" cellspacing="1">
- <tr>
- <th width="105" height="38" align="right">属性 </th>
- <th colspan="3">信息</th>
- </tr>
- <tr>
- <th height="32" align="right">用户名:</th>
- <td colspan="3">
- <input name="username" type="text" class="easyui-textbox" size="55" value="{if isset($doctors) }{$doctors.username}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right">密码:</th>
- <td colspan="3">
- <input name="password" type="password" class="easyui-textbox" size="55" value="{if isset($doctors) }{$doctors.password}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right">真实姓名:</th>
- <td colspan="3">
- <input name="realname" type="text" class="easyui-textbox" size="55" value="{if isset($doctors) }{$doctors.realname}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right">手机号:</th>
- <td colspan="3">
- <input name="phone" type="text" class="easyui-textbox" size="55" value="{if isset($doctors) }{$doctors.phone}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right">医疗机构:</th>
- <td colspan="3">
- <select name="institution_id" class="easyui-combobox" style="width:200px;" >
- {if isset($institution) }
- {volist name="institution" id="ins"}
- <option value="{$ins.id}" {if isset($doctors) }{if $ins.id==$doctors.institution_id}selected{/if}{/if}>{$ins.name}</option>
- {/volist}
- {/if}
- </select>
- </td>
- </tr>
- <tr>
- <th height="32" align="right">主要科室:</th>
- <td colspan="3">
- <select name="department_id" class="easyui-combobox" style="width:100px;" >
- {volist name="department" id="dpm"}
- <option value="{$dpm.id}" {if isset($doctors) }{if $dpm.id==$doctors.department_id}selected{/if}{/if}>{$dpm.department_name}</option>
- {/volist}
- </select>
- </td>
- </tr>
- <tr>
- <th height="32" align="right">职称:</th>
- <td colspan="3">
- <input name="doctor_title" type="text" class="easyui-textbox" size="55" value="{if isset($doctors) }{$doctors.doctor_title}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right">医生角色:</th>
- <td colspan="3">
- <input name="doctor_role[]" type="checkbox" size="35" value="1" {if isset($doctors) && in_array(1,$doctors.doctor_role) }checked="check" {/if} /><label>本地医生</label>
- <input name="doctor_role[]" type="checkbox" size="35" value="2" {if isset($doctors) && in_array(2,$doctors.doctor_role) }checked="check" {/if} /><label>远程医生</label>
- </td>
- </tr>
- <tr>
- <th height="32" align="right">附件:</th>
- <td colspan="3">
- <a href="{if isset($doctors) }{$doctors.attachment}{/if}" download="">下载附件</a>
- </td>
- </tr>
- <tr>
- <th height="32" align="right">是否能写报告:</th>
- <td colspan="3">
- <input name="is_report" id="is_report_1" type="radio" size="35" value="1" {if isset($doctors) && $doctors.is_report=='1' }checked="check" {/if} /><label for="is_report_1" >是</label>
- <input name="is_report" id="is_report_0" type="radio" size="35" value="0" {if isset($doctors) && $doctors.is_report=='0' }checked="check" {/if} /><label for="is_report_0">否</label>
- </td>
- </tr>
- <tr>
- <th height="32" align="right">备注:</th>
- <td colspan="3">
- <input name="remark" type="text" size="55" class="easyui-textbox" value="{if isset($doctors) }{$doctors.remark}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right">信息状态:</th>
- <td colspan="3">
- <input name="status" id="status_1" type="radio" size="35" value="1" {if isset($doctors) && $doctors.status=='1' }checked="check" {/if} /><label for="status_1" >正常</label>
- <input name="status" id="status_0" type="radio" size="35" value="0" {if isset($doctors) && $doctors.status=='0' }checked="check" {/if} /><label for="status_0" >屏蔽</label>
- </td>
- </tr>
- <tr>
- <th height="32" align="right">分类:</th>
- <td colspan="3" >
- {foreach $doctorclas as $key => $val}
- <input name="doctorcla[]" id="sorts_{$val.constant_key}" type="checkbox" size="55" value="{$val.constant_key}" {if isset($doctorcla) && in_array($val.constant_key,$doctorcla) }checked{/if} /><label for="sorts_{$val.constant_key}" >{$val.name}</label>
- {/foreach}
- </td>
- </tr>
- <tr>
- <th height="32" align="right">检查类权限:</th>
- <td colspan="3" >
- {foreach $examclass as $key => $val}
- <input name="examcla[]" id="" type="checkbox" size="55" value="{$val.constant_key}" {if isset($examcla) && in_array($val.constant_key,$examcla) }checked{/if} /><label for="sorts_{$val.constant_key}" >{$val.constant_value}</label>
- {/foreach}
- </td>
- </tr>
- <tr>
- <th height="32"> </th>
- <td>
- <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>
|