网友原创的PHP模板类
<table style="BORDER-RIGHT: #cccccc 1px dotted; TABLE-LAYOUT: fixed; BORDER-TOP: #cccccc 1px dotted; BORDER-LEFT: #cccccc 1px dotted; BORDER-BOTTOM: #cccccc 1px dotted" cellspacing="0" cellpadding="6" width="95%" align="center" border="0">
<tr>
<td style="WORD-WRAP: break-word" bgcolor="#f3f3f3">
<font style="FONT-WEIGHT: bold; COLOR: #990000">以下是PHP源代码:</font><br><?php <br/> class Lightpage_Template { <br> <br> var $Tpl_Header; <br> var $Tpl_Footer; <br> var $Tpl_Parsing; <br> var $Tpl_Template; <br> var $Tpl_Dirname; <br> <br> var $Tpl_Parse_String; <br> var $Tpl_Parse_Array; <br> <br> var $Tpl_Result; <br> <br> function __construct() { <br> $this->Tpl_Header = NULL; <br> $this->Tpl_Footer = NULL; <br> $this->Tpl_Parsing = array(); <br> $this->Tpl_Template = ’list.html’; <br> $this->Tpl_ToParse = NULL; <br> <br> $this->Tpl_Parse_String = array(); <br> $this->Tpl_Parse_Array = array(); <br> <br> $this->Tpl_Result = NULL; <br> return true; <br> } <br> <br> function Parse_Template() { <br> $this->Tpl_Parse_String = array(); <br> $this->Tpl_Parse_Array = array(); <br> if($this->Tpl_Header!=NULL) { array_push($this->Tpl_Parse_String,$this->Tpl_Header);array_push($this->Tpl_Parse_Array,’{header}’); } <br> if($this->Tpl_Footer!=NULL) { array_push($this->Tpl_Parse_String,$this->Tpl_Footer);array_push($this->Tpl_Parse_Array,’{footer}’); } <br> if(count($this->Tpl_Parsing)!=1) { <br> foreach($this->Tpl_Parsing as $Tpl_Key => $Tpl_Value) { <br> array_push($this->Tpl_Parse_String,$Tpl_Value); <br> array_push($this->Tpl_Parse_Array,’{’.$Tpl_Key.’}’); <br> } <br> } <br> if($this->Tpl_Template!=NULL && $this->Tpl_ToParse==NULL) { <br> $this->Tpl_ToParse = file_get_contents(root.’./Templates/’.$this->Tpl_Template); <br> } <br> $this->Tpl_Result = str_replace($this->Tpl_Parse_Array,$this->Tpl_Parse_String,$this->Tpl_ToParse); <br> return $this->Tpl_Result; <br> } <br> <br> } <br>?> <br><br>用法: <br><br><br>$Mdl = new Lightpage_Template(); <br> $Mdl->Tpl_Header = ’zzz’; <br> $Mdl->Tpl_Footer = ’’; <br> $Mdl->Tpl_Parsing = ’’; <br> $Mdl->Tpl_Template = ’list.html’; <br> echo $Mdl->Parse_Template(); </td>
</tr>
</table>

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

MinGW - Windows용 미니멀리스트 GNU
이 프로젝트는 osdn.net/projects/mingw로 마이그레이션되는 중입니다. 계속해서 그곳에서 우리를 팔로우할 수 있습니다. MinGW: GCC(GNU Compiler Collection)의 기본 Windows 포트로, 기본 Windows 애플리케이션을 구축하기 위한 무료 배포 가능 가져오기 라이브러리 및 헤더 파일로 C99 기능을 지원하는 MSVC 런타임에 대한 확장이 포함되어 있습니다. 모든 MinGW 소프트웨어는 64비트 Windows 플랫폼에서 실행될 수 있습니다.

에디트플러스 중국어 크랙 버전
작은 크기, 구문 강조, 코드 프롬프트 기능을 지원하지 않음

SublimeText3 Linux 새 버전
SublimeText3 Linux 최신 버전
