18 lines
344 B
Plaintext
18 lines
344 B
Plaintext
<%
|
|
$user = "World";
|
|
$list = array('<aaa>', 'b&b', '"ccc"');
|
|
%>
|
|
<p>Hello <%= $user %>!</p>
|
|
<table>
|
|
<tbody>
|
|
<% $i = 0 %>
|
|
<% foreach ($list as $item) { %>
|
|
<% $i++; %>
|
|
<tr bgcolor="<%= $i % 2 == 0 ? '#FFCCCC' : '#CCCCFF' %>">
|
|
<td><%= $i %></td>
|
|
<td><%== $item %></td>
|
|
</tr>
|
|
<% } %>
|
|
</tbody>
|
|
</table>
|