function TGeo() { global $str, $actions; TCustom_tree::TCustom_tree(); if ((int) $_GET['id']) { $temp = sql_getValue("SELECT name FROM " . $this->table . " WHERE id=" . (int) $_GET['id']); } else { $temp = "Новый район"; } $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('География', 'Geo'), 'title_editform' => array("Район: " . $temp, 'Region: ' . $temp))); }
function TCustom_treeCheck() { TCustom_tree::TCustom_tree(); global $str; $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Выберите разделы', 'Select pages'))); if (isset($_GET['table'])) { $this->table = get('table', '', 'g'); } if (!$this->table) { echo 'Не указано название таблицы.'; } }
function TCustom_treeId() { TCustom_tree::TCustom_tree(); global $str; $str[get_class_name($this)] = array_merge($str[get_class_name($this)], array('title' => array('Выберите раздел', 'Select page'), 'treeid' => array('Для указания ссылки необходимо выбрать элемент', 'For creating a link an item must be selected'))); if (isset($_GET['table'])) { $this->table = get('table', '', 'g'); } if (!$this->table) { echo 'Не указано название таблицы.'; } }