Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/imyrqtmy/public_html/primetaxaccounting/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("admin/includes/config.php"); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"><!--<![endif]--> <?php require "inc/head.php"; ?> <body> <div class="boxed blog"> <?php require "inc/header.php"; ?> <div class="page-title"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="page-title-heading"> <h1 class="h1-title">Checklist</h1> </div><!-- /.page-title-heading --> <ul class="breadcrumbs"> <li><a href="#" title="">Home<i class="fa fa-angle-right" aria-hidden="true"></i></a></li> <li><a href="#" title="">Checklist<i class="fa fa-angle-right" aria-hidden="true"></i></a></li> <!-- <li><a href="#" title="">Services Grid</a></li> --> </ul><!-- /.breadcrumbs --> <div class="clearfix"></div><!-- /.clearfix --> </div> </div> </div> </div><!-- /.page-title --> <section class="flat-row pd-services-post"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="title-section center s1"> <h2>Download Checklist </h2> <!-- <p class="sub-title-section">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor<br>incididunt ut labore et dolore magna aliqua.</p> --> </div><!-- /.title-section --> <div class="dividers dividers-imagebox"></div> </div> </div><!-- /.row --> <div class="row"> <div class="col-md-12"> <div class="wrap-imagebox-grid"> <?php $query = "SELECT * FROM checklists"; $query_run = mysqli_query($conn, $query); if(mysqli_num_rows($query_run) > 0){ foreach($query_run as $row){ // Get the file extension $file_extension = pathinfo($row['photo'], PATHINFO_EXTENSION); $file_url = "admin/checklist/" . $row['photo']; // Determine the label and icon based on file type if ($file_extension == 'pdf') { $file_label = "Download .PDF"; $file_icon = "fa-file-pdf"; // FontAwesome PDF icon } elseif (in_array($file_extension, ['xls', 'xlsx'])) { $file_label = "Download .Excel"; $file_icon = "fa-file-excel"; // FontAwesome Excel icon } else { $file_label = "Download File"; $file_icon = "fa-file"; // Generic file icon } ?> <div class="flat-imagebox services-grid item"> <aside class="widget widget-brochure services"> <div class="brochure-box-title"> <h5 class="brochure-title"><?php echo $row['checklist_name'] ?></h5> </div> <p class="btn-download"> <a href="<?php echo $file_url; ?>" target="_blank" class="<?php echo $file_extension; ?>"> <i class="fa <?php echo $file_icon; ?>"></i> <?php echo $file_label; ?> </a> </p> </aside> </div> <?php }} ?> </div> </div> </div> <!-- <div class="row"> <div class="col-md-12"> <div class="wrap-imagebox-grid"> <?php $query = "SELECT * FROM checklists"; $query_run = mysqli_query($conn, $query); if(mysqli_num_rows($query_run) > 0){ foreach($query_run as $row){ ?> <div class="flat-imagebox services-grid item"> <aside class="widget widget-brochure services"> <div class="brochure-box-title"> <h5 class="brochure-title"><?php echo $row['checklist_name'] ?></h5> </div> <p class="btn-download"> <a href="<?php echo "admin/checklist/" . $row['photo'] ?>" target="_blank" title="" class="pdf">Download .PDF</a> </p> </aside> </div> <?php }} ?> </div> </div> </div> --> </div><!-- /.container --> </section><!-- /.flat-row-iconbox --> <?php require "inc/footer.php"; ?> <div class="button-go-top"> <a href="#" title="" class="go-top"> <i class="fa fa-chevron-up"></i> </a> </div> </div> <!-- /.boxed --> <!-- Javascript --> <script type="text/javascript" src="javascript/jquery.min.js"></script> <script type="text/javascript" src="javascript/bootstrap.min.js"></script> <script type="text/javascript" src="javascript/jquery.flexslider-min.js"></script> <script type="text/javascript" src="javascript/jquery.easing.js"></script> <script type="text/javascript" src="javascript/jquery.cookie.js"></script> <script type="text/javascript" src="javascript/waypoints.min.js"></script> <script type="text/javascript" src="javascript/main.js"></script> </body> <!-- Mirrored from themesflat.co/html/finance/services-v1.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 03 Mar 2025 12:40:12 GMT --> </html>