Copyright 2010-2017 Obihai Technology, Inc.
133
<!-- If a picture path is not given, shown a generic picture:lock.png -->
<
img
height
=
"
50
"
width
=
"
50
"
xpos
=
"
20
"
valign
=
"
center
"
src
=
"
$pic
"
display
=
"
$eval({$pic}!=)
"
/>
<
img
height
=
"
50
"
width
=
"
50
"
xpos
=
"
20
"
valign
=
"
center
"
src
=
"
http://192.168.15.225:8080/lock.png
"
display
=
"
$eval({$pic}==)
"
/>
<!-- Show Caller ID: Name, Number, and Organization -->
<
text
xpos
=
"
110
"
ypos
=
"
10
"
size
=
"
18
"
width
=
"
120
"
resize
=
"
10
"
wrap
=
"
0
"
font
=
"
@gfont-bold
"
textcolor
=
"
0
"
>
$name
</
text
>
<
text
xpos
=
"
110
"
ypos
=
"
32
"
size
=
"
16
"
width
=
"
120
"
resize
=
"
10
"
wrap
=
"
0
"
font
=
"
@gfont
"
textcolor
=
"
0x050505
"
>
$number
</
text
>
<
text
xpos
=
"
110
"
ypos
=
"
52
"
size
=
"
16
"
width
=
"
120
"
resize
=
"
10
"
wrap
=
"
0
"
font
=
"
@gfont
"
textcolor
=
"
0x050505
"
>
$cid.org
</
text
>
</
span
>
</
ScreenItem
>
where for example
http://abc-pub.com/cid-var-tree.php?name=Joe%20Smith&tel=4089991234
would
return a
“var
-
tree” XML
document such as this:
<
cid
value
=
"
1
"
>
<
org
value
=
"
ABC Publishing, Inc.
"
>
<
title
value
=
"
VP, Sales
"
/>
</
org
>
<
name
value
=
"
Joe Smith
"
/>
</
cid
>
Elements in a <ScreenItem> XML
Element
Attributes
Description
<SreenItem> Required: height
Optional: bgcolor,
hlcolor, height2
The root element. The highlighted screen item uses the hlcolor attribute
as its background color; other screen items use the bgcolor attribute as
their background color. If bgcolor is not specified, the default value is
“0xffffff”. If hlcolor is not specified, it takes the same value as bgcolor.
The height attribute determines the height (in number of pixels) of the
item on screen. The maximum value is 204 for OBi1032/1062, 171 for
OBi1022, and 360 for OBi2000 Series
<span>
Required: height
Optional: align, valign,
width, xpos, ypos,
bgcolor, textcolor, font,
size
<span> defines a rectangular region with its own background color (that
overrides the bgcolor/hlcolor attribute of the screen item). It can be used
to define for example a caption area for the <ScreenItem>
<img>
Required: src
Optional: align, valign,
width, height, xpos,
ypos, resize
<img> specifies a rectangular region and a URL of a picture to display in
that rectangular region
<text>
Required:
Optional: align, valign,
width, height, xpos,
ypos, size, font,
textcolor, shadow,
hide-text, hidden-if-
empty
Tips: Use
 
to insert a white space inside <text>
<dict>
Required:
Optional: ns
<dict> may be used inside a <text> element only to translate the enclosed
phrase into another one if an entry exists that matches the given text;
otherwise the same text is used for the translated text.
<setvar>
Required: name, value
Sets the value of a temporary variable with the given name within the
scope of the <ScreenItem> it is defined in. Normally you would use $
{name} in the same <ScreenItem> to use the value of the defined variable
(any undefined variable would evaluate to an empty string). A special case
is when the value attribute evaluates to an http/https URL, in which case