function _set($arr) { $i = 0; foreach ($arr as $val) { $identifier = $this->prefix . $this->prefix_tab . $i; if (array_key_exists('value', $val)) { $html = new htmlobject_div(); $html->id = $identifier; $html->css = 'htmlobject_tab_box'; $html->text = $val['value'] . '<div style="clear:both;line-height:0;"> </div>'; $value = $html->get_string(); } else { $value = ''; } array_key_exists('label', $val) ? $label = $val['label'] : ($label = ''); array_key_exists('target', $val) ? $target = $val['target'] . '?' . $this->prefix . '=' . $this->prefix_tab . $i : ($target = '?' . $this->prefix . '=' . $this->prefix_tab . $i); array_key_exists('request', $val) ? $request = $val['request'] : ($request = array()); $this->_tabs[] = array('target' => $target, 'value' => $value, 'label' => $label, 'id' => $identifier, 'request' => $request); $i++; } }
function get_indentifier($key, $ident) { $td = ''; if ($this->identifier != '') { $html = new htmlobject_input(); $html->id = $ident; $html->name = $this->identifier_name . '[]'; $html->value = $this->body[$key][$this->identifier]; $html->type = $this->identifier_type; if (in_array($this->body[$key][$this->identifier], $this->identifier_checked)) { $html->checked = true; } if (in_array($this->body[$key][$this->identifier], $this->identifier_disabled)) { $html = new htmlobject_div(); $html->text = ' '; } $td = new htmlobject_td(); $td->type = 'td'; $td->css = $this->css_prefix . 'td ' . $this->identifier_name; $td->text = $html->get_string(); } return $td; }