$cat_id = getcat($chk['product_id']); $sub_id = getsub($chk['product_id']); $super_name = (getsuperN($super_id) != '') ? getsuperN($super_id) : ''; $cat_name_pre = (getcatN($cat_id) != '') ? getcatN($cat_id) : ''; $cat_name = ($cat_name_pre != '') ? '>>'.$cat_name_pre : $cat_name_pre ; $sub_name_pre = (getsubN($sub_id) != '') ? getsubN($sub_id):''; $sub_name = ($sub_name != '') ? '>>'.$sub_name_pre : $sub_name_pre; $product_id = $chk['product_id']; $_SESSION['product_id'] = $chk['product_id']; $sku_id = getSku($chk['product_id']); $product_name = getProName($chk['product_id']); $tail = $product_name; $quantity = $chk['quantity']; $unit_price = $chk['unit_price']; $price = getPriceCkt($user_id); $cart_val = totalCart($user_id); $tax_status = getTaxStatusChk($comp_id); $tax_value = TaxValue(); if($tax_status == '1') { $tax_line = '0'; } else { $tax_line = $tax_value; } $tax = ($tax_line * ($price[0]['sub_total']/100)); $grand_tot = ($price[0]['sub_total'] + $tax); ?> <tr bgcolor="<?php echo $rowColor; ?>"> <span class="user_id" id="<?php echo $user_id; ?>" style="display: none;"></span> <span class="product_id" id="<?php echo $product_id; ?>" style="display: none;"></span> <td width="200" align="left" valign="top" class="brdr_1" style="font-size: 14px;"><!--<span class="pointer south" title="<?php //echo $super_name.'->'.$cat_name.'->'.$sub_name.'->'; ?><?php // echo $sku_id.'-'.str_replace('"',"'",$tail); ?>" alt="<?php // echo $super_name.'->'.$cat_name.'->'.$sub_name; ?>"> -->
<?php $page_names=explode("/",$_SERVER['SCRIPT_NAME']); $pagename_pos = count($page_names)-1; $page_name_new= $page_names[$pagename_pos]; $user_id = $_SESSION['supply_user_id']; $totoal_cart = totalCart($user_id); ?> <?php if (isset($_SESSION['supply_user_id'])) { ?> <div > <ul class="navigation primary" style="float:right !important;"><li class="navPlotting" style=" border-bottom: none !important;"><a href="#" style="font-weight: bolder;color: #F00 !important;">WELCOME <?php echo strtoupper($_SESSION['supply_user_name']); ?></a></li> <!-- <li class="navLargeFormat" style=" border-bottom: none !important;"><a href="addressbook.php" style="<?php if($page_name_new=='addressbook.php') { echo "font-weight: bold;"; } ?>">ADDRESS BOOK</a></li>--> <li class="navLargeFormat" style=" border-bottom: none !important;"><a href="shoppingcart.php?comp_id=<?php echo $_SESSION['supply_comp_id']; ?>&usr_id=<?php echo $_SESSION['supply_usr_id']; ?>" style="<?php if($page_name_new=='shoppingcart.php') { echo "font-weight: bold;"; } ?>">CART</a></li> <li class="navLargeFormat" style=" border-bottom: none !important;"><a href="logout.php">LOGOUT</a></li> </ul> <div style="clear:both"></div> </div> <?php } ?> <div id="content_output-navigation"> <div style="clear:both"></div> </div>