Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Andreas Lindner
Added: Mar 16, 2018 2:55 AM
Views: 17
Tags: no tags
  1. echo "<form method='post'>";
  2. echo "<input name='case' value='remove2' type='hidden'>";
  3. echo "Absender: <select name='senderId'>";
  4. echo "<option selected='selected' value=''>Bitte wählen Sie einen Absender aus.</option>\n";          
  5. $sendersActive = mysql_query("SELECT `id`, `sender` FROM `check_sender_access` WHERE `activated`=1 AND `deleted`=0 ORDER BY `sender` ASC;") or die(mysql_error());
  6. while($sendersActiveRow = mysql_fetch_assoc($sendersActive)) {
  7.         $sendersActiveRowId = $sendersActiveRow['id'];
  8.         $sendersActiveRowSender = $sendersActiveRow['sender'];
  9.         if (substr($sendersActiveRowSender, 0, 1 ) === "@") {
  10.                 $sendersActiveRowSender = '*' . $sendersActiveRowSender . ' (alle Adressen der Domain)';
  11.         } else {
  12.                 $sendersActiveRowSender = $sendersActiveRowSender . ' (einzelne Adresse)';
  13.         }
  14.         echo "<option value='$sendersActiveRowId'>$sendersActiveRowSender</option>\n";
  15. }
  16. echo "</select><br />";
  17. echo "<input type='submit' value='Eintrag von der Whiteliste entfernen'>";
  18. echo "</form>";