Contacts: Fix suggested in Issue 787. Thanks.

This commit is contained in:
Nate Jones
2015-03-18 05:38:35 +00:00
parent 7cfcb8f099
commit 4ee20afa77
2 changed files with 4 additions and 2 deletions

View File

@@ -138,7 +138,7 @@ require_once "resources/paging.php";
unset($phone_types);
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]." tr_link_void' nowrap='nowrap'>\n";
echo " <a href=\"".PROJECT_PATH."/app/xml_cdr/xml_cdr.php?caller_id_number=".$row['phone_number']."&destination_number=".$row['phone_number']."\">CDR</a>\n";
echo " <a href=\"".PROJECT_PATH."/app/xml_cdr/xml_cdr.php?caller_id_number=".$row['phone_number']."\">CDR</a>\n";
if ($row['phone_type_voice']) {
echo " &nbsp;\n";
echo " <a href=\"javascript:void(0)\" onclick=\"send_cmd('".PROJECT_PATH."/app/click_to_call/click_to_call.php?src_cid_name=".urlencode($row['phone_number'])."&src_cid_number=".urlencode($row['phone_number'])."&dest_cid_name=".urlencode($_SESSION['user']['extension'][0]['outbound_caller_id_name'])."&dest_cid_number=".urlencode($_SESSION['user']['extension'][0]['outbound_caller_id_number'])."&src=".urlencode($_SESSION['user']['extension'][0]['user'])."&dest=".urlencode($row['phone_number'])."&rec=false&ringback=us-ring&auto_answer=true');\">".$text['label-phone_call']."</a>\n";

View File

@@ -198,7 +198,7 @@ else {
echo " </td>\n";
echo " <td align='right' valign='top' width='50%'>\n";
echo " <form method='GET' name='frm_search' action=''>\n";
echo " <input class='formfld' style='text-align: right;' type='text' name='search_all' value=\"".$search_all."\">\n";
echo " <input class='formfld' style='text-align: right;' type='text' name='search_all' id='search_all' value=\"".$search_all."\">\n";
echo " <input class='btn' type='submit' name='submit' value=\"".$text['button-search']."\">\n";
if (permission_exists('contact_add')) {
echo "<input type='button' class='btn' alt='".$text['button-import']."' onclick=\"window.location='contact_import.php'\" value='".$text['button-import']."'>\n";
@@ -270,6 +270,8 @@ else {
echo $paging_controls;
echo "<br /><br />";
echo "<script>document.getElementById('search_all').focus();</script>";
//include the footer
require_once "resources/footer.php";
?>