chiark
/
gitweb
/
~ian
/
nj-awaymsg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip
[nj-awaymsg.git]
/
mason
/
main
diff --git
a/mason/main
b/mason/main
index ac49c50ccbfa35592dd2fa359a02eceff88a63f1..42cfaac56e48329390f41856deb226eb73c93593 100755
(executable)
--- a/
mason/main
+++ b/
mason/main
@@
-4,9
+4,9
@@
db_connect();
my ($sth,$row,$sthi,$rowi);
</%init>
<html lang="en"><head>
my ($sth,$row,$sthi,$rowi);
</%init>
<html lang="en"><head>
-<title>Email
"out of office"
setup</title>
+<title>Email
away message
setup</title>
</head><body>
</head><body>
-<h1>Email
"out of office"
setup</h1>
+<h1>Email
away message
setup</h1>
<h2>Email addresses and their configuration</h2>
<%perl>
<h2>Email addresses and their configuration</h2>
<%perl>
@@
-29,16
+29,17
@@
$sth->execute();
<tr>
<td><% $row->{'emailaddr'} |h %></td>
% if (defined $row->{'textid'}) {
<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><% $row->{'desc'} |h %></td>
% } else {
<td>inactive</td>
<td></td>
-<td></td>
% }
</tr>
% }
</table>
% }
</tr>
% }
</table>
+<hr>
<h2>Outbound messages</h2>
<%perl>
$sth = $dbh->prepare("SELECT * FROM texts ORDER BY desc");
<h2>Outbound messages</h2>
<%perl>
$sth = $dbh->prepare("SELECT * FROM texts ORDER BY desc");
@@
-65,6
+66,7
@@
$sth->execute();
<input type="submit" name="t<% $row->{'textid'} %>"
value="Edit or configure this message">
<input type="submit" name="t<% $row->{'textid'} %>"
value="Edit or configure this message">
+<hr>
% }
<h3>Add new message</h3>
<input type="submit" name="create"
% }
<h3>Add new message</h3>
<input type="submit" name="create"