* adjust the help for fields.

This commit is contained in:
wangchunsheng
2011-03-10 10:00:55 +00:00
parent 7d99c3a247
commit 7eee2b8ae2
3 changed files with 120 additions and 107 deletions
+5
View File
@@ -25,6 +25,7 @@ class help extends control
{
$clientLang = $this->app->getClientLang();
include "./lang/field.$clientLang.php";
$fieldName = '';
$fieldNote = $this->lang->help->noHelpYet;
if(isset($help->$module->$field))
@@ -33,6 +34,10 @@ class help extends control
$fieldName = $fieldHelp[0];
if(isset($fieldHelp[1])) $fieldNote = $fieldHelp[1];
}
elseif($field == 'labels')
{
list($fieldName, $fieldNote) = explode('|', $help->file->labels);
}
$this->view->header->title = $fieldName;
$this->view->fieldName = $fieldName;
$this->view->fieldNote = $fieldNote;