diff --git a/app/contacts/contact_times.php b/app/contacts/contact_times.php
index 619cfc454c..d3336cdb3e 100644
--- a/app/contacts/contact_times.php
+++ b/app/contacts/contact_times.php
@@ -61,18 +61,18 @@ else {
echo "
\n";
echo "\n";
- echo "| ".img_spacer('21px', '1px', 'none')." | \n";
+ echo "".img_spacer('21px', '1px')." | \n";
echo "".$text['label-time_user']." | \n";
echo "".$text['label-time_start']." | \n";
echo "".$text['label-time_duration']." | \n";
echo "".$text['label-time_description']." | \n";
echo "";
- echo img_spacer('25px', '1px', 'none');
+ echo img_spacer('25px', '1px');
if (permission_exists('contact_time_add')) {
echo "$v_link_label_add";
}
else {
- echo img_spacer('25px', '1px', 'none');
+ echo img_spacer('25px', '1px');
}
echo " | \n";
echo "
\n";
diff --git a/app/dialplan/dialplan_edit.php b/app/dialplan/dialplan_edit.php
index eb0a117c9a..25b3b7082a 100644
--- a/app/dialplan/dialplan_edit.php
+++ b/app/dialplan/dialplan_edit.php
@@ -760,7 +760,7 @@ else {
//end the row
echo "\n";
if ($index != 999) {
- echo " |
";
+ echo "| ".(img_spacer('100%', '1px', 'border-bottom: 1px solid #e5e9f0; margin: 0; padding: 0; display: block;'))." |
";
}
//increment the value
$x++;
diff --git a/core/default_settings/default_settings.php b/core/default_settings/default_settings.php
index d1a1b75a54..3a29169321 100644
--- a/core/default_settings/default_settings.php
+++ b/core/default_settings/default_settings.php
@@ -427,7 +427,7 @@ else {
}
else {
if ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
- echo "
";
+ echo " ".(img_spacer('15px', '15px', 'background: '.$row['default_setting_value'].'; margin-right: 4px; vertical-align: middle; border: 1px solid '.(color_adjust($row['default_setting_value'], -0.18)).'; padding: -1px;'));
echo "".htmlspecialchars($row['default_setting_value'])."\n";
}
else {
diff --git a/core/domain_settings/domain_settings.php b/core/domain_settings/domain_settings.php
index 1a3cb87425..1765018fdb 100644
--- a/core/domain_settings/domain_settings.php
+++ b/core/domain_settings/domain_settings.php
@@ -224,13 +224,13 @@ if (sizeof($_REQUEST) > 1) {
echo $sub_row["menu_language"]." - ".$sub_row["menu_name"]."\n";
}
}
- elseif ($category == "domain" && $subcategory == "template" && $name == "name" ) {
+ else if ($category == "domain" && $subcategory == "template" && $name == "name" ) {
echo " ".ucwords($row['domain_setting_value']);
}
else if ($category == "domain" && $subcategory == "time_format" && $name == "text" ) {
- switch ($row['domain_setting_value'] == '12h') {
- case '12h': echo " ".$text['label-12-hour']; break;
- case '24h': echo " ".$text['label-24-hour']; break;
+ switch ($row['domain_setting_value']) {
+ case '12h': echo $text['label-12-hour']; break;
+ case '24h': echo $text['label-24-hour']; break;
}
}
else if (
@@ -247,16 +247,13 @@ if (sizeof($_REQUEST) > 1) {
}
else {
if ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
- $border = (
- substr_count(strtolower($row['domain_setting_value']), '#fff') > 0 ||
- substr_count(strtolower($row['domain_setting_value']), '#ffffff') > 0 ||
- substr_count(str_replace(' ','',strtolower($row['domain_setting_value'])), '255,255,255,') > 0
- ) ? "border: 1px solid #ccc; padding: -1px;" : null;
- echo "
";
+ echo " ".(img_spacer('15px', '15px', 'background: '.$row['domain_setting_value'].'; margin-right: 4px; vertical-align: middle; border: 1px solid '.(color_adjust($row['domain_setting_value'], -0.18)).'; padding: -1px;'));
+ echo "".htmlspecialchars($row['domain_setting_value'])."\n";
+ }
+ else {
+ echo " ".htmlspecialchars($row['domain_setting_value'])."\n";
}
- echo " ".htmlspecialchars($row['domain_setting_value']);
}
- echo " \n";
echo " \n";
echo " \n";
echo " ".$text['label-'.$row['domain_setting_enabled']]."\n";
diff --git a/core/users/user_settings.php b/core/users/user_settings.php
index b7f1e46f5f..97442bb200 100644
--- a/core/users/user_settings.php
+++ b/core/users/user_settings.php
@@ -200,8 +200,8 @@ else {
}
else if ($category == "domain" && $subcategory == "time_format" && $name == "text" ) {
switch ($row['user_setting_value']) {
- case '12h': echo " ".$text['label-12-hour']; break;
- case '24h': echo " ".$text['label-24-hour']; break;
+ case '12h': echo $text['label-12-hour']; break;
+ case '24h': echo $text['label-24-hour']; break;
}
}
else if (
@@ -218,16 +218,13 @@ else {
}
else {
if ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
- $border = (
- substr_count(strtolower($row['user_setting_value']), '#fff') > 0 ||
- substr_count(strtolower($row['user_setting_value']), '#ffffff') > 0 ||
- substr_count(str_replace(' ','',strtolower($row['user_setting_value'])), '255,255,255,') > 0
- ) ? "border: 1px solid #ccc; padding: -1px;" : null;
- echo " ";
+ echo " ".(img_spacer('15px', '15px', 'background: '.$row['user_setting_value'].'; margin-right: 4px; vertical-align: middle; border: 1px solid '.(color_adjust($row['user_setting_value'], -0.18)).'; padding: -1px;'));
+ echo "".htmlspecialchars($row['user_setting_value'])."\n";
+ }
+ else {
+ echo " ".htmlspecialchars($row['user_setting_value'])."\n";
}
- echo " ".htmlspecialchars($row['user_setting_value']);
}
- echo " \n";
echo " | \n";
echo " \n";
echo " ".$text['label-'.$row['user_setting_enabled']]."\n";
diff --git a/resources/functions.php b/resources/functions.php
index 37e2d2e2d0..145338210b 100644
--- a/resources/functions.php
+++ b/resources/functions.php
@@ -1566,8 +1566,8 @@ function number_pad($number,$n) {
//transparent gif
if (!function_exists('img_spacer')) {
- function img_spacer($width = '1px', $height = '1px', $border = 'none') {
- return " ";
+ function img_spacer($width = '1px', $height = '1px', $custom = null) {
+ return " ";
}
}
|