
hendrikbez
Members-
Posts
44 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
hendrikbez's Achievements
-
I am trying to make a counter in my web page in wordpress. I have a button "lees" and when you hover over and then go of it must make a count for it. The php code I have is working, but take long before it shows new count to show up. function register_hover_count_endpoints() { register_rest_route('hover-count/v1', '/update', array( 'methods' => 'POST', 'callback' => 'update_hover_count', )); register_rest_route('hover-count/v1', '/get', array( 'methods' => 'GET', 'callback' => 'get_hover_counts', )); } add_action('rest_api_init', 'register_hover_count_endpoints'); function update_hover_count(WP_REST_Request $request) { $reset = $request->get_param('reset'); $hover_counts = get_option('hover_counts', array()); if ($reset) { $hover_counts = array(); update_option('hover_counts', $hover_counts); return new WP_REST_Response('Hover counts reset', 200); } $index = $request->get_param('index'); if ($index === null) { return new WP_REST_Response('Index parameter is required', 400); } if (!isset($hover_counts[$index])) { $hover_counts[$index] = 0; } $hover_counts[$index]++; if (update_option('hover_counts', $hover_counts)) { return new WP_REST_Response('Hover count updated', 200); } else { return new WP_REST_Response('Failed to update hover count', 500); } } function get_hover_counts() { $hover_counts = get_option('hover_counts', array()); return new WP_REST_Response($hover_counts, 200); } java script document.addEventListener('DOMContentLoaded', function() { document.getElementById('search-input').value = ''; if (window.location.pathname.includes('besigheid')) { document.querySelectorAll('.lees-btn').forEach((button, index) => { button.addEventListener('mouseover', () => { fetch('/wp-json/hover-count/v1/update', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ index }) }).then(response => { if (!response.ok) { console.error('Failed to update hover count'); } }).catch(error => { console.error('Error:', error); }); }); }); function updateAdminSection() { fetch('/wp-json/hover-count/v1/get') .then(response => response.json()) .then(hoverCounts => { const hoverCountsList = document.getElementById('hover-counts'); hoverCountsList.innerHTML = ''; document.querySelectorAll('.business-card').forEach((card, index) => { // Changed from h2 to h3 const businessName = card.querySelector('h3').textContent; const count = hoverCounts[index] || 0; const listItem = document.createElement('li'); listItem.textContent = `${businessName}: ${count} hovers`; hoverCountsList.appendChild(listItem); }); }).catch(error => { console.error('Error:', error); }); } document.getElementById('submit-button').addEventListener('click', function(event) { event.preventDefault(); const searchTerm = document.getElementById('search-input').value; console.log('Search term:', searchTerm); const enteredPassword = document.getElementById('admin-password').value; if (enteredPassword === 'Melandri@16Zandri@05') { updateAdminSection(); document.getElementById('admin-password').style.display = 'none'; document.getElementById('submit-button').style.display = 'none'; document.getElementById('update-button').style.display = 'block'; document.getElementById('reset-button').style.display = 'block'; } else { alert('Wagwoord Verkeerd, Probeer weer asseblief.'); } }); document.getElementById('update-button').addEventListener('click', () => { updateAdminSection(); }); document.getElementById('reset-button').addEventListener('click', () => { fetch('/wp-json/hover-count/v1/update', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ reset: true }) }).then(response => { if (!response.ok) { console.error('Failed to reset hover count'); return; } return response.json(); }).then(data => { console.log('Reset response:', data); localStorage.removeItem('hoverCounts'); updateAdminSection(); // Changed from h2 to h3 here as well document.querySelectorAll('.business-card').forEach((card) => { const listItem = card.querySelector('li'); if (listItem) { listItem.textContent = `${card.querySelector('h3').textContent}: 0 hovers`; } }); }).catch(error => { console.error('Error:', error); }); }); const toggleButton = document.getElementById('toggle-button'); const adminSection = document.getElementById('admin-section'); toggleButton.addEventListener('click', function() { if (adminSection.style.display === 'none' || adminSection.style.display === '') { adminSection.style.display = 'block'; } else { adminSection.style.display = 'none'; } }); document.getElementById('search-button').addEventListener('click', function(event) { event.preventDefault(); console.log('Search functionality should be implemented here'); const searchTerm = document.getElementById('search-input').value; console.log('Search term:', searchTerm); }); }
-
I have changed this as I only work on localhost as I do not have a url The value of slug is the token name on coinmarketcup At the moment when I open the page it show me the name of the token that I have click on, but they are all lowercase, so I want it to show the first letter in uppercase. If i using the code that i have giving it shows CoinDetails (it is the page name) $slug = basename(parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH)); <?php // Get the post title from the URL $slug = isset($_GET['slug']) ? $_GET['slug'] : ''; // Remove any file extension $slug = preg_replace('/\\.[^.\\s]{3,4}$/', '', $slug); // Capitalize the first letter of the slug $slug = ucfirst($slug); // Debugging: display the value of $slug echo "Slug value: " . $slug; ?>
-
It is on my local machine, Here are most of the code , may this help <?php include 'layouts/session.php'; ?> <?php include 'layouts/head-main.php'; ?> <?php if (isset($_GET['COIN_SYMBOL'])) { $COIN_SYMBOL = $_GET['COIN_SYMBOL']; $lccl_id = $_GET['lccl_id']; $fetchSql = mysqli_query($pdo,"SELECT cmm.TOTAL_COIN, ckmm.lccl_id, lccl.slug, lccl.platform, lccl.baseAsset, lccl.tradingview_symbol, lccl.symbol FROM cmc_my_munte cmm INNER JOIN cmc_kry_my_munte ckmm ON ckmm.COIN_SYMBOL = cmm.COIN_SYMBOL INNER JOIN live_chart_coin_list_1 lccl ON lccl.id = ckmm.lccl_id WHERE cmm.COIN_SYMBOL = '$COIN_SYMBOL' AND lccl.id='$lccl_id' "); $fetchRow = mysqli_fetch_array($fetchSql); $rowCount = mysqli_num_rows($fetchSql); if($rowCount > 0){ do{ $TOTAL_COIN = $fetchRow['TOTAL_COIN']; $slug = $fetchRow['slug']; $symbol = $fetchRow['symbol']; $platform = $fetchRow['platform']; $baseAsset = $fetchRow['tradingview_symbol']; }while($fetchRow = mysqli_fetch_array($fetchSql)); } } ?> <head> <title>Admin Dashboard</title> <?php include 'layouts/title-meta.php'; ?> <?php include 'layouts/head-css.php'; ?> </head> <?php include 'layouts/body.php'; ?> <!-- Begin page --> <div id="layout-wrapper"> <?php include 'layouts/menu.php'; ?> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="main-content"> <div class="page-content"> <div class="container-fluid"> <!-- start page title --> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> <h4 class="mb-sm-0">Munt Besonderhede</h4> <div class="page-title-right"> <ol class="breadcrumb m-0"> <li class="breadcrumb-item"><a href="javascript: void(0);">MUNT</a></li> <li class="breadcrumb-item active"><?php echo $COIN_SYMBOL; ?></li> </ol> </div> </div> </div> </div> <!-- end page title --> <div style="display: flex;"> <div class="card" style="flex: 1; margin-right: 180px;"> <div class="card-header" style="display: flex; align-items: center; justify-content: center;"> <h5 class="card-title mb-0" style="font-size: 30px; font-weight: bold; color: blue; font-family: Arial, sans-serif;"> Ticker Widget </h5> </div> <div class="card-body"> <script defer src="https://www.livecoinwatch.com/static/lcw-widget.js"></script> <div class="livecoinwatch-widget-1" lcw-coin="<?php echo $symbol; ?>" lcw-base="USD" lcw-digits="9" lcw-period="d" lcw-color-tx="#00FF00" lcw-color-pr="#58c7c5" lcw-color-bg="#202334" lcw-border-w="1"> </div> </div> </div> <div class="card" style="flex: 1; margin-right: 180px;"> <div class="card-header" style="display: flex; align-items: center; justify-content: center;"> <h5 class="card-title mb-0" style="font-size: 30px; font-weight: bold; font-family: Arial, sans-serif; background: linear-gradient(to right, #8E2DE2, #4A00E0, #00A2FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">Prys in USD</h5> </div> <div class="card-body"> <!-- Crypto Converter ⚡ Widget --> <crypto-converter-widget shadow symbol live background-color="#00FF00" font-family="cursive" border-radius="0.69rem" fiat="united-states-dollar" crypto="<?php echo $slug; ?>" amount="<?php echo $TOTAL_COIN; ?>" decimal-places="7"></crypto-converter-widget> <script async src="https://cdn.jsdelivr.net/gh/dejurin/crypto-converter-widget@1.5.2/dist/latest.min.js"></script> <!-- /Crypto Converter ⚡ Widget --> </div> </div> <div class="card" style="flex: 1;"> <div class="card-header" style="display: flex; align-items: center; justify-content: center;"> <h5 class="card-title mb-0" style="font-size: 30px; font-weight: bold; font-family: Arial, sans-serif; background: linear-gradient(to right, #FFC300, #FF5733, #C70039, #900C3F, #581845); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">Prys in ZAR</h5> </div> <div class="card-body"> <crypto-converter-widget shadow symbol live background-color="#5F00BA" font-family="cursive" border-radius="0.69rem" fiat="south-african-rand" crypto="<?php echo $slug; ?>" amount="<?php echo $TOTAL_COIN; ?>" decimal-places="7"></crypto-converter-widget> <script async src="https://cdn.jsdelivr.net/gh/dejurin/crypto-converter-widget@1.5.2/dist/latest.min.js"></script> <!-- /Crypto Converter ⚡ Widget --> </div> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="card-body"> <!-- Crypto Converter ⚡ Widget --> <?php // Get the post title from the URL $slug = basename(parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH)); // Remove any file extension $slug = preg_replace('/\\.[^.\\s]{3,4}$/', '', $slug); // Capitalize the first letter of the slug $slug = ucfirst($slug); // Debugging: display the value of $slug echo "Slug value: " . $slug; ?> <div class="card-header" style="display: flex; align-items: center; justify-content: center;"> <h5 class="card-title mb-0" style="font-size: 30px; font-weight: bold; font-family: Arial, sans-serif; background: linear-gradient(to right, blue, green, red); -webkit-background-clip: text; -webkit-text-fill-color: transparent;"><?php echo $slug; ?></h5> </div> </div> <div class="card-body"> <!-- TradingView Widget BEGIN --> <div class="tradingview-widget-container"> <div id="tradingview-widget-container" style="height: 580px;"></div> <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script> <script type="text/javascript"> new TradingView.widget({ "autosize": true, "container_id": "tradingview-widget-container", "symbol": "<?php echo $platform; ?>:<?php echo $baseAsset; ?>", "interval": "1", "timezone": "Africa/Johannesburg", "theme": "dark", "style": "1", "locale": "en", "toolbar_bg": "#f1f3f6", "enable_publishing": false, "allow_symbol_change": true, "show_popup_button": true, "withdateranges": true, "popup_width": "1000", "popup_height": "650", "details": true, "hotlist": true, "hide_side_toolbar": false, "calendar": true, "news": [ "headlines", "summary", "stocktwits", "seekingalpha", "benzinga", "cnbc", "marketwatch", "investing", "bloomberg", "businessinsider", "wsj", "thehill", "reuters", "marketbeat", "fly" ], "studies": [ { "id": "Candles", "params": { "color.up": "ffff00", "color.down": "#ff0000" } }, { "id": "Volume@tv-basicstudies", "title": "Volume", "type": "volume" } ], "overrides": { "mainSeriesProperties.candleStyle.upColor": "#BF40BF", "mainSeriesProperties.candleStyle.downColor": "#FFFF00", "mainSeriesProperties.candleStyle.drawWick": true, "mainSeriesProperties.candleStyle.drawBorder": true, "mainSeriesProperties.candleStyle.borderColor": "grey", "mainSeriesProperties.candleStyle.threed": true, "mainSeriesProperties.candleStyle.upWickColor": "#BF40BF", "mainSeriesProperties.candleStyle.downWickColor": "#FFFF00" }, "indicators_file_name": "indicators.json", "custom_css_url": "style.css", "favorites": { "intervals": [ "1", "5", "15", "30", "60", "D", "W", "M" ], "chartTypes": [ "Area", "Line", "Bars", "Candles", "Hollow Candles", "Heiken Ashi", "Renko", "Kagi", "Point & Figure" ], "themes": [ "Light", "Dark" ] }, "no_referral_id": true, client_id: "hendrikbez" });
-
I want to show the first lettter of token to be upercase in my code, but it then show the page name and not the token name <div class="card-body"> <?php // Get the post title from the URL $slug = basename(parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH)); // Remove any file extension $slug = preg_replace('/\\.[^.\\s]{3,4}$/', '', $slug); // Capitalize the first letter of the slug $slug = ucfirst($slug); // Debugging: display the value of $slug echo "Slug value: " . $slug; ?> <div class="card-header" style="display: flex; align-items: center; justify-content: center;"> <h5 class="card-title mb-0" style="font-size: 30px; font-weight: bold; font-family: Arial, sans-serif; background: linear-gradient(to right, blue, green, red); -webkit-background-clip: text; -webkit-text-fill-color: transparent;"><?php echo $slug; ?> </h5> </div> </div>
-
Using the h1, h2, and h3 with the following info in css (a,b and c) (titlte1, title2 and title3). I am not sure if I have done it correct in css, need help to find out what I an doing wrong, or did I missing something. html { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { margin: 0; font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; text-align: left; background-color: #fff; } h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0.5rem; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { margin-bottom: 0.5rem; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; } h1, .h1 { font-size: 2.5rem; } h2, .h2 { font-size: 2rem; } h3, .h3 { font-size: 1.75rem; } h4, .h4 { font-size: 1.5rem; } h5, .h5 { font-size: 1.25rem; } h6, .h6 { font-size: 1rem; } h1 .aa{ /* use to make text glow in dashboard.php */ background-image: url("move.gif"); background-size: cover; color: transparent; -moz-background-clip: text; -webkit-background-clip: text; text-transform: uppercase; font-size: 80px; margin: 5px 0; } h2 .bb { /* use to make text glow in dashboard.php */ background-image: url("move.gif"); background-size: cover; color: transparent; -moz-background-clip: text; -webkit-background-clip: text; text-transform: uppercase; font-size: 40px; margin: 10px 0; } h3 .cc { /* use to make text glow in dashboard.php */ background-image: url("move.gif"); background-size: cover; color: transparent; -moz-background-clip: text; -webkit-background-clip: text; text-transform: uppercase;y font-size: 40px; margin: 10px 0; } .title { font-family: 'Comic Neue', cursive; text-align: center; color: #FFF; display: flex; flex-direction: column; align-items: center; justify-content: center; height: -1vh; letter-spacing: 1px; line-height:2 } .title1 { /* use to make text glow in dashboard.php */ font-family: 'Coming Soon', cursive; text-align: center; color: #FFF; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 20vh; letter-spacing: 1px; line-height:2 } .title2 { /* use to make text glow in dashboard.php */ font-family: 'Allerta Stencil'; text-align: center; color: #FFF; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 1vh; letter-spacing: 1px; line-height:2 } .title3 { /* use to make text glow in dashboard.php */ font-family: 'Kanit', sans-serif; text-align: center; color: #FFF; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 10vh; letter-spacing: 1px; line-height:2 } <div class="row"> <div class="col-12 col-sm-6 col-md-5"> <div class="info-box"> <div class="info-box-content"> <h1 class="cc" "title2">aaaaaaaaaaaaaaaaaaaaaaaa</h1> </div> </div> </div> <div class="col-12 col-sm-6 col-md-5"> <div class="info-box mb-3"> <div class="info-box-content"> <h2 class="cc" "title2">AAAAAAAAAAAA</h2> </div> </div> </div> </div> <div class="col-12 col-sm-6 col-md-4"> <div class="info-box mb-3"> <div class="ms-3"> <h2 class="bb" "title2">AAAAAAAAAAAABBBBBBBBBBBBDDDDDDDDDDD</h2> </div> </div> </div> ReplyReport It should look like the 2 screenshots
-
Admin dashboard does not open dropdown to show html links
hendrikbez replied to hendrikbez's topic in PHP Coding Help
@mac_gyver Thank you, for your explanation, will go thru what you have suggested -
Admin dashboard does not open dropdown to show html links
hendrikbez replied to hendrikbez's topic in PHP Coding Help
Did change code to and did change all that I understand, still not working if ($_SESSION['user_name_ecom']) { $myusername = $_SESSION['user_name_ecom']; $user_id = $_SESSION['user_id']; } else { header("location: indexnew.php"); die(); // exit(header("Location: indexnew.php")); } if ($_SESSION['user_id']) { $user_id = $_SESSION['user_id']; $loggedin_state = 1; $_SESSION['loggedin_state'] = 1; $a_unique_id = 181050300; $_SESSION['a_unique_id'] = $a_unique_id; } else { session_destroy(); header("location: indexnew.php"); die(); //exit(header("Location: indexnew.php")); } -
Admin dashboard does not open dropdown to show html links
hendrikbez replied to hendrikbez's topic in PHP Coding Help
Thank you, did only use the <?php and ?> one now, did not know you can use it only one time. -
Admin dashboard does not open dropdown to show html links
hendrikbez replied to hendrikbez's topic in PHP Coding Help
Thank you for info, it did help 1. did take out the @ error suppressor. 2. This is only on my private laptop, I am the only one that will use this. 3. 4. Did change all cases to lowercase 5. Do not understand what you are saying here. -
I am making a new admin dashboard, and run into a problem. My login is working, but when I am in my dashboard and hover over "API opstelling" it highlights (the down arrow is also showing) it does not open the 3 links under it. It happens to all of my links. I am not sure what the problem is. header and dashboard files <?php error_reporting(E_ALL ^ E_NOTICE); ?> <?php ob_start(); ?> <?php session_start(); require_once '../include/connection.php'; ?> <?php if (@$_SESSION['user_name_ecom']) { @$myusername = $_SESSION['user_name_ecom']; @$user_id = $_SESSION['user_id']; } else { header("location: indexnew.php"); } ?> <?php if ($_SESSION['user_id']) { $user_id = $_SESSION['user_id']; $loggedin_state = 1; $_SESSION['loggedin_state'] = 1; $a_unique_id = 181050300; $_SESSION['a_unique_id'] = $a_unique_id; } else { session_destroy(); header("location: indexnew.php"); } ?> <?php $sql119 = mysqli_query($pdo, "SELECT * FROM admin where ADMIN_ID ='$user_id' "); $productCount119 = mysqli_num_rows($sql119); // count the output amount if ($productCount119 > 0) { while ($row = mysqli_fetch_array($sql119)) { $admin_name = $row["ADMIN_NAME"]; $ADMIN_USER = $row["ADMIN_USER"]; $ADMIN_PASS = $row["ADMIN_PASS"]; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Admin Panel</title> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <meta content="" name="keywords"> <meta content="" name="description"> <!-- Favicon --> <link rel="shortcut icon" href="../img/fav-icon.png"> <!-- Google Web Fonts --> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto:wght@500;700&display=swap" rel="stylesheet"> <!-- Icon Font Stylesheet --> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet"> <!-- Libraries Stylesheet --> <link rel="stylesheet" type="text/css" href="../admin/css/owl.carousel.min.css? <?php echo time(); ?>" /> <link href="../admin/css/tempusdominus-bootstrap-4.min.css" rel="stylesheet" /> <!-- Customized Bootstrap Stylesheet --> <link href="../admin/css/bootstrap.min.css" rel="stylesheet" /> <!-- Template Stylesheet --> <link href="../admin/css/styledark.css" rel="stylesheet" /> </head> <body> <div class="container-fluid position-relative d-flex p-0"> <!-- Spinner Start --> <div id="spinner" class="show bg-dark position-fixed translate-middle w-100 vh-100 top-50 start-50 d-flex align-items-center justify-content-center"> <div class="spinner-border text-primary" style="width: 3rem; height: 3rem;" role="status"> <span class="sr-only">Loading...</span> </div> </div> <!-- Spinner End --> <!-- Sidebar Start --> <div class="sidebar pe-4 pb-3"> <nav class="navbar bg-secondary navbar-dark"> <a href="dashbordnew.php" class="navbar-brand mx-4 mb-3"> <h3 class="text-primary"><i class="fa fa-user-edit me-2"></i>Kripto</h3> </a> <div class="d-flex align-items-center ms-4 mb-4"> <div class="position-relative"> <img class="rounded-circle" src="../admin/img/hen.png" alt="" style="width: 40px; height: 40px;"> <div class="bg-success rounded-circle border border-2 border-white position-absolute end-0 bottom-0 p-1"></div> </div> <div class="ms-3"> <h6 class="mb-0"><?php echo $admin_name; ?> </h6> <a href="editProfilenew.php" > <span>Hoof Lid</span> </a> </div> </div> <div class="navbar-nav w-100"> <a href="dashbordnew.php" class="nav-item nav-link active"><i class="fa fa-tachometer-alt me-2"></i>Paneelbord</a> <div class="nav-item dropdown"> <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown"><i class="fa fa-laptop me-2"></i>API Opstelling</a> <div class="dropdown-menu bg-transparent border-0"> <a href="api¤cynew.php" class="dropdown-item">Verander API</a> </div> </div> <div class="nav-item dropdown"> <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown"><i class="fa fa-laptop me-2"></i>Nomics</a> <div class="dropdown-menu bg-transparent border-0"> <a href="NMCallemuntenew.php" class="dropdown-item">Beskikbaar</a> <a href="NMCvoegmuntebynew.php" class="dropdown-item">Voeg nuwe by</a> <a href="NMCinligtingnew.php" class="dropdown-item">Verander</a> </div> </div> <div class="nav-item dropdown"> <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown"><i class="fa fa-laptop me-2"></i>Coingecko</a> <div class="dropdown-menu bg-transparent border-0"> <a href="CGOallemuntenew.php" class="dropdown-item">Beskikbaar</a> <a href="CGOvoegmuntebynew.php" class="dropdown-item">Voeg nuwe by</a> <a href="CGOinligtingnew.php" class="dropdown-item">Verander</a> </div> </div> <div class="nav-item dropdown"> <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown"><i class="fa fa-laptop me-2"></i>CoinMarketCap</a> <div class="dropdown-menu bg-transparent border-0"> <a href="CMCallemuntenew.php" class="dropdown-item">Beskikbaar</a> <a href="CMCvoegmuntebynew.php" class="dropdown-item">Voeg nuwe by</a> <a href="CMCinligtingnew.php" class="dropdown-item">Verander</a> </div> </div> </div> </nav> </div> <!-- Sidebar End --> <!-- Back to Top --> <a href="#" class="btn btn-lg btn-primary btn-lg-square back-to-top"><i class="bi bi-arrow-up"></i></a> </div> <!-- endinject --> <!-- JavaScript Libraries --> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"></script> <script src="../admin/js/chart.min.js"></script> <script src="../admin/js/easing.min.js"></script> <script src="../admin/js/waypoints.min.js"></script> <script src="../admin/js/owl.carousel.min.js"></script> <script src="../admin/js/moment.min.js"></script> <script src="../admin/js/moment-timezone.min.js"></script> <script src="../admin/js/tempusdominus-bootstrap-4.min.js"></script> <!-- Template Javascript --> <script src="../admin/js/main.js"></script> <?php include_once 'include/headnew.php';?> <?php if(isset($_POST['username'])){ $ADMIN_NAME = $_POST['name']; $ADMIN_USERNAME = $_POST['username']; $ADMIN_PASS = $_POST['Password']; $sql = mysqli_query($pdo,"UPDATE admin SET ADMIN_NAME = '$ADMIN_NAME', ADMIN_USER = '$ADMIN_USERNAME', ADMIN_PASS = '$ADMIN_PASS' WHERE ADMIN_ID = '$user_id' ") ; $desired_dir="../assets/img/admin/$user_id"; if(is_dir($desired_dir)==false){ mkdir("$desired_dir"); // Create directory if it does not exist } if ($_FILES['fileField']['tmp_name'] != ""){ $newname = "1.jpg"; move_uploaded_file($_FILES['fileField']['tmp_name'], "$desired_dir/$newname"); } } ?> <meta charset="utf-8"> <title>Admin Panel</title> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <meta content="" name="keywords"> <meta content="" name="description"> <!-- <link rel="stylesheet" type="text/css" href="css/style.default.css?<?php echo time(); ?>" />--> <link rel="stylesheet" type="text/css" href="css/style.css?<?php echo time(); ?>" /> <link rel="stylesheet" type="text/css" href="css/tempusdominus-bootstrap-4.min.css?<?php echo time(); ?>" /> <link rel="stylesheet" type="text/css" href="css/owl.carousel.min.css? <?php echo time(); ?>" /> <link rel="stylesheet" type="text/css" href="css/tempusdominus-bootstrap-4.min.css?<?php echo time(); ?>" /> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css?<?php echo time(); ?>" /> <link rel="stylesheet" type="text/css" href="css/all.min.css?<?php echo time(); ?>" /> <link rel="stylesheet" type="text/css" href="css/main.css?<?php echo time(); ?>" /> <!-- Google Web Fonts --> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto:wght@500;700&display=swap" rel="stylesheet"> <!-- Icon Font Stylesheet --> <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet"> <script src="https://code.iconify.design/iconify-icon/1.0.0-beta.3/iconify-icon.min.js"></script> <br><br> <div class="container-fluid position-relative d-flex p-0"> <div class="content"> <div class="container-fluid pt-4 px-4"> <div class="row g-4"> <div class="col-sm-6 col-xl-3"> <div class="bg-secondary rounded d-flex align-items-center justify-content-between p-4"> <iconify-icon icon="wpf:administrator" height="48" style="color: #FF0000"></iconify-icon> <div class="ms-3"> <h4 class="mb-2">Paneelbord</h4> </div> </div> </div> <div class="col-sm-6 col-xl-5"> <div class="bg-secondary rounded d-flex align-items-center justify-content-between p-4"> <iconify-icon icon="fluent-emoji-high-contrast:latin-cross" height="48" style="color: #FF0000"></iconify-icon> <div class="ms-3"> <h1 "title2">JESUS CHRISTUS IS MY HEER</h1> </div> </div> </div> </div> </div> <!-- Sale & Revenue End --> <div class="container-fluid pt-4 px-4"> <div class="row g-4"> <div class="col-sm-6 col-xl-12"> <div class="bg-secondary rounded d-flex align-items-center justify-content-between p-4"> <div class="ms-3"> <img src="../admin/img/vis3.png" width="250px" height="140px"> </div> <div class="ms-3"> <img src="../admin/img/pry.jpg" width="140px" height="140px"> </div> <div class="ms-3"> <img src="../admin/img/pry1.png" width="140px" height="140px" color="lime"> </div> <div class="ms-3"> <img src="../admin/img/3bid.png" width="140px" height="140px"> </div> <div class="ms-3"> <img src="../admin/img/faith.png" width="140px" height="140px"> </div> <div class="ms-3"> <img src="../admin/img/hope.png" width="140px" height="140px"> </div> <div class="ms-3"> <img src="../admin/img/love.png" width="250px" height="140px"> </div> <div class="ms-3"> <img src="../admin/img/hart.png" width="140px" height="140px"> </div> <div class="ms-3"> <img src="../admin/img/bybel.png" width="140px" height="140px"> </div> </div> </div> </div> </div> <div class="container-fluid pt-4 px-4"> <div class="row g-4"> <div class="col-sm-6 col-xl-12"> <div class="bg-secondary rounded d-flex align-items-center justify-content-between p-4"> <div class="ms-3"> <h2 "title2">Jesus Christ is Lord Not a swear word</h2> </div> <div class="ms-3"> <h2 "title2">He is the truth the way and the life</h2> </div> </div> </div> </div> </div> <div class="container-fluid pt-4 px-4"> <div class="row g-4"> <div class="col-sm-12 col-md-6 col-xl-2"> <div class="h-100 bg-secondary rounded p-1"> <div class="d-flex align-items-center justify-content-between mb-4"> <h6 class="mb-0">Kalender</h6> </div> <div id="calender"> </div> </div> </div> <div class="col-sm-12 col-md- col-xl-6"> <div class="h-100 bg-secondary rounded p-4"> <iframe src="https://www.meteoblue.com/en/weather/widget/three/isando_south-africa_994526?geoloc=fixed&nocurrent=0&noforecast=0&days=7&tempunit=CELSIUS&windunit=KILOMETER_PER_HOUR&layout=image" frameborder="0" scrolling="NO" allowtransparency="true" sandbox="allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox" style="width: 805px; height: 620px"></iframe><div><!-- DO NOT REMOVE THIS LINK --><a href="https://www.meteoblue.com/en/weather/week/isando_south-africa_994526?utm_source=weather_widget&utm_medium=linkus&utm_content=three&utm_campaign=Weather%2BWidget" target="_blank" rel="noopener">meteoblue</a></div> </div> </div> </div> </div> </div> </div> <script src="https://apps.elfsight.com/p/platform.js" defer></script> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"></script> <script src="js/chart.min.js"></script> <script src="js/easing.min.js"></script> <script src="js/waypoints.min.js"></script> <script src="js/owl.carousel.min.js"></script> <script src="js/moment.min.js"></script> <script src="js/moment-timezone.min.js"></script> <script src="js/tempusdominus-bootstrap-4.min.js"></script> <!-- Template Javascript --> <script src="../admin/js/main.js"></script> </body> </html>