Html.php
This contains Wizard’s Toolkit functions for creating HTML excluding form fields.
All rights reserved.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Tags
Table of Contents
- wtkPhoneLink() : html
- Create the HTML for a phone link.
- wtkHelp() : html
- Help buttons can be created and placed in multiple places on a page.
- wtkHtmTableTop() : HTML
- HTM Table start.
- wtkSearchReplace() : mixed
- wtkHtmSpace() : HTML
- Create multiple HTM spaces.
- wtkHref() : HTML
- Generate <a > linking tag based on whether accessing from a computer, tablet or phone
- wtkBroadcastAlerts() : html
- This data-driven method of notifying users.
- wtkMergePage() : mixed
- Use HTML template and display entire page (Multi Page Application)
Functions
wtkPhoneLink()
Create the HTML for a phone link.
wtkPhoneLink(
string
$fncPhone
[,
string
$fncPhoneExt =
'' ]
[,
string
$fncShowNumber =
'Y' ]
) : html
If $gloMobileApp = 'Y' this creates JavaScript:postMessage('dialPhone- and the phone number, which is a WTK mobile app function that natively triggers phone feature on smart phones. If $gloMobileApp != 'Y' and user has chosen to "Use Skype for calls" this will use "callto:", otherwise it will use "tel:".
Parameters
- $fncPhone : string
- $fncPhoneExt : string = ''
-
optionally show phone extension
- $fncShowNumber : string = 'Y'
Tags
Return values
html —for href link to phone number
wtkHelp()
Help buttons can be created and placed in multiple places on a page.
wtkHelp(
[
string
$fncHelpIndex =
'' ]
[,
string
$fncHelpTitle =
'' ]
) : html
This creates Help button on a page. It checks to see if help exists and if it doesn't it inserts data so in back-office Help can be added for this page. If help does not currently exist or is "blank help" then it will not show unless User has rights to Add/Edit Help. Users that do have Help permissions can add/edit the help information from the Help popup.
The Help is shown in a MaterializeCSS modal window and can include text and/or video display.
Parameters
- $fncHelpIndex : string = ''
-
defaults to blank and will use PHP page if nothing passed
- $fncHelpTitle : string = ''
-
defaults to blank in which case will use $gloPageTitle if it exists
Tags
Return values
html —of button which calls wtkShowHelp JS function
wtkHtmTableTop()
HTM Table start.
wtkHtmTableTop(
[
string
$fncWidth =
'100%' ]
[,
string
$fncCellSpacing =
'0' ]
[,
string
$fncCellPadding =
'0' ]
[,
string
$fncBorder =
'0' ]
[,
string
$fncAttrib =
'' ])
: HTML
With newer HTML table definitions this is no longer as useful.
Parameters
- $fncWidth : string = '100%'
-
Defaults to '100%'
- $fncCellSpacing : string = '0'
-
Defaults to '0'
- $fncCellPadding : string = '0'
-
Defaults to '0'
- $fncBorder : string = '0'
-
Defaults to '0'
- $fncAttrib : string = ''
-
Defaults to blank
Tags
Return values
HTML —for beginning of a table like