Smart.Framework :: PHP/Javascript web framework :: Test and Demo Suite @ [ Index ]
Core Test Suite     ::     コアテスト·スイート


... TESTING AREA (tests will be loaded here) :: 2018-11-16 15:41:56 +0000 ...

Click to Test Image Gallery Click to Test Image Gallery


Smart.Framework, a PHP / Javascript Web Framework
app::powered.by
OpenBSD Operating System
Apache Web Server
PHP Server-Side Scripting Language
SQLite Embedded Database
HTML Markup Language for World Wide Web
CSS Style Sheet Language for World Wide Web
Javascript Client-Side Scripting Language for World Wide Web
jQuery Javascript Library
[Other]: ([?]) :: Web Browser
Click on the (buttons) links below / Press the Submit buttons to play with interractions ...


Test JS-UI Alert    Test JS-UI Dialog

  


Open Modal (strict)    Open PopUp (strict)

  PopUp + Focus (with a remote URL)

Play with the Form controls below (if the Limited TextArea is not empty a REDIRECTION on Success/Error is reversed !):



[Selecting Date is mandatory. This area will be replaced after sending the form if the below TextArea is not empty. If the below TextArea is empty, the page will refresh after post !]

Calendar Selector:
TimePicker Selector:
AutoComplete Single:
Autocomplete Multi:
SingleSelect DropDown List without Blank:
SingleSelect DropDown List (from Multi):
SingleSelect DropDown List with Search:
MultiSelect DropDown List:

Yes    No
Yes    No
MultiSelect CheckBoxes:
  Label 1
  Label 2
  Label 3

Limited TextArea:
Click to Refresh Image
Confirm you are not a robot

CSS Notifications:

 
This is an Info
This is a Notice
This is a Question
This is a Warning
This is an Error



Powerful Templating Engine: Marker-TPL (built-in, default):

  Marker-TPL Templating Demo      Twig Templating Demo (extra modules)
Marker-TPL Templating Engine is a very fast and 100% secure [*] PHP Templating Engine.
Because the Marker-TPL Templating is rendering the Views by injecting plain strings and data arrays directly into these Views (no PHP code, no re-interpreted PHP code) there is NO SECURITY RISK by injecting malicious PHP code into the Views like in the case of using the Twig Templating for PHP or Smarty Templating for PHP. The original concept of Marker-TPL Templating started by looking at the simplistic mark(er)s used in templates by Typo3 CMS. So, a full new concept was developed based on this idea into the Smart.Framework as a brand new TPL engine.
The Marker-TPL Templating sub-project of Smart.Framework begins by using markers that have a start [ and stop ] limits and marking variables are enclosed in 4 # # # # (instead of 3 # # # as the original concept). At the very begining the full escaping syntax was developed for these markers to escape: html, js, url, json, ... and more ... and was added a support for loading SUB-TEMPLATES files. Later the support for IF and LOOP syntax was finalizing this concept.
Currently the TPL Marker Syntax Templating Engine for PHP (and TPL Marker Syntax Templating Engine for Javascript [**]) fully developed and maintained into Smart.Framework supports:
  • MARKERS Syntax as: [####MARKER####] with optional escapings that may be combined: [####MARKER|bool####], [####MARKER|int####], [####MARKER|num####], [####MARKER|json####], [####MARKER|substr255####], [####MARKER|url####], [####MARKER|js####], [####MARKER|html####], [####MARKER|nl2br####], [####MARKER|url|js####], [####MARKER|js|html####], [####MARKER|url|html####], ..., [####MARKER|url|js|html####], ...)
  • COMMENTS Syntax as: [%%%%COMMENT%%%%] comments goes here ... [%%%%/COMMENT%%%%]
  • [**] IF Syntax as: [%%%%IF:VARIABLE:==|!=|<|>|<=|>=|%|!%|@=|@!|@+|@-|^~|^*|~~|~*|$~|$*|$expr$;%%%%] conditional part if [%%%%ELSE:VARIABLE%%%%] conditional part else [%%%%/IF:VARIABLE%%%%]
  • [**] LOOP Syntax as: [%%%%LOOP:ARRAY-VAR%%%%] ... [%%%%/LOOP:ARRAY%%%%]
  • [**] INCLUDE Sub-Templates Syntax as: [@@@@SUB-TEMPLATE:the-partials-path/the-partial-tpl-to-be-includded.inc.htm@@@@], [@@@@SUB-TEMPLATE:%another-sub-tpl-to-include-as-var%@@@@]
NOTICE: For those that prefer using the Twig Templating Engine syntax instead of using the Marker-TPL Templating syntax into the Smart.Framework, it is possible to do that by loading an extra module available in Smart.Framework.Modules: mod-tpl-twig ! Or more it is possible to load other Templating Engines by creating custom modules as the Smart.Framework is very flexible and extensible.

TPL Test: Markers Templating Render - Basic Syntax
Column 1.x (HTML Escape) Column 2.x (JS Escape) Column 3.x (URL Escape)
<Column 1.1> Column 1.2\n Column%201.3%09
<Column 2.1> Column 2.2\n Column%202.3%09
<Column 3.1> Column 3.2\n Column%203.3%09
1 [ >= 1 ; C2 = a ] a A
1 * 0.123456789 (Numeric Escape)
Smart.Framework TestUnit: Demo and Samples, License: BSD