v9_form_consult为你的表单数据表,`consultman`,`question`,`username`,`datetime` 为你表单内的字段,page="$_GET"为分页代码,具体调用代码以下:
<div class="box">
<h5>常见问题</h5>
{pc:get sql="SELECT `consultman`,`question`,`username`,`datetime` FROM `v9_form_tlj` ORDER BY `datetime`" num="10" page="$_GET"}php
<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[consultman]}</td>
<td width="23%" align="center">{$r[question]}</td>
<td width="12%" align="center">{$r[username]}</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>sql
而phpcms v9的会员模板在menber的模块下,要添加会员申请的记录,就必须调取模板,每个模板由控制器里(moules/content.php)不一样的方法决定,因此要添加方法和模板,在方法里面链接数据库,查询表单向导对应的数据表。数据库
再在模板里遍历出数据,使用info[表单向导字段名],就是申报的数据了。oop