function BeginNextTab() { if ($this->AUTOSAVE) $this->AUTOSAVE->Init(); //end previous tab $this->EndTab(); if($this->tabIndex >= count($this->tabs)) return; $css = ''; if ($this->tabs[$this->tabIndex]["DIV"] <> $this->selectedTab) $css .= 'display:none; '; echo ' <div class="adm-detail-content" id="'.$this->tabs[$this->tabIndex]["DIV"].'"'.($css != '' ? ' style="'.$css.'"' : '').'>'; /*if($this->tabs[$this->tabIndex]["ICON"] <> "") echo ' <td class="icon"><div id="'.$this->tabs[$this->tabIndex]["ICON"].'"></div></td> ';*/ echo ' <div class="adm-detail-title">'.$this->tabs[$this->tabIndex]["TITLE"].'</div>'; echo ' <div class="adm-detail-content-item-block"> <table class="adm-detail-content-table edit-table" id="'.$this->tabs[$this->tabIndex]["DIV"].'_edit_table"> <tbody> '; if(array_key_exists("CUSTOM", $this->tabs[$this->tabIndex]) && $this->tabs[$this->tabIndex]["CUSTOM"] == "Y") { $this->customTabber->ShowTab($this->tabs[$this->tabIndex]["DIV"]); $this->tabIndex++; $this->BeginNextTab(); } elseif(array_key_exists("CONTENT", $this->tabs[$this->tabIndex])) { echo $this->tabs[$this->tabIndex]["CONTENT"]; $this->tabIndex++; $this->BeginNextTab(); } else { $this->tabIndex++; } }