File manager - Edit - /home/autoph/public_html/connectv1/resources/views/home/home.php
Back
<?php include('cfg/db.php'); if(!isset($_SESSION['user']['id'])){ header('location:signin.php'); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>AutoHub Connect Menu</title> <!-- Google Font: Source Sans Pro --> <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"> --> <!-- Font Awesome --> <link rel="canonical" href="https://www.connect.autohub.ph/"> <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css"> <!-- Theme style --> <link rel="stylesheet" href="dist/css/adminlte.min.css"> <!-- overlayScrollbars --> <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css"> <link href="dist/img/<?php echo $variable['logo']; ?>" rel="icon" /> <style> .bg-light { /* background-color: transparent !important; */ } .card { /* box-shadow: 0 0 0 0 !important; */ } .card-header { padding: .50rem 1.25rem !important; } </style> </head> <body class="hold-transition sidebar-mini text-sm layout-fixed"> <div class="wrapper"> <?php include('include/header_home.php'); ?> <?php include('include/sidebar_home.php'); ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Main content --> <section class="content"> <div class="container-fluid"> <h2 class=" text-center display-5" style="font-weight: 300;" hidden>Search</h2> <br> <div class="row"> <div class="col-md-6 offset-md-3"> <div class="input-group"> <input type="text" name="search-criteria" id="search-criteria" class="form-control form-control-md" placeholder="Search Menu Here"> <div class="input-group-append"> <!-- <input type="button" id="search" value="search"/> --> <!-- <button type="submit" name="submit" id="submit" class="btn btn-md btn-default"> --> <!-- <i class="fa fa-search"></i> --> </button> </div> </div> </div> </div> <div id="menus" class="col-md-12 offset-md-0 mt-4"> </div> </div> </section> </div> <!-- INSERT FOOTER --> <?php include('include/footer.php'); ?> <!-- /.control-sidebar --> </div> <!-- ./wrapper --> <!-- jQuery --> <script src="plugins/jquery/jquery.min.js"></script> <!-- jQuery UI 1.11.4 --> <script src="plugins/jquery-ui/jquery-ui.min.js"></script> <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip --> <script> $.widget.bridge('uibutton', $.ui.button) </script> <!-- overlayScrollbars --> <script src="plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script> <!-- Bootstrap 4 --> <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script> <!-- AdminLTE App --> <script src="dist/js/adminlte.min.js"></script> <!-- Navigation Highlight --> <script src="dist/js/main.js"></script> <!-- <script src="dist/js/jquery.balloon.min.js"></script> --> <!-- font awesome --> <!-- <script src="https://kit.fontawesome.com/49d9af4506.js" crossorigin="anonymous"></script> --> <script> $(document).ready(function() { // var search = $("#search").val(); $.ajax({ url: 'app/menu/menu_list.php', type: "GET", dataType: 'json', // data: {search:search}, beforeSend: function() { // $('#loader-main').show(); }, success: function(result) { var category_counter = 0; var category_counter_description = 0; $('#menus').html(''); var obj = jQuery.parseJSON(JSON.stringify(result)); var menu_content = ''; $(obj).each(function(key, value) { category_counter++; $.each(value.autohub_automation, function(k, v) { // The contents inside autohub_automation category_counter_description++; menu_content = menu_content + `<div class='col-md-3 align-items-stretch flex-column menu-list-` + category_counter + `' style='cursor: pointer;' data-original-title='` + v.description + `' > <div class='card bg-light d-flex flex-fill' > <div class='text-right mt-1 mr-2 mb-0 '> <i id='menu-description-` + category_counter_description + `' class='tooltip-me fas fa-question-circle' style='color:blue; cursor: help;' data-original-title='` + v.description + `'></i> </div> <a href='` + v.url + `' ` + ((parseInt(v.new_tab) != 0) ? "target = '_blank' " : "") + `> <div class='text-center mt-0'> <img width='90px' height='90px' src='dist/img/menu/` + v.image + `' alt='menu-icon' class='img-circle img-fluid'> </div> <div class='card-header text-muted border-bottom-0 text-center'> <span>` + v.name + `</span> </div> </a> </div> </div>`; // $('#menu-description-' + category_counter_description).attr('data-original-title', v.description); }); }); $('#menus').html(''); $('#menus').append("<label class='category-name category-name-" + category_counter + "' hidden>" + "Applications" + "</label><div class='row'>" + menu_content + '</div>'); // for (var i = 1; i <= category_counter_description; i++) { // $('#menu-description-' + i).attr('data-original-title', menuDescription); // // shownBalloon[i] = true; // // initBalloon(menuDescription, shownBalloon[i]); // // initBalloonMouseUp(menuDescription, shownBalloon[i]); // } initToolTip(); } }); $('#search-criteria').on('input', function(e) { var txt = $('#search-criteria').val().toLowerCase(); var numItems = $('.category-name').length for (var i = 0; i < numItems; i++) { var count = 0; $('.category-name-' + (i + 1)).each(function() { $('.menu-list-' + (i + 1)).each(function() { if ($(this).text().toUpperCase().indexOf(txt.toUpperCase()) != - 1) { $(this).show(); count++; } else { $(this).hide(); } }); }); if (count <= 0) { $('.category-name-' + (i + 1)).hide(); } else { $('.category-name-' + (i + 1)).show(); } // alert(i+1) } }); }); function initToolTip() { var bootstrapTooltip = $.fn.tooltip.noConflict(); $.fn.bstooltip = bootstrapTooltip; $('.tooltip-me').bstooltip(); } </script> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings