Domain: amberpublishers.in
Server Adress: 86.38.243.169

privdayz.com

/home/u866425823/domains/amberpublishers.in/public_html/ijsri/
Dosya Yükle :
Current File : /home/u866425823/domains/amberpublishers.in/public_html/ijsri/paper_details.php

<?php
require_once '../admin/include/db.php';
require_once 'functions.php';

// Check if the paper_id parameter is provided
if (isset($_GET['paper_id'])) {
    $paperId = $_GET['paper_id'];

    // Get the paper details
    $paper = getPaperDetails($conn, $paperId);
} else {
    // Redirect to the current issue page if paper_id parameter is not provided
    header('Location: current_issue.php');
    exit();
}
?>

<?php include 'common/head.php'; ?>

<body>
    <?php include 'common/header.php'; ?>

    <main id="main">

        <!-- ======= Breadcrumbs Section ======= -->
        <section class="breadcrumbs">
            <div class="container">
                <div class="d-flex justify-content-between align-items-center">
                    <h2 class="fw-bold">Paper Details</h2>
                    <ol>
                        <li><a href="index.php">Home</a></li>
                        <li><a href="issues.php">Issues</a></li>
                        <li>Paper Details</li>
                    </ol>
                </div>
            </div>
        </section><!-- End Breadcrumbs Section -->

        <!-- Paper Details -->
        <section class="issue-content">
            <div class="container p-5" style="background-color: #fafafa;">
                <div class="row">
                    <div class="col-lg-12">
                        <h3 class="fw-bold mb-4">Paper Details</h3>

                        <?php if ($paper) : ?>
                            <div class="table-responsive">
                                <table class="table table-bordered">
                                    <tbody>
                                        <tr>
                                            <th>Title</th>
                                            <td><?php echo $paper['title']; ?></td>
                                        </tr>
                                        <tr>
                                            <th>Author</th>
                                            <td><?php echo $paper['authors']; ?></td>
                                        </tr>
                                        <tr>
                                            <th>Abstract</th>
                                            <td><?php echo $paper['abstract']; ?></td>
                                        </tr>
                                        <tr>
                                            <th>Keywords</th>
                                            <td><?php echo $paper['keywords']; ?></td>
                                        </tr>
                                        <tr>
                                            <th>Page Number</th>
                                            <td><?php echo $paper['page_number']; ?></td>
                                        </tr>
                                        <tr>
                                            <th>DOI</th>
                                            <td>
                                                <a href="https://doi.org/<?php echo $paper['doi']; ?>" target="_blank" class="btn btn-outline-dark"><i class="fas fa-external-link-alt"></i> View DOI</a><br>DOI: 10.33804/IJSRI.2021.01.01.<?php echo $paper['doi']; ?>,
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>Date of Publication</th>
                                            <td><?php echo $paper['date_of_publication']; ?></td>
                                        </tr>

                                        <tr>
                                            <th>Download</th>
                                            <td>
                                                <a href="<?php echo str_replace('../ijsri/', '', $paper['full_text_url']); ?>" class="btn btn-outline-dark"><i class="fas fa-download"></i> Download</a>



                                            </td>
                                        </tr>
                                        <!-- Add other table rows for Keywords paper details -->


                                    </tbody>
                                </table>
                            </div>
                            <div class="mt-4">
                                <h4>Preview</h4>
                                <div class="container-md">
                                    <?php if (!empty($paper['full_text_url'])) : ?>
                                        <?php if (pathinfo($paper['full_text_url'], PATHINFO_EXTENSION) === 'pdf') : ?>
                                            <embed src="<?php echo str_replace('../ijsri/', '', $paper['full_text_url']); ?>" width="100%" height="600" type="application/pdf" frameborder="0"></embed>
                                        <?php else : ?>
                                            <img src="<?php echo str_replace('../ijsri/', '', $paper['full_text_url']); ?>" class="img-fluid" alt="Paper Preview">
                                        <?php endif; ?>
                                    <?php else : ?>
                                        <p>No preview available for this paper.</p>
                                    <?php endif; ?>

                                </div>

                            </div>
                        <?php else : ?>
                            <p class="text-danger">Invalid paper ID.</p>
                        <?php endif; ?>


                    </div>
                </div>
            </div>
        </section><!-- End Issue Content Section -->

    </main><!-- End #main -->

    <!-- ======= Footer ======= -->
    <?php include 'common/footer.php'; ?>
    <!-- End Footer -->

    <?php include 'common/scripts.php'; ?>
</body>

</html>

<!-- ALTER TABLE papers ADD COLUMN doi VARCHAR(255);
 -->

coded by Privdayz.com - Visit https://privdayz.com/ for more php shells.