1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <!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/examproject/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_project) }{$exam_project.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($exam_project) }{$exam_project.name}{/if}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right" >父集class类:</th>
- <td colspan="3" >
- <select name="exam_class_id" class="easyui-combobox" style="width:200px;" >
- {volist name="class" id="cl"}
- <option value="{$cl.id}" {if isset($exam_project) }{if $cl.id==$exam_project.exam_class_id}selected{/if}{/if}>{$cl.insName}-{$cl.name}</option>
- {/volist}
- </select>
- </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>
|