Compiled Template multiaccess.adp
set __adp_output {}; set __ad_conn_locale [ad_conn locale]
append __adp_output "<html>
<head>
<title>Demo: Users</title>
</head>
<body>
<h1>Sample Users</h1>
"
if {"${users:rowcount}" eq "0"} {
append __adp_output "
<p>Sorry, there are no users in the system at this time.</p>
"
}
append __adp_output "
<table>
<tr><th>First Name</th><th>Last Name</th><th>Full Name</th></tr>
"
if {[info exists users]} {
upvar 0 users __d4_swap
}
for { set __d4_i 1 } { $__d4_i <= ${users:rowcount} } { incr __d4_i } {
upvar 0 users:$__d4_i users
if {[expr {"[ns_quotehtml [lang::util::localize $users(rownum)]]" % 2}]} {
append __adp_output "<tr>"
} else {
append __adp_output "<tr bgcolor=\"#eeeeee\">"
}
append __adp_output "
<td>[ns_quotehtml [lang::util::localize $users(first_name)]]</td><td>[ns_quotehtml [lang::util::localize $users(last_name)]]</td>
<td>[ns_quotehtml [lang::util::localize $users(full_name)]]</td>
</tr>
"
}
if {[info exists __d4_swap]} {
upvar 0 __d4_swap users
}
append __adp_output "
</table>
<br>
<p>
Results of data access:
<ul>
<li>The size of the datasource was: [ns_quotehtml [lang::util::localize ${size}]]</li>
<li>The very last last name on the list was: [ns_quotehtml [lang::util::localize ${very_last_name}]]</li>
<li>The very last first name on the list was: [ns_quotehtml [lang::util::localize ${last_first_name}]]</li>
</ul>
</p>
</body>
</html>
"
set __adp_output