<?php
include '../connection.php';
$direction = "../assets/img/news/";
if(isset($_POST["newsID"]))
{
    $ID = $_POST["newsID"];
    $sqlretriveAR = "select * from news where ID={$ID}";
    $executeSqlAR = mysqli_query($connection,$sqlretriveAR);
    $retriveData = mysqli_fetch_assoc($executeSqlAR);
}
?>
<div class="container">
    <div class="row justify-content-center">
        <div class="col text-center">
            <img src='<?php echo $direction.$retriveData["image"];?>' style='max-width:250px;'>
        </div>
    </div>

    <div class="row">
        <div class="col-md text-right">
            <h3>اللغة العربية</h3>
            <hr>
            <h5>
            العنوان :
            <?php echo $retriveData["newsName_ar"];?>
            </h5>
            <h5>
            الخبر :
            <?php echo $retriveData["content_ar"];?>
            </h5>
            <h5>
            الملخص :
            <?php echo $retriveData["summary_ar"];?>
            </h5>
        </div>
    </div>
    <hr><hr>
    <div class="row">
        <div class="col-md text-left">
            <h3>اللغة الإنجليزية</h3>
            <hr>
            <h3 class='text-right'>
            العنوان :
            </h3>
            <h5 style='direction:ltr;'>
            <?php echo $retriveData["newsName_en"];?>
            </h5>
            <h3 class='text-right'>
            الخبر :
            </h3>
            <h5 style='direction:ltr;'>
            <?php echo $retriveData["content_en"];?>
            </h5>
            <h3 class='text-right'>
            الملخص :
            </h3>
            <h5 style='direction:ltr;'>
            <?php echo $retriveData["summary_en"];?>
            </h5>
        </div>
    </div>
    <hr>
</div>
