From fa7b7b64f8c5f5f1a409b12c9a8d483096dc110a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 12 Sep 2012 19:00:50 +0100 Subject: [PATCH] wip, don't do radiobuttons after all --- mason/edit | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) 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 { + > +% } +

-- 2.30.2