123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <!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/remote/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=="update_ok"){
- document.location.reload();
- }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($remote) }{$remote.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>信息</th>
- </tr>
- <tr>
- <th height="32" align="right" >下级机构:</th>
- <td>
- <select name="hospital_id">
- {if !isset($remote)}<option value = '' selected>请选择下级机构</option>{/if}
- {foreach insJson as $key => $val}
- <option {if isset($remote) && $val.id==$remote.hospital_id }selected{/if} value ={$val.id} >{$val.name}</option>
- {/foreach}
- </select>
- </td>
- <th height="32" align="right" >检查类型:</th>
- <td >
- <select name="exam_class">
- {if !isset($remote)}<option value = '' selected>请选择检查类型</option>{/if}
- {foreach $class as $key => $val}
- <option {if isset($remote) && $val==$remote.exam_class }selected{/if} value ={$val}>{$val}</option>
- {/foreach}
- </select>
- </td>
- </tr>
- <tr>
- <th height="32" align="right" >远程医生:</th>
- <td >
- <select name="super_doctor_id">
- {if !isset($remote)}<option value = '' selected><option value = '' selected>请选择远程医生</option>{/if}
- {foreach $doctors as $key => $val}
- <option {if isset($remote) && $val.id==$remote.super_doctor_id }selected{/if} value ={$val.id}>{$val.realname}</option>
- {/foreach}
- </select>
- </td>
- <th height="32" align="right" >问诊价格:</th>
- <td >
- <input name="money" class="easyui-textbox" type="text" size="25" value="{if isset($remote) }{$remote.money}{/if}" />
- </td>
-
- </tr>
- <tr>
- <th height="32" align="right" >备注:</th>
- <td colspan="3" >
- <textarea name="remark" cols="55" class="easyui-textbox" rows="3" >{if isset($remote) }{$remote.remark}{/if}</textarea>
- </td>
- </tr>
- {if isset($remote) }
- <tr>
- <th height="32" align="right" >{if $remote["createdAt"] != null }创建时间:{/if}</th>
- <td >{if $remote["createdAt"] != null }
- <input type="text" readonly="readonly" class="easyui-datetimebox" size="20" value="{$remote['createdAt']}" />{/if}
- </td>
- <th height="32" align="right" >{if $remote["updatedAt"] != null }更新时间:{/if}</th>
- <td >{if $remote["updatedAt"] != null }
- <input type="text" readonly="readonly" class="easyui-datetimebox" size="20" value="{$remote['updatedAt']}" />{/if}
- </td>
- </tr>
- {/if}
- <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>
-
- </td>
- </tr>
- </table>
- </form>
-
-
-
-
-
-
-
-
-
-
-
- </body>
- </html>
|