AFC Project Development Document collation
AFC Project Development Document collation
Phpcms
Really is a great cms, I love it.
-
Tag nested workaround not available for loop. The key code is as follows:
/\* background add \*/$str = Preg_replace ("/\{loop (\s+) \s+ (\s+) \s+ (\s+ ) \}/","!--? php \ $n \\1=1;if (Is_array (\\2)) foreach (\\2 as \\3) {?--", $str); $str = Preg_replace ("/\{loop (\s+) \s + (\s+) \s+ (\s+) \s+ (\s+) \}/","!--? php \ $n \\1=1; if (Is_array (\\2)) foreach (\\2 as \\3 =-->\\4) {?> ", $str); $str = Preg_replace ("/\{\/loop (\s+) \}/", "!--? php \ $n \\1++;}unset (\ $n \\1);?--", $str);/\* reception \*/{pc:content action= " Category "Catid=" 0 "num=" "siteid=" $siteid "order=" Listorder ASC "} {loop $data $r}
-
{$r [CA Tname]}
{pc:content action= "category" Catid= "$r [' catid ']" num= " "Siteid=" $siteid "order=" Listorder ASC "return=" Data2 "} {loop2 $data 2 $v}
- {$v [catname]}
{/LOOP2}
{/PC}
{/LOOP}{/PC}
-
Phpcms the way to adjust the membership Picture:
{php $meminfo=get_memberinfo_buyusername($username);$userimg=$meminfo['userid']}
Css
-
CSS rounded corners implementation
border: 5px solid #dedede;-moz-border-radius: 15px; /* Gecko browsers */-webkit-border-radius: 15px; /* Webkit browsers */border-radius:15px; /* W3C syntax */
-
CSS Translucent
filter:alpha(opacity=50); /*支持 IE 浏览器*/-moz-opacity:0.50; /*支持 FireFox 浏览器*/opacity:0.50; /*支持 Chrome, Opera, Safari 等浏览器*/
-
CSS Shadows
box-shadow: 1px 1px 1px 1px #000000;
Php
There is a two-time search requirement that needs to be written by itself. There are 2 ways to do this online:
- Using StringBuffer
- Use list to place the results of the first query in the list
Looked at, did not go into deep research, and finally adopted the AJAX technology. Foreground combination query conditions, the background to get conditional combination query statements, each new query. Then update the method that the query results display. In this way, "2 times", "3 times" 、... N times the retrieval is no problem.
Not to be continued ...