Contents

Module | Global | ishop | restau/pc | restau/ce | pda | mobile
lib/ generic.inc.php | v
ishop/ ishop.inc.php |  | v
ishop/ ishop_all_inc.php |  | v | v | v | v
ishop/ ishop_deskx.php |  |  | v | v
pda/ ishop_cex.php |  |  |  |  | v
pda/ ishop_f.inc.php |  |  |  |  | v | v

#### lib/ generic.inc.php

##### class MyCalendar

Contains at least 2 members, array Months with tha names of months, and array Days with the names of week days, starting with Sunday.

##### function myhtml($a)

Alias for htmlspecialchars().

##### function pre($obj,$title="")

Prints $obj through print_r(), using optional title in <h5> enclosure.
Returns nothing.

##### function iGetSessionId(&$db,&$sessionid,&$delta,&$ErrMsg)

Creates new session, fills in sessionid, delta and ErrMsg.
Returns true/false.

##### function iSetSessionData(&$db,$sessid,$data_array,$show_err=false)

Saves (replaces) data_array in session_data file.
Returns true/false.

##### function prSelect($from_number, $to_number, $selection_nr)

Fills contents of a select form field (creates option entries).

##### function prSelectErr($data_array,$sel)

Like prSelect(), but if sel does not exist in values an extra option is created with text=sel.
Returns nothing.

##### function prAssocSelect($assoc_array,$sel)

Like prSelect(), but uses an associative array.
sel refers to an array key. Keys of array are used as option values while values of array are used as option text.
Returns nothing.

##### function prAssocSelErr($assoc_array,$sel)

Like prAssocSelect(), but if sel does not exist in associative array keys, an extra option is created with text=sel.
Returns nothing.

##### function toFloat($a)

Converts a string into float where the decimal separator is either a comma or a point.
Returns the float.

##### function GrDate($a,$sep='/')

Converts date a which is in yyyy-mm-dd ... format into dd-mm-yyyy (Greek format).
Returns conversion string.

##### function GrDate2($a,$sep='/')

Converts date a which is in yyyy-mm-dd ... format into dd-mm-yy (Greek format - 2 digits year).
Returns conversion string.

##### function GrDateTime($a)

Converts date a which is in yyyy-mm-dd hh:mm[:ss] format into dd-mm-yyyy hh:mm[:ss] (Greek format).
Returns conversion string.

##### function GNFormat($x,$d)

Returns number_format($x, $d, ',', '.') (Greek number format).

##### RemoveHtml($src)

Removes html tags form src.
Returns cleared string.

##### function TrimZero($a)

Removes any trailing zeros after comma or dot (decimal number); does also remove decimal point, if there is no decimal digit.
Returns new string.

##### function StrHush($str,$maxshow)

Returns new string based on str with maxshow chars. If initial length exceeds this, a ... (3 dots) is appended.

##### function tr_echo($str)

Executes echo on str enclosed in a TR, TD colspan=10.
Returns nothing.

##### function convertEngToGr($a)

Converts the following chars. into Greek: ABEZHIKMNOPTYXo
Returns new string.

##### function KbdToGr($strin)

Convert English keyboard chars. to Greek.
Returns new string. <>function ToEnglish($strin) Converts Greek 928 to lower English.
Returns new string.

##### class cRECODE

Used internally for ASCCI to UTF8 conversions.

##### function UTF8decode($src)

$src may be a single variable or an array.
Decodes source into Windows-1253 (Greek 928): source can be a single string or an array of strings.
Returns new decoded string or new array of decoded strings.

##### function SingleUTF8decode($a)

Used internally by UTF8decode()

##### function ToUTF8($src)

Encodes source (Greek 928) into UTF-8.
Returns new string.

##### function xlabel($db,$ids,$lang)

Returns associative word for ids and lang language, from ishop dictionary.
If the appropriate language entry does not exist, the English word is returned. If this one does not exist to, the ids itself key is returned back.

##### function ReplaceEx($db, $t1, $data, $prim)

Tries to update table $t1 with $data, which is an associative array of field names, values, if record exists, or insert new record. Decision for record existance is based on key made up of fields contained in array $prim, which should also exist in array $data. Requires the ADO module.

##### function process_meta($db,&$tables,$t1,$query)

Processes meta data for table $t1.

#### ishop/ ishop.inc.php

To be included by ishop modules.

##### array $VatDesArr

##### array $IssueDocsLong

##### class cX2

##### function make_href($url,$data)

Appends associative array $data as name, value pairs to $url, along with SESSIONID and DELTA $_REQUEST variables.

##### function confirm_pwd($db)

##### function request_login()

##### function print_page_header($fu=0)

##### function tr437_928($src,$is437)

##### function getPage()

Returns page no. request based on RSPAGE $_REQUEST variable or 1 otherwise.

##### function getPageSize()

Returns pagesize request based on ADOPAGESIZE $_REQUEST variable or 15 otherwise. Limits answers between 10 and 50.

##### function print_page_sz($fu=0)

Prints button for reseting page size.

##### function print_page_nav($pg,$epage,$fu=0)

Prints 4 buttons for page navigation.

##### function array_toLower($val,$key)

Function to be passed to array_walk()

#### ishop/ ishop_all_inc.php

##### #define MY_VERSION

Defines cMOBILE.
To be included by ishop, restau and pda modules.

##### array $OpeType

##### class cORDTOTAL

##### class cMOBILE

##### function get_subname($o1)

Returns description for subitem based on SUBCOLOR, SUBSIZE, SUBWIDTH, SUBHEIGHT, SUBDEPTH.

##### function getHaspInfo2()

Returns associative array with key, value pairs. Key may be A, B , C, for Pocket.ERP.

##### function ctg_sort($a,$b)

##### function get_vat_perc($vdata,$vatcat)

##### function validate_passwd($db)

##### function cleanup_old_sessions($db)

Cleans 3 hours long old sessions.

##### function clear_session($db)

Deletes specific session SESSIONID.

##### function floatFormat($num,$dd)

Formats float number with $dd decimal digits.

##### class cGRID

Provides support for grid layout.

#### ishop/ ishop_deskx.php

Extends cMOBILE to cDESK.
Included by restau modules.

#### pda/ ishop_cex.php

Extends cMOBILE to cPDA.
Included by pda modules.

#### pda/ ishop_f.inc.php

To be included by pda and mobile apps.

##### array $IssueDocsLong

##### function get_items($seArray)

##### function read_agent_main($db,$agent_id,&$aProps)

##### function full_lpath($Lpath)

##### function get_image_name($Lpath,$icode,$zoom)