[Simplify html in sip trace screen Adrian Georgescu **20061124210842] hunk ./cdrlib_ser.phtml 4132 - //$traceSortOrder= $_REQUEST['traceSortOrder']; - - if ($traceSortOrder && ($traceSortOrder == "ASC" || $traceSortOrder == "DESC") ) { - } else { - $traceSortOrder="ASC"; - } hunk ./cdrlib_ser.phtml 4136 - if ($status) $query=$query." and status = '$status' "; - if ($method) $query=$query." and method = '$method'"; + if ($status) $query.=" and status = '$status' "; + if ($method) $query.=" and method = '$method'"; hunk ./cdrlib_ser.phtml 4139 - $query=$query. " order by id $traceSortOrder limit 250"; + $query.=" order by id limit 1000"; hunk ./cdrlib_ser.phtml 4168 - SIP trace for session id $callid is not available. - "; + SIP trace for session id $callid is not available."; hunk ./cdrlib_ser.phtml 4172 - hunk ./cdrlib_ser.phtml 4190 - $msg=$this->db->f('msg'); hunk ./cdrlib_ser.phtml 4191 - $trace_array[$this->db->f('id')]=array ( - 'id' => $this->db->f('id'), - 'direction' => $this->db->f('direction'), - 'fromip' => $this->db->f('fromip'), - 'toip' => $toip, - 'method' => $this->db->f('method'), - 'protocol' => $protocol, - 'date' => $this->db->f('date'), - 'status' => $this->db->f('status'), - 'timestamp' => $this->db->f('timestamp'), - 'msg' => $msg - ); + $trace_array[$this->db->f('id')]= + array ( + 'id' => $this->db->f('id'), + 'direction' => $this->db->f('direction'), + 'fromip' => $this->db->f('fromip'), + 'toip' => $toip, + 'method' => $this->db->f('method'), + 'protocol' => $protocol, + 'date' => $this->db->f('date'), + 'status' => $this->db->f('status'), + 'timestamp' => $this->db->f('timestamp'), + 'msg' => $this->db->f('msg') + ); hunk ./cdrlib_ser.phtml 4215 - $trace_array[$key]['arrow_align'] = "left"; + $trace_array[$key]['arrow_align'] = "right"; hunk ./cdrlib_ser.phtml 4218 - $trace_array[$key]['arrow_align'] = "right"; + $trace_array[$key]['arrow_align'] = "left"; hunk ./cdrlib_ser.phtml 4229 - $trace_array[$key]['arrow_align'] = "right"; + $trace_array[$key]['arrow_align'] = "left"; hunk ./cdrlib_ser.phtml 4232 - $trace_array[$key]['arrow_align'] = "left"; + $trace_array[$key]['arrow_align'] = "right"; hunk ./cdrlib_ser.phtml 4243 - - /* - print "
";
-        print_r($column);
-        print_r($trace_array);
-        print "
"; - */ - - $i=0; - print " -

- "; - hunk ./cdrlib_ser.phtml 4246 - "; - - $colspan=2+count($column); - - print " +
+ hunk ./cdrlib_ser.phtml 4356 - if ($direction == "out") { - $cell_content.="
Destination: $toip"; - } - hunk ./cdrlib_ser.phtml 4394 - print " hunk ./cdrlib_ser.phtml 4420 - + } else { + print " - +
- "; - - if ($msg_possition == $column_current) { - print $cell_content; - } - hunk ./cdrlib_ser.phtml 4413 - print " - - - "; - if ($arrow_align == 'center') { - /* - print " - - "; - */ - } else if ($arrow_align == 'left') { - print " - - - "; - } else if ($arrow_align == 'right'){ - print " - - - "; - } - print " - -
+ } + + if ($arrow_possition==$column_current) { + print " +
+ + "; + } hunk ./cdrlib_ser.phtml 4425 + if ($msg_possition == $column_current) { + print $cell_content; hunk ./cdrlib_ser.phtml 4429 + hunk ./cdrlib_ser.phtml 4450 - $trace_span=count($column); + $trace_span=count($column)+2; hunk ./cdrlib_ser.phtml 4454 - + hunk ./cdrlib_ser.phtml 4461 - + hunk ./cdrlib_ser.phtml 4479 - //$msg=htmlentities($msg); hunk ./cdrlib_ser.phtml 4482 - + hunk ./cdrlib_ser.phtml 4489 - hunk ./cdrlib_ser.phtml 4492 -