mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-08 21:16:17 +09:00
small change to move the status message to a new line.
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3908 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
1 parent
c169aea921
commit
f44cdc5784
1 file changed
+6
-6
+6
-6
@@ -207,13 +207,13 @@ function form_filepath_box($form_name, $form_previous_value, $form_default_value
|
||||
}
|
||||
|
||||
if (is_file($form_previous_value)) {
|
||||
$extra_data = "<span style='color:green'> [OK: FILE FOUND]";
|
||||
$extra_data = "<span style='color:green'><br>[OK: FILE FOUND]";
|
||||
}else if (is_dir($form_previous_value)) {
|
||||
$extra_data = "<span style='color:red'> [ERROR: IS DIR]";
|
||||
$extra_data = "<span style='color:red'><br>[ERROR: IS DIR]";
|
||||
}else if (strlen($form_previous_value) == 0) {
|
||||
$extra_data = "";
|
||||
}else{
|
||||
$extra_data = "<span style='color:red'> [ERROR: FILE NOT FOUND]";
|
||||
$extra_data = "<span style='color:red'><br>[ERROR: FILE NOT FOUND]";
|
||||
}
|
||||
|
||||
print " name='$form_name' size='$form_size'" . (!empty($form_max_length) ? " maxlength='$form_max_length'" : "") . " value='" . htmlspecialchars($form_previous_value, ENT_QUOTES) . "'>" . $extra_data;
|
||||
@@ -252,13 +252,13 @@ function form_dirpath_box($form_name, $form_previous_value, $form_default_value,
|
||||
}
|
||||
|
||||
if (is_dir($form_previous_value)) {
|
||||
$extra_data = "<span style='color:green'> [OK: DIR FOUND]";
|
||||
$extra_data = "<span style='color:green'><br>[OK: DIR FOUND]";
|
||||
}else if (is_file($form_previous_value)) {
|
||||
$extra_data = "<span style='color:red'> [ERROR: IS FILE]";
|
||||
$extra_data = "<span style='color:red'><br>[ERROR: IS FILE]";
|
||||
}else if (strlen($form_previous_value) == 0) {
|
||||
$extra_data = "";
|
||||
}else{
|
||||
$extra_data = "<span style='color:red'> [ERROR: DIR NOT FOUND]";
|
||||
$extra_data = "<span style='color:red'><br>[ERROR: DIR NOT FOUND]";
|
||||
}
|
||||
|
||||
print " name='$form_name' size='$form_size'" . (!empty($form_max_length) ? " maxlength='$form_max_length'" : "") . " value='" . htmlspecialchars($form_previous_value, ENT_QUOTES) . "'>" . $extra_data;
|
||||
|
||||
Reference in new issue
Block a user