标签:自己 color his get fetch turn div ali class
php 代码:
$result = $jjModel->where($wheres)->paginate(10,false,[‘query‘ => [‘peytype‘=>$peytypes]]); (查询10条数据,get参数‘paytype‘,根据自己情况来)
$this->assign(‘page‘, $page);
$this->assign(‘list‘,$result);
return $this->view->fetch();
html代码:
{volist name="list" id="v"}
<tr class="td_type_content">
<td align="left">{$v[‘peytype‘]}</td>
<td align="center" style="color:#05ff98">+{$v[‘coin‘]}</td>
<td id="td_type_content_btn" align="right">{$v[‘idate‘]}</td>
</tr>
{/volist}
<div id="footerss">
{$page}
</div>
简直不要太简单。。。。
标签:自己 color his get fetch turn div ali class
原文地址:https://www.cnblogs.com/roseY/p/9414176.html