123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>TODO supply a title</title>
- {include file="../application/manage/view/commons/headers.html" }
-
- <script >
-
- var institutionsData=new Array();
-
- var topInsData=new Array();
- topInsData["id"]="";
- topInsData["text"]="顶级节点(非机构)";
- {if isset($insJson) }
- topInsData["children"]={$insJson};
- {/if}
- institutionsData.push(topInsData);
- $(function(){
- $('#institution_id').combotree({
- required:true,multiple:false,
- valueField:'id',textField:'name',panelWidth: 550,
- data:institutionsData
- });
- });
- // 保存信息
- function save(){
- var data=$("#myform").serialize();
- $.ajax({
- url:"/manage/examclass/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($exam_class) }{$exam_class.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="35" value="{if isset($exam_class) }{$exam_class.name}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right" >所在机构:</th>
- <td colspan="3" >
- <input id="institution_id" name="institution_id" value="{if isset($exam_class) }{$exam_class.institution_id}{/if}" />
- </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>
|