=1) { echo "Full host:
\n"; echo $full_path."
\n"; } if($debug>=2) { echo $http_host."
".$script_name."
".$request_uri."
".$script_filename."
\n"; } ?> =1) { echo $_SESSION['usr_type'].$member."
\n"; } if($debug>=1) { echo $_SESSION['contact_id']."
\n"; echo $_SESSION['company_name']."
\n"; echo $_SESSION['member_fname']."
\n"; echo $_SESSION['member_lname']."
\n"; echo $cntc_info['phone']."
\n"; echo $rfqInfoInsert_query."
\n"; } } elseif($_SESSION['usr_type'] != "member" ) { if($debug>=1) { echo "Non member
\n"; } $member=0; } // check membership // CHECK VARIABLES include("../inc/check_variables.php"); // CHECK VARIABLES if(!isset($_SESSION['cart_item_id'])) { $cart_item_id = 0; } //CREATE A CART OBJECT////////////////////////////////////////////////////////////////////////////// $rfqCart = $_SESSION['partCart']; // if(!is_object($rfqCart)) { $_SESSION['partCart'] = new Cart(); $rfqCart = $_SESSION['partCart']; } //PART NEEDS TO BE RECONFIRMED TO START THIS SCRIPT IF CUSTOMER IS ENTERING IN OWN PART OR SELECTED NEED REQCONFIRM FROM SELECT PART SEARCH $need_reconfirm = true; //INIT THIS VARIABLE //////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////// if($_POST['action'] == "addPart") { //GET PART INFO if($_POST['part_id'] != 0) { //GET PART TABLE SOURCE if($_POST['part_table_src'] == "s") { $part_table_src = "part"; } else { $part_table_src = "part_a"; } ///////////////////// $partInfo_query = QueryDB("SELECT part_id, pst_qty, mfgpn, mfg_name, date_code, description, package FROM $part_table_src WHERE part_id = '".$_POST['part_id']."'"); $partInfo = mssql_fetch_assoc($partInfo_query); $need_reconfirm = false; } else { $need_reconfirm = true; } $addingPart = true; //CURRENT ACTION } // call function sendRFQ include("../inc/rfq_cart.php"); // call function sendRFQ ////////////////////////////////////////////////////////////////////////////////////////////////// if($_GET['action'] == "removeItem") { $rfqCart->rmv_item($_GET['crt_id']); //SEND CART ITEM ID WHICH IS A RUNNING COUNT OF CART ITEMS $removeItem = true; if(count($rfqCart->items) == 0) { unset($_SESSION['cart_item_id']); } } if($_GET['action'] == "clearCart") { unset($_SESSION['partCart']); unset($_SESSION['cart_item_id']); unset($rfqCart); $clearCart = true; } ////////////////////////////////////////////////////////////////////////////////////////////////// ?> eElectronics
NAVIGATION
=1) { echo $_SESSION['usr_type'].$member."
\n"; } if($debug>=1) { echo $_SESSION['contact_id']."
\n"; echo $_SESSION['company_name']."
\n"; echo $_SESSION['member_fname']."
\n"; echo $_SESSION['member_lname']."
\n"; echo $cntc_info['phone']."
\n"; echo $rfqInfoInsert_query."
\n"; } } elseif($_SESSION['usr_type'] != "member" ) { if($debug>=1) { echo "Non member
\n"; } $member=0; } // check membership ?>

RFQ

items) == 0) { echo "

Your RFQ is empty.
Click here to start searching for parts or begin to complete the form below.

"; } ?>
>
MFG Part# / Internal PN MFG D/C Qty Package RoHS Target Price Notes Notes

Internal PN:
" onblur="return checkMfgName();" onfocus="return clearMfgName();" /> $
           
=1) { echo "session: ".$_SESSION['usr_type']."
\n"; }?>
MFG Part #".$_POST['mfgpn']." has been added to your RFQ

"; } if ($removeItem) { echo "

You successfully removed an item in your cart.

"; } if ($clearCart) { echo "

You successfully cleared your entire cart.
You can create a new RFQ by searching for new parts or completing the form below.

"; } if ($sendRfq) { echo "

Your RFQ has been sent.
Here is your RFQ Number: ".$rfq_id."

"; } ?> get_contents() as $item) { ?> >

Your Current RFQ Cart

MFG Part# / Internal PN MFG D/C Qty Package RoHS Target Price Notes Remove
Internal#:".stripslashes($item['internal_pn']); } ?> $ Remove
items) != 0) { ?>
items) == 0) || ($_GET['action'] == "removeItem" && count($rfqCart->items) == 0)) { ?>
Our records indicate that your information is not up to date!

"; } ?>
Fill out your contact information below.
*Denotes mandatory field
Your Contact Info
*Company Name
*First Name
*Last Name
*Phone
###-###-####
Ext
*Email