JFIF $ d d 7 * Z qn )ZP 0 !1 A "#a$2Qr D8 a Ri [f \m I ykI w0 c u F c Rı?lO7 к _f˓ [C $殷WF< _W ԣ s Kc ëI zyQy /_LK ℂ ;C",p F A : /] =H ~ , l s / 9 ć: [=/#f ; ) x { ٛE Q )~ = 𘙲r*2~ a _V = ' ku m F D } KYYC )( { * g& f `툪 r y ` = ^ c J. I ]( * `wq 1dđ #̩ ͑ 0 ; H ] u 搂 @:~ ו K L N s h } O I R* 8 :2 ! lD JV o ( 3 = M ( z Ȱ+i *N A r6K n S l ) ! J J Ӂ* % ݉?|D } d5: eP0 R; {$X' x F @ .ÊB {,WJ uQ ɲRI ;9 Q E琯 6 2fT .DU J ;*c P A\IL Nj! J ۱+ O\ ͔ ] ޒ S J ȧ c%A N ol ՎprU L Zԛe r E2= X D Xg VQeӓ k y P7 U* o m Q I s ,K `) 6\G3t?pgjr m ۛجw luGt f h 9uyP 0D;Uڽ"OXl i f $ ) &|ML 0 Z rm1 [ H XP l P R0 'G=i 2N +0 e 2 ]] 9 VT P O 7 h(F * 癈 ' = Q VZD F,d ߬ ~ T X G[ `le 69C R(!S2! P < 0 x < !1AQ "Raq 02Br #S CTb ? Ζ "]mH5WR 7 k.ۛ ! } Q~ + yԏ z |@ T20 S~ K e k *zF f^2X *( @ 8 r ? C I uI|֓>^Ex LgNU Y+{.R Ѫ τV YT D I 6 2 '8Y2 7'\T P.6 d &˦ @V q i |8 -O Ε ] ʔ U= T L 8= ;6c | !qfF3 a ů& ~$ l} 'NW U s$U k^S V : U#6w + +s &r+n ڐ { @ 29gL u " T Ù M=6 (^ "7 r}=6Yݾ lC u hquymp Ǧ G jhs ǜNl ɻ} o 7 #S6 a w 4 ! OS r D 5 7 % | ?x> L | / nD 6?/8 w # [ ) L 7 +6〼T A T g ! %5 Mm Z /c -{1_Je "| ^$ 'O & ޱմ < H vNqϡQ$ < 6 &Nݛ ֨tǻN (9 n ru~'όN sMG& ,uH Kw *Ī 5@ u6 BԒ i YN * f 0 _ GhKW u lT <nj- 0{ M L~ | /a v\ E = ?1 \ɟuq Ђ Y O a K ޡP q $ H8o Q˼EV ~ k 0 h' L Pp M -M" m^ !6l nմ 쮝C U T . ! :vMǨb h ډ Vc r @~p # !1QAa q ? AL0L x LU 4 d ; x " 16ad0 7.\ߋ 0 = P l v/ " c A Ay A|2pO8"d MV #1] = \ " ˡ ] k v I9 d ۓ & q ) ǐq E ꞅ v "P )q X &Q З non]я u ג./ ; gZ$ M QР 2M ]h ni 0 P $ێ 3CɏGjώy : m c # S_ l@ '_ \m|C 2`K _ 1 cIvGc $? PCQ S+D ? K aײ k Fr b 8 ύ NEدg ĝ U 3 6 #Ik+ v { v i ( ވ ? a e) X xy/*@Q Ǽ Ծ ) $ IWO l c G; !i k{ gOŀ L ('x T rb $ w) R $ & N1E td U3Uȉ1p M"N* (DNy d96.(jQ) X 5 c QɎMy W ? Q *!R > 6=7)Xj 5`J ] e 8%t ! + ' ! 1Q 5 !1 AQaq ё #2 "0BRb ? G t^ ## .l lQ T $ v , ,m 㵜5u bV =sY+ @d { N ! dn O < .- B; _w J t 6;Q Jd. Q c%p{ 1 ,sND dF H I0 Гo X ш e黅X ۢ F :)[ F G X ƹ / w _c MeD ,ʡc c . W D tA $ j@ : ) - #u c1< @ۗ9F ) KJ- hpP] _ x [ q B lb p ʖ w q " LFGd ƶ * s +ډ_Zc " ? % t[I P 6 J ]# =ɺ V v v CGs Gh1 > )6 |e y ? L ӣ m,4 G W Ui ` ] uJVo VDG< SB 6ϏQ @ TiU l y O U 0 kfV ~ ~}S Z @ *WU Ui ## ; s /[ = ! 7}" W N ] ' (L ! ~ y5 g9T̅J kbM' +s :S +B) v @ M j e C f j E 0 Y\Qn z G 1 д~ W o{T 9?` Rm yhsy3 !HAD ] m c1 ~ 2 L S u7x T ;j$ `} 4-> L# vzŏ I L S ֭ T { r jGK C ; b pU= - ` Bs K. S F w4 M q] Z dH S 0 ) tLg
<?php
require('connection.inc.php');
require('security.php');
error_reporting(E_ALL);
ini_set('display_errors', 1);
// Function to check if the user has the required permission
function hasPermission($role_id, $permission_name, $conn) {
$query = "SELECT rp.role_permissions_id
FROM role_permissions rp
INNER JOIN permissions p ON rp.permission_id = p.permission_id
WHERE rp.role_id = ? AND p.permission_name = ?";
$stmt = $conn->prepare($query);
$stmt->bind_param("is", $role_id, $permission_name); // Binding parameters (integer and string)
$stmt->execute();
$result = $stmt->get_result();
return $result->num_rows > 0; // Return true if permission exists
}
// Get user's role from session
$user_role_id = $_SESSION['role_id'];
// Define the required permission for this page
$permission_name = "Products";
// Ensure user is logged in
if (!isset($_SESSION['user_id'])) {
header('Location: index.php');
exit();
}
if (isset($_POST['submit'])) {
include_once 'csrf.php';
if (!validate_csrf_token($_POST['csrf_token'])) {
die('Invalid CSRF token!');
}
$product_id = mysqli_real_escape_string($conn, $_POST['product_id']);
$product_name = mysqli_real_escape_string($conn, $_POST['product_name']);
$product_url_name = str_replace(' ', '-', mysqli_real_escape_string($conn, $_POST['product_url_name']));
$sku_id = mysqli_real_escape_string($conn, $_POST['sku_id']);
$hsn_code = mysqli_real_escape_string($conn, $_POST['hsn_code']);
$category_id = mysqli_real_escape_string($conn, $_POST['category_id']);
$product_description = mysqli_real_escape_string($conn, $_POST['product_description']);
$product_specification = mysqli_real_escape_string($conn, $_POST['product_specification']);
// Update product info
$query = "UPDATE products SET
product_name='$product_name', product_url_name='$product_url_name', sku_id='$sku_id', hsn_code='$hsn_code', category_id='$category_id',
product_description='$product_description', product_specification='$product_specification', updated_at = NOW()
WHERE product_id='$product_id'";
if (mysqli_query($conn, $query)) {
// 1. Get all existing unit_ids
$existingUnitIds = [];
$result = mysqli_query($conn, "SELECT unit_id FROM product_units WHERE product_id = '$product_id'");
while ($row = mysqli_fetch_assoc($result)) {
$existingUnitIds[] = $row['unit_id'];
}
$currentUnitIds = [];
if (!empty($_POST['unit_name'])) {
foreach ($_POST['unit_name'] as $key => $unit_name) {
$unit_id = isset($_POST['unit_id'][$key]) ? mysqli_real_escape_string($conn, $_POST['unit_id'][$key]) : '';
$unit_name = mysqli_real_escape_string($conn, $unit_name);
$unit_price = mysqli_real_escape_string($conn, $_POST['unit_price'][$key]);
if (!empty($unit_id)) {
$unit_update = "UPDATE product_units SET
unit_name = '$unit_name',
unit_price = '$unit_price'
WHERE unit_id = '$unit_id'";
mysqli_query($conn, $unit_update);
$currentUnitIds[] = $unit_id;
} else {
$unit_insert = "INSERT INTO product_units (product_id, unit_name, unit_price)
VALUES ('$product_id', '$unit_name', '$unit_price')";
mysqli_query($conn, $unit_insert);
}
}
}
// 3. Delete units removed from the form
$unitIdsToDelete = array_diff($existingUnitIds, $currentUnitIds);
foreach ($unitIdsToDelete as $unitIdToDelete) {
mysqli_query($conn, "DELETE FROM product_units WHERE unit_id = '$unitIdToDelete'");
}
// 1. Fetch existing images
$existingImgIds = [];
$result = mysqli_query($conn, "SELECT img_id, product_img FROM product_imgs WHERE product_id = '$product_id'");
while ($row = mysqli_fetch_assoc($result)) {
$existingImgIds[$row['img_id']] = $row['product_img'];
}
$currentImgIds = [];
if (!empty($_FILES["product_img"]["name"])) {
foreach ($_FILES["product_img"]["name"] as $key => $img_name) {
$img_id = isset($_POST['img_id'][$key]) ? mysqli_real_escape_string($conn, $_POST['img_id'][$key]) : '';
$product_img = '';
if (!empty($_FILES["product_img"]["name"][$key])) {
$file_ext = strtolower(pathinfo($_FILES["product_img"]["name"][$key], PATHINFO_EXTENSION));
$allowed_formats = ['jpg', 'jpeg', 'png'];
if (in_array($file_ext, $allowed_formats)) {
$unique_name = uniqid() . "_" . basename($_FILES["product_img"]["name"][$key]);
$product_img = "product_img/" . $unique_name;
move_uploaded_file($_FILES["product_img"]["tmp_name"][$key], $product_img);
}
} else {
if (!empty($img_id)) {
$imgQuery = mysqli_query($conn, "SELECT product_img FROM product_imgs WHERE img_id = '$img_id'");
if ($imgRow = mysqli_fetch_assoc($imgQuery)) {
$product_img = $imgRow['product_img'];
}
}
}
if (!empty($img_id)) {
$img_update = "UPDATE product_imgs SET product_img = '$product_img' WHERE img_id = '$img_id'";
mysqli_query($conn, $img_update);
$currentImgIds[] = $img_id;
} else {
$img_insert = "INSERT INTO product_imgs (product_id, product_img)
VALUES ('$product_id', '$product_img')";
mysqli_query($conn, $img_insert);
}
}
}
// 4. Delete removed images
$imgIdsToDelete = array_diff(array_keys($existingImgIds), $currentImgIds);
foreach ($imgIdsToDelete as $imgIdToDelete) {
$fileToDelete = $existingImgIds[$imgIdToDelete];
if (file_exists($fileToDelete)) {
unlink($fileToDelete);
}
mysqli_query($conn, "DELETE FROM product_imgs WHERE img_id = '$imgIdToDelete'");
}
echo "<script>
document.addEventListener('DOMContentLoaded', function() {
Swal.fire({
title: 'Success!',
text: 'Product updated successfully.',
icon: 'success',
confirmButtonText: 'OK'
}).then(() => {
window.location.href = 'add_new_product.php';
});
});
</script>";
} else {
echo "Error: " . mysqli_error($conn);
}
}
if (isset($_GET['id'])) {
$product_id = $_GET['id'];
// Fetch product details
$productQuery = "SELECT * FROM products WHERE product_id = ?";
$stmt = $conn->prepare($productQuery);
$stmt->bind_param("i", $product_id);
$stmt->execute();
$productResult = $stmt->get_result();
$product = $productResult->fetch_assoc();
if (!$product) {
echo "Product not found!";
exit;
}
// Fetch product units
$unitQuery = "SELECT * FROM product_units WHERE product_id = ?";
$stmt = $conn->prepare($unitQuery);
$stmt->bind_param("i", $product_id);
$stmt->execute();
$unitResult = $stmt->get_result();
// Fetch product units
$imgQuery = "SELECT * FROM product_imgs WHERE product_id = ?";
$stmt = $conn->prepare($imgQuery);
$stmt->bind_param("i", $product_id);
$stmt->execute();
$imgResult = $stmt->get_result();
} else {
echo "No product ID provided!";
exit;
}
?>
<!DOCTYPE html>
<html lang="zxx">
<!-- Mirrored from demo.dashboardpack.com/user-management-html/add_new_user.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 02 Dec 2024 05:54:56 GMT -->
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Management Admin</title>
<link rel="icon" href="img/mini_logo.png" type="image/png">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap1.min.css" />
<!-- themefy CSS -->
<link rel="stylesheet" href="vendors/themefy_icon/themify-icons.css" />
<!-- select2 CSS -->
<link rel="stylesheet" href="vendors/niceselect/css/nice-select.css" />
<!-- owl carousel CSS -->
<link rel="stylesheet" href="vendors/owl_carousel/css/owl.carousel.css" />
<!-- gijgo css -->
<link rel="stylesheet" href="vendors/gijgo/gijgo.min.css" />
<!-- font awesome CSS -->
<link rel="stylesheet" href="vendors/font_awesome/css/all.min.css" />
<link rel="stylesheet" href="vendors/tagsinput/tagsinput.css" />
<!-- date picker -->
<link rel="stylesheet" href="vendors/datepicker/date-picker.css" />
<link rel="stylesheet" href="vendors/vectormap-home/vectormap-2.0.2.css" />
<!-- scrollabe -->
<link rel="stylesheet" href="vendors/scroll/scrollable.css" />
<!-- datatable CSS -->
<link rel="stylesheet" href="vendors/datatable/css/jquery.dataTables.min.css" />
<link rel="stylesheet" href="vendors/datatable/css/responsive.dataTables.min.css" />
<link rel="stylesheet" href="vendors/datatable/css/buttons.dataTables.min.css" />
<!-- text editor css -->
<link rel="stylesheet" href="vendors/text_editor/summernote-bs4.css" />
<!-- morris css -->
<link rel="stylesheet" href="vendors/morris/morris.css">
<!-- metarial icon css -->
<link rel="stylesheet" href="vendors/material_icon/material-icons.css" />
<!-- menu css -->
<link rel="stylesheet" href="css/metisMenu.css">
<!-- style CSS -->
<link rel="stylesheet" href="css/style1.css" />
<link rel="stylesheet" href="css/colors/default.css" id="colorSkinCSS">
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- Add SweetAlert2 CSS -->
<link href="https://cdn.jsdelivr.net/npm/sweetalert2@11.5.6/dist/sweetalert2.min.css" rel="stylesheet">
<!-- Add SweetAlert2 JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.5.6/dist/sweetalert2.min.js"></script>
</head>
<body class="crm_body_bg">
<?php
// Your PHP code for checking permission goes here
if (!hasPermission($user_role_id, $permission_name, $conn)) {
// Destroy the session to log the user out
session_unset(); // Unset all session variables
session_destroy(); // Destroy the session
// Show SweetAlert and then redirect
echo "<script>
document.addEventListener('DOMContentLoaded', function() {
Swal.fire({
icon: 'error',
title: 'Access Denied',
text: 'You do not have permission to access this page.',
showConfirmButton: false,
timer: 3000
}).then(function() {
window.location.href = 'index.php'; // Redirect after the alert
});
});
</script>";
exit();
}
?>
<!-- main content part here -->
<!-- sidebar -->
<?php require('sidebar.inc.php'); ?>
<!--/ sidebar -->
<section class="main_content dashboard_part large_header_bg">
<!-- menu -->
<?php require('header.inc.php'); ?>
<!--/ menu -->
<div class="main_content_iner overly_inner ">
<div class="container-fluid p-0 ">
<!-- page title -->
<div class="row">
<div class="col-12">
<div class="page_title_box d-flex flex-wrap align-items-center justify-content-between">
<div class="page_title_left d-flex align-items-center">
<h3 class="f_s_25 f_w_700 dark_text mr_30" >Products</h3>
<ol class="breadcrumb page_bradcam mb-0">
<li class="breadcrumb-item"><a href="javascript:void(0);">Home</a></li>
<li class="breadcrumb-item active">Products</li>
</ol>
</div>
<div class="page_title_right">
<div class="page_date_button d-flex align-items-center">
<!-- <img src="img/icon/calender_icon.svg" alt="">
August 1, 2020 - August 31, 2020 -->
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="white_card card_height_100 mb_30">
<div class="white_card_header">
<div class="box_header m-0">
<div class="main-title">
<h3 class="m-0">Add New Products</h3>
</div>
</div>
</div>
<div class="white_card_body">
<form method="post" enctype="multipart/form-data">
<?php include_once 'csrf.php'; ?>
<input type="hidden" name="csrf_token" value="<?php echo generate_csrf_token(); ?>">
<div class="row">
<input type="hidden" name="product_id" value="<?= $product_id; ?>">
<div class="col-lg-6">
<div class="common_input mb_15">
<input type="text" placeholder="Product Name" name="product_name" id="product_name" value="<?= $product['product_name']; ?>" required>
</div>
</div>
<div class="col-lg-6">
<div class="common_input mb_15">
<input type="text" placeholder="Product Url Name" name="product_url_name" id="product_url_name"
oninput="this.value = this.value.toLowerCase().replace(/[^a-z\s]/g, '')" value="<?= $product['product_url_name']; ?>" required>
</div>
</div>
<div class="col-lg-6">
<label for="sku_id">SKU ID</label>
<div class="input-group mb_15">
<input type="number" class="form-control" name="sku_id" id="sku_id" value="<?= $product['sku_id']; ?>" readonly>
</div>
</div>
<div class="col-lg-6">
<label for="hsn_code">HSN Code</label>
<div class="input-group mb_15">
<input type="number" class="form-control" name="hsn_code" id="hsn_code" value="<?= $product['hsn_code']; ?>" readonly>
</div>
</div>
<?php
require('connection.inc.php');
// Fetch all roles
$rolesQuery = "SELECT * FROM categories WHERE deleted_at IS NULL";
$rolesResult = mysqli_query($conn, $rolesQuery);
?>
<div class="col-lg-6">
<select class="nice_Select2 nice_Select_line wide mb_15" style="display: none;" name="category_id" id="category_id" required>
<option value="">Select Category</option>
<?php
while ($categories = mysqli_fetch_assoc($rolesResult)) {
$selected = ($categories['category_id'] == $product['category_id']) ? "selected" : "";
echo "<option value='{$categories['category_id']}' $selected>{$categories['category_name']}</option>";
}
?>
</select>
</div>
<div class="col-lg-12">
<div class="row">
<div class="main-title">
<h5 class="m-0" style="font-weight:800">Add Unit</h5>
</div>
<div id="unit-container">
<!-- First Unit (No Remove Button) -->
<?php $i = 0; while ($unit = $unitResult->fetch_assoc()) { $i++; ?>
<div class="unit" style="position: relative; padding: 15px; border: 1px solid #ddd; margin-bottom: 10px;">
<input type="hidden" name="unit_id[]" value="<?= $unit['unit_id']; ?>">
<?php if ($i > 1): ?>
<button type="button" class="btn btn-danger remove-btn" onclick="removeUnit(this)"
style="position: absolute; top: 5px; right: 5px; border-radius: 50%; width: 25px; height: 26px; padding: 0px;">
×
</button>
<?php endif; ?>
<div class="row">
<div class="col-lg-6">
<label for="unit_name">Unit Name</label>
<div class="common_input mb_15">
<input type="text" placeholder="Unit Name" name="unit_name[]" value="<?= $unit['unit_name']; ?>" required>
</div>
</div>
<div class="col-lg-6">
<label for="unit_price">Unit Price</label>
<div class="common_input mb_15">
<input type="number" placeholder="Unit Price" name="unit_price[]" value="<?= $unit['unit_price']; ?>" required>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="col-lg-12 text-center">
<button type="button" onclick="addUnit()" class="btn" style="color: #fff;background-color: #ee541f;border-color: #e84d28;">+ Add More Unit</button>
</div>
</div>
</div>
<script>
function addUnit() {
var unitContainer = document.getElementById("unit-container");
var newUnit = document.createElement("div");
newUnit.classList.add("unit");
newUnit.style.position = "relative";
newUnit.style.padding = "15px";
newUnit.style.border = "1px solid #ddd";
newUnit.style.marginBottom = "10px";
newUnit.innerHTML = `
<button type="button" class="btn btn-danger remove-btn" onclick="removeUnit(this)"
style="position: absolute; top: 2px; right: 2px; border-radius: 50%; width: 25px; height: 26px; padding: 0px;">
×
</button>
<div class="row">
<div class="col-lg-6">
<label for="unit_name">Unit Name</label>
<div class="common_input mb_15">
<input type="text" placeholder="Unit Name" name="unit_name[]" required>
</div>
</div>
<div class="col-lg-6">
<label for="unit_price">Unit Price</label>
<div class="common_input mb_15">
<input type="number" placeholder="Unit Price" name="unit_price[]" required>
</div>
</div>
</div>
`;
unitContainer.appendChild(newUnit);
}
function removeUnit(button) {
button.parentElement.remove();
}
</script>
<div class="col-lg-12">
<div class="row">
<div class="main-title">
<h5 class="m-0" style="font-weight:800">Add Image</h5>
</div>
<div id="img-container">
<!-- First Unit (No Remove Button) -->
<?php $i = 0; while ($img = $imgResult->fetch_assoc()) { $i++; ?>
<div class="img" style="position: relative; padding: 15px; border: 1px solid #ddd; margin-bottom: 10px;">
<?php if ($i > 1): ?>
<button type="button" class="btn btn-danger remove-btn" onclick="removeImg(this)"
style="position: absolute; top: 5px; right: 5px; border-radius: 50%; width: 25px; height: 26px; padding: 0px;">
×
</button>
<?php endif; ?>
<input type="hidden" name="img_id[]" value="<?= $img['img_id']; ?>">
<div class="row">
<div class="col-lg-12">
<label for="product_img">Product Image</label>
<div class="input-group mb_15">
<input type="file" class="form-control" placeholder="Product Img" name="product_img[]">
</div>
<img src="<?= $img['product_img']; ?>" class="mb-2" width="100">
</div>
</div>
</div>
<?php } ?>
</div>
<div class="col-lg-12 text-center">
<button type="button" onclick="addimg()" class="btn" style="color: #fff;background-color: #ee541f;border-color: #e84d28;">+ Add More Image</button>
</div>
</div>
</div>
<script>
function addimg() {
var imgContainer = document.getElementById("img-container");
var newUnit = document.createElement("div");
newUnit.classList.add("img");
newUnit.style.position = "relative";
newUnit.style.padding = "15px";
newUnit.style.border = "1px solid #ddd";
newUnit.style.marginBottom = "10px";
newUnit.innerHTML = `
<button type="button" class="btn btn-danger remove-btn" onclick="removeImg(this)"
style="position: absolute; top: 2px; right: 2px; border-radius: 50%; width: 25px; height: 26px; padding: 0px;">
×
</button>
<div class="row">
<div class="col-lg-12">
<label for="product_img">Product Image</label>
<div class="input-group mb_15">
<input type="file" class="form-control" placeholder="Product Img" name="product_img[]">
</div>
</div>
</div>
`;
imgContainer.appendChild(newUnit);
}
function removeImg(button) {
button.parentElement.remove();
}
</script>
<div class="col-lg-12 mt-2">
<div class="common_input mb_15">
<label>Product Description</label>
<textarea placeholder="Product Description" name="product_description" id="product_description" style="width:100%" required>
<?= $product['product_description']; ?>
</textarea>
</div>
</div>
<div class="col-lg-12">
<div class="common_input mb_15">
<label>Product Specification</label>
<textarea placeholder="Product Specification" name="product_specification" id="product_specification" style="width:100%" required>
<?= $product['product_specification']; ?>
</textarea>
</div>
</div>
<script src="https://cdn.ckeditor.com/4.19.0/standard/ckeditor.js"></script>
<script>
CKEDITOR.replace('product_description', {
height: 300, // Adjust the height of the editor
removeButtons: '', // You can configure to show or hide buttons
});
CKEDITOR.replace('product_specification', {
height: 300, // Adjust the height of the editor
removeButtons: '', // You can configure to show or hide buttons
});
</script>
<div class="col-12">
<div class="create_report_btn mt_30">
<button type="submit" name="submit" class="btn_1 radius_btn d-block text-center">
Update Product
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- footer part -->
<?php require('footer.inc.php'); ?>
<!-- main content part end -->
<!-- ### CHAT_MESSAGE_BOX ### -->
<div class="CHAT_MESSAGE_POPUPBOX">
<div class="CHAT_POPUP_HEADER">
<div class="MSEESAGE_CHATBOX_CLOSE">
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.09939 5.98831L11.772 10.661C12.076 10.965 12.076 11.4564 11.772 11.7603C11.468 12.0643 10.9766 12.0643 10.6726 11.7603L5.99994 7.08762L1.32737 11.7603C1.02329 12.0643 0.532002 12.0643 0.228062 11.7603C-0.0760207 11.4564 -0.0760207 10.965 0.228062 10.661L4.90063 5.98831L0.228062 1.3156C-0.0760207 1.01166 -0.0760207 0.520226 0.228062 0.216286C0.379534 0.0646715 0.578697 -0.0114918 0.777717 -0.0114918C0.976738 -0.0114918 1.17576 0.0646715 1.32737 0.216286L5.99994 4.889L10.6726 0.216286C10.8243 0.0646715 11.0233 -0.0114918 11.2223 -0.0114918C11.4213 -0.0114918 11.6203 0.0646715 11.772 0.216286C12.076 0.520226 12.076 1.01166 11.772 1.3156L7.09939 5.98831Z" fill="white"/>
</svg>
</div>
<h3>Chat with us</h3>
<div class="Chat_Listed_member">
<ul>
<li>
<a href="#">
<div class="member_thumb">
<img src="img/staf/1.png" alt="">
</div>
</a>
</li>
<li>
<a href="#">
<div class="member_thumb">
<img src="img/staf/2.png" alt="">
</div>
</a>
</li>
<li>
<a href="#">
<div class="member_thumb">
<img src="img/staf/3.png" alt="">
</div>
</a>
</li>
<li>
<a href="#">
<div class="member_thumb">
<img src="img/staf/4.png" alt="">
</div>
</a>
</li>
<li>
<a href="#">
<div class="member_thumb">
<img src="img/staf/5.png" alt="">
</div>
</a>
</li>
<li>
<a href="#">
<div class="member_thumb">
<div class="more_member_count">
<span>90+</span>
</div>
</div>
</a>
</li>
</ul>
</div>
</div>
<div class="CHAT_POPUP_BODY">
<p class="mesaged_send_date">
Sunday, 12 January
</p>
<div class="CHATING_SENDER">
<div class="SMS_thumb">
<img src="img/staf/1.png" alt="">
</div>
<div class="SEND_SMS_VIEW">
<P>Hi! Welcome .
How can I help you?</P>
</div>
</div>
<div class="CHATING_SENDER CHATING_RECEIVEr">
<div class="SEND_SMS_VIEW">
<P>Hello</P>
</div>
<div class="SMS_thumb">
<img src="img/staf/1.png" alt="">
</div>
</div>
</div>
<div class="CHAT_POPUP_BOTTOM">
<div class="chat_input_box d-flex align-items-center">
<div class="input-group">
<input type="text" class="form-control" placeholder="Write your message" aria-label="Recipient's username" aria-describedby="basic-addon2">
<div class="input-group-append">
<button class="btn " type="button">
<!-- svg -->
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M18.7821 3.21895C14.4908 -1.07281 7.50882 -1.07281 3.2183 3.21792C-1.07304 7.50864 -1.07263 14.4908 3.21872 18.7824C7.50882 23.0729 14.4908 23.0729 18.7817 18.7815C23.0726 14.4908 23.0724 7.50906 18.7821 3.21895ZM17.5813 17.5815C13.9525 21.2103 8.04773 21.2108 4.41871 17.5819C0.78907 13.9525 0.789485 8.04714 4.41871 4.41832C8.04752 0.789719 13.9521 0.789304 17.5817 4.41874C21.2105 8.04755 21.2101 13.9529 17.5813 17.5815ZM6.89503 8.02162C6.89503 7.31138 7.47107 6.73534 8.18131 6.73534C8.89135 6.73534 9.46739 7.31117 9.46739 8.02162C9.46739 8.73228 8.89135 9.30811 8.18131 9.30811C7.47107 9.30811 6.89503 8.73228 6.89503 8.02162ZM12.7274 8.02162C12.7274 7.31138 13.3038 6.73534 14.0141 6.73534C14.7241 6.73534 15.3002 7.31117 15.3002 8.02162C15.3002 8.73228 14.7243 9.30811 14.0141 9.30811C13.3038 9.30811 12.7274 8.73228 12.7274 8.02162ZM15.7683 13.2898C14.9712 15.1332 13.1043 16.3243 11.0126 16.3243C8.8758 16.3243 6.99792 15.1272 6.22834 13.2744C6.09642 12.9573 6.24681 12.593 6.56438 12.4611C6.64238 12.4289 6.72328 12.4136 6.80293 12.4136C7.04687 12.4136 7.27836 12.5577 7.37772 12.7973C7.95376 14.1842 9.38048 15.0799 11.0126 15.0799C12.6077 15.0799 14.0261 14.1836 14.626 12.7959C14.7625 12.4804 15.1288 12.335 15.4441 12.4717C15.7594 12.6084 15.9048 12.9745 15.7683 13.2898Z" fill="#707DB7"/>
</svg>
<!-- svg -->
</button>
<button class="btn" type="button">
<!-- svg -->
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 0.289062C4.92455 0.289062 0 5.08402 0 10.9996C0 16.9152 4.92455 21.7101 11 21.7101C17.0755 21.7101 22 16.9145 22 10.9996C22 5.08472 17.0755 0.289062 11 0.289062ZM11 20.3713C5.68423 20.3713 1.375 16.1755 1.375 10.9996C1.375 5.82371 5.68423 1.62788 11 1.62788C16.3158 1.62788 20.625 5.82371 20.625 10.9996C20.625 16.1755 16.3158 20.3713 11 20.3713ZM15.125 10.3302H11.6875V6.98314C11.6875 6.61363 11.3795 6.31373 11 6.31373C10.6205 6.31373 10.3125 6.61363 10.3125 6.98314V10.3302H6.875C6.4955 10.3302 6.1875 10.6301 6.1875 10.9996C6.1875 11.3691 6.4955 11.669 6.875 11.669H10.3125V15.016C10.3125 15.3855 10.6205 15.6854 11 15.6854C11.3795 15.6854 11.6875 15.3855 11.6875 15.016V11.669H15.125C15.5045 11.669 15.8125 11.3691 15.8125 10.9996C15.8125 10.6301 15.5045 10.3302 15.125 10.3302Z" fill="#707DB7"/>
</svg>
<!-- svg -->
<input type="file">
</button>
</div>
</div>
</div>
</div>
</div>
<!--/### CHAT_MESSAGE_BOX ### -->
<div id="back-top" style="display: none;">
<a title="Go to Top" href="#">
<i class="ti-angle-up"></i>
</a>
</div>
<!-- footer -->
<script src="js/jquery1-3.4.1.min.js"></script>
<!-- popper js -->
<script src="js/popper1.min.js"></script>
<!-- bootstarp js -->
<script src="js/bootstrap1.min.js"></script>
<!-- sidebar menu -->
<script src="js/metisMenu.js"></script>
<!-- waypoints js -->
<script src="vendors/count_up/jquery.waypoints.min.js"></script>
<!-- waypoints js -->
<script src="vendors/chartlist/Chart.min.js"></script>
<!-- counterup js -->
<script src="vendors/count_up/jquery.counterup.min.js"></script>
<!-- nice select -->
<script src="vendors/niceselect/js/jquery.nice-select.min.js"></script>
<!-- owl carousel -->
<script src="vendors/owl_carousel/js/owl.carousel.min.js"></script>
<!-- responsive table -->
<script src="vendors/datatable/js/jquery.dataTables.min.js"></script>
<script src="vendors/datatable/js/dataTables.responsive.min.js"></script>
<script src="vendors/datatable/js/dataTables.buttons.min.js"></script>
<script src="vendors/datatable/js/buttons.flash.min.js"></script>
<script src="vendors/datatable/js/jszip.min.js"></script>
<script src="vendors/datatable/js/pdfmake.min.js"></script>
<script src="vendors/datatable/js/vfs_fonts.js"></script>
<script src="vendors/datatable/js/buttons.html5.min.js"></script>
<script src="vendors/datatable/js/buttons.print.min.js"></script>
<!-- datepicker -->
<script src="vendors/datepicker/datepicker.js"></script>
<script src="vendors/datepicker/datepicker.en.js"></script>
<script src="vendors/datepicker/datepicker.custom.js"></script>
<script src="js/chart.min.js"></script>
<script src="vendors/chartjs/roundedBar.min.js"></script>
<!-- progressbar js -->
<script src="vendors/progressbar/jquery.barfiller.js"></script>
<!-- tag input -->
<script src="vendors/tagsinput/tagsinput.js"></script>
<!-- text editor js -->
<script src="vendors/text_editor/summernote-bs4.js"></script>
<script src="js/custom.js"></script>
</body>
<!-- Mirrored from demo.dashboardpack.com/user-management-html/add_new_user.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 02 Dec 2024 05:54:56 GMT -->
</html>