Phpcms: Seven, list.html

Source: Internet
Author: User

1. List page
{pc:content action= "lists" catid= "$catid" num= "order=" "ID DESC"

Page= "$page"}
<ul class= "list lh24 F14" >
{Loop $data $r}
<li><span class= "RT" >{date (' y-m-d h:i:s ', $r [inputtime])}</span>

<a href= "{$r [url]}" target= "_blank" {title_style ($r [style])}>{$r [title]}

</a></li>
{if $n%5==0}<li class= "Bk20 hr" ></li>{/if}
{/loop}
</ul>
<div id= "pages" class= "text-c" >{$pages}</div>
{/PC}

Date format: {date (' y-m-d h:i:s ', $r [Inputtime])}
2.
{if $n%5==0}<li class= "Bk20 hr" ></li>{/if}: $n is the order of the current data, input 5 lines

<li class= "Bk20 hr" >.
3. Current Location: {Catpos ($catid)} (Home > New Add Model Column > List).
You can display the parameter {catpos ($catid, ')} in {Catpos ($catid)} as (Home > new add

List of model columns)
4.page= "$page": Pagination
{$pages}: Calling Paging
5. Monthly ranking:
{pc:content action= "hits" catid= "$catid" num= "8" order= "Monthviews DESC"

Cache= "3600"}
<ul class= "Content rank" >
{Loop $data $r}
<li><span>{number_format ($r

[Monthviews])} </span><a href= "{$r [url]}" {Title_style ($r [style])}

class= "title" title= "{$r [title]}" >{str_cut ($r [title],56, ' ... ')}</a></li>
{/loop}
</ul>
{/PC}

Phpcms: Seven, list.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.