Changeset 424
- Timestamp:
- 07/06/10 17:59:43 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/admin.cgi
r423 r424 537 537 538 538 # add new entries from this tangle: 539 print "Add new notification:<br>\n"; 539 print "<h4>Add new notification:</h4>\n". 540 "Note: Failure notices on most conditions are not yet supported.\n"; 540 541 541 542 print qq(<table border=1><form action=admin.cgi method="POST"> … … 547 548 <input type=radio name=msgaction value=u>Update 548 549 <input type=radio name=msgaction value=d>Delete 550 <input type=radio name=msgaction value=s:>Special: <input name=special>(requires code changes) 549 551 </td> 550 552 <td>Failure?</td><td><input type=checkbox name=onfail></td></tr> … … 579 581 580 582 } elsif ($webvar{action} eq 'addnotice') { 581 ##work582 583 $webvar{reciplist} =~ s/[\r\n]+/,/g; 583 584 print "Adding notice to $webvar{reciplist} for ".dispNoticeCode($webvar{msgaction}.$webvar{alloctype}).":\n"; … … 586 587 $webvar{msgaction} = "f:$webvar{msgaction}" if $webvar{onfail}; 587 588 $sth->execute($webvar{msgaction}.$webvar{alloctype}, $webvar{reciplist}); 589 if ($sth->err) { 590 print "Failed: DB error: ".$sth->errstr."\n"; 591 } else { 592 print "OK!<br>\n" 593 } 594 print qq(<a href="admin.cgi?action=emailnotice">Back to email notice list</a>\n); 595 596 } elsif ($webvar{action} eq 'delnotice') { 597 print "Deleting notices on ".dispNoticeCode($webvar{code}.$webvar{alloctype}).":\n"; 598 $sth = $ip_dbh->prepare("DELETE FROM notify WHERE action=?"); 599 $sth->execute($webvar{code}); 588 600 if ($sth->err) { 589 601 print "Failed: DB error: ".$sth->errstr."\n";
Note:
See TracChangeset
for help on using the changeset viewer.