Skip to the contentGo to the view tools

functions.page.php



Test site and documentation for Clever html engine β€’ Errors may occur and future news may be shown β€’ ver.1.7.3: 78 core functions.


MOVE: Drag to place this card elsewhere among the cards. Alt + arrow up/down: one place. The order is remembered in this browser.Overview over the system functions: TOGGLE-height: Click icon to toggle viewHeight for this card WIDE: Click to maximize/normalize this card width COLLAPSE: Click to close all cards EXPAND: Click to open all cards
FUNCTIONS - vers. 1.7.3 - 2026-10-20:
Sorted by name:
  php2html.lib.php  2661: htm_AcceptButtA button for different purposes with colors according to purpose: Delete/Create/Navigate/Continue/Submit  [Necessary basic element](labl:'', icon:'', hint:'', kind:'home', form:'', acti:'', wdth:'', attr:'', akey:'', tplc:'LblTip_text', tsty:'', idix:'', disa:false, rtrn:false);
  php2html.lib.php  2745: htm_ActionButtA generel action button(labl:'', icon:'', hint:'', type:'button', name:'', form:'', acti:'', attr:'', rtrn:false);
  php2html.lib.php  4105: htm_AlertA message box in the page: success / error / warning / info - theme colors, also in the dark theme (from NH-logistik)(body:'', kind:'success', wdth:'700px', rtrn:false);
  php2html.lib.php  4132: htm_BadgeA small label: a status, a count or "New" - e.g. in tables and menus (from NH-logistik)(labl:'', hint:'', kind:'secondary', rtrn:false);
  php2html.lib.php  4120: htm_BannerA banner across the page: a short notice with a colored edge, e.g. "Demo data" or "Read only" (from NH-logistik)(body:'', kind:'warning', rtrn:false);
  php2html.lib.php  6848: htm_brString function: Add one or more line-breaks(rept:1, rtrn:false);
  php2html.lib.php   699: htm_CaptionA caption with icon, label and hint(labl:'',icon:'',hint:'',algn:'',styl:'color:#550000; font-weight:600; font-size: 13px;',rtrn:false);
  php2html.lib.php  2064: htm_Card_An advanced span with lots of functionality [Necessary basic element](capt:'', icon:'', hint:'tgl', mode:'2', form:'', acti:'', wdth:'', vhgh:'600px', fclr:'', styl:'background-color: white;', attr:'margin-bottom: 8px;', clas:'cardWmax', show:true, poup:true, head:'background-color: white;', help:'', frst:'', last:'', simp:false, fold:'', elem:'span', move:true, rtrn:false);
  php2html.lib.php  2266: htm_Card_endFinalize htm_Card_()(labl:'', icon:'', hint:'', kind:'save', name:'', form:'', attr:'', subm:false, akey:'', simu:false, foot:'', rtrn:false);
  php2html.lib.php   879: htm_CodeBoxA span containing syntax formattet php-code(code:'', valu:'', synt:true, repl:false, fmat:'', fold:'', rtrn:false);
  php2html.lib.php  4144: htm_ConfirmPostLinkA button for an action that changes data (e.g. Delete): asks "Are you sure?" and then POSTs with the CSRF token (from NH-logistik)(labl:'', icon:'', hint:'', kind:'danger', mess:'@Are you sure?', data:[], acti:'', rtrn:false);
  php2html.lib.php  2356: htm_DataGroupA span/group with a set of labels and data(capt:'', icon:'', hint:'', data:[['Label0','Data0','Lstyl','Dstyl']], wdth:'', vhgh:'600px', bord:'3px solid black;', fclr:'', styl:'', attr:'', head:'', foot:'', rtrn:false);
  php2html.lib.php  2403: htm_DataListAn input field with a list of values to pick from (HTML datalist)(capt: '@Choose here from the list:', icon: 'fas fa-database', hint: '@Use datalist to pick a value from list', plho: '?', name: '', data: ['Itm1','Itm2','Itm3','Itm4'], form: '', acti: '', wdth: '220px', bord: '1px solid black; border-radius: 5px;', fclr: 'color: green;', attr: '', rtrn: false);
  php2html.lib.php  1015: htm_DetailsA summery list with collapsible details(capt:'', labl:'', hint:'', type:'h1', mode:'', body:'', styl:'', rtrn:false);
  php2html.lib.php  4244: htm_DialogCreate a Dialog with alternative buttons to select between [Necessary basic element](capt:'CAPTION', labl:'@Open dialog', body:'', bclr:'lightyellow', butt:[], rtrn:false); Modal dialog:
  php2html.lib.php  1950: htm_EmbedView a container with a external resource(name:'', type:'application/pdf', wdth:'800px', vhgh:'2100px', bord:'0', rtrn:false);
  php2html.lib.php   952: htm_faqA question with a folded answer (FAQ) - one at a time when they share a grup(ques:'', answ:'', wdth:'', open:false, grup:'', code:false, rtrn:false); Question and answer
  php2html.lib.php  1969: htm_FieldMake a box like htm_input() with label, icon and hint(labl:'', icon:'', hint:'', name:'fld', body:'', wdth:'', styl:'', attr:'', llgn:'C', ftop:'', rtrn:false); #FIELD:
  php2html.lib.php  1906: htm_FieldsetStart a bordered area with a caption, icon ant hint (Remaned from: htm_Fieldset_)(capt:'',icon:'',hint:'',wdth:'',marg:'',styl:'',attr:'',rtrn:false);
  php2html.lib.php  1928: htm_Fieldset_endEnd a bordered area(rtrn:false); 
  php2html.lib.php   991: htm_FigureA image with caption, label and a hint(capt:'', labl:'', hint:'', type:'h1', styl:'', imag:'', info:'', rtrn:false);
  php2html.lib.php  2532: htm_Form_Start creating a form(name:'', type:'multipart/form-data', mode:'POST', acti:'', attr:'', rtrn:false);
  php2html.lib.php  2558: htm_Form_endFinalixe a form(rtrn:false);
  php2html.lib.php  2853: htm_GoTopButtSpecial buttons for going to top/middle/bottom of page(labl:'@Top', icon:'fa-solid fa-arrow-up', hint:'@Go to page top', styl:'', rtrn:false);
  php2html.lib.php  6844: htm_hrString function: make horisontal line/ruler(colr:'#0', attr:'', rtrn:false);
  php2html.lib.php  3753: htm_HumantestButton for test human or robot(capt:'@Are you human? ', icon:'fa-solid fa-arrow-right-to-bracket', hint:'@Grab and slide to right to change state', form:'form-id', wdth:'200px', vhgh:'24px', bclr: '#1bd441', yclr:'lightgray', nclr:'white', xytx:'@YES', ntxt:'@NO', rtrn: false);
  php2html.lib.php  2782: htm_IconButtA generel botton with icon and label [Necessary basic element](labl:'', icon:'', hint:'', type:'submit', name:'', link:'', evnt:'', wdth:'', font:'32px', fclr:'#555', bclr:'white', akey:'', rtrn:false);
  php2html.lib.php  1935: htm_iFrameOutput external content in a local frame(titl:'', srce:'', wdth:'300px', vhgh:'200px', styl:'', rtrn:false);
  php2html.lib.php  6840: htm_IheadString function: make italic-text(html, rtrn:false);
  php2html.lib.php   541: htm_InboxA ontainer with: Border, Label, Hint, (Placeholder)(labl:'', icon:'', hint:'', plho:'@Enter...', vrnt:'noUse', name:'Body_div', valu:'', list:['noUse'], form:'noUse', wdth:'200px', algn:'left', bord:'1px solid var(--grayColor);', attr:'', unit:'noUse', disa:false, rows:'noUse', step:'noUse', llgn:'R', ftop:'', edit:null, rtrn:false);
  php2html.lib.php   258: htm_InputAn advanced object rel. in-output of data [Necessary basic element](labl:'', icon:'', hint:'', plho:'@Enter...', vrnt:'text', name:'', valu:'', list:[], form:'', wdth:'100%', algn:'left', bord:'', attr:'', unit:'', disa:false, rows:'2', step:'', llgn:'R', ftop:'', lpos:'', rtrn:false);
  php2html.lib.php  3246: htm_LangSelectLanguage selector with flags (used in the view bar): the languages that have translations, plus English(rtrn:false);
  php2html.lib.php  6856: htm_lfString function: Add one or more linefeed(rept:1, rtrn:false);
  php2html.lib.php  3959: htm_LinkButtA general link-button(labl:'', hint:'', link:'', targ:'_blank', attr:'', rtrn:false);
  php2html.lib.php   764: htm_List_Starting various types ef text list(capt:'', vrnt:'ul', type:'disc', styl:'text-align:left;', strt:'', rtrn:false);
  php2html.lib.php   802: htm_List_endEnding a text list(rtrn:false);
  php2html.lib.php   788: htm_List_itemA single item in a text list(labl:'', body:'', rtrn:false);
  php2html.lib.php  4641: htm_Menu_LeftoutA page-menu to the left of the page(capt:'Clever html engine', data:[], wdth:'180px', styl:'', foot:'', rtrn:false);
  php2html.lib.php  4524: htm_Menu_TopDownA page-menu on top of the page(capt:'Clever html engine', note:'', data:[], wdth:'150px', styl:'', foot:'PHP2HTML', niv0:'', niv1:'', niv2:'', them:true, view:null, rtrn:false);
  php2html.lib.php   923: htm_MiniNoteA very small text line(note:'', rtrn:false); Very small text-line
  php2html.lib.php  4015: htm_ModalDialogCreate a modal popup window with color-coded background(capt:'@VoilΓ !', type:'none', mess:'', html:'CSS-based Modal Dialog', butt:['type:','icon:','labl:','hint:','link:'], rtrn:false); 
  php2html.lib.php  3710: htm_MultistateButtA special button to switch between many states(name:'ROWyCOLx', valu:'', acti:true, styl:'padding:1px;', rtrn:false);
  php2html.lib.php  6852: htm_nlString function: Add one ore more new line(s)(rept:1, rtrn:false);
  php2html.lib.php  3306: htm_NotePadA personal notepad: plain text, saved automatically in this browser (the same notes on all pages of the site) - from TinyCash(rtrn:false);
  php2html.lib.php   628: htm_OutputGeneral output for pt. Progress etc. [Necessary basic element](labl:'', icon:'', hint:'', vrnt:'pgrs', name:'', valu:'', form:'', bclr:'white', attr:'', vmax:'', rtrn:false);
  php2html.lib.php  3395: htm_PageHelpHelp for the page: a "?" button (in the view bar) and a movable window with the help text of this page (from TinyCash)(rtrn:false);
  php2html.lib.php  4978: htm_Page_Start creating a page [Necessary basic element](titl:'', hint:'', algn:'center', attr:'', info:'', inis:'', imag:'', pbrd:true); 
  php2html.lib.php  6688: htm_Page_endFinalize the htm_Page_()();
  php2html.lib.php  6678: htm_Page_SectA paragraf with border, can be used as a page-footer, or separator on a page.(body, styl:'border: 1px solid #888; border-radius: 8px; overflow: hidden; margin: auto; background-color:white;', rtrn:false);
  php2html.lib.php  4482: htm_Pmnu_Init popup context menu group(capt:'', icon:'', wdth:'210px', attr:'background-color:lightcyan; height: 26px; border: 2px solid lightgray; border-radius: 4px; margin-left: 1px;', elem:'id', stck:'false', cntx:true, rtrn:false);
  php2html.lib.php  4494: htm_Pmnu_endFinish a popup context menu group(labl:'', hint:'', attr:'', rtrn:false);
  php2html.lib.php  4488: htm_Pmnu_ItemAdd a popup context menu item(labl:'', icon:'', hint:'', vrnt:'plain', name:'', clck:'', attr:'', shrt:'', enbl:'true', rtrn:false, disa:null);
  php2html.lib.php  3370: htm_QuickBarA fixed bar at the bottom of the window with shortcuts, e.g. "New invoice" (from TinyCash, the buttons given by the program)(list:[], rtrn:false);
  php2html.lib.php  2633: htm_RowCol_Start a first column in a div(wdth:240, rtrn:false);        ColumnTop // Must be followed/ended of htm_RowCol_end()
  php2html.lib.php  2652: htm_RowCol_endCreate the last column(rtrn:false);
  php2html.lib.php  2644: htm_RowCol_nextCreate the next column(wdth:320, rtrn:false);    NextColumn
  php2html.lib.php  2011: htm_Row_Prepare a span with inline-block output(rtrn:false);
  php2html.lib.php  2018: htm_Row_endFinalize the span(rtrn:false);
  php2html.lib.php  6860: htm_spString function: Add one ore more nobreaking spaces [Necessary basic element](rept:1, rtrn:false);
  php2html.lib.php  6864: htm_spaceString function: Make a span with given width(wdth, rtrn:false);
  php2html.lib.php  2828: htm_SubmitButtSubmit button with hint(labl:'',  hint:'', type:'submit', wdth:'', font:'32px', fclr:'#555', bclr:'white', rtrn:false);
  php2html.lib.php  3612: htm_SwitchButtA button with switch layout(labl:'', hint:'', name:'switchbox_id', valu:'', list:[], wdth:'', bclr:'', styl:'', rtrn:false);
  php2html.lib.php  3650: htm_SwitchButtonAnother button with switch layout(labl, hint:'', name:'switchbox_id', valu:'', list:[], wdth:'', bclr:'', styl:'', rtrn:false); 
  php2html.lib.php  3913: htm_TabCreate a tab in the htm_Tabs_() object [Necessary basic element](labl:'', name:'', body:'', vhgh:'', bclr:'white', styl:'text-align: left; box-shadow: 3px 3px 6px 0px #ccc; padding: 5px; background-color: white;', dflt:false);
  php2html.lib.php  1243: htm_TableA table with records: sort, filter, edit, add rows and export to CSV [Necessary basic element](capt:[ ], pref:[ ], body:[ ], suff:[ ], note:'', list:['',''], data:[], wdth:'98%', vhgh:'400px', styl:'', filt:true, sort:true, crea:true, modi:true, from:__FILE__, expo:'', rtrn:false);
  php2html.lib.php  4176: htm_TableToolsSearch and sort for a table - without jQuery: a search field with "x of y rows", and sorting by clicking a column header (from NH-logistik)(tabl:'', plho:'@Search...', srch:true, sort:true, rtrn:false);
  php2html.lib.php  3897: htm_Tabs_Start a tab-object with multibly tabs(head:'', styl:'', rtrn:false);
  php2html.lib.php  3941: htm_Tabs_endFinalize a htm_Tabs_() object(foot:'', styl:'', rtrn:false);
  php2html.lib.php  3973: htm_TextAreaCreate a HTML-textarea with multibly lines(labl:'', hint:'', plho:'?', name:'area', valu:'', form:'', wdth:'', attr:'', rows:'1', rtrn:false);
  php2html.lib.php   718: htm_TextDivText formatted in a div(body:'', algn:'left', marg:'8px', styl:'box-shadow: 3px 3px 6px 0px #ccc; padding: 5px; border: solid 1px lightgray; ',attr:'background-color: white;', rtrn:false );
  php2html.lib.php   970: htm_TextHintA div containing a text with a hidden hint(text:'', hint:'', styl:'', attr:'', rtrn:false);
  php2html.lib.php   733: htm_TextPreText displayed in a fixed-width font, and preserves both spaces and line breaks(body, algn:'left', marg:'8px', font:'', attr:'', code:false, rtrn:false);  Preformatted HTML text
  php2html.lib.php   932: htm_TextTipA text with a caption on colored line(capt:'TIP', body:'', wdth:'', algn:'center', colr:'', rtrn:false);
  php2html.lib.php   905: htm_TextVerVertical orientated text(body, algn:'left', marg:'auto', font:'', attr:'', code:false, rtrn:false); Vertical text
  php2html.lib.php  3217: htm_ThemeButtA button that cycles the page theme: light -> dark -> auto (follows the operating system) -> custom. The choice is remembered.(labl:'', hint:'@...', rtrn:false);
  php2html.lib.php  3577: htm_ThemeEditorEditor for the user's own theme: pick a few base colors, see the result live, save it in this browser.(rtrn:false);
  php2html.lib.php  6427: htm_ToastSpecial script: message with auto-timeout(text, bclr:'#333', fclr:'#fff', tout:5000);
  php2html.lib.php  3463: htm_ViewBarZoom and position are remembered in this browser. Drag the grip - double-click it (or Home) to put it back.(rtrn:false);
  php2html.lib.php  2518: htm_Wrapp_Start a span with scrolling content in a fixed-height window(vhgh:'400px', rtrn:false); WrapperCard - open
  php2html.lib.php  2525: htm_Wrapp_endFinalize a wrapper window(rtrn:false);
