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

"); exit(); } $today = date(F j,Y); $dtnum = date(Ymd); $ID = $_POST['ID']; $invnum = $_POST['invnum']; $usrn = $_POST['usrn']; $newnotes = stripslashes($_POST['newnotes']); $notify = $_POST['notify']; $cu_email = $_POST['cu_email']; $rep = $_POST['rep']; $rep_email = $_POST['rep_email']; $first_Name = $_POST['first_Name']; $Name = $_POST['Name']; $Company = $_POST['Company']; $ponum = $_POST['ponum']; $comma_separated = $_POST['comma_separated']; $due = $_POST['due']; $chunk_due = chunk_split($due, 2, ':'); $chunk_arr = explode(":", $chunk_due); $doodat = $chunk_arr[2].'-'.$chunk_arr[3].'-'.$chunk_arr[0].$chunk_arr[1]; $new_rec_name = $_POST['new_rec_name']; $new_rec_address = $_POST['new_rec_address']; $new_rec_city = $_POST['new_rec_city']; $new_rec_state = $_POST['new_rec_state']; $new_rec_zip = $_POST['new_rec_zip']; $dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1'); mysql_select_db('ecosmar_inv', $dbcnx); $ok = @mysql_query("UPDATE ecoinvoice SET rec_name='$new_rec_name',rec_address='$new_rec_address',rec_city='$new_rec_city',rec_state='$new_rec_state',rec_zip='$new_rec_zip' WHERE ID='$ID'"); if (!$ok) { $no_update = 'Problem Changing Shipping Address: ' . mysql_error(); }else{ $change_ship = 'yes'; } ?>
Close this Window

Eco-$mart Invoices
Change Invoice Shipping Address

" . "\n" . "Dear $first_Name $Name," . "\n" . "This is to confirm a change of Shipping Address for the Invoice listed below." . "\n" . "\n" . "ECO-\$MART INVOICE NUMBER: $invnum" . "\n" . "P.O. NUMBER: $ponum" . "\n" . "PRODUCT(S): $comma_separated" . "\n" . "NEW SHIPPING ADDRESS:" . "\n" . "$new_rec_name" . "\n" . "$new_rec_address" . "\n" . "$new_rec_city" . "\n" . "$new_rec_state" . "\n" . "$new_rec_zip" . "\n" . "\n" . "Please contact me if this is not correct." . "\n" . "Sincerely," . "\n" . "$rep, Your Eco-\$mart Representative" "\n" . "$rep_email" . "\n" . "www.ecosmartinc.com" . "\n"; if(@mail($recipient, $subject, $message, "From: $usrn <$rep_email>")){ $maildone = 'yes'; }else( $no_mail = "Error Sending Notification" . error(); } } if($change_ship == 'yes'){ echo(""); } if($maildone == 'yes'){ echo(""); } } } ?>
  Representative: Date:
  Invoice #:    Invoice Date:    Due Date:
  Customer:  ,    P.O.Number:
  Products:

Shipping Address Changed

Email Notification Sent

[ Invoice Number: ]
 Home   Administration 
Eco-$mart Products
©2006 - Data Base Interface - Custom Built at: kwgrubbs.com