ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
#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> ~~~