1
0
mirror of synced 2025-01-29 19:41:45 +03:00

Docs menu updated

This commit is contained in:
zYne 2006-10-20 19:34:07 +00:00
parent 45e9bc8420
commit 170698690b

View File

@ -316,10 +316,8 @@ $menu = array("Getting started" =>
'WHERE clause', 'WHERE clause',
'Conditional expressions' => 'Conditional expressions' =>
array('Literals', array('Literals',
'Identification variables',
'Path expressions',
'Input parameters', 'Input parameters',
'Contidional expression composition',
'Operators and operator precedence', 'Operators and operator precedence',
'Between expressions', 'Between expressions',
'In expressions', 'In expressions',
@ -507,24 +505,29 @@ $menu = array("Getting started" =>
$break = false; $break = false;
$tmp = $paths; $tmp = $paths;
foreach($tmp as $path => $title) { foreach($tmp as $path => $title) {
$e = explode(".", $path); $e = explode(".", $path);
if(count($e) > 2) { if(count($e) > 2) {
unset($tmp[$path]); unset($tmp[$path]);
} }
} }
$prev = 1; $prev = 1;
foreach($tmp as $path => $title) { foreach($tmp as $path => $title) {
if($break) if($break)
break; break;
if($path == $_REQUEST["index"]) { if($path === $_REQUEST["index"]) {
$break = true; $break = true;
} else { } else {
$prev = $path; $prev = $path;
} }
} }
$index = $_REQUEST['index']; $index = $_REQUEST['index'];
print "<table width='100%'>"; print "<table width='100%'>";
print "<tr><td colspan=3 align='center'><b></td></tr>"; print "<tr><td colspan=3 align='center'><b></td></tr>";
print "<tr><td colspan=3 align='center'><b class='title'>".$paths[$ex[0]]."</b></td></tr>"; print "<tr><td colspan=3 align='center'><b class='title'>".$paths[$ex[0]]."</b></td></tr>";
@ -576,8 +579,7 @@ $menu = array("Getting started" =>
} }
} }
} else { } else {
//if( ! isset($menu[$ex[0]]))
// exit;
$tmp = $paths[$ex[0]]; $tmp = $paths[$ex[0]];
$i = 1; $i = 1;
foreach($menu[$tmp] as $title => $value) { foreach($menu[$tmp] as $title => $value) {