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>

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

  • 相关阅读:
    Codeforces Round #417 C. Sagheer and Nubian Market
    linux 终端抓包命令
    计算机网络体系结构分析
    排序算法-快速排序
    排序算法-堆排序
    排序算法-希尔排序
    排序算法-插入排序
    排序算法-冒泡排序
    排序算法-选择排序
    杂谈:终端小工具
  • 原文地址:https://www.cnblogs.com/sakura-panda/p/4489387.html
Copyright © 2011-2022 走看看