include("db.inc.php");
include("tartalom_fej.inc.php");
$sql = "select * from szovegek order by megjelenitendo_nev";
mysql_connect( $db_host, $db_user, $db_pass ) or die ( 'Unable to connect to server.' );
mysql_select_db( $db_name ) or die ( 'Unable to select database.' );
$result = mysql_query( $sql ) or die ( 'Unable to execute query.' );
$count = 0;
while ($row = mysql_fetch_object($result)) {
$szoveg_db[$count] = $row->adatbazis_nev;
$szoveg_megjelenitendo[$count] = $row->megjelenitendo_nev;
$count++;
}
$db = $GLOBALS['db'];
if ($db == "") {
$db="uj1";
}
if ($db != "") {
for ($j=0;$j<$count;$j++) {
if ($szoveg_db[$j] == $db) {
echo("".$szoveg_megjelenitendo[$j]." vissza az előző oldalra ");
?>
\n");
}
}
$sql = "select * from ".$db."_index where instr(text,\"tcsabi\") > 0";
mysql_connect( $db_host, $db_user, $db_pass ) or die ( 'Unable to connect to server.' );
mysql_select_db( $db_name ) or die ( 'Unable to select database.' );
$result = mysql_query( $sql ) or die ( 'Unable to execute query.' );
$count = 0;
while ($row = mysql_fetch_object($result)) {
$count++;
$cim = $row->cim;
$sp=0;
$cim_ = $cim;
if (strstr($cim,"MsoPageNumber")) {
for($j=0;$j
\n");
// echo(" Index_-1)."\">".$cim."
\n");
if ($cim == "Címlap") {
$cim ="A kötet megtekintése";
}
if ($cim > "") {
echo("Index_-1)."','window','scrollbars=yes'));\">".$cim."
\n");
}
}
} else {
echo("Hibás oldalhivatkozás!");
}
echo("