AFC Project Development Documentation Clean up

Source: Internet
Author: User
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:

    1. Using StringBuffer
    2. 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 ...

  • 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.