Algorithms Arrays Passwords Uncategorized
Commerce Uncategorized
Databases Abstraction Layers Informix LDAP MS SQL MySQL ODBC PostgreSQL Uncategorized
Date & Time Calculators Conversion Translation Uncategorized
Discussion Chat Forums Guestbooks Polls Uncategorized
Email Validation Uncategorized
External Uncategorized
Files and Directories Uncategorized
Games Uncategorized
Graphics 3-D Graphs Resizing Thumbnails Uncategorized
HTML Forms Menus & Navigation Source Viewers Tables Templates Uncategorized
HTTP Authentication Cookies File Uploading Uncategorized
I18N Uncategorized
Math Uncategorized
Miscellaneous Uncategorized
Searching and Trees Uncategorized
Security Uncategorized
Text Uncategorized
Utilities Calendars Counters Link Checkers Weather Uncategorized
XML Uncategorized
| php sample source codes |
|---|
|
TinyButStrong is a Template Engine for pro and beginners. It s a single Php class with 8 methods and 2 properties. The TBS tags can be visible with any Visual Html Editor.<br>
<br>
TinyButStrong support MySQL, PostgreSQL and other databases in native. It merges blocs ; sub-blocs ; multi-columns ; Html lists, radio buttons and checkboxes ; sub-templates ; It performs headers ; formats ; conditional display ; event functions ; <br>
You can find Manual, Examples, Support and Forum at the web page.
|
|
Apolda Template is a simple, but powerful template class written in PHP. <p>Main features are:<br>
<ul><li>Support of simple replacements and multiple (nested) blocks.
<li>Simple API, easy to understand especially from the programmer's point of view.
<li>Flexible block handling via Template objects. </ul>
|
|
I have tried a number of ready made templates before
writing this. But, none of them seem to me suitable
for me. They were either too complicated, or too simple.
So I decided to write "a template"..
2 main features for ATemplate are:
* Allows nested templates,
* Easy to use.. (I hope so..)
|
|
Though similar to other such offerings (i.e. Smarty) , DtTemplate has a few distinct advantages in its design. Primarily, its formatting language is extremely intuitive and bears a striking resemblance to html. This makes the template syntax very familiar to web designers. Furthermore, this library compiles its templates , and as such runtime is FAST! Though simple , our design does not compromise flexibility, DtTemplate fully supports embedded php code within its own templates. This library supports I18-localized error messages. There is extensive documentation available on the website with examples and code snippets that should make this library easily accessible to template designers and programmers alike.
|
|
ETS is a template system written with PHP. It allows a complete reshuffle of templates with exactly the same data and is extremely valuable when working with database... It s a powerful tool that will help you efficiently to build documents.
|
|
ETS is a template system written with PHP. It allows a complete reshuffle of the template with exactly the same data and is extremely valuable when working with database... It s a powerful tool that will help you efficiently to build documents.
|
|
Implementing a file-based cache dependency for Smarty's caching feature.
|
|
A Parser Class that Parses special template files. It examines and replaces text that is enclosed in a logic tag. The V2 includes logic support with inline logic statements. It also includes logic comparison, nestled conditional and file repitition (row) abilities. Allows seperation of design and development, ideal for larger websites.
|
|
This is the PHPLIB template.inc file with a few additions to pull templates from a mysql (just about any) database your already connected to.<br>
This helps 'hide' away your templates from prying eyes.<br>
The modifications are minor and are documented within the header to the file.<br>
Existing sites already using PHPLIB template.inc can easily convert to this.
It just as simple as installing this new template.inc, putting your files into a database your connected to and adding 'true' as the third parameter to Template.
|
|
Compiled PHP module to process template files. Extremely fast. Among others, supports Macromedia Dreamweaver template synthax.
|
|
I wrote these two classes following the Factory Pattern to manage a large number of functions to display arrays. Basically, they pull in a $data array, massage it, select the function to apply to the array using switch() and then dump the output into a variable for template use. It certainly can be improved by someone who really knows design patterns, but it only took an hour or so to write, a few more hours to retrofit about 50 display functions and it works on any array! Once written, it's appallingly easy to drop into any new php file and shows the benefits of using OOP instead of having to suss out each array every time. PHP5 isn't used on my webhost yet, but once it is, updating the code will happen in one file and probably not take more than a few minutes!
It was derived from a Zend article (www.zend.com/manual/language.oop5.patterns.php) and H. Fuecks article (www.phppatterns.com/index.php/article/articleview/49/1/1/). It's my first (conscious) foray into design patterns, so I hope others find it useful!
The object is created in another class when the user logs in, but I put it here to avoid confusion:
|
|
This is simple template function which reduces developement time..
|
|
Template function/class slows down site a lot, especially if it is implemented in PHP. This is an example code how output bufferring and include() can be used as template.
|
|
Smarty is a template language that compiles the templates into native PHP code, so there is no template parsing overhead. It has tons of features such as custom functions, variable modifiers, looping sections, caching, debugging, a much more!
|
|
A very easy to use yet powerful and quick template engine. Enables you to seperate your page layout/design from your code. It can handle simple variable replacement and table building using two dimensional arrays and/or MySQL result sets (Meaning that given a single row in the template, this class can build an entire table of data). Performance is excellent. Has support for multiple template files.
|
|
To separate code from layout information is the key for a good and clean website architecture. This class provides a method for taking any information (for example the result of a database query) and parsing it into given templates by replacing keywords with their corresponding values. The method is recursive so you can set apart every needed layout information in sub-templates. This is useful for building dynamic lists or tables. This gives the "layout people" full control over the site layout and keeps them away from the code.
<BR>
The class is not limited to HTML templates -- it could parse any text file, so you can use it for generating emails, too. Or whatever you may need to parse... :)
<BR>
This version is still beta. It is not fully optimizied, but therefor runs with older versions of PHP.
|
|
This document needs 2 files,<BR>
1 config file. With te replacements<BR>
1 html document. Yust a htmlfile.<BR>
UPDATED: Now supporting php tag's<BR>
It's clear what is does
|