Example #1
0
             $cmd_show_subnodes->addItem(0, S_CURRENT_NODE_ONLY);
             $cmd_show_subnodes->addItem(1, S_WITH_SUBNODES);
             $node_form->addItem(array(SPACE, new CSpan(S_SHOW, 'textcolorstyles'), $cmd_show_subnodes));
         }
     }
 }
 $table = new CTable();
 $table->setCellSpacing(0);
 $table->setCellPadding(0);
 $table->addOption('style', 'width: 100%;');
 $r_col = new CCol($node_form);
 $r_col->AddOption('align', 'right');
 //		$r_col->AddOption('style','text-align: right;');
 $table->addRow(array($menu_table, $r_col));
 $page_menu = new CDiv();
 $page_menu->addoption('id', 'mmenu');
 $page_menu->addItem($table);
 $menu_selected = false;
 foreach ($sub_menus as $label => $sub_menu) {
     $sub_menu_table = new CTable(NULL, 'sub_menu');
     $sub_menu_table->setCellSpacing(0);
     $sub_menu_table->setCellPadding(5);
     $sub_menu_row = array();
     foreach ($sub_menu as $id => $sub_page) {
         if (empty($sub_page['menu_text'])) {
             $sub_page['menu_text'] = SPACE;
         }
         $sub_menu_item = new CLink($sub_page['menu_text'], $sub_page['menu_url'], $sub_page['class']);
         if ($sub_page['selected']) {
             $sub_menu_item = new CSpan($sub_menu_item, 'active');
         }