#jankzform.html 模板應用
> v1.0 更新說明
~~~
<extend name="./Apps/JankzMaker/View/Public/main.html" />
<block name="metatitle">
<title>{{$meta_title}}</title>
</block>
<block name="my_css"></block>
<block name="main">
<form method="post" class="ui form attached segment" action="{{$post_url}}">
<div class="ui text container">
<div class="ui top attached inverted header">{{$meta_title}}</div>
<div class="buttom attached segment">
<!-- 此處不分欄即默認是一欄顯示 -->
<if condition="$set_coulmn eq 1">
<div class="field">
<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="two fields">
<div class="field">
<volist name="form_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="field">
<volist name="form_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>
</if>
<!-- 此處分三欄 -->
<if condition="$set_coulmn eq 3">
<div class="three fields">
<div class="field">
<volist name="form_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="field">
<volist name="form_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="field">
<volist name="form_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>
</if>
<!-- 此處分四欄 不建議 -->
<if condition="$set_coulmn eq 4">
<div class="four fields">
<div class="field">
<volist name="form_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="field">
<volist name="form_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="field">
<volist name="form_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="field">
<volist name="form_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>
</div>
</if>
<div class="c">
<button class="ui button teal " type="button">保存內容</button>
<button class="ui button" type="submit">取消</button>
</div>
</div>
</div>
</form>
</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部署