'', 'link-table' => $table, 'link-column' => $primary, 'link-view' => $view, 'father' => $father)); $columns = implode (", ", $field->getColumnsView ()); $sth = $db->prepare ("SELECT ". $columns .", ". $primary ." FROM ". $table ." WHERE ". $father ." = '". $id ."' ORDER BY ". $columns); $sth->execute (); $ids = array (); $labels = array (); while ($item = $sth->fetch (PDO::FETCH_OBJ)) { $labels [] = $field->makeView ($item); $ids [] = $item->$primary; } if (sizeof ($ids)) { $buffer = "var ids = new Array ('". implode ("', '", $ids) ."'); "; $buffer .= "var lbs = new Array ('". implode ("', '", $labels) ."');"; return $buffer; } } catch (PDOException $e) { toLog ($e->getMessage ()); } catch (Exception $e) { toLog ($e->getMessage ()); } return "var ids = null;"; } public function showMessages () { $message = Message::singleton (); if (!is_object ($message) || !$message->has ()) return FALSE; $str = ''; while ($msg = $message->get ()) $str .= $msg; $msgs = &XOAD_HTML::getElementById ('labelMessage'); $msgs->innerHTML = '