<?php
include '../connection.php';
$direction = "../assets/img/infoTakeachance/";
if(isset($_POST["infoID"]))
{
    $ID = $_POST["infoID"];
    $sqlretriveAR = "select ID ,label,paragraph,image,updateDate,updateUsername,status from info_takeachance_ar where ID={$ID}";
    $executeSqlAR = mysqli_query($connection,$sqlretriveAR);
    $retriveDataAR = mysqli_fetch_row($executeSqlAR);
    $sqlretriveEN = "select ID ,label,paragraph,image,updateDate,updateUsername,status from info_takeachance_en where ID={$ID}";
    $executeSqlEN = mysqli_query($connection,$sqlretriveEN);
    $retriveDataEN = mysqli_fetch_row($executeSqlEN);
}

?>
<div class="container">
    <div class="row justify-content-center">
        <div class="col text-center">
            <img src='<?php echo $direction.$retriveDataAR[3];?>' style='max-width:250px;'>
        </div>
    </div>

    <div class="row">
        <div class="col-md text-right">
            <h3>اللغة العربية</h3>
            <hr>
            <h3>
            العنوان :
            </h3>
            <h5>
            <?php echo $retriveDataAR[1];?>
            </h5>
            <h3>
            الفقرة :
            </h3>
            <h5 style='text-align:justify'>
            <?php echo $retriveDataAR[2];?>
            </h5>
        </div>
    </div>
    <div class="row" style='margin-top:30px;'>
        <div class="col-md text-right">
            <h3>اللغة الإنجليزية</h3>
            <hr>
                <h3>
                 العنوان :
                </h3>
            <h5 style='text-align:left;direction:ltr;'>
            <?php echo $retriveDataEN[1];?>
            </h5>
            <h3>
            الفقرة :
            </h3>
            <h5 style='text-align:justify;direction:ltr;'>
            <?php echo $retriveDataEN[2];?>
            </h5>
        </div>
    </div>
    <hr>
</div>