For tags: traverse schoolbags, display data lists, for schoolbags
Here is an example of ESql tag modification:
Query
<chtml><esql module=help id=list>SelectID,Subject,Writer,DayTimeFromMessages</esql></chtml>
Traverse the schoolbag and display the data list
<Table border = 1> <tr> <th> ID </th> <th> topic </th> <th> author </th> <th> time </th> </tr> <chtml> <for bags = list end =@{ list: getLength }>< tr> <td >@{ list: ID }</td> <td >@{ list: Subject} </td> <td >@{ list: writer }</td> <td >@{ list: DayTime }</td> </tr> </for> </chtml> </table>
Complete code
<Html> <title> display data query list </title>
Result
(Example file: _ samples/for_esql.html)
Try it yourself
Download and description of light platform Resources
Platform free download: http://download.csdn.net/detail/tx18/8381859
Latest Development Manual download: http://download.csdn.net/detail/tx18/8411089
Development Instance:Light B2C e-commerce websites, Free download: http://download.csdn.net/detail/tx18/8318585
The light-Open Platform will occasionally upgrade to provide more powerful and Easy functions for you. Please pay attention to the latestDevelopment Manual