123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <!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/template/save",
- data: data,
- type: "get",
- success: function(rs) {
- 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="{$obj.id}" />
- <table class="editform" width="99%" border="0" style="margin: 5px auto;" cellpadding="1" cellspacing="1">
- <tr>
- <th height="32" align="right" width="100" >标题:</th>
- <td colspan="3">
- <input name="title" class="easyui-textbox" type="text" size="55" value="{$obj.title}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right">开放类型:</th>
- <td colspan="3">
- <select name="is_public" class="easyui-combobox" style="width:150px;" >
- <option value="1" {if $obj.is_public == 1}selected{/if}>公共模版</option>
- <option value="2" {if $obj.is_public == 2}selected{/if}>私有模版</option>
- </select>
- </td>
- </tr>
-
- <tr>
- <th height="32" align="right">人员编号:</th>
- <td colspan="3">
- <input name="create_user" class="easyui-textbox" type="text" size="55" value="{$obj.create_user}" />
- </td>
- </tr>
-
- <tr>
- <th height="32" align="right">上级编号:</th>
- <td colspan="3">
- <input name="parent_id" class="easyui-textbox" type="text" size="55" value="{$obj.parent_id}" />
- </td>
- </tr>
- <tr>
- <th height="32" align="right">检查类型:</th>
- <td colspan="3">
- <select name="exam_class_id" class="easyui-combobox" style="width:250px;" >
- {volist name="allExamClass" id="ec"}
- <option value="{$ec.name}" {if $ec.name==$obj.exam_class_id}selected{/if}>{$ec.name}</option>
- {/volist}
- </select>
- </td>
- </tr>
-
- <tr>
- <th height="32" align="right">检查类型:</th>
- <td colspan="3">
- <select name="exam_class_id" class="easyui-combobox" style="width:250px;" >
- {volist name="allExamClass" id="ec"}
- <option value="{$ec.name}" {if $ec.name==$obj.exam_class_id}selected{/if}>{$ec.name}</option>
- {/volist}
- </select>
- </td>
- </tr>
- <tr>
- <th height="32" align="right">影像所见:</th>
- <td colspan="3">
- <textarea name="impression" class="easyui-textbox" data-options="multiline:true" style="height:100px;" rows="4" cols="80">{$obj.impression}</textarea>
- </td>
- </tr>
- <tr>
- <th height="32" align="right">意见建议:</th>
- <td colspan="3">
- <textarea name="description" class="easyui-textbox" data-options="multiline:true" style="height:100px;" rows="4" cols="80">{$obj.description}</textarea>
- </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>
|