From: Ian Jackson Date: Wed, 12 Sep 2012 18:00:50 +0000 (+0100) Subject: wip, don't do radiobuttons after all X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=nj-awaymsg.git;a=commitdiff_plain;h=fa7b7b64f8c5f5f1a409b12c9a8d483096dc110a wip, don't do radiobuttons after all --- diff --git a/mason/edit b/mason/edit index c8ee036..9fc7a22 100755 --- a/mason/edit +++ b/mason/edit @@ -37,7 +37,13 @@ if ($ARGS{'create'}) { $tx = $sth->fetchrow_hashref();# } -my $usedq = $dbh->prepare("SELECT * FROM addresses ORDER BY emailaddr"); +my $usedq = $dbh->prepare(<execute(); if (!$tx) { die "no such text $textid"; } @@ -49,14 +55,20 @@ if (!$tx) { die "no such text $textid"; } -
+
% while (my $row = $usedq->fetchrow_hashref()) { +% if ($row->{'textid'} eq $textid) { + checked> % } -

+

Use for <% $row->{'emailaddr'} |h %> ->
(currently using this message) +% } elsif (defined $row->{'textid'}) { + >(currently using another message "<% $row->{'desc'} |h %>") +% } else { + > +% } +