misc

Library for work with others.  It contains function for work with xhtml and http headers, some convert functions etc.  There are some global variables which are use all over the framework.  Release: $Name: $

Edit by: $Author: mcbig $ Edit Date: $Date: 2007/01/02 16:13:12 $ Version: $Revision: 1.4 $

Summary
Library for work with others.
Simple hack when php has no gettext support
Base header of page
Header of page for printing todo: stylesheet could be changeble via another functions (user print skins)
Html end with line (class=”line”) and some text.
Send HTTP header to browser with new Location, so this is redirection without javascript.
Call html_reload_url function with index.php address.
Call html_reload_url with address index.php and GET variables, which are actual send to server.
Return buffer StatusBar from _SESSION and clear it.
Compare user rights with $icRight.

Functions

Start_err

function Start_err()

_

function _($isText)

Simple hack when php has no gettext support

html_header

function html_header($isTitle)

Base header of page

TODO: author, copyrights and robots could be defined in config.php

TODO: stylesheet could be changeble via another functions (user skins)

Header4Print

function Header4Print($isTitle)

Header of page for printing todo: stylesheet could be changeble via another functions (user print skins)

html_end

function html_end()

html_end_line

function html_end_line($isUnderLine)

Html end with line (class=”line”) and some text.

OpenPrint

function OpenPrint()

CenterObject

function CenterObject($isHtmlObject)

html_reload_url

function html_reload_url($isPage)

Send HTTP header to browser with new Location, so this is redirection without javascript.

html_reload

function html_reload($isGet = '')

Call html_reload_url function with index.php address.

isGetGET variables, which is send to server (?module=test).

If you want send some yours GET variables, remember to & which must be write as & not as & !

html_reload_view

function html_reload_view()

Call html_reload_url with address index.php and GET variables, which are actual send to server.

PopStatus

function PopStatus()

Return buffer StatusBar from _SESSION and clear it.  Buffer is in _SESSION cause after some Status can be call html_reload.

MinimalizeText

function MinimalizeText($text,  
$lengt,  
$adding =  '...')

EditSplashs

function EditSplashs($Text)

nl2br2html

function nl2br2html($Text)

EntityViewFce

function EntityViewFce(&$iaRow,
$inKey)

GetSelectInput

function GetSelectInput($iaOptions,
$irId)

Time2DB

function Time2DB($inTime)

DB2Time

function DB2Time($isTime)

Time2Human

function Time2Human($inTime)

CheckRights

function CheckRights($icRight)

Compare user rights with $icRight.  Administrator (‘A’) have all rights

function Start_err()
function _($isText)
Simple hack when php has no gettext support
function html_header($isTitle)
Base header of page
function Header4Print($isTitle)
Header of page for printing todo: stylesheet could be changeble via another functions (user print skins)
function html_end()
function html_end_line($isUnderLine)
Html end with line (class=”line”) and some text.
function OpenPrint()
function CenterObject($isHtmlObject)
function html_reload_url($isPage)
Send HTTP header to browser with new Location, so this is redirection without javascript.
function html_reload($isGet = '')
Call html_reload_url function with index.php address.
This file sorts requirements for system by module.
function html_reload_view()
Call html_reload_url with address index.php and GET variables, which are actual send to server.
function PopStatus()
Return buffer StatusBar from _SESSION and clear it.
function MinimalizeText($text,  
$lengt,  
$adding =  '...')
function EditSplashs($Text)
function nl2br2html($Text)
function EntityViewFce(&$iaRow,
$inKey)
function GetSelectInput($iaOptions,
$irId)
function Time2DB($inTime)
function DB2Time($isTime)
function Time2Human($inTime)
function CheckRights($icRight)
Compare user rights with $icRight.