Index: trunk/admin/include/sections.php =================================================================== diff -u -r105 -r290 --- trunk/admin/include/sections.php (.../sections.php) (revision 105) +++ trunk/admin/include/sections.php (.../sections.php) (revision 290) @@ -203,6 +203,20 @@ return $ret; } + + function SimpleSection($module, $section_name, $tab_phrase, $title_phrase, $path, $script, $child,$parent,$left,$right) + { + // simplified method to add sections + global $pathtoroot; + $sn = explode(':', $section_name); + $img_path = $module.'/admin/images'; + if( !isset($title_phrase) ) $title_phrase = $tab_phrase; + + $this->AddSection( $section_name,$tab_phrase, $title_phrase,$path, $script, + $img_path.'/icon46_'.$sn[1].'.gif', $img_path.'/icon24_'.$sn[1].'.gif', + $child,$parent,$left,$right,0,'',1,null,null,null,$img_path.'/icon46_list_'.$sn[1].'.gif'); + } + function AddSection($section,$name,$title,$path,$file,$icon,$icon_small, $child,$parent,$left,$right, $notree=0,$onClick = "",$notabs=0,$nonavbar=0,$notitle=0,$toolbar=0,$icon_list="", $bar_title = "", $bar_title_plain_text = "") {