⠿ My notes Help Language: EN
Other functions
Messages, dialogs, buttons and small helpers.
htm_Alert, htm_Banner, htm_Badge show messages and labels. htm_ConfirmPostLink asks before an action that changes data. htm_TableTools adds search and sorting to a table.
Test site and documentation for Clever html engine β’ Errors may occur and future news may be shown β’ ver.1.7.3: 78 core functions.
There are a lot of small functions
that could be mentiond here. e.g. htm_AcceptButt()
that could be mentiond here. e.g. htm_AcceptButt()
htm_AcceptButt() - a programmeble button. You give:
$labl='', # string: The caption on the button
$icon='', # string: The iconclass ( class="fas fa-plus" )
$hint='', # string: hint about the button function
$kind='home', # string: save, navi, goon, erase, create, home (Appearance)
$form='', # string: The form the element belongs to, if a name is given
$acti='', # string: Function to run
$wdth='', # string: The width of the button
$attr='', # string: Generel use e.g. ' action= "$link" '
$akey='', # string: Shortcut to activate the button
$tplc='LblTip_text',# string: Class for Placement of the tooltip
$tsty='', # string: Style for Placement of the tooltip
$idix='', # string: ix-suffix on name/id
$disa=false, # bolean: 'disabled' to deactivate the button
$rtrn=false # bool: Act as procedure: Echo string, or as function: Return string
htm_IconButt() - a general button with icon.
htm_ModalDialog() - A popup message,
locks program and waits for a user response.
msg_System() - Another modal popup message system,
Pmnu_() / Pmnu_end() - A popup context menu system.
A special group of functions:
dvl_ functions - relates to development (tools and design)
htm_ModalDialog() - A popup message,
locks program and waits for a user response.
msg_System() - Another modal popup message system,
Pmnu_() / Pmnu_end() - A popup context menu system.
A special group of functions:
dvl_ functions - relates to development (tools and design)
msg_System() and the short forms show a message when the page is loaded - e.g. after saving. Click to try:
msg_Error()Hint: Tip
You can fold all cards from the card menu.
htm_Banner(): a notice across the page - e.g. Demo data or Read only.
htm_Badge(): New Draft Paid Overdue 3 Info
| Customer | Date | Amount |
|---|---|---|
| Andersen ApS | 03.10.2026 | 1 234,50 |
| Bager Hansen | 28.09.2026 | 89,00 |
| CafΓ© Γrsted | 15.10.2026 | 12 000,00 |
| Dansk Træ A/S | 01.08.2026 | 450,75 |
htm_TextHint() |
Hover the mouse here
This description is hidden until the mouse is over the text
|
htm_Ihead() | Text italic text after a line break |
htm_sp(6) | | | (6 non-breaking spaces) |
htm_space('80px') | | | (a fixed width) |
str_bold() | Bold text |
str_hr() | |
markFirstChar() | Save (marks a shortcut key) |
isBold() / isItal() | isBold('<b>x</b>') = true isItal('x') = false |
str_Synt() | $name = 'value'; // syntax colors |
getOptimalBackground() | #336699#ffcc00#228B22#eeeeee#990000 Black or white background - whichever gives the best contrast to the text color |
htm_TextVer() | htm_TextVer() |
What is php2html?
A PHP library that builds the HTML of a page with one function call per element.
Does the FAQ need JavaScript?
No - it is a <details> element. It also works with the keyboard and screen readers.
Can more answers be open at the same time?
Not when the questions share a grup: opening one closes the others. Leave grup empty to open them all.
Can the answer be shown as plain text?
With code:true the answer is not html: <b>this is not bold</b>
Show the codeHide the code
htm_faq(ques:'@What is php2html?', grup:'demoFaq', open:true, answ:'@A PHP library that builds the HTML of a page with one function call per element.'); htm_faq(ques:'@Does the FAQ need JavaScript?', grup:'demoFaq', answ:'@No - it is a <details> element. It also works with the keyboard and screen readers.'); htm_faq(ques:'@Can more answers be open at the same time?', grup:'demoFaq', answ:'@Not when the questions share a grup: opening one closes the others. Leave grup empty to open them all.'); htm_faq(ques:'@Can the answer be shown as plain text?', code:true, answ:'With code:true the answer is not html: <b>this is not bold</b>');