Total: 80 htm_Functions
Tip: Hovering the mouse over function names (or tabbing to them) displays a short description.

Drag to resize the card (or use the arrow keys). Double-click or Home: original sizeColumn view: the column decides the width of the card - only the height can be dragged (down to less than the content). Turn the column view off to change the width.
MOVE: Drag to place this card elsewhere among the cards. Alt + arrow up/down: one place. The order is remembered in this browser.Notes about function parameters - Keywords table(); TOGGLE-height: Click icon to toggle viewHeight for this card WIDE: Click to maximize/normalize this card width COLLAPSE: Click to close all cards EXPAND: Click to open all cards

Function parameter names, are shortened to 4 characters.
This gives a pretty lookout of the code,
and the possibility for syntax coloring of words.
Here is en explanation of all shortened names:
Key. The 4 character name
{Editable}
Meening/Description What the name means
{Editable}
Note A note
{Editable}

Here are the list of keys, which you can copy/paste to your editors list for syntaks words:
labl capt body foot plho icon hint desc type name valu vmax vmin form subm acti clas wdth heig algn marg styl attr mode font colr fclr bclr llgn link targ akey kind echo unit disa rows step bord plac rept rtrn titl info inis imag pbrd simu clck stck cntx text html srce butt mess tplc tsty head evnt note rept shrt frst last from to__ elem pref suff filt data crea modi expo just sort filt vrnt capt pref body suff idix note data filt sort crea modi vhgh styl from list enbl dflt strt expo show poup help fold ftop code synt repl fmat vlue niv0 niv1 niv2 niv3 niv4 niv5 niv6 niv7 tout opti extr ques answ grup open edit simp move lpos srch tabl them view yclr nclr xytx ntxt hght widt wrds patt
Built-in Translate - meens the htm_lang() function, mostly is called inside the function, so there are no need to convert the text before the function call. Just use the @-prefix
Drag to resize the card (or use the arrow keys). Double-click or Home: original sizeColumn view: the column decides the width of the card - only the height can be dragged (down to less than the content). Turn the column view off to change the width.
MOVE: Drag to place this card elsewhere among the cards. Alt + arrow up/down: one place. The order is remembered in this browser.PHP parameters variants: TOGGLE-height: Click icon to toggle viewHeight for this card WIDE: Click to maximize/normalize this card width COLLAPSE: Click to close all cards EXPAND: Click to open all cards
Important about function parameters:
From PHP 8.0 you can give parameters to functions as:
Named arguments
--> Specify only required parameters, skipping optional ones. (free order!)
--> Arguments are order-independent and self-documented.

