<?php
include '../connection.php';
$direction = "../assets/img/team/";
if(isset($_POST["infoID"]))
{
    $ID = $_POST["infoID"];
    $sqlretriveAR = "select ID,name,jobTitle,content,summary,image from team_ar where ID={$ID}";
    $executeSqlAR = mysqli_query($connection,$sqlretriveAR);
    $retriveDataAR = mysqli_fetch_row($executeSqlAR);
    $sqlretriveEN = "select ID,name,jobTitle,content,summary,image from team_en where ID={$ID}";
    $executeSqlEN = mysqli_query($connection,$sqlretriveEN);
    $retriveDataEN = mysqli_fetch_row($executeSqlEN);
    $content = $retriveDataAR[3];
    $contentArr =  explode("@",$content);
    $dataContant = "";
    foreach($contentArr as $con)
    {
        $dataContant .="<p class='text-right'>$con</p>";
    }
    $contentEN = $retriveDataEN[3];
    $contentArrEN =  explode("@",$contentEN);
    $dataContantEN = "";
    foreach($contentArrEN as $conEN)
    {
        $dataContantEN .="<p class='text-left'>$conEN</p>";
    }
}
?>
<div class="container">

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