From baac49e1be0d7189da7c28f02efc8be05806c364 Mon Sep 17 00:00:00 2001 From: fantu Date: Thu, 11 Dec 2008 13:52:03 +0000 Subject: [PATCH] fix some small xhtml error --- interface/lib/app.inc.php | 4 +- interface/lib/classes/listform.inc.php | 2 +- interface/lib/classes/tform.inc.php | 38 +++++++++---------- interface/lib/classes/tform_actions.inc.php | 2 +- .../lib/classes/tform_tpl_generator.inc.php | 12 +++--- interface/lib/classes/tpl_error.inc.php | 2 +- 6 files changed, 30 insertions(+), 30 deletions(-) diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php index d4e69cc65..af82cde76 100644 --- a/interface/lib/app.inc.php +++ b/interface/lib/app.inc.php @@ -124,8 +124,8 @@ class app {


-
Error:
'.$msg; - if($next_link != '') $msg .= 'Next
'; +
Error:
'.$msg; + if($next_link != '') $msg .= 'Next
'; $msg .= '
diff --git a/interface/lib/classes/listform.inc.php b/interface/lib/classes/listform.inc.php index 2a6875844..a57fab5ae 100644 --- a/interface/lib/classes/listform.inc.php +++ b/interface/lib/classes/listform.inc.php @@ -118,7 +118,7 @@ class listform { $record = array(); $values = $app->$datasource_class->$datasource_function($field, $record); } else { - $this->errorMessage .= "Custom datasource class or function is empty
\r\n"; + $this->errorMessage .= "Custom datasource class or function is empty
\r\n"; } } return $values; diff --git a/interface/lib/classes/tform.inc.php b/interface/lib/classes/tform.inc.php index 50dbd1561..888c0b660 100644 --- a/interface/lib/classes/tform.inc.php +++ b/interface/lib/classes/tform.inc.php @@ -247,7 +247,7 @@ class tform { $app->uses($datasource_class); $values = $app->$datasource_class->$datasource_function($field, $record); } else { - $this->errorMessage .= "Custom datasource class or function is empty
\r\n"; + $this->errorMessage .= "Custom datasource class or function is empty
\r\n"; } } @@ -527,7 +527,7 @@ class tform { $field['regex'] .= 's'; if(!preg_match($field['regex'], $record[$key])) { $errmsg = $field['errmsg']; - $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; + $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; } } @@ -561,9 +561,9 @@ class tform { if(!preg_match($validator['regex'], $field_value)) { $errmsg = $validator['errmsg']; if(isset($this->wordbook[$errmsg])) { - $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; + $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; } else { - $this->errorMessage .= $errmsg."
\r\n"; + $this->errorMessage .= $errmsg."
\r\n"; } } break; @@ -573,9 +573,9 @@ class tform { if($num_rec["number"] > 0) { $errmsg = $validator['errmsg']; if(isset($this->wordbook[$errmsg])) { - $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; + $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; } else { - $this->errorMessage .= $errmsg."
\r\n"; + $this->errorMessage .= $errmsg."
\r\n"; } } } else { @@ -583,9 +583,9 @@ class tform { if($num_rec["number"] > 0) { $errmsg = $validator['errmsg']; if(isset($this->wordbook[$errmsg])) { - $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; + $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; } else { - $this->errorMessage .= $errmsg."
\r\n"; + $this->errorMessage .= $errmsg."
\r\n"; } } } @@ -594,9 +594,9 @@ class tform { if(empty($field_value)) { $errmsg = $validator['errmsg']; if(isset($this->wordbook[$errmsg])) { - $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; + $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; } else { - $this->errorMessage .= $errmsg."
\r\n"; + $this->errorMessage .= $errmsg."
\r\n"; } } break; @@ -604,9 +604,9 @@ class tform { if(!preg_match("/^\w+[\w.-]*\w+@\w+[\w.-]*\w+\.[a-z]{2,10}$/i", $field_value)) { $errmsg = $validator['errmsg']; if(isset($this->wordbook[$errmsg])) { - $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; + $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; } else { - $this->errorMessage .= $errmsg."
\r\n"; + $this->errorMessage .= $errmsg."
\r\n"; } } break; @@ -615,9 +615,9 @@ class tform { if($tmpval === 0 and !empty($field_value)) { $errmsg = $validator['errmsg']; if(isset($this->wordbook[$errmsg])) { - $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; + $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; } else { - $this->errorMessage .= $errmsg."
\r\n"; + $this->errorMessage .= $errmsg."
\r\n"; } } break; @@ -625,9 +625,9 @@ class tform { if(!is_numeric($field_value) || $field_value <= 0){ $errmsg = $validator['errmsg']; if(isset($this->wordbook[$errmsg])) { - $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; + $this->errorMessage .= $this->wordbook[$errmsg]."
\r\n"; } else { - $this->errorMessage .= $errmsg."
\r\n"; + $this->errorMessage .= $errmsg."
\r\n"; } } break; @@ -639,7 +639,7 @@ class tform { $app->uses($validator_class); $this->errorMessage .= $app->$validator_class->$validator_function($field_name, $field_value, $validator); } else { - $this->errorMessage .= "Custom validator class or function is empty
\r\n"; + $this->errorMessage .= "Custom validator class or function is empty
\r\n"; } break; default: @@ -671,9 +671,9 @@ class tform { // checking permissions if($this->formDef['auth'] == 'yes' && $_SESSION["s"]["user"]["typ"] != 'admin') { if($action == "INSERT") { - if(!$this->checkPerm($primary_id,'i')) $this->errorMessage .= "Insert denied.
\r\n"; + if(!$this->checkPerm($primary_id,'i')) $this->errorMessage .= "Insert denied.
\r\n"; } else { - if(!$this->checkPerm($primary_id,'u')) $this->errorMessage .= "Update denied.
\r\n"; + if(!$this->checkPerm($primary_id,'u')) $this->errorMessage .= "Update denied.
\r\n"; } } diff --git a/interface/lib/classes/tform_actions.inc.php b/interface/lib/classes/tform_actions.inc.php index 214b6eb1c..cc86f40d5 100644 --- a/interface/lib/classes/tform_actions.inc.php +++ b/interface/lib/classes/tform_actions.inc.php @@ -263,7 +263,7 @@ class tform_actions { function onError() { global $app, $conf; - $app->tpl->setVar("error","".$app->lng('Error').":
".$app->tform->errorMessage); + $app->tpl->setVar("error","".$app->lng('Error').":
".$app->tform->errorMessage); $app->tpl->setVar($this->dataRecord); $this->onShow(); } diff --git a/interface/lib/classes/tform_tpl_generator.inc.php b/interface/lib/classes/tform_tpl_generator.inc.php index b11de8500..6943f24c0 100644 --- a/interface/lib/classes/tform_tpl_generator.inc.php +++ b/interface/lib/classes/tform_tpl_generator.inc.php @@ -51,7 +51,7 @@ class tform_tpl_generator { *
"; + $html .= " class=\"wf_required\">*
"; } else { $html .= ">"; } @@ -68,7 +68,7 @@ class tform_tpl_generator { } $html .= "{tmpl_var name='".$key."'}"; if ($field['required'] == true ) { - $html .= "*
"; + $html .= "*
"; } $html .= "\r\n "; break; @@ -83,7 +83,7 @@ class tform_tpl_generator { } $html .= "{tmpl_var name='".$key."'}"; if ($field['required'] == true ) { - $html .= "*
"; + $html .= "*
"; } $html .= "\r\n "; break; @@ -98,7 +98,7 @@ class tform_tpl_generator { } $html .= "{tmpl_var name='".$key."'}"; if ($field['required'] == true ) { - $html .= "*
"; + $html .= "*
"; } $html .= "\r\n "; break; @@ -107,7 +107,7 @@ class tform_tpl_generator { *
"; + $html .= " class=\"wf_required\">*
"; } else { $html .= ">"; } @@ -120,7 +120,7 @@ class tform_tpl_generator { $html .= " {tmpl_var name='".$key."'} - *
"; + *
"; } else { $html .= " {tmpl_var name='".$key."'} diff --git a/interface/lib/classes/tpl_error.inc.php b/interface/lib/classes/tpl_error.inc.php index 25ea71e17..29a9ae0fc 100644 --- a/interface/lib/classes/tpl_error.inc.php +++ b/interface/lib/classes/tpl_error.inc.php @@ -36,7 +36,7 @@ class vlibTemplateError { $error_codes = array( 'VT_ERROR_NOFILE' => 'vlibTemplate Error: Template ('.$extra.') file not found.', - 'VT_ERROR_PARSE' => 'vlibTemplate Error: Parse error!
To debug this file, use vlibTemplateDebug instead of vlibTemplate in the class instantiation(i.e. new vlibTemplateDebug).', + 'VT_ERROR_PARSE' => 'vlibTemplate Error: Parse error!
To debug this file, use vlibTemplateDebug instead of vlibTemplate in the class instantiation(i.e. new vlibTemplateDebug).', 'VT_NOTICE_INVALID_TAG' => 'vlibTemplate Notice: Invalid tag ('.$extra.').', 'VT_ERROR_INVALID_TAG' => 'vlibTemplate Error: Invalid tag ('.$extra.'). To disable this you must turn of the STRICT option.', 'VT_NOTICE_INVALID_ATT' => 'vlibTemplate Notice: Invalid attribute ('.$extra.').', -- GitLab