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.9.2


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.9.2 - 2026-12-05:
Sorted by name:
  php2html.lib.php  2741: 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, name:'', valu:'', rtrn:false);
  php2html.lib.php  2829: htm_ActionButtA generel action button(labl:'', icon:'', hint:'', type:'button', name:'', form:'', acti:'', attr:'', rtrn:false);
  php2html.lib.php  4284: 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);
  p2h_audit.inc.php    57: htm_AuditLog(capt:'@Activity log', icon:'fa-solid fa-clipboard-list', hint:'', max:500, wdth:'98%', vhgh:'400px', rtrn:false);
  php2html.lib.php  4480: 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  4468: 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  7247: htm_brString function: Add one or more line-breaks(rept:1, rtrn:false);
  php2html.lib.php   737: 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  2145: 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  2346: htm_Card_endFinalize htm_Card_()(labl:'', icon:'', hint:'', kind:'save', name:'', form:'', attr:'', subm:false, akey:'', simu:false, foot:'', rtrn:false);
  php2html.lib.php  4325: htm_ChartA bar or line chart as plain SVG (no JavaScript library) - e.g. prices per hour, sales per month. Charts with the same ymin / ymax share one scale(capt:'', vrnt:'bar', data:[], mark:[], curr:null, unit:'', deci:2, ymin:null, ymax:null, colr:['#7f9bb5','#2fa84f'], wdth:'760px', vhgh:'220px', rtrn:false);
  php2html.lib.php   917: htm_CodeBoxA span containing syntax formattet php-code(code:'', valu:'', synt:true, repl:false, fmat:'', fold:'', rtrn:false);
  php2html.lib.php  4492: 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  2436: 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  2483: 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  1053: htm_DetailsA summery list with collapsible details(capt:'', labl:'', hint:'', type:'h1', mode:'', body:'', styl:'', rtrn:false);
  php2html.lib.php  4592: 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  2031: htm_EmbedView a container with a external resource(name:'', type:'application/pdf', wdth:'800px', vhgh:'2100px', bord:'0', rtrn:false);
  php2html.lib.php   990: 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  2050: 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  1987: 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  2009: htm_Fieldset_endEnd a bordered area(rtrn:false); 
  php2html.lib.php  1029: htm_FigureA image with caption, label and a hint(capt:'', labl:'', hint:'', type:'h1', styl:'', imag:'', info:'', rtrn:false);
  php2html.lib.php  4313: htm_FlashThe messages of sys_redirect(): each shown once. htm_Page_ calls it ($gbl_Flash= false: not) - call it yourself to show them elsewhere(wdth:'700px', rtrn:false);
  php2html.lib.php  2612: htm_Form_Start creating a form(name:'', type:'multipart/form-data', mode:'POST', acti:'', attr:'', rtrn:false);
  php2html.lib.php  2638: htm_Form_endFinalixe a form(rtrn:false);
  php2html.lib.php  2937: 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  7243: htm_hrString function: make horisontal line/ruler(colr:'#0', attr:'', rtrn:false);
  php2html.lib.php  3917: 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  2866: 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  2016: htm_iFrameOutput external content in a local frame(titl:'', srce:'', wdth:'300px', vhgh:'200px', styl:'', rtrn:false);
  php2html.lib.php  7239: htm_IheadString function: make italic-text(html, rtrn:false);
  php2html.lib.php   579: 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   287: 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  3387: htm_LangSelectLanguage selector with flags (used in the view bar): the languages that have translations, plus English(rtrn:false);
  php2html.lib.php  7255: htm_lfString function: Add one or more linefeed(rept:1, rtrn:false);
  php2html.lib.php  4138: htm_LinkButtA general link-button(labl:'', hint:'', link:'', targ:'_blank', attr:'', rtrn:false);
  php2html.lib.php   802: htm_List_Starting various types ef text list(capt:'', vrnt:'ul', type:'disc', styl:'text-align:left;', strt:'', rtrn:false);
  php2html.lib.php   840: htm_List_endEnding a text list(rtrn:false);
  php2html.lib.php   826: htm_List_itemA single item in a text list(labl:'', body:'', rtrn:false);
  php2html.lib.php  4443: htm_LoginWhat to log in to (list:) is only a wish of the user: check on the server that the user may open it - then keep it in $_SESSION['p2h_list'](capt:'@Log in', icon:'fa-solid fa-right-to-bracket', hint:'', labl:'@Choose', list:[], valu:'', user:false, wdth:'cardW320', rtrn:false);
  php2html.lib.php  4989: 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  4872: 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   961: htm_MiniNoteA very small text line(note:'', rtrn:false); Very small text-line
  php2html.lib.php  4194: 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  3874: htm_MultistateButtA special button to switch between many states(name:'ROWyCOLx', valu:'', acti:true, styl:'padding:1px;', rtrn:false);
  php2html.lib.php  7251: htm_nlString function: Add one ore more new line(s)(rept:1, rtrn:false);
  php2html.lib.php  3447: 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   666: 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  3544: 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  5331: htm_Page_Start creating a page [Necessary basic element](titl:'', hint:'', algn:'center', attr:'', info:'', inis:'', imag:'', pbrd:true); 
  php2html.lib.php  7080: htm_Page_endFinalize the htm_Page_()();
  php2html.lib.php  7070: 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  4830: 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  4842: htm_Pmnu_endFinish a popup context menu group(labl:'', hint:'', attr:'', rtrn:false);
  php2html.lib.php  4836: 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  3512: htm_QuickBaralways in reach (from TinyCash, the buttons given by the program)(list:[], rtrn:false);
  php2html.lib.php  2713: 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  2732: htm_RowCol_endCreate the last column(rtrn:false);
  php2html.lib.php  2724: htm_RowCol_nextCreate the next column(wdth:320, rtrn:false);    NextColumn
  php2html.lib.php  2092: htm_Row_Prepare a span with inline-block output(rtrn:false);
  php2html.lib.php  2099: htm_Row_endFinalize the span(rtrn:false);
  php2html.lib.php  7259: htm_spString function: Add one ore more nobreaking spaces [Necessary basic element](rept:1, rtrn:false);
  php2html.lib.php  7263: htm_spaceString function: Make a span with given width(wdth, rtrn:false);
  php2html.lib.php  2912: htm_SubmitButtSubmit button with hint(labl:'',  hint:'', type:'submit', wdth:'', font:'32px', fclr:'#555', bclr:'white', rtrn:false);
  php2html.lib.php  3776: htm_SwitchButtA button with switch layout(labl:'', hint:'', name:'switchbox_id', valu:'', list:[], wdth:'', bclr:'', styl:'', rtrn:false);
  php2html.lib.php  3814: htm_SwitchButtonAnother button with switch layout(labl, hint:'', name:'switchbox_id', valu:'', list:[], wdth:'', bclr:'', styl:'', rtrn:false); 
  php2html.lib.php  4092: 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  1320: 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  4524: 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  4076: htm_Tabs_Start a tab-object with multibly tabs(head:'', styl:'', rtrn:false);
  php2html.lib.php  4120: htm_Tabs_endFinalize a htm_Tabs_() object(foot:'', styl:'', rtrn:false);
  php2html.lib.php  4152: htm_TextAreaCreate a HTML-textarea with multibly lines(labl:'', hint:'', plho:'?', name:'area', valu:'', form:'', wdth:'', attr:'', rows:'1', rtrn:false);
  php2html.lib.php   756: 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  1008: htm_TextHintA div containing a text with a hidden hint(text:'', hint:'', styl:'', attr:'', rtrn:false);
  php2html.lib.php   771: 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   970: htm_TextTipA text with a caption on colored line(capt:'TIP', body:'', wdth:'', algn:'center', colr:'', rtrn:false);
  php2html.lib.php   943: htm_TextVerVertical orientated text(body, algn:'left', marg:'auto', font:'', attr:'', code:false, rtrn:false); Vertical text
  php2html.lib.php  3307: 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  3741: 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  6815: htm_ToastSpecial script: message with auto-timeout(text, bclr:'#333', fclr:'#fff', tout:5000);
 (JavaScript)
  p2h_trans.inc.php   134: htm_TransEditor(capt:'@Translations', icon:'fa-solid fa-language', hint:'', scan:[], code:'', acti:'', sugg:true, prog:'', wdth:'98%', rtrn:false);
  php2html.lib.php  3620: htm_ViewBaruser: the logged in user is shown at the end of the bar - lout: the address that logs out (a sign-out button beside the name)(user:'', lout:'', rtrn:false);
  php2html.lib.php  2598: htm_Wrapp_Start a span with scrolling content in a fixed-height window(vhgh:'400px', rtrn:false); WrapperCard - open
  php2html.lib.php  2605: htm_Wrapp_endFinalize a wrapper window(rtrn:false);
Total: 85 htm_ functions (84 PHP + 1 JavaScript) in the library and its modules - all 109 public functions of the library (also sys_, str_, csrf_ and lang): php2html.api.md
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()
 Hide the Tab-content

htm_Inbox()
 Hide the Tab-content

htm_Input()
 Hide the Tab-content

htm_Page()
 Hide the Tab-content

htm_Table()
 Hide the Tab-content

htm_Tabs()
 Hide the Tab-content


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