AFC项目开发文档收拾
AFC项目开发文档整理
AFC项目开发文档整理
PHPCMS
的确是一个伟大的CMS,我对它爱不释手。
-
标签嵌套无法loop获取的解决办法。关键代码如下:
<code>/\*后台添加\*/$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 );/\*前台调取\*/{pc:content action="category" catid="0" num="60" siteid="$siteid" order="listorder ASC"} {loop $data $r} <dd> <a href="%7B%24r%5Burl%5D%7D">{$r[catname]}</a> <ul class="list_ul clearfix"> {pc:content action="category" catid="$r['catid']" num="60" siteid="$siteid" order="listorder ASC" return="data2"} {loop2 $data2 $v} <li> <a href="%7B%24v%5Burl%5D%7D">{$v[catname]}</a> </li> {/loop2} {/pc} </ul> </dd> {/loop}{/pc}</code>
Copy after login -
PHPCMS调取会员头像的方法:
<code>{php $meminfo=get_memberinfo_buyusername($username);$userimg=$meminfo['userid']}<a href="#" class="con_avatar" title="{$username}"><img src="/static/imghw/default1.png" data-src="{get_memberavatar($userimg,90,90)}" class="lazy" onerror="this.src='{IMG_PATH}food/autoava.gif'" alt="{$username}"><span class="avatar_cover"></span></a></code>
Copy after login
CSS
-
CSS圆角实现
<code>border: 5px solid #dedede;-moz-border-radius: 15px; /* Gecko browsers */-webkit-border-radius: 15px; /* Webkit browsers */border-radius:15px; /* W3C syntax */</code>
Copy after login -
CSS半透明
<code>filter:alpha(opacity=50); /*支持 IE 浏览器*/-moz-opacity:0.50; /*支持 FireFox 浏览器*/opacity:0.50; /*支持 Chrome, Opera, Safari 等浏览器*/</code>
Copy after login -
CSS阴影
<code>box-shadow: 1px 1px 1px 1px #000000;</code>
Copy after login
PHP
有一个二次检索的需求,需要自己来写。网上给出了2种方法:
- 利用StringBuffer
- 利用list,将第一次查询的结果放在list中
看了一下,都没有深入研究,最后采用的是AJAX技术。前台组合查询条件,后台得到条件组合查询语句,每次都全新查询。然后更新查询结果显示的方法。这样,“2次”、“3次”、... n次检索都没有问题了。
未完待续。。。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Many users will choose the Huawei brand when choosing smart watches. Among them, Huawei GT3pro and GT4 are very popular choices. Many users are curious about the difference between Huawei GT3pro and GT4. Let’s introduce the two to you. . What are the differences between Huawei GT3pro and GT4? 1. Appearance GT4: 46mm and 41mm, the material is glass mirror + stainless steel body + high-resolution fiber back shell. GT3pro: 46.6mm and 42.9mm, the material is sapphire glass + titanium body/ceramic body + ceramic back shell 2. Healthy GT4: Using the latest Huawei Truseen5.5+ algorithm, the results will be more accurate. GT3pro: Added ECG electrocardiogram and blood vessel and safety

Why Snipping Tool Not Working on Windows 11 Understanding the root cause of the problem can help find the right solution. Here are the top reasons why the Snipping Tool might not be working properly: Focus Assistant is On: This prevents the Snipping Tool from opening. Corrupted application: If the snipping tool crashes on launch, it might be corrupted. Outdated graphics drivers: Incompatible drivers may interfere with the snipping tool. Interference from other applications: Other running applications may conflict with the Snipping Tool. Certificate has expired: An error during the upgrade process may cause this issu simple solution. These are suitable for most users and do not require any special technical knowledge. 1. Update Windows and Microsoft Store apps

Part 1: Initial Troubleshooting Steps Checking Apple’s System Status: Before delving into complex solutions, let’s start with the basics. The problem may not lie with your device; Apple's servers may be down. Visit Apple's System Status page to see if the AppStore is working properly. If there's a problem, all you can do is wait for Apple to fix it. Check your internet connection: Make sure you have a stable internet connection as the "Unable to connect to AppStore" issue can sometimes be attributed to a poor connection. Try switching between Wi-Fi and mobile data or resetting network settings (General > Reset > Reset Network Settings > Settings). Update your iOS version:

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code

Microsoft Loop, enhanced with its new feature Copilot, is a modern tool designed to improve the way teams collaborate. It consists of three main parts: components, pages, and workspaces. Components are things like lists or notes that stay updated no matter where you use them, whether in email, documents, or chat. This means you are always working with the latest information. Cycle pages are like digital whiteboards where you put all your components, tasks, and data together. These pages can grow as your project grows, making it easy to keep everything in one place. Workspaces in Loop are shared areas where your team can view and organize everything important to the project, helping everyone

Microsoft is ready to give users access to the first preview version of the Loop project. Now, let's learn where to get it, how to install it and how to get the most out of it. Want to learn how to use this software across Office apps and manage tasks? You've come to the right place. What is the Microsoft Cycle? What should we say? You can compare loops to project boards. Here you can see a list of all Loop components and Loop pages, and who is currently working on them. Think of it as a modern file explorer where everything is live and collaborative. The loop page is a separate canvas where people can share and collaborate on loop components. In addition, Loop components are constantly updated and edited, without

Watch4pro and gt each have different features and applicable scenarios. If you focus on comprehensive functions, high performance and stylish appearance, and are willing to bear a higher price, then Watch 4 Pro may be more suitable. If you don’t have high functional requirements and pay more attention to battery life and reasonable price, then the GT series may be more suitable. The final choice should be decided based on personal needs, budget and preferences. It is recommended to carefully consider your own needs before purchasing and refer to the reviews and comparisons of various products to make a more informed choice.

Border means border in HTML. Border is a border attribute that can set all border styles in one statement. The syntax is [Object.style.border=borderWidth borderStyle borderColor].
