/* fprintf( stderr, " child=%s [%d]\n", ch->psz_name, ch->i_child ); */
for( c = 0; c < ch->i_child; c++ )
{
- mvar_t *in = mvar_New( ch->psz_name, ch->child[c]->psz_name );
- mvar_AppendVar( n, in );
-
- /* fprintf( stderr, " sub=%s\n", ch->child[c]->psz_name );*/
+ if( ch->child[c]->psz_value )
+ {
+ mvar_AppendNewVar( n, ch->child[c]->psz_name, ch->child[c]->psz_value );
+ /* fprintf( stderr, " sub=%s->%s\n", ch->child[c]->psz_name, ch->child[c]->psz_value ); */
+ }
+ else
+ {
+ mvar_t *in = mvar_New( ch->psz_name, ch->child[c]->psz_name );
+ mvar_AppendVar( n, in );
+ /* fprintf( stderr, " sub=%s\n", ch->child[c]->psz_name ); */
+ }
}
mvar_AppendVar( set, n );
}
</head>
<body>
<h2>
- <a href="http://www.videolan.org/">VLC media player<vlc id="value" param1="version" /></a> (http interface)</h2>
+ <a href="http://www.videolan.org/">VLC media player <vlc id="value" param1="version" /></a> (http interface)</h2>
<div class="sectitle">VLM - Configuration</div>
<div class="section">
<table>
<tr>
<td>
- <vlc id="value" param1="el.state" />
+ <vlc id="foreach" param1="instance" param2="el.instances" />
+ <vlc id="value" param1="instance" />
+ <vlc id="end" />
</td>
<td align="right">
<form method="get" action="" />