<span>Phone No : <?php echo $customer_info[0]['comp_contact_phone']; ?></span> </div> </div> <div class="paper_content"> <div style="width:7%;float: left;">S.No</div> <div style="width:12%;float: left;">Super</div> <div style="width:12%;float: left;">Category</div> <div style="width:12%;float: left;">Sub Cate</div> <div style="width:19%;float: left;">Product Name</div> <div style="width:12%;float: left;">List Price</div> <div style="width:10%;float: left;">%</div> <div style="width:15%;float: left;">Selling Price</div> </div> <?php $favorites = ALLFAV($company_id); if (count($favorites) > 0) { $k = 1; foreach ($favorites as $Special_Product) { $super_id = getsuper($Special_Product['product_id']); $cat_id = getcat($Special_Product['product_id']); $sub_id = getsub($Special_Product['product_id']); $super_name = (getsuperN($super_id) == '') ? '--' : getsuperN($super_id); $cat_name = (getcatN($cat_id) == '') ? '--' : getcatN($cat_id); $sub_name = (getsubN($sub_id) == '') ? '--' : getsubN($sub_id); $special_id = $Special_Product['sp_id']; $product_name = (getorderProd($Special_Product['product_id']) == '') ? '--' : getorderProd($Special_Product['product_id']); $list_price = $Special_Product['list_price']; $discount_price = $Special_Product['discount_price']; $sell_price = $Special_Product['sell_price']; ?>
<?php include './config.php'; include './auth.php'; $comp_id = $_GET['comp_id']; $editfav = ALLFAV($comp_id); if (isset($_REQUEST['Delete'])) { $cnt = array(); $cnt = count($_POST['delete_val']); for ($i = 0; $i < $cnt; $i++) { $id = $_POST['delete_val'][$i]; $query = "DELETE FROM sohorepro_favorites WHERE id = '" . $id . "'"; $result = mysql_query($query); if ($result) { ?> <script> window.top.location = "customers.php";</script> <?php } } } ?> <!DOCTYPE html> <html> <head> <title>Edit Category</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="style/style.css" rel="stylesheet" type="text/css" media="all" /> <script type="text/javascript" src="js/jquery.min.js"></script> <style>.fancybox-inner{ width:288px !important; float:left !important; height:270px !important;}</style>
include './admin/db_connection.php'; $user_id = $_SESSION['sohorepro_companyid']; $id_user = $_SESSION['sohorepro_userid']; if($_SESSION['sohorepro_companyid'] == '') { header("Location:index.php"); exit; } $delete_fav = "UPDATE sohorepro_favorites SET delete_id = '0' WHERE comp_id = '".$_SESSION['sohorepro_companyid']."' "; mysql_query($delete_fav); $favorites = ALLFAV($user_id); if ($_GET['delete_id']) { $delete_id = $_GET['delete_id']; $sql = "DELETE FROM sohorepro_favorites WHERE id = " . $delete_id . " "; $sql_result = mysql_query($sql); if ($sql_result) { $result = "success"; } else { $result = "failure"; } } $special_pricelist = get_special_price($_SESSION['sohorepro_companyid']);