Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User : u107206879 ( 107206879)
PHP Version : 7.2.34
Disable Function : NONE
Directory :  /home/u107206879/domains/escort46.de/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u107206879/domains/escort46.de/public_html/admin/settings_design.php
<?php
$error = "";
$message = "";
include "db_connection.php";
include "sessioncheck.php";
$error = "";
$message = "";

$website_background = "";
$website_desktop_view = "";
$website_mobile_view = "";
$website_page_layout = "";
$website_favicon_icon = "";
$website_logo = "";
$website_slider = "";
$website_advert_index_popup = "";
$website_section_keyword = "";
$website_footer_keyword = "";
$website_h1_position = "";
$website_profile_color= "";
$website_profile_hover = "";
$website_advert_color= "";
$website_advert_hover = "";

$website_advert_title = "";
$website_advert_discription = "";
$website_advert_features_title = "";
$website_advert_features_value = "";
$website_profile_title = "";
$website_profile_discription = "";
$website_profile_features_title = "";
$website_profile_features_value = "";
$website_footer_title="";
$website_footer_hover="";
$website_header_title = "";
$website_header_hover = "";
$website_body_background = "";
$website_theme_top_background ="";
$website_theme_top_checkbox ="";
$website_theme_above_footer_background = "";
$website_theme_footer_background = "";
$website_theme_advert_shadow_color = "";
$website_theme_advert_shadow_px = "";
$website_theme_profile_shadow_color = "";
$website_theme_profile_shadow_px = "";
$website_profile_message_color = "";
$website_profile_message_hover = "";
$website_profile_whishlist_color = "";
$website_profile_whishlist_hover = "";
$website_profile_report_color = "";
$website_profile_report_hover = "";
$website_tab = "";
$website_logo_width = "";
$website_logo_height = "";
$website_profile_border_color = '';
$website_profile_border_size = '';
$website_profile_border_radius = '';
$website_menu_title = '';
$website_menu_background = '';
$website_menu_search_background = '';
$website_advert_title_font_size = "";
$website_advert_title_font_size_m = "";
$website_advert_discription_status = "";
$website_advert_discription_font_size = "";
$website_advert_features_status = "";
$website_profile_title_font_size = "";
$website_profile_title_font_size_m = "";
$website_profile_discription_status = "";
$website_profile_discription_font_size = "";
$website_profile_features_status = "";

$website_profile_discription_font_grid_size =  "";
$website_profile_discription_font_list_size =  "";
$website_profile_discription_font_grid_size_m =  "";
$website_profile_discription_font_list_size_m =  "";
$website_profile_discription_grid_line =  "";
$website_profile_discription_list_line =  "";
$website_profile_discription_grid_line_m =  "";
$website_profile_discription_list_line_m =  "";
$website_advert_discription_font_grid_size =  "";
$website_advert_discription_font_list_size =  "";
$website_advert_discription_font_grid_size_m =  "";
$website_advert_discription_font_list_size_m =  "";
$website_advert_discription_grid_line =  "";
$website_advert_discription_list_line =  "";
$website_advert_discription_grid_line_m =  "";
$website_advert_discription_list_line_m =  "";


