<?php
$IMG = "/IMGS/no-image.jpg";
if(!empty($this->Profile["Avatar"])){
    $IMG = $this->Profile["Avatar"];
}

?>

<table style="width:100% " id="SquickViewProfile_Table" >
    <?php
    $nickname = $this->Profile["NickName"];
    if(empty($this->Profile["NickName"])){
        $nickname = $this->Profile["FirstName"];
    }
    
    ?>
                    <tr >
                        <td rowspan="8" style="width: 90px; vertical-align: top; border-right: 1px dotted  #ccc">
                            <img  onclick="EditMyPic(this,2,<?=$this->SID?>,1/1)" pid="<?=$this->Profile["UserID"]?>" style="-webkit-user-select: none;width: 200px; height:200px;margin-right: 10px; cursor: pointer" src="<?=$IMG?>" data-placement="top" data-toggle="tooltip" data-original-title="Click To Upload Picture" id="Form-Image"/>
                       </td>
                        <td class="popLabel">First Name</td>
                        <td class="inputLabel"><input type="text" disabled="true" value="<?=$this->Profile["FirstName"]?>" class="form-control col-md-12" id="Form-FirstName" name="data[FirstName]"/></td>
                    </tr>
                    <tr>
                        <td class="popLabel">Last Name</td>
                        <td class="inputLabel"><input type="text"  disabled="true"  value="<?=$this->Profile["LastName"]?>" class="form-control  col-md-12" id="Form-LastName" name="data[LastName]"/></td>
                    </tr>
                     <tr>
                        <td class="popLabel">Know As</td>
                        <td class="inputLabel"><input type="text" value="<?=$nickname?>"   class="form-control  col-md-12" id="Form-Nickname" name="data[Nickname]"/></td>
                    </tr>
                    <tr>
                        <td class="popLabel">Mobile</td>
                        <td class="inputLabel"><input type="text" value="<?=$this->Profile["Mobile"]?>" class="form-control  col-md-12" id="Form-LastName" name="data[Mobile]"/></td>
                    </tr>
                     <tr>
                        <td class="popLabel">Ethnicity </td>
                        <td class="inputLabel">
                            <select  name="data[Ethnicity]"  class=" form-control select  col-md-12"  id="Form-Ethnicity">
                           <option value="">-- Select Ethnicity --</option>
                                <?php foreach($this->Ethnicity as $Ethnicity){ ?>
                               <option value="<?=$Ethnicity["EthnicityName"]?>"
                                       <?php if($this->Profile["Ethnicity"] ==$Ethnicity["EthnicityName"] ){ echo "Selected"; }?>
                                            ><?=$Ethnicity["EthnicityName"]?></option>
                           <?php } ?>
                           </select>
                        </td>
                    </tr>
                     <tr>
                        <td class="popLabel">Boksmart Number</td>
                        <td class="inputLabel"><input type="text" value="<?=$this->Profile["boksmart"]?>"   placeholder="BS-0000000" class="form-control  col-md-12" id="boksmartttt" name="data[boksmart]" /></td>
                    </tr>
                     
                     <tr>
                       <td class="popLabel">Role</td>
                       <td class="inputLabel">
                           <select  name="squad[Positions]"  class=" form-control select col-md-12" id="Form-Positions">
                                <option value="0">-- Select Role --</option>
                           <?php foreach($this->UsertTypes as $Position){ ?>
                               <option value="<?=$Position["TypeID"]?>" <?php if($this->Squad["Position"] ==$Position["TypeID"] ){ echo "Selected"; }?> ><?=$Position["TypeName"]?></option>
                           <?php } ?>
                           </select>
                       </td>
                    </tr>
                    
                    
                </table>
<script>

$(function(){
     $("#boksmartttt").mask('BS-9999999');
})
</script>
