#jankzform.html 模板应用
~~~
<extend name="./Apps/JankzMaker/View/Public/main.html" />
<block name="metatitle"><title>{{$meta_title}}</title></block>
<block name="my_css"></block>
<block name="main">
<div class="row">
<div class="ibox-content">
<form method="post" class="form-horizontal" action="{{$post_url}}">
<!-- 此处不分栏 -->
<if condition="$set_coulmn eq 1">
<div class="col-sm-12">
<volist name="form_items" id="item">
<switch name="item.type">
<include file="Apps/JankzMaker/View/Common/case.html" />
</switch>
</volist>
</div>
</if>
<!-- 此处分两栏 -->
<if condition="$set_coulmn eq 2">
<div class="col-sm-6">
<volist name="page_items" id="item">
<if condition="$item.coulmn eq 1">
<switch name="item.type">
<include file="Apps/JankzMaker/View/Common/case.html" />
</switch>
</if>
</volist>
</div>
<div class="col-sm-6">
<volist name="page_items" id="item">
<if condition="$item.coulmn eq 2">
<switch name="item.type">
<include file="Apps/JankzMaker/View/Common/case.html" />
</switch>
</if>
</volist>
</div>
</if>
<!-- 此处分三栏 -->
<if condition="$set_coulmn eq 3">
<div class="col-sm-4">
<volist name="page_items" id="item">
<if condition="$item.coulmn eq 1">
<switch name="item.type">
<include file="Apps/JankzMaker/View/Common/case.html" />
</switch>
</if>
</volist>
</div>
<div class="col-sm-4">
<volist name="page_items" id="item">
<if condition="$item.coulmn eq 2">
<switch name="item.type">
<include file="Apps/JankzMaker/View/Common/case.html" />
</switch>
</if>
</volist>
</div>
<div class="col-sm-4">
<volist name="page_items" id="item">
<if condition="$item.coulmn eq 3">
<switch name="item.type">
<include file="Apps/JankzMaker/View/Common/case.html" />
</switch>
</if>
</volist>
</div>
</if>
<!-- 此处分四栏 不建议 -->
<if condition="$set_coulmn eq 4">
<div class="col-sm-4">
<volist name="page_items" id="item">
<if condition="$item.coulmn eq 1">
<switch name="item.type">
<include file="Apps/JankzMaker/View/Common/case.html" />
</switch>
</if>
</volist>
</div>
<div class="col-sm-4">
<volist name="page_items" id="item">
<if condition="$item.coulmn eq 2">
<switch name="item.type">
<include file="Apps/JankzMaker/View/Common/case.html" />
</switch>
</if>
</volist>
</div>
<div class="col-sm-4">
<volist name="page_items" id="item">
<if condition="$item.coulmn eq 3">
<switch name="item.type">
<include file="Apps/JankzMaker/View/Common/case.html" />
</switch>
</if>
</volist>
</div>
<div class="col-sm-4">
<volist name="page_items" id="item">
<if condition="$item.coulmn eq 4">
<switch name="item.type">
<include file="Apps/JankzMaker/View/Common/case.html" />
</switch>
</if>
</volist>
</div>
</if>
<div class="form-group">
<div class="col-sm-4 col-sm-offset-2">
<button class="btn btn-primary" type="button">保存内容</button>
<button class="btn btn-white" type="submit">取消</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</block>
<block name="my_js">
<script type="text/javascript">
$(document).ready(function(){
$("button[type=button]").click(function(){
$.ajax({
type:'POST',
url:$("form").attr("action"),
data:$("form").serialize(),
success:function(response,status,xhr){
layer.msg(response.info);
}
});
});
});
</script>
</block>
~~~
- 序言
- 基础
- 简介
- 获得Jzopen
- 安装
- 配置
- 系统默认配置参考
- 新增配置项
- 数据库
- 预览
- Auth认证
- Session
- User
- Menu
- Manager
- Group
- Role
- 系统结构
- jankzMaker
- V1.0
- MakerTable
- MakerForm
- v1.1
- FormMaker
- 重装系统
- jankzForm
- jankzform-v1.0
- jankzform.html
- jankzform-v1.1
- jankzTable
- jankztable-v1.0
- jankztable.html
- jankzPage
- jankzpage-v1.0
- jankzpage.html
- elementary
- form
- text
- password
- select
- radio
- checkbox
- btn
- btns
- textarea
- hidden
- image
- editor
- toggle
- label
- labels
- rating
- slider
- sliders
- divider
- icon-divider
- pages
- table
- 二次开发
- jzopen后台
- 精简系统
- 插件开发
- 官方插件
- 第三方插件
- 独有专享插件
- 户主开发插件
- 云商店
- 云商店下载插件
- 插件上传
- 在线升级
- 检查升级
- 升级常见问题
- 部署
- 推荐配置
- 阿里云ECS部署
- 新浪Sae部署