$website_setting = array();
$website_setting_query = "SELECT * from setting WHERE setting_type='design' order by `id` asc limit 1";
$website_setting_result = mysqli_query($connection, $website_setting_query);
if (mysqli_num_rows($website_setting_result)) {
  $website_setting = mysqli_fetch_assoc($website_setting_result);
  $tmp_array = json_decode($website_setting["setting_value"], true);

  if (!empty($tmp_array["website_background"])) {
    $website_background = $tmp_array["website_background"];
  }

  if (!empty($tmp_array["website_desktop_view"])) {
    $website_desktop_view = $tmp_array["website_desktop_view"];
  }

  if (!empty($tmp_array["website_mobile_view"])) {
    $website_mobile_view = $tmp_array["website_mobile_view"];
  }

  if (!empty($tmp_array["website_page_layout"])) {
    $website_page_layout = $tmp_array["website_page_layout"];
  }

  if (!empty($tmp_array["website_favicon_icon"])) {
    $website_favicon_icon = $tmp_array["website_favicon_icon"];
  }

  if (!empty($tmp_array["website_logo"])) {
    $website_logo = $tmp_array["website_logo"];
  }

  if (!empty($tmp_array["website_slider"])) {
    $website_slider = $tmp_array["website_slider"];
  }

  if (!empty($tmp_array["website_advert_index_popup"])) {
    $website_advert_index_popup = $tmp_array["website_advert_index_popup"];
  }

  if (!empty($tmp_array["website_section_keyword"])) {
    $website_section_keyword = $tmp_array["website_section_keyword"];
  }

  if (!empty($tmp_array["website_h1_position"])) {
    $website_h1_position = $tmp_array["website_h1_position"];
  }

  if (!empty($tmp_array["website_profile_color"])) {
    $website_profile_color = $tmp_array["website_profile_color"];
  }

  if (!empty($tmp_array["website_profile_hover"])) {
    $website_profile_hover = $tmp_array["website_profile_hover"];
  }

  if (!empty($tmp_array["website_advert_color"])) {
    $website_advert_color = $tmp_array["website_advert_color"];
  }

  if (!empty($tmp_array["website_advert_hover"])) {
    $website_advert_hover = $tmp_array["website_advert_hover"];
  }

  if (!empty($tmp_array["website_advert_title"])) {
      $website_advert_title = $tmp_array["website_advert_title"];
    }
  if (!empty($tmp_array["website_advert_title_hover"])) {
      $website_advert_title_hover = $tmp_array["website_advert_title_hover"];
    }
  if (!empty($tmp_array["website_advert_discription"])) {
      $website_advert_discription = $tmp_array["website_advert_discription"];
    }
  if (!empty($tmp_array["website_advert_features_title"])) {
      $website_advert_features_title = $tmp_array["website_advert_features_title"];
    }
  if (!empty($tmp_array["website_advert_features_value"])) {
      $website_advert_features_value = $tmp_array["website_advert_features_value"];
    }
  if (!empty($tmp_array["website_profile_title"])) {
      $website_profile_title = $tmp_array["website_profile_title"];
    }
  if (!empty($tmp_array["website_profile_title_hover"])) {
      $website_profile_title_hover = $tmp_array["website_profile_title_hover"];
    }
  if (!empty($tmp_array["website_profile_discription"])) {
      $website_profile_discription = $tmp_array["website_profile_discription"];
    }
  if (!empty($tmp_array["website_profile_features_title"])) {
      $website_profile_features_title = $tmp_array["website_profile_features_title"];
    }
  if (!empty($tmp_array["website_profile_features_value"])) {
      $website_profile_features_value = $tmp_array["website_profile_features_value"];
    }
  if (!empty($tmp_array["website_footer_title"])) {
      $website_footer_title = $tmp_array["website_footer_title"];
    }
  if (!empty($tmp_array["website_footer_hover"])) {
      $website_footer_hover = $tmp_array["website_footer_hover"];
    }
  if (!empty($tmp_array["website_header_title"])) {
      $website_header_title = $tmp_array["website_header_title"];
    }
  if (!empty($tmp_array["website_header_hover"])) {
      $website_header_hover = $tmp_array["website_header_hover"];
    }
  if (!empty($tmp_array["website_body_background"])) {
      $website_body_background = $tmp_array["website_body_background"];
    }
  if (!empty($tmp_array["website_theme_top_background"])) {
      $website_theme_top_background = $tmp_array["website_theme_top_background"];
    }
  if (!empty($tmp_array["website_theme_top_checkbox"])) {
      $website_theme_top_checkbox = $tmp_array["website_theme_top_checkbox"];
    }
   
  if (!empty($tmp_array["website_theme_above_footer_background"])) {
      $website_theme_above_footer_background = $tmp_array["website_theme_above_footer_background"];
    }
  if (!empty($tmp_array["website_theme_footer_background"])) {
      $website_theme_footer_background = $tmp_array["website_theme_footer_background"];
 }
if (!empty($tmp_array["website_theme_advert_shadow_color"])) {
      $website_theme_advert_shadow_color = $tmp_array["website_theme_advert_shadow_color"];
 }
if (!empty($tmp_array["website_theme_advert_shadow_px"])) {
      $website_theme_advert_shadow_px = $tmp_array["website_theme_advert_shadow_px"];
 }
if (!empty($tmp_array["website_theme_profile_shadow_color"])) {
      $website_theme_profile_shadow_color = $tmp_array["website_theme_profile_shadow_color"];
 }
if (!empty($tmp_array["website_theme_profile_shadow_px"])) {
      $website_theme_profile_shadow_px = $tmp_array["website_theme_profile_shadow_px"];
 }
if (!empty($tmp_array["website_profile_message_color"])) {
      $website_profile_message_color = $tmp_array["website_profile_message_color"];
 }
if (!empty($tmp_array["website_profile_message_hover"])) {
      $website_profile_message_hover = $tmp_array["website_profile_message_hover"];
 }
if (!empty($tmp_array["website_profile_whishlist_color"])) {
      $website_profile_whishlist_color = $tmp_array["website_profile_whishlist_color"];
 }
if (!empty($tmp_array["website_profile_whishlist_hover"])) {
      $website_profile_whishlist_hover = $tmp_array["website_profile_whishlist_hover"];
 }
if (!empty($tmp_array["website_profile_report_color"])) {
      $website_profile_report_color = $tmp_array["website_profile_report_color"];
 }
if (!empty($tmp_array["website_profile_report_hover"])) {
      $website_profile_report_hover = $tmp_array["website_profile_report_hover"];
 }
if (!empty($tmp_array["website_tab"])) {
      $website_tab = $tmp_array["website_tab"];
 }
 if (!empty($tmp_array["website_logo_width"])) {
      $website_logo_width = $tmp_array["website_logo_width"];
 }
if (!empty($tmp_array["website_logo_height"])) {
      $website_logo_height = $tmp_array["website_logo_height"];
 }
 if (!empty($tmp_array["website_profile_border_color"])) {
      $website_profile_border_color = $tmp_array["website_profile_border_color"];
 }
 if (!empty($tmp_array["website_profile_border_size"])) {
      $website_profile_border_size = $tmp_array["website_profile_border_size"];
 }
 if (!empty($tmp_array["website_profile_border_radius"])) {
      $website_profile_border_radius = $tmp_array["website_profile_border_radius"];
 }
  if (!empty($tmp_array["website_menu_title"])) {
      $website_menu_title = $tmp_array["website_menu_title"];
 }
  if (!empty($tmp_array["website_menu_background"])) {
      $website_menu_background = $tmp_array["website_menu_background"];
 }
    if (!empty($tmp_array["website_menu_search_background"])) {
      $website_menu_search_background = $tmp_array["website_menu_search_background"];
 }    if (!empty($tmp_array["website_footer_keyword"])) {
      $website_footer_keyword = $tmp_array["website_footer_keyword"];
 }


  if (!empty($tmp_array["website_advert_title_font_size"])) {
      $website_advert_title_font_size = $tmp_array["website_advert_title_font_size"];
 }
  if (!empty($tmp_array["website_advert_title_font_size_m"])) {
      $website_advert_title_font_size_m = $tmp_array["website_advert_title_font_size_m"];
 }
   if (!empty($tmp_array["website_advert_discription_font_size"])) {
      $website_advert_discription_font_size = $tmp_array["website_advert_discription_font_size"];
 }
   if (!empty($tmp_array["website_advert_discription_status"])) {
      $website_advert_discription_status = $tmp_array["website_advert_discription_status"];
 }
   if (!empty($tmp_array["website_advert_features_status"])) {
      $website_advert_features_status = $tmp_array["website_advert_features_status"];
 }


        if (!empty($tmp_array["website_profile_title_font_size"])) {
      $website_profile_title_font_size = $tmp_array["website_profile_title_font_size"];
 }   if (!empty($tmp_array["website_profile_title_font_size_m"])) {
      $website_profile_title_font_size_m = $tmp_array["website_profile_title_font_size_m"];
 }
   if (!empty($tmp_array["website_profile_discription_font_size"])) {
      $website_profile_discription_font_size = $tmp_array["website_profile_discription_font_size"];
 }
   if (!empty($tmp_array["website_profile_discription_status"])) {
      $website_profile_discription_status = $tmp_array["website_profile_discription_status"];
 }
   if (!empty($tmp_array["website_profile_features_status"])) {
      $website_profile_features_status = $tmp_array["website_profile_features_status"];
 }
    if (!empty($tmp_array["website_profile_discription_font_grid_size"])) {
      $website_profile_discription_font_grid_size = $tmp_array["website_profile_discription_font_grid_size"];
 }
    if (!empty($tmp_array["website_profile_discription_font_list_size"])) {
      $website_profile_discription_font_list_size = $tmp_array["website_profile_discription_font_list_size"];
 }
     if (!empty($tmp_array["website_profile_discription_font_list_size"])) {
      $website_profile_discription_font_list_size = $tmp_array["website_profile_discription_font_list_size"];
 }
    if (!empty($tmp_array["website_profile_discription_font_grid_size_m"])) {
      $website_profile_discription_font_grid_size_m = $tmp_array["website_profile_discription_font_grid_size_m"];
 }
    if (!empty($tmp_array["website_profile_discription_font_list_size_m"])) {
      $website_profile_discription_font_list_size_m = $tmp_array["website_profile_discription_font_list_size_m"];
 }

$website_profile_discription_font_grid_size =  $tmp_array['website_profile_discription_font_grid_size'] ? $tmp_array['website_profile_discription_font_grid_size'] : "";
$website_profile_discription_font_list_size =  $tmp_array['website_profile_discription_font_list_size'] ? $tmp_array['website_profile_discription_font_list_size'] : "";
$website_profile_discription_font_grid_size_m =  $tmp_array['website_profile_discription_font_grid_size_m'] ? $tmp_array['website_profile_discription_font_grid_size_m'] : "";
$website_profile_discription_font_list_size_m =  $tmp_array['website_profile_discription_font_list_size_m'] ? $tmp_array['website_profile_discription_font_list_size_m'] : "";
$website_profile_discription_grid_line =  $tmp_array['website_profile_discription_grid_line'] ? $tmp_array['website_profile_discription_grid_line'] : "";
$website_profile_discription_list_line =  $tmp_array['website_profile_discription_list_line'] ? $tmp_array['website_profile_discription_list_line'] : "";
$website_profile_discription_grid_line_m =  $tmp_array['website_profile_discription_grid_line_m'] ? $tmp_array['website_profile_discription_grid_line_m'] : "";
$website_profile_discription_list_line_m =  $tmp_array['website_profile_discription_list_line_m'] ? $tmp_array['website_profile_discription_list_line_m'] : "";
$website_advert_discription_font_grid_size =  $tmp_array['website_advert_discription_font_grid_size'] ? $tmp_array['website_advert_discription_font_grid_size'] : "";
$website_advert_discription_font_list_size =  $tmp_array['website_advert_discription_font_list_size'] ? $tmp_array['website_advert_discription_font_list_size'] : "";
$website_advert_discription_font_grid_size_m =  $tmp_array['website_advert_discription_font_grid_size_m'] ? $tmp_array['website_advert_discription_font_grid_size_m'] : "";
$website_advert_discription_font_list_size_m =  $tmp_array['website_advert_discription_font_list_size_m'] ? $tmp_array['website_advert_discription_font_list_size_m'] : "";
$website_advert_discription_grid_line =  $tmp_array['website_advert_discription_grid_line'] ? $tmp_array['website_advert_discription_grid_line'] : "";
$website_advert_discription_list_line =  $tmp_array['website_advert_discription_list_line'] ? $tmp_array['website_advert_discription_list_line'] : "";
$website_advert_discription_grid_line_m =  $tmp_array['website_advert_discription_grid_line_m'] ? $tmp_array['website_advert_discription_grid_line_m'] : "";
$website_advert_discription_list_line_m =  $tmp_array['website_advert_discription_list_line_m'] ? $tmp_array['website_advert_discription_list_line_m'] : "";



}

