zoukankan      html  css  js  c++  java
  • PHPCMS V9表单向导调用及分页

    参考资料如下:
    v9_form_tlj为你的表单数据表,`flqh`,`title`,`sj`,`username`,`datetime` 为你表单内的字段,page="$_GET"为分页代码,具体调用代码如下:

    <div class="box">
        <h5>报名情况</h5>
        {pc:get sql="SELECT `flqh`,`title`,`sj`,`username`,`datetime` FROM `v9_form_tlj` ORDER BY `datetime` DESC" num="10" page="$_GET"}
        <table width="100%" cellspacing="1"  class="table-my">
            <thead>
                <tr>
                    <th width="25%"><strong>赛事活动</strong></th>
                    <th width="23%"><strong>订单号码</strong></th>
                    <th width="12%"><strong>报名会员</strong></th>
                    <th width="20%"><strong>目标商家</strong></th>
                    <th width="20%"><strong>报名时间</strong></th>
                </tr>
            </thead>
            <tbody>
                {loop $data $r} 
                <tr>
                    <td width="25%" align="center">{$r[title]}</td>
                    <td width="23%" align="center">{$r[flqh]}</td>
                    <td width="12%" align="center">{$r[username]}</td>
                    <td width="20%" align="center">{$r[sj]}</td>
                    <td width="20%" align="center">{date('Y-m-d H:i:s',$r[datetime])}</td>
                </tr>
                {/loop}
            </tbody>
        </table>
        {/pc}
        <div id="pages" class="text-c">{$pages}</div>         
    </div>

    表名及字段名按照自己的表单自行修改。

  • 相关阅读:
    docker容器的本质
    golang 算法题 : 二维数组搜索值
    golang 算法题 : 两数相加
    golang 开源代理
    golang vue 使用 websocket 的例子
    互联网技术部门该如何管理
    大数据清洗第一天
    本周总结
    信息领域热词分析性能分析
    本周总结
  • 原文地址:https://www.cnblogs.com/sakura-panda/p/4489387.html
Copyright © 2011-2022 走看看