diff --git a/include/class_tabs.inc b/include/class_tabs.inc
index a8608b0613411ac5350d9e1a0607b60fe29a26ca..689d89268149b06d7e47ceb8c7d23c8f5a040e0d 100644 (file)
--- a/include/class_tabs.inc
+++ b/include/class_tabs.inc
var $disabled= "";
var $by_name= array();
var $by_object= array();
+ var $SubDialog = false;
function tabs($config, $data, $dn)
{
$display= $this->gen_tabs();
/* Show object */
- $display.= "<table cellpadding=4 cellspacing=0 border=0 style=\"width:100%; background-color:#F0F0F0; border-style:solid; border-color:black; border-top-width:0px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px;\">\n";
+ $display.= "<table summary=\"\" cellpadding=4 cellspacing=0 border=0 style=\"width:100%; background-color:#F0F0F0; border-style:solid; border-color:black; border-top-width:0px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px;\">\n";
$display.= "<tr><td>\n";
$obj= $this->by_object[$this->current];
- $display.= $obj->execute ();
+ $display.= $obj->execute();
$this->by_object[$this->current]= $obj;
/* Footer for tabbed dialog */
function gen_tabs()
{
$display= "<input type=\"hidden\" name=\"arg\" value=\"\">";
- $display.= "<table cellpadding=0 cellspacing=0 border=0 style=\"width:100%;\"><tr>";
+ $display.= "<table summary=\"\" cellpadding=0 cellspacing=0 border=0 style=\"width:100%;\"><tr>";
$index= 0;
$style= array("tab_left", "tab_active", "tab_near_active", "tab_right");
foreach ($this->by_name as $class => $name){
/* Shorten string if its too long for the tab headers*/
$title= _($name);
- if (mb_strlen($title, 'UTF-8') > 13){
- $title= mb_substr($title,0, 11, 'UTF-8')."...";
+ if (mb_strlen($title, 'UTF-8') > 14){
+ $title= mb_substr($title,0, 12, 'UTF-8')."...";
}
if ($_SESSION['js']==FALSE){
}
}
+
+ /* Save attributes posted by copy & paste dialog
+ */
+ function saveCopyDialog()
+ {
+ foreach ($this->by_object as $key => $obj){
+ if($obj->is_account){
+ $this->by_object[$key]->saveCopyDialog();
+ }
+ }
+ }
+
+
+ /* return copy & paste dialog
+ */
+ function getCopyDialog()
+ {
+ $ret = "";
+ $this->SubDialog = false;
+ foreach ($this->by_object as $key => $obj){
+ if($obj->is_account){
+ $tmp = $this->by_object[$key]->getCopyDialog();
+ if($tmp['status'] == "SubDialog"){
+ $this->SubDialog = true;
+ return($tmp['string']);
+ }else{
+ $ret .= $tmp['string'];
+ }
+ }
+ }
+ return($ret);
+ }
+
}
?>