Grandstream GXV3140 GMI Guide User Manual

Page 35

Advertising
background image

Grandstream Networks, Inc.

GMI HTML SDK and API Guide

Page 35 of 43

www.grandstream.com

Last Updated: 09/2010

$

percent

=

round

(

$

tempnum

/$

sum

,

3

)

;

$

a

=

$

percent

*

100

;

print

"

<tr><td

style='height:20px;valign:left;width:400px;padding-left:5px;'>

";

print

"

<div class='vote_title'

style='float:left;width:120px'>

$

option

[

$

i

]:</div>

";

print

"

<div style='background:#3D97DD;float:left;width:200px;'><div

style='float:left;height:15px;background:

$

bgcolor

[

$

i

];width:

$

a

%;'></div></div>

";

print

"

<div class='vote_title'

style='float:left;padding-left:10px;width:50px'>

$

tempnum

(

$

a

%)</div></td></tr>

";

}

print

"

</table>

";

print

"

</td></tr></table>

";

}

else

{

print

"

<p style='color:red;text-align:center;'>Please select a option

first.</p>

\n

";

}

?>

</

td

>

</

tr

>

</

table

>

//Draw the softkey in html

<

table

id

=

"softkey"

>

<

tr

width

=

"100%"

>

<

td

width

=

"40px"

>

</

td

>

<

td

width

=

"100px"

align

=

"center"

>

<

a

>

&nbsp;&nbsp;

</

a

>

</

td

>

<

td

width

=

"100px"

align

=

"center"

>

<

a

>

&nbsp;&nbsp;

</

a

>

</

td

>

<

td

width

=

"100px"

align

=

"center"

>

<

a

>

&nbsp;&nbsp;

</

a

>

</

td

>

<

td

onclick="

GMIEngine.historypage

(-1)

;

"

width

=

"120px"

align

=

"center"

>

<

a

><

font

class

=

"softkey"

>

Back

</

font

></

a

>

</

td

>

<

td

width

=

"40px"

>

</

td

>

Advertising