我的页面已经改好了,我就不截图了,这里说一下我的该的步骤,
1,先去这个代码可以在phpcms后台生成,详见界面->标签向导生成列表的代码,生成的代码如下:
设置的内容如下
2,我把复制的代码
原来不合适的代码如下:
{pc:content action="lists" catid="$catid" num="24" order="id DESC" page="$page"}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="pages_table">
{loop $data $r}
<tr><td valign="top" width="32"><a href="{$r[url]}" target="_blank"><img src="{thumb($r[thumb],32,32)}" alt="{$r[title]}"></a></td><td valign="top"><a href="{$r[url]}" target="_blank">{$r[title]}</a>{if $r[subtitle]}<p class="subtitle">{$r[subtitle]}</p>{/if}{str_cut($r[description],100,'')}<p>更新时间:{date('Y-m-d',$r[inputtime])} 软件大小:{$r[filesize]}</p></td><td valign="top" class="green">好评:{$r[up]}</td><td valign="top" class="green">人气:{get_views_all('2',$r['id'],'views')}<a href="{$r[url]}" target="_blank">下载</a></td></tr>
{/loop}
</table>
<div class="pages_box">
<div class="pages_info">第{$page}页 共有:{$items}条</div>
<div class="pages">{$pages}</div>
<div class="pages_select"><p><b><select name="select_pages" onchange="location.href=this.options[this.selectedIndex].value;">{str_replace("a href", "option value", str_replace("..", "", str_replace("</a", "</option", str_replace("a class", "option class", str_replace("</span>", "页</option>", str_replace("<span>", "<option selected>", str_replace("> ", ">", $pages)))))))}</select></b></p></div>
</div>
{/pc}
```
看看生成的代码:
```
{pc:content action="lists" catid="6" order="id DESC" thumb="1" moreinfo="1" page="$_GET[page]" num="10" }
{loop $data $n $r}
<li><a href="{$r['url']}" title="{$r['title']}">{$r['title']}</a></li>
{/loop}
{/pc}
然后自己根据之前的代码,改了一下:
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="pages_table">
{loop $data $r}
<tr><td valign="top" width="32"><a href="{$r[url]}" target="_blank"><img src="{thumb($r[thumb],32,32)}" alt="{$r[title]}"></a></td><td valign="top"><a href="{$r[url]}" target="_blank">{$r[title]}</a>{if $r[subtitle]}<p class="subtitle">{$r[subtitle]}</p>{/if}{str_cut($r[description],100,'')}<p>更新时间:{date('Y-m-d',$r[inputtime])} 软件大小:{$r[filesize]}</p></td><td valign="top" class="green">好评:{$r[up]}</td><td valign="top" class="green">人气:{get_views_all('2',$r['id'],'views')}<a href="{$r[url]}" target="_blank">下载</a></td></tr>
{/loop}
</table>
<div id="pages" class="pages">{$pages}</div>
{/pc}
结果图,很满意: