From d95ef3d48d4e0d6c8eabdcd347ca12bb865ff72c Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 14 Dec 2022 20:03:44 +0000 Subject: [PATCH] Added $HTMLcolors validation for color form entry fields in admin.php for In-Groups, Scripts and Screen Colors git-svn-id: svn://192.168.202.10@3662 3d104415-ff17-0410-8863-d5cf3c621b8a --- extras/MySQL_AST_CREATE_tables.sql | 6 +- extras/upgrade_2.14.sql | 6 ++ www/vicidial/admin.php | 153 ++++++++++++++++++++++++---- www/vicidial/admin_header.php | 67 +++++++++++- www/vicidial/help_documentation.txt | 6 +- 5 files changed, 209 insertions(+), 29 deletions(-) diff --git a/extras/MySQL_AST_CREATE_tables.sql b/extras/MySQL_AST_CREATE_tables.sql index 0914e581..8703d230 100644 --- a/extras/MySQL_AST_CREATE_tables.sql +++ b/extras/MySQL_AST_CREATE_tables.sql @@ -1223,7 +1223,7 @@ php_tz VARCHAR(100) default '' CREATE TABLE vicidial_inbound_groups ( group_id VARCHAR(20) PRIMARY KEY NOT NULL, group_name VARCHAR(30), -group_color VARCHAR(7), +group_color VARCHAR(20), active ENUM('Y','N'), web_form_address TEXT, voicemail_ext VARCHAR(10), @@ -1520,7 +1520,7 @@ script_comments VARCHAR(255), script_text TEXT, active ENUM('Y','N'), user_group VARCHAR(20) default '---ALL---', -script_color VARCHAR(7) default 'white' +script_color VARCHAR(20) default 'white' ) ENGINE=MyISAM; CREATE TABLE phone_favorites ( @@ -5180,4 +5180,4 @@ INSERT INTO `wallboard_reports` VALUES ('AGENTS_AND_QUEUES','Agents and Queues', UPDATE system_settings set vdc_agent_api_active='1'; -UPDATE system_settings SET db_schema_version='1671',db_schema_update_date=NOW(),reload_timestamp=NOW(); +UPDATE system_settings SET db_schema_version='1672',db_schema_update_date=NOW(),reload_timestamp=NOW(); diff --git a/extras/upgrade_2.14.sql b/extras/upgrade_2.14.sql index bc9ea845..ba7bdba9 100644 --- a/extras/upgrade_2.14.sql +++ b/extras/upgrade_2.14.sql @@ -2069,3 +2069,9 @@ CREATE INDEX vicqa_icbq_date on vicidial_inbound_callback_queue_archive(icbq_dat CREATE INDEX vicqa_call_date on vicidial_inbound_callback_queue_archive(call_date); UPDATE system_settings SET db_schema_version='1671',db_schema_update_date=NOW() where db_schema_version < 1671; + +ALTER TABLE vicidial_inbound_groups MODIFY group_color VARCHAR(20); + +ALTER TABLE vicidial_scripts MODIFY script_color VARCHAR(20) default 'white'; + +UPDATE system_settings SET db_schema_version='1672',db_schema_update_date=NOW() where db_schema_version < 1672; diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php index 422ab3e4..b7261d0e 100644 --- a/www/vicidial/admin.php +++ b/www/vicidial/admin.php @@ -135,6 +135,8 @@ $APIfunctions = 'ALL_FUNCTIONS add_group_alias add_lead add_list add_phone add_p $browser_alert_sounds_list = 'bark_dog,beep_double,beep_five,beep_up,bell_double,bell_school,bird,blaster1,blaster2,buzz1,buzz2,cash_register,chat_alert,click_single,click_double,click_quiet,close_encounter,confirmation,ding,droplet,droplet_double,elephant,email_alert,hold_tone,horn_bike,horn_car,horn_car_triple,horn_clown,horn_double,horn_train,meow_cat,scream_wilhelm,silence_quick,siren,slide_down,slide_up,swish,teleport1,teleport2,ticking_two,ticking_four,ticking_six,whip,whistle_up,whistle_two,whistle_three,whoosh,xylophone1,xylophone2,xylophone3,xylophone4'; +$HTMLcolors = 'IndianRed,CD5C5C|LightCoral,F08080|Salmon,FA8072|DarkSalmon,E9967A|LightSalmon,FFA07A|Crimson,DC143C|Red,FF0000|FireBrick,B22222|DarkRed,8B0000|Pink,FFC0CB|LightPink,FFB6C1|HotPink,FF69B4|DeepPink,FF1493|MediumVioletRed,C71585|PaleVioletRed,DB7093|LightSalmon,FFA07A|Coral,FF7F50|Tomato,FF6347|OrangeRed,FF4500|DarkOrange,FF8C00|Orange,FFA500|Gold,FFD700|Yellow,FFFF00|LightYellow,FFFFE0|LemonChiffon,FFFACD|LightGoldenrodYellow,FAFAD2|PapayaWhip,FFEFD5|Moccasin,FFE4B5|PeachPuff,FFDAB9|PaleGoldenrod,EEE8AA|Khaki,F0E68C|DarkKhaki,BDB76B|Lavender,E6E6FA|Thistle,D8BFD8|Plum,DDA0DD|Violet,EE82EE|Orchid,DA70D6|Fuchsia,FF00FF|Magenta,FF00FF|MediumOrchid,BA55D3|MediumPurple,9370DB|RebeccaPurple,663399|BlueViolet,8A2BE2|DarkViolet,9400D3|DarkOrchid,9932CC|DarkMagenta,8B008B|Purple,800080|Indigo,4B0082|SlateBlue,6A5ACD|DarkSlateBlue,483D8B|MediumSlateBlue,7B68EE|GreenYellow,ADFF2F|Chartreuse,7FFF00|LawnGreen,7CFC00|Lime,00FF00|LimeGreen,32CD32|PaleGreen,98FB98|LightGreen,90EE90|MediumSpringGreen,00FA9A|SpringGreen,00FF7F|MediumSeaGreen,3CB371|SeaGreen,2E8B57|ForestGreen,228B22|Green,008000|DarkGreen,006400|YellowGreen,9ACD32|OliveDrab,6B8E23|Olive,808000|DarkOliveGreen,556B2F|MediumAquamarine,66CDAA|DarkSeaGreen,8FBC8B|LightSeaGreen,20B2AA|DarkCyan,008B8B|Teal,008080|Aqua,00FFFF|Cyan,00FFFF|LightCyan,E0FFFF|PaleTurquoise,AFEEEE|Aquamarine,7FFFD4|Turquoise,40E0D0|MediumTurquoise,48D1CC|DarkTurquoise,00CED1|CadetBlue,5F9EA0|SteelBlue,4682B4|LightSteelBlue,B0C4DE|PowderBlue,B0E0E6|LightBlue,ADD8E6|SkyBlue,87CEEB|LightSkyBlue,87CEFA|DeepSkyBlue,00BFFF|DodgerBlue,1E90FF|CornflowerBlue,6495ED|MediumSlateBlue,7B68EE|RoyalBlue,4169E1|Blue,0000FF|MediumBlue,0000CD|DarkBlue,00008B|Navy,000080|MidnightBlue,191970|Cornsilk,FFF8DC|BlanchedAlmond,FFEBCD|Bisque,FFE4C4|NavajoWhite,FFDEAD|Wheat,F5DEB3|BurlyWood,DEB887|Tan,D2B48C|RosyBrown,BC8F8F|SandyBrown,F4A460|Goldenrod,DAA520|DarkGoldenrod,B8860B|Peru,CD853F|Chocolate,D2691E|SaddleBrown,8B4513|Sienna,A0522D|Brown,A52A2A|Maroon,800000|White,FFFFFF|Snow,FFFAFA|HoneyDew,F0FFF0|MintCream,F5FFFA|Azure,F0FFFF|AliceBlue,F0F8FF|GhostWhite,F8F8FF|WhiteSmoke,F5F5F5|SeaShell,FFF5EE|Beige,F5F5DC|OldLace,FDF5E6|FloralWhite,FFFAF0|Ivory,FFFFF0|AntiqueWhite,FAEBD7|Linen,FAF0E6|LavenderBlush,FFF0F5|MistyRose,FFE4E1|Gainsboro,DCDCDC|LightGray,D3D3D3|Silver,C0C0C0|DarkGray,A9A9A9|Gray,808080|DimGray,696969|LightSlateGray,778899|SlateGray,708090|DarkSlateGray,2F4F4F|Black,000000'; + ### BEGIN housecleaning of old static report files, if not done before ### if (!file_exists('old_clear')) { @@ -5940,12 +5942,13 @@ if ($SSscript_remove_js > 0) # 221017-0822 - Fix for Copy Carrier issue #1384 # 221020-1632 - Added login_kickall system setting # 221021-1038 - Added webphone_settings option to phones, pointed to a settings container +# 221214-1153 - Added $HTMLcolors validation for color form entry fields # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time -$admin_version = '2.14-869a'; -$build = '221021-1038'; +$admin_version = '2.14-870a'; +$build = '221214-1153'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -9327,7 +9330,7 @@ if ($ADD==1111) echo ""._QXZ("Group ID").": ("._QXZ("no spaces").")$NWB#inbound_groups-group_id$NWE\n"; } echo ""._QXZ("Group Name").": $NWB#inbound_groups-group_name$NWE\n"; - echo ""._QXZ("Group Color").": $NWB#inbound_groups-group_color$NWE\n"; + echo ""._QXZ("Group Color")." ("._QXZ("color chooser")."): $NWB#inbound_groups-group_color$NWE\n"; echo ""._QXZ("Active").": $NWB#inbound_groups-active$NWE\n"; echo ""._QXZ("Admin User Group").": ("._QXZ("no spaces").")$NWB#inbound_groups-group_id$NWE\n"; } echo ""._QXZ("Group Name").": $NWB#inbound_groups-group_name$NWE\n"; - echo ""._QXZ("Group Color").": $NWB#inbound_groups-group_color$NWE\n"; + echo ""._QXZ("Group Color")." ("._QXZ("color chooser")."): $NWB#inbound_groups-group_color$NWE\n"; echo ""._QXZ("Active").": $NWB#inbound_groups-active$NWE\n"; echo ""._QXZ("Admin User Group").": ("._QXZ("no spaces").")$NWB#inbound_groups-group_id$NWE\n"; } echo ""._QXZ("Group Name").": $NWB#inbound_groups-group_name$NWE\n"; - echo ""._QXZ("Group Color").": $NWB#inbound_groups-group_color$NWE\n"; + echo ""._QXZ("Group Color")." ("._QXZ("color chooser")."): $NWB#inbound_groups-group_color$NWE\n"; echo ""._QXZ("Active").": $NWB#inbound_groups-active$NWE\n"; echo ""._QXZ("Default List ID").": $NWB#inbound_groups-default_list_id$NWE"; echo ""._QXZ("Admin User Group").": $NWB#inbound_groups-group_name$NWE\n"; - echo ""._QXZ("Group Color").": $NWB#inbound_groups-group_color$NWE\n"; + echo ""._QXZ("Group Color")." ("._QXZ("color chooser")."): $NWB#inbound_groups-group_color$NWE\n"; echo ""._QXZ("Active").": $NWB#inbound_groups-active$NWE\n"; $stmt="SELECT count(*) from vicidial_inbound_callback_queue where group_id='$group_id' and icbq_status='LIVE';"; @@ -34496,7 +34609,7 @@ if ($ADD==3811) echo "
\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; @@ -35334,7 +35447,7 @@ if ($ADD==3911) echo "
"._QXZ("Group ID").": $query_group_id$NWB#inbound_groups-group_id$NWE $allowed_campaigns_warning
"._QXZ("Group Name").": $NWB#inbound_groups-group_name$NWE
"._QXZ("Group Color").": $NWB#inbound_groups-group_color$NWE
"._QXZ("Group Color")." ("._QXZ("color chooser")."): $NWB#inbound_groups-group_color$NWE
"._QXZ("Active").": $NWB#inbound_groups-active$NWE
"._QXZ("In-Group Email Date").": $group_calldate$NWB#inbound_groups-group_emaildate$NWE
\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; @@ -38280,7 +38393,7 @@ if ($ADD==3111111) echo "\n"; echo "$NWB#scripts-user_group$NWE\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; - echo "\n"; + echo "\n"; - echo "\n"; + echo "\n"; - echo "\n"; + echo "\n"; - echo "\n"; + echo "\n"; - echo "\n"; + echo "\n"; - echo "\n"; + echo "\n"; - echo "\n"; + echo "\n"; - echo "\n"; + echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "
"._QXZ("Group ID").": $query_group_id$NWB#inbound_groups-group_id$NWE $allowed_campaigns_warning
"._QXZ("Group Name").": $NWB#inbound_groups-group_name$NWE
"._QXZ("Group Color").": $NWB#inbound_groups-group_color$NWE
"._QXZ("Group Color")." ("._QXZ("color chooser")."): $NWB#inbound_groups-group_color$NWE
"._QXZ("Active").": $NWB#inbound_groups-active$NWE
"._QXZ("In-Group Chat Date").": $group_calldate$NWB#inbound_groups-group_chatdate$NWE
"._QXZ("Active").": $NWB#scripts-active$NWE
"._QXZ("Script Color").": $NWB#scripts-script_color$NWE
"._QXZ("Script Color")." ("._QXZ("color chooser")."): $NWB#scripts-script_color$NWE
"._QXZ("Script Text").":

"._QXZ("Preview Script")."
"; # BEGIN Insert Field echo "$NWB#screen_colors-user_group$NWE
"._QXZ("Menu Background").": $NWB#screen_colors-menu_background$NWE
"._QXZ("Menu Background")." ("._QXZ("color chooser")."): $NWB#screen_colors-menu_background$NWE
"._QXZ("Frame Background").": $NWB#screen_colors-frame_background$NWE
"._QXZ("Frame Background")." ("._QXZ("color chooser")."): $NWB#screen_colors-frame_background$NWE
"._QXZ("Standard Row 1 Background").": $NWB#screen_colors-std_row_background$NWE
"._QXZ("Standard Row 1 Background")." ("._QXZ("color chooser")."): $NWB#screen_colors-std_row_background$NWE
"._QXZ("Standard Row 2 Background").": $NWB#screen_colors-std_row_background$NWE
"._QXZ("Standard Row 2 Background")." ("._QXZ("color chooser")."): $NWB#screen_colors-std_row_background$NWE
"._QXZ("Standard Row 3 Background").": $NWB#screen_colors-std_row_background$NWE
"._QXZ("Standard Row 3 Background")." ("._QXZ("color chooser")."): $NWB#screen_colors-std_row_background$NWE
"._QXZ("Standard Row 4 Background").": $NWB#screen_colors-std_row_background$NWE
"._QXZ("Standard Row 4 Background")." ("._QXZ("color chooser")."): $NWB#screen_colors-std_row_background$NWE
"._QXZ("Standard Row 5 Background").": $NWB#screen_colors-std_row_background$NWE
"._QXZ("Standard Row 5 Background")." ("._QXZ("color chooser")."): $NWB#screen_colors-std_row_background$NWE
"._QXZ("Alternate Row 1 Background").": $NWB#screen_colors-alt_row_background$NWE
"._QXZ("Alternate Row 1 Background")." ("._QXZ("color chooser")."): $NWB#screen_colors-alt_row_background$NWE
"._QXZ("Alternate Row 2 Background").": $NWB#screen_colors-alt_row_background$NWE
"._QXZ("Alternate Row 2 Background")." ("._QXZ("color chooser")."): $NWB#screen_colors-alt_row_background$NWE
"._QXZ("Alternate Row 3 Background").": $NWB#screen_colors-alt_row_background$NWE
"._QXZ("Alternate Row 3 Background")." ("._QXZ("color chooser")."): $NWB#screen_colors-alt_row_background$NWE
"._QXZ("Web Logo").": $NWB#screen_colors-web_logo$NWE    
"._QXZ("Button Color").": $NWB#screen_colors-alt_row_background$NWE
"._QXZ("Button Color")." ("._QXZ("color chooser")."): $NWB#screen_colors-alt_row_background$NWE
\n"; diff --git a/www/vicidial/admin_header.php b/www/vicidial/admin_header.php index 360d8f13..e238ed68 100644 --- a/www/vicidial/admin_header.php +++ b/www/vicidial/admin_header.php @@ -94,8 +94,11 @@ # 220827-0941 - Added ConfBridge top menu options # 220829-1017 - Changed 'admin.php' links to "$ADMIN" variable # 220830-2303 - Fix for ADMIN change, issue #1370 +# 221214-1321 - Added HTML color chooser # +$HTMLcolors = 'IndianRed,CD5C5C|LightCoral,F08080|Salmon,FA8072|DarkSalmon,E9967A|LightSalmon,FFA07A|Crimson,DC143C|Red,FF0000|FireBrick,B22222|DarkRed,8B0000|Pink,FFC0CB|LightPink,FFB6C1|HotPink,FF69B4|DeepPink,FF1493|MediumVioletRed,C71585|PaleVioletRed,DB7093|LightSalmon,FFA07A|Coral,FF7F50|Tomato,FF6347|OrangeRed,FF4500|DarkOrange,FF8C00|Orange,FFA500|Gold,FFD700|Yellow,FFFF00|LightYellow,FFFFE0|LemonChiffon,FFFACD|LightGoldenrodYellow,FAFAD2|PapayaWhip,FFEFD5|Moccasin,FFE4B5|PeachPuff,FFDAB9|PaleGoldenrod,EEE8AA|Khaki,F0E68C|DarkKhaki,BDB76B|Lavender,E6E6FA|Thistle,D8BFD8|Plum,DDA0DD|Violet,EE82EE|Orchid,DA70D6|Fuchsia,FF00FF|Magenta,FF00FF|MediumOrchid,BA55D3|MediumPurple,9370DB|RebeccaPurple,663399|BlueViolet,8A2BE2|DarkViolet,9400D3|DarkOrchid,9932CC|DarkMagenta,8B008B|Purple,800080|Indigo,4B0082|SlateBlue,6A5ACD|DarkSlateBlue,483D8B|MediumSlateBlue,7B68EE|GreenYellow,ADFF2F|Chartreuse,7FFF00|LawnGreen,7CFC00|Lime,00FF00|LimeGreen,32CD32|PaleGreen,98FB98|LightGreen,90EE90|MediumSpringGreen,00FA9A|SpringGreen,00FF7F|MediumSeaGreen,3CB371|SeaGreen,2E8B57|ForestGreen,228B22|Green,008000|DarkGreen,006400|YellowGreen,9ACD32|OliveDrab,6B8E23|Olive,808000|DarkOliveGreen,556B2F|MediumAquamarine,66CDAA|DarkSeaGreen,8FBC8B|LightSeaGreen,20B2AA|DarkCyan,008B8B|Teal,008080|Aqua,00FFFF|Cyan,00FFFF|LightCyan,E0FFFF|PaleTurquoise,AFEEEE|Aquamarine,7FFFD4|Turquoise,40E0D0|MediumTurquoise,48D1CC|DarkTurquoise,00CED1|CadetBlue,5F9EA0|SteelBlue,4682B4|LightSteelBlue,B0C4DE|PowderBlue,B0E0E6|LightBlue,ADD8E6|SkyBlue,87CEEB|LightSkyBlue,87CEFA|DeepSkyBlue,00BFFF|DodgerBlue,1E90FF|CornflowerBlue,6495ED|MediumSlateBlue,7B68EE|RoyalBlue,4169E1|Blue,0000FF|MediumBlue,0000CD|DarkBlue,00008B|Navy,000080|MidnightBlue,191970|Cornsilk,FFF8DC|BlanchedAlmond,FFEBCD|Bisque,FFE4C4|NavajoWhite,FFDEAD|Wheat,F5DEB3|BurlyWood,DEB887|Tan,D2B48C|RosyBrown,BC8F8F|SandyBrown,F4A460|Goldenrod,DAA520|DarkGoldenrod,B8860B|Peru,CD853F|Chocolate,D2691E|SaddleBrown,8B4513|Sienna,A0522D|Brown,A52A2A|Maroon,800000|White,FFFFFF|Snow,FFFAFA|HoneyDew,F0FFF0|MintCream,F5FFFA|Azure,F0FFFF|AliceBlue,F0F8FF|GhostWhite,F8F8FF|WhiteSmoke,F5F5F5|SeaShell,FFF5EE|Beige,F5F5DC|OldLace,FDF5E6|FloralWhite,FFFAF0|Ivory,FFFFF0|AntiqueWhite,FAEBD7|Linen,FAF0E6|LavenderBlush,FFF0F5|MistyRose,FFE4E1|Gainsboro,DCDCDC|LightGray,D3D3D3|Silver,C0C0C0|DarkGray,A9A9A9|Gray,808080|DimGray,696969|LightSlateGray,778899|SlateGray,708090|DarkSlateGray,2F4F4F|Black,000000'; + $stmt="SELECT admin_home_url,enable_tts_integration,callcard_enabled,custom_fields_enabled,allow_emails,level_8_disable_add,allow_chats,enable_languages,admin_row_click,admin_screen_colors,user_new_lead_limit,user_territories_active,qc_features_active,agent_soundboards,enable_drop_lists,allow_ip_lists,admin_web_directory from system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); @@ -832,9 +835,12 @@ else } document.addEventListener("click", getMousePos); + var chooser_field=''; + var chooser_field_td=''; + var chooser_type=''; + function launch_chooser(fieldname,stage) { - var h = window.innerHeight; var vposition=mouseY; @@ -851,7 +857,6 @@ else function launch_moh_chooser(fieldname,stage) { - var h = window.innerHeight; var vposition=mouseY; @@ -868,7 +873,6 @@ else function launch_vm_chooser(fieldname,stage) { - var h = window.innerHeight; var vposition=mouseY; @@ -883,6 +887,63 @@ else document.getElementById("audio_chooser_span").innerHTML = Iframe_content; } + function launch_color_chooser(fieldname,stage,type) + { + var h = window.innerHeight; + var vposition=mouseY; + chooser_field = fieldname; + chooser_field_td = fieldname + '_td'; + chooser_type = type; + "._QXZ("close frame")."  
"; + $color_chooser_output .= "
"; + $color_chooser_output .= ''; + $HTMLcolorsARY = explode('|',$HTMLcolors); + $HTMLcolorsARYcount = count($HTMLcolorsARY); + $HTMLct=0; + while ($HTMLcolorsARYcount > $HTMLct) + { + $HTMLcolorsLINE = explode(',',$HTMLcolorsARY[$HTMLct]); + if (preg_match("/1$|3$|5$|7$|9$/i", $HTMLct)) + {$bgcolor='#E6E6E6';} + else + {$bgcolor='#F6F6F6';} + + $color_chooser_output .= ""; + + $HTMLct++; + } + $color_chooser_output .= '
$HTMLcolorsLINE[0] #$HTMLcolorsLINE[1]            
'; + ?> + + var span_content = '' + ""; + + document.getElementById("audio_chooser_span").style.position = "absolute"; + document.getElementById("audio_chooser_span").style.left = "220px"; + document.getElementById("audio_chooser_span").style.top = vposition + "px"; + document.getElementById("audio_chooser_span").style.visibility = 'visible'; + document.getElementById("audio_chooser_span").style.backgroundcolor = 'white'; + document.getElementById("audio_chooser_span").innerHTML = span_content; + } + + function choose_color(colorname) + { + if (colorname.length > 0) + { + if (chooser_type == '2') + { + document.getElementById(chooser_field).value = colorname; + document.getElementById(chooser_field_td).style.backgroundColor = '#' + colorname; + } + else + { + document.getElementById(chooser_field).value = '#' + colorname; + document.getElementById(chooser_field_td).style.backgroundColor = '#' + colorname; + } + close_chooser(); + } + } + function close_chooser() { document.getElementById("audio_chooser_span").style.visibility = 'hidden'; diff --git a/www/vicidial/help_documentation.txt b/www/vicidial/help_documentation.txt index cc481a26..277c99ba 100644 --- a/www/vicidial/help_documentation.txt +++ b/www/vicidial/help_documentation.txt @@ -1,4 +1,4 @@ -# version: 20221021101501 +# version: 20221214142601 users-user User ID This field is where you put the users ID number, can be up to 20 digits in length, Must be at least 2 characters in length. We strongly recommend not reusing user accounts for different users, for reporting accuracy. To disable a user account, set the Active option to -N-. users-pass Password This field is where you put the users password. Must be at least 2 characters in length. Only letters and numbers are allowed in user passwords. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters. users-force_change_password Force Change Password If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage or the agent screen. Default is N. @@ -491,7 +491,7 @@ lists_fields-name_position Field Name Position If set to LEFT, this field n lists_fields-copy_option Copy Option When copying field definitions from one list to another, you have a few options for how the copying process works. APPEND will add the fields that are not present in the destination list, if there are matching field labels those will remained untouched, no custom field data will be deleted or modified using this option. UPDATE will update the common field_label fields in the destination list to the field definitions from the source list. custom field data may be modified or lost using this option. REPLACE will remove all existing custom fields in the destination list and replace them with the custom fields from the source list, all custom field data will be deleted using this option. inbound_groups-group_id Group ID This is the short name of the inbound group, it is not editable after initial submission, must not contain any spaces and must be between 2 and 20 characters in length. inbound_groups-group_name Group Name This is the description of the group, it must be between 2 and 30 characters in length. Cannot include dashes, pluses or spaces . -inbound_groups-group_color Group Color This is the color that displays in the agent client app when a call comes in on this group. It must be between 2 and 7 characters long. If this is a hex color definition you must remember to put a # at the beginning of the string or the agent screen will not work properly. +inbound_groups-group_color Group Color This is the color that displays in the agent client app when a call comes in on this group. It must be between 2 and 20 characters long. If this is a hex color definition you must remember to put a # at the beginning of the string or the agent screen will not work properly. If using an HTML-safe color name, be sure to make sure you spell it correctly. You can also use the -color chooser- to select a color. inbound_groups-active Active This determines whether this inbound group is available to take calls. If this is set to inactive then the After Hours Action will be used on any calls coming into it. inbound_groups-user_group Admin User Group This is the administrative user group for this inbound group, this allows admin viewing of this in-group restricted by user group. Default is --ALL-- which allows any admin user to view this in-group. inbound_groups-callback_queue_calls Callback Queue Calls This will only show up if there are LIVE inbound callback queue calls waiting to be called back by agents when their turn arrives. @@ -799,7 +799,7 @@ scripts-script_comments Script Comments This is where you can place comment scripts-user_group Admin User Group This is the administrative user group for this record, this allows admin viewing of this record restricted by user group. Default is --ALL-- which allows any admin user to view this record. scripts-script_text Script Text This is where you place the content of an agent screen Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using --A--field--B-- where field is one of the following fieldnames: vendor_lead_code, source_id, list_id, gmt_offset_now, called_since_last_reset, phone_code, phone_number, title, first_name, middle_initial, last_name, address1, address2, address3, city, state, province, postal_code, country_code, gender, date_of_birth, alt_phone, email, security_phrase, comments, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id, dialed_number, dialed_label, rank, owner, camp_script, in_script, script_width, script_height, recording_filename, recording_id, user_custom_one, user_custom_two, user_custom_three, user_custom_four, user_custom_five, preset_number_a, preset_number_b, preset_number_c, preset_number_d, preset_number_e, preset_number_f, preset_dtmf_a, preset_dtmf_b, did_id, did_extension, did_pattern, did_description, closecallid, xfercallid, agent_log_id, entry_list_id, call_id, user_group, called_count, TABLEper_call_notes, MANUALDIALLINK, EMAILinbound_message. For example, this sentence would print the persons name in it----

Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?

This would read----

Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?

You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
<iframe src='http://www.sample.net/test_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&dialed_number=--A--dialed_number--B--&dialed_label=--A--dialed_label--B--&rank=--A--rank--B--&owner=--A--owner--B--&phone=--A--phone--B--&camp_script=--A--camp_script--B--&in_script=--A--in_script--B--&script_width=--A--script_width--B--&script_height=--A--script_height--B--&recording_filename=--A--recording_filename--B--&recording_id=--A--recording_id--B--&user_custom_one=--A--user_custom_one--B--&user_custom_two=--A--user_custom_two--B--&user_custom_three=--A--user_custom_three--B--&user_custom_four=--A--user_custom_four--B--&user_custom_five=--A--user_custom_five--B--&preset_number_a=--A--preset_number_a--B--&preset_number_b=--A--preset_number_b--B--&preset_number_c=--A--preset_number_c--B--&preset_number_d=--A--preset_number_d--B--&preset_number_e=--A--preset_number_e--B--&preset_number_f=--A--preset_number_f--B--&preset_dtmf_a=--A--preset_dtmf_a--B--&preset_dtmf_b=--A--preset_dtmf_b--B--&did_id=--A--did_id--B--&did_extension=--A--did_extension--B--&did_pattern=--A--did_pattern--B--&did_description=--A--did_description--B--&closecallid=--A--closecallid--B--&xfercallid=--A--xfercallid--B--&agent_log_id=--A--agent_log_id--B--&entry_list_id=--A--entry_list_id--B--&call_id=--A--call_id--B--&&user_group=--A--user_group--B--&&' style='width:580;height:290;background-color:transparent;' scrolling='auto' frameborder='0' allowtransparency='true' id='popupFrame' name='popupFrame' width='460' height='290' STYLE='z-index:17'></iframe>

You can also use a special variable IGNORENOSCROLL to force scroll bars on the script tab even if you are using an iframe within it. scripts-active Active This determines whether this script can be selected to be used by a campaign. -scripts-script_color Script Color This determines the background color of the script as displayed in the agent screen. default is white. +scripts-script_color Script Color This determines the background color of the script as displayed in the agent screen. default is white. If using an HTML-safe color name, be sure to make sure you spell it correctly. You can also use the -color chooser- to select a color. lead_filters-lead_filter_id Filter ID This is the short name of a Lead Filter. This needs to be a unique identifier. Do not use any spaces or punctuation for this field. max 20 characters, minimum of 2 characters. lead_filters-lead_filter_name Filter Name This is a more descriptive name of the Filter. This is a short summary of the filter. max 30 characters, minimum of 2 characters. lead_filters-lead_filter_comments Filter Comments This is where you can place comments for a Filter such as -calls all California leads-. max 255 characters, minimum of 2 characters.