Added ---READONLY--- option for most screen labels in vicidial.php

git-svn-id: svn://192.168.202.10@2590 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2016-09-16 12:04:03 +00:00
parent f3d5d50122
commit ea0f0c2d07
2 changed files with 102 additions and 20 deletions
+99 -18
View File
@@ -526,10 +526,11 @@
# 160706-1438 - Redesign for loading, login and logout screens. Added Screen Colors. Logging of browser width/height
# 160731-1102 - Added option to automatically dial the next number after X seconds in a manual dial mode
# 160901-1728 - Added last_local_call_time display field
# 160915-0955 - Added ---READONLY--- option for most screen labels
#
$version = '2.12-495c';
$build = '160901-1728';
$version = '2.12-496c';
$build = '160915-0955';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=87;
$one_mysql_log=0;
@@ -17459,75 +17460,135 @@ $zi=2;
if ($label_title == '---HIDE---')
{echo "</td><td align=\"left\" colspan=\"5\"><input type=\"hidden\" name=\"title\" id=\"title\" value=\"\" />";}
else
{echo "$label_title: </td><td align=\"left\" colspan=\"5\"><font class=\"body_text\"><input type=\"text\" size=\"4\" name=\"title\" id=\"title\" maxlength=\"$MAXtitle\" class=\"cust_form\" value=\"\" />";}
{
$title_readonly='';
if (preg_match("/---READONLY---/",$label_title))
{$title_readonly='readonly="readonly"'; $label_title = preg_replace("/---READONLY---/","",$label_title);}
echo "$label_title: </td><td align=\"left\" colspan=\"5\"><font class=\"body_text\"><input type=\"text\" size=\"4\" name=\"title\" id=\"title\" maxlength=\"$MAXtitle\" class=\"cust_form\" value=\"\" $title_readonly />";
}
if ($label_first_name == '---HIDE---')
{echo "&nbsp; <input type=\"hidden\" name=\"first_name\" id=\"first_name\" value=\"\" />";}
else
{echo "&nbsp; $label_first_name: <input type=\"text\" size=\"17\" name=\"first_name\" id=\"first_name\" maxlength=\"$MAXfirst_name\" class=\"cust_form\" value=\"\" />";}
{
$first_name_readonly='';
if (preg_match("/---READONLY---/",$label_first_name))
{$first_name_readonly='readonly="readonly"'; $label_first_name = preg_replace("/---READONLY---/","",$label_first_name);}
echo "&nbsp; $label_first_name: <input type=\"text\" size=\"17\" name=\"first_name\" id=\"first_name\" maxlength=\"$MAXfirst_name\" class=\"cust_form\" value=\"\" $first_name_readonly />";
}
if ($label_middle_initial == '---HIDE---')
{echo "&nbsp; <input type=\"hidden\" name=\"middle_initial\" id=\"middle_initial\" value=\"\" />";}
else
{echo "&nbsp; $label_middle_initial: <input type=\"text\" size=\"1\" name=\"middle_initial\" id=\"middle_initial\" maxlength=\"$MAXmiddle_initial\" class=\"cust_form\" value=\"\" />";}
{
$middle_initial_readonly='';
if (preg_match("/---READONLY---/",$label_middle_initial))
{$middle_initial_readonly='readonly="readonly"'; $label_middle_initial = preg_replace("/---READONLY---/","",$label_middle_initial);}
echo "&nbsp; $label_middle_initial: <input type=\"text\" size=\"1\" name=\"middle_initial\" id=\"middle_initial\" maxlength=\"$MAXmiddle_initial\" class=\"cust_form\" value=\"\" $middle_initial_readonly />";
}
if ($label_last_name == '---HIDE---')
{echo "&nbsp; <input type=\"hidden\" name=\"last_name\" id=\"last_name\" value=\"\" />";}
else
{echo "&nbsp; $label_last_name: <input type=\"text\" size=\"23\" name=\"last_name\" id=\"last_name\" maxlength=\"$MAXlast_name\" class=\"cust_form\" value=\"\" />";}
{
$last_name_readonly='';
if (preg_match("/---READONLY---/",$label_last_name))
{$last_name_readonly='readonly="readonly"'; $label_last_name = preg_replace("/---READONLY---/","",$label_last_name);}
echo "&nbsp; $label_last_name: <input type=\"text\" size=\"23\" name=\"last_name\" id=\"last_name\" maxlength=\"$MAXlast_name\" class=\"cust_form\" value=\"\" $last_name_readonly />";
}
echo "</td></tr><tr><td align=\"right\"><font class=\"body_text\">";
if ($label_address1 == '---HIDE---')
{echo " </td><td align=\"left\" colspan=\"5\"><input type=\"hidden\" name=\"address1\" id=\"address1\" value=\"\" />";}
else
{echo "$label_address1: </td><td align=\"left\" colspan=5><font class=\"body_text\"><input type=\"text\" size=\"85\" name=\"address1\" id=\"address1\" maxlength=\"$MAXaddress1\" class=\"cust_form\" value=\"\" />";}
{
$address1_readonly='';
if (preg_match("/---READONLY---/",$label_address1))
{$address1_readonly='readonly="readonly"'; $label_address1 = preg_replace("/---READONLY---/","",$label_address1);}
echo "$label_address1: </td><td align=\"left\" colspan=5><font class=\"body_text\"><input type=\"text\" size=\"85\" name=\"address1\" id=\"address1\" maxlength=\"$MAXaddress1\" class=\"cust_form\" value=\"\" $address1_readonly />";
}
echo "</td></tr><tr><td align=\"right\"><font class=\"body_text\">";
if ($label_address2 == '---HIDE---')
{echo " </td><td align=\"left\"><input type=\"hidden\" name=\"address2\" id=\"address2\" value=\"\" />";}
else
{echo "$label_address2: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"20\" name=\"address2\" id=\"address2\" maxlength=\"$MAXaddress2\" class=\"cust_form\" value=\"\" />";}
{
$address2_readonly='';
if (preg_match("/---READONLY---/",$label_address2))
{$address2_readonly='readonly="readonly"'; $label_address2 = preg_replace("/---READONLY---/","",$label_address2);}
echo "$label_address2: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"20\" name=\"address2\" id=\"address2\" maxlength=\"$MAXaddress2\" class=\"cust_form\" value=\"\" $address2_readonly />";
}
echo "</td><td align=\"right\"><font class=\"body_text\">";
if ($label_address3 == '---HIDE---')
{echo " </td><td align=\"left\" colspan=\"3\"><input type=\"hidden\" name=\"address3\" id=\"address3\" value=\"\" />";}
else
{echo "$label_address3: </td><td align=\"left\" colspan=\"3\"><font class=\"body_text\"><input type=\"text\" size=\"45\" name=\"address3\" id=\"address3\" maxlength=\"$MAXaddress3\" class=\"cust_form\" value=\"\" />";}
{
$address3_readonly='';
if (preg_match("/---READONLY---/",$label_address3))
{$address3_readonly='readonly="readonly"'; $label_address3 = preg_replace("/---READONLY---/","",$label_address3);}
echo "$label_address3: </td><td align=\"left\" colspan=\"3\"><font class=\"body_text\"><input type=\"text\" size=\"45\" name=\"address3\" id=\"address3\" maxlength=\"$MAXaddress3\" class=\"cust_form\" value=\"\" $address3_readonly />";
}
echo "</td></tr><tr><td align=\"right\"><font class=\"body_text\">";
if ($label_city == '---HIDE---')
{echo " </td><td align=\"left\"><input type=\"hidden\" name=\"city\" id=\"city\" value=\"\" />";}
else
{echo "$label_city: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"20\" name=\"city\" id=\"city\" maxlength=\"$MAXcity\" class=\"cust_form\" value=\"\" />";}
{
$city_readonly='';
if (preg_match("/---READONLY---/",$label_city))
{$city_readonly='readonly="readonly"'; $label_city = preg_replace("/---READONLY---/","",$label_city);}
echo "$label_city: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"20\" name=\"city\" id=\"city\" maxlength=\"$MAXcity\" class=\"cust_form\" value=\"\" $city_readonly />";
}
echo "</td><td align=\"right\"><font class=\"body_text\">";
if ($label_state == '---HIDE---')
{echo " </td><td align=\"left\"><input type=\"hidden\" name=\"state\" id=\"state\" value=\"\" />";}
else
{echo "$label_state: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"4\" name=\"state\" id=\"state\" maxlength=\"$MAXstate\" class=\"cust_form\" value=\"\" />";}
{
$state_readonly='';
if (preg_match("/---READONLY---/",$label_state))
{$state_readonly='readonly="readonly"'; $label_state = preg_replace("/---READONLY---/","",$label_state);}
echo "$label_state: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"4\" name=\"state\" id=\"state\" maxlength=\"$MAXstate\" class=\"cust_form\" value=\"\" $state_readonly />";
}
echo "</td><td align=\"right\"><font class=\"body_text\">";
if ($label_postal_code == '---HIDE---')
{echo " </td><td align=\"left\"><input type=\"hidden\" name=\"postal_code\" id=\"postal_code\" value=\"\" />";}
else
{echo "$label_postal_code: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"14\" name=\"postal_code\" id=\"postal_code\" maxlength=\"$MAXpostal_code\" class=\"cust_form\" value=\"\" />";}
{
$postal_code_readonly='';
if (preg_match("/---READONLY---/",$label_postal_code))
{$postal_code_readonly='readonly="readonly"'; $label_postal_code = preg_replace("/---READONLY---/","",$label_postal_code);}
echo "$label_postal_code: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"14\" name=\"postal_code\" id=\"postal_code\" maxlength=\"$MAXpostal_code\" class=\"cust_form\" value=\"\" $postal_code_readonly />";
}
echo "</td></tr><tr><td align=\"right\"><font class=\"body_text\">";
if ($label_province == '---HIDE---')
{echo " </td><td align=\"left\"><input type=\"hidden\" name=\"province\" id=\"province\" value=\"\" />";}
else
{echo "$label_province: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"20\" name=\"province\" id=\"province\" maxlength=\"$MAXprovince\" class=\"cust_form\" value=\"\" />";}
{
$province_readonly='';
if (preg_match("/---READONLY---/",$label_province))
{$province_readonly='readonly="readonly"'; $label_province = preg_replace("/---READONLY---/","",$label_province);}
echo "$label_province: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"20\" name=\"province\" id=\"province\" maxlength=\"$MAXprovince\" class=\"cust_form\" value=\"\" $province_readonly />";
}
echo "</td><td align=\"right\"><font class=\"body_text\">";
if ($label_vendor_lead_code == '---HIDE---')
{echo " </td><td align=\"left\"><input type=\"hidden\" name=\"vendor_lead_code\" id=\"vendor_lead_code\" value=\"\" />";}
else
{echo "$label_vendor_lead_code: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"15\" name=\"vendor_lead_code\" id=\"vendor_lead_code\" maxlength=\"$MAXvendor_lead_code\" class=\"cust_form\" value=\"\" />";}
{
$vendor_lead_code_readonly='';
if (preg_match("/---READONLY---/",$label_vendor_lead_code))
{$vendor_lead_code_readonly='readonly="readonly"'; $label_vendor_lead_code = preg_replace("/---READONLY---/","",$label_vendor_lead_code);}
echo "$label_vendor_lead_code: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"15\" name=\"vendor_lead_code\" id=\"vendor_lead_code\" maxlength=\"$MAXvendor_lead_code\" class=\"cust_form\" value=\"\" $vendor_lead_code_readonly />";
}
echo "</td><td align=\"right\"><font class=\"body_text\">";
@@ -17567,28 +17628,48 @@ $zi=2;
if ($label_phone_code == '---HIDE---')
{echo " </td><td align=\"left\"><input type=\"hidden\" name=\"phone_code\" id=\"phone_code\" value=\"\" />";}
else
{echo "$label_phone_code: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"4\" name=\"phone_code\" id=\"phone_code\" maxlength=\"$MAXphone_code\" class=\"cust_form\" value=\"\" />";}
{
$phone_code_readonly='';
if (preg_match("/---READONLY---/",$label_phone_code))
{$phone_code_readonly='readonly="readonly"'; $label_phone_code = preg_replace("/---READONLY---/","",$label_phone_code);}
echo "$label_phone_code: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"4\" name=\"phone_code\" id=\"phone_code\" maxlength=\"$MAXphone_code\" class=\"cust_form\" value=\"\" $phone_code_readonly />";
}
echo "</td><td align=\"right\"><font class=\"body_text\">";
if ($label_alt_phone == '---HIDE---')
{echo " </td><td align=\"left\"><input type=\"hidden\" name=\"alt_phone\" id=\"alt_phone\" value=\"\" />";}
else
{echo "$label_alt_phone: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"14\" name=\"alt_phone\" id=\"alt_phone\" maxlength=\"$MAXalt_phone\" class=\"cust_form\" value=\"\" />";}
{
$alt_phone_readonly='';
if (preg_match("/---READONLY---/",$label_alt_phone))
{$alt_phone_readonly='readonly="readonly"'; $label_alt_phone = preg_replace("/---READONLY---/","",$label_alt_phone);}
echo "$label_alt_phone: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"14\" name=\"alt_phone\" id=\"alt_phone\" maxlength=\"$MAXalt_phone\" class=\"cust_form\" value=\"\" $alt_phone_readonly />";
}
echo "</td></tr><tr><td align=\"right\"><font class=\"body_text\">";
if ($label_security_phrase == '---HIDE---')
{echo " </td><td align=\"left\"><input type=\"hidden\" name=\"security_phrase\" id=\"security_phrase\" value=\"\" />";}
else
{echo "$label_security_phrase: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"20\" name=\"security_phrase\" id=\"security_phrase\" maxlength=\"$MAXsecurity_phrase\" class=\"cust_form\" value=\"\" />";}
{
$security_phrase_readonly='';
if (preg_match("/---READONLY---/",$label_security_phrase))
{$security_phrase_readonly='readonly="readonly"'; $label_security_phrase = preg_replace("/---READONLY---/","",$label_security_phrase);}
echo "$label_security_phrase: </td><td align=\"left\"><font class=\"body_text\"><input type=\"text\" size=\"20\" name=\"security_phrase\" id=\"security_phrase\" maxlength=\"$MAXsecurity_phrase\" class=\"cust_form\" value=\"\" $security_phrase_readonly />";
}
echo "</td><td align=\"right\"><font class=\"body_text\">";
if ($label_email == '---HIDE---')
{echo " </td><td align=\"left\" colspan=\"3\"><input type=\"hidden\" name=\"email\" id=\"email\" value=\"\" />";}
else
{echo "$label_email: </td><td align=\"left\" colspan=\"3\"><font class=\"body_text\"><input type=\"text\" size=\"45\" name=\"email\" id=\"email\" maxlength=\"$MAXemail\" class=\"cust_form\" value=\"\" />";}
{
$email_readonly='';
if (preg_match("/---READONLY---/",$label_email))
{$email_readonly='readonly="readonly"'; $label_email = preg_replace("/---READONLY---/","",$label_email);}
echo "$label_email: </td><td align=\"left\" colspan=\"3\"><font class=\"body_text\"><input type=\"text\" size=\"45\" name=\"email\" id=\"email\" maxlength=\"$MAXemail\" class=\"cust_form\" value=\"\" $email_readonly />";
}
if (strlen($agent_display_fields) > 3)
{
+3 -2
View File
@@ -94,6 +94,7 @@
# 160731-1030 - Added manual_auto_next, manual_auto_show, user_nickname entries
# 160731-2053 - Added POSTx description for recording filenames
# 160809-1351 - Added customer_chat_screen_colors and customer_chat_survey_link/text entries
# 160915-0954 - Added ---READONLY--- option for field labels
#
@@ -5215,7 +5216,7 @@ FR_SPAC 00 00 00 00 00 - <?php echo _QXZ("France space separated phone number");
<BR>
<A NAME="settings-default_field_labels">
<BR>
<B><?php echo _QXZ("Default Field Labels"); ?> -</B><?php echo _QXZ("These 19 fields allow you to set the name as it will appear in the agent interface as well as the administrative modify lead page. Default is empty which will use the hard-coded defaults in the agent interface. You can also set a label to ---HIDE--- to hide both the label and the field."); ?>
<B><?php echo _QXZ("Default Field Labels"); ?> -</B><?php echo _QXZ("These 19 fields allow you to set the name as it will appear in the agent interface as well as the administrative modify lead page. Default is empty which will use the hard-coded defaults in the agent interface. You can also set a label to ---HIDE--- to hide both the label and the field. Another option for most fields is ---READONLY--- which will display but not allow an agent to modify the field."); ?>
<BR>
<A NAME="settings-admin_screen_colors">
@@ -5463,7 +5464,7 @@ FR_SPAC 00 00 00 00 00 - <?php echo _QXZ("France space separated phone number");
<BR>
<A NAME="screen_labels-default_field_labels">
<BR>
<B><?php echo _QXZ("Default Field Labels"); ?> -</B><?php echo _QXZ("These 19 fields allow you to set the name as it will appear in the agent interface as well as the administrative modify lead page. Default is empty which will use the hard-coded defaults in the agent interface. You can also set a label to ---HIDE--- to hide both the label and the field."); ?>
<B><?php echo _QXZ("Default Field Labels"); ?> -</B><?php echo _QXZ("These 19 fields allow you to set the name as it will appear in the agent interface as well as the administrative modify lead page. Default is empty which will use the hard-coded defaults in the agent interface. You can also set a label to ---HIDE--- to hide both the label and the field. Another option for most fields is ---READONLY--- which will display but not allow an agent to modify the field."); ?>