|
function show_form($type="", $login="", $msennumber="", $custnumber="", $custnumber2="", $custtelco="", $telcottnum="", $calltime="", $calldate="", $busy="", $message="Message you heard when you called.", $gotthrough="", $comments="",$errors=""){
if ($errors == 1) {
if (!isset($busy)) {
$errorstring["busy"] = " <--- please enter an error type ";
}
if ($calldate == "") {
$errorstring["calldate"] = " <--- please enter the date you called ";
}
if ($calltime == "") {
$errorstring["calltime"] = " <--- please enter the time you called ";
}
if ($custtelco == "") {
$errorstring["custtelco"] = " <--- please enter the name of your phone company ";
}
if ($custnumber == "") {
$errorstring["custnumber"] = " <--- please enter your phone number ";
}
if ($msennumber == "") {
$errorstring["msennumber"] = " <--- please enter the number you where calling ";
}
if (!isset($type)) {
$errorstring["type"] = " <--- please enter your phone line type ";
}
}
?>
Reporting busy signals
\n"; show_form($type, $login, $msennumber, $custnumber, $custnumber2, $custtelco, $telcottnum, $calltime, $calldate, $busy, $message, $gotthrough, $comments,$errors="1"); } else { echo "Thank you , $login, we will be checking into this complaint shortly "; $strMailTo = "msen-tech@staff.msen.com"; $strSubject = "Busy Signal Report from $login"; $strBody = "Failed $type call from $custnumber/$custnumber2($custtelco) to $msennumber(Mcleoud/Michtel) by $login\n\nTrouble Ticket: $telcottnum open with $custtelco\nCalled at at: $calltime(time) $calldate(date)\nReported a: $busy\nMessage heard: $message\n\nSucceeded at: $gotthrough\n\nOther Comments: $comments\n"; $strXHeaders = "From: msen-tech@staff.msen.com\n"; mail( $strMailTo , $strSubject, $strBody, $strXHeaders); } } ?> |
|||||||||||||||||
|
||||||||||||||||||