With positional arguments the order is fixed, and all arguments up to the last one you need must be given.

The library needs PHP 8.1 or newer.

Drag to resize the card (or use the arrow keys). Double-click or Home: original sizeColumn view: the column decides the width of the card - only the height can be dragged (down to less than the content). Turn the column view off to change the width.
MOVE: Drag to place this card elsewhere among the cards. Alt + arrow up/down: one place. The order is remembered in this browser.Advanced functions catalog: TOGGLE-height: Click icon to toggle viewHeight for this card WIDE: Click to maximize/normalize this card width COLLAPSE: Click to close all cards EXPAND: Click to open all cards
Details about the most used and complex system functions. htm_Card()
 

htm_Inbox()
 

htm_Input()
 

htm_Page()
 

htm_Table()
 

htm_Tabs()
 


Drag to resize the card (or use the arrow keys). Double-click or Home: original sizeColumn view: the column decides the width of the card - only the height can be dragged (down to less than the content). Turn the column view off to change the width.
MOVE: Drag to place this card elsewhere among the cards. Alt + arrow up/down: one place. The order is remembered in this browser.Other functions: TOGGLE-height: Click icon to toggle viewHeight for this card WIDE: Click to maximize/normalize this card width COLLAPSE: Click to close all cards EXPAND: Click to open all cards
In addition to system functions, php2html.php contains declarations for
other functions without prefix: htm_
They are usable in your project, but are only documented in php2html.php

Drag to resize the card (or use the arrow keys). Double-click or Home: original sizeColumn view: the column decides the width of the card - only the height can be dragged (down to less than the content). Turn the column view off to change the width.

Open source - π˜“π˜π˜Šπ˜Œπ˜•π˜šπ˜Œ & 𝘊𝘰𝘱𝘺𝘳π˜ͺ𝘨𝘩𝘡 Β© 2019-2026 EV-soft *** See the file: LICENSE