<%init>
use AwayMsg;
db_connect();
+www_begin($r,$m);
my ($sth,$row,$sthi,$rowi);
</%init>
-<html lang="en"><head>
-<title>Email "out of office" setup</title>
-</head><body>
-<h1>Email "out of office" setup</h1>
+<&htmlhead, subpage => 'Overview' &>
<h2>Email addresses and their configuration</h2>
<%perl>
<tr>
<td><% $row->{'emailaddr'} |h %></td>
% if (defined $row->{'textid'}) {
+<td>active</td>
<td><% $row->{'desc'} |h %></td>
% } else {
<td>inactive</td>
<td></td>
-<td></td>
% }
</tr>
% }
<hr>
<h2>Outbound messages</h2>
<%perl>
-$sth = $dbh->prepare("SELECT * FROM texts ORDER BY desc");
+$sth = $dbh->prepare("SELECT * FROM texts ORDER BY textid");
$sthi = $dbh->prepare(<<END);
SELECT * FROM addresses
WHERE textid = ?
<% $row->{'text'} |h %>
</pre>
-<input type="submit" name="t<% $row->{'textid'} %>"
+<input type="submit" name="t_<% $row->{'textid'} %>"
value="Edit or configure this message">
<hr>
% }