找不到帮助文档?你想要哪方面的帮助教程?提交文档建议 >
帮助文档首页
DiYunCMS公众号
公众号二维码

模块表单发布页面

更新时间:2024-01-27 加入收藏
0

帝云CMS前端模板开发之模块表单的发布页面变量代码以及调用方法等

变量代码
说明
{$meta_title}页面头部标题
{$meta_keywords}页面头部关键字,采用网站关键字
{$meta_description}页面头部描述,采用网站描述
{$form}
form控件域,防止跨站提交
{$index}
对应的模块内容数组
{$catid}
对应的模块栏目id
{$form_name}表单中文名字
{$form_table}表单英文名字
{$rt_url}提交后返回的URL,默认为当前URL
{$is_post_code}是否有验证码
{$myfield}自定义字段
{$diyfield}自定义字段(手动摆放模式)


模块表单发布界面模板

通用:template/pc/default/home/mform_post.html

模块:template/pc/default/home/模块名/mform_post.html


发布表单

<form action="" class="form-horizontal" method="post" name="myform" id="myform">
    {$form}
    <div class="fc-form-body">
        {$myfield}
        {$diyfield}
        {if $is_post_code}
        <div class="form-group">
            <label class="control-label col-md-2">{dr_lang('验证码')}</label>
            <div class="col-md-9">
                <label>
                    <div class="form-recaptcha">
                        <div class="input-group">
                            <input type="text" class="form-control" name="code">
                            <div class="input-group-btn fc-code">
                                {dr_code(120, 35)}
                            </div>
                        </div>
                    </div>
                </label>
            </div>
        </div>
        {/if}
    </div>

    <div class="portlet-body form myfooter">
        <div class="form-actions text-center">
            <button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$rt_url}')" class="btn green"> <i class="fa fa-save"></i> 提交内容</button>
        </div>
    </div>
</form>




发布页URL

https://www.diyuncms.com/help/show/940.html



--
有帮助
--
没帮助
0
收藏
0
打赏
推荐产品
相关文档
Hello,欢迎来咨询~
点击在线咨询