index 4acf067649f3737517e669a5aa7aa02b940498c3..9f52e45a6af012b8ce4fcac64292d47ea71f2c25 100644 (file)
function save_object($save_current= FALSE)
{
-
-
-
/* Save last tab */
if ($this->last != ""){
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,
}
}
+
+ function is_modal_dialog()
+ {
+ return($this->by_object[$this->current]->is_modal_dialog());
+ }
+
function gen_tabs()
{
- if($this->by_object[$this->current]->is_modal_dialog()) return("");
+ if($this->is_modal_dialog()) return("");
$display = "\n <div class='tabs'>";
$display.= "\n <ul>";
-
foreach ($this->by_name as $class => $name){
// Shorten string if its too long for the tab headers
// Take care about notifications
$obj = $this->by_object[$class];
- $notify ="";
+ $tabClass = ($this->current == $class) ? "current" :"";
if ( $this->by_object[$class]->pl_notify && ($obj->is_account || $obj->ignore_account)){
- $notify= "!";
+ $tabClass .= " info";
}
- $tabClass = ($this->current == $class) ? "class='current'" :"";
+ if(!empty($tabClass)) $tabClass="class='{$tabClass}'";
$onClick = "document.mainform.arg.value='{$class}'; document.mainform.submit();";
- $display.= "\n <li {$tabClass} onClick=\"{$onClick}\"><a href='#'>$title{$notify}</a></li>";
+ $display.= "\n <li {$tabClass} onClick=\"{$onClick}\">{$title}</li>";
}
$display.="\n </ul>";
$display.="\n </div>";
}else{
if(!empty($tmp['string'])){
$ret .= $tmp['string'];
- $ret .= "<p class='seperator'> </p>";
+ $ret .= "<hr>";
}
}
}
}
return(TRUE);
}
+
+ function setReadOnly($s = TRUE)
+ {
+ foreach($this->by_object as $name => $obj){
+ $this->by_object[$name]->read_only = $s;
+ }
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>