123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <!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/patientinfo/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($patient_info) }{$patient_info.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="name" type="text" class="easyui-textbox" size="55" value="{if isset($patient_info) }{$patient_info.name}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right" >性别:</th>
- <td colspan="3" >
- <input name="sex" type="radio" size="35" value="F" {if isset($patient_info) && $patient_info.sex=='F' }checked="check"{/if} /><label>女</label>
- <input name="sex" type="radio" size="35" value="M" {if isset($patient_info) && $patient_info.sex=='M' }checked="check"{/if} /><label>男</label>
- </td>
- </tr>
- <tr>
- <th height="32" align="right" >身份证号:</th>
- <td colspan="3" >
- <input name="card_num" type="text" class="easyui-textbox" size="55" value="{if isset($patient_info) }{$patient_info.card_num}{/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($patient_info) }{$patient_info.phone}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right" >生日:</th>
- <td >
- <input name="birthday" type="text" class="easyui-textbox" size="25" class="easyui-datetimebox" value="{if isset($patient_info) }{$patient_info.birthday}{/if}" />
- </td>
- <th height="32" align="right" >年龄:</th>
- <td >
- <input name="age" type="text" size="25" class="easyui-textbox" value="{if isset($patient_info) }{$patient_info.age}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right" >证件类型:</th>
- <td >
- <input name="card_type" type="text" class="easyui-textbox" size="25" value="{if isset($patient_info) }{$patient_info.card_type}{/if}" />
- </td>
- <th height="32" align="right" >国籍:</th>
- <td >
- <input name="nationality" type="text" class="easyui-textbox" size="25" value="{if isset($patient_info) }{$patient_info.nationality}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right" >民族:</th>
- <td >
- <input name="nation" type="text" class="easyui-textbox" size="25" value="{if isset($patient_info) }{$patient_info.nation}{/if}" />
- </td>
- <th height="32" align="right" >婚否:</th>
- <td >
- <input name="marry" type="radio" size="35" value="0" {if isset($patient_info) && $patient_info.marry=='0' }checked="check"{/if} /><label>未婚</label>
- <input name="marry" type="radio" size="35" value="1" {if isset($patient_info) && $patient_info.marry=='1' }checked="check"{/if} /><label>已婚</label>
- </td>
- </tr>
- <tr>
- <th height="32" align="right" >检查临时患者id:</th>
- <td >
- <input name="temp_patient_id" type="text" class="easyui-textbox" size="25" value="{if isset($patient_info) }{$patient_info.temp_patient_id}{/if}" />
- </td>
- <th height="32" align="right" >职业:</th>
- <td >
- <input name="professional" type="text" class="easyui-textbox" size="25" value="{if isset($patient_info) }{$patient_info.professional}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right" >联系地址:</th>
- <td colspan="3" >
- <input name="address" type="text" class="easyui-textbox" size="55" value="{if isset($patient_info) }{$patient_info.address}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="50" > </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>
|