include("prefs.ht"); include("$modules_path/security.php3"); include("$modules_path/standard_pages.php3"); $persons = getArrayFromSQL("select id, title, about from persons where display=1 order by n", array('id', 'title', 'about')); $person_rows = $person_js = array(); $i = 0; foreach($persons as $person){ $person_rows[] = "
".unlanguage($person['title'])."
"; $person_js[] = "persons[".(int)$person['id']."] = {about:'".preg_replace("/[\n\r]/i", "", addslashes(unlanguage($person['about'])))."'};"; $i++; } $scripts .= " "; $cont = "| ".join($person_rows, "\n")." | ".unlanguage($persons[0]['about'])." |