File Manager V1.5

[SYSTEM@ROOT]: /home/ketechno/dakotaoilug.com/
INJECT_FILE:
NEW_ENTRY:

FILE_CONTENT: services.php

<?php
require_once('header.php');
require_once 'admin/functions.php';

// Get services content
$services_query = "SELECT * FROM services_content ORDER BY display_order ASC";
$services_result = $conn->query($services_query);
$services_content = [];
while ($row = $services_result->fetch_assoc()) {
    $services_content[$row['section_key']] = $row;
}

// Get FAQs
$faq_query = "SELECT * FROM services_faq WHERE is_active = 1 ORDER BY display_order ASC";
$faqs = $conn->query($faq_query);
$faqs_list = [];
while ($row = $faqs->fetch_assoc()) {
    $faqs_list[] = $row;
}
$homepage_services = getAllHomepageServices();
$homepage_works = getAllHomepageWorks();

?>
<!--Page Title-->
<section class="page-title" style="background-image:url(images/background/12.jpg)">
    <div class="auto-container">
        <h1><?php echo htmlspecialchars($services_content['page_header']['title'] ?? 'Our Services'); ?></h1>
        <div class="text">Your Safety is our priority
 <?php//echo htmlspecialchars($services_content['page_header']['content'] ?? 'We strive for perfection in all our services'); ?></div>
    </div>
</section>
<!--End Page Title-->

<!--Team Section-->
<section class="team-section">
    <div class="auto-container">
        <div class="row clearfix">
            <?php
            // Display all services from the database
            foreach ($services_content as $service_key => $service):
                // Skip non-service entries like page_header, ac_tips
                if (in_array($service_key, ['page_header', 'ac_tips'])) continue;
            ?>
            <div class="team-block col-lg-4 col-md-6 col-sm-12">
                <div class="inner-box wow fadeInLeft" data-wow-delay="0ms" data-wow-duration="1500ms">
                    <h3 style="padding-bottom:10px;">
                        <a href="#"><?php echo htmlspecialchars($service['title'] ?? ''); ?></a>
                    </h3>
                    <div class="image">
                        <a href="#"><img src="<?php echo htmlspecialchars($service['image_url'] ?? 'images/resource/service-default.jpg'); ?>" alt="" /></a>
                    </div>
                    <div class="lower-content">
                        <div class="text"><?php echo nl2br(htmlspecialchars($service['content'] ?? '')); ?></div>
                    </div>
                </div>
            </div>
            <?php 
            endforeach; 
            ?>
        </div>
    </div>
</section>
<!--End Team Section-->
  <!--Accordian Section-->
        <section class="accordian-section" >
            <div class="auto-container">
                <div class="row clearfix">
                    
                    <!--Accordian Column-->
                    <div class="accordian-column col-lg-6 col-md-12 col-sm-12">
                        <div class="inner-column">
                            
                            <ul class="accordion-box accordion-style-one">
                                        
                                <!--Block-->
                                <li class="accordion block active-block">
                                    <div class="acc-btn active"><div class="icon-outer">
									<span class="icon icon-plus flaticon-plus-symbol">
									</span> <span class="icon icon-minus flaticon-substract">
									</span></div>Why use quality Aircraft fuel</div>
                                    <div class="acc-content current">
                                        <div class="content">
                                            <div class="text">
                                                <p><strong>Enhanced Safety</strong></br> The primary reason for strict fuel quality standards
												is safety. Contaminated or off-specification fuel can lead to severe 
												issues, including engine malfunctions or complete in-flight engine failure, 
												which can have catastrophic consequences.
    </p>
                                            </div>
                                        </div>
                                    </div>
                                </li>

                                <!--Block-->
                                <li class="accordion block ">
                                    <div class="acc-btn "><div class="icon-outer"><span class="icon icon-plus flaticon-plus-symbol">
									</span> <span class="icon icon-minus flaticon-substract"></span></div>Engine Performance and Reliability</div>
                                    <div class="acc-content ">
                                        <div class="content">
                                            <div class="text">
                                                <p>Clean, high-quality fuel ensures the engine performs optimally, delivering 
												the correct power output and throttle response. The correct fuel
												properties, such as specific viscosity and octane ratings 
												(for Avgas), prevent issues like engine knocking or detonation 
												(in piston engines) and guarantee consistent performance across varying flight conditions.</br>
  
	</p>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                
                                <!--Block-->
                                <li class="accordion block">
                                    <div class="acc-btn"><div class="icon-outer">
									<span class="icon icon-plus flaticon-plus-symbol"></span>
									<span class="icon icon-minus flaticon-substract"></span></div> Environmental Benefits </div>
                                    <div class="acc-content">
                                        <div class="content">
                                            <div class="text">
                                                <p> High-quality fuels, particularly sustainable aviation fuels (SAF), have fewer impurities (like sulfur) 
												and burn cleaner, resulting in lower emissions of harmful pollutants and a smaller carbon footprint. 
                                            </div>
                                        </div>
                                    </div>
                                </li>
                
                            </ul>
                            
                        </div>
                    </div>
                    <!--Content Column-->
                    <div class="content-column col-lg-6 col-md-12 col-sm-12">
                        <div class="inner-column">
                            <h2>Don’t miss out!, Get regular tips on benefits of quality Fuel </h2>
                            <h3>Potential issues emerging from contaminated aviation fuels</h3>
                            <div class="text">
    1. Corrosion – The reaction between the fuel and aircraft components leads to corrosion.</br>
    2. Engine failure – The most severe problem posed by impure fuel, engine failure might lead to grounded aircraft </br>
    3. Degradation – Fuel degradation affects the efficient operation of the aircraft, with the insufficient
	heat energy derivable from the fuel resulting in performance lag</br>
    </div>
                            <a href="appointment.php" class="theme-btn btn-style-three">Order Fuel</a>
                             <!-- <a href="appointment.php" class="theme-btn btn-style-one" >Book an Appoinment</a>-->
                        </div>
                    </div>
                </div>
            </div>
        </section>
		<!--Expert Section-->
        <section class="expert-section" style="background-image:url(images/background/2.png)">
            <div class="auto-container">
                <!--Sec Title-->
                <div class="sec-title centered">
                    <h3 style="color:#2ed0b0;">Our Recent works</h3>
                </div>
                
                <div class="row clearfix">
                    <?php 
                    // Get homepage works
                    $homepage_works = getAllHomepageWorks();
                    
                    if ($homepage_works && !empty($homepage_works)): 
                        foreach ($homepage_works as $work): 
                    ?>
                    <!--Team Block-->
                    <div class="team-block col-lg-4 col-md-6 col-sm-12">
                        <div class="inner-box wow fadeInLeft" data-wow-delay="0ms" data-wow-duration="1500ms">
                            <div class="image">
                                <a href="<?php echo htmlspecialchars($work['link_url']); ?>">
                                    <img src="<?php echo htmlspecialchars($work['image_url']); ?>" alt="<?php echo htmlspecialchars($work['title']); ?>" />
                                </a>
                            </div>
                            <div class="lower-content">
                                <h3><a href="<?php echo htmlspecialchars($work['link_url']); ?>"><?php echo htmlspecialchars($work['title']); ?></a></h3>
                                <div class="text"><?php echo nl2br(htmlspecialchars($work['description'])); ?></div>
                                 <!-- <a href="feature_detail.php?id=4" class="theme-btn btn-style-two">Read more</a>-->
                            </div>
                        </div>
                    </div>
                    <?php 
                        endforeach; 
                    else: 
                    ?>
                    <!--Default Works if No Database Content-->
                    <div class="team-block col-lg-4 col-md-6 col-sm-12">
                        <div class="inner-box wow fadeInLeft" data-wow-delay="0ms" data-wow-duration="1500ms">
                            <div class="image">
                                <a href="services.php#"><img src="images/resource/car-repairs.jpeg" alt="" /></a>
                            </div>
                            <div class="lower-content">
                                <h3><a href="services.php">Car Repairs</a></h3>
                                <div class="text">Professional car repair services</div>
                                <a href="services.php" class="theme-btn btn-style-two">Read more</a>
                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                </div>
            </div>
        </section>
<?php require_once('footer.php'); ?>
[ KEMBALI ]