require_once 'class/config.inc.php'; require_once 'class/class.yui.php'; require_once 'class/class.asterisk.php'; $yui = new phpyui("/yui2"); if (PHONE_SYSTEM == "asterisk") { $phone = new Asterisk(); $calls = $phone->get_current_calls($user_id); $printr = print_r($calls, true); /* cid = number * name = full name * contact_id = cid * type = Type * */ $printr = "<textarea style='width: 300px;height: 300px;'> {$printr} </textarea>"; $printr = $yui->string_to_xml($printr); } else { $calls = array(); } $tmparr = array(); function display_number($t) { return "(" . $t[0] . $t[1] . $t[2] . ") " . $t[3] . $t[4] . $t[5] . "-" . $t[6] . $t[7] . $t[8] . $t[9]; } function create_button($id, $text, $class, $onclick) { $return = "<div id='{$id}' style='border: 2;background: url(images/{$class}.png);background-position:right top;height: 28px; align: center; width: 70px;float: left;' onMouseOver='document.getElementById(\"{$id}\").style.background=\"url(images/{$class}-mo.png)\"' onMouseOut='document.getElementById(\"{$id}\").style.background=\"url(images/{$class}.png)\"' onMouseOver='document.getElementById(\"{$id}\").style.background=\"url(images/{$class}-mo.png)\"' onMouseup='document.getElementById(\"{$id}\").style.background=\"url(images/{$class}.png)\"' onClick='document.getElementById(\"{$id}\").style.background=\"url(images/{$class}-press.png)\";{$onclick}'><a style='font-weight: bold;padding: 10px;position: relative; top: 5px;color: white;' >{$text}</a></div>"; return $return; } $array = array(); foreach ($calls as $call) {
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ ini_set("display_errors", 1); require_once 'class/class.yui.php'; $yui = new phpyui("/yui2"); echo $yui->string_to_xml('<div id="About" class="Rec"><div id="HANDELNAME" class="Handle">TITLE</div><div class="Info">INNERHTML</div></div>'); ?> <div style="background:#2647a0 url(images/bluebar2.png) repeat-x;border:solid #a3a3a3;border-width:0 1px;color:#000;position:relative;text-decoration:none;height: 80px;width: 100px;"> </div>