15a3c5715f5ff4db69b3939a42f10b34.php 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?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;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <title>TODO supply a title</title>
  6. <meta charset="UTF-8"><?php $req_rmd= rand(1,9999999) ?>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <link href="/static/js/jquery-easyui-1.5.5.6/themes/material/easyui.css?t=<?php echo $req_rmd; ?>" rel="stylesheet" type="text/css" />
  9. <link href="/static/js/jquery-easyui-1.5.5.6/themes/material/panel.css?t=<?php echo $req_rmd; ?>" rel="stylesheet" type="text/css" />
  10. <link href="/static/manage/css/manage.css?t=<?php echo $req_rmd; ?>" rel="stylesheet" type="text/css" />
  11. <link href="/static/js/jquery-easyui-1.5.5.6/themes/icon.css?t=<?php echo $req_rmd; ?>" rel="stylesheet" type="text/css" />
  12. <script src="/static/js/jquery-easyui-1.5.5.6/jquery.min.js?t=<?php echo $req_rmd; ?>" type="text/javascript" ></script>
  13. <script src="/static/js/jquery-easyui-1.5.5.6/jquery.easyui.min.js?t=<?php echo $req_rmd; ?>" type="text/javascript" ></script>
  14. <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>
  15. <script src="/static/js/commons.js?t=<?php echo $req_rmd; ?>" type="text/javascript" ></script>
  16. <script>
  17. // 保存信息
  18. function save() {
  19. var data = $("#myform").serialize();
  20. $.ajax({
  21. url: "/manage/doctors/save",
  22. data: data,
  23. type: "get",
  24. success: function(rs) {
  25. if (rs.indexOf("insert_ok") >= 0) {
  26. document.location.href = "edit?id=" + rs.split(";")[1];
  27. } else if (rs == "success") {
  28. alert('保存成功');
  29. document.location.reload();
  30. } else {
  31. alert("保存失败!");
  32. }
  33. },
  34. error: function(e, e1, e2) {
  35. alert(e2);
  36. }
  37. });
  38. }
  39. $(function() {
  40. $('#institution_id').combotree({
  41. required:true,multiple:false,editable:false,
  42. valueField:'id',textField:'name',panelWidth:350,
  43. url:"/manage/doctors/insCombobox"
  44. });
  45. });
  46. </script>
  47. </head>
  48. <body>
  49. <form id="myform" action="" method="get">
  50. <input name="id" type="hidden" value="<?php if(isset($doctors)): ?><?php echo $doctors['id']; endif; ?>" />
  51. <table class="editform" width="99%" border="0" style="margin: 5px auto;" cellpadding="1" cellspacing="1">
  52. <tr>
  53. <th height="38" align="right">属性&nbsp;</th>
  54. <th colspan="3">信息</th>
  55. </tr>
  56. <tr>
  57. <th height="32" width="15%" align="right">用户名:</th>
  58. <td width="35%" >
  59. <input name="username" type="text" class="easyui-textbox" size="25" value="<?php if(isset($doctors)): ?><?php echo $doctors['username']; endif; ?>" />
  60. </td>
  61. <th height="32" width="15%" align="right">密码:</th>
  62. <td width="35%" >
  63. <input name="password" type="password" class="easyui-textbox" size="25" value="<?php if(isset($doctors)): ?><?php echo $doctors['password']; endif; ?>" />
  64. </td>
  65. </tr>
  66. <tr>
  67. <th height="32" align="right">真实姓名:</th>
  68. <td >
  69. <input name="realname" type="text" class="easyui-textbox" size="25" value="<?php if(isset($doctors)): ?><?php echo $doctors['realname']; endif; ?>" />
  70. </td>
  71. <th height="32" align="right">手机号:</th>
  72. <td >
  73. <input name="phone" type="text" class="easyui-textbox" size="25" value="<?php if(isset($doctors)): ?><?php echo $doctors['phone']; endif; ?>" />
  74. </td>
  75. </tr>
  76. <tr>
  77. <th height="32" align="right">机构:</th>
  78. <td >
  79. <input name="institution_id" id="institution_id" type="text" size="20" value="<?php if(isset($doctors)): ?><?php echo $doctors['institution_id']; endif; ?>" />
  80. </td>
  81. <th height="32" align="right">主要科室:</th>
  82. <td >
  83. <select name="department_id" class="easyui-combobox" style="width:100px;" >
  84. <?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;?>
  85. <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>
  86. <?php endforeach; endif; else: echo "" ;endif; ?>
  87. </select>
  88. </td>
  89. </tr>
  90. <tr>
  91. <th height="32" align="right">职称:</th>
  92. <td >
  93. <input name="doctor_title" type="text" class="easyui-textbox" size="25" value="<?php if(isset($doctors)): ?><?php echo $doctors['doctor_title']; endif; ?>" />
  94. </td>
  95. <th height="32" align="right">医生角色:</th>
  96. <td >
  97. <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>
  98. <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>
  99. </td>
  100. </tr>
  101. <tr>
  102. <th height="32" align="right">是否能写报告:</th>
  103. <td >
  104. <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>
  105. <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>
  106. </td>
  107. <th height="32" align="right">附件:</th>
  108. <td >
  109. <a href="<?php if(isset($doctors)): ?><?php echo $doctors['attachment']; endif; ?>" download="">下载附件</a>
  110. </td>
  111. </tr>
  112. <tr>
  113. <th height="32" align="right">备注:</th>
  114. <td colspan="3">
  115. <input name="remark" type="text" size="55" class="easyui-textbox" value="<?php if(isset($doctors)): ?><?php echo $doctors['remark']; endif; ?>" />
  116. </td>
  117. </tr>
  118. <tr>
  119. <th height="32" align="right">信息状态:</th>
  120. <td colspan="3" >
  121. <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>
  122. <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>
  123. </td>
  124. </tr>
  125. <tr>
  126. <th height="32" align="right">分类:</th>
  127. <td colspan="3" >
  128. <?php foreach($doctorclas as $key => $val): ?>
  129. <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>
  130. <?php endforeach; ?>
  131. </td>
  132. </tr>
  133. <tr>
  134. <th height="32">&nbsp;</th>
  135. <td colspan="3" height="50" >
  136. <a type="button" class="easyui-linkbutton" data-options="iconCls:'icon-save'" icon="icon-save" onclick="save()">保存</a>
  137. <a type="button" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="window.parent.closeEditWin('reload');">关闭</a>
  138. </td>
  139. </tr>
  140. <tr>
  141. <th height="32">&nbsp;</th>
  142. <td colspan="3">
  143. &nbsp;
  144. </td>
  145. </tr>
  146. </table>
  147. </form>
  148. </body>
  149. </html>