Home > php教程 > php手册 > Some common codes of Empire CMS

Some common codes of Empire CMS

WBOY
Release: 2016-10-15 10:31:47
Original
1624 people have browsed it

1. How to implement efficient random calls in Empire CMS

$randnum=10; //Random number
$randids='';
$randdh='';
for($i=1;$ i<=$randnum;$i++)
{
$randids.=$randdh.rand(1,100000); //1 is the minimum ID, 100000 is the maximum ID
$randdh=',';
}
?> ;
[e:loop={column ID, display number, operation type, only display pictures with titles, "id in ($randids)"}]
//Template code content
[/e:loop]

2 , Column page parent column link address:

$cr['classid']=$class_r[$GLOBALS[navclassid]][bclassid];
$bclassurl=sys_ReturnBqClassname($cr,9);
echo $bclassurl;
?>

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template