织梦DedeCMS自增函数[field:global name=autoindex/]用法示例
[field:global name=autoindex/]
[field:global name=autoindex runphp=”yes”]@me=@me+5;[/field:global]
[field:global name=autoindex runphp=”yes”](@me%2==0)? @me=”|”:@me=””;[/field:global]
[field:global name=autoindex runphp=”yes”](@me!=8)? @me=”|”:@me=””;[/field:global]
[field:global runphp=’yes’ name=autoindex]
$a=”
$c=”
if ((@me % 5) == 0) @me = $c;
else @me = $a;
[/field:global]
[field:global runphp=’yes’ name=autoindex]
$a=”
$b=”广告1″;
$c=”
“;
$d=”广告2″;
$e=””;
if (@me == 5) @me = $a.$b.$c;
else if (@me == 10) @me = $a.$d.$c;
else @me = $e;
[/field:global]
{dede:global name=’itemindex’ runphp=’yes’}
$a=”
- “;
$c=”
- “;
if ((@me % 2) == 0) @me = $c;
else @me = $a;
{/dede:global}
[field:global name=”autoindex” runphp=”yes”]
if (@me <= 3) @me=@me-1; else if (@me%4 == 0) @me = "3"; else if (@me%4 == 1) @me = "0"; else if (@me%4 == 2) @me = "1"; else if (@me%4 == 3) @me = "2"; else @me = ""; [/field:global]
☉本站提供的源码、模板、软件工具等其他资源,都不包含技术服务,请大家谅解!
pbootcms模板网 » 织梦DedeCMS自增函数[field:global name=autoindex/]用法示例