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

"); exit(); } $usrn = $_GET['usrn']; if($usrn == ""){ $usrn = $_POST['usrn']; } if($usrn == ""){ echo("

<<<<Restricted Area>>>>" . "
Problem with your username. Please Log In again.

"); exit(); } ?>
Back Eco-$mart, Inc.  Eco-$mart Referrers
 Edit Referrer Information  Help 
Error getting Data from Data Base.
" . 'Error: '. mysql_error(). '

'); } $row = mysql_fetch_array($listem); $ID = $row['ID']; $name_1 = $row['name_1']; $name_2 = $row['name_2']; $Company = $row['Company']; $address = $row['address']; $city = $row['city']; $state = $row['state']; $Country = $row['Country']; $ZipCode = $row['ZipCode']; $phone = $row['phone']; $email = $row['email']; $Link = $row['Link']; $trak = $row['track']; $status = $row['status']; if($status == 'Hold'){ $st1 = 'Hold'; $st2 = 'Active'; $st3 = 'Inactive'; }elseif($status == 'Inactive'){ $st1 = 'Inactive'; $st2 = 'Active'; $st3 = 'Hold'; }elseif($status == 'Active'){ $st1 = 'Active'; $st2 = 'Hold'; $st3 = 'Inactive'; } $pay = $row['pay']; $rate = $row['rate']; $product = $row['product']; $req_by = $row['req_by']; $dtnum = $row['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]; if($product != "all"){ $getprodname = mysql_query("SELECT name FROM refprod WHERE TRI='$product'"); if(!$getprodname){ $prodmess = "Registered Referrer for Product:
".$product."
Could not get further information."; }else{ $rowp = mysql_fetch_array($getprodname); $productname = $rowp[0]; $prodmess = "Registered Referrer for Product:
".$productname; } }//referrer is not for all else{ $prodmess = "Registered Referrer for all Eco-\$mart Products."; } ?>

First Name:   Last Name: 

Company: 

Address: 

 City:  State/Prov: 

Country:   Mail Code: 

Phone: 

E-mail: 

Domain: 
   ! Required for Web Tracker !    Format: "www.eco-smart.com"

 Change to All" . "" . ""); }//product is not all else{ mysql_select_db('ecosmar_contacts', $dbcnx); $getproducts = mysql_query("SELECT name,TRI,rate FROM refprod ORDER BY name"); if(!$getproducts){ echo("
Could not retrieve Referrer Product list. Error:".mysql_error().""); }else{ echo("
Change: "); }//got products echo("
Specifying a Product will disable this Referrer from referring to all Eco-\$mart purchases. To do both, set up a New Referrer with the same information and specify a product."); }//product is all ?>

Referrer Status: 
! Web Tracker requires ACTIVE status.

Pay Referrer:  (per sale) " . "" . "
Rate: " . "

"); }elseif($pay == 'Per cent of Sale'){ echo("

" . "" . "
Rate: " . "

"); }elseif($pay == 'Per cent of Profit'){ echo("

" . "" . "
Rate: " . "

"); }elseif($pay == 'no' OR $rate == 0 OR $rate == ""){ echo("

" . "" . "
Rate: " . "
Leave Rate at 0 or blank for No Payment

"); } if($trak != "Yes"){ echo("

" . "" . " Start Web Tracker " . "

"); }elseif($trak == "Yes"){ echo(""); mysql_select_db('ecosmar_website', $dbcnx); $getit = mysql_query("SELECT count,dtup FROM webtrack WHERE email='$email'"); if(!$getit){ echo("

Could not get count!
".mysql_error()."

"); }else{ $row = mysql_fetch_array($getit); $wcnt = $row[0]; $dtup = $row[1]; $chunk_dtup = chunk_split($dtup, 2, ':'); $chunk_arru = explode(":", $chunk_dtup); $since = $chunk_arru[2].'-'.$chunk_arru[3].'-'.$chunk_arru[0].$chunk_arru[1]; echo("

" . "Count: $wcnt since $since" . "
Reset Web Tracker" . "
Drop Web Tracker" . "" . "

"); }//if you got it }//if trak is yes ?>

 Contacts Registered to this Referrer  Help 
"); }else{ $numrows = mysql_num_rows($getit); if($numrows < 1){ echo(""); }else{ while($row = mysql_fetch_array($getit)){ $CID = $row['ID']; $first_Name = $row['first_Name']; $Name = stripslashes($row['Name']); $Company = stripslashes($row['Company']); $email = $row['email']; $nameo = $first_Name." ".$Name; echo("" . ""); }//while } }//bigelse ?>
   Name Company Email
Problem connecting to the Data Base. Could not retrieve Contact information.
No Contacts Registered to this Referrer.
[ View ]$nameo$Company$email
 Add Referrer   New Referrers   List Referrers 
 Your Contacts   All Contacts   Return to Your Page 
Eco-$mart Products
©2007 - Data Base Interface - Custom Built at:  kwgrubbs.com