if (!empty($_POST["Process"]) && trim($_POST["Process"]) == "AddNow") {
  if (!empty($_POST["message_outgoing_link"]) && count($_POST["message_outgoing_link"]) > 0 && $_POST["website_advert_index_popup"] == "Active") {
    foreach ($_POST["message_outgoing_link"] as $post_row_key => $post_row) {
      if (!empty($post_row)) {
        $ad_id = test_input($_POST['ad_id']);
        $ad_device = test_input($_POST['ad_device'][$post_row_key]);
        $base = test_input($_POST['base'][$post_row_key]);
        $message_outgoing_link = test_input($_POST['message_outgoing_link'][$post_row_key]);
        $message_link_active = test_input($_POST['message_link_active'][$post_row_key]);
        $type = test_input($_POST['type'][$post_row_key]);
      }
    }
  }

  $settings = array();
  #Website Background Image Start
  $settings['website_background'] = "";
  if (!empty($_FILES["website_background"]["name"])) {
    #upload image code
    $tmp_name = $_FILES['website_background']['tmp_name'];
    $path = "../bg_images/";
    $name = $_FILES['website_background']['name'];
    $size = $_FILES['website_background']['size'];
    $type = $_FILES['website_background']['type'];
    $ext = strtolower(substr($name, strrpos($name, '.') + 1));
    $name = time() . "_" . rand(0, 999999) . "." . $ext;
    $target_file = $path . $name;

    if (!empty($website_background)) {
      #delete old image
      unlink("../bg_images/$website_background");
    }

    move_uploaded_file($_FILES["website_background"]["tmp_name"], $target_file);
    $settings['website_background'] = $name;
  } else {
    $settings['website_background'] = !empty($_POST['old_image_website_background']) ? $_POST['old_image_website_background'] : "";
  }
  #Website Background Ends

  #Favicon Image Start
  $settings['website_favicon_icon'] = "";
  if (!empty($_FILES["website_favicon_icon"]["name"])) {
    #upload image code
    $tmp_name = $_FILES['website_favicon_icon']['tmp_name'];
    $path = "../img-223GHG/favicon/";
    $name = $_FILES['website_favicon_icon']['name'];
    $size = $_FILES['website_favicon_icon']['size'];
    $type = $_FILES['website_favicon_icon']['type'];
    $ext = strtolower(substr($name, strrpos($name, '.') + 1));
    $name = time() . "_" . rand(0, 999999) . "." . $ext;
    $target_file = $path . $name;

    if (!empty($website_favicon_icon)) {
      #delete old image
      unlink("../img-223GHG/favicon/$website_favicon_icon");
    }
    move_uploaded_file($_FILES["website_favicon_icon"]["tmp_name"], $target_file);
    $settings['website_favicon_icon'] = $name;
  } else {
    $settings['website_favicon_icon'] = !empty($_POST['old_image_website_favicon_icon']) ? $_POST['old_image_website_favicon_icon'] : "";
  }
  #Favicon Ends

  #Logo Start
  $settings['website_logo'] = "";
  if (!empty($_FILES["website_logo"]["name"])) {
    #upload image code
    $tmp_name = $_FILES['website_logo']['tmp_name'];
    $path = "../img-223GHG/logo/";
    $name = $_FILES['website_logo']['name'];
    $size = $_FILES['website_logo']['size'];
    $type = $_FILES['website_logo']['type'];
    $ext = strtolower(substr($name, strrpos($name, '.') + 1));
    $name = time() . "_" . rand(0, 999999) . "." . $ext;
    $target_file = $path . $name;

    if (!empty($website_logo)) {
      #delete old image
      unlink("../img-223GHG/logo/$website_logo");
    }
    move_uploaded_file($_FILES["website_logo"]["tmp_name"], $target_file);
    $settings['website_logo'] = $name;
  } else {
    $settings['website_logo'] = !empty($_POST['old_image_website_logo']) ? $_POST['old_image_website_logo'] : "";
  }
  #Logo Ends

  $settings['website_desktop_view'] = test_input($_POST['website_desktop_view']);
  $settings['website_mobile_view'] = test_input($_POST['website_mobile_view']);
  $settings['website_page_layout'] = test_input($_POST['website_page_layout']);
  $settings['website_slider'] = test_input($_POST['website_slider']);
  $settings['website_advert_index_popup'] = test_input($_POST['website_advert_index_popup']);
  $settings['website_footer_keyword'] = test_input($_POST['website_footer_keyword']);
  $settings['website_section_keyword'] = test_input($_POST['website_section_keyword']);
  $settings['website_h1_position'] = test_input($_POST['website_h1_position']);
  $settings['website_profile_color'] = test_input($_POST['website_profile_color']);
  $settings['website_profile_hover'] = test_input($_POST['website_profile_hover']);
  $settings['website_advert_color'] = test_input($_POST['website_advert_color']);
  $settings['website_advert_hover'] = test_input($_POST['website_advert_hover']);

  $settings['website_advert_title'] = test_input($_POST['website_advert_title']);
  $settings['website_advert_title_hover'] = test_input($_POST['website_advert_title_hover']);
  $settings['website_advert_discription'] = test_input($_POST['website_advert_discription']);
  $settings['website_advert_features_title'] = test_input($_POST['website_advert_features_title']);
  $settings['website_advert_features_value'] = test_input($_POST['website_advert_features_value']);
  $settings['website_profile_title'] = test_input($_POST['website_profile_title']);
  $settings['website_profile_title_hover'] = test_input($_POST['website_profile_title_hover']);
  $settings['website_profile_discription'] = test_input($_POST['website_profile_discription']);
  $settings['website_profile_features_title'] = test_input($_POST['website_profile_features_title']);
  $settings['website_profile_features_value'] = test_input($_POST['website_profile_features_value']);
  $settings['website_footer_title'] = test_input($_POST['website_footer_title']);
  $settings['website_footer_hover'] = test_input($_POST['website_footer_hover']);
  $settings['website_header_title'] = test_input($_POST['website_header_title']);
  $settings['website_header_hover'] = test_input($_POST['website_header_hover']);
  $settings['website_body_background'] = test_input($_POST['website_body_background']);
  $settings['website_theme_top_background'] = test_input($_POST['website_theme_top_background']);
  $settings['website_theme_top_checkbox'] = test_input($_POST['website_theme_top_checkbox']);
  $settings['website_theme_above_footer_background'] = test_input($_POST['website_theme_above_footer_background']);
  $settings['website_theme_footer_background'] = test_input($_POST['website_theme_footer_background']);
  $settings['website_theme_advert_shadow_color'] = test_input($_POST['website_theme_advert_shadow_color']);
  $settings['website_theme_advert_shadow_px'] = test_input($_POST['website_theme_advert_shadow_px']);
  $settings['website_theme_profile_shadow_color'] = test_input($_POST['website_theme_profile_shadow_color']);
  $settings['website_theme_profile_shadow_px'] = test_input($_POST['website_theme_profile_shadow_px']);
  $settings['website_profile_message_color'] = test_input($_POST['website_profile_message_color']);
  $settings['website_profile_message_hover'] = test_input($_POST['website_profile_message_hover']);
  $settings['website_profile_whishlist_color'] = test_input($_POST['website_profile_whishlist_color']);
  $settings['website_profile_whishlist_hover'] = test_input($_POST['website_profile_whishlist_hover']);
  $settings['website_profile_report_color'] = test_input($_POST['website_profile_report_color']);
  $settings['website_profile_report_hover'] = test_input($_POST['website_profile_report_hover']);
  $settings['website_tab'] = test_input($_POST['website_tab']);
  $settings['website_logo_width'] = test_input($_POST['website_logo_width']);
  $settings['website_logo_height'] = test_input($_POST['website_logo_height']);
  $settings['website_profile_border_color'] = test_input($_POST['website_profile_border_color']);
  $settings['website_profile_border_size'] = test_input($_POST['website_profile_border_size']);
  $settings['website_profile_border_radius'] = test_input($_POST['website_profile_border_radius']);
  $settings['website_menu_title'] = test_input($_POST['website_menu_title']);
  $settings['website_menu_background'] = test_input($_POST['website_menu_background']);
  $settings['website_menu_search_background'] = test_input($_POST['website_menu_search_background']);
  $settings['website_advert_title_font_size'] = test_input($_POST['website_advert_title_font_size']);
  $settings['website_advert_title_font_size_m'] = test_input($_POST['website_advert_title_font_size_m']);
  $settings['website_advert_discription_status'] = test_input($_POST['website_advert_discription_status']);
  $settings['website_advert_discription_font_size'] = test_input($_POST['website_advert_discription_font_size']);
  $settings['website_advert_features_status'] = test_input($_POST['website_advert_features_status']);
  $settings['website_profile_title_font_size'] = test_input($_POST['website_profile_title_font_size']);
  $settings['website_profile_title_font_size_m'] = test_input($_POST['website_profile_title_font_size_m']);
  $settings['website_profile_discription_status'] = test_input($_POST['website_profile_discription_status']);
  $settings['website_profile_discription_font_size'] = test_input($_POST['website_profile_discription_font_size']);
  $settings['website_profile_features_status'] = test_input($_POST['website_profile_features_status']);
  $settings['website_profile_discription_font_grid_size'] =  test_input($_POST['website_profile_discription_font_grid_size']);
$settings['website_profile_discription_font_list_size'] =  test_input($_POST['website_profile_discription_font_list_size']);
$settings['website_profile_discription_font_grid_size_m'] =  test_input($_POST['website_profile_discription_font_grid_size_m']);
$settings['website_profile_discription_font_list_size_m'] =  test_input($_POST['website_profile_discription_font_list_size_m']);
$settings['website_profile_discription_grid_line'] =  test_input($_POST['website_profile_discription_grid_line']);
$settings['website_profile_discription_list_line'] =  test_input($_POST['website_profile_discription_list_line']);
$settings['website_profile_discription_grid_line_m'] =  test_input($_POST['website_profile_discription_grid_line_m']);
$settings['website_profile_discription_list_line_m'] =  test_input($_POST['website_profile_discription_list_line_m']);
$settings['website_advert_discription_font_grid_size'] =  test_input($_POST['website_advert_discription_font_grid_size']);
$settings['website_advert_discription_font_list_size'] =  test_input($_POST['website_advert_discription_font_list_size']);
$settings['website_advert_discription_font_grid_size_m'] =  test_input($_POST['website_advert_discription_font_grid_size_m']);
$settings['website_advert_discription_font_list_size_m'] =  test_input($_POST['website_advert_discription_font_list_size_m']);
$settings['website_advert_discription_grid_line'] =  test_input($_POST['website_advert_discription_grid_line']);
$settings['website_advert_discription_list_line'] =  test_input($_POST['website_advert_discription_list_line']);
$settings['website_advert_discription_grid_line_m'] =  test_input($_POST['website_advert_discription_grid_line_m']);
$settings['website_advert_discription_list_line_m'] =  test_input($_POST['website_advert_discription_list_line_m']);

  $val = json_encode($settings);

  if (!empty($website_setting["id"])) {
    $update = "UPDATE `setting` SET  `setting_value`='" . $val . "' WHERE id =" . $website_setting["id"];
    $update = mysqli_query($connection, $update);
  } else {
    $insert = "INSERT INTO `setting` (`id`, `setting_type`, `setting_value`) 
		VALUES (NULL, 'design', '" . $val . "')";
    $insert = mysqli_query($connection, $insert);
  }

  //reload data start
  $website_setting = array();
  $website_setting_query = "SELECT * from setting WHERE setting_type='design' order by `id` asc limit 1";
  $website_setting_result = mysqli_query($connection, $website_setting_query);
  if (mysqli_num_rows($website_setting_result)) {
    $website_setting = mysqli_fetch_assoc($website_setting_result);
    $tmp_array = json_decode($website_setting["setting_value"], true);
    if (!empty($tmp_array["website_background"])) {
      $website_background = $tmp_array["website_background"];
    }

    if (!empty($tmp_array["website_desktop_view"])) {
      $website_desktop_view = $tmp_array["website_desktop_view"];
    }

    if (!empty($tmp_array["website_mobile_view"])) {
      $website_mobile_view = $tmp_array["website_mobile_view"];
    }

    if (!empty($tmp_array["website_page_layout"])) {
      $website_page_layout = $tmp_array["website_page_layout"];
    }

    if (!empty($tmp_array["website_favicon_icon"])) {
      $website_favicon_icon = $tmp_array["website_favicon_icon"];
    }

    if (!empty($tmp_array["website_logo"])) {
      $website_logo = $tmp_array["website_logo"];
    }

    if (!empty($tmp_array["website_slider"])) {
      $website_slider = $tmp_array["website_slider"];
    }

    if (!empty($tmp_array["website_advert_index_popup"])) {
      $website_advert_index_popup = $tmp_array["website_advert_index_popup"];
    }

    if (!empty($tmp_array["website_section_keyword"])) {
      $website_section_keyword = $tmp_array["website_section_keyword"];
    }

    if (!empty($tmp_array["website_footer_keyword"])) {
      $website_footer_keyword = $tmp_array["website_footer_keyword"];
    }

    if (!empty($tmp_array["website_h1_position"])) {
      $website_h1_position = $tmp_array["website_h1_position"];
    }


    if (!empty($tmp_array["website_profile_color"])) {
      $website_profile_color = $tmp_array["website_profile_color"];
    }


    if (!empty($tmp_array["website_profile_hover"])) {
      $website_profile_hover = $tmp_array["website_profile_hover"];
    }


    if (!empty($tmp_array["website_advert_color"])) {
      $website_advert_color = $tmp_array["website_advert_color"];
    }

    if (!empty($tmp_array["website_advert_hover"])) {
      $website_advert_hover = $tmp_array["website_advert_hover"];
    }



    if (!empty($tmp_array["website_advert_title"])) {
      $website_advert_title = $tmp_array["website_advert_title"];
    }

    if (!empty($tmp_array["website_advert_discription"])) {
      $website_advert_discription = $tmp_array["website_advert_discription"];
    }

    if (!empty($tmp_array["website_advert_features_title"])) {
      $website_advert_features_title = $tmp_array["website_advert_features_title"];
    }

    if (!empty($tmp_array["website_advert_features_value"])) {
      $website_advert_features_value = $tmp_array["website_advert_features_value"];
    }

    if (!empty($tmp_array["website_profile_title"])) {
      $website_profile_title = $tmp_array["website_profile_title"];
    }

    if (!empty($tmp_array["website_profile_discription"])) {
      $website_profile_discription = $tmp_array["website_profile_discription"];
    }

    if (!empty($tmp_array["website_profile_features_title"])) {
      $website_profile_features_title = $tmp_array["website_profile_features_title"];
    }

    if (!empty($tmp_array["website_profile_features_value"])) {
      $website_profile_features_value = $tmp_array["website_profile_features_value"];
    }

    if (!empty($tmp_array["website_advert_title_hover"])) {
      $website_advert_title_hover = $tmp_array["website_advert_title_hover"];
    }

    if (!empty($tmp_array["website_profile_title_hover"])) {
      $website_profile_title_hover = $tmp_array["website_profile_title_hover"];
    }
    if (!empty($tmp_array["website_footer_title"])) {
      $website_footer_title = $tmp_array["website_footer_title"];
    }
    if (!empty($tmp_array["website_footer_hover"])) {
      $website_footer_hover = $tmp_array["website_footer_hover"];
    }
    if (!empty($tmp_array["website_header_title"])) {
      $website_header_title = $tmp_array["website_header_title"];
    }

    if (!empty($tmp_array["website_header_hover"])) {
      $website_header_hover = $tmp_array["website_header_hover"];
    }
    if (!empty($tmp_array["website_body_background"])) {
      $website_body_background = $tmp_array["website_body_background"];
    }
    if (!empty($tmp_array["website_theme_top_background"])) {
      $website_theme_top_background = $tmp_array["website_theme_top_background"];
    }
    if (!empty($tmp_array["website_theme_top_checkbox"])) {
      $website_theme_top_checkbox = $tmp_array["website_theme_top_checkbox"];
    }
    
    if (!empty($tmp_array["website_theme_above_footer_background"])) {
      $website_theme_above_footer_background = $tmp_array["website_theme_above_footer_background"];
    
    }
    if (!empty($tmp_array["website_theme_footer_background"])) {
      $website_theme_footer_background = $tmp_array["website_theme_footer_background"];
    }
    if (!empty($tmp_array["website_theme_advert_shadow_color"])) {
      $website_theme_advert_shadow_color = $tmp_array["website_theme_advert_shadow_color"];
    }
    if (!empty($tmp_array["website_theme_advert_shadow_px"])) {
      $website_theme_advert_shadow_px = $tmp_array["website_theme_advert_shadow_px"];
    }
    if (!empty($tmp_array["website_theme_profile_shadow_color"])) {
      $website_theme_profile_shadow_color = $tmp_array["website_theme_profile_shadow_color"];
    }
    if (!empty($tmp_array["website_theme_profile_shadow_px"])) {
      $website_theme_profile_shadow_px = $tmp_array["website_theme_profile_shadow_px"];
    }
    if (!empty($tmp_array["website_profile_message_color"])) {
      $website_profile_message_color = $tmp_array["website_profile_message_color"];
    }
    if (!empty($tmp_array["website_profile_message_hover"])) {
      $website_profile_message_hover = $tmp_array["website_profile_message_hover"];
    }
    if (!empty($tmp_array["website_profile_whishlist_color"])) {
      $website_profile_whishlist_color = $tmp_array["website_profile_whishlist_color"];
    }
    if (!empty($tmp_array["website_profile_whishlist_hover"])) {
      $website_profile_whishlist_hover = $tmp_array["website_profile_whishlist_hover"];
    }
    if (!empty($tmp_array["website_profile_report_color"])) {
      $website_profile_report_color = $tmp_array["website_profile_report_color"];
    }
    if (!empty($tmp_array["website_profile_report_hover"])) {
      $website_profile_report_hover = $tmp_array["website_profile_report_hover"];
    }
    if (!empty($tmp_array["website_tab"])) {
      $website_tab = $tmp_array["website_tab"];
    }
    if (!empty($tmp_array["website_logo_width"])) {
      $website_logo_width = $tmp_array["website_logo_width"];
    }
    if (!empty($tmp_array["website_logo_height"])) {
      $website_logo_height = $tmp_array["website_logo_height"];
    }    
    if (!empty($tmp_array["website_profile_border_color"])) {
      $website_profile_border_color = $tmp_array["website_profile_border_color"];
    }
    if (!empty($tmp_array["website_profile_border_size"])) {
      $website_profile_border_size = $tmp_array["website_profile_border_size"];
    }
    if (!empty($tmp_array["website_profile_border_radius"])) {
      $website_profile_border_radius = $tmp_array["website_profile_border_radius"];
    }
    if (!empty($tmp_array["website_menu_title"])) {
      $website_menu_title = $tmp_array["website_menu_title"];
    }
    if (!empty($tmp_array["website_menu_background"])) {
      $website_menu_background = $tmp_array["website_menu_background"];
    }
    if (!empty($tmp_array["website_menu_search_background"])) {
      $website_menu_search_background = $tmp_array["website_menu_search_background"];
    }

    if (!empty($tmp_array["website_advert_title_font_size"])) {
      $website_advert_title_font_size = $tmp_array["website_advert_title_font_size"];
 }
    if (!empty($tmp_array["website_advert_title_font_size_m"])) {
      $website_advert_title_font_size_m = $tmp_array["website_advert_title_font_size_m"];
 }
   if (!empty($tmp_array["website_advert_discription_font_size"])) {
      $website_advert_discription_font_size = $tmp_array["website_advert_discription_font_size"];
 }

      $website_advert_discription_status = $tmp_array["website_advert_discription_status"];


      $website_advert_features_status = $tmp_array["website_advert_features_status"];


        if (!empty($tmp_array["website_profile_title_font_size"])) {
      $website_profile_title_font_size = $tmp_array["website_profile_title_font_size"];
 }    if (!empty($tmp_array["website_profile_title_font_size_m"])) {
      $website_profile_title_font_size_m = $tmp_array["website_profile_title_font_size_m"];
 }
   if (!empty($tmp_array["website_profile_discription_font_size"])) {
      $website_profile_discription_font_size = $tmp_array["website_profile_discription_font_size"];
 }
   if (!empty($tmp_array["website_profile_discription_font_grid_size"])) {
      $website_profile_discription_font_grid_size = $tmp_array["website_profile_discription_font_grid_size"];
 }
   if (!empty($tmp_array["website_profile_discription_font_list_size"])) {
      $website_profile_discription_font_list_size = $tmp_array["website_profile_discription_font_list_size"];
 }
   if (!empty($tmp_array["website_profile_discription_font_grid_size_m"])) {
      $website_profile_discription_font_grid_size_m = $tmp_array["website_profile_discription_font_grid_size_m"];
 }
   if (!empty($tmp_array["website_profile_discription_font_list_size_m"])) {
      $website_profile_discription_font_list_size_m = $tmp_array["website_profile_discription_font_list_size_m"];
 }

      $website_profile_discription_status = $tmp_array["website_profile_discription_status"];


      $website_profile_features_status = $tmp_array["website_profile_features_status"];
      $website_profile_discription_font_grid_size =  $tmp_array['website_profile_discription_font_grid_size'] ? $tmp_array['website_profile_discription_font_grid_size'] : "";
$website_profile_discription_font_list_size =  $tmp_array['website_profile_discription_font_list_size'] ? $tmp_array['website_profile_discription_font_list_size'] : "";
$website_profile_discription_font_grid_size_m =  $tmp_array['website_profile_discription_font_grid_size_m'] ? $tmp_array['website_profile_discription_font_grid_size_m'] : "";
$website_profile_discription_font_list_size_m =  $tmp_array['website_profile_discription_font_list_size_m'] ? $tmp_array['website_profile_discription_font_list_size_m'] : "";
$website_profile_discription_grid_line =  $tmp_array['website_profile_discription_grid_line'] ? $tmp_array['website_profile_discription_grid_line'] : "";
$website_profile_discription_list_line =  $tmp_array['website_profile_discription_list_line'] ? $tmp_array['website_profile_discription_list_line'] : "";
$website_profile_discription_grid_line_m =  $tmp_array['website_profile_discription_grid_line_m'] ? $tmp_array['website_profile_discription_grid_line_m'] : "";
$website_profile_discription_list_line_m =  $tmp_array['website_profile_discription_list_line_m'] ? $tmp_array['website_profile_discription_list_line_m'] : "";


$website_advert_discription_font_grid_size =  $tmp_array['website_advert_discription_font_grid_size'] ? $tmp_array['website_advert_discription_font_grid_size'] : "";
$website_advert_discription_font_list_size =  $tmp_array['website_advert_discription_font_list_size'] ? $tmp_array['website_advert_discription_font_list_size'] : "";
$website_advert_discription_font_grid_size_m =  $tmp_array['website_advert_discription_font_grid_size_m'] ? $tmp_array['website_advert_discription_font_grid_size_m'] : "";
$website_advert_discription_font_list_size_m =  $tmp_array['website_advert_discription_font_list_size_m'] ? $tmp_array['website_advert_discription_font_list_size_m'] : "";
$website_advert_discription_grid_line =  $tmp_array['website_advert_discription_grid_line'] ? $tmp_array['website_advert_discription_grid_line'] : "";
$website_advert_discription_list_line =  $tmp_array['website_advert_discription_list_line'] ? $tmp_array['website_advert_discription_list_line'] : "";
$website_advert_discription_grid_line_m =  $tmp_array['website_advert_discription_grid_line_m'] ? $tmp_array['website_advert_discription_grid_line_m'] : "";
$website_advert_discription_list_line_m =  $tmp_array['website_advert_discription_list_line_m'] ? $tmp_array['website_advert_discription_list_line_m'] : "";


  }
  $message = "Data Updated Successfully";
}
//pre($website_setting["setting_value"]);die();	
?>
<!-- Header Start-->
<?php include("header.php"); ?>
<nav class=" navbar navbar-expand navbar-white navbar-light">
  <ul class="navbar-nav">
    <li class="nav-item">
      <a class="nav-link" data-widget="pushmenu" href="#">
        <i class="fa fa-bars" style="color:white;"></i>
      </a>
    </li>
  </ul>
  <div>
    <ol class="breadcrumb float-sm-right">
      <li class="breadcrumb-item ">Settings</li>
      <li class="breadcrumb-item">Design Settings</li>
    </ol>
  </div>
</nav>
<!-- Header Ends-->
<style>
  .tablet,
  .mobile,
  .desktop {
    display: none;
  }

  .all {
    display: block;
  }
</style>
<!-- Content Start-->

<section class="content">
  <div class="container-fluid">
    <div class="row">
      <div class="col-12">
        <div class="card">
          <!-- /.card-header -->
          <div class="card-body">
            <?php include_once 'notification.php'; ?>
            <form action="" method="post" id="add-design-form" enctype="multipart/form-data">
              <input type="hidden" name="old_image_website_background" id="old_image_website_background" value="<?php if (!empty($website_background)) {
                                                                                                                  echo $website_background;
                                                                                                                } else {
                                                                                                                  echo "";
                                                                                                                } ?>" />
              <input type="hidden" name="old_image_website_favicon_icon" id="old_image_website_favicon_icon" value="<?php if (!empty($website_favicon_icon)) {
                                                                                                                      echo $website_favicon_icon;
                                                                                                                    } else {
                                                                                                                      echo "";
                                                                                                                    } ?>" />
              <input type="hidden" name="old_image_website_logo" id="old_image_website_logo" value="<?php if (!empty($website_logo)) {
                                                                                                      echo $website_logo;
                                                                                                    } else {
                                                                                                      echo "";
                                                                                                    } ?>" />

              <?php if (!empty($website_favicon_icon)) { ?>
                <div class="form-group">
                  <label for="usrname">Favicon Icon</label> <br />
                  <a href="<?= MAIN_URL ?>/img-223GHG/favicon/<?= $website_favicon_icon ?>" target="_blank"><img src="<?= MAIN_URL ?>/img-223GHG/favicon/<?= $website_favicon_icon ?>" width="120px;" /></a>
                </div>
              <?php  } ?>

              <div class="form-group">
                <label for="usrname">Favicon Icon</label>
                <input type="file" class="form-control" id="website_favicon_icon" name="website_favicon_icon" placeholder="Select favicon">
              </div>
              <hr />
              <?php if (!empty($website_logo)) { ?>
                <div class="form-group">
                  <label for="usrname">Logo</label> <br />
                  <a href="<?= MAIN_URL ?>/img-223GHG/logo/<?= $website_logo ?>" target="_blank"><img src="<?= MAIN_URL ?>/img-223GHG/logo/<?= $website_logo ?>" width="120px;" /></a>
                </div>
              <?php  } ?>

              <div class="form-group">
                <label for="usrname">Logo</label>
                <input type="file" class="form-control" id="website_logo" name="website_logo" placeholder="Select logo">
              </div>
              <hr />
               <div class="form-group">
                <label for="usrname">Logo W * H </label>
                <div class="row">
                  <input type="text" value="<?php echo $website_logo_width ?>" class="form-control col-md-2 col-3" id="website_logo_width" name="website_logo_width" placeholder="Width">
                  <input type="text" value="<?php echo $website_logo_height ?>" class="form-control col-md-2 col-3" id="website_logo" name="website_logo_height" placeholder="Height">
                </div>
              </div>
              <hr />
              <?php if (!empty($website_background)) { ?>
                <div class="form-group">
                  <label for="usrname">Website Background</label> <br />
                  <a href="<?= MAIN_URL ?>/bg_images/<?= $website_background ?>" target="_blank"><img src="<?= MAIN_URL ?>/bg_images/<?= $website_background ?>" width="120px;" /></a>
                </div>
              <?php  } ?>

              <div class="form-group">
                <label for="usrname">Add a Website Background</label>
                <input type="file" class="form-control" id="website_background" name="website_background" placeholder="Select website background">
              </div>
              <hr />
              <div class="form-group">
                <label for="user_country_id">Desktop View</label>
                <select class="form-control" id="website_desktop_view" name="website_desktop_view">
                  <option value="">Select</option>
                  <option value="grid" <?php if (!empty($website_desktop_view) && trim($website_desktop_view) == "grid") { ?> selected="selected" <?php } ?>>Grid</option>
                  <option value="list" <?php if (!empty($website_desktop_view) && trim($website_desktop_view) == "list") { ?> selected="selected" <?php } ?>>List</option>
                </select>
              </div>

              <div class="form-group">
                <label for="user_country_id">Mobile View</label>
                <select class="form-control" id="website_mobile_view" name="website_mobile_view">
                  <option value="">Select</option>
                  <option value="grid" <?php if (!empty($website_mobile_view) && trim($website_mobile_view) == "grid") { ?> selected="selected" <?php } ?>>Grid</option>
                  <option value="list" <?php if (!empty($website_mobile_view) && trim($website_mobile_view) == "list") { ?> selected="selected" <?php } ?>>List</option>
                </select>
              </div>
              <hr />
              <div class="form-group">
                <label for="user_country_id">Page Layout</label>
                <select class="form-control" id="website_page_layout" name="website_page_layout">
                  <option value="">Select</option>
                  <option value="big" <?php if (!empty($website_page_layout) && trim($website_page_layout) == "big") { ?> selected="selected" <?php } ?>>Big</option>
                  <option value="small" <?php if (!empty($website_page_layout) && trim($website_page_layout) == "small") { ?> selected="selected" <?php } ?>>Small</option>
                </select>
              </div>
              <hr />
              <div class="form-group">
                <label for="user_country_id">H1 Position</label>
                <select class="form-control" id="website_h1_position" name="website_h1_position">
                  <option value="default" <?php if (!empty($website_h1_position) && trim($website_h1_position) == "default") { ?> selected="selected" <?php } ?>>
                    Default
                  </option>
                  <option value="inside_logo" <?php if (!empty($website_h1_position) && trim($website_h1_position) == "inside_logo") { ?> selected="selected" <?php } ?>>
                    Inside Logo
                  </option>
                  <option value="top_head_position" <?php if (!empty($website_h1_position) && trim($website_h1_position) == "top_head_position") { ?> selected="selected" <?php } ?>>
                    Top Head Position
                  </option>
                </select>
              </div>
              <hr />
              <div class="form-group">
                <label for="user_country_id">Advert</label>
                <div class="row">
                  <div class="col-md-2">Background Color 
                  <input value="<?php echo $website_profile_color; ?>" name="website_profile_color"  data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Background Hover 
                  <input value="<?php echo $website_profile_hover; ?>"   name="website_profile_hover"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2"> Title 
                  <input value="<?php echo $website_profile_title; ?>"   name="website_profile_title"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2"> Title Font Size 
                  <input type="number"  value="<?php echo $website_profile_title_font_size; ?>"   name="website_profile_title_font_size"    id="" class="form-control"  placeholder="number in px"></div>
                  <div class="col-md-2"> Title Font Size (M)
                  <input type="number"  value="<?php echo $website_profile_title_font_size_m; ?>"   name="website_profile_title_font_size_m"    id="" class="form-control"  placeholder="number in px"></div>
                  <div class="col-md-2"> Title Hover
                  <input value="<?php echo $website_profile_title_hover; ?>"   name="website_profile_title_hover"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2"> Discription 
                  <input value="<?php echo $website_profile_discription; ?>"   name="website_profile_discription"   data-jscolor="{}" id="" class="form-control"></div>





                  <div class="col-md-2"> Discription Font Grid Size
                  <input type="number" value="<?php echo $website_profile_discription_font_grid_size; ?>"   name="website_profile_discription_font_grid_size"    id="" class="form-control" placeholder="number in px"></div>
                  <div class="col-md-2"> Discription Font List Size 
                  <input type="number" value="<?php echo $website_profile_discription_font_list_size; ?>"   name="website_profile_discription_font_list_size"    id="" class="form-control" placeholder="number in px"></div>
                  <div class="col-md-2"> Discription Font Grid Size (M)
                  <input type="number" value="<?php echo $website_profile_discription_font_grid_size_m; ?>"   name="website_profile_discription_font_grid_size_m"    id="" class="form-control" placeholder="number in px"></div>
                  <div class="col-md-2"> Discription Font List Size (M)
                  <input type="number" value="<?php echo $website_profile_discription_font_list_size_m; ?>"   name="website_profile_discription_font_list_size_m"    id="" class="form-control" placeholder="number in px"></div>


                  <div class="col-md-2"> Discription Grid Line
                  <input type="number" value="<?php echo $website_profile_discription_grid_line; ?>"   name="website_profile_discription_grid_line"    id="" class="form-control" placeholder="number of Line"></div>
                  <div class="col-md-2"> Discription List Line 
                  <input type="number" value="<?php echo $website_profile_discription_list_line; ?>"   name="website_profile_discription_list_line"    id="" class="form-control" placeholder="number of Line"></div>
                  <div class="col-md-2"> Discription  Grid Line (M)
                  <input type="number" value="<?php echo $website_profile_discription_grid_line_m; ?>"   name="website_profile_discription_grid_line_m"    id="" class="form-control" placeholder="number of Line"></div>
                  <div class="col-md-2"> Discription  List Line (M)
                  <input type="number" value="<?php echo $website_profile_discription_list_line_m; ?>"   name="website_profile_discription_list_line_m"    id="" class="form-control" placeholder="number of Line"></div>




                   <div class="col-md-2"> Discription Status
                    <br>
                    <label class="switch" style="float: none;">
                      <input type="checkbox" class="switch-input " value="1" name="website_profile_discription_status" <?php if($website_profile_discription_status){
                                echo "checked";} ?>>
                        <span class="switch-label" data-on="On" data-off="Off"></span>
                        <span class="switch-handle"></span>
                      </label>
                    </div>
                  <div class="col-md-2"> Features Title 
                  <input value="<?php echo $website_profile_features_title; ?>"   name="website_profile_features_title"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2"> Features Value 
                  <input value="<?php echo $website_profile_features_value; ?>"   name="website_profile_features_value"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2"> Features Status 
                    <br>
                    <label class="switch" style="float: none;">
                      <input type="checkbox" class="switch-input" value="1" name="website_profile_features_status" <?php if($website_profile_features_status){
                                echo "checked";} ?>>
                        <span class="switch-label" data-on="On" data-off="Off"></span>
                        <span class="switch-handle"></span>
                      </label>
                    </div>
                  <div class="col-md-2"> Shadow Color 
                  <input value="<?php echo $website_theme_profile_shadow_color; ?>"   name="website_theme_profile_shadow_color"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2"> Shadow pixel Value 
                  <input value="<?php echo $website_theme_profile_shadow_px; ?>"   name="website_theme_profile_shadow_px"  type="number" id="" class="form-control"></div>
                </div>
              </div>
              <hr />
              <div class="form-group">
                <label for="user_country_id">Advert (Boost) </label>
                <div class="row">
                  <div class="col-md-2">Background Color 
                  <input value="<?php echo $website_advert_color; ?>" name="website_advert_color"  data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Background Hover 
                  <input value="<?php echo $website_advert_hover; ?>"   name="website_advert_hover"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2"> Title 
                  <input value="<?php echo $website_advert_title; ?>"   name="website_advert_title"   data-jscolor="{}" id="" class="form-control"></div>
                     <div class="col-md-2"> Title Font Size 
                  <input type="number"  value="<?php echo $website_advert_title_font_size; ?>"   name="website_advert_title_font_size"    id="" class="form-control"  placeholder="number in px"></div>
                  <div class="col-md-2"> Title Font Size (M)
                  <input type="number"  value="<?php echo $website_advert_title_font_size_m; ?>"   name="website_advert_title_font_size_m"    id="" class="form-control"  placeholder="number in px"></div>
                  <div class="col-md-2"> Title Hover
                  <input value="<?php echo $website_advert_title_hover; ?>"   name="website_advert_title_hover"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2"> Discription 
                  <input value="<?php echo $website_advert_discription; ?>"   name="website_advert_discription"   data-jscolor="{}" id="" class="form-control"></div>
                  
                   <div class="col-md-2"> Discription Font Grid Size
                  <input type="number" value="<?php echo $website_advert_discription_font_grid_size; ?>"   name="website_advert_discription_font_grid_size"    id="" class="form-control" placeholder="number in px"></div>
                  <div class="col-md-2"> Discription Font List Size 
                  <input type="number" value="<?php echo $website_advert_discription_font_list_size; ?>"   name="website_advert_discription_font_list_size"    id="" class="form-control" placeholder="number in px"></div>
                  <div class="col-md-2"> Discription Font Grid Size (M)
                  <input type="number" value="<?php echo $website_advert_discription_font_grid_size_m; ?>"   name="website_advert_discription_font_grid_size_m"    id="" class="form-control" placeholder="number in px"></div>
                  <div class="col-md-2"> Discription Font List Size (M)
                  <input type="number" value="<?php echo $website_advert_discription_font_list_size_m; ?>"   name="website_advert_discription_font_list_size_m"    id="" class="form-control" placeholder="number in px"></div>


                  <div class="col-md-2"> Discription Grid Line
                  <input type="number" value="<?php echo $website_advert_discription_grid_line; ?>"   name="website_advert_discription_grid_line"    id="" class="form-control" placeholder="number of Line"></div>
                  <div class="col-md-2"> Discription List Line 
                  <input type="number" value="<?php echo $website_advert_discription_list_line; ?>"   name="website_advert_discription_list_line"    id="" class="form-control" placeholder="number of Line"></div>
                  <div class="col-md-2"> Discription  Grid Line (M)
                  <input type="number" value="<?php echo $website_advert_discription_grid_line_m; ?>"   name="website_advert_discription_grid_line_m"    id="" class="form-control" placeholder="number of Line"></div>
                  <div class="col-md-2"> Discription  List Line (M)
                  <input type="number" value="<?php echo $website_advert_discription_list_line_m; ?>"   name="website_advert_discription_list_line_m"    id="" class="form-control" placeholder="number of Line"></div>

                  <div class="col-md-2"> Discription Status
                    <br>
                    <label class="switch" style="float: none;">
                      <input type="checkbox" class="switch-input " value="1" name="website_advert_discription_status" <?php if($website_advert_discription_status){
                                echo "checked";} ?>>
                        <span class="switch-label" data-on="On" data-off="Off"></span>
                        <span class="switch-handle"></span>
                      </label>
                    </div>
                  <div class="col-md-2"> Features Title 
                  <input value="<?php echo $website_advert_features_title; ?>"   name="website_advert_features_title"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2"> Features Value 
                  <input value="<?php echo $website_advert_features_value; ?>"   name="website_advert_features_value"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2"> Features Status 
                    <br>
                    <label class="switch" style="float: none;">
                      <input type="checkbox" class="switch-input" value="1" name="website_advert_features_status" <?php if($website_advert_features_status){
                                echo "checked";} ?>>
                        <span class="switch-label" data-on="On" data-off="Off"></span>
                        <span class="switch-handle"></span>
                      </label>
                    </div>
                  <div class="col-md-2"> Shadow Color 
                  <input value="<?php echo $website_theme_advert_shadow_color; ?>"   name="website_theme_advert_shadow_color"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2"> Shadow pixel Value 
                  <input value="<?php echo $website_theme_advert_shadow_px; ?>"   name="website_theme_advert_shadow_px"  type="number" id="" class="form-control"></div>
                </div>
              </div>
              <hr />
              <div class="form-group">
                <label for="user_country_id">Header color</label>
                <div class="row">
                  <div class="col-md-2">Text  
                  <input value="<?php echo $website_header_title; ?>" name="website_header_title"  data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Hover 
                  <input value="<?php echo $website_header_hover; ?>"   name="website_header_hover"   data-jscolor="{}" id="" class="form-control"></div>
                </div>
              </div>
              <hr />
              <div class="form-group">
                <label for="user_country_id">Footer color</label>
                <div class="row">
                  <div class="col-md-2">Text  
                  <input value="<?php echo $website_footer_title; ?>" name="website_footer_title"  data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Hover 
                  <input value="<?php echo $website_footer_hover; ?>"   name="website_footer_hover"   data-jscolor="{}" id="" class="form-control"></div>
                </div>
              </div>
              <hr />
                 <div class="form-group">
                <label for="user_country_id">Menu color</label>
                <div class="row">
                  <div class="col-md-2">Text  
                  <input value="<?php echo $website_menu_title; ?>" name="website_menu_title"  data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">background 
                  <input value="<?php echo $website_menu_background; ?>"   name="website_menu_background"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">search background 
                  <input value="<?php echo $website_menu_search_background; ?>"   name="website_menu_search_background"   data-jscolor="{}" id="" class="form-control"></div>
                </div>
              </div>
              <hr />
              <div class="form-group">
                <label for="user_country_id">Theme Color</label>
                <div class="row">
                  <div class="col-md-2">Body background  
                  <input value="<?php echo $website_body_background; ?>" name="website_body_background"  data-jscolor="{}" id="" class="form-control"></div>
                
                  <div class="col-md-2">Above Footer background  
                  <input value="<?php echo $website_theme_above_footer_background; ?>" name="website_theme_above_footer_background"  data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Footer background  
                  <input value="<?php echo $website_theme_footer_background; ?>" name="website_theme_footer_background"  data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Top background  
                  <input value="<?php echo $website_theme_top_background; ?>" name="website_theme_top_background"  data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-3">Top background   
                  <p>
                  
                  <input value="1" name="website_theme_top_checkbox" type="checkbox" id="" class="" <?php if($website_theme_top_checkbox){
                  ?>checked <?php } ?>> <small>remove Image and show color</small>
                  </p></div>
                </div>
              </div>
              <hr/>
              <div class="form-group">
                <label for="user_country_id">Profile color</label>
                <div class="row">
                  <div class="col-md-2">Message Color  
                  <input value="<?php echo $website_profile_message_color; ?>" name="website_profile_message_color"  data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Message Hover 
                  <input value="<?php echo $website_profile_message_hover; ?>"   name="website_profile_message_hover"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Whishlist Color 
                  <input value="<?php echo $website_profile_whishlist_color; ?>"   name="website_profile_whishlist_color"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Whishlist Hover 
                  <input value="<?php echo $website_profile_whishlist_hover; ?>"   name="website_profile_whishlist_hover"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Report Color 
                  <input value="<?php echo $website_profile_report_color; ?>"   name="website_profile_report_color"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Report Hover 
                  <input value="<?php echo $website_profile_report_hover; ?>"   name="website_profile_report_hover"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Border Color
                  <input value="<?php echo $website_profile_border_color; ?>"   name="website_profile_border_color"   data-jscolor="{}" id="" class="form-control"></div>
                  <div class="col-md-2">Border Size <small>PX</small>
                  <input value="<?php echo $website_profile_border_size; ?>"   name="website_profile_border_size"   type="text"  id="" class="form-control"></div>
                  <div class="col-md-2">Border Radius <small>PX</small>
                  <input value="<?php echo $website_profile_border_radius; ?>"   name="website_profile_border_radius"   type="text"  id="" class="form-control"></div>
                </div>
              </div>
              <hr />
              <div class="form-group">
                <label for="user_country_id">Tab Layout</label>
                <select class="form-control" id="website_tab" name="website_tab">
                  <option value="active" <?php if (!empty($website_tab) && trim($website_tab) == "active") { ?> selected="selected" <?php } ?>>Active</option>
                  <option value="inactive" <?php if (!empty($website_tab) && trim($website_tab) == "inactive") { ?> selected="selected" <?php } ?>>Inactive</option>
                </select>
              </div>
              <hr />
              <div class="form-group">
                <label for="user_country_id">Side Page Slider</label>
                <select class="form-control" id="website_slider" name="website_slider">
                  <option value="Active" <?php if (!empty($website_slider) && trim($website_slider) == "Active") { ?> selected="selected" <?php } ?>>Active</option>
                  <option value="Inactive" <?php if (!empty($website_slider) && trim($website_slider) == "Inactive") { ?> selected="selected" <?php } ?>>Inactive</option>
                </select>
              </div>
              <hr />
              <div class="form-group">
                <label for="website_advert_index_popup">Home Page Advert Popup</label>
                <select class="form-control" id="website_advert_index_popup" name="website_advert_index_popup">
                  <option value="Inactive" <?php if (!empty($website_advert_index_popup) && trim($website_advert_index_popup) == "Inactive") { ?> selected="selected" <?php } ?>>Inactive</option>
                  <option value="Active" <?php if (!empty($website_advert_index_popup) && trim($website_advert_index_popup) == "Active") { ?> selected="selected" <?php } ?>>Active</option>
                </select>
              </div>
              <hr />
              <div class="form-group">
                <label for="">Section Keyword</label>
                <select class="form-control" id="website_section_keyword" name="website_section_keyword">
                  <option value="Inactive" <?php if (!empty($website_section_keyword) && trim($website_section_keyword) == "Inactive") { ?> selected="selected" <?php } ?>>Inactive</option>
                  <option value="Active" <?php if (!empty($website_section_keyword) && trim($website_section_keyword) == "Active") { ?> selected="selected" <?php } ?>>Active</option>
                </select>
              </div>
              <div class="form-group">
                <label for="">Footer Keyword</label>
                <select class="form-control" id="website_footer_keyword" name="website_footer_keyword">
                  <option value="Inactive" <?php if (!empty($website_footer_keyword) && trim($website_footer_keyword) == "Inactive") { ?> selected="selected" <?php } ?>>Inactive</option>
                  <option value="show_footer" <?php if (!empty($website_footer_keyword) && trim($website_footer_keyword) == "show_footer") { ?> selected="selected" <?php } ?>>Show Footer</option>
                  <option value="show_tag" <?php if (!empty($website_footer_keyword) && trim($website_footer_keyword) == "show_tag") { ?> selected="selected" <?php } ?>>Show Tag</option>
                  <option value="show_both" <?php if (!empty($website_footer_keyword) && trim($website_footer_keyword) == "show_both") { ?> selected="selected" <?php } ?>>Show Both Place</option>
                </select>
              </div>
              <hr />
              <button type="submit" class="btn btn-primary">Save</button>
              <input type="hidden" name="Process" id="Process" value="AddNow" />
            </form>
          </div>
          <!-- /.card-body -->
        </div>
        <!-- /.card -->
      </div>
    </div>
    <!-- /.row (main row) -->
  </div><!-- /.container-fluid -->
</section>
<!-- Content Ends-->
<script type="text/javascript">
  $('#add-design-form').submit(function() {
    if($('.all').css('display') == 'none') {
      $(".message_outgoing_link_all").val("");
    }
    if($('.tablet').css('display') == 'none') {
      $(".message_outgoing_link_tablet").val("");
    }
    if($('.mobile').css('display') == 'none') {
      $(".message_outgoing_link_mobile").val("");
    }
    if($('.desktop').css('display') == 'none') {
      $(".message_outgoing_link_desktop").val("");
    }
    return true;
  });
</script>
<!-- Footer Start-->
<?php include("footer.php"); ?>
<!-- Footer Ends-->

Al-HUWAITI Shell