123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <!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/doctorclass/save",
- data:data,type:"get",
- success:function(rs){
- if(rs.indexOf("insert_ok")>=0){
- alert('新增成功');
- document.location.href="edit?id="+rs.split(";")[1];
- }else if(rs=="update_ok"){
- alert('保存成功');
- }else{
- alert("保存失败!");
- }
- },error:function(e,e1,e2){
- alert(e2);
- }
- });
- }
-
-
- </script>
-
-
- </head>
- <body>
- <form id="myform" action="" method="get" >
- <input name="id" type="hidden" value="{if isset($doctorclass) }{$doctorclass.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" >
- <select name="doctor_id" >
- {volist name="doctors" id="doc"}
- <option value="{$doc.id}" {if isset($doctorclass) }{if $doc.id==$doctorclass.doctor_id}selected{/if}{/if}>{$doc.realname}</option>
- {/volist}
- </select>
- </td>
- </tr>
- <tr>
- <th height="32" align="right" >科室:</th>
- <td colspan="3" >
- <select name="department_id" >
- {volist name="department" id="dep"}
- <option value="{$dep.id}" {if isset($doctorclass) }{if $dep.id==$doctorclass.department_id}selected{/if}{/if}>{$dep.department_name}</option>
- {/volist}
- </select>
- </td>
- </tr>
- <tr>
- <th height="32" align="right" >医生类别:</th>
- <td colspan="3" >
- <input name="doctor_class[]" type="checkbox" size="35" value="1" {if isset($doctorclass) && in_array(1,$doctorclass.doctor_class) }checked="check"{/if} /><label>临床医生</label>
- <input name="doctor_class[]" type="checkbox" size="35" value="2" {if isset($doctorclass) && in_array(2,$doctorclass.doctor_class) }checked="check"{/if} /><label>报告医生</label>
- <input name="doctor_class[]" type="checkbox" size="35" value="3" {if isset($doctorclass) && in_array(3,$doctorclass.doctor_class) }checked="check"{/if} /><label>审核医生</label>
- <input name="doctor_class[]" type="checkbox" size="35" value="4" {if isset($doctorclass) && in_array(4,$doctorclass.doctor_class) }checked="check"{/if} /><label>确认医生</label>
- <input name="doctor_class[]" type="checkbox" size="35" value="5" {if isset($doctorclass) && in_array(5,$doctorclass.doctor_class) }checked="check"{/if} /><label>技师</label>
- </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>
|