#$customer_number was deleted."; echo "\n"; exit; } } // add new customer else { $lock = ''; $fields['owner'] = $_SESSION['user']; } // user list if($_SESSION['level']=='administrator') { // administrator $t_user_list = _DATABASE::unique('users','user'); } if($_SESSION['level']=='contributor'&&$lock!='') { // contributor & locked $t_user_list = _DATABASE::unique('users','user'); } if($_SESSION['level']=='contributor'&&$lock=='') { // contributor & unlocked $t_user_list = array($_SESSION['user']); } $user_list = array_merge(array('--UNASSIGNED--'),$t_user_list); $user_selector = _HTML::select('owner',$user_list,strtolower($fields['owner']),$lock); // history list $starting_issue = array( 'Dec/Jan-09', 'Feb/Mar-10', 'Apr/May-10', 'Jun/Jul-10', 'Aug/Sep-10', 'Oct/Nov-10', 'Dec/Jan-10', 'Feb/Mar-11', 'Apr/May-11', 'Jun/Jul-11', 'Aug/Sep-11', 'Oct/Nov-11' ); // history list $history_options = array( 'print', 'internet', 'print-internet', 'distribution', 'sponsor', 'trade', 'ad partner', 'other_1', 'other_2' ); // status $status_options = array( '', 'hot', 'warm', 'cold', 'suggested to delete' ); // date selector $months = array('','01','02','03','04','05','06','07','08','09','10','11','12'); $days = array('','01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31'); $years = array('','2007','2008','2009','2010','2011','2012','2013','2014','2015','2016','2017','2018','2019','2020'); if($fields['scheduled']!='') { $fields['sh_year'] = substr($fields['scheduled'],0,4); $fields['sh_month'] = substr($fields['scheduled'],4,2); $fields['sh_day'] = substr($fields['scheduled'],6); } // fix query string $qs = str_replace('n='.$_REQUEST['n'].'&','',$_SERVER['QUERY_STRING']); ?>
Company />
First Name />
Last Name />
Title />
Address />
City />
State />
ZIP />
office phone 1 />
office phone 2 />
cell phone />
home phone />
fax />
email />
web />
marketing contact />
marketing phone />
marketing email />
#
NOTES LOCKED by':''; ?> owner
Advertiser type
Status
Call back date (mm-dd-yyyy)
 
$fields['customer_number'], 'owner' => $fields['owner'] ); _DATABASE::insert('sales',$add); } ?>
 
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } ?>
SALES RECORD
sale # starting issue description amount paid unpaid remove update
'.htmlentities($sale['sale_number']).''._HTML::select('code',$starting_issue,$sale['code'],$lock).'$'.number_format((intval($sale['amount'])-intval($sale['paid'])),2,'.',',').'
no records