Commit 17069869 authored by zYne's avatar zYne

Docs menu updated

parent 45e9bc84
...@@ -316,10 +316,8 @@ $menu = array("Getting started" => ...@@ -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" => ...@@ -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" => ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment