page = $page; $this -> tabs = $tabs; } /** * PL_Page_Data_View::pd_forms() * * @return string $view Returns created view */ function pd_forms(){ global $h, $plugin_tx, $sn, $su, $hjs; $hjs .= tag('link rel="stylesheet" href="'.PL_PAGE_DATA_STYLESHEET.'" type="text/css"'); $view = "\n". '
'; foreach($this -> tabs as $title => $code){ $view .= "\n\t".''.$title.''; } $view .= "\n
\n".'
'; foreach($this -> tabs as $title => $file){ $view .= "\n".'
'. "\n\t".' '; if(file_exists($file)){ include_once($file); $function = explode('.',basename($file)); $function = $function[0]; $view .= $function($this -> page); } else {$view .= "Could not find ". $file;} $view .= "\n"."
\n"; } $view .= "\n".'
'; $hjs .= "\n".''."\n"; return $view; } } ?>