<<<<Restricted Area>>>>" . "
Sorry, you must Log In to view this Page

"); exit(); } $today = date(F j,Y); $dtnum = $_POST['dtnum']; $chunk_dtnum = chunk_split($dtnum, 2, ':'); $chunk_arr = explode(":", $chunk_dtnum); $datus = $chunk_arr[2].'-'.$chunk_arr[3].'-'.$chunk_arr[0].$chunk_arr[1]; $ndm = $_POST['ndm']; $ndd = $_POST['ndd']; $ndy = $_POST['ndy']; $ID = $_POST['ID']; $invnum = $_POST['invnum']; $usrn = $_POST['usrn']; $newnotes = stripslashes($_POST['newnotes']); $notify = $_POST['notify']; if($ndm == "" or $ndd == "" or $ndy == ""){ echo("

ERROR:
" . "Please GO BACK and enter the complete date.

"); exit(); } if($ndm != "" and $newnotes == ""){ echo("

ERROR:
" . "Notes must accompany all Due Date changes.
" . "Please GO BACK and enter notes.

"); exit(); } $due = $_POST['due']; $chunk_due = chunk_split($due, 2, ':'); $chunk_arrd = explode(":", $chunk_due); $doodat = $chunk_arrd[2].'-'.$chunk_arrd[3].'-'.$chunk_arrd[0].$chunk_arrd[1]; $newdoo = $ndm.'-'.$ndd.'-'.$ndy; $dueup = $ndy.$ndm.ndd; $first_Name = $_POST['first_Name']; $Name = $_POST['Name']; $Company = $_POST['Company']; $cu_email = $_POST['cu_email']; $ponum = $_POST['ponum']; $prod_name_arr = $_POST[prod_name_arr]; $comma_separated = implode(",", $prod_name_arr); $dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1'); mysql_select_db('ecosmar_website', $dbcnx); $ok = @mysql_query("SELECT ID,usrn,email FROM psw WHERE usrn='$usrn'"); if (!$ok) { echo 'Could not retrieve Representative ID: ' . mysql_error(); } $rowa = mysql_fetch_array($ok); $RID = $rowa[0]; $rep = $rowa[1]; $rep_email = $rowa[2]; ?>
Close this Window

Eco-$mart Invoices
Change this Invoice Due Date?

" . "" . ""); }else{ echo("" . "" . ""); } ?>
  Representative: Date:
  Invoice #:    Invoice Date:    Old Due Date:
  Customer:  ,    P.O.Number:
  Products:
  New Due Date:
You have chosen NOT to send email notification of this change to this Customer.  [Change]
Your notes will be kept on file with this Invoice.
 Note:" . "
$newnotes
You have chosen to send email notification of this change to this Customer.  [Change]
Below is the email message that will be sent:
TO: $first_Name $Name <$cu_email>" . "
COMPANY: $Company" . "
FROM: $rep, Eco-\$mart Representative <$rep_email>" . "
Dear $first_Name $Name," . "
Due to factors out of our control, we are forced to change the following delivery date from our original estimate." . "
ECO-\$MART INVOICE NUMBER: $invnum" . "
P.O. NUMBER: $ponum" . "
PRODUCT(S): $comma_separated" . "
NEW DELIVERY DATE: $newdoo" . "
NOTE: $newnotes" . "
We apologize for any inconvenience this change might cause." . "
Sincerely," . "
$rep, Your Eco-\$mart Representative
 Home   Administration 
Eco-$mart Products
©2006 - Data Base Interface - Custom Built at: kwgrubbs.com