Ejemplo n.º 1
0
                                                  </div>


                                                </table>

                                                </body>
                                                </html>';
                $fullEmailContent = $header . $body . $footer;
                // $body = $autoText;
                if (isset($_POST['emailBody']) && $_POST['sendEmail'] != "no") {
                    $subject = "There's an issue with your package(s)";
                    $from = "*****@*****.**";
                    $to = "*****@*****.**";
                    $replyTo = "*****@*****.**";
                    $errors .= composeEmail($from, $to, $subject, $replyTo, $fullEmailContent);
                }
            } else {
                $sql = "DELETE from packages WHERE PackageID=:PackageID";
                //prepare the sql statement
                $stmt = $connection->prepare($sql);
                // bind variables to the paramenters ? present in sql
                $stmt->bindParam(':PackageID', $last, PDO::PARAM_INT);
                //execute the prepared statement
                $stmt->execute();
                goto end;
            }
        }
    }
    $errors .= 'done';
    echo $errors;
Ejemplo n.º 2
0
        adminRenewMember($option);
        break;
    case 'toggletaskflag':
        toggleTaskFlag($option);
        break;
    case 'listtransactions':
        listTransactions($option, $mode);
        break;
    case 'showemailqueries':
        showEmailQueries($option);
        break;
    case 'emailmenu':
        emailMenu($option);
        break;
    case 'composeemail':
        composeEmail($option);
        break;
    case 'sendemail':
        sendEmail($option);
        break;
    case 'showstafftotals':
        showStaffTotals($option);
        break;
    case 'generatereport':
        showReportForm($option);
        break;
    case 'mainmenu':
    default:
        showMainMenu($option);
        break;
}