1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- @{;
- ViewBag.Title = "表单页面";
- Layout = "~/Views/Shared/_Form.cshtml";
- }
- <script>
- var keyValue = request('keyValue');
- $(function () {
- initControl();
- });
- //初始化控件
- function initControl() {
- //获取表单
- if (!!keyValue) {
- $.SetForm({
- url: "../../BaseManage/Tk_Gallery/GetFormJson",
- param: { keyValue: keyValue },
- success: function (data) {
- $("#form1").SetWebControls(data);
- }
- })
- }
- }
- //保存表单;
- function AcceptClick() {
- if (!$('#form1').Validform()) {
- return false;
- }
- var postData = $("#form1").GetWebControls(keyValue);
- $.SaveForm({
- url: "../../BaseManage/Tk_Gallery/SaveForm?keyValue=" + keyValue,
- param: postData,
- loading: "正在保存数据...",
- success: function () {
- $.currentIframe().$("#gridTable").trigger("reloadGrid");
- }
- })
- }
- </script>
- <div style="margin-top: 20px; margin-right: 30px;">
- <table class="form">
- <tr>
- <td class="formTitle">是否压缩</td>
- <td class="formValue">
- <input id="IsPicZip" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">排序码</td>
- <td class="formValue">
- <input id="SortCode" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">SEO关键字</td>
- <td class="formValue">
- <input id="SeoKey" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">备注</td>
- <td class="formValue">
- <input id="Reamrk" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">热门期数</td>
- <td class="formValue">
- <input id="HotNumber" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">图库名称</td>
- <td class="formValue">
- <input id="GalleryName" type="text" class="form-control" />
- </td>
- </tr>
-
- </table>
- </div>
|