diff --git a/app/call_block/call_block_edit.php b/app/call_block/call_block_edit.php index 62248c6acc..cdc28c27e0 100644 --- a/app/call_block/call_block_edit.php +++ b/app/call_block/call_block_edit.php @@ -256,16 +256,6 @@ require_once "resources/header.php"; //show the content - echo ""; - echo "
\n"; echo "\n"; echo "\n"; @@ -415,7 +405,7 @@ echo th_order_by('caller_id_number', $text['label-number'], $order_by, $order); echo th_order_by('start_stamp', $text['label-called-on'], $order_by, $order); echo th_order_by('duration', $text['label-duration'], $order_by, $order); - echo "\n"; + //echo "\n"; echo ""; $c = 0; $row_style["0"] = "row_style0"; @@ -423,14 +413,14 @@ if (is_array($result) && sizeof($result) != 0) { foreach($result as $row) { - $tr_onclick = " onclick=\"call_block_recent('".escape($row['xml_cdr_uuid'])."','".urlencode(escape($row['caller_id_name']))."');\" "; + $tr_href = " href='call_block_cdr_add.php?cdr_id=".urlencode($row['xml_cdr_uuid'])."&name=".urlencode($row['caller_id_name'])."' "; if (strlen($row['caller_id_number']) >= 7) { if (defined('TIME_24HR') && TIME_24HR == 1) { $tmp_start_epoch = date("j M Y H:i:s", $row['start_epoch']); } else { $tmp_start_epoch = date("j M Y h:i:sa", $row['start_epoch']); } - echo "\n"; + echo "\n"; if ( file_exists($_SERVER["DOCUMENT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_inbound_missed.png") && file_exists($_SERVER["DOCUMENT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_inbound_connected.png") && @@ -457,40 +447,38 @@ else { echo " "; } - echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; $seconds = ($row['hangup_cause']=="ORIGINATOR_CANCEL") ? $row['duration'] : $row['billsec']; //If they cancelled, show the ring time, not the bill time. - echo " \n"; - echo " "; + echo " \n"; + //echo " "; echo "\n"; $c = $c == 1 ? 0 : 1; } } unset($result); - } echo "
  
 "; + echo " "; echo $row['caller_id_name'].' '; echo " "; + echo " "; if (is_numeric($row['caller_id_number'])) { - echo format_phone($row['caller_id_number']).' '; + echo format_phone($row['caller_id_number']).' '; } else { - echo $row['caller_id_number'].' '; + echo $row['caller_id_number'].' '; } echo " ".$tmp_start_epoch."".$tmp_start_epoch."".gmdate("G:i:s", $seconds).""; - if (if_group("admin") || if_group("superadmin")) { - echo " ".$v_link_label_view.""; - } - echo "".$v_link_label_add.""; - echo " ".gmdate("G:i:s", $seconds).""; + //if (if_group("superadmin")) { + // echo " ".$v_link_label_view.""; + //} + //echo " ".$v_link_label_add.""; + //echo "
"; echo "
"; - } //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>