--- parser3/src/www/htdocs/Attic/index.html 2001/06/29 08:35:26 1.211 +++ parser3/src/www/htdocs/Attic/index.html 2001/10/19 12:43:30 1.414 @@ -1,51 +1,379 @@ -@auto[] -$form_id[19] -$branch_id[] - @main[] -$SQL.connect-string[mysql://intranet:pwd@moko/intranet/cp1251_koi8] -^connect[$SQL.connect-string]{ -^content[] -} - -@heading[] -^if(def $form_id){Изменение}{Добавление} документа - -@help[] -article_help.html - -@content[] -$branches[^table:sql{select id, name from kb_branches}] -^if(def $form_id){ - $article[^table:sql{select id, name, txt, keywords, kb_branches_id from kb_documents where id='$form_id'}] - $branch_id[$:article.kb_branches_id] -}{ - $branch_id[$branch_id] -} - -
+@show-xnodes1[array][i] +^for[i](0;^array._count[]-1){ + ^show-xnode1[$array.$i;0;1] +} + +@show-xnode1[x;level;single][l] +^if(def $x){ + ^for[l](0;$level-1){ ^; ^; ^; ^;} + ^if($x.nodeType == $xnode:ELEMENT_NODE){ + <^;$x.nodeName + $pairs[$x.attributes] + ^if(def $pairs){ + $names[^pairs._keys[]] + ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"} + } + >^; + }{ + [$x.nodeType] + } + + ^if(def $x.nodeValue){$x.nodeValue}^taint[^xdoc.string[]] +# $.encoding[windows-1251] +# $.method[html] +#]] +