Пример #1
0
function editLanguageManager($section = '', $uid = 0)
{
    global $database, $my, $acl, $booklibrary_configuration;
    global $mosConfig_absolute_path, $mosConfig_live_site;
    $row = new mosBooklibrary_language($database);
    // for 1.6
    // load the row from the db table
    $row->load($uid);
    $query = "SELECT * FROM #__booklibrary_const WHERE id = " . $row->fk_constid;
    $database->setQuery($query);
    $const = $database->loadObject();
    $lists['const'] = $const->const;
    $lists['sys_type'] = $const->sys_type;
    $query = "SELECT title FROM #__booklibrary_languages WHERE id = " . $row->fk_languagesid;
    $database->setQuery($query);
    $language = $database->loadResult();
    $lists['languages'] = $language;
    HTML_booklibrary::editLanguageManager($row, $lists);
}