|
|
|
@@ -450,10 +450,11 @@
|
|
|
|
|
# 141118-1229 - Formatting changes for QXZ output
|
|
|
|
|
# 141118-1439 - Added agent_email as webform and script variable
|
|
|
|
|
# 141121-1005 - Added new QC and comments campaign options
|
|
|
|
|
# 141124-1144 - Added new Callback Comments campaign option
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
$version = '2.10-421c';
|
|
|
|
|
$build = '141121-1005';
|
|
|
|
|
$version = '2.10-422c';
|
|
|
|
|
$build = '141124-1144';
|
|
|
|
|
$mel=1; # Mysql Error Log enabled = 1
|
|
|
|
|
$mysql_log_count=80;
|
|
|
|
|
$one_mysql_log=0;
|
|
|
|
@@ -10788,6 +10789,19 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("CallBackOnlyMe").disabled = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( (comments_callback_screen == 'ENABLED') || (comments_callback_screen == 'REPLACE_CB_NOTES') )
|
|
|
|
|
{
|
|
|
|
|
var cb_comment_output = "<table cellspacing=4 cellpadding=0><tr><td align=\"right\"><font class=\"body_text\"><?php echo $label_comments ?>: <br><span id='cbviewcommentsdisplay'><input type='button' id='CBViewCommentButton' onClick=\"ViewComments('ON','','cb')\" value='-<?php _QXZ("History"); ?>-'/></span></font></td><td align=\"left\"><font class=\"body_text\">";
|
|
|
|
|
cb_comment_output = cb_comment_output + "<textarea name=\"cbcomment_comments\" id=\"cbcomment_comments\" rows=\"2\" cols=\"100\" class=\"cust_form_text\" value=\"\">" + document.vicidial_form.dispo_comments.value + "</textarea>\n";
|
|
|
|
|
cb_comment_output = cb_comment_output + "</td></tr></table>\n";
|
|
|
|
|
document.getElementById("CBCommentsContent").innerHTML = cb_comment_output;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("CBCommentsContent").innerHTML = "<input type=\"hidden\" name=\"cbcomment_comments\" id=\"cbcomment_comments\" value=\"" + document.vicidial_form.dispo_comments.value + "\" />";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showDiv('CallBackSelectBox');
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@@ -10812,8 +10826,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
xmlhttp = new XMLHttpRequest();
|
|
|
|
|
}
|
|
|
|
|
if (xmlhttp)
|
|
|
|
|
{
|
|
|
|
|
DSupdate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=updateDISPO&format=text&user=" + user + "&pass=" + pass + "&orig_pass=" + orig_pass + "&dispo_choice=" + DispoChoice + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign + "&auto_dial_level=" + auto_dial_level + "&agent_log_id=" + agent_log_id + "&CallBackDatETimE=" + CallBackDatETimE + "&list_id=" + document.vicidial_form.list_id.value + "&recipient=" + CallBackrecipient + "&use_internal_dnc=" + use_internal_dnc + "&use_campaign_dnc=" + use_campaign_dnc + "&MDnextCID=" + LasTCID + "&stage=" + group + "&vtiger_callback_id=" + vtiger_callback_id + "&phone_number=" + document.vicidial_form.phone_number.value + "&phone_code=" + document.vicidial_form.phone_code.value + "&dial_method" + dial_method + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&CallBackLeadStatus=" + CallBackLeadStatus + "&comments=" + encodeURIComponent(CallBackCommenTs) + "&custom_field_names=" + custom_field_names + "&call_notes=" + encodeURIComponent(document.vicidial_form.call_notes_dispo.value) + "&dispo_comments=" + encodeURIComponent(document.vicidial_form.dispo_comments.value) + "&qm_dispo_code=" + DispoQMcsCODE + "&email_enabled=" + email_enabled + "&recording_id=" + VDDCU_recording_id + "&recording_filename=" + VDDCU_recording_filename + "&called_count=" + document.vicidial_form.called_count.value;
|
|
|
|
|
{
|
|
|
|
|
DSupdate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=updateDISPO&format=text&user=" + user + "&pass=" + pass + "&orig_pass=" + orig_pass + "&dispo_choice=" + DispoChoice + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign + "&auto_dial_level=" + auto_dial_level + "&agent_log_id=" + agent_log_id + "&CallBackDatETimE=" + CallBackDatETimE + "&list_id=" + document.vicidial_form.list_id.value + "&recipient=" + CallBackrecipient + "&use_internal_dnc=" + use_internal_dnc + "&use_campaign_dnc=" + use_campaign_dnc + "&MDnextCID=" + LasTCID + "&stage=" + group + "&vtiger_callback_id=" + vtiger_callback_id + "&phone_number=" + document.vicidial_form.phone_number.value + "&phone_code=" + document.vicidial_form.phone_code.value + "&dial_method" + dial_method + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&CallBackLeadStatus=" + CallBackLeadStatus + "&comments=" + encodeURIComponent(CallBackCommenTs) + "&custom_field_names=" + custom_field_names + "&call_notes=" + encodeURIComponent(document.vicidial_form.call_notes_dispo.value) + "&dispo_comments=" + encodeURIComponent(document.vicidial_form.dispo_comments.value) + "&cbcomment_comments=" + encodeURIComponent(document.vicidial_form.cbcomment_comments.value) + "&qm_dispo_code=" + DispoQMcsCODE + "&email_enabled=" + email_enabled + "&recording_id=" + VDDCU_recording_id + "&recording_filename=" + VDDCU_recording_filename + "&called_count=" + document.vicidial_form.called_count.value;
|
|
|
|
|
xmlhttp.open('POST', 'vdc_db_query.php');
|
|
|
|
|
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
|
|
|
|
xmlhttp.send(DSupdate_query);
|
|
|
|
@@ -10883,6 +10897,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
document.vicidial_form.call_notes.value ='';
|
|
|
|
|
document.vicidial_form.call_notes_dispo.value ='';
|
|
|
|
|
document.vicidial_form.dispo_comments.value ='';
|
|
|
|
|
document.vicidial_form.cbcomment_comments.value ='';
|
|
|
|
|
VDCL_group_id = '';
|
|
|
|
|
fronter = '';
|
|
|
|
|
inOUT = 'OUT';
|
|
|
|
@@ -14910,6 +14925,8 @@ function phone_number_format(formatphone) {
|
|
|
|
|
{document.getElementById("otherviewcommentsdisplay").innerHTML = "<input type=\"button\" id='OtherViewCommentButton' onClick=\"ViewComments('OFF')\" value='<?php echo _QXZ("HIDE"); ?>' />";}
|
|
|
|
|
if (VCspanname == 'dispo')
|
|
|
|
|
{document.getElementById("dispoviewcommentsdisplay").innerHTML = "<input type=\"button\" id='DispoViewCommentButton' onClick=\"ViewComments('OFF','','dispo')\" value='<?php echo _QXZ("HIDE"); ?>' />";}
|
|
|
|
|
if (VCspanname == 'cb')
|
|
|
|
|
{document.getElementById("cbviewcommentsdisplay").innerHTML = "<input type=\"button\" id='CBViewCommentButton' onClick=\"ViewComments('OFF','','cb')\" value='<?php echo _QXZ("HIDE"); ?>' />";}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
@@ -14931,7 +14948,9 @@ function phone_number_format(formatphone) {
|
|
|
|
|
document.vicidial_form.OtherViewCommentButton.value = document.vicidial_form.audit_comments_button.value;
|
|
|
|
|
}
|
|
|
|
|
if (VCspanname == 'dispo')
|
|
|
|
|
{document.getElementById("dispoviewcommentsdisplay").innerHTML = "<input type=\"button\" id='DispoViewCommentButton' onClick=\"ViewComments('ON')\" value='0' />";}
|
|
|
|
|
{document.getElementById("dispoviewcommentsdisplay").innerHTML = "<input type=\"button\" id='DispoViewCommentButton' onClick=\"ViewComments('ON','','dispo')\" value='0' />";}
|
|
|
|
|
if (VCspanname == 'cb')
|
|
|
|
|
{document.getElementById("cbviewcommentsdisplay").innerHTML = "<input type=\"button\" id='CBViewCommentButton' onClick=\"ViewComments('ON','','cb')\" value='0' />";}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -16077,8 +16096,14 @@ if ($agent_display_dialable_leads > 0)
|
|
|
|
|
<?php
|
|
|
|
|
if ($agentonly_callbacks)
|
|
|
|
|
{echo "<input type=\"checkbox\" name=\"CallBackOnlyMe\" id=\"CallBackOnlyMe\" size=\"1\" value=\"0\" /> MY CALLBACK ONLY <br />";}
|
|
|
|
|
|
|
|
|
|
if ($comments_callback_screen != 'REPLACE_CB_NOTES')
|
|
|
|
|
{echo _QXZ("CB Comments:")." <input type=\"text\" name=\"CallBackCommenTsField\" id=\"CallBackCommenTsField\" size=\"50\" maxlength=\"255\" /><br /><br />\n";}
|
|
|
|
|
else
|
|
|
|
|
{echo "<input type=\"hidden\" name=\"CallBackCommenTsField\" id=\"CallBackCommenTsField\" value=\"\" /><br />\n";}
|
|
|
|
|
|
|
|
|
|
echo "<span id=\"CBCommentsContent\"><input type=\"hidden\" name=\"cbcomment_comments\" id=\"cbcomment_comments\" value=\"\" /></span><br />\n";
|
|
|
|
|
?>
|
|
|
|
|
<?php echo _QXZ("CB Comments:"); ?> <input type="text" name="CallBackCommenTsField" id="CallBackCommenTsField" size="50" maxlength="255" /><br /><br />
|
|
|
|
|
|
|
|
|
|
<a href="#" onclick="CallBackDatE_submit();return false;"><?php echo _QXZ("SUBMIT"); ?></a><br /><br />
|
|
|
|
|
<span id="CallBackDateContent"><?php echo "$CCAL_OUT" ?></span>
|
|
|
|
|