https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/laciasmara.com/public_html/shop/application/views/manuals/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/laciasmara.com/public_html/shop/application/views/manuals/index.php
<!DOCTYPE html>
<html lang="<?= $this->session->userdata('site_lang') == 'english' ? 'en' : 'id' ?>">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <!-- SEO Meta Tags -->
    <title><?= isset($browser_title) ? htmlspecialchars($browser_title) : 'Product Manual' ?></title>
    <meta name="description" content="<?= isset($meta_description) ? htmlspecialchars($meta_description) : '' ?>">
    <meta name="robots" content="index, follow">

    <link rel="icon" href="<?= !empty($website_icon) ? base_url('uploads/' . $website_icon) : base_url('uploads/favicon.ico'); ?>">
    <link rel="apple-touch-icon" href="<?= !empty($website_icon) ? base_url('uploads/' . $website_icon) : base_url('uploads/favicon.ico'); ?>">

    <!-- Canonical URL -->
    <?php if (isset($canonical_url)): ?>
        <link rel="canonical" href="<?= $canonical_url ?>">
    <?php endif; ?>

    <!-- Open Graph Meta Tags -->
    <?php if (isset($manual)): ?>
        <meta property="og:title" content="<?= htmlspecialchars($manual->title) ?> - Product Manual">
        <meta property="og:description" content="<?= htmlspecialchars($meta_description) ?>">
        <meta property="og:type" content="article">
        <meta property="og:url" content="<?= $canonical_url ?>">

        <!-- Twitter Card Meta Tags -->
        <meta name="twitter:card" content="summary_large_image">
        <meta name="twitter:title" content="<?= htmlspecialchars($manual->title) ?> - Product Manual">
        <meta name="twitter:description" content="<?= htmlspecialchars($meta_description) ?>">
    <?php endif; ?>

    <!-- Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>

    <!-- Font Awesome for icons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

    <style>
        /* Custom styles for PDF viewer */
        .pdf-container {
            height: calc(100vh - 140px);
            min-height: 500px;
        }

        @media (max-width: 768px) {
            .pdf-container {
                height: calc(100vh - 160px);
                min-height: 400px;
            }
        }

        /* Smooth animations */
        .fade-in {
            animation: fadeIn 0.3s ease-in;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    </style>
</head>

<body class="bg-gray-50">

    <?php if (isset($manual)): ?>

        <!-- Simple Header Section -->
        <div class="bg-white shadow-sm border-b fade-in">
            <div class="container mx-auto px-4 py-4">
                <div class="flex flex-col md:flex-row md:items-center md:justify-between gap-4">
                    <div class="flex-1">
                        <h1 class="text-xl md:text-2xl font-bold text-gray-900 mb-1">
                            Manual Guide - <?= htmlspecialchars($manual->title) ?>
                        </h1>
                        <div class="flex flex-wrap items-center gap-3 text-sm text-gray-600">
                            <span class="flex items-center gap-1.5">
                                <i class="fas fa-tag text-green-500"></i>
                                <span>v<?= htmlspecialchars($manual->version) ?></span>
                            </span>
                            <span class="flex items-center gap-1.5">
                                <i class="fas fa-eye text-purple-500"></i>
                                <?= number_format($manual->view_count + 1) ?> views
                            </span>

                            <span class="flex items-center gap-1.5">
                                <i class="fas fa-file-pdf text-red-500"></i>
                                <?= number_format($manual->file_size / 1024, 2) ?> KB
                            </span>
                        </div>
                    </div>

                    <!-- Download Button -->
                    <div>
                        <a href="<?= base_url($manual->file_path) ?>"
                            download="<?= htmlspecialchars($manual->file_name) ?>"
                            class="inline-flex items-center gap-2 px-5 py-2.5 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-all duration-200 shadow-sm hover:shadow-md">
                            <i class="fas fa-download"></i>
                            <span class="font-medium">Download</span>
                        </a>
                    </div>
                </div>
            </div>
        </div>

        <!-- PDF Viewer Section -->
        <div class="container mx-auto px-4 py-4">
            <div class="bg-white rounded-lg shadow-lg overflow-hidden fade-in">
                <!-- PDF Container -->
                <div class="pdf-container relative">
                    <iframe
                        id="pdfViewer"
                        src="<?= base_url($manual->file_path) ?>#toolbar=1&navpanes=1&scrollbar=1&view=FitH"
                        type="application/pdf"
                        class="w-full h-full border-0"
                        title="<?= htmlspecialchars($manual->title) ?> Manual Guide"
                        loading="lazy">
                    </iframe>

                    <!-- Loading Indicator -->
                    <div id="loadingIndicator" class="absolute inset-0 flex items-center justify-center bg-gray-50">
                        <div class="text-center">
                            <div class="inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mb-3"></div>
                            <p class="text-gray-600 font-medium">Loading manual...</p>
                        </div>
                    </div>

                    <!-- Fallback for browsers that don't support iframe PDF viewing -->
                    <div id="pdfFallback" class="hidden absolute inset-0 flex items-center justify-center bg-gray-50 p-8">
                        <div class="text-center max-w-md">
                            <i class="fas fa-file-pdf text-red-500 text-6xl mb-4"></i>
                            <h3 class="text-xl font-semibold text-gray-900 mb-2">
                                Cannot Display PDF
                            </h3>
                            <p class="text-gray-600 mb-6">
                                Your browser doesn't support inline PDF viewing. Please download the file to view it.
                            </p>
                            <a href="<?= base_url($manual->file_path) ?>"
                                download="<?= htmlspecialchars($manual->file_name) ?>"
                                class="inline-flex items-center gap-2 px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors duration-200 shadow-sm hover:shadow-md">
                                <i class="fas fa-download"></i>
                                <span class="font-medium">Download PDF</span>
                            </a>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Simple Info Footer -->
            <div class="mt-4 text-center text-sm text-gray-500 fade-in">
                <p>Last updated: <?= date('F d, Y', strtotime($manual->updated_at)) ?></p>
            </div>
        </div>

        <script>
            // Hide loading indicator when PDF loads
            const iframe = document.getElementById('pdfViewer');
            const loadingIndicator = document.getElementById('loadingIndicator');
            const pdfFallback = document.getElementById('pdfFallback');

            iframe.addEventListener('load', function() {
                setTimeout(() => {
                    loadingIndicator.style.display = 'none';
                }, 500);
            });

            // Show fallback if iframe fails to load
            iframe.addEventListener('error', function() {
                loadingIndicator.style.display = 'none';
                pdfFallback.classList.remove('hidden');
            });

            // Timeout fallback (if loading takes too long, might be unsupported)
            setTimeout(() => {
                if (loadingIndicator.style.display !== 'none') {
                    loadingIndicator.style.display = 'none';
                }
            }, 5000);
        </script>

    <?php else: ?>

        <!-- Manual Not Found -->
        <div class="container mx-auto px-4 py-16">
            <div class="max-w-md mx-auto text-center bg-white rounded-lg shadow-lg p-8 fade-in">
                <i class="fas fa-exclamation-circle text-yellow-500 text-6xl mb-4"></i>
                <h1 class="text-2xl font-bold text-gray-900 mb-2">Manual Not Found</h1>
                <p class="text-gray-600 mb-6">
                    The manual you're looking for doesn't exist or is no longer available.
                </p>
                <a href="<?= base_url() ?>"
                    class="inline-flex items-center gap-2 px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors duration-200 shadow-sm hover:shadow-md">
                    <i class="fas fa-home"></i>
                    <span class="font-medium">Back to Home</span>
                </a>
            </div>
        </div>

    <?php endif; ?>

</body>

</html>

https://t.me/RX1948 